/* planisdracoria.de — Stil wie Coll: Nachthimmel und Gold aus dem Startbild, Pergament und Tusche aus der Spielkarte.
   Keine externen Schriften oder Dienste. */

:root {
    --nacht: #0f1116;
    --nacht-2: #151a23;
    --nacht-3: #1c2330;
    --linie: #2a3342;
    --text: #e9e3d3;
    --leise: #a7a08f;
    --gold: #f3d27a;
    --gold-tief: #c99a3e;
    --tuerkis: #3d8b92;
    --magenta: #b23a6e;
    --pergament: #ecdfc0;
    --pergament-rand: #cdb888;
    --tinte: #2a2016;
    --tinte-rot: #7b2f1d;
    --fehler: #e4604f;
    --ok: #6fbf7a;
    --radius: 12px;
    --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    color: var(--text);
    background-color: var(--nacht);
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 240, 200, .55), transparent 60%),
        radial-gradient(1px 1px at 72% 9%, rgba(255, 240, 200, .45), transparent 60%),
        radial-gradient(1.5px 1.5px at 38% 64%, rgba(255, 240, 200, .35), transparent 60%),
        radial-gradient(1px 1px at 88% 52%, rgba(255, 240, 200, .40), transparent 60%),
        radial-gradient(1px 1px at 55% 88%, rgba(255, 240, 200, .30), transparent 60%),
        radial-gradient(1200px 700px at 50% -10%, rgba(61, 139, 146, .16), transparent 70%);
    background-size: 900px 900px, 700px 700px, 1100px 1100px, 800px 800px, 1000px 1000px, 100% 100%;
    background-attachment: fixed;
    font: 17px/1.65 var(--sans);
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff1c2; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--gold); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.rahmen { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.schmal { max-width: 860px; }
.zentriert { text-align: center; }
.leise { color: var(--leise); }
.klein { font-size: .88rem; }
.springen { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--nacht); padding: 8px 14px; z-index: 50; }
.springen:focus { left: 8px; top: 8px; }

/* ---------- Kopf ---------- */
.kopf {
    position: sticky; top: 0; z-index: 20;
    background: rgba(15, 17, 22, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(243, 210, 122, .18);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.marke img { border-radius: 9px; }
.marke-coll { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: #fff6dc; }
.marke-welt { font-family: var(--serif); color: var(--gold); letter-spacing: .06em; font-size: 1rem; }
.navi ul, .menue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.navi a, .menue a {
    display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .97rem;
}
.navi a:hover, .menue a:hover { background: var(--nacht-3); color: var(--gold); }
.navi a[aria-current="page"], .menue a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold-tief); }
.menue { display: none; position: relative; }
/* Sprachumschalter (30.09.2026): immer sichtbar, auch neben „Menü“ auf dem Handy */
.sprachwahl {
    flex: none; display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 10px;
    border: 1px solid var(--gold-tief); border-radius: 8px; color: var(--gold); text-decoration: none;
    font-weight: 700; letter-spacing: .06em; font-size: .9rem;
}
.sprachwahl:hover { background: rgba(243, 210, 122, .1); color: #fff1c2; }
.unsichtbar {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sprachen a[aria-current] { color: var(--gold); text-decoration: none; font-weight: 700; }
fieldset.englisch { border: 1px solid var(--linie); border-radius: 8px; padding: 12px 14px 16px; margin: 10px 0; display: grid; gap: 8px; }
fieldset.englisch legend { padding: 0 6px; color: var(--gold); }
.kopf-innen .navi { margin-left: auto; }
.menue summary {
    list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--linie); border-radius: 8px; color: var(--gold);
}
.menue summary::-webkit-details-marker { display: none; }
.menue[open] nav {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    background: var(--nacht-2); border: 1px solid var(--linie); border-radius: var(--radius); padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.menue[open] ul { flex-direction: column; }

/* ---------- Knöpfe ---------- */
.knopf {
    display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--gold-tief);
    background: linear-gradient(180deg, #f7dc8c, #d7a647); color: #231a08; font-weight: 700; text-decoration: none;
    box-shadow: 0 6px 20px rgba(201, 154, 62, .25); cursor: pointer; font: inherit; font-weight: 700;
}
.knopf:hover { color: #231a08; filter: brightness(1.07); }
.knopf-zweit { background: transparent; color: var(--gold); box-shadow: none; }
.knopf-zweit:hover { color: #fff1c2; background: rgba(243, 210, 122, .08); }
.knopf-tinte { background: var(--tinte); border-color: var(--tinte); color: var(--pergament); box-shadow: none; }
.knopf-tinte:hover { color: #fff; }
.knopf-gefahr { background: #5a1d17; border-color: var(--fehler); color: #ffd9d3; box-shadow: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }

/* ---------- Startseite ---------- */
.held { padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 5vw, 56px); }
.held-innen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.held-bild { position: relative; justify-self: center; width: min(440px, 80vw); }
.held-bild::before {
    content: ""; position: absolute; inset: -12%;
    background: radial-gradient(circle, rgba(243, 210, 122, .22), rgba(61, 139, 146, .12) 45%, transparent 70%);
    z-index: -1;
}
.held-bild img { width: 100%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); }
.vorzeile { font-family: var(--serif); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--gold-tief); margin-bottom: .6em; }
.held h1 { display: flex; flex-direction: column; gap: .05em; }
.h1-welt { color: var(--gold); }
.einleitung { font-size: 1.15rem; color: #ddd5c2; max-width: 38em; }
.seitenkopf { padding: clamp(32px, 6vw, 72px) 0 8px; }

/* ---------- Abschnitte und Raster ---------- */
.abschnitt { padding: clamp(28px, 5vw, 64px) 0; }
.band, .band-dunkel {
    background: linear-gradient(180deg, rgba(243, 210, 122, .06), rgba(61, 139, 146, .07));
    border-block: 1px solid rgba(243, 210, 122, .15);
}
.band-dunkel { background: rgba(0, 0, 0, .28); }
/* Neuer Hauptbereich (Bestiarium): klar von der Liste darüber getrennt */
.abschnitt-neu { margin-top: 36px; border-top: 2px solid rgba(243, 210, 122, .35); }
.raster { display: grid; gap: 20px; }
.raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raster-wesen { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.raster-szenen { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 28px; }

/* ---------- Karten ---------- */
.karte {
    background: linear-gradient(180deg, var(--nacht-2), #121720);
    border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
}
.karte > h3, .karte > h4, .karte > p { padding-inline: 18px; }
.karte > p:last-child { padding-bottom: 6px; }
.merkmal img, .wesen img, .schritt img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: contain;
    background: radial-gradient(ellipse at 50% 60%, rgba(243, 210, 122, .16), rgba(61, 139, 146, .10) 45%, transparent 75%), #0c0f14;
    border-bottom: 1px solid var(--linie);
}
.merkmal h3, .wesen h4 { margin-top: 14px; }
.wesen p { font-size: .93rem; color: #cfc8b6; }
.raster-szenen .wesen img { aspect-ratio: 460 / 260; object-fit: cover; background: #0c0f14; }
.szene { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); background: #0c0f14; }
.szene img { width: 100%; aspect-ratio: 460 / 260; object-fit: cover; }
.szene figcaption { padding: 10px 14px; font-family: var(--serif); color: var(--gold); }
.szenen { margin: 20px 0 28px; }

/* ---------- Pergament (Lore, Meldungen) ---------- */
.pergament {
    color: var(--tinte);
    background:
        radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .25), transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(122, 90, 40, .28), transparent 55%),
        radial-gradient(ellipse at 0% 0%, rgba(122, 90, 40, .22), transparent 50%),
        var(--pergament);
    border: 1px solid var(--pergament-rand);
    border-radius: 6px;
    box-shadow: 0 0 0 6px rgba(205, 184, 136, .12), 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 60px rgba(122, 90, 40, .25);
}
.schriftrolle { padding: clamp(24px, 5vw, 56px); font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; }
.schriftrolle::after { content: ""; display: block; clear: both; }
.pergament h1, .pergament h2, .pergament h3 { color: var(--tinte-rot); }
.pergament a { color: var(--tinte-rot); }
.pergament a.knopf-tinte, .pergament a.knopf-tinte:hover { color: var(--pergament); }
.initial::first-letter {
    float: left; font-size: 3.4em; line-height: .9; padding: .06em .1em 0 0; color: var(--tinte-rot); font-weight: 700;
}
.kapitelnummer { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: #8a6a3a; margin-bottom: .3em; }
.kapitelbild {
    float: right; width: min(260px, 42%); margin: 0 0 16px 24px; border-radius: 10px;
    background: radial-gradient(ellipse at 50% 60%, rgba(122, 90, 40, .28), transparent 70%);
}
.gespiegelt .kapitelbild { float: left; margin: 0 24px 16px 0; }
.kapitelwahl, .familienwahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kapitelwahl a, .familienwahl a {
    padding: 6px 14px; border: 1px solid var(--linie); border-radius: 999px; text-decoration: none; font-size: .92rem;
    background: var(--nacht-2);
}
.familienwahl { margin-bottom: 28px; }
.gilden { margin-top: 24px; }
.gilde { padding: 22px 4px 8px; border-top: 3px solid var(--gold-tief); }
.gilde .spruch { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }

/* ---------- Bestiarium ---------- */
details.familie { margin-bottom: 26px; }
details.familie > summary { cursor: pointer; list-style: none; padding: 6px 0 10px; border-bottom: 1px solid var(--linie); margin-bottom: 16px; }
details.familie > summary::-webkit-details-marker { display: none; }
details.familie > summary h3 { display: inline; }
details.familie > summary::before { content: "▾ "; color: var(--gold-tief); }
details.familie:not([open]) > summary::before { content: "▸ "; }

/* ---------- Spielen ---------- */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.schritt { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; }
.schritt img { height: 100%; border-bottom: 0; border-right: 1px solid var(--linie); }
.schritt > div { padding: 20px 26px; position: relative; }
.schrittnummer {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
    background: linear-gradient(180deg, #f7dc8c, #d7a647); color: #231a08; font-weight: 700; font-family: var(--serif);
}
.schritt h2 { font-size: 1.5rem; }
.liste { padding-left: 1.2em; }
.liste li { margin-bottom: .6em; }
code.adresse {
    display: block; margin: 8px 0; padding: 10px 12px; background: #0b0e13; border: 1px solid var(--linie); border-radius: 8px;
    font-size: .8rem; word-break: break-all; color: #f2e6c4;
}

/* ---------- Neuigkeiten ---------- */
.neuigkeit { display: flex; flex-direction: column; }
.neuigkeit .kachel-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: radial-gradient(ellipse at 50% 60%, rgba(243, 210, 122, .14), transparent 70%), #0c0f14; }
.kachel-text { padding: 16px 18px 8px; }
.kachel-text h3 a { color: var(--gold); text-decoration: none; }
.datum { font-size: .85rem; color: var(--leise); margin-bottom: .3em; letter-spacing: .04em; }
.pergament .datum { color: #7a6443; }
.meldungsbild, .vorschau { width: 100%; max-width: 520px; margin: 0 auto 1.2em; border-radius: 10px; background: rgba(42, 32, 22, .12); }

/* ---------- Fragen ---------- */
.frage { margin-bottom: 12px; }
.frage summary { cursor: pointer; padding: 16px 20px; font-family: var(--serif); font-size: 1.15rem; color: var(--gold); list-style: none; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; float: right; color: var(--gold-tief); }
.frage[open] summary::after { content: "–"; }
.frage p { padding: 0 20px 8px; }

/* ---------- Textseiten ---------- */
.text h2 { font-size: 1.35rem; margin-top: 1.6em; }
.text ul { padding-left: 1.2em; }

/* ---------- Fuß ---------- */
.fuss { margin-top: 40px; border-top: 1px solid rgba(243, 210, 122, .15); background: rgba(0, 0, 0, .3); padding: 36px 0 20px; }
.fuss-innen { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.fuss-marke { font-family: var(--serif); color: var(--gold); font-size: 1.25rem; margin-bottom: .3em; }
.fuss nav { display: flex; gap: 36px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 6px; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--gold); }
.fehlerbild { margin: 0 auto 20px; border-radius: var(--radius); border: 1px solid var(--linie); }

/* ---------- Verwaltung ---------- */
.formular { display: grid; gap: 8px; padding: 22px; margin-bottom: 20px; }
.formular label { font-weight: 600; margin-top: 6px; }
.formular input, .formular textarea, .formular select {
    width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--linie); background: #0b0e13; color: var(--text); font: inherit;
}
.formular textarea { resize: vertical; line-height: 1.5; }
.formular .knopf { justify-self: start; margin-top: 10px; }
.haken { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; }
.haken input { width: auto; }
.gefahr { border-color: rgba(228, 96, 79, .4); }
.meldung { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--linie); background: var(--nacht-2); }
.meldung-fehler { border-color: var(--fehler); color: #ffd6cf; }
.meldung-ok { border-color: var(--ok); color: #d7f5dc; }
.tabelle { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle .rechts { text-align: right; }
.marke-status { font-size: .8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--linie); }
.status-sichtbar { border-color: var(--ok); color: var(--ok); }
.status-geplant { border-color: var(--gold-tief); color: var(--gold); }
.status-Entwurf { color: var(--leise); }
.navi-sichtbar { display: block !important; }
form.inline { display: inline; }
button.link { background: none; border: 0; color: var(--text); font: inherit; padding: 8px 12px; cursor: pointer; }
button.link:hover { color: var(--gold); }
.vorschau-meldung { padding: 24px; margin-bottom: 20px; font-family: var(--serif); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 980px) {
    .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .raster-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .navi:not(.navi-sichtbar) { display: none; }
    .menue { display: block; }
    .held-innen { grid-template-columns: 1fr; text-align: center; }
    .held-innen .knoepfe { justify-content: center; }
    .held h1 { align-items: center; }
    .einleitung { margin-inline: auto; }
    .raster-2 { grid-template-columns: 1fr; gap: 24px; }
    .schritt { grid-template-columns: 1fr; }
    .schritt img { border-right: 0; border-bottom: 1px solid var(--linie); height: auto; }
    .fuss-innen { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .raster-4, .raster-3 { grid-template-columns: 1fr; }
    .kapitelbild, .gespiegelt .kapitelbild { float: none; width: 100%; margin: 0 0 16px; }
    .marke-welt { display: none; }
    .fuss nav { flex-direction: column; gap: 12px; }
    .navi-sichtbar ul { flex-wrap: wrap; }
    .raster-wesen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .wesen h4 { font-size: 1rem; }
    .wesen p { font-size: .82rem; }
    .karte > h3, .karte > h4, .karte > p { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
