/* ====================================================
   autimia - Landing Page Styles
   Brand: Slate #364F68 + Gold #D3BC4A (see _materials/8_Logo & Icons)
   ==================================================== */

:root {
    --c-slate: #364f68;
    --c-slate-dark: #2a3d52;
    --c-slate-deep: #1e2f42;
    --c-slate-soft: #e3e9f1;
    /* identisch zum Hintergrund der Hero-Illustration, damit keine Kante sichtbar wird */
    --c-cyan: #daedf3;
    --c-cyan-soft: #eef6f8;
    --c-gold: #d3bc4a;
    --c-gold-dark: #b9a23a;
    --c-gold-soft: #f6eccc;
    --c-text: #243447;
    --c-text-soft: #3d5058;
    --c-muted: #6b7f88;
    --c-line: #d5e0e8;
    --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;

    --shadow-sm: 0 2px 6px rgba(30, 47, 66, 0.06);
    --shadow: 0 12px 32px rgba(30, 47, 66, 0.10);
    --shadow-lg: 0 24px 60px rgba(30, 47, 66, 0.14);

    --ff-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ff-display: "DM Sans", 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: 700;
    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.015em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
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-slate); font-weight: 700; 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.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--c-line);
}
.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: 40px; width: auto; }
.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
    min-width: 0;
}
.main-nav a {
    color: var(--c-text);
    font-weight: 600;
    font-size: var(--fs-small);
    white-space: nowrap;
}
.main-nav a:hover { color: var(--c-teal-dark); text-decoration: none; }
.main-nav .nav-cta {
    color: var(--c-teal-dark);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 8px;
}
.main-nav .nav-cta:hover { color: var(--c-teal); }

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    border: 0;
    border-radius: var(--radius);
    padding: 15px 28px;
    font-family: var(--ff-display);
    font-weight: 700;
    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-slate);
    color: #fff;
    box-shadow: 0 10px 24px rgba(54, 79, 104, 0.28);
}
.btn-primary:hover {
    background: var(--c-slate-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(54, 79, 104, 0.34);
}
.btn-accent {
    background: var(--c-gold);
    color: var(--c-slate-deep);
    box-shadow: 0 10px 24px rgba(211, 188, 74, 0.35);
}
.btn-accent:hover {
    background: var(--c-gold-dark);
    color: var(--c-slate-deep);
    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 (full-bleed brand visual) ----- */
.hero {
    position: relative;
    min-height: clamp(520px, 78vh, 720px);
    display: flex;
    align-items: center;
    background: var(--c-cyan);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 96px 24px 88px;
}
.hero-copy {
    max-width: 34rem;
    animation: hero-rise 0.7s ease both;
}
.hero .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.72);
    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(54, 79, 104, 0.12);
}
.hero h1 {
    color: var(--c-slate);
    max-width: 12em;
    margin-bottom: 18px;
}
.hero h1 .brand { color: var(--c-slate); }
.hero .lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-normal);
    color: var(--c-text-soft);
    margin-bottom: 28px;
    max-width: var(--measure);
}
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.program-collage {
    max-width: 420px;
    width: 100%;
    filter: drop-shadow(0 18px 28px rgba(30, 47, 66, 0.14));
}

/* ----- Invite (Researcher) ----- */
.invite {
    padding: 56px 0;
    background: var(--c-slate);
    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 rgba(211, 188, 74, 0.55);
    box-shadow: var(--shadow);
}
.invite-message {
    font-family: var(--ff-display);
    font-weight: 500;
    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.78);
    font-size: var(--fs-sub);
    margin: 0;
}
.invite-author strong { color: var(--c-gold); }

/* ----- Blocks ----- */
.block {
    padding: 96px 0;
    background: #fff;
}
.block-light,
.block-soft,
.block-cream { background: var(--c-bg-soft); }
.block-dark {
    background: var(--c-slate);
    color: #d7e4ee;
}
.block-dark h2, .block-dark h3, .block-dark strong { color: #fff; }
.block-dark p {
    /* heller als zuvor: heller Text auf dunklem Grund wirkt duenner */
    color: #ccd9e4;
    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: 1.15fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.partner-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.partner-card h3,
.partner-card strong { color: var(--c-text); }
.partner-card p { color: var(--c-text-soft); }
.block-dark .partner-card a:not(.btn) {
    color: var(--c-teal-dark);
    text-decoration: underline;
}
.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);
}
.signup-aside {
    margin: 28px auto 0;
    max-width: var(--measure);
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    color: var(--c-text-soft);
    font-size: var(--fs-sub);
    line-height: var(--lh-text);
    text-align: left;
}
.signup-aside a { font-weight: 600; }

.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, Innenabstand 2 x 26px */
    max-width: calc(var(--measure) + 98px);
    display: grid;
    gap: 16px;
}
.criteria-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 18px;
    align-items: flex-start;
    background: #fff;
    padding: 22px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
    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);
}

/* ----- Dual block (Was bringen / Was bekommen) ----- */
.dual-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.dual-col h2 { margin-bottom: 28px; color: var(--c-slate); }
.card-grid { display: grid; gap: 16px; }
/* Zwei Spalten nur, wenn das Raster die volle Containerbreite hat. Innerhalb
   einer Haelfte von .dual-block bleiben sonst rund 190px Textbreite uebrig,
   in denen jede Zeile nach drei bis vier Woertern umbricht. */
.card-grid.two { grid-template-columns: 1fr; }
.block > .container > .card-grid.two { grid-template-columns: 1fr 1fr; }
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 22px 22px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-slate);
}
.card h3 {
    color: var(--c-slate);
    margin-bottom: 8px;
    font-size: var(--fs-h4);
}
.card p {
    margin: 0;
    font-size: var(--fs-sub);
    line-height: var(--lh-normal);
    color: var(--c-text-soft);
}
.footnote {
    margin-top: 18px;
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
    color: var(--c-muted);
    max-width: var(--measure-small);
}

/* ----- USPs ----- */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.usp {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.usp:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.usp-icon { width: 52px; height: 52px; margin-bottom: 18px; }
.usp h3 { margin-bottom: 8px; font-size: var(--fs-h4); }
.usp p { margin: 0; font-size: var(--fs-sub); line-height: var(--lh-normal); }

/* ----- Gallery ----- */
/* Programm-Screenshots: zwei nebeneinander, damit der Text darin lesbar bleibt */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 48px;
    max-width: 860px;
    margin: 0 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;
}
/* Dauerhaft sichtbare Lupe: auf Touch gibt es kein Hover als Affordance */
.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;
}
.gallery-note {
    max-width: var(--measure-sub);
    margin: 40px auto 0;
    text-align: center;
    color: var(--c-text-soft);
    font-size: var(--fs-sub);
}

/* ----- Steps ----- */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
    display: grid;
    gap: 18px;
    /* Zuschlag: Nummern-Spalte 60px, Spalten-Abstand 22px, Innenabstand 2 x 28px */
    max-width: calc(var(--measure-sub) + 138px);
    margin: 0 auto;
}
.steps li {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 22px;
    align-items: start;
    background: #fff;
    padding: 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
}
.step-no {
    font-family: var(--ff-display);
    font-weight: 700;
    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);
}
.steps h3 { margin-bottom: 6px; font-size: var(--fs-h3); }
.steps p { margin: 0; font-size: var(--fs-sub); line-height: var(--lh-text); }

/* ----- Signup + FAQ ----- */
.signup-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: start;
}
.faq-title {
    font-size: var(--fs-small);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--c-teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.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: var(--c-slate);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.form-card h3 {
    font-size: var(--fs-h3);
    color: #fff;
    margin-bottom: 20px;
}
.signup-form { display: grid; gap: 16px; }
.signup-form label {
    display: grid;
    gap: 6px;
    font-size: var(--fs-sub);
    font-weight: 600;
    color: #fff;
}
.signup-form label > span { font-weight: 600; }
.signup-form input[type="text"],
.signup-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.96);
    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(211, 188, 74, 0.28);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signup-form label.checkbox {
    grid-template-columns: 22px 1fr;
    align-items: start;
    font-weight: 400;
    font-size: var(--fs-small);
    color: var(--c-text-soft);
    line-height: var(--lh-normal);
}
.signup-form label.checkbox input { margin-top: 3px; accent-color: var(--c-teal); }
.form-note {
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
    color: rgba(255, 255, 255, 0.75);
    margin: 4px 0 0;
}
.form-card .btn-primary {
    background: var(--c-gold);
    color: var(--c-slate-deep);
    box-shadow: 0 10px 24px rgba(211, 188, 74, 0.35);
}
.form-card .btn-primary:hover {
    background: var(--c-gold-dark);
    color: var(--c-slate-deep);
}

/* ----- Contact ----- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.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: #b6c5d1;
    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: #b6c5d1; margin: 0 0 8px; }
.footer-col strong { color: #fff; }
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.footer-tagline { color: #d7e4ee; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding-top: 20px;
    font-size: var(--fs-micro);
    color: #8497a6;
    text-align: center;
}
.footer-bottom p { margin: 0; color: inherit; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .usp-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dual-block { gap: 48px; }
    .partner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .main-nav a:not(.nav-cta) { display: none; }
    .main-nav { gap: 0; }
    .main-nav .nav-cta { margin-left: 0; }
}

@media (max-width: 820px) {
    /* Basis nicht heruntersetzen: Lesbarkeit fuer die Zielgruppe hat Vorrang */
    .block { padding: 64px 0; }
    /* Illustration fliesst unter den Text, statt ihn zu hinterlegen */
    .hero {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-bg {
        position: static;
        order: 2;
        display: flex;
        justify-content: center;
        padding: 0 24px 40px;
    }
    .hero-bg img {
        width: auto;
        height: auto;
        max-width: 340px;
        object-fit: contain;
    }
    .hero-content {
        order: 1;
        padding: 48px 24px 16px;
    }
    .hero-copy { max-width: 100%; }
    .program-collage { max-width: 300px; }
    .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; }

    .dual-block { grid-template-columns: 1fr; gap: 56px; }
    .block > .container > .card-grid.two { grid-template-columns: 1fr; }

    .signup-grid { grid-template-columns: 1fr; gap: 36px; }

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

    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px; }

    .steps li { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; }
    .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: 0 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;
    }

    .usp-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; gap: 32px; }
    /* 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;
        padding: 16px 16px;
    }
    .check { width: 22px; height: 22px; flex-basis: 22px; }
    .check::after { left: 7px; top: 3px; width: 6px; height: 11px; }
    .steps li { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 16px; }
    .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; }
}

/* ---- 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;
}
.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: #fff;
}
.signup-success p {
    color: rgba(255, 255, 255, 0.86);
    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%; }
}

/* ---- Lightbox (Programm-Screenshots) ------------------------------------ */
.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;
}
/* 720px ist die native Breite der Programm-Screenshots, hoeher wird es unscharf */
.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; }
