/* ====================================================
   calisda - Landing Page Styles
   Brand aus Logo/Appicon: Teal #145A7B + Coral #F86870
   ==================================================== */

:root {
    /* Teal = Struktur. Coral = Markenwort + Teilnehmen-CTAs.
       Soft-Flächen: helles Marken-Teal mit genug Sättigung (sonst wirkt es grau). */
    --c-slate: #145A7B;
    --c-slate-dark: #0E4660;
    --c-slate-deep: #0A3348;
    --c-slate-soft: #D9E8F0;
    --c-cyan: #C9DCE6;
    --c-cyan-soft: #E6F2F7;
    --c-paper: #E6F2F7;
    --c-sky: #5A9BB8;
    --c-sun: #F8C4C6;
    --c-sun-soft: #FDECED;
    --c-lilac: #D9CDEA;
    --c-stitch: #F86870;
    --c-gold: #F86870;
    --c-gold-dark: #E04E56;
    --c-gold-soft: #FDECED;
    --c-text: #1A3340;
    --c-text-soft: #3A5563;
    --c-muted: #6A8490;
    --c-line: #D5E2E9;
    --c-bg: #ffffff;
    --c-bg-soft: var(--c-cyan-soft);
    --c-dark: var(--c-slate-deep);

    /* Layout aliases (shared class names from GAIA study landings) */
    --c-teal: var(--c-slate);
    --c-teal-dark: var(--c-slate-dark);
    --c-teal-deep: var(--c-slate-deep);
    --c-teal-soft: var(--c-slate-soft);
    --c-teal-mist: var(--c-cyan-soft);
    --c-yellow: var(--c-gold);
    --c-yellow-dark: var(--c-gold-dark);
    --c-yellow-soft: var(--c-gold-soft);
    --c-cream: var(--c-slate-soft);
    --c-cream-soft: var(--c-cyan-soft);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --c-ink: #0A3348;

    --shadow-sm: 0 2px 8px rgba(10, 51, 72, 0.06);
    --shadow: 0 14px 36px rgba(10, 51, 72, 0.10);
    --shadow-lg: 0 24px 56px rgba(10, 51, 72, 0.16);

    --ff-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* Schritt 1: Display = Nunito (wie Meta-Karussell); Body bleibt Plex */
    --ff-display: "Nunito", var(--ff-sans);

    /* ----- Typo-Skala -------------------------------------------------------
       Basis 1rem = 18px (html-Wert unten). Alle Textgroessen kommen aus dieser
       Skala, damit nicht wieder ein Dutzend Zwischengroessen entsteht. */
    --fs-micro: 0.85rem;   /* 15px  Kleingedrucktes, Footer-Recht */
    --fs-small: 0.95rem;   /* 17px  Labels, Hinweise, Navigation */
    --fs-sub:   1.05rem;   /* 19px  Sekundaertext in Karten */
    --fs-body:  1.15rem;   /* 21px  Lesetext */
    --fs-h4:    1.22rem;   /* 22px  Karten-Ueberschriften, muessen ueber dem
                                    Lesetext liegen, sonst kippt die Hierarchie */
    --fs-lead:  1.35rem;   /* 24px  Einleitungen */
    --fs-h3:    1.40rem;   /* 25px */
    --fs-quote: 1.55rem;   /* 28px */
    --fs-h2: clamp(1.7rem, 2.6vw, 2.1rem);
    --fs-h1: clamp(2.1rem, 3.6vw, 2.7rem);

    /* Grosse Schrift braucht weniger Durchschuss als kleine */
    --lh-tight: 1.18;
    --lh-snug: 1.32;
    --lh-normal: 1.5;
    --lh-text: 1.65;

    /* Zeilenlaenge, Zielkorridor 60 bis 70 Zeichen. Bewusst in rem und nicht in
       ch: ch loest gegen die Schriftgroesse des Elements auf, an dem es steht,
       und liefert bei Grid-Containern mit kleinerem Text darin falsche Breiten.
       Je kleiner die Schrift, desto schmaler die Spalte, sonst passen bei
       gleicher Breite deutlich mehr Zeichen in die Zeile. */
    --measure: 36rem;        /* 648px, ~68 Zeichen bei --fs-body */
    --measure-sub: 32rem;    /* 576px, ~68 Zeichen bei --fs-sub */
    --measure-small: 28rem;  /* 504px, ~66 Zeichen bei --fs-small */

    --container: 1180px;
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }
/* Prozent statt px: skaliert alle rem-Werte mit, respektiert aber die
   Schriftgroessen-Einstellung des Browsers. */
html {
    scroll-behavior: smooth;
    font-size: 112.5%; /* 18px bei Browser-Default 16px */
    /* Sprungmarken landeten sonst unter dem klebenden Header */
    scroll-padding-top: 96px;
}
body {
    margin: 0;
    font-family: var(--ff-sans);
    font-weight: 400;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: var(--lh-text);
    font-size: var(--fs-body);
    /* Bewusst kein antialiased: das duennt Glyphen auf macOS aus und kostet
       genau die Strichstaerke, die den Text gut lesbar macht. */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-teal-dark); text-decoration: none; }
a:hover { color: var(--c-teal); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 650; /* zwischen Body-Semibold und H1; Nunito variable */
    line-height: var(--lh-tight);
    color: var(--c-text);
    margin: 0 0 0.5em;
    /* verhindert einzelne Woerter in der letzten Zeile einer Ueberschrift */
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; font-weight: 700; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; font-weight: 650; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
p {
    margin: 0 0 1em;
    color: var(--c-text-soft);
    text-wrap: pretty;
    overflow-wrap: break-word;
}
.brand { color: var(--c-gold); font-weight: inherit; font-style: normal; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Header ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(40, 50, 55, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo { height: 48px; width: auto; }
@media (max-width: 820px) { .logo { height: 40px; } }
.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
    min-width: 0;
}
.main-nav__panel {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.main-nav a {
    color: var(--c-slate);
    font-weight: 600;
    font-size: var(--fs-small);
    white-space: nowrap;
}
.main-nav a:hover { color: var(--c-slate-dark); text-decoration: none; }
.main-nav .nav-cta {
    color: var(--c-gold);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 8px;
}
.main-nav .nav-cta:hover { color: var(--c-gold-dark); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--c-slate);
    cursor: pointer;
}
.nav-toggle:hover { color: var(--c-slate-dark); }
.nav-toggle:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 2px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars {
    position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header.is-nav-open .nav-toggle__bars { background: transparent; }
.site-header.is-nav-open .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}
.site-header.is-nav-open .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    border: 0;
    border-radius: var(--radius);
    padding: 15px 28px;
    font-family: var(--ff-sans);
    font-weight: 600;
    font-size: var(--fs-sub);
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    line-height: var(--lh-snug);
    text-align: center;
}
.btn-primary {
    background: var(--c-gold);
    color: #fff;
    box-shadow: 0 10px 24px rgba(248, 104, 112, 0.28);
}
.btn-primary:hover {
    background: var(--c-gold-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(224, 78, 86, 0.32);
}
.btn-accent {
    background: var(--c-gold);
    color: #fff;
    box-shadow: 0 10px 24px rgba(248, 104, 112, 0.28);
}
.btn-accent:hover {
    background: var(--c-gold-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-small { padding: 10px 18px; font-size: var(--fs-small); }
.btn-full { width: 100%; }
/* .btn sets display:inline-block and would otherwise override HTML [hidden] */
.btn[hidden],
[hidden] { display: none !important; }

/* ----- Hero: Text und Programm-Animation ----- */
.hero {
    /* Weiß wie Nav und folgende Content-Blöcke: freigestellte Illus brauchen
       keinen Teal-Hintergrund (sonst wirken Ränder und weiße Flächen falsch). */
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 36px 48px;
    align-items: center;
    padding-block: 64px 56px;
}
.hero-copy {
    max-width: 34rem;
    animation: hero-rise 0.7s ease both;
}
.hero-figure {
    margin: 0;
}

.hero .eyebrow {
    display: inline-block;
    background: #fff;
    color: var(--c-slate);
    font-weight: 600;
    /* Versalien lesen sich schlechter als Gemischtschrift, deshalb nicht kleiner
       als --fs-small und mit etwas Sperrung. */
    font-size: var(--fs-small);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    border: 1px solid rgba(20, 90, 123, 0.28);
}
.hero h1 {
    color: var(--c-slate-dark);
    max-width: 14em;
    margin-bottom: 18px;
    overflow-wrap: break-word;
}
.hero h1 .brand { color: var(--c-gold); }
.hero .lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-normal);
    color: var(--c-slate);
    margin-bottom: 28px;
    max-width: var(--measure);
}
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-copy { animation: none; }
}

/* ----- Invite (Researcher) ----- */
.invite {
    padding: 72px 0;
    background: var(--c-ink);
    color: #fff;
}
.invite-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: center;
}
.invite-portrait img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--c-gold);
    box-shadow: var(--shadow);
}
.invite-message {
    font-family: var(--ff-display);
    font-weight: 650;
    font-size: var(--fs-quote);
    line-height: var(--lh-normal);
    color: #fff;
    margin-bottom: 16px;
    max-width: 40rem;
}
.invite-author {
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-sub);
    margin: 0;
}
.invite-author strong { color: var(--c-gold-soft); }

/* ----- Blocks ----- */
.block {
    padding: 96px 0;
    background: #fff;
}
.block-soft { background: var(--c-bg-soft); }

.block-dark {
    background: var(--c-ink);
    color: #E8F2F6;
}
.block-dark h2, .block-dark h3, .block-dark strong { color: #fff; }
.block-dark p {
    color: #D7EAF2;
    line-height: var(--lh-text);
}
.block-dark .brand { color: var(--c-gold); }
.block-dark a:not(.btn) { color: var(--c-gold-soft); }

/* ----- Partner (Studienleitung / Sponsor) ----- */
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.partner-card {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-slate);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: none;
}
/* Auf Soft-Abschnitt: Kachel nur umrandet, Fläche = Abschnittsfarbe */
.block-soft .partner-card {
    background: transparent;
    border-color: rgba(20, 90, 123, 0.28);
}
.partner-card h3,
.partner-card strong { color: var(--c-text); }
.block-dark .partner-card a:not(.btn) {
    color: var(--c-teal-dark);
    text-decoration: underline;
}
.partner-card p { color: var(--c-text-soft); }
.partner-card__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}
.partner-card__logo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    object-fit: contain;
}
.partner-card__logo--gaia {
    width: 132px;
    height: auto;
    flex: 0 0 132px;
    align-self: center;
}
.partner-card__role {
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-teal-dark);
    margin: 0 0 4px;
}
.partner-card p {
    font-size: var(--fs-sub);
    line-height: var(--lh-text);
    max-width: var(--measure-sub);
}
.partner-card__head h3 { margin: 0 0 6px; font-size: var(--fs-h3); }
.partner-card__org {
    margin: 0;
    font-size: var(--fs-sub);
    line-height: var(--lh-normal);
    color: var(--c-text-soft);
}
.partner-card p:last-child { margin-bottom: 0; }
.partner-card__link { margin-top: 18px; font-weight: 600; }
.partner-cta { text-align: center; margin-top: 48px; }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 56px; }
.section-lead {
    color: var(--c-text-soft);
    font-size: var(--fs-lead);
    line-height: var(--lh-normal);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.two-col.reverse .col-image { order: 2; }
.two-col.reverse .col-text { order: 1; }
.col-image { display: flex; justify-content: center; align-items: center; }
.feature-list {
    margin: 0 0 28px;
    padding-left: 1.2em;
    color: var(--c-text-soft);
    max-width: var(--measure);
}
.feature-list li {
    margin-bottom: 0.6em;
    padding-left: 0.2em;
    line-height: var(--lh-normal);
}
.col-text p {
    line-height: var(--lh-text);
    max-width: var(--measure);
}
.feature-list li::marker {
    color: var(--c-teal);
}

/* ----- Criteria list ----- */
/* Breite ueber den Textinhalt gesteuert, nicht ueber die Karte: sonst laufen
   die Zeilen auf grossen Screens auf ueber 100 Zeichen. */
.criteria-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    /* Zuschlag: Haken-Spalte 28px + Spalten-Abstand 18px */
    max-width: calc(var(--measure) + 46px);
    display: grid;
    gap: 14px;
}
.criteria-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 18px;
    align-items: flex-start;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--c-text-soft);
    line-height: var(--lh-text);
}
.criteria-text {
    display: block;
    min-width: 0;
}
.criteria-list strong {
    color: var(--c-text);
    font-weight: 700;
}
.check {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-teal-soft);
    position: relative;
    margin-top: 2px;
}
.check::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 8px;
    height: 14px;
    border-right: 3px solid var(--c-teal-dark);
    border-bottom: 3px solid var(--c-teal-dark);
    transform: rotate(45deg);
}

.footnote {
    margin-top: 18px;
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
    color: var(--c-muted);
    max-width: var(--measure-small);
}

.col-text .btn { margin-top: 12px; }

/* ----- Steps ----- */
.step-no {
    font-family: var(--ff-display);
    font-weight: 650;
    font-size: var(--fs-quote);
    color: var(--c-teal);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-teal-soft);
}

.faq details {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--c-line);
    margin-bottom: 12px;
    padding: 0;
    box-shadow: var(--shadow-sm);
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    font-size: var(--fs-sub);
    line-height: var(--lh-normal);
    color: var(--c-text);
    position: relative;
    padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-quote);
    color: var(--c-teal);
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
    padding: 0 22px 20px;
    margin: 0;
    color: var(--c-text-soft);
    font-size: var(--fs-sub);
    line-height: var(--lh-text);
    max-width: var(--measure-sub);
}

.form-card {
    background: #fff;
    color: var(--c-text);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--c-line);
    border-top: 5px solid var(--c-slate);
}
.form-card h3 {
    font-size: var(--fs-h3);
    color: var(--c-text);
    margin-bottom: 8px;
}

.signup-form { display: grid; gap: 16px; }
.signup-form label {
    display: grid;
    gap: 6px;
    font-size: var(--fs-sub);
    font-weight: 600;
    color: var(--c-text);
}
.signup-form label > span { font-weight: 600; }
.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    color: var(--c-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.signup-form input:focus {
    outline: none;
    border-color: var(--c-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(248, 104, 112, 0.25);
}

.form-note {
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
    color: var(--c-muted);
    margin: 4px 0 0;
}
/* Einwilligung: gleiche Groesse und Farbe wie .form-note. */
.signup-form .form-consent {
    grid-template-columns: 18px 1fr;
    column-gap: 10px;
    align-items: start;
    margin: 0;
    font-size: var(--fs-small);
    font-weight: 400;
    line-height: var(--lh-normal);
    color: var(--c-muted);
}
.signup-form .form-consent > span { font-weight: 400; }
.signup-form .form-consent input { margin-top: 4px; accent-color: var(--c-teal); }
.form-consent a,
.form-consent a:hover { color: inherit; text-decoration: underline; }

/* ----- Contact ----- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 760px;
    margin: 0 auto;
}
.contact-card {
    background: transparent;
    border: 1px solid rgba(20, 90, 123, 0.28);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: none;
}
.contact-portrait {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--c-teal-soft);
}
.contact-card h3 { margin-bottom: 4px; font-size: var(--fs-h4); }
.contact-card p { margin: 0; color: var(--c-text-soft); font-size: var(--fs-sub); }
.contact-info { display: flex; flex-direction: column; justify-content: center; }
.contact-hours {
    font-weight: 600;
    color: var(--c-teal-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-small);
}

/* ----- Footer ----- */
.site-footer {
    background: var(--c-slate-deep);
    /* heller als zuvor: 0.92rem grau auf dunkelblau war grenzwertig */
    color: #E8F2F6;
    padding: 64px 0 24px;
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
}
.site-footer a { color: var(--c-gold); }
.site-footer a:hover { color: var(--c-gold-soft); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col p { color: #C5D8E2; margin: 0 0 8px; }
.footer-col strong { color: #fff; }
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.footer-tagline { color: #E8F2F6; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding-top: 20px;
    font-size: var(--fs-micro);
    color: #A8C0CC;
    text-align: center;
}
.footer-bottom p { margin: 0; color: inherit; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .partner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { gap: 8px; }
    .main-nav .nav-cta { margin-left: 0; }
    /* Dropdown unter dem Header, nicht in der Leiste: Header-Hoehe und
       scroll-padding-top bleiben gleich, CTA bleibt sichtbar. */
    .main-nav__panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 51;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow);
    }
    .site-header.is-nav-open .main-nav__panel { display: flex; }
    .main-nav__panel a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 24px;
        white-space: normal;
    }
    .main-nav__panel a:hover { background: var(--c-cyan-soft); }
}
/* Unter ~540px passen Wortmarke, „Jetzt teilnehmen“ und Menüknopf nicht
   nebeneinander. Der Knopf muss bleiben, der Hero-Button übernimmt den CTA. */
@media (max-width: 540px) {
    .main-nav .nav-cta { display: none; }
}

@media (max-width: 820px) {
    /* Basis nicht heruntersetzen: Lesbarkeit fuer die Zielgruppe hat Vorrang */
    .block { padding: 64px 0; }
    .hero-grid {
        grid-template-columns: 1fr;
        /* Mehr Abstand: CTA-Schatten sonst überlappt die Hero-Illu */
        gap: 48px;
        padding-block: 40px 36px;
    }
    .hero-copy { max-width: 100%; }
    .hero-copy .btn { position: relative; z-index: 1; }

    .partner-card { padding: 26px; }
    .partner-card__head { gap: 16px; }
    .partner-card__logo { width: 68px; height: 68px; flex-basis: 68px; }
    .partner-card__logo--gaia { width: 112px; flex-basis: 112px; height: auto; }

    .header-inner { justify-content: space-between; }

    .invite-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .invite-portrait img { width: 140px; height: 140px; margin: 0 auto; }
    .invite-message { font-size: var(--fs-lead); }

    .two-col { grid-template-columns: 1fr; gap: 36px; }
    .two-col.reverse .col-image,
    .two-col.reverse .col-text { order: initial; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { text-align: left; }

    .form-card { padding: 28px; }

    .step-no { width: 44px; height: 44px; font-size: var(--fs-lead); }
}

@media (max-width: 560px) {
    /* Auf dem Telefon begrenzt nicht die Schriftgroesse die Lesbarkeit, sondern
       die Zeilenlaenge: bei 18px Basis passen nur rund 36 Zeichen in die Zeile,
       was staendige Umbrueche und viel Scrollen erzeugt. Etwas kleinere Basis
       bringt rund 40 Zeichen und bleibt ueber der iOS-Standardgroesse. */
    html { font-size: 105%; } /* ~16.8px */
    .container { padding-inline: 20px; }
    .header-inner { padding-block: 10px; }
    .main-nav__panel a { padding-left: 20px; padding-right: 20px; }
    /* Lead und Zitat naeher an den Lesetext ruecken: der Groessensprung vom
       Desktop kostet auf 390px rund ein Drittel der Zeichen pro Zeile. */
    :root {
        --fs-lead: 1.2rem;
        --fs-quote: 1.32rem;
    }

    /* Ueberschriftengroessen regelt clamp(), hier nur noch Abstaende */
    .section-head { margin-bottom: 36px; }
    .step-no { font-size: var(--fs-h3); }

    /* Karten-Innenabstaende zurueckfahren: sie kosten sonst fast die Haelfte
       der Zeilenbreite. */
    .criteria-list li {
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 12px;
    }
    .check { width: 22px; height: 22px; flex-basis: 22px; }
    .check::after { left: 7px; top: 3px; width: 6px; height: 11px; }

    .step-no { width: 40px; height: 40px; }
    .partner-card { padding: 20px; }
    .faq summary { padding: 16px 44px 16px 16px; }
    .faq details p { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.invite-message { font-style: normal; }
@media (max-width: 560px) {

    .form-card { padding: 24px 20px; }
}

/* ----- Hero-Illustration (freigestellt, ohne Kreis-Hintergrund) ----- */
.hero-figure {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0;
}
.hero-illu {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
}

@media (max-width: 820px) {

    .hero-figure { margin-top: 12px; }
    .hero-illu { max-width: 300px; }

}

/* ----- Aus autimia: Zwei-Spalten-Karten, Formular, Galerie-Hinweis ----- */
.dual-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.dual-col h2 {
    margin-bottom: 28px; color: var(--c-slate);
}
.perk-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 28px;
}
.perk-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
}
.perk-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--c-slate);
}
.perk-icon svg {
    width: 28px;
    height: 28px;
}
.perk-copy h3 {
    color: var(--c-slate);
    margin: 2px 0 6px;
    font-size: var(--fs-h4);
}
.perk-copy p {
    margin: 0;
    font-size: var(--fs-sub);
    line-height: var(--lh-normal);
    color: var(--c-text-soft);
}

@media (max-width: 1024px) {
    .dual-block { gap: 48px; }
}
@media (max-width: 820px) {
    .dual-block { grid-template-columns: 1fr; gap: 56px; }
    .perk-list { gap: 24px; }
    .perk-list li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; }
    .perk-icon { width: 32px; height: 32px; }
    .perk-icon svg { width: 24px; height: 24px; }
}

.program-illu {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .program-illu { max-width: 320px; }
}

/* ----- Zeitleiste: gestrichelte Korall-Akzente ----- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 10%; right: 10%; border-top: 2px dashed var(--c-stitch); }
.timeline li { position: relative; text-align: center; }
.timeline .step-no { position: relative; margin: 0 auto 18px; background: #fff; border: 2px solid var(--c-stitch); color: var(--c-slate-dark); }
.timeline h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.timeline p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-normal); }
@media (max-width: 820px) {
    .timeline { grid-template-columns: 1fr; gap: 22px; max-width: 32rem; margin: 0 auto; }
    .timeline::before { top: 8px; bottom: 8px; left: 25px; right: auto; border-top: 0; border-left: 2px dashed var(--c-stitch); }
    .timeline li { text-align: left; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
    .timeline .step-no { grid-row: span 2; margin: 0; }
    .timeline h3 { margin-top: 10px; }
}

/* Mid-Page-CTAs nur Desktop; Mobile nutzt Sticky-CTA ab Ablauf */
@media (max-width: 820px) {
    .cta-desktop { display: none !important; }
}

/* Sticky Mobile-CTA: nur schmal, am unteren Rand.
   Padding am body ist fest reserviert (nicht togglen): sonst aendert sich
   die Dokumenthoehe beim Ein-/Ausblenden und der Scroll „wackelt“. */
.sticky-cta {
    display: none;
}
@media (max-width: 820px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
    .sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(230, 242, 247, 0.96);
        border-top: 1px solid var(--c-line);
        box-shadow: 0 -8px 24px rgba(10, 51, 72, 0.12);
    }
    .sticky-cta[hidden] { display: none; }
    .sticky-cta__btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
    }
    /* backdrop-filter am Header kostet auf iOS Scroll-Performance */
    .site-header {
        backdrop-filter: none;
        background: #fff;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ----- Aus autimia: Screenshot-Galerie und Lightbox ----- */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 48px;
    max-width: 720px;
    margin: 0 auto;
}
.gallery .gallery-frame {
    max-width: 332px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-item {
    margin: 0;
    text-align: center;
}
.gallery-frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-frame::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 47, 66, 0.88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 L21 21'/%3E%3Cpath d='M10.5 7.5 v6 M7.5 10.5 h6'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}
.gallery-frame:hover,
.gallery-frame:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    outline: 2px solid var(--c-slate);
    outline-offset: 3px;
}
.gallery-frame img {
    width: 100%;
    height: auto;
    pointer-events: none;
}
.gallery-item figcaption {
    font-size: var(--fs-sub);
    font-weight: 600;
    color: var(--c-text);
    line-height: var(--lh-normal);
    margin: 0;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    justify-content: center;
    /* flex-start + auto-Margin am Figure: zentriert wenn es passt, scrollt wenn nicht */
    align-items: flex-start;
    overflow: auto;
    padding: 64px 20px 32px;
    background: rgba(30, 47, 66, 0.88);
    cursor: zoom-out;
}
.lightbox[hidden] {
    display: none !important;
}
.lightbox__figure {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}
.lightbox__figure img {
    display: block;
    width: min(720px, 100%);
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.lightbox__figure figcaption {
    margin-top: 14px;
    color: #fff;
    font-size: var(--fs-sub);
    font-weight: 600;
    text-align: center;
}
.lightbox__close {
    /* fixed statt absolute: bleibt sichtbar, wenn im Overlay gescrollt wird */
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-slate);
    font-size: var(--fs-quote);
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
    background: #fff;
    outline: 2px solid var(--c-gold);
    outline-offset: 2px;
}
body.lightbox-open {
    overflow: hidden;
}
@media (max-width: 560px) {
    .gallery,
    .gallery--four { grid-template-columns: 1fr; gap: 32px; }
}

.study-note {
    margin: 0 0 28px;
    color: var(--c-text-soft);
}

/* ----- FAQ und Anmeldung nebeneinander (wie aklaria) ----- */
.faq-signup { align-items: start; }
.faq-signup .faq { margin-top: 8px; }
.faq-signup .form-card { position: sticky; top: 96px; }
.form-intro,
.form-closed {
    margin: 0 0 22px;
    font-size: var(--fs-sub);
    line-height: var(--lh-normal);
    color: var(--c-text-soft);
}
.form-closed {
    color: var(--c-text);
    font-weight: 600;
}
.signup-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
    display: grid;
    gap: 16px;
}
.signup-form--closed {
    opacity: 0.45;
}
@media (max-width: 820px) {
    .faq-signup .form-card { order: -1; position: static; }
}

/* ---- Signup: Honeypot, Status, Success ------------------------------------ */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.signup-form input.is-valid {
    border-color: var(--c-teal);
}
.signup-form input.is-invalid {
    border-color: #c0392b;
}

.signup-status {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
    margin: 0 0 8px;
}
.field-error {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
    margin: -8px 0 0;
    background: #fdecea;
    color: #7a1f18;
    border: 1px solid #f2b8b0;
}
.signup-status--error {
    background: #fdecea;
    color: #7a1f18;
    border: 1px solid #f2b8b0;
}
.signup-status--success {
    background: #eaf5ef;
    color: #1e4d33;
    border: 1px solid #b7d9c4;
}

.signup-success {
    padding: 28px;
    text-align: center;
}
.signup-success h3 {
    margin-top: 0;
    color: var(--c-text);
}
.signup-success p {
    color: var(--c-text-soft);
    line-height: var(--lh-normal);
    margin-bottom: 0;
}

/* ---- Cookie Banner -------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    color: #1f2d3a;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    z-index: 1000;
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__title {
    margin: 0 0 8px;
    font-size: var(--fs-h4);
    color: var(--c-slate);
}
.cookie-banner__text { margin: 0 0 14px; }
.cookie-banner__text a { color: inherit; text-decoration: underline; }

.cookie-banner__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 16px;
    padding: 14px;
    background: var(--c-cyan-soft);
    border-radius: 10px;
}
.cookie-banner__options[hidden] { display: none; }

.cookie-option {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
}
.cookie-option input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--c-slate);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.cookie-banner__actions .btn-ghost {
    background: transparent;
    color: var(--c-slate);
    border: 1px solid rgba(0,0,0,0.15);
}
.cookie-banner__actions .btn-ghost:hover {
    background: rgba(0,0,0,0.04);
}

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 560px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 18px; }
    .cookie-banner__actions { justify-content: stretch; }
    .cookie-banner__actions .btn { flex: 1 1 40%; }
}

