/* ===========================================================
   Orden der Roten Rune - Ultima Offline Gilde
   Stylesheet "Design 3.0" (Sept. 2002)
   Optimiert fuer 1024x768, IE 5.5+ und Netscape 6+
   =========================================================== */

html {
  background: #221c18 url(../img/bg_stein.gif);
}

body {
  margin: 0;
  padding: 10px 0 20px;
  font: 11px/1.45 Verdana, Tahoma, Arial, Helvetica, sans-serif;
  color: #2b1d0e;
}

img { border: 0; }

/* ---------- Rahmen ---------- */

#seite {
  width: 770px;
  margin: 0 auto;
  background: #120e0b;
  border: 1px solid #000;
  outline: 1px solid #6a5238;
}

#kopf { display: block; line-height: 0; border-bottom: 2px solid #000; }
#kopf img { display: block; width: 770px; height: 130px; }

/* ---------- Leiste unter dem Logo ---------- */

#leiste {
  display: flex;
  align-items: center;
  height: 20px;
  background: url(../img/leiste_dunkel.gif) repeat-x;
  border-bottom: 1px solid #5a4630;
  color: #c8b890;
  font-size: 10px;
}
#leiste .datum { padding: 0 8px; white-space: nowrap; border-right: 1px solid #5a4630; }
#leiste .shard { padding: 0 8px; white-space: nowrap; border-left: 1px solid #5a4630; }
#leiste .shard b { color: #50e050; }

.ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: #f0c850;
  font-weight: bold;
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 32s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Spalten ---------- */

#spalten {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  gap: 6px;
  padding: 6px;
}

/* ---------- Navigation ---------- */

#links nav { margin-bottom: 6px; }
#links nav a {
  display: block;
  margin-bottom: 2px;
  padding: 4px 6px 4px 24px;
  background: url(../img/rune.gif) 5px 50% no-repeat, url(../img/nav.gif) repeat-x;
  background-size: 14px 14px, auto 100%;
  border: 2px outset #7a6448;
  color: #ead9b0;
  font-weight: bold;
  text-decoration: none;
}
#links nav a:hover,
#links nav a[aria-current="page"] {
  background: url(../img/rune.gif) 5px 50% no-repeat, url(../img/nav_hover.gif) repeat-x;
  background-size: 14px 14px, auto 100%;
  border-style: inset;
  color: #fff;
}
#links nav .trenner {
  margin: 6px 0 4px;
  color: #8a7458;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

/* ---------- Kaesten (Seitenleisten) ---------- */

.kasten {
  margin-bottom: 6px;
  background: #1e1814;
  border: 1px solid #000;
  outline: 1px solid #4a3a28;
  outline-offset: -2px;
  color: #d8c8a0;
  font-size: 10px;
}
.kasten h2 {
  margin: 0;
  padding: 3px 6px;
  background: url(../img/leiste_rot.gif) repeat-x;
  background-size: auto 100%;
  border-bottom: 1px solid #000;
  color: #f0c850;
  font: bold 10px Verdana, Tahoma, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.kasten .innen { padding: 5px 6px; }
.kasten a { color: #f0c850; }
.kasten a:hover { color: #fff; }
.kasten p { margin: 0 0 5px; }
.kasten ul { margin: 0; padding-left: 14px; }

.kasten input[type=text], .kasten input[type=password] {
  width: 120px;
  font: 10px Verdana, sans-serif;
  background: #e8d8b0;
  border: 2px inset #8a7458;
}
.kasten button {
  font: bold 10px Verdana, sans-serif;
  background: #6a5440;
  color: #ead9b0;
  border: 2px outset #8a7458;
}
.kasten input:disabled, .kasten button:disabled { opacity: .6; }

.zaehler { text-align: center; }
.zaehler .ziffern { display: inline-block; padding: 2px; background: #000; border: 1px inset #555; line-height: 0; }
.zaehler .ziffern img { width: 13px; height: 19px; }

.balken { height: 7px; margin: 1px 0 4px; background: #000; border: 1px solid #5a4630; }
.balken span { display: block; height: 100%; background: linear-gradient(#e04030, #801010); }

.status-an { color: #50e050; font-weight: bold; }
.status-aus { color: #ff5040; font-weight: bold; }

/* ---------- Inhalt (Pergament) ---------- */

main {
  min-width: 0;
  padding: 10px 14px 14px;
  background: #e8d8b0 url(../img/pergament.jpg);
  border: 1px solid #000;
  outline: 1px solid #8a6a40;
  outline-offset: -4px;
  font-size: 11px;
}

main h1 {
  margin: 0 0 10px;
  padding-bottom: 3px;
  border-bottom: 2px solid #7a1010;
  color: #7a1010;
  font: bold 20px Georgia, "Times New Roman", Times, serif;
  font-variant: small-caps;
  letter-spacing: 1px;
}
main h1 img { vertical-align: -5px; margin-right: 4px; }
main h2 {
  margin: 16px 0 6px;
  padding: 3px 6px;
  background: url(../img/leiste_rot.gif) repeat-x;
  background-size: auto 100%;
  color: #f0c850;
  font: bold 11px Verdana, Tahoma, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
main h3 {
  margin: 14px 0 4px;
  color: #5a0f0f;
  font: bold 13px Georgia, "Times New Roman", Times, serif;
}
main p { margin: 0 0 8px; text-align: justify; }
main a { color: #8a1010; font-weight: bold; }
main a:visited { color: #5a2a6a; }
main a:hover { color: #d02020; text-decoration: none; }
main ul { padding-left: 18px; }
main ul.runen { list-style: none; padding-left: 0; }
main ul.runen li { padding-left: 18px; margin-bottom: 3px; background: url(../img/rune.gif) 0 1px no-repeat; background-size: 12px 12px; }
main hr { border: 0; border-top: 1px dashed #8a6a40; margin: 12px 0; }
main blockquote {
  margin: 8px 12px;
  padding: 6px 10px;
  border-left: 3px solid #7a1010;
  background: rgba(255, 250, 230, .45);
  font: italic 12px Georgia, "Times New Roman", serif;
}
main code, main kbd, .spiel {
  font: 11px "Courier New", Courier, monospace;
  background: #1a1410;
  color: #f0e070;
  padding: 0 3px;
}

.meta { margin: -2px 0 6px; color: #6a5030; font-size: 10px; }
.meta b { color: #4a2a10; }
.eintrag { margin-bottom: 14px; }
.eintrag h3 { margin-top: 4px; }
.neu { vertical-align: -2px; margin-left: 4px; }
.klein { font-size: 10px; }
.rechts { text-align: right; }
.mitte { text-align: center; }
.unterschrift { font: italic 12px Georgia, serif; text-align: right; }

.hinweis {
  margin: 8px 0;
  padding: 6px 8px;
  background: #fff6c8;
  border: 1px solid #a08030;
  font-size: 10px;
}
.hinweis.rot { background: #f6d0c0; border-color: #8a1010; }

/* ---------- Tabellen ---------- */

table.liste {
  width: 100%;
  margin: 6px 0 10px;
  border-collapse: collapse;
  font-size: 10px;
}
table.liste th {
  padding: 3px 4px;
  background: #5a1010;
  border: 1px solid #2a0505;
  color: #f0c850;
  text-align: left;
}
table.liste td {
  padding: 3px 4px;
  border: 1px solid #b8a070;
  vertical-align: top;
}
table.liste tr:nth-child(odd) td { background: rgba(255, 248, 225, .55); }
table.liste tr:nth-child(even) td { background: rgba(200, 175, 120, .25); }
table.liste td.zahl { text-align: right; white-space: nowrap; }
table.liste img { vertical-align: -3px; }

/* ---------- Galerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0;
}
.galerie figure { margin: 0; text-align: center; font-size: 10px; }
.galerie img {
  width: 128px;
  height: 96px;
  border: 2px solid #3a2a1a;
  outline: 1px solid #c8a868;
}
.galerie a:hover img { border-color: #d02020; }
.galerie figcaption { margin-top: 3px; }

.bild-rechts { float: right; margin: 0 0 6px 10px; border: 2px solid #3a2a1a; }

/* ---------- Gaestebuch ---------- */

.gb {
  margin-bottom: 10px;
  border: 1px solid #8a6a40;
  background: rgba(255, 250, 230, .5);
}
.gb .kopf {
  padding: 2px 6px;
  background: rgba(90, 16, 16, .85);
  color: #f0c850;
  font-size: 10px;
}
.gb .kopf b { color: #fff; }
.gb .text { padding: 5px 8px; }
.gb .antwort {
  margin: 0 8px 6px 24px;
  padding: 4px 6px;
  border-left: 2px solid #7a1010;
  font-size: 10px;
  color: #4a2a10;
}

form.gb-form fieldset { border: 1px solid #8a6a40; }
form.gb-form label { display: block; margin-top: 4px; font-weight: bold; }
form.gb-form input, form.gb-form textarea { width: 95%; font: 11px Verdana, sans-serif; border: 2px inset #8a7458; background: #f4ead0; }

/* ---------- Fuss ---------- */

#fuss {
  padding: 8px 6px 10px;
  border-top: 2px solid #000;
  background: #0c0a08;
  color: #a89878;
  font-size: 10px;
  text-align: center;
}
#fuss a { color: #e0b048; }
#fuss a:hover { color: #fff; }
#fuss .buttons { margin: 4px 0 8px; line-height: 0; }
#fuss .buttons img { width: 88px; height: 31px; margin: 0 2px; }

.webring {
  display: inline-block;
  margin: 2px 0 8px;
  padding: 4px 12px;
  border: 2px ridge #7a5a8a;
  background: #1a0a20;
  color: #e8c8f0;
  font-size: 10px;
}
.webring b { color: #ff99ff; }
.webring img { vertical-align: middle; margin-right: 6px; width: 88px; height: 31px; }

/* ---------- Spielereien ---------- */

.blink { animation: blinken 1s steps(1) infinite; }
@keyframes blinken { 50% { visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .ticker span { animation: none; padding-left: 8px; }
  .blink { animation: none; }
}

/* ---------- Schmale Bildschirme (gab es 2003 nur im Handy-WAP, aber gut) ---------- */

@media (max-width: 790px) {
  body { padding: 0; }
  #seite { width: auto; outline: 0; }
  #kopf img { width: 100%; height: auto; }
  #leiste { height: auto; flex-wrap: wrap; }
  #spalten { grid-template-columns: 1fr; }
  #rechts { order: 3; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
}
