/* UO-Sigena – Design "Dunkler Rahmen"
   Drachenhaut-Hintergrund, Metallrahmen mit Nieten, Bronze-Knöpfe, Pergament in der Mitte.
   Schriften liegen selbst auf dem Server (keine Verbindung zu Google). */

@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url(fonts/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --tinte: #2c1a0c;          /* Text auf Pergament */
  --hell: #e9d7b3;           /* Text auf dunkel */
  --gold: #f1cf86;
  --bronze: #c9a464;
  --rost: #4d3522;           /* Rahmenlinien */
  --blutrot: #8e1b0b;        /* Links auf Pergament */
  --titelrot: #5a1609;
  --ok: #245f20;
  --fehler: #9b1c10;
  --flaeche: #fbf1d6;        /* Kästen auf dem Pergament */
}

* { box-sizing: border-box; }
body {
  margin: 0; padding: 20px 16px 40px;
  background: #1a0b06 url(hintergrund.jpg) repeat;
  color: var(--hell);
  font: 15px/1.55 "Alegreya Sans", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 6px 10px; z-index: 9; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ Rahmen */
.rahmen {
  position: relative; max-width: 1500px; margin: 0 auto; padding: 10px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(42,26,18,.92), rgba(18,10,7,.95));
  border: 2px solid var(--rost);
  box-shadow: inset 0 0 0 2px #0a0504, inset 0 0 0 4px #3a2618, 0 20px 50px rgba(0,0,0,.8);
}
.niete { position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9a46a, #6b4a22 55%, #241508); box-shadow: 0 1px 2px #000; }
.niete.lo { top: 8px; left: 8px; } .niete.ro { top: 8px; right: 8px; }
.niete.lu { bottom: 8px; left: 8px; } .niete.ru { bottom: 8px; right: 8px; }

/* ------------------------------------------------------------ Knöpfe, Schilder, Felder */
.knopf {
  display: block; position: relative; padding: 8px 26px; text-align: center;
  font: 700 13px/1.3 Cinzel, Georgia, serif; letter-spacing: .05em; color: #2a1405; text-decoration: none;
  border-radius: 999px; border: 1px solid #5a3510; cursor: pointer;
  background: linear-gradient(180deg, #f3d89a 0%, #d9a95a 45%, #b47b34 55%, #d6a45a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 0 #1a0d06;
}
.knopf:hover { filter: brightness(1.08); color: #5a1a08; }
.knopf[aria-current] { background: linear-gradient(180deg, #ffe8b0 0%, #e8b968 45%, #c48a3e 55%, #e6b465 100%); color: #5a1a08; }
.knopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button.knopf { width: auto; min-height: 0; }

.schild {
  position: relative; margin: 0 0 12px; padding: 9px 26px; text-align: center;
  font: 700 14px/1.3 Cinzel, Georgia, serif; letter-spacing: .08em; text-transform: none;
  color: var(--gold); text-shadow: 0 1px 0 #000, 0 0 8px rgba(241,160,60,.35);
  background: linear-gradient(180deg, #3a2418, #1d110b); border-top: 1px solid #6b4a2a; border-bottom: 1px solid #6b4a2a;
}
.schild::before, .schild::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px; transform: rotate(45deg);
  background: radial-gradient(circle at 35% 35%, #ff7a6a, #a1150a 60%, #4a0703); box-shadow: 0 0 6px rgba(255,40,20,.6); }
.schild::before { left: 10px; } .schild::after { right: 10px; }

.panel {
  background: linear-gradient(180deg, #24160f, #150c08); border: 1px solid var(--rost); border-radius: 6px; padding: 14px;
  box-shadow: inset 0 0 0 1px #0a0504, inset 0 0 30px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.6);
}
.panel p { margin: 0 0 10px; font-size: 14px; }
.panel code { color: var(--gold); }

.feld { width: 100%; min-height: 32px; padding: 0 10px; border-radius: 3px; border: 1px solid #6b4a2a; background: #120a07; color: #f1dcb0; font: inherit; }
.feld::placeholder { color: #8a7458; }

/* ------------------------------------------------------------ obere Leiste */
.leiste { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.leiste .login { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1 1 420px; }
.leiste .login .feld { flex: 1 1 140px; max-width: 200px; }
.leiste .knopf { display: inline-block; padding: 6px 26px; }
.leiste-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.leiste-links form { margin: 0; }
.angemeldet { margin: 0; color: var(--hell); }
.angemeldet strong { color: var(--gold); }
.klein-link { font-size: 13px; color: var(--bronze); }

/* ------------------------------------------------------------ Kopf mit Logo */
.kopf {
  display: flex; justify-content: center; align-items: center; padding: 34px 20px 70px;
  border-radius: 4px; border: 1px solid var(--rost);
  background: radial-gradient(ellipse at 50% 60%, rgba(150,50,15,.45), transparent 65%), #160b07 url(hintergrund.jpg) center / 512px repeat;
}
.kopf a { display: block; line-height: 0; width: 100%; max-width: 760px; }
.kopf img { width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.8)); }

/* ------------------------------------------------------------ drei Spalten */
.spalten { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: -56px; position: relative; padding: 0 8px 8px; }
.menue { flex: 1 1 216px; max-width: 100%; order: 1; }   /* breit genug für den längsten Knopf – sonst springt das Menü beim Aufklappen */
.inhalt { flex: 999 1 520px; min-width: 0; order: 2; }
.rand { flex: 1 1 230px; max-width: 100%; order: 3; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .inhalt { order: 1; } .menue { order: 2; } .rand { order: 3; } }

.menue ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* Aufklappbare Menügruppen (per Klick, ohne JavaScript) */
.menue .gruppe { margin: 0 0 8px; }
.menue .gruppe:last-child { margin-bottom: 0; }
.menue .gruppe > summary { list-style: none; cursor: pointer; user-select: none; margin-bottom: 0; }
.menue .gruppe > summary::-webkit-details-marker { display: none; }
.menue .gruppe > summary:hover { color: #ffe3a6; }
.menue .gruppe > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.menue .gruppe[open] > summary { margin-bottom: 10px; }
/* Pfeil hinter dem Gruppennamen: zu = nach rechts, offen = nach unten */
.menue .gruppe > summary::after {
  right: 12px; width: 0; height: 0; margin-top: -5px; transform: none; border-radius: 0;
  background: none; box-shadow: none;
  border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent var(--gold);
  transition: transform .15s;
}
.menue .gruppe[open] > summary::after { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .menue .gruppe > summary::after { transition: none; } }

.rand .knopf { margin-top: 10px; }
.online { margin: 0 0 10px; color: #9be08a; font-weight: 700; }
.online::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #43c443; box-shadow: 0 0 6px #43c443; }
.offline { margin: 0 0 10px; color: #ff8a7a; font-weight: 700; }
.zahlen { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.zahlen dd { margin: 0; text-align: right; font-weight: 700; color: var(--gold); }
.partner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.partner img { display: block; max-width: 160px; height: auto; }
.partner a { color: var(--bronze); }
.partner a:hover { opacity: .85; }

/* ------------------------------------------------------------ Pergament (Inhalt) */
.inhalt {
  position: relative; margin-top: 70px; padding: 110px 32px 30px; border-radius: 8px;
  color: var(--tinte); text-align: justify;
  background: radial-gradient(ellipse at 50% 0%, #f8ecca, #ecd7a4 60%, #dcbd7f);
  border: 2px solid #3a2414;
  box-shadow: inset 0 0 0 4px var(--bronze), inset 0 0 40px rgba(120,70,20,.45), 0 10px 30px rgba(0,0,0,.7);
}
.inhalt .wappen { position: absolute; left: 50%; top: -96px; width: 150px; height: auto !important; transform: translateX(-50%) rotate(-2deg);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); pointer-events: none; }
.inhalt a { color: var(--blutrot); }
.inhalt a:hover { color: #c22a12; }
.inhalt h1 { margin: 0 0 14px; text-align: center; font: 700 24px/1.25 Cinzel, Georgia, serif; letter-spacing: .05em; color: var(--titelrot); }
.inhalt h2 { font: 700 17px/1.3 Cinzel, Georgia, serif; color: #6e1a0c; margin: 1.3em 0 .6em; padding: 0 0 4px;
  border-bottom: 1px solid rgba(90,22,9,.35); text-align: left; }
.inhalt h3 { font-size: 15px; color: #6e1a0c; text-align: left; }
.inhalt h4 { font-size: 15px; }
@media (max-width: 600px) {
  .inhalt { text-align: left; margin-top: 50px; padding: 110px 18px 24px; }
  .inhalt .wappen { width: 110px; top: -50px; }
}

/* Alte Inhaltsseiten: Höhe aus dem Bild selbst, Bilder in Tabellen nicht schrumpfen */
.inhalt img { height: auto !important; }
.inhalt table img { max-width: none; }

/* Trenner mit rotem Stein (z.B. zwischen News) */
.trenner, .inhalt hr { position: relative; height: 14px; margin: 18px 0; border: 0; background: none; }
.trenner::before, .inhalt hr::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px;
  background: linear-gradient(90deg, transparent, #3a2414 12%, #3a2414 88%, transparent); }
.trenner::after, .inhalt hr::after { content: ""; position: absolute; left: 50%; top: 2px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg);
  background: radial-gradient(circle at 35% 35%, #ff7a6a, #a1150a 60%, #4a0703); }

/* ------------------------------------------------------------ Formulare im Inhalt */
.inhalt input, .inhalt textarea, .inhalt select { font: inherit; width: 100%; padding: 6px 8px; border: 1px solid #8a5a2a; border-radius: 4px; background: #fffaf0; color: var(--tinte); }
.inhalt input[type=checkbox], .inhalt input[type=radio] { width: auto; }
.inhalt button:not(.knopf) {
  position: relative; font: 700 13px/1.3 Cinzel, Georgia, serif; letter-spacing: .05em; color: #2a1405; padding: 8px 28px; min-height: 0; cursor: pointer;
  border-radius: 999px; border: 1px solid #5a3510;
  background: linear-gradient(180deg, #f3d89a 0%, #d9a95a 45%, #b47b34 55%, #d6a45a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 0 #6b4a22;
}
.inhalt button:not(.knopf):hover { filter: brightness(1.08); }
.formular { display: flex; flex-direction: column; gap: 6px; max-width: 560px; text-align: left; }
.formular fieldset { border: 1px solid rgba(90,22,9,.35); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.formular legend { font-weight: 700; color: #6e1a0c; }
.formular small { color: #6a4a2a; }
.formular .check { display: flex; gap: 8px; align-items: flex-start; }
.formular .raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.formular button { align-self: flex-start; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hinweis { padding: 10px 14px; border-radius: 4px; background: var(--flaeche); border-left: 4px solid #8a5a2a; text-align: left; }
.hinweis.ok { border-color: var(--ok); }
.hinweis.fehler { border-color: var(--fehler); }

/* ------------------------------------------------------------ Tabellen, Listen */
.liste { border-collapse: collapse; width: 100%; margin: 8px 0 16px; text-align: left; }
.liste th { font-weight: 700; color: #6e1a0c; border-bottom: 2px solid rgba(90,22,9,.35); }
.liste th, .liste td { border-bottom: 1px solid rgba(90,22,9,.18); padding: 5px 8px; vertical-align: top; }
.liste .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle-scroll { overflow-x: auto; }
/* Multis: 15 Spalten – kompakt, damit alles ohne Scrollen passt; Zahlen und Überschriften rechtsbündig */
.multis { font-size: 13px; }
.multis th, .multis td { padding: 4px 4px; vertical-align: middle; }
.multis th { white-space: nowrap; }
.multis th.zahl, .multis td.zahl { text-align: right; }
.multis td:nth-child(2) { white-space: nowrap; }
.multis img { width: 56px; height: auto; display: block; }
/* Kopfzeile bleibt stehen: Tabelle scrollt in ihrem eigenen Kasten, die Überschriften sind oben festgepinnt */
.multis-rahmen { max-height: 75vh; overflow: auto; border-bottom: 1px solid rgba(90,22,9,.18); }
/* kein Abstand über der Tabelle und getrennte Rahmen – sonst springt die Kopfzeile beim Losscrollen */
.multis-rahmen .multis { margin: 0; border-collapse: separate; border-spacing: 0; }
.multis-rahmen .multis thead th { border-bottom: 0; }
.multis thead th { position: sticky; top: 0; z-index: 1; background: #f1dfb2; box-shadow: inset 0 -2px 0 rgba(90,22,9,.35); }
.multis th[aria-sort] { color: var(--blutrot); }
.werte { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; text-align: left; }
.werte dd { margin: 0; }
.chars li.leer { color: #8a7a6a; }
.lock.up { color: var(--ok); }
.lock.down { color: var(--fehler); }
.reiter { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; }
.reiter a[aria-current] { font-weight: 700; text-decoration: none; }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.mehrspaltig { columns: 3 140px; padding-left: 18px; text-align: left; }
.suche { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.suche input { width: auto; flex: 1 1 160px; }
.datum { color: #7a5532; margin: 0; font-size: .9em; }

/* Staffbereich */
.page-eintrag { border: 1px solid rgba(90,22,9,.3); border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; background: var(--flaeche); text-align: left; }
.page-eintrag p { margin: 0 0 6px; }
.page-eintrag form + form { margin-top: 8px; }
form.inline { display: inline; }
.inhalt button.klein { padding: 2px 10px; font-size: 12px; }

/* Startseite */
.bild-text { display: flex; gap: 20px; align-items: center; margin: 20px 0; }
.bild-text.rechts { flex-direction: row-reverse; }
.bild-text > a { flex: 0 0 auto; line-height: 0; }
.bild-text p { margin: 0; }
@media (max-width: 600px) { .bild-text, .bild-text.rechts { flex-direction: column; } }
.mitte { text-align: center; }
.knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.inhalt .knoepfe a {
  position: relative; padding: 8px 30px; text-decoration: none; font: 700 13px/1.3 Cinzel, Georgia, serif; letter-spacing: .05em; color: #2a1405;
  border-radius: 999px; border: 1px solid #5a3510;
  background: linear-gradient(180deg, #f3d89a 0%, #d9a95a 45%, #b47b34 55%, #d6a45a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 0 #6b4a22;
}
.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 201px)); justify-content: center; gap: 12px; margin: 24px 0; }
.galerie a { line-height: 0; }
.bild-text img, .galerie img { border: 3px solid #2a1810; box-shadow: 0 0 0 1px var(--bronze), 0 3px 8px rgba(0,0,0,.4); }

/* Staffteam */
.inhalt h2.mitte { text-align: center; border-bottom: 0; margin-bottom: .4em; }
.team-rang { margin: 0 0 18px; }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.team li { width: 190px; padding: 12px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--flaeche); border: 1px solid rgba(90,22,9,.3); border-radius: 6px; box-shadow: 0 2px 6px rgba(80,40,10,.2); }
.team img { max-height: 200px; width: auto; }
.team strong { color: var(--titelrot); font: 700 14px/1.3 Cinzel, Georgia, serif; }
.team small { color: #7a5532; font-size: 12px; }
.aufgaben { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0; }
.aufgaben span { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #ead2a0; border: 1px solid #c9a464; }
.team-ehren { list-style: none; padding: 0; margin: 0; text-align: center; }

/* News */
.news, .news-kurz { text-align: left; }
.inhalt .news h2, .inhalt .news-kurz h3 { border-bottom: 0; }
.neuigkeiten { margin-top: 24px; }

/* ------------------------------------------------------------ Fuß */
.fuss { text-align: center; font-size: 13px; color: #a88d66; padding: 14px 10px 6px; }
.fuss img { display: block; width: 44px; height: auto; margin: 0 auto 8px; opacity: .8; }
.fuss p { margin: 4px 0; }
.fuss a { color: #e0be7c; }

/* Screenshot-Seite: alle Vorschaubilder gleich groß */
.screens { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 16px; }
.screens a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--tinte); text-align: center; }
.inhalt .screens img { width: 100%; max-width: 240px; height: 165px !important; object-fit: cover;
  border: 3px solid #2a1810; box-shadow: 0 0 0 1px var(--bronze), 0 3px 8px rgba(0,0,0,.4); transition: transform .15s; }
.screens a:hover img { transform: scale(1.03); }
.screens a:hover span { color: var(--blutrot); text-decoration: underline; }

/* Bronze-Plaketten: kleine Nieten links und rechts auf allen runden Knöpfen */
.knopf::before, .knopf::after,
.inhalt button:not(.knopf):not(.klein)::before, .inhalt button:not(.knopf):not(.klein)::after,
.inhalt .knoepfe a::before, .inhalt .knoepfe a::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c8, #8a5a20 60%, #3a2008); box-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.knopf::before, .inhalt button:not(.knopf):not(.klein)::before, .inhalt .knoepfe a::before { left: 10px; }
.knopf::after, .inhalt button:not(.knopf):not(.klein)::after, .inhalt .knoepfe a::after { right: 10px; }
/* Menü: etwas enger, damit lange Einträge in eine Zeile passen */
.menue .knopf { padding: 8px 18px; letter-spacing: .03em; white-space: nowrap; }
.menue .knopf::before { left: 7px; }
.menue .knopf::after { right: 7px; }

/* Alter hinter dem Charakternamen */
.chars .alter { color: #7a5532; margin-left: 6px; }

/* Vendoren: Taschen und ihr Inhalt */
.waren tbody.tasche { border-left: 4px solid #8e1b0b; }
.waren tr.tasche-kopf td { background: #e7cf9b; font-weight: 700; color: #4a1406; }
.waren tr.tasche-inhalt td { background: rgba(251, 241, 214, .75); font-style: italic; font-size: .93em; color: #5a3a1c; }
.waren tr.tasche-inhalt td:first-child { padding-left: 28px; }
.waren tr.tasche-inhalt td:first-child::before { content: "└ "; color: #a07a4a; font-style: normal; }

/* Login-Leiste: angemeldet bleiben */
.login .bleiben { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--bronze); white-space: nowrap; cursor: pointer; }
.login .bleiben input { accent-color: #c9a464; margin: 0; }

/* Status: "Heute sind oder waren im Spiel" immer zweispaltig */
.heute-liste { columns: 2; column-gap: 24px; margin: 0; padding-left: 18px; text-align: left; }
.heute-liste li { break-inside: avoid; }
