/* ina-walther.de – Grundlagen: Schriften, Farben, Kopf, Fuß, Bausteine.
   Werte aus der Onepage-Vorlage (Farbschema, Font-Kit, @siteui/title, @siteui/button). */

/* ---------- Schriften (selbst gehostet, variable Schriftstärke) ---------- */
@font-face {
    font-family: 'Dosis';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/fonts/dosis-latin-wght-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 200 1000;
    font-stretch: 100%;
    font-display: swap;
    src: url('/fonts/nunito-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: italic;
    font-weight: 200 1000;
    font-stretch: 100%;
    font-display: swap;
    src: url('/fonts/nunito-sans-latin-wght-italic.woff2') format('woff2');
}

/* ---------- Farben ---------- */
:root {
    --white: #FFFDF9;
    --light: #F3EEE6;
    --dark: #33323F;
    --black: #1F1E24;
    --petrol: #275A67;      /* key1 */
    --oliv: #8A8F52;        /* key2 */
    --braun: #4E3C11;       /* key3 */
    --terrakotta: #A4614A;
    --petrol-hell: #86A8AD; /* key4 */
    --oliv-hell: #BCC491;   /* key5 */
    --braun-hell: #ABA07F;  /* key6 */
    --terrakotta-hell: #D2A08C;
    --dunkel-hell: #B9B6AF;

    --font-titel: 'Dosis', system-ui, sans-serif;
    --font-text: 'Nunito Sans', system-ui, sans-serif;

    /* Textfarbe als RGB-Liste für rgba(); wird von dunklen Flächen überschrieben */
    --text: 51, 50, 63;
}

/* Flächen: helle Flächen dunkle Schrift, dunkle Flächen helle Schrift */
.f-white { background-color: var(--white); --text: 51, 50, 63; color: rgb(var(--text)); }
.f-light { background-color: var(--light); --text: 51, 50, 63; color: rgb(var(--text)); }
.f-petrol { background-color: var(--petrol); --text: 255, 253, 249; color: rgb(var(--text)); }
.f-oliv { background-color: var(--oliv); --text: 255, 253, 249; color: rgb(var(--text)); }
.f-braun { background-color: var(--braun); --text: 255, 253, 249; color: rgb(var(--text)); }
.f-terrakotta { background-color: var(--terrakotta); --text: 255, 253, 249; color: rgb(var(--text)); }
.f-dark { background-color: var(--dark); --text: 255, 253, 249; color: rgb(var(--text)); }

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--white);
    color: rgb(var(--text));
    font-family: var(--font-text);
    font-size: 16px;
    /* feste 24px wie in der Vorlage: Elemente ohne eigene Zeilenhöhe erben diesen Wert */
    line-height: 24px;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

p {
    margin: 0;
}

h1, h2, h3, h4 {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* Ausgeblendet ist ausgeblendet, auch wenn eine Klasse display setzt (z. B. Formular nach dem Versand) */
[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sprung {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--petrol);
    color: var(--white);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.sprung:focus {
    top: 12px;
}

/* ---------- Überschriften (@siteui/title) ---------- */
.titel {
    margin: 0;
    color: inherit;
    font-family: var(--font-titel);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.titel-xs {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.titel-s {
    font-size: 24px;
    font-weight: 600;
}

.titel-m {
    font-size: clamp(28px, 4vw, 38px);
}

.titel-l {
    font-size: clamp(34px, 5.2vw, 52px);
}

.titel-xl {
    font-size: clamp(46px, 9vw, 92px);
    letter-spacing: 0.04em;
}

/* ---------- Knöpfe und Textlinks (@siteui/button) ---------- */
.knopf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 26px;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.knopf:focus-visible,
.textlink:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.knopf:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.knopf-s { font-size: 14px; padding: 10px 18px; }
.knopf-l { font-size: 18px; padding: 17px 32px; }

.knopf-voll {
    background: var(--petrol);
    color: var(--white);
    border: 1.5px solid var(--petrol);
}

.knopf-voll:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.knopf-umriss {
    background: transparent;
    color: inherit;
    border: 1.5px solid currentColor;
}

.knopf-umriss:hover {
    background: color-mix(in srgb, currentColor 12%, transparent);
}

.knopf-hell {
    background: var(--white);
    color: var(--petrol);
    border: 1.5px solid var(--white);
}

.knopf-hell:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
}

/* Textlink: fett, Linie darunter, Pfeil dahinter */
.textlink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: inherit;
    background: none;
    border: none;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
}

.textlink > span:first-child {
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
}

.textlink .pfeil {
    transition: transform 0.2s ease;
}

.textlink:hover .pfeil {
    transform: translateX(4px);
}

/* ---------- Kleine Überschrift und Aufklappen ---------- */
.kicker {
    margin-bottom: 14px;
    color: var(--petrol);
}

/* Aufklappen „Mehr lesen ↓ / Weniger anzeigen ↑“ */
.aufklapp {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: inherit;
    cursor: pointer;
}

.aufklapp-text {
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
}

.aufklapp-pfeil {
    transition: transform 0.2s ease;
}

.aufklapp:hover .aufklapp-pfeil {
    transform: translateY(2px);
}

.aufklapp:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* ---------- Zeichen (Masken, Farbe per CSS) ---------- */
.zeichen {
    display: inline-block;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.zeichen-biografiearbeit {
    -webkit-mask-image: url('/img/zeichen-biografiearbeit.webp');
    mask-image: url('/img/zeichen-biografiearbeit.webp');
}

.zeichen-tierkreiszeichnen {
    -webkit-mask-image: url('/img/zeichen-tierkreiszeichnen.webp');
    mask-image: url('/img/zeichen-tierkreiszeichnen.webp');
}

.zeichen-sozialkunst {
    -webkit-mask-image: url('/img/zeichen-sozialkunst.webp');
    mask-image: url('/img/zeichen-sozialkunst.webp');
}

/* ---------- Kopf ---------- */
.kopf-platz {
    height: 68px;
}

.kopf {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    font-family: var(--font-text);
    border-bottom: 1px solid rgba(var(--text), 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kopf.gescrollt {
    box-shadow: 0 6px 24px -14px rgba(var(--text), 0.45);
}

.kopf.versteckt {
    transform: translateY(-100%);
    box-shadow: none;
}

.kopf-streifen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--braun) 0 33.34%, var(--oliv) 33.34% 66.67%, var(--petrol) 66.67% 100%);
}

.kopf-innen {
    max-width: 1250px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.marke {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-titel);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

.zeichen-satz {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.zeichen-satz .zeichen {
    width: 35px;
    height: 32px;
}

.kopf .zeichen-biografiearbeit { background-color: var(--braun); }
.kopf .zeichen-tierkreiszeichnen { background-color: var(--oliv); }
.kopf .zeichen-sozialkunst { background-color: var(--petrol); }

.menue {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menue a {
    font-size: 15px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s ease;
}

.menue a:hover,
.menue a:focus-visible {
    border-color: currentColor;
    outline: none;
}

.menue-knopf {
    display: none;
    font-size: 15px;
    font-weight: 600;
    color: inherit;
    background: transparent;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
}

.nach-oben {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--petrol);
    color: var(--white);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.nach-oben:hover {
    background: color-mix(in srgb, var(--petrol) 65%, black);
}

.nach-oben.sichtbar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nach-oben:focus-visible {
    outline: 2px solid var(--petrol);
    outline-offset: 3px;
}

@media (max-width: 820px) {
    .zeichen-satz {
        gap: 4px;
    }

    .zeichen-satz .zeichen {
        width: 29px;
        height: 26px;
    }

    .marke {
        gap: 12px;
        font-size: 20px;
    }

    /* Ohne JavaScript bleibt das Menü sichtbar */
    .js .menue-knopf {
        display: inline-block;
    }

    .menue {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0 4px;
    }

    .js .menue {
        display: none;
    }

    .js .menue.offen {
        display: flex;
    }

    .menue a {
        font-size: 18px;
        padding: 10px 0;
    }

    .nach-oben {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

/* ---------- Fuß ---------- */
.fuss {
    padding: 64px 24px 0;
    font-family: var(--font-text);
}

.fuss-raster {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
    align-items: start;
}

.fuss-marke {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.fuss-name {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-titel);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fuss .zeichen {
    background-color: rgba(var(--text), 0.9);
}

.fuss-saeulen,
.fuss-spalte {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fuss-spalte {
    align-items: flex-start;
}

.fuss-titel {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(var(--text), 0.55);
}

.fuss-eintrag {
    max-width: 260px;
    text-wrap: balance;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(var(--text), 0.88);
    text-decoration: none;
}

a.fuss-eintrag {
    /* größere Tippfläche (mind. 24 px) ohne sichtbare Änderung */
    padding: 4px 0;
    margin: -4px 0;
    transition: color 0.2s ease;
}

a.fuss-eintrag:hover,
a.fuss-eintrag:focus-visible {
    color: rgb(var(--text));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fuss-unten {
    max-width: 1150px;
    margin: 48px auto 0;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(var(--text), 0.12);
    font-size: 13px;
    color: rgba(var(--text), 0.55);
}

@media (max-width: 900px) {
    .fuss-raster {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fuss-marke {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .fuss-raster {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.js .einblenden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--verzoegerung, 0s);
}

.js .einblenden.da {
    opacity: 1;
    transform: none;
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    .js .einblenden {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Rechtstexte (Impressum, Datenschutz): Text wortgetreu aus eRecht24, Gestaltung nur hier ---------- */
.seite-rechtstext {
    padding: 90px 24px 110px;
}

.rechtstext {
    max-width: 760px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.65;
    hyphens: auto;
    overflow-wrap: break-word;
}

.rechtstext h1 {
    margin: 0 0 32px;
    font-family: var(--font-titel);
    font-weight: 700;
    font-size: clamp(34px, 5.2vw, 52px);
    line-height: 1.2;
    hyphens: manual;
}

.rechtstext h2 {
    margin: 44px 0 12px;
    font-family: var(--font-titel);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.25;
}

.rechtstext h3 {
    margin: 30px 0 10px;
    font-family: var(--font-titel);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
}

.rechtstext h4,
.rechtstext h5 {
    margin: 22px 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.rechtstext p,
.rechtstext ul,
.rechtstext ol {
    margin: 0 0 14px;
}

.rechtstext ul,
.rechtstext ol {
    padding-left: 22px;
}

.rechtstext a {
    color: var(--petrol);
    text-underline-offset: 3px;
}

/* ---------- Fehlerseite ---------- */
.fehlerseite {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    display: flex;
    align-items: center;
    padding: 80px 24px;
}

.fehlerseite-zeichen {
    position: absolute;
    right: -6%;
    top: 50%;
    width: min(640px, 80vw);
    aspect-ratio: 1;
    transform: translateY(-50%) rotate(-8deg);
    background-color: var(--braun);
    opacity: 0.12;
    pointer-events: none;
}

.fehlerseite-innen {
    position: relative;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.fehlerseite-kicker {
    margin-bottom: 14px;
    color: var(--braun);
}

.fehlerseite-titel {
    max-width: 680px;
    text-wrap: balance;
}

.fehlerseite-text {
    margin: 22px 0 0;
    max-width: 560px;
    font-size: 19px;
    line-height: 1.6;
    color: rgba(var(--text), 0.82);
}

.fehlerseite-links {
    margin-top: 34px;
    max-width: 560px;
}

.fehlerseite-links-titel {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(var(--text), 0.6);
}

.fehlerseite-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.fehlerseite-links a {
    padding: 4px 0;
    margin: -4px 0;
    font-size: 16px;
    text-decoration: underline;
    text-decoration-color: rgba(var(--text), 0.35);
    text-underline-offset: 4px;
}

.fehlerseite-links a:hover {
    text-decoration-color: currentColor;
}

.fehlerseite-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(var(--text), 0.14);
    max-width: 560px;
}

/* ---------- Pfeile ---------- */
/* Nunito Sans enthält keine Pfeilzeichen (→ ← ↓ ↑). Wie in der Onepage-Vorlage steht hier nur
   „Nunito Sans“ ohne Ersatzschriften, damit der Browser die Pfeile aus seiner Standardschrift
   nimmt: feiner, längerer Pfeil statt des kräftigen aus der Systemschrift. */
.pfeil,
.aufklapp-pfeil,
.format-link,
.org-karte-link,
.angebot-zurueck,
.fliesstext a[href^="/angebote/"]::after,
.fliesstext a[href^="/organisationen"]::after {
    font-family: 'Nunito Sans';
}
