/* Hilfe zu Die Ewigen */

:root {
    --grund: #05070c;
    --flaeche: rgba(14, 17, 26, 0.94);
    --flaeche-2: rgba(255, 255, 255, 0.045);
    --linie: rgba(255, 255, 255, 0.10);
    --text: #e4e7ee;
    --text-hell: #ffffff;
    --text-leise: #a2aabb;
    --akzent: #5aa0ff;
    --akzent-hell: #8cc0ff;
    --akzent-weich: rgba(90, 160, 255, 0.14);
    --gruen: #4cc38a;
    --orange: #f0a84a;
    --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background-color: var(--grund);
    background-image: linear-gradient(rgba(5, 7, 12, 0.55), rgba(5, 7, 12, 0.88)), url(img/bg.jpg);
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--akzent);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--akzent-hell);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
}

/* Kopfleiste */

.kopf {
    background: rgba(5, 7, 12, 0.92);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 1px 0 rgba(90, 160, 255, 0.25);
}

.kopf-innen {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

.marke {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.marke-spiel {
    color: var(--text-hell);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.marke-hilfe {
    color: var(--akzent-hell);
    background: var(--akzent-weich);
    border: 1px solid rgba(90, 160, 255, 0.3);
    border-radius: 999px;
    padding: 0 0.7em;
    font-size: 0.9rem;
}

.suche {
    display: flex;
    flex: 1 1 260px;
    max-width: 440px;
    margin-left: auto;
}

.suche input {
    flex: 1;
    min-width: 0;
    padding: 0.5em 0.8em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--linie);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    font: inherit;
}

.suche input::placeholder {
    color: var(--text-leise);
}

.suche button {
    padding: 0 1em;
    color: #06111f;
    background: var(--akzent);
    border: 0;
    border-radius: 0 8px 8px 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.suche button:hover {
    background: var(--akzent-hell);
}

/* Aufteilung */

.rahmen {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.seitenleiste {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 12px 6px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 12px;
}

.nav-gruppe + .nav-gruppe {
    margin-top: 10px;
}

.nav-kopf {
    display: block;
    padding: 4px 12px;
    color: var(--text-leise);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-gruppe ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-gruppe a {
    display: block;
    padding: 0.3em 12px;
    color: var(--text);
    border-radius: 6px;
    font-size: 0.94rem;
    text-decoration: none;
}

.nav-gruppe a:hover {
    background: var(--flaeche-2);
    color: var(--text-hell);
}

.nav-gruppe a.aktiv {
    color: var(--text-hell);
    background: var(--akzent-weich);
    box-shadow: inset 3px 0 0 var(--akzent);
}

.themen-mobil {
    display: none;
    margin-bottom: 14px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 12px;
}

.themen-mobil summary {
    padding: 0.7em 1em;
    font-weight: 600;
    cursor: pointer;
}

.themen-mobil nav {
    padding: 0 6px 10px;
}

/* Seite */

.seite {
    max-width: 820px;
    padding: 22px 28px 28px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 14px;
    overflow-wrap: break-word;
}

.seite h1 {
    margin: 0 0 0.4em;
    color: var(--text-hell);
    font-size: 1.75rem;
    line-height: 1.25;
}

.seite h2 {
    margin: 1.8em 0 0.6em;
    padding-bottom: 0.3em;
    color: var(--text-hell);
    border-bottom: 1px solid var(--linie);
    font-size: 1.28rem;
    line-height: 1.3;
    scroll-margin-top: 16px;
}

.seite h3 {
    margin: 1.4em 0 0.4em;
    color: #d3d9e6;
    font-size: 1.06rem;
    scroll-margin-top: 16px;
}

.seite p,
.seite ul,
.seite ol,
.seite dl {
    margin: 0.7em 0;
}

.seite ul,
.seite ol {
    padding-left: 1.3em;
}

.seite li {
    margin: 0.25em 0;
}

.seite strong {
    color: var(--text-hell);
}

.seite .einleitung {
    color: #c9cfdb;
    font-size: 1.1rem;
}

.menue {
    padding: 0 0.35em;
    color: #d6e6ff;
    background: var(--akzent-weich);
    border: 1px solid rgba(90, 160, 255, 0.28);
    border-radius: 5px;
    font-size: 0.95em;
    white-space: nowrap;
}

.tipp,
.achtung {
    margin: 1em 0;
    padding: 0.75em 1em;
    border-left: 4px solid;
    border-radius: 8px;
}

.tipp {
    background: rgba(76, 195, 138, 0.09);
    border-color: var(--gruen);
}

.achtung {
    background: rgba(240, 168, 74, 0.10);
    border-color: var(--orange);
}

.tipp > :first-child,
.achtung > :first-child {
    margin-top: 0;
}

.tipp > :last-child,
.achtung > :last-child {
    margin-bottom: 0;
}

.tabelle {
    margin: 1em 0;
    overflow-x: auto;
}

.tabelle table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tabelle th,
.tabelle td {
    padding: 0.45em 0.7em;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--linie);
}

.tabelle th {
    color: var(--text-hell);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.seite dt {
    margin-top: 0.9em;
    color: var(--text-hell);
    font-weight: 700;
}

.seite dd {
    margin: 0.15em 0 0;
}

.seite .siehe {
    margin-top: 2em;
    padding-top: 0.9em;
    color: var(--text-leise);
    border-top: 1px solid var(--linie);
    font-size: 0.95rem;
}

.seiteninhalt {
    margin: 1.2em 0;
    padding: 0.7em 1em;
    background: var(--flaeche-2);
    border: 1px solid var(--linie);
    border-radius: 10px;
}

.seiteninhalt-kopf {
    display: block;
    margin-bottom: 0.3em;
    color: var(--text-leise);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.seite .seiteninhalt ul {
    margin: 0;
    padding-left: 1.1em;
    columns: 2 220px;
    column-gap: 2em;
}

.seite .seiteninhalt li {
    margin: 0 0 0.3em;
    break-inside: avoid;
}

mark {
    padding: 0 0.1em;
    color: inherit;
    background: rgba(240, 168, 74, 0.35);
    border-radius: 3px;
}

/* Blättern */

.blaettern {
    max-width: 820px;
    margin-top: 14px;
    display: flex;
    gap: 12px;
}

.blaettern a {
    flex: 1 1 0;
    padding: 0.7em 1em;
    color: var(--text-hell);
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 12px;
    text-decoration: none;
}

.blaettern a:hover {
    border-color: var(--akzent);
}

.blaettern span {
    display: block;
    color: var(--text-leise);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blaettern .weiter {
    margin-left: auto;
    text-align: right;
}

/* Startseite */

.kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.kachel {
    display: block;
    padding: 0.9em 1em;
    color: var(--text);
    background: var(--flaeche-2);
    border: 1px solid var(--linie);
    border-radius: 10px;
    text-decoration: none;
}

.kachel:hover {
    color: var(--text);
    border-color: var(--akzent);
}

.kachel strong {
    display: block;
    color: var(--text-hell);
}

.kachel span {
    color: var(--text-leise);
    font-size: 0.92rem;
}

.themenraster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 24px;
}

.themengruppe h3 {
    margin-top: 0.8em;
}

.seite .themengruppe ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Suche */

.suchergebnisse {
    padding-left: 1.3em;
}

.suchergebnisse > li {
    margin: 1em 0;
}

.treffer-titel {
    font-size: 1.08rem;
    font-weight: 600;
}

.seite .treffer-stelle {
    margin: 0.25em 0;
    color: var(--text-leise);
    font-size: 0.95rem;
}

/* Fuß */

.fuss {
    padding: 24px 16px 32px;
    color: var(--text-leise);
    font-size: 0.9rem;
    text-align: center;
}

.fuss a {
    color: var(--text-leise);
}

/* Handy und Tablet */

@media (max-width: 899px) {
    .rahmen {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .seitenleiste {
        display: none;
    }

    .themen-mobil {
        display: block;
    }

    .seite {
        padding: 16px 16px 20px;
    }

    .seite h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 520px) {
    .suche {
        flex-basis: 100%;
        max-width: none;
    }

    .blaettern {
        flex-direction: column;
    }

    .blaettern .weiter {
        margin-left: 0;
    }
}

@media print {
    body {
        color: #000;
        background: #fff;
    }

    .kopf,
    .seitenleiste,
    .themen-mobil,
    .blaettern,
    .fuss,
    .seiteninhalt {
        display: none;
    }

    .rahmen {
        display: block;
        padding: 0;
    }

    .seite {
        max-width: none;
        padding: 0;
        color: #000;
        background: none;
        border: 0;
    }

    .seite h1,
    .seite h2,
    .seite strong,
    .seite dt {
        color: #000;
    }
}
