/* Farben nach dem Wappen der Gilde (logo/letzte-instanz-logo.png): geschwärztes Eisen als Grund,
   Altgold der Schrift für Überschriften und Linien, das Blau des Portals für Knöpfe und Glanz. */
:root {
  --bg: #0c0b0a;          /* fast schwarz, leicht warm wie das Eisen des Schilds */
  --bg-raised: #1a1714;   /* Flächen: Karten, Menü, Tabellen */
  --line: #3a322a;        /* Kanten und Trennlinien, dunkle Bronze */
  --text: #ebe5d6;
  --muted: #a69d8d;
  --gold: #cfa968;        /* Altgold der Schrift */
  --gold-dim: #8f6e46;    /* Bronze der Beschläge */
  --blue: #0f62b8;        /* Portal, für Knöpfe */
  --blue-bright: #34a6e9; /* helles Portalblau, für Glanz und Hervorhebung */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(15, 98, 184, 0.28) 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.stage {
  margin: 0;
  padding: 6px 16px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
}

.hero {
  padding: 40px 16px 48px;
  text-align: center;
}

/* Wappen: gross auf der Startseite, klein über Menü und Einzelseiten */
.logo { display: block; width: min(360px, 78vw); height: auto; margin: 0 auto; filter: drop-shadow(0 0 28px rgba(52, 166, 233, 0.22)); }
.logo-small { display: block; width: 88px; height: auto; margin: 0 auto 12px; }
.sidebar .logo-link { display: block; padding: 0; border: 0; background: none; }
.sidebar .logo-link:hover, .sidebar .logo-link:focus-visible { background: none; }
.sidebar .logo-small { width: 120px; margin-bottom: 16px; }
/* Der Name steht im Wappen; die Überschrift bleibt für Screenreader und Suchmaschinen */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow {
  margin: 24px 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 34rem;
  margin: 16px auto 0;
  font-size: 1.1rem;
  color: var(--muted);
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-dim);
  border-radius: 6px;
}

.card h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
}

.card p { margin: 0 0 16px; color: var(--muted); }

.soon {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.note {
  margin: 40px 0 0;
  text-align: center;
  color: var(--muted);
}

footer {
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

footer p { margin: 0; }
footer .legal { margin-top: 6px; font-size: 0.75rem; opacity: 0.75; }

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover, .button:focus-visible { background: #1a7bd6; border-color: var(--gold); box-shadow: 0 0 18px rgba(52, 166, 233, 0.35); }

.hint { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }

/* Einzelseiten: Login-Ergebnis, Fehler, interner Bereich */
.panel {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 16px 56px;
  text-align: center;
}

.panel h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* Interner Bereich: volle Bildschirmbreite */
.panel.wide { max-width: none; padding: 48px 24px 56px; }

.panel h2 {
  margin: 56px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
}

.table-wrap { overflow-x: auto; }

.roster {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.roster th, .roster td { padding: 8px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roster th { padding: 0; }
.roster th button {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.roster th { text-align: left; }
.roster th.num { text-align: right; }
.roster th button:hover, .roster th button:focus-visible { color: var(--text); }
.roster th button::after { content: " ↕"; opacity: 0.35; }
.roster th[aria-sort="ascending"] button, .roster th[aria-sort="descending"] button { color: var(--gold); }
.roster th[aria-sort="ascending"] button::after { content: " ▲"; opacity: 1; }
.roster th[aria-sort="descending"] button::after { content: " ▼"; opacity: 1; }
.roster tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.roster tbody tr:last-child td { border-bottom: 0; }
.roster .num { text-align: right; font-variant-numeric: tabular-nums; }
.roster .own td { color: var(--gold); }
/* Die beiden Berufsspalten: ein Beruf pro Zeile */
#roster td:nth-last-child(-n+2) { white-space: nowrap; }

/* Mitgliederbereich: Menü links, Inhalt rechts */
.intern { flex: 1; display: flex; align-items: flex-start; }

.sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 220px;
  min-height: 100vh;
  padding: 32px 20px;
  background: var(--bg-raised);
  border-right: 1px solid var(--line);
}

.sidebar .eyebrow { margin: 0 0 24px; text-align: center; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li + li { margin-top: 4px; }
.sidebar a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
}
.sidebar a:hover, .sidebar a:focus-visible { background: rgba(255, 255, 255, 0.04); }
.sidebar a[aria-current="page"] { color: var(--gold); border-left-color: var(--gold); background: rgba(207, 169, 104, 0.10); }
.sidebar .menu-head { margin: 28px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.sidebar .who { margin: 32px 0 0; font-size: 0.85rem; color: var(--muted); }
.sidebar .who strong { color: var(--text); font-weight: 600; }
.button.small { margin-top: 12px; padding: 6px 16px; font-size: 0.9rem; }

.content { flex: 1; min-width: 0; max-width: none; margin: 0; padding: 40px 24px 56px; }
.content h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.content .count { margin: 8px 0 20px; color: var(--muted); }
.content .note { text-align: left; }

/* Questtabelle */
.quests .area { display: block; font-size: 0.8rem; color: var(--muted); }
.quests td { white-space: normal; }
.quests td.num { white-space: nowrap; }
/* Die Breiten der Mitgliedertabelle gelten hier nicht */
.quests td:nth-last-child(-n+2) { min-width: 0; }
.quests .people { min-width: 16rem; }
.quests tr:not(.shared) .people { color: var(--muted); }
.content h2 { margin: 40px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 400; color: var(--gold); }
.quests .lvl { color: var(--muted); }

@media (max-width: 760px) {
  .intern { flex-direction: column; align-items: stretch; }
  .sidebar { flex: none; position: static; min-height: 0; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .eyebrow { margin-bottom: 12px; }
  .sidebar .menu-head { margin: 12px 0 8px; padding-top: 12px; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar li + li { margin-top: 0; }
  .sidebar .who, .sidebar form { display: inline-block; margin: 12px 12px 0 0; vertical-align: middle; }
  .sidebar .who br { display: none; }
  .content { padding: 24px 16px 40px; }
  .quests .people { min-width: 9rem; }
  .quests th, .quests td { padding-left: 8px; padding-right: 8px; }
  .quests th { white-space: normal; }
  .quests th button { padding-left: 8px; padding-right: 8px; }
}

/* Mein Charakter */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.chips li { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.chips a { color: var(--text); text-decoration: none; }
.chips a:hover, .chips a:focus-visible, .chips a[aria-current="page"] { color: var(--gold); }
.char-nav .chips li { padding: 0; }
.char-nav .chips a { display: block; padding: 3px 12px; }

.char-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 24px; }
.char-picture {
  flex: 0 0 260px; height: 320px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #12365f 0%, var(--bg-raised) 70%);
  border: 1px solid var(--line); border-top: 2px solid var(--gold-dim); border-radius: 6px;
}
/* Das Bild von Blizzard ist breit und hat viel Rand, die Figur steht in der Mitte */
.char-picture img { display: block; height: 100%; width: auto; margin-left: 50%; transform: translateX(-50%); }
.char-id { flex: 1; min-width: 260px; }
.char-name { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; color: var(--gold); }
.char-name span { color: var(--muted); font-size: 1.2rem; }
.char-sub { margin: 0 0 12px; color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

.char-section { margin-top: 48px; scroll-margin-top: 16px; }
.content .char-section h2 { margin: 0 0 16px; }
.card h3 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 400; color: var(--gold); }
.card h4 { margin: 14px 0 6px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card-grid, .stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.card-grid .card, .stat-grid .card { padding: 18px 20px; }
.rank { font-size: 0.8rem; color: var(--muted); font-family: system-ui, sans-serif; }
.sub { display: block; font-size: 0.8rem; color: var(--muted); }
.sub-inline { font-size: 0.8rem; color: var(--muted); }
.good { color: #1eff00; }
.talents, .plain { list-style: none; margin: 0; padding: 0; }
.talents li { padding: 6px 0; border-top: 1px solid var(--line); }
.talents li:first-child { border-top: 0; }
.plain li { padding: 2px 0; }
.card details { margin-top: 12px; }
.card summary { cursor: pointer; color: var(--muted); }
.skill { margin: 0 0 6px; font-variant-numeric: tabular-nums; }

.bar { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--gold-dim); }
.bar-cell { width: 30%; }
.rep-friendly { color: #1eff00; }
.rep-hostile { color: #ff5c5c; }

.char-table td { vertical-align: top; }
.char-table td.stats { white-space: normal; min-width: 14rem; font-size: 0.9rem; }
.char-table td:nth-last-child(-n+2) { min-width: 0; }
.char-table a { text-decoration: none; }
.char-table a:hover { text-decoration: underline; }

/* Farben der Gegenstandsqualität wie im Spiel */
.q-poor { color: #9d9d9d; }
.q-common { color: #ffffff; }
.q-uncommon { color: #1eff00; }
.q-rare { color: #3d8bff; } /* im Spiel #0070dd, auf dunklem Grund zu schwach */
.q-epic { color: #a335ee; }
.q-legendary { color: #ff8000; }
.q-artifact, .q-heirloom { color: #e6cc80; }

@media (max-width: 760px) {
  .char-picture { flex-basis: 100%; height: 260px; }
  .card-grid, .stat-grid { grid-template-columns: 1fr; }
}
.char-table th {
  padding: 10px 14px; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.char-section > .chips { margin: 0 0 16px; }
/* Statistiken: lange Bezeichnungen umbrechen, Zahlen rechtsbündig */
.facts.counts { grid-template-columns: minmax(0, 1fr) auto; }
.facts.counts dd { text-align: right; }

/* Namen in der Mitgliederliste führen zur Charakterseite */
#roster td a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--gold-dim); }
#roster td a:hover, #roster td a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
.back { margin: 8px 0 0; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover, .back a:focus-visible { color: var(--gold); }

.facts a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--gold-dim); }
.facts a:hover, .facts a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }

/* Untermenü "Mein Charakter": die eigenen Gildencharaktere, eingerückt */
.sidebar .submenu { margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.sidebar .submenu li + li { margin-top: 0; }
.sidebar .submenu a { padding: 4px 10px; font-size: 0.92rem; color: var(--muted); }
.sidebar .submenu a[aria-current="page"] { color: var(--gold); }
.sidebar .submenu .lvl { font-size: 0.78rem; opacity: 0.8; }
.sidebar a.open { color: var(--gold); }

@media (max-width: 760px) {
  .sidebar li.has-sub { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .sidebar .submenu { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding-left: 8px; }
}

/* Raidplanung und DKP (app/dkp.py) */
.dkp a:not(.button) { color: var(--gold); }
.dkp h2 { margin-bottom: 16px; }
button.mini {
  padding: 4px 12px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
button.mini:hover, button.mini:focus-visible { border-color: var(--gold); color: var(--gold); }
.muted { color: var(--muted); }
form.inline { display: inline-block; margin: 2px 4px 2px 0; }

.list {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.list th, .list td { padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.list tbody tr:last-child td { border-bottom: 0; }

.form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  text-align: left;
}
.form label, .form fieldset { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.form label.grow { flex: 1 1 16rem; }
.form fieldset { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 4px 12px 8px; border: 1px solid var(--line); border-radius: 6px; }
.form label.radio { flex-direction: row; align-items: center; font-size: 1rem; color: var(--text); }
.form .button { margin-top: 0; padding: 8px 20px; }
input[type="text"], input[type="number"], input[type="datetime-local"], select {
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color-scheme: dark;
}
input.narrow { width: 6rem; }
/* eigene Zeile im Formular: wie viele Plätze verplant sind */
.form .sum { flex-basis: 100%; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.form .sum.warn { color: #ff8a70; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 1px; }

.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; text-align: left; align-items: start; }
/* Der Mitgliederbereich ist für den PC-Bildschirm gebaut: breite Karten, Eingabe und Knöpfe in einer Zeile */
.cols.wide { grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); }
.cols.loot { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.cols .list td:not(:first-child), .cols .list th:not(:first-child) { white-space: nowrap; }
.cols .list td { vertical-align: middle; }
form.inline { white-space: nowrap; }
.dkp code { padding: 1px 6px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px; font-size: 0.9em; }
.dkp input[type="file"] { padding: 8px 10px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.cols .card h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 400; color: var(--gold); }
.cols .card h4 { margin: 16px 0 4px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.cols .card p { margin: 0 0 8px; }
.cols .card .form { margin-top: 12px; }
.cols .card h3 + .form { margin: 0 0 14px; }
.report { margin-top: 6px; padding: 6px 10px; border-left: 2px solid var(--gold-dim); color: var(--muted); font-size: 0.92rem; }
.report strong { color: var(--gold); font-weight: 600; }
.queue { margin: 0; padding-left: 1.4rem; }
.queue li { padding: 4px 0; }
.queue li.own .name { color: var(--gold); }
.queue .actions { margin-top: 2px; }

/* Startseite: Raidtermine und die in der Administration gepflegten Inhalte */
/* Menü der Startseite: bleibt beim Scrollen oben stehen und springt zu den drei Bereichen */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 28px;
  padding: 10px 16px;
  background: rgba(12, 11, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topnav a {
  padding: 6px 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.topnav a:hover, .topnav a:focus-visible { color: var(--gold); border-bottom-color: var(--gold-dim); }
/* Kleines Wappen links im Menü; auf dem Handy entfällt es, dort steht das grosse direkt darunter */
.topnav .brand { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); padding: 0; border: 0; line-height: 0; }
.topnav .brand img { width: 56px; height: 56px; }
.topnav .brand:hover, .topnav .brand:focus-visible { border: 0; filter: drop-shadow(0 0 8px rgba(52, 166, 233, 0.6)); }
@media (max-width: 700px) { .topnav .brand { display: none; } }
.topnav form { margin: 0; }
.topnav a.login, .topnav button.login { padding: 5px 16px; font-family: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.6; color: #fff; background: var(--blue); border: 1px solid var(--gold-dim); border-radius: 6px; cursor: pointer; }
.topnav a.login:hover, .topnav a.login:focus-visible, .topnav button.login:hover, .topnav button.login:focus-visible { color: #fff; background: #1a7bd6; border-color: var(--gold); }
/* Hinweis nach dem Abmelden */
.notice { max-width: 760px; margin: 16px auto 0; padding: 12px 18px; text-align: center; color: var(--text); background: var(--bg-raised); border: 1px solid var(--gold-dim); border-radius: 6px; }
.notice a { color: var(--gold); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Sprungziele nicht unter dem stehenden Menü verstecken */
.block { scroll-margin-top: 72px; }
@media (max-width: 520px) { .topnav { gap: 2px 20px; } .topnav a { font-size: 1rem; } .block { scroll-margin-top: 120px; } }

/* Offene Abschnitte ohne Kasten: zentrierte Überschrift mit Zierlinie, Text in lesbarer Spaltenbreite */
.block { max-width: 760px; margin: 0 auto; padding: 16px 0 40px; }
.block > h2:first-child {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--gold);
}
/* Zierlinie unter der Überschrift: Goldlinie, die nach aussen ausläuft, mit blauem Punkt wie die Juwelen im Wappen */
.block > h2:first-child::after {
  content: "";
  display: block;
  width: min(280px, 70%);
  height: 11px;
  margin: 14px auto 0;
  background:
    radial-gradient(circle, var(--blue-bright) 0 3px, transparent 4px) center / 11px 11px no-repeat,
    linear-gradient(90deg, transparent, var(--gold-dim) 35%, transparent 46%, transparent 54%, var(--gold-dim) 65%, transparent) center / 100% 1px no-repeat;
}
.block > :last-child { margin-bottom: 0; }
.block .hint { margin: 16px 0 0; text-align: center; }
.block > p { color: var(--muted); }
.block .soon { display: table; margin: 12px auto 0; }
.block:not(.rich) > p { text-align: center; }
.block.rich > p:has(+ .soon) { text-align: center; }
.block.rich { font-size: 1.05rem; line-height: 1.75; }
/* Kontakte unter "Mitmachen": Namen der Gildenleitung als Plaketten */
.contacts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.contacts li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-left: 2px solid var(--gold-dim); border-radius: 4px; line-height: 1.4; }
.contacts li > div { display: flex; flex-direction: column; }
.contacts .avatar { flex: none; display: block; width: 44px; height: 44px; margin: 0; border: 1px solid var(--gold-dim); border-radius: 50%; background: var(--bg-raised); object-fit: cover; }
.contacts strong { color: var(--gold); font-weight: 600; }
.contacts span { font-size: 0.85rem; color: var(--muted); }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.dates li:last-child { border-bottom: 0; }
.dates time { color: var(--gold); font-variant-numeric: tabular-nums; }

/* Formatierter Text: öffentlich auf der Startseite und im Editor gleich */
.rich p, .rich ul, .rich ol, .rich blockquote { margin: 0 0 14px; color: var(--text); }
.rich h2:not(:first-child), .rich h3 { margin: 24px 0 8px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--gold); }
.rich h3 { font-size: 1.1rem; }
.rich a { color: var(--gold); }
.rich img { display: block; max-width: 100%; height: auto; margin: 16px auto; border: 1px solid var(--line); border-radius: 6px; }
.rich blockquote { padding: 4px 16px; border-left: 2px solid var(--gold-dim); color: var(--muted); }
.rich li { margin-bottom: 4px; }

/* Editor in der Administration */
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--bg-raised); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; }
.editor { min-height: 22rem; max-width: 960px; padding: 20px 24px; text-align: left; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.toolbar { max-width: 960px; }
.editor:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: -1px; }
.editor h2 { margin: 24px 0 8px; font-size: 1.4rem; }
.button.ghost { background: none; color: var(--text); }
.button.ghost:hover, .button.ghost:focus-visible { background: rgba(255, 255, 255, 0.05); }
dialog { width: min(720px, 94vw); padding: 24px; color: var(--text); background: var(--bg-raised); border: 1px solid var(--gold-dim); border-radius: 8px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog h2 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--gold); }
dialog canvas { display: block; width: 100%; height: auto; margin-bottom: 16px; border: 1px solid var(--line); cursor: grab; touch-action: none; }
dialog canvas:active { cursor: grabbing; }
.warn { color: #ff8a70; }

/* Ausrüstung als Figur (app/character.py, equipment): Plätze links und rechts, Waffen unten */
.char-avatar { flex: none; width: 84px; height: 84px; border: 1px solid var(--gold-dim); border-radius: 6px; }
.doll { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(260px, 420px) minmax(250px, 1fr); gap: 8px 16px; max-width: 1180px; margin-top: 8px; }
.doll-col { display: flex; flex-direction: column; gap: 8px; }
.doll-figure {
  position: relative; overflow: hidden; min-height: 520px;
  background: radial-gradient(ellipse at 50% 45%, #12365f 0%, rgba(18, 54, 95, 0.25) 45%, transparent 72%);
  border-radius: 8px;
}
/* Das Bild von Blizzard ist breit und hat viel Rand, die Figur steht in der Mitte */
.doll-figure img { position: absolute; top: 50%; left: 50%; height: 135%; width: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7)); }
.doll-weapons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 4px; }
.doll-weapons .slot { flex: 0 1 300px; }

.slot { position: relative; display: flex; align-items: center; gap: 12px; padding: 5px; color: var(--text); text-decoration: none; border: 1px solid transparent; border-radius: 6px; }
a.slot:hover, a.slot:focus-visible { background: rgba(255, 255, 255, 0.04); border-color: var(--line); outline: none; }
.slot-icon { flex: none; width: 52px; height: 52px; background: #0d0c0b; border: 2px solid currentColor; border-radius: 6px; overflow: hidden; }
.slot-icon img { display: block; width: 100%; height: 100%; }
.slot.empty { color: var(--line); }
.slot.empty .slot-name { color: var(--muted); }
.slot-text { min-width: 0; line-height: 1.3; }
.slot-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doll-col.right .slot { flex-direction: row-reverse; text-align: right; }

/* Tooltip wie im Spiel: erscheint neben dem Platz, bei Maus und bei Tastaturfokus */
.tip {
  display: none; position: absolute; z-index: 20; top: 0; left: calc(100% + 8px);
  width: 320px; padding: 10px 12px; text-align: left; font-size: 0.9rem; line-height: 1.45; font-weight: 400; color: #fff;
  background: rgba(8, 10, 22, 0.97); border: 1px solid #8a8f9c; border-radius: 6px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.slot:hover .tip, .slot:focus-visible .tip { display: block; }
.doll-col.right .tip { left: auto; right: calc(100% + 8px); }
/* Untere Plätze klappen nach oben auf; tabs.js schiebt jeden Tooltip zusätzlich ins Fenster */
.doll-col .slot:nth-child(n+5) .tip { top: auto; bottom: 0; }
.doll-weapons .tip { top: auto; bottom: calc(100% + 8px); left: 0; }
.tip-line { display: block; }
.tip-name { font-size: 1.05rem; font-weight: 600; }
.tip-pair { display: flex; justify-content: space-between; gap: 16px; }
.tip-gold { color: #ffd100; }
.tip-muted { color: #9d9d9d; }
.tip-transmog { color: #ff80ff; }
.tip .good { color: #1eff00; }
.coin { margin-left: 4px; }
.coin::after { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 3px; border-radius: 50%; vertical-align: -0.02em; }
.coin.gold::after { background: #f0c64a; }
.coin.silver::after { background: #c7c7cf; }
.coin.copper::after { background: #c9773f; }
@media (max-width: 900px) {
  .doll { grid-template-columns: 1fr; }
  .doll-figure { min-height: 360px; order: -1; }
  .doll-col.right .slot { flex-direction: row; text-align: left; }
  .tip, .doll-col.right .tip { left: 64px; right: auto; top: 100%; }
}

/* Charakterseite mit Reitern (site/tabs.js setzt body.tabbed): nur der gewählte Abschnitt ist sichtbar */
.tabbed .char-nav { margin-top: 28px; border-bottom: 1px solid var(--line); }
.tabbed .char-nav .chips { gap: 2px; margin: 0; }
.tabbed .char-nav .chips li { border: 0; border-radius: 0; font-size: 1rem; }
.tabbed .char-nav .chips a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbed .char-nav .chips a:hover, .tabbed .char-nav .chips a:focus-visible { color: var(--text); }
.tabbed .char-nav .chips a[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.tabbed .char-section { display: none; margin-top: 24px; }
.tabbed .char-section.active { display: block; }
/* Der Reiter nennt den Abschnitt schon */
.tabbed .content .char-section > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Verweise in Fusszeile und Menü (Datenschutz) */
footer a, .sidebar .legal a { display: inline; padding: 0; color: var(--muted); text-decoration: underline; border: 0; }
footer a:hover, footer a:focus-visible, .sidebar .legal a:hover, .sidebar .legal a:focus-visible { color: var(--gold); background: none; }
.sidebar .legal { margin: 20px 0 0; font-size: 0.8rem; }
