/* ==========================================================================
   Datei: basis.css
   Zweck: Grundlage jeder Seite: Schriften, Farb- und Maß-Tokens, Grundstil,
          Kopfzeile, Seitenfuß und Rechtstexte.
   Inhalt:
     1. Schriften (lokal, keine Verbindung zu Google)
     2. Farben, Schriften und Maße (Tokens)
     3. Grundlagen
     4. Hilfsklassen
     5. Kopfzeile und Menü
     6. Seitenfuß
     7. Rechtstexte und Fehlerseite
   Typische Änderungen: Farben/Schriften -> Abschnitt 2 (die Startseiten-Entwürfe
     überschreiben die Tokens in ihrer eigenen Datei css/variante-*.css).
   ========================================================================== */

/* === 1. Schriften === */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "League Gothic"; src: url("/fonts/league-gothic.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Gloock"; src: url("/fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("/fonts/albert-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* === 2. Farben, Schriften und Maße === */
:root {
    /* Farben: abgeleitet aus dem bisherigen Logo (Indigo + Lila) und Hemd-Blau der Fotos */
    --grund: #f5f6fb;          /* Seitenhintergrund */
    --flaeche: #eceef8;        /* abgesetzte Abschnitte */
    --karte: #ffffff;          /* Karten, Formularfelder */
    --tinte: #1b2140;          /* Text */
    --tinte-leise: #545b78;    /* Nebentext */
    --linie: #d9dcec;          /* feine Rahmen */
    --marke: #1b2140;          /* Hauptknopf „Anfrage senden“ */
    --marke-text: #ffffff;
    --akzent: #4f53c4;         /* Abspielen, Fortschritt, aktive Reiter */
    --akzent-text: #ffffff;
    --akzent-hell: #e6e7fa;    /* zarte Lila-Fläche */
    --fuss-grund: #14174a;     /* Seitenfuß (Indigo des Logos) */
    --fuss-text: #e3e4f6;

    --schrift-text: "Schibsted Grotesk", system-ui, sans-serif;
    --schrift-titel: "Schibsted Grotesk", system-ui, sans-serif;

    --radius-klein: 0.5rem;
    --radius: 0.875rem;
    --radius-gross: 1.5rem;
    --schatten: 0 1px 2px rgba(27, 33, 64, 0.06), 0 14px 32px -18px rgba(27, 33, 64, 0.35);
    --abstand-abschnitt: clamp(3.5rem, 8vw, 6.5rem);
    --breite-max: 76rem;
    --rand: clamp(1rem, 4vw, 2rem);
    --kopf-hoehe: 4rem;
    --spieler-hoehe: 4.25rem;
}

/* === 3. Grundlagen === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--grund);
    color: var(--tinte);
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}
body.spieler-sichtbar { padding-bottom: calc(var(--spieler-hoehe) + 0.5rem); }
body.menue-offen { overflow: hidden; }
h1, h2, h3 { margin: 0 0 0.6em; font-family: var(--schrift-titel); line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--akzent); color: var(--akzent-text); }

/* === 4. Hilfsklassen === */
.breite { width: 100%; max-width: var(--breite-max); margin-inline: auto; padding-inline: var(--rand); }
.nur-vorlesen {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprunglink {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    padding: 0.6rem 1rem; border-radius: var(--radius-klein);
    background: var(--marke); color: var(--marke-text);
}
.sprunglink:focus { top: 1rem; }
.ohne-umbruch { white-space: nowrap; }
.symbol { width: 1.15em; height: 1.15em; flex: none; }
.abschnitt { padding-block: var(--abstand-abschnitt); }

/* === 5. Kopfzeile und Menü === */
.kopf {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--grund) 92%, transparent);
    transition: box-shadow 0.2s;
}
.gescrollt .kopf { box-shadow: 0 1px 0 var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 1.25rem; min-height: var(--kopf-hoehe); }
.marke { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; margin-right: auto; }
.marke-zeichen { width: 2.25rem; height: 2.25rem; }
.marke-name { font-size: 1.05rem; letter-spacing: 0.01em; white-space: nowrap; }
.menue-liste { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.menue-liste a {
    display: block; padding: 0.5rem 0.8rem; border-radius: 999px;
    text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.menue-liste a:hover { background: var(--akzent-hell); }
.kopf-aktionen { display: flex; align-items: center; gap: 0.5rem; }
.kopf-anruf {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 2.75rem; padding: 0 1rem; border-radius: 999px;
    border: 1.5px solid var(--linie); text-decoration: none; font-weight: 600; white-space: nowrap;
}
.kopf-anruf:hover { border-color: var(--tinte); }
.menue-knopf {
    display: none; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 0; border-radius: 999px; background: var(--akzent-hell);
}
.menue-knopf .symbol { width: 1.4rem; height: 1.4rem; }

@media (max-width: 56rem) {
    :root { --kopf-hoehe: 3.5rem; }
    .marke-zeichen { width: 2rem; height: 2rem; }
    .kopf-anruf { width: 2.75rem; padding: 0; justify-content: center; }
    .kopf-anruf-nummer { display: none; }
    .menue-knopf { display: grid; }
    .hauptmenue {
        position: fixed; inset: var(--kopf-hoehe) 0 0; z-index: 39;
        padding: 1.5rem var(--rand); background: var(--grund);
        visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s;
    }
    .hauptmenue.offen { visibility: visible; opacity: 1; }
    .menue-liste { flex-direction: column; gap: 0.25rem; }
    .menue-liste a { padding: 0.9rem 1rem; font-size: 1.35rem; border-radius: var(--radius); }
}
@media (max-width: 22rem) { .marke-name { font-size: 0.95rem; } }

/* === 6. Seitenfuß === */
.fuss { background: var(--fuss-grund); color: var(--fuss-text); padding-block: 3rem 2.5rem; font-size: 0.98rem; }
.fuss-innen { display: grid; gap: 1rem 2rem; grid-template-columns: 1fr auto; align-items: start; }
.fuss-name { margin: 0; grid-column: 1 / -1; font-size: 1.1rem; }
.fuss-kontakt { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.fuss-kontakt li, .fuss-kontakt a { display: inline-flex; align-items: center; gap: 0.5rem; }
.fuss-recht { display: flex; gap: 1.25rem; justify-content: end; }
.fuss a { color: inherit; }
.fuss-copy { margin: 0; grid-column: 1 / -1; opacity: 0.7; font-size: 0.9rem; }
@media (max-width: 40rem) {
    .fuss-innen { grid-template-columns: 1fr; }
    .fuss-recht { justify-content: start; }
}

/* === 7. Rechtstexte und Fehlerseite === */
.rechtstext { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.rechtstext h1 { font-size: clamp(2rem, 5vw, 3rem); }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2em; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.5em; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }
