/* ===========================================================================
   CALYN — Design System v2
   Editorial / minimal / professional. Helles Layout, Inter, viel Weißraum.
   Orientiert an einer reduzierten Portfolio-Ästhetik (keine Verläufe/Emojis).
   =========================================================================== */

/* ---- Selbstgehostete Schrift: Inter (SIL Open Font License, OFL.txt) ----
   Eine Variable-Font-Datei mit Optical-Sizing-Achse deckt Fließtext UND
   große Display-Headlines ab (entspricht „Inter" + „Inter Display"). */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable.woff2") format("woff2");
}
/* Dieselbe Datei zusätzlich unter dem Namen "Inter Display" – damit der
   Familienname 1:1 zur Vorlage passt; die Display-Optik kommt über opsz. */
@font-face {
    font-family: "Inter Display";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
    /* Flächen */
    --bg:        #ffffff;
    --bg-alt:    #f7f7f7;
    --ink:       #111112;   /* Überschriften / Primärtext */
    --body:      #3b3b3d;   /* Fließtext */
    --muted:     #696969;   /* sekundär / Labels */
    --line:      rgba(0,0,0,0.12);
    --line-2:    rgba(0,0,0,0.22);
    --accent:    #385558;   /* sehr sparsam eingesetzter Akzent (gedämpftes Teal) */
    --dark:      #111112;   /* dunkle Kontrastsektion */
    --red:       #b3261e;   /* Lösch-/Gefahr-Aktionen */

    --radius:    10px;
    --radius-sm: 8px;
    --maxw:      1400px;
    --ann-h:     38px;      /* Höhe der Ankündigungsleiste (Beta-Banner) */

    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    /* Display-Schrift (Headlines, Header) – Familienname 1:1 wie Vorlage */
    --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Reset / Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--body);
    background: var(--bg);
    /* Fließtext 1:1 wie Vorlage: Inter Display (opsz 32), Weight 500, -0.03em, enge Zeilen */
    line-height: 1.45;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variation-settings: "opsz" 32;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 600; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem);  line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section   { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}

/* ---- Editorial-Labels ---- */
.eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 500; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.index { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--sans); font-weight: 500; font-size: .98rem; line-height: 1;
    padding: 14px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
    cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
    text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2e2e30; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ececec; color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }

/* ---- Ankündigungsleiste (Beta-Banner ganz oben, wie eine Promo-Bar) ---- */
.promo-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    height: var(--ann-h);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 0 16px; text-align: center; line-height: 1.2;
    background: var(--accent); color: #fff;
    font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.promo-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.promo-bar a:hover { color: rgba(255,255,255,.78); }
@media (max-width: 600px) {
    :root { --ann-h: 54px; }
    .promo-bar { font-size: 12px; gap: 8px; }
}
/* Inhalt unter die fixe Leiste schieben (auf Hero-Seiten überdeckt die Leiste
   einfach die oberen Pixel des Vollbild-Heros – Inhalt liegt ohnehin unten). */
body:not(.scroll-hero) { padding-top: var(--ann-h); }

/* ---- Header / Nav ---- */
.site-header {
    position: sticky; top: var(--ann-h); z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
/* Header-Texte 1:1 wie Vorlage: Inter Display (opsz 32) – gilt für alle Kinder.
   Volle Display-Breite mit responsivem Seitenabstand (Marke links, Menü rechts). */
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px;
       padding: 0 clamp(20px, 3.5vw, 44px);
       font-family: var(--display); font-variation-settings: "opsz" 32; }
.brand { display: inline-block; font-size: 1.2rem; font-weight: 600;
         color: var(--ink); letter-spacing: -0.02em; text-transform: uppercase; }
.reg { font-size: .68em; vertical-align: super; margin-left: .14em;
       font-weight: 400; letter-spacing: 0; }
/* Header-®: volle Größe wie der Markenname, mit Leerraum davor (wie "Taylor ®") */
.brand .reg { font-size: 1em; vertical-align: baseline; margin-left: .22em; font-weight: 600; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
/* Menü-Links exakt wie Original: Weight 600, 16px, Line-Height 1, Letter-Spacing -0.03px */
.nav-links a { color: var(--muted); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: -0.03px; }
/* Registrieren/Abmelden-Button wie die Menü-Links: gleiche Schrift, keine Caps, eckiger Kasten */
.site-header .nav-links .btn { font-size: 16px; font-weight: 600; letter-spacing: -0.03px;
    text-transform: none; border-radius: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-user { color: var(--muted); font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-family: var(--sans); font-size: .98rem; font-weight: 500; cursor: pointer; line-height: 1; }

/* Desktop: Marke links, Text-Links mittig, An-/Abmelden-Button rechts */
@media (min-width: 681px) {
    .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; }
    .brand { justify-self: start; }
    .nav-links { justify-self: center; }
    .nav-links .nav-cta { position: absolute; right: clamp(20px, 3.5vw, 44px); top: 50%;
        transform: translateY(-50%); margin: 0; }
}

/* ---- Immersiver Vollbild-Hero (Landingpage) ---- */
.hero-im { position: relative; overflow: hidden; background: #0c0c0e; isolation: isolate;
           min-height: 100vh; min-height: 100svh; }

/* ---- Scroll-Over: Hero bleibt fixiert, der Inhalt scrollt darüber ---- */
.scroll-hero .hero-im { position: fixed; top: 0; left: 0; right: 0; z-index: 1;
    height: 100vh; height: 100svh; min-height: 0; }
.scroll-hero .scroll-stage { position: relative; z-index: 2; background: var(--bg);
    margin-top: 100vh; margin-top: 100svh; }
.scroll-hero .site-footer { position: relative; z-index: 2; background: var(--bg); }
/* main als eigener Block-Formatting-Context: verhindert, dass der 100svh-Margin der Stage
   nach außen durch body kollabiert (sonst body.scrollHeight ≠ html.scrollHeight → iOS-Safari
   rendert die Differenz als Leerraum unter dem Footer). Scroll-Over-Effekt bleibt unverändert. */
.scroll-hero main { display: flow-root; }
/* Innere Seiten (Mein Bereich / Fragebogen / Meine Aufgaben): Hero wie Startseite –
   fixiertes Vollbild-Bild, der Inhalt scrollt darüber. */
.scroll-hero .page-hero { position: fixed; top: 0; left: 0; right: 0; z-index: 1;
    height: 100vh; height: 100svh; min-height: 0; margin-bottom: 0; }
/* Inhalt muss den fixierten Hero immer voll verdecken – auch bei kurzen Seiten;
   plus etwas Luft vor dem ersten Abschnitt. */
.scroll-hero .scroll-stage { min-height: 100vh; min-height: 100svh; padding-bottom: clamp(64px, 8vw, 112px); }
.scroll-hero .scroll-stage > .container { padding-top: clamp(44px, 6vw, 84px); }
.page-dark.scroll-hero .scroll-stage,
.page-dark.scroll-hero .site-footer { background: #0b0b0d; }
/* Overlay-Header auf dunkler Seite: transparent über dem Hero, dunkel beim Scrollen, Schrift immer weiß */
.site-header--overlay.site-header--dark { background: transparent; }
.site-header--overlay.site-header--dark.scrolled { background: rgba(11,11,13,.97); }
.site-header--overlay.site-header--dark.scrolled .brand,
.site-header--overlay.site-header--dark.scrolled .nav-links a,
.site-header--overlay.site-header--dark.scrolled .nav-links a.active,
.site-header--overlay.site-header--dark.scrolled .nav-toggle { color: #fff; }
.site-header--overlay.site-header--dark.scrolled .nav-links a:hover { color: rgba(255,255,255,.65); }
.site-header--overlay.site-header--dark .nav-links .btn,
.site-header--overlay.site-header--dark.scrolled .nav-links .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.site-header--overlay.site-header--dark .nav-links .btn:hover,
.site-header--overlay.site-header--dark.scrolled .nav-links .btn:hover { background: #fff; color: #111112; border-color: #fff; }
.hero-im-bg { position: absolute; left: 0; right: 0; top: -6%; height: 112%; z-index: -2;
              background-size: cover; background-position: center; will-change: transform; }
.hero-im-overlay { position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,10,12,.45) 0%, rgba(10,10,12,.10) 32%, rgba(10,10,12,.74) 100%); }

/* ---- Animierter Filmkorn-Effekt über den Fotos (leicht bewegt) ---- */
.hero-im-overlay::after,
.split-media::after,
.statement-overlay::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='180'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='180'%20height='180'%20filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 180px 180px;
    opacity: .16; mix-blend-mode: overlay; will-change: background-position;
    animation: grain .8s steps(1) infinite;
}
.split-media { position: relative; }
@keyframes grain {
    0%   { background-position: 0 0; }
    10%  { background-position: -16px 8px; }
    20%  { background-position: 12px -14px; }
    30%  { background-position: -8px 16px; }
    40%  { background-position: 16px 6px; }
    50%  { background-position: -14px -10px; }
    60%  { background-position: 8px 14px; }
    70%  { background-position: -16px -6px; }
    80%  { background-position: 12px -16px; }
    90%  { background-position: -6px 12px; }
    100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-im-overlay::after, .split-media::after, .statement-overlay::after { animation: none; }
}
.hero-im-content { position: absolute; inset: 0; display: flex; flex-direction: column;
                   justify-content: flex-end; padding-bottom: 4.5vh; }
/* Typografie 1:1 wie die Vorlage: Inter Display (opsz 32), Weight 700, -0.03em, 80%, CAPS */
.hero-im-title { color: #fff; font-weight: 700; margin: 0; text-transform: uppercase;
    font-size: clamp(2.2rem, 8vw, 8.5rem); line-height: .8; letter-spacing: -0.03em;
    font-variation-settings: "opsz" 32;
    /* Negativ-Effekt: der Text nimmt exakt die Negativfarbe des Hintergrunds an
       (weiß + difference = 255 − Hintergrund). Kein Verlauf/keine Maske. */
    mix-blend-mode: difference; }
.hero-im-title .line { display: block; }
.hero-im-title .line > span { display: inline-block; }
/* Zweite Zeile rechtsbündig (editorialer Versatz) – nur Desktop; mobil bleibt zentriert */
@media (min-width: 681px) { .hero-im-title .line:nth-child(2) { text-align: right; } }
.hero-im-foot { margin-top: 34px; max-width: 660px; }
.hero-im-desc { color: rgba(255,255,255,.86); font-size: 1.08rem; margin: 0 0 22px; }

/* ---- Overlay-Navigation: über dem Hero transparent, beim Scrollen dunkel.
   Schrift bleibt durchgehend weiß; Buttons invertieren beim Hover. ---- */
.nav-left { display: flex; align-items: center; gap: 30px; }
/* Uhr identisch zu den Menü-Links (Inter Display, 600, 16px, LH 1, -0.03px) */
.nav-clock { font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: -0.03px; font-variant-numeric: tabular-nums; color: var(--muted); }

.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent;
    border-bottom: 0; backdrop-filter: none; transition: background .25s ease; }
/* Dezenter Schleier oben: weiße Schrift bleibt auch über hellen Bildern klar lesbar */
.site-header--overlay::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: -1;
    pointer-events: none; transition: opacity .25s ease;
    background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 100%); }
.site-header--overlay.scrolled::before { opacity: 0; }
.site-header--overlay .brand,
.site-header--overlay .nav-links a,
.site-header--overlay .nav-user,
.site-header--overlay .nav-clock,
.site-header--overlay .nav-toggle { color: #fff; }
.site-header--overlay .nav-links a:hover { color: rgba(255,255,255,.65); }
.site-header--overlay .nav-links a.active { color: #fff; }

/* Buttons unter .nav-links gescopt (höhere Spezifität als die a:hover-Regel),
   damit die Schrift beim Hover sicher lesbar bleibt; Hover invertiert. */
.site-header--overlay .nav-links .btn-primary,
.site-header--overlay .nav-links .btn-ghost {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.site-header--overlay .nav-links .btn-primary:hover,
.site-header--overlay .nav-links .btn-ghost:hover {
    background: #fff; color: #111112; border-color: #fff; }

/* Beim Scrollen: weißer Balken mit dunkler Schrift (analog Vorlage) – kein Blur, keine Trennlinie */
.site-header--overlay.scrolled { background: rgba(255,255,255,.97); border-bottom: 0; }
.site-header--overlay.scrolled .brand,
.site-header--overlay.scrolled .nav-links a,
.site-header--overlay.scrolled .nav-user,
.site-header--overlay.scrolled .nav-toggle { color: var(--ink); }
.site-header--overlay.scrolled .nav-clock { color: var(--muted); }
.site-header--overlay.scrolled .nav-links a:hover { color: var(--accent); }
.site-header--overlay.scrolled .nav-links .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-header--overlay.scrolled .nav-links .btn-primary:hover { background: #2e2e30; color: #fff; border-color: #2e2e30; }
.site-header--overlay.scrolled .nav-links .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.site-header--overlay.scrolled .nav-links .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Dunkler Header (Kontakt / Login / Registrieren) ---- */
.site-header--dark { background: #0b0b0d; border-bottom: 0; backdrop-filter: none; }
.site-header--dark .brand,
.site-header--dark .nav-links a,
.site-header--dark .nav-user,
.site-header--dark .nav-toggle { color: #fff; }
.site-header--dark .nav-links a:hover { color: rgba(255,255,255,.65); }
.site-header--dark .nav-links a.active { color: #fff; }
.site-header--dark .nav-links .btn-primary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.site-header--dark .nav-links .btn-primary:hover { background: #fff; color: #111112; border-color: #fff; }
.site-header--dark .nav-links .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.site-header--dark .nav-links .btn-ghost:hover { background: #fff; color: #111112; border-color: #fff; }

/* ---- Dunkle Seiten im "Get in touch"-Stil (Kontakt / Login / Registrieren) ---- */
body.page-dark { background: #0b0b0d; color: #c8c0ca; }
.page-dark .auth-wrap { max-width: 720px; margin: 56px auto 110px; }
.page-dark .form-card { background: transparent; border: 0; padding: 0; }
.page-dark .form-card .eyebrow { color: rgba(255,255,255,.55); }
.page-dark .form-card h1 { color: #fff; text-transform: uppercase; font-weight: 700;
    font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -0.03em; line-height: 1.0;
    margin-bottom: .5em; font-variation-settings: "opsz" 32; }
.page-dark .form-card .sub { color: rgba(255,255,255,.55); }
.page-dark .field { margin-bottom: 30px; }
.page-dark .field label { color: #fff; text-transform: uppercase; font-weight: 600;
    letter-spacing: .05em; font-size: .82rem; margin-bottom: 12px; }
.page-dark .field input,
.page-dark .field textarea,
.page-dark .field select {
    background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.28);
    border-radius: 0; color: #fff; padding: 12px 0; font-size: 1.05rem; }
.page-dark .field input::placeholder,
.page-dark .field textarea::placeholder { color: rgba(255,255,255,.32); }
.page-dark .field input:focus,
.page-dark .field textarea:focus,
.page-dark .field select:focus { border-bottom-color: #fff; box-shadow: none; }
/* Browser-Autofill so aussehen lassen wie manuell eingetippt (transparent/weiß) */
.page-dark .field input:-webkit-autofill,
.page-dark .field input:-webkit-autofill:hover,
.page-dark .field input:-webkit-autofill:focus,
.page-dark .field input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #0b0b0d inset;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}
.page-dark .field select option { color: #111; }
.page-dark .field .hint { color: rgba(255,255,255,.38); }
.page-dark .field-error { color: #ff9aa3; }
.page-dark .form-foot { color: rgba(255,255,255,.55); text-align: left; }
.page-dark .form-foot a { color: #fff; }
/* „Mein Konto": Unterüberschrift + Abschnittstrenner auf dunkler Seite */
.page-dark .form-card h2 { color: #fff; text-transform: uppercase; font-weight: 700;
    font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 22px; font-variation-settings: "opsz" 32; }
.form-sep { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 42px 0 34px; }
.page-dark .btn-primary { background: #fff; color: #111112; text-transform: uppercase; letter-spacing: .06em; }
.page-dark .btn-primary:hover { background: #e9e9e9; color: #111112; }
.page-dark .alert { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #e6dee8; }
.page-dark .alert-success { background: rgba(103,217,154,.12); border-color: rgba(103,217,154,.35); color: #bdf0d2; }
.page-dark .alert-error { background: rgba(255,120,135,.12); border-color: rgba(255,120,135,.4); color: #ffc3cb; }
.page-dark .seg label { color: #fff; border-color: rgba(255,255,255,.3); }
.page-dark .seg label:hover { background: rgba(255,255,255,.06); }
.page-dark .seg label:has(input:checked) { background: #fff; color: #111112; border-color: #fff; }
/* Zwei-Spalten-Reihe (z. B. Vorname / Nachname) */
.field-row { display: flex; gap: 28px; }
.field-row .field { flex: 1; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 0; } }
/* Footer auf dunklen Seiten ebenfalls dunkel */
.page-dark .site-footer { border-top-color: rgba(255,255,255,.12); }
.page-dark .foot-brandmark { color: #fff; }
.page-dark .foot-copy { color: rgba(255,255,255,.5); }
.page-dark .foot-nav a { color: #fff; }
.page-dark .foot-nav a:hover { color: rgba(255,255,255,.6); }
.page-dark .foot-top { color: #fff; }
.page-dark .foot-top:hover { color: rgba(255,255,255,.7); }

@media (max-width: 680px) {
    .hero-im-foot { max-width: none; margin-top: 24px; }
}

/* ---- Editoriale Sektions-Kopfzeile (Nummer · Label · © Jahr + Trennlinie) ---- */
.section-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px;
    padding-bottom: 18px; border-bottom: 1px solid rgba(0,0,0,.32); margin-bottom: 48px;
    font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.section-bar .num   { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.section-bar .label { text-align: center; color: var(--ink); }
.section-bar .copy  { text-align: right; color: var(--ink); }
@media (max-width: 540px) {
    .section-bar { font-size: .8rem; gap: 10px; }
}

/* ---- Section-Köpfe ---- */
.section-head { max-width: 720px; margin: 0 0 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

/* Aktions-Buttons auf Desktop rechtsbündig (mobil zentriert, s. Media-Query) */
.actions-right { text-align: right; }

/* ---- Grids ---- */
.grid { display: grid; gap: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Referenz-Zeilenliste mit durchgehenden Trennstrichen (wie Vorlage) ----
   Volle Breite, oben + zwischen jeder Zeile eine Haarlinie, große fette
   Nummer links · Titel · Beschreibung rechts. */
.svc { border-top: 1px solid var(--line); }
.svc-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.35fr);
    column-gap: 40px;
    align-items: start;
    padding: 46px 0;
    border-bottom: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 0; }
.svc-num   { font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1;
             font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.svc-title { font-size: 1.7rem; font-weight: 600; color: var(--ink); letter-spacing: -0.025em;
             line-height: 1.12; margin: 0; }
.svc-desc  { color: var(--muted); margin: 0; font-size: 1.02rem; max-width: 48ch; }
@media (max-width: 780px) {
    .svc-row { grid-template-columns: 1fr; row-gap: 8px; padding: 30px 0; }
    .svc-title { font-size: 1.45rem; }
}

/* ---- „So funktioniert's": About-Layout (große Headline + Bild + 2 Spalten + Button) ---- */
.about-title { color: var(--ink); font-family: var(--display); font-weight: 600;
    font-size: clamp(2.2rem, 6.2vw, 5.4rem); line-height: 1.0; letter-spacing: -0.03em;
    max-width: 1140px; margin: 0 0 clamp(44px, 6vw, 84px); font-variation-settings: "opsz" 32; }
.about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.15fr);
    gap: clamp(24px, 3vw, 48px); align-items: start; }
.about-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.about-media .ph { aspect-ratio: 1/1; display: grid; place-items: center; background: var(--bg-alt);
    border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: .85rem; }
.about-text { color: var(--ink); font-size: 1.08rem; line-height: 1.45; margin: 0; }
.about-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 72px); }
.about-cta .btn { min-width: 320px; }
@media (max-width: 820px) {
    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-media { max-width: 300px; margin: 0 auto; }
    .about-cta .btn { width: 100%; min-width: 0; }
}

/* ---- „Warum Calyn": dunkle Sektion mit nummerierten Reihen (Nr · Bild · Titel · Text) ---- */
.section--dark { background: var(--dark); color: rgba(255,255,255,.7); }
.section--dark .section-bar { border-bottom-color: rgba(255,255,255,.22); }
.section--dark .section-bar .num,
.section--dark .section-bar .label,
.section--dark .section-bar .copy { color: #fff; }
.svc-dark-title { color: #fff; font-family: var(--display); font-weight: 600;
    font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em;
    max-width: 1000px; margin: 0 0 clamp(16px, 3vw, 40px); font-variation-settings: "opsz" 32; }
.svc-dark-row { display: grid;
    grid-template-columns: 48px clamp(140px, 17vw, 230px) minmax(0,1fr) minmax(0,1.1fr);
    gap: clamp(18px, 3vw, 48px); align-items: start;
    padding: clamp(34px, 4vw, 56px) 0; border-top: 1px solid rgba(255,255,255,.16); }
.svc-dark-num { color: #fff; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.svc-dark-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.svc-dark-h { color: #fff; font-size: clamp(1.55rem, 2.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
.svc-dark-desc { color: rgba(255,255,255,.62); font-size: 1rem; line-height: 1.5; margin: 0; }
@media (max-width: 820px) {
    .svc-dark-row { grid-template-columns: 56px 1fr; row-gap: 14px; column-gap: 18px; }
    .svc-dark-media { grid-column: 1 / -1; max-width: 280px; margin: 0 auto; }
    .svc-dark-h { grid-column: 1 / -1; }
    .svc-dark-desc { grid-column: 1 / -1; }
}

/* ---- FAQ-Akkordeon ---- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: none; border: 0; cursor: pointer; text-align: left;
    padding: 30px 0; color: var(--ink); font-family: var(--display);
    font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25;
}
/* Plus-Icon: das GANZE Zeichen dreht beim Öffnen um 90°; ein Arm blendet aus → Minus */
.faq-icon { position: relative; flex: none; width: 18px; height: 18px;
    transition: transform .38s cubic-bezier(.4,0,.2,1); }
.faq-icon::before, .faq-icon::after {
    content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.6px;
    background: currentColor; border-radius: 2px;
    transition: opacity .3s ease;
}
.faq-icon::before { transform: translateY(-50%); }              /* waagerechter Arm */
.faq-icon::after  { transform: translateY(-50%) rotate(90deg); } /* senkrechter Arm → Plus */
.faq-item.open .faq-icon { transform: rotate(90deg); }          /* ganzes Zeichen dreht 90° */
.faq-item.open .faq-icon::before { opacity: 0; }                /* ein Arm weg → Minus bleibt */
/* Antwort: weiches Auf-/Zuklappen über grid-template-rows */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { color: var(--muted); max-width: 70ch; margin: 0 0 30px; font-size: 1.04rem; }
.faq-mail { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-mail:hover { color: var(--accent); }

/* ---- Karten (allgemein) ---- */
.card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: border-color .18s ease;
}
.card:hover { border-color: var(--line-2); }

/* ---- Split (Für Paare) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.split li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.split li:last-child { border-bottom: 0; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
               background: var(--bg-alt); aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .ph { width:100%; height:100%; display:grid; place-items:center; color:var(--muted);
                   font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; }
/* „Für Paare": Desktop = Text oben-links, Button darunter, Bild rechts (volle Höhe);
   Mobile (untereinander) = Text, dann Bild, dann Button. */
.split-cta { text-align: right; }
@media (min-width: 921px) {
    .split { grid-template-rows: 1fr auto; row-gap: 0; align-items: start; }
    .split-text  { grid-column: 1; grid-row: 1; }
    .split-cta   { grid-column: 1; grid-row: 2; padding-top: 28px; text-align: center; }
    .split-media { grid-column: 2; grid-row: 1 / 3; align-self: stretch; aspect-ratio: auto; }
}

/* ---- Dunkle CTA-Sektion ---- */
.cta {
    background: var(--dark); border-radius: var(--radius); padding: 72px 56px; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---- Full-Bleed-Statement-Banner ---- */
.statement {
    position: relative; overflow: hidden;
    min-height: 78vh; display: grid; place-items: center;
    background: #0c0c0e; /* Fallback, falls Bild fehlt */
    isolation: isolate;
}
.statement-bg {
    position: absolute; left: 0; right: 0; top: -12%; height: 124%; z-index: -2;
    background-size: cover; background-position: center;
    will-change: transform;
}
.statement-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,10,12,.35), rgba(10,10,12,.55));
}
.statement-inner { text-align: center; padding: 80px 24px; max-width: 900px; }
.statement-title {
    color: #fff; text-transform: uppercase; font-weight: 700;
    font-size: clamp(2rem, 5.5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em;
    margin: 0 0 28px; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.statement-title .line { display: block; overflow: hidden; }
.statement .btn-light { box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---- Animations-Grundzustände (nur wenn JS/GSAP aktiv) ---- */
html.anim [data-animate] { opacity: 0; transform: translateY(26px); will-change: opacity, transform; }
html.anim .statement-title .line > span { display: inline-block; transform: translateY(110%); }
html.anim .hero-im-title .line > span { opacity: 0; transform: translateY(.35em); }
@media (prefers-reduced-motion: reduce) {
    html.anim [data-animate],
    html.anim .statement-title .line > span,
    html.anim .hero-im-title .line > span { opacity: 1 !important; transform: none !important; }
}

/* ---- Footer ---- */
/* ---- Footer 1:1 nach Vorlage: Wortmarke + Link-Spalten, Copyright, Nach-oben ---- */
.site-footer { border-top: 1px solid var(--line); padding: 88px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; min-height: 300px; }
.foot-col { display: flex; flex-direction: column; }
.foot-col-brand { justify-content: space-between; gap: 60px; }
.foot-brandmark { font-size: clamp(2rem, 4.2vw, 3.4rem); font-family: var(--display); font-weight: 600; letter-spacing: -0.03em;
                  color: var(--ink); line-height: 1; font-variation-settings: "opsz" 32; text-transform: uppercase; }
.foot-copy { color: var(--muted); font-size: .9rem; line-height: 1.7; text-transform: uppercase; }
.foot-col-links { justify-content: space-between; gap: 48px; }
.foot-nav a { display: block; color: var(--ink); font-weight: 500; font-size: 1.05rem; padding: 5px 0; }
.foot-nav a:hover { color: var(--accent); }
.foot-social a { display: block; color: var(--muted); font-size: .95rem; padding: 4px 0; }
.foot-social a:hover { color: var(--ink); }
.foot-col-actions { justify-content: flex-end; align-items: flex-end; }
.foot-top { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.foot-top span { transition: transform .15s ease; }
.foot-top:hover { color: var(--ink); }
.foot-top:hover span { transform: translate(2px, -2px); }

/* ---- Forms / Auth ---- */
.auth-wrap { max-width: 440px; margin: 80px auto; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.form-card h1 { font-size: 1.9rem; margin-bottom: .1em; }
.form-card .sub { color: var(--muted); margin-bottom: 28px; }
/* ---- Globale Textarea-Optik: wie die Inputs, NIE resizable, 3 Zeilen Standardhöhe ---- */
textarea {
    width: 100%; box-sizing: border-box;
    font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    padding: 12px 14px; resize: none; min-height: calc(4.5em + 26px);
    font-variation-settings: "opsz" 32; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
textarea::placeholder { color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--sans);
    color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: calc(4.5em + 26px); resize: none; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.field label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .55; }
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 11px; cursor: pointer; line-height: 1.3; }
.page-dark .check { color: #fff; }
.check input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--accent); }

/* „Offen für Abenteuer": Buttons statt Checkboxen – untereinander, Mehrfachauswahl (Logik via JS) */
.pm-options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pm-btn { position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
    font-weight: 600; font-size: .92rem; line-height: 1.2;
    transition: border-color .15s ease, background .15s ease, color .15s ease; }
.pm-btn input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none; }
.pm-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-dark .field label.pm-btn { margin-bottom: 0; color: #fff; border-color: rgba(255,255,255,.28); }
.page-dark .field label.pm-btn.is-on { background: #fff; color: #111; border-color: #fff; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
@media (max-width: 680px) { .form-actions { display: block; } .form-actions .btn { width: 100%; } }
.form-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: .94rem; }
.form-foot a { font-weight: 500; }

/* Segmented Radio (z. B. Geschlecht) */
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
             padding: 13px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
             cursor: pointer; color: var(--ink); font-weight: 500; user-select: none;
             transition: background .15s ease, color .15s ease, border-color .15s ease; }
.seg label:hover { background: var(--bg-alt); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0,0,0,.14); }

/* ---- Alerts ---- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .94rem; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); }
.alert-success { background: #f0f6f1; border-color: #cfe4d4; color: #1f5132; }
.alert-error   { background: #fbf0f0; border-color: #ecd2d2; color: #8a2f2f; }
.alert-info    { background: var(--bg-alt); border-color: var(--line); color: var(--ink); }
.field-error { color: #a12c2c; font-size: .84rem; margin-top: 6px; }

/* ---- Badges / Pills ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 500;
         padding: 4px 11px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); }
.pill-assigned  { background: #fff; border-color: var(--line-2); color: var(--ink); }
.pill-progress  { background: #edf3f2; border-color: #cdddda; color: var(--accent); }
.pill-completed { background: #f0f6f1; border-color: #cfe4d4; color: #1f5132; }

/* Intensitäts-Punkte */
.intensity { display: inline-flex; gap: 4px; vertical-align: middle; }
.intensity i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.intensity i.on { background: var(--accent); }

/* ---- Tabellen (Admin) ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.table th, table.table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.table th { color: var(--muted); font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-alt); }
table.table tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover td { background: var(--bg-alt); }
.td-actions { white-space: nowrap; }
/* .table-wrap.cards: auf Mobile wird die Tabelle zu gestapelten Karten (passt auf jeden Screen) */
@media (max-width: 640px) {
    .table-wrap.cards { border: 0; overflow: visible; }
    .table-wrap.cards thead { display: none; }
    .table-wrap.cards tbody, .table-wrap.cards tr, .table-wrap.cards td { display: block; }
    .table-wrap.cards tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
    .table-wrap.cards td { display: flex; align-items: center; justify-content: space-between; gap: 16px;
        border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: right; }
    .table-wrap.cards tr td:last-child { border-bottom: 0; }
    .table-wrap.cards td::before { content: attr(data-label); color: var(--muted); font-weight: 600;
        font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
    .table-wrap.cards td.td-actions { justify-content: flex-end; flex-wrap: wrap; gap: 8px; white-space: normal; }
    .table-wrap.cards td.td-actions::before { display: none; }
}

/* ---- Task-Karten ---- */
.task-card { display: flex; flex-direction: column; gap: 13px; transition: border-color .15s ease, transform .15s ease; }
.task-card h3 { margin: 0; font-size: 1.32rem; letter-spacing: -0.01em; }
.task-card .task-desc { color: var(--muted); margin: 0; line-height: 1.55; }
.task-action { margin-top: 8px; }
/* Mobile: „Als erledigt"-Button über die volle Kartenbreite (= Textbreite) */
@media (max-width: 640px) {
    .task-done { display: block; }
    .task-done .btn { width: 100%; }
}
.task-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.task-dots { display: inline-flex; gap: 5px; flex: none; }
.task-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.14); display: inline-block; }
.task-dots i.on { background: var(--accent); }
.task-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- Fragebogen ---- */
.q-block { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 16px; }
.q-block .q-title { font-weight: 600; margin-bottom: 14px; color: var(--ink); font-size: 1.05rem; }
.q-options { display: grid; gap: 10px; }
.q-option { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.q-option:hover { border-color: var(--line-2); background: var(--bg-alt); }
.q-option input { accent-color: var(--accent); width: 17px; height: 17px; }
.q-scale { display: flex; gap: 10px; flex-wrap: wrap; }
.q-scale label { flex: 1; min-width: 64px; text-align: center; padding: 13px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; color: var(--muted); }
.q-scale input { display: none; }
.q-scale label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }

/* 5-Punkte-Bar: fünf anklickbare Segmente, füllt sich bis zur Auswahl (1 links … 5 rechts) */
.q-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 4px; }
.q-seg { position: relative; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: center; }
.q-seg input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.q-seg-bar { height: 12px; border-radius: 999px; background: var(--line); transition: background .15s ease; }
.q-seg:hover .q-seg-bar { background: var(--line-2); }
.q-seg.on .q-seg-bar { background: var(--ink); }                 /* gefüllt bis zur Auswahl */
.q-seg-cap { font-size: .82rem; line-height: 1.2; color: var(--muted); transition: color .15s ease; }
.q-seg.selected .q-seg-cap { color: var(--ink); font-weight: 600; }
.q-seg input:focus-visible ~ .q-seg-bar { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 540px) { .q-bar { gap: 5px; } .q-seg-cap { font-size: .7rem; } }

/* Bedingte Frage (Gründe) – nur sichtbar, wenn die auslösende Skala 1–2 ist */
.q-conditional.is-hidden { display: none; }

/* ---- Fragebogen als „Landingpage": Vollbild-Hero + dunkles, flaches Formular ---- */
.q-page-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden;
    min-height: clamp(360px, 56vh, 600px); margin-bottom: clamp(40px, 6vw, 72px); background: #0b0b0d; }
.q-page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-page-hero-shade { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,11,13,.28) 0%, rgba(11,11,13,.12) 42%, rgba(11,11,13,.97) 100%); }
.q-page-hero-inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
    padding: 0 clamp(20px, 3.5vw, 44px) clamp(26px, 5vh, 54px); }
.q-page-hero-inner h1 { color: #fff; margin: 0; font-weight: 700; text-transform: uppercase;
    letter-spacing: -0.03em; line-height: .9; font-size: clamp(2.6rem, 9vw, 7rem);
    font-variation-settings: "opsz" 32; }
.q-page { padding-bottom: clamp(72px, 10vw, 130px); }
.q-intro { font-family: var(--display); text-transform: uppercase; color: rgba(255,255,255,.92);
    max-width: 900px; margin: 0 0 clamp(46px, 7vw, 88px); font-weight: 600;
    font-size: clamp(1.3rem, 2.7vw, 2rem); line-height: 1.16; letter-spacing: -0.02em;
    font-variation-settings: "opsz" 32; }
/* Mobil: mehr Zeilenluft, etwas kleiner und ruhiger – der CAPS-Block wirkt sonst gedrängt */
@media (max-width: 680px) {
    .q-intro { font-size: 1.08rem; line-height: 1.42; letter-spacing: .01em;
        color: rgba(255,255,255,.82); margin-bottom: clamp(36px, 9vw, 52px); }
}

/* ---- „Meine Aufgaben": heller Landing-Hero + Story + Bewertungs-Cards ---- */
.page-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden;
    min-height: clamp(340px, 52vh, 560px); margin-bottom: clamp(40px, 6vw, 72px); background: var(--ink); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.08) 42%, rgba(0,0,0,.72) 100%); }
.page-hero-inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
    padding: 0 clamp(20px, 3.5vw, 44px) clamp(26px, 5vh, 54px); }
.page-hero-inner h1 { color: #fff; margin: 0; font-weight: 700; text-transform: uppercase;
    letter-spacing: -0.03em; line-height: .9; font-size: clamp(2.6rem, 9vw, 7rem);
    font-variation-settings: "opsz" 32; }
.story-text { max-width: 680px; color: var(--body); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.story-text p { margin: 0 0 1rem; }
/* Bewertung: rechtsbündig – schlecht · okay · gut */
.task-card .rate { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.task-card .rate .rate-label { color: var(--muted); font-size: .85rem; margin-right: auto; }
.rate-opts { display: inline-flex; gap: 6px; }
.rate-btn { font-family: var(--display); font-size: .85rem; font-weight: 600; letter-spacing: -0.02em;
    padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: transparent;
    color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.rate-btn:hover { border-color: var(--ink); }
.rate-btn.is-sel { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 540px) { .task-card .rate { flex-wrap: wrap; } .rate-opts { width: 100%; justify-content: flex-end; } }
/* Aufgaben-Cards immer untereinander, mit Abstand (auch mobil) */
.task-list { display: grid; gap: clamp(18px, 3vw, 28px); }

/* ---- „Meine Aufgaben" dunkel + page-hero auf dunkler Seite ---- */
.page-dark .page-hero-shade { background: linear-gradient(180deg, rgba(11,11,13,.25) 0%, rgba(11,11,13,.12) 42%, rgba(11,11,13,.97) 100%); }
.page-dark .section-bar { border-bottom-color: rgba(255,255,255,.22); }
.page-dark .section-bar .num,
.page-dark .section-bar .label,
.page-dark .section-bar .copy { color: #fff; }
.page-dark .story-text { color: rgba(255,255,255,.82); }
.aufgaben-info { color: rgba(255,255,255,.55); max-width: 640px; margin: 0 0 clamp(24px,3vw,36px); font-size: .98rem; line-height: 1.5; }

/* ---- 404-Seite ---- */
.error-page { max-width: 760px; padding: clamp(56px, 11vw, 150px) 0 clamp(40px, 8vw, 100px); }
.error-num { font-family: var(--display); font-weight: 700; color: var(--ink);
    font-size: clamp(5.5rem, 22vw, 15rem); line-height: .82; letter-spacing: -0.05em;
    margin: 0 0 .12em; font-variation-settings: "opsz" 32; }
.error-page h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); margin: 0 0 .4em; }
.error-page p { color: var(--muted); margin: 0 0 34px; max-width: 46ch; font-size: 1.08rem; }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 680px) { .error-actions .btn { width: 100%; min-width: 0; } }

/* ---- Live-Verfügbarkeit Benutzername (Registrierung, dunkle Seite) ---- */
.username-status { font-size: .85rem; margin-top: 7px; min-height: 1.1em; line-height: 1.3; }
.username-status.is-good { color: #5fd39a; }
.username-status.is-bad { color: #ff8a96; }
.username-status.is-checking { color: rgba(255,255,255,.55); }

/* ---- Konto löschen (Mein Bereich) ---- */
.btn-account-delete { color: #b3261e; border-color: rgba(179,38,30,.45); background: transparent; }
.btn-account-delete:hover { color: #fff; background: #b3261e; border-color: #b3261e; }

/* ---- Admin: gelöschtes (deaktiviertes) Mitglied ---- */
.badge-deleted { background: #fde7e7; color: #b3261e; }
.row-deleted td { background: rgba(179,38,30,.05); }

/* ---- Admin: neu/aktualisiert ausgefüllter Fragebogen (bis zum ersten Öffnen) ---- */
.badge-new { background: var(--accent); color: #fff; font-weight: 700; }
.badge-couple { background: #eae7fd; color: #463c9c; }
tr.row-new td { background: rgba(56,85,88,.07); font-weight: 600; }
tr.row-new td strong { font-weight: 800; }

/* ---- Admin: Profil-Detailansicht ---- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.profile-grid > div { display: flex; flex-direction: column; gap: 2px; }
.profile-grid .pl { font-size: .8rem; color: var(--muted); }
.profile-grid .pv { font-weight: 500; color: var(--ink); }
@media (max-width: 600px) { .profile-grid { grid-template-columns: 1fr; } }
.user-link { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.user-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Admin-Dashboard + responsive Admin-Layouts ---- */
.admin-split   { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.admin-split-r { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 820px) { .admin-split, .admin-split-r { grid-template-columns: 1fr; } }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.admin-h2 { margin-top: 36px; margin-bottom: 14px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 36px 0 14px; }
.admin-section-head .admin-h2 { margin: 0; }

.admin-todos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.admin-todos-title { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.admin-todo { background: var(--accent); color: #fff; padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.admin-todo:hover { background: #2c4447; color: #fff; }

.admin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.admin-action { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; }
.admin-action:hover { border-color: var(--ink); }
.aa-title { font-weight: 600; color: var(--ink); }
.aa-sub { font-size: .85rem; color: var(--muted); }

.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.mini-row.is-new { border-color: var(--accent); background: rgba(56,85,88,.05); }
.mini-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Mobile: Zeilen sauber stapeln statt uneinheitlich umzubrechen */
@media (max-width: 640px) {
    .mini-row { flex-direction: column; align-items: stretch; }
    .mini-actions { width: 100%; }
    .mini-actions .btn { flex: 1 1 0; text-align: center; }
    .mini-row > .btn { width: 100%; text-align: center; }
}

/* ---- Story-Editor (Admin) mit Formatierung ---- */
.rte-toolbar { display: flex; gap: 6px; margin-bottom: 10px; }
.rte-toolbar button { width: 36px; height: 34px; border: 1px solid var(--line-2); background: #fff;
    border-radius: 6px; cursor: pointer; font-size: .98rem; line-height: 1; color: var(--ink); }
.rte-toolbar button:hover { background: var(--bg-alt); border-color: var(--ink); }
.rte-editor { min-height: calc(5em + 26px); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    padding: 12px 14px; background: #fff; color: var(--ink); line-height: 1.5; overflow-y: auto; }
.rte-editor:focus { outline: none; border-color: var(--ink); }
.rte-editor:empty::before { content: attr(data-placeholder); color: var(--muted); }
.story-text b, .story-text strong { font-weight: 700; }
.story-text i, .story-text em { font-style: italic; }
.story-text u { text-decoration: underline; }

/* ---- Admin: erzeugter Passwort-Reset-Link zum Kopieren ---- */
.reset-link-card { border-color: var(--accent); margin-bottom: 26px; }
.copy-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.copy-field { flex: 1; min-width: 220px; font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .9rem; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 8px;
    background: var(--bg-alt); color: var(--ink); }
.copy-field:focus { outline: none; border-color: var(--ink); }

/* ---- Aufgaben: Erledigt-Button bzw. Bewertung je nach Status zeigen ---- */
.task-action[data-status="completed"] .task-done { display: none; }
.task-action:not([data-status="completed"]) .rate { display: none; }
.page-dark .muted { color: rgba(255,255,255,.5); }
.page-dark .task-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.page-dark .task-card h3 { color: #fff; }
.page-dark .task-card .task-desc { color: rgba(255,255,255,.6); }
.page-dark .task-card .rate .rate-label { color: rgba(255,255,255,.5); }
.page-dark .rate-btn { color: #fff; border-color: rgba(255,255,255,.3); }
.page-dark .rate-btn:hover { border-color: #fff; }
.page-dark .rate-btn.is-sel { background: #fff; color: #111112; border-color: #fff; }
.page-dark .task-card:hover { border-color: rgba(255,255,255,.32); }
.page-dark .task-cat { color: #cdd8d8; }
.page-dark .task-dots i { background: rgba(255,255,255,.18); }
.page-dark .task-dots i.on { background: #fff; }

/* ---- Mein Bereich: Gamification-Streaks (typografisch, editorial) ---- */
.streaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
    margin-bottom: clamp(38px, 6vw, 68px); }
.streak { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--bg-alt); }
.streak-eyebrow { display: flex; align-items: baseline; gap: 9px; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.streak-eyebrow .idx { font-family: var(--display); letter-spacing: 0; color: var(--accent); }
.streak-num { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 3.2rem);
    line-height: .95; color: var(--ink); display: flex; align-items: baseline; gap: 9px; }
.streak-unit { font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.streak-foot { font-size: .85rem; color: var(--muted); }

/* ---- Admin: freie Notizen aus „Mein Bereich" (durch — getrennt) ---- */
.note-body { white-space: pre-wrap; line-height: 1.55; }
.admin-notes-sm .note-body { font-size: .95rem; }
.note-sep { color: var(--muted); text-align: center; letter-spacing: .3em; margin: 16px 0; user-select: none; }

/* Anker „#notiz" aus „Meine Aufgaben": unter dem fixierten Header landen, nicht dahinter */
#notiz { scroll-margin-top: 96px; }

/* ---- Mein Konto: Safe-Space-Hinweis bei der Partner-Verknüpfung (reiner Info-Text, weiß) ---- */
.safe-space { margin: 0 0 34px; font-size: .95rem; line-height: 1.55; color: var(--body); }
.page-dark .safe-space { color: rgba(255,255,255,.9); }

/* Fehler-Hinweis auf dunkler Seite: nur rote Schrift, kein Rahmen/Hintergrund, mehr Abstand */
.page-dark .alert-error { background: transparent; border: 0; padding: 0; color: #ff8a96;
    font-weight: 500; margin: 4px 0 clamp(30px, 4vw, 48px); }

/* CTA-Buttons: breit zentriert (Desktop), volle Breite auf Mobile – wie Vorlage */
.btn-cta { min-width: 320px; }
@media (max-width: 680px) {
    .btn-cta, .about-cta .btn, .actions-right .btn { width: 100%; min-width: 0; }
}

/* Formular dunkel + flach: keine Außen-Card, dezenter Trennstrich zwischen Fragen */
.page-dark .q-block { background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.14);
    border-radius: 0; padding: 36px 0 32px; margin: 0; }
.page-dark .q-block:first-of-type { border-top: 0; padding-top: 6px; }
.page-dark .q-block .q-title { color: #fff; font-size: 1.12rem; }
.page-dark .q-block .hint { color: rgba(255,255,255,.45); }
.page-dark .q-option { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.page-dark .q-option:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.page-dark .q-option:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.1); }
.page-dark .q-option input { accent-color: #fff; }
.page-dark .q-seg-bar { background: rgba(255,255,255,.18); }
.page-dark .q-seg:hover .q-seg-bar { background: rgba(255,255,255,.32); }
.page-dark .q-seg.on .q-seg-bar { background: #fff; }
.page-dark .q-seg-cap { color: rgba(255,255,255,.5); }
.page-dark .q-seg.selected .q-seg-cap { color: #fff; }
.page-dark .q-block textarea { background: transparent; border: 1px solid rgba(255,255,255,.22); color: #fff; }
.page-dark .q-block textarea::placeholder { color: rgba(255,255,255,.4); }
.page-dark .q-block textarea:focus { border-color: rgba(255,255,255,.55); box-shadow: none; }
.page-dark .field-error { color: #ff9aa3; }
.page-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.page-dark .btn-ghost:hover { background: #fff; color: #111112; border-color: #fff; }

/* Freitext, der unter einer angehakten Option erscheint (z. B. „Welche Orte?") –
   beginnt links bündig mit den Optionen darüber */
.q-reveal { margin: -2px 0 2px; }
.q-reveal.is-hidden { display: none; }
.q-reveal textarea { min-height: calc(2.4em + 22px); }

/* ---- Seitenkopf (innere Seiten) ---- */
.page-head { padding: 60px 0 16px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .15em; }
.page-head p { color: var(--muted); margin: 0; }

/* App-Seiten (Dashboard/Fragebogen/Admin): Abstand zum Footer, damit
   Inhalt nicht direkt auf der Footer-Trennlinie aufliegt. */
body:not(.scroll-hero):not(.page-dark) main { padding-bottom: clamp(72px, 9vw, 120px); min-height: 62vh; }

/* Dashboard-Hero: Banner-Bild mit großer Headline (ersetzt „Hallo …") */
.db-hero {
    position: relative; display: flex; margin-top: 28px;
    border-radius: var(--radius); overflow: hidden;
    min-height: clamp(260px, 38vw, 440px);
}
.db-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db-hero-shade { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.16) 46%, rgba(0,0,0,.62) 100%); }
.db-hero-inner { position: relative; align-self: flex-end; width: 100%; padding: clamp(24px, 4vw, 46px); }
.db-hero-title {
    color: #fff; margin: 0; font-weight: 700; text-transform: uppercase;
    letter-spacing: -0.03em; line-height: .9;
    font-size: clamp(2.6rem, 7vw, 5.4rem); font-variation-settings: "opsz" 32;
}

/* Editoriale Inhaltsblöcke (z. B. Dashboard „Mein Bereich") – kein schwerer Kasten.
   Einheitliche vertikale Rhythmik: gleicher Abstand über und zwischen den Blöcken. */
.db-block { margin-top: 56px; }
/* Block-Kopf wie die Sektions-Bar der Vorlage: Text ÜBER dem (dunklen) Trennstrich,
   Index links, Label rechts – eine Zeile. */
.db-block .block-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding-bottom: 18px; border-bottom: 1px solid rgba(0,0,0,.32); margin-bottom: 44px;
}
.db-block .block-index,
.db-block .block-label {
    font-family: var(--display); font-size: 16px; font-weight: 600;
    letter-spacing: -0.03em; line-height: 1; text-transform: none;
    font-variant-numeric: tabular-nums; color: var(--ink);
}
.db-block .block-label { text-align: right; }
.db-block h2 { margin-bottom: 16px; }
.db-block .db-lead { color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.db-block .db-lead:last-child { margin-bottom: 0; }
.db-block .db-lead strong { color: var(--ink); font-weight: 600; }

/* ---- Age Gate ---- */
.age-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
    background: rgba(11,11,13,.72); backdrop-filter: blur(6px); padding: 22px; }
.age-gate[hidden] { display: none; }
.age-card { max-width: 480px; width: 100%; text-align: center; background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(34px, 5vw, 54px); }
.age-eyebrow { display: block; font-family: var(--display); font-size: 16px; font-weight: 600;
    letter-spacing: -0.03em; line-height: 1; color: var(--ink); margin-bottom: 22px; }
.age-title { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0 0 16px;
    font-size: clamp(1.9rem, 4.6vw, 2.6rem); line-height: 1.04; letter-spacing: -0.03em; }
.age-text { color: var(--muted); margin: 0 auto 30px; max-width: 38ch; }
.age-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Helpers ---- */
.divider { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.stack-lg > * + * { margin-top: 22px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }

/* Metrik-Karten (Admin) */
.metric { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 24px; }
.metric .label { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.metric .value { font-size: 2.2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-top: 4px; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
    .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    /* Vollbild-Menü wie Vorlage: große Links mit Trennlinien auf dunklem Grund */
    .nav-toggle { display: block; position: relative; z-index: 46; }
    .brand { position: relative; z-index: 46; }
    .nav-links {
        position: fixed; inset: 0; z-index: 45;
        /* Volle Viewport-Höhe erzwingen: schützt davor, dass das fixierte Menü
           auf manchen Seiten (z. B. „Mein Bereich") auf Inhaltshöhe zusammenfällt.
           dvh berücksichtigt zusätzlich die mobile Browser-Leiste. */
        height: 100vh; height: 100dvh;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        background: #0e0e10; padding: calc(92px + var(--ann-h)) clamp(22px, 6vw, 30px) 44px;
        overflow-y: auto; display: none; border: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links.open a, .nav-links.open .btn {
        font-family: var(--display); font-size: clamp(1.8rem, 8.5vw, 2.7rem); font-weight: 600;
        letter-spacing: -0.02em; line-height: 1.15;
        color: #fff !important; background: none !important; box-shadow: none !important;
        border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.14) !important; border-radius: 0 !important;
        width: 100%; justify-content: flex-start; text-align: left; padding: 22px 0; margin: 0;
    }
    .nav-links.open a:hover, .nav-links.open .btn:hover { color: rgba(255,255,255,.7) !important; }
    .nav-links.open a:last-child, .nav-links.open .btn:last-child { border-bottom: 0 !important; }
    .nav-user { display: none; }
    /* Marke + Close bleiben weiß, solange das Menü offen ist */
    .site-header.is-menu-open .brand,
    .site-header.is-menu-open .nav-toggle { color: #fff !important; }
    .section { padding: 70px 0; }
    .cta { padding: 48px 26px; }
    .form-card { padding: 28px; }
    /* Hero-Headline auf dem Handy größer (wie im Vorlage-Mockup).
       Auf Mobile KEIN Negativ-Effekt: schlichtes Weiß ist stabil, dafür darf
       der Hero per Parallax leicht mitscrollen und überdeckt werden. */
    .hero-im-title { font-size: clamp(2.6rem, 13vw, 4.4rem); mix-blend-mode: normal; }
    /* Footer untereinander */
    .foot-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
    .foot-col-brand { gap: 26px; }
    .foot-col-links { gap: 26px; }
    .foot-col-actions { justify-content: flex-start; align-items: flex-end; }
    /* Mobile: Sektions-Inhalt zentrieren (angelehnt an Vorlage-About, aber mittig) */
    .section-head { text-align: center; }
    .svc-row { text-align: center; }
    .svc-desc { max-width: none; }
    .split > div { text-align: center; }
    .hero-im-content .container { text-align: center; }
    .actions-right { text-align: center; }
}
