/* MaxxLevel – Website
   Farben wie in der App (Theme.swift), hell/dunkel automatisch oder per Umschalter (data-theme). Keine externen Schriften. */

:root {
    --accent: #FF5330;
    --accent-strong: #B8300F;   /* Text in Akzentfarbe – Kontrast ≥ 4,5:1 auf hellen Flächen */
    --accent-soft: #FFECE6;
    --button: #D9391A;          /* Knopffläche – weißer Text mit Kontrast ≥ 4,5:1 */
    --button-hover: #B8300F;
    --accent-medium: #FFB9A5;
    --blue: #1F56E0;
    --blue-soft: #E6EEFF;
    --ring-start: #FF7A3D;
    --ring-end: #FF2E63;

    --bg: #F1F1F5;
    --card: #FFFFFF;
    --text: #14161A;
    --text-2: #5E5E66;
    --text-3: #6B6B72;
    --separator: #E3E3E8;
    --shadow: 0 10px 30px rgba(20, 22, 26, .08);
    --shadow-strong: 0 24px 60px rgba(20, 22, 26, .16);
    --error: #C8321A;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;

    --container: 1120px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-space: clamp(64px, 9vw, 120px);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    color-scheme: light dark;
}

/* Dunkel: automatisch nach Systemeinstellung – außer jemand hat auf der Website „Hell“ gewählt */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --accent: #FF6242;
        --accent-strong: #FF9275;
        --accent-soft: #3A1D15;
        --button: #D9391A;
        --button-hover: #B8300F;
        --accent-medium: #7A3322;
        --blue: #86ABFF;
        --blue-soft: #15213F;

        --bg: #000000;
        --card: #1C1C1E;
        --text: #F5F5F7;
        --text-2: #B4B4BA;
        --text-3: #8E8E94;
        --separator: #38383A;
        --shadow: 0 10px 30px rgba(0, 0, 0, .5);
        --shadow-strong: 0 24px 60px rgba(0, 0, 0, .6);
        --error: #FF9275;
    }
}

/* Dunkel per Umschalter gewählt (gleiche Werte wie oben) */
:root[data-theme="dark"] {
    --accent: #FF6242;
    --accent-strong: #FF9275;
    --accent-soft: #3A1D15;
    --button: #D9391A;
    --button-hover: #B8300F;
    --accent-medium: #7A3322;
    --blue: #86ABFF;
    --blue-soft: #15213F;

    --bg: #000000;
    --card: #1C1C1E;
    --text: #F5F5F7;
    --text-2: #B4B4BA;
    --text-3: #8E8E94;
    --separator: #38383A;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    --shadow-strong: 0 24px 60px rgba(0, 0, 0, .6);
    --error: #FF9275;
    color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Grundlagen ---------- */

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { color: var(--accent); }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px; top: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
    transform: translateY(-200%);
    transition: transform .2s;
}
.skip-link:focus { transform: none; }

main:focus { outline: none; }

/* ---------- Kopf ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--separator); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.brand { margin-right: auto; }
.brand-icon { border-radius: 9px; }
.brand:hover { color: var(--text); }

.site-nav ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .98rem;
    white-space: nowrap;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }

/* Umschalter Automatisch / Hell / Dunkel */
.theme-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
}
.theme-toggle:hover { color: var(--accent-strong); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle [data-theme-icon] { display: none; }
.theme-toggle[data-choice="auto"] [data-theme-icon="auto"],
.theme-toggle[data-choice="light"] [data-theme-icon="light"],
.theme-toggle[data-choice="dark"] [data-theme-icon="dark"] { display: block; }
/* Ohne JavaScript kann nicht umgeschaltet werden */
.no-js .theme-toggle { display: none; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    position: absolute;
    left: 13px;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .25s, opacity .25s, top .25s;
    content: "";
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* Ausklappbares Menü bis Tablet-Hochformat (iPad 768–834 px): nebeneinander passt die Navigation erst ab ca. 800 px */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    /* Auf dem Handy links neben dem Menüknopf */
    .theme-toggle { order: 1; }
    .nav-toggle { order: 2; }
    .site-nav {
        position: absolute;
        left: var(--gutter); right: var(--gutter);
        top: 72px;
        padding: 10px;
        border-radius: var(--radius);
        background: var(--card);
        box-shadow: var(--shadow-strong);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .site-nav.is-open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        visibility: visible;
    }
    .site-nav ul { flex-direction: column; }
    .site-nav a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1.05rem; }
    /* Ohne JavaScript: Menü immer sichtbar */
    .no-js .site-nav { position: static; opacity: 1; transform: none; visibility: visible; pointer-events: auto; box-shadow: none; }
    .no-js .nav-toggle { display: none; }
}

/* ---------- Bausteine ---------- */

.section { padding-block: var(--section-space); }
.section--tight { padding-block: calc(var(--section-space) * .6); }
.section--card { background: var(--card); }

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .02em;
}
.eyebrow--blue { background: var(--blue-soft); color: var(--blue); }

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--text-2);
    max-width: 62ch;
}
.lead--center { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    gap: clamp(16px, 2.4vw, 24px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.icon-badge {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--blue { background: var(--blue-soft); color: var(--blue); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 26px;
    border: 0;
    border-radius: 16px;
    background: var(--button);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--button) 35%, transparent);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.button:hover { color: #fff; background: var(--button-hover); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--soft { background: var(--accent-soft); color: var(--accent-strong); box-shadow: none; }
.button--soft:hover { background: var(--accent-medium); color: var(--accent-strong); }
.button--light { background: #fff; color: #C8321A; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.button--light:hover { background: #fff; color: #A5260F; }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
}
.store-badge small { display: block; font-size: .72rem; font-weight: 500; opacity: .8; }
.store-badge:hover { color: #fff; }
.store-badge--soon { background: var(--card); color: var(--text); border: 1px solid var(--separator); cursor: default; }
.store-badge--soon:hover { color: var(--text); }
/* Auf dem farbigen Hero */
.store-badge--on-color.store-badge--soon { background: rgba(0, 0, 0, .28); color: #fff; border-color: rgba(255, 255, 255, .4); }

/* iPhone-Rahmen für Screenshots */
.phone {
    position: relative;
    width: min(100%, 300px);
    /* Innenfläche genau im Screenshot-Format (800 × 1739) bei 3,2 % Rand */
    aspect-ratio: 1000 / 2099;
    container-type: inline-size;
    /* Eigene Ecken in Prozent: cqi würde sich hier auf den Bildschirm beziehen */
    border-radius: 17% / 8.1%;
    background: linear-gradient(145deg, #2A2A2E, #0E0E10);
    box-shadow: var(--shadow-strong), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone-screen {
    position: absolute;
    inset: 3.2cqi;
    overflow: hidden;
    border-radius: 14cqi;
    background: #F1F1F5;
}
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Seitenkopf für Unterseiten ---------- */

.page-hero {
    padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px);
}
.page-hero .lead { margin-top: 12px; }

/* ---------- Fließtext (Rechtliches) ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose .note {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--text);
}

/* ---------- Fuß ---------- */

.site-footer {
    margin-top: var(--section-space);
    padding-block: 48px 40px;
    background: var(--card);
    border-top: 1px solid var(--separator);
    color: var(--text-2);
    font-size: .95rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 11px; }
.footer-brand strong { color: var(--text); font-size: 1.1rem; }
/* Zwei feste Zeilen – Safari brach mit text-wrap: pretty sonst in drei um */
.footer-brand p { margin: 2px 0 0; line-height: 1.4; white-space: nowrap; text-wrap: nowrap; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent-strong); }
.footer-copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--separator); color: var(--text-3); font-size: .88rem; }

@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.not-found { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.not-found .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; color: var(--button); line-height: 1; margin-bottom: 12px; }

/* ======================================================================
   Startseite
   ====================================================================== */

.section--tint { background: linear-gradient(180deg, var(--bg), var(--accent-soft) 160%); }

.button-icon { width: 20px; height: 20px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 90% at 30% 10%, #FF8A2B 0%, #F2541F 38%, #D8302A 64%, #A8163A 100%);
    padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px);
    margin-top: -1px;
}
.hero-rays {
    position: absolute;
    inset: -40%;
    background: repeating-conic-gradient(from 0deg at 35% 30%, rgba(255, 255, 255, .07) 0deg 7deg, transparent 7deg 18deg);
    mask-image: radial-gradient(circle at 35% 30%, #000 0%, transparent 62%);
    -webkit-mask-image: radial-gradient(circle at 35% 30%, #000 0%, transparent 62%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.hero-logo {
    width: clamp(200px, 24vw, 290px);
    height: auto;
    margin-bottom: clamp(24px, 3vw, 36px);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18));
}
/* Dunkles Weinrot setzt sich vom weißen Logo ab, die Pointe leuchtet in hellem Gold */
.hero h1 { color: #4A0A18; font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
.hero h1 span { color: #FFE7B3; }
.hero-lead {
    max-width: 38ch;
    font-size: clamp(1.1rem, 1.7vw, 1.32rem);
    color: rgba(255, 255, 255, .92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
    font-size: .98rem;
    color: rgba(255, 255, 255, .92);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; }

.hero-phones {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(420px, 48vw, 600px);
}
.hero-phones .phone { position: absolute; width: clamp(200px, 22vw, 290px); }
.hero-phones .phone--front { transform: translateX(-24%) rotate(-5deg); z-index: 2; }
.hero-phones .phone--back { transform: translateX(34%) translateY(6%) rotate(7deg); opacity: .96; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: left; }
    .hero-phones { min-height: 460px; margin-top: 8px; }
    .hero-phones .phone { width: min(56vw, 250px); }
}
@media (max-width: 480px) {
    .hero-phones { min-height: 400px; }
    .hero-phones .phone--front { transform: translateX(-22%) rotate(-5deg); }
    .hero-phones .phone--back { transform: translateX(28%) translateY(6%) rotate(7deg); }
}

/* ---------- Schritte ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 28px);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
}
.step .phone { width: min(100%, 220px); margin-bottom: 26px; }
.step-number {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--button);
    color: #fff;
    font-weight: 800;
}
.step p { color: var(--text-2); margin: 0; }

@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .step { flex-direction: row; text-align: left; align-items: center; gap: 22px; }
    .step .phone { width: 38%; flex: 0 0 38%; margin: 0; }
}
@media (max-width: 420px) {
    .step { flex-direction: column; text-align: center; }
    .step .phone { width: 62%; flex-basis: auto; }
}

/* ---------- Funktionen ---------- */

.feature {
    padding: clamp(22px, 2.6vw, 30px);
    border-radius: var(--radius);
    background: var(--bg);
}
.section--card .feature { background: var(--bg); }
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--text-2); font-size: 1rem; }

/* ---------- Schaufenster (Text + Handy) ---------- */

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}
.showcase--reverse .showcase-text { order: 2; }
.showcase-media { display: flex; justify-content: center; }
.showcase-media .phone { width: min(100%, 300px); }
.showcase-media--duo { gap: clamp(14px, 2vw, 24px); }
.showcase-media--duo .phone { width: min(46%, 260px); }
.showcase-media--duo .phone:last-child { transform: translateY(8%); }

.checklist { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.checklist svg {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    padding: 7px;
    border-radius: 10px;
    background: var(--blue-soft);
    color: var(--blue);
}

@media (max-width: 860px) {
    .showcase { grid-template-columns: 1fr; }
    .showcase--reverse .showcase-text { order: 0; }
}

/* ---------- Werte ---------- */

.values .card p { color: var(--text-2); margin: 0; }

/* ---------- Galerie ---------- */

.gallery-section { padding-bottom: calc(var(--section-space) * .8); }
.gallery {
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2)) 36px;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
    scrollbar-width: thin;
}
.gallery .phone {
    flex: 0 0 auto;
    width: clamp(190px, 22vw, 250px);
    scroll-snap-align: start;
    margin: 0;
}
.gallery:focus-visible { outline-offset: -4px; }

/* ---------- Teaser ---------- */

.teaser { display: flex; align-items: flex-start; gap: 22px; }
.teaser h3 { margin-bottom: .4em; }
.teaser p { color: var(--text-2); }
.teaser-photo {
    flex: 0 0 auto;
    width: 112px; height: 112px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 5px var(--accent-soft);
}
.teaser .icon-badge { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; }
@media (max-width: 520px) {
    .teaser { flex-direction: column; }
}

/* ---------- Abschluss ---------- */

.cta { margin-bottom: calc(var(--section-space) * -.3); }
.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(40px, 6vw, 72px) var(--gutter);
    border-radius: var(--radius-lg);
    color: #fff;
    background: radial-gradient(120% 120% at 20% 0%, #FF8A2B, #E3402A 55%, #A8163A);
    box-shadow: var(--shadow-strong);
}
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { color: rgba(255, 255, 255, .9); font-size: 1.15rem; margin-bottom: 24px; }
.cta-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }

/* Phone-Rahmen: figure ohne Standardabstand */
figure.phone { margin: 0; }

/* ======================================================================
   Über uns
   ====================================================================== */

.about-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}
.about-hero-photo img {
    width: clamp(160px, 22vw, 260px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--accent-soft), var(--shadow-strong);
}
@media (max-width: 720px) {
    .about-hero { grid-template-columns: 1fr; text-align: left; }
}

.story { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.story-card p { font-size: 1.1rem; }
.story-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.story-head .icon-badge { margin: 0; }
.story-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.signature { margin: 0; text-align: right; font-style: italic; color: var(--text-2); }

.next-card { display: flex; gap: 22px; align-items: flex-start; }
.next-card .icon-badge { flex: 0 0 auto; }
.next-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.next-card p { color: var(--text-2); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 520px) { .next-card { flex-direction: column; } }

/* ======================================================================
   Spenden
   ====================================================================== */

.donate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: start;
    gap: clamp(20px, 3vw, 32px);
}
.donate-text { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.donate-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.donate-text p { color: var(--text-2); }

.donate-box {
    position: sticky;
    top: 92px;
    padding: clamp(26px, 3vw, 36px);
    border-radius: var(--radius-lg);
    color: #fff;
    background: radial-gradient(120% 120% at 20% 0%, #FF8A2B, #E3402A 55%, #A8163A);
    box-shadow: var(--shadow-strong);
}
.donate-box h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.donate-box p { color: rgba(255, 255, 255, .92); }
.donate-box-icon {
    display: grid; place-items: center;
    width: 60px; height: 60px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .2);
}
.donate-box-icon svg { width: 30px; height: 30px; }
.donate-box hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .3); margin: 22px 0 18px; }
.donate-note { font-size: .88rem; margin: 14px 0 0; }
.donate-soon {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .2);
    font-weight: 700;
}
.donate-kids { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: .98rem; }
.donate-kids svg { flex: 0 0 auto; width: 26px; height: 26px; }

.button--paypal {
    width: 100%;
    background: #FFC439;
    color: #111;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.button--paypal:hover { background: #F2B72F; color: #111; }

.checklist--accent svg { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 860px) {
    .donate-layout { grid-template-columns: 1fr; }
    .donate-box { position: static; order: -1; }
}

/* ======================================================================
   Kontakt & Hilfe
   ====================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
    scroll-margin-top: 90px;
}
.contact-form-wrap { scroll-margin-top: 90px; }
.contact-side { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.contact-side h2, .contact-form h2, .form-success h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.contact-side p { color: var(--text-2); }
.contact-mail { font-weight: 700; font-size: 1.1rem; word-break: break-all; }
.card--blue { background: linear-gradient(160deg, var(--card), var(--blue-soft) 180%); }

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
}

.contact-form { display: grid; gap: 18px; }
.contact-form h2 { margin: 0; }
.field { display: grid; gap: 6px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field label { font-weight: 700; font-size: .98rem; }
.optional { font-weight: 500; color: var(--text-3); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid var(--separator);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A8A90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field-hint { margin: 0; font-size: .88rem; color: var(--text-3); }
.field-error { margin: 0; font-size: .92rem; font-weight: 600; color: var(--error); }
.has-error input, .has-error textarea { border-color: #E0442A; }

.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field-check input {
    width: 22px; height: 22px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}
.field-check label { font-weight: 500; font-size: .95rem; color: var(--text-2); }
.field-check .field-error { grid-column: 2; }

.contact-form .button { justify-self: start; }
.contact-form .button .button-icon { width: 20px; height: 20px; }

.form-alert {
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 600;
}
.form-success { text-align: left; }
.form-success p { color: var(--text-2); }

/* Honeypot: für Menschen unsichtbar, für Screenreader ausgeblendet */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq-group { margin: 34px 0 12px; font-size: 1.15rem; color: var(--text-2); }
.faq-group:first-of-type { margin-top: 0; }
.faq { display: grid; gap: 10px; }
.faq-item {
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-item summary {
    position: relative;
    padding: 18px 56px 18px 22px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 22px; top: 50%;
    width: 11px; height: 11px;
    border-right: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-answer { padding: 0 22px 18px; color: var(--text-2); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 1.2em; }
.faq-answer code { padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: .95em; }

/* ======================================================================
   Rechtliches
   ====================================================================== */

.prose.card { padding: clamp(24px, 4vw, 48px); }
.prose h2:first-child { margin-top: 0; }
.prose h2 { scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--bg); font-size: .92em; }

.toc { margin-bottom: clamp(16px, 2.4vw, 24px); }
.toc h2 { font-size: 1.1rem; margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

mark.placeholder {
    padding: 1px 6px;
    border-radius: 6px;
    background: #FFE08A;
    color: #5A4300;
    font-weight: 700;
}

/* ======================================================================
   Testen (TestFlight) – nur während der Testphase sichtbar
   ====================================================================== */

.store-badge--beta:hover { color: #fff; }

/* Hinweis auf der Startseite */
.beta-banner-wrap { padding-top: clamp(32px, 5vw, 56px); }
.beta-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--accent-medium);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--card) 40%, var(--accent-soft));
    box-shadow: var(--shadow);
}
.beta-banner-icon {
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    border-radius: 20px;
    background: var(--button);
    color: #fff;
}
.beta-banner-icon svg { width: 36px; height: 36px; }
.beta-banner h2 { margin: 10px 0 .3em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.beta-banner p { margin: 0; color: var(--text-2); }
.beta-banner-button { white-space: nowrap; }

@media (max-width: 860px) {
    .beta-banner { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .beta-banner-button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
    .beta-banner { grid-template-columns: 1fr; }
    .beta-banner-icon { width: 56px; height: 56px; border-radius: 16px; }
    .beta-banner-icon svg { width: 28px; height: 28px; }
    .beta-banner-button { justify-self: stretch; white-space: normal; }
}

/* Seite /testen */
.beta-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: start;
    gap: clamp(20px, 3vw, 32px);
}
.beta-text { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.beta-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.beta-text p { color: var(--text-2); }
.beta-text .checklist { margin-top: 8px; }
.beta-text .checklist li { font-weight: 500; }

.beta-box {
    position: sticky;
    top: 92px;
    padding: clamp(26px, 3vw, 36px);
    border-radius: var(--radius-lg);
    color: #fff;
    background: radial-gradient(120% 120% at 20% 0%, #FF8A2B, #E3402A 55%, #A8163A);
    box-shadow: var(--shadow-strong);
}
.beta-box h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.beta-box p { color: rgba(255, 255, 255, .92); }
.beta-box a:not(.button) { color: #fff; font-weight: 700; }
.beta-box-icon {
    display: grid; place-items: center;
    width: 60px; height: 60px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .2);
}
.beta-box-icon svg { width: 30px; height: 30px; }
.beta-box hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .3); margin: 22px 0 18px; }
.beta-button { width: 100%; }
.beta-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .2);
}
.beta-qr .qr { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 10px; }
.beta-qr p { margin: 0; font-size: .92rem; }
.beta-soon {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .2);
    font-weight: 700;
}
.beta-small { margin: 0; font-size: .95rem; }

/* Auf Touch-Geräten (iPhone, iPad) hilft der QR-Code nicht – dort reicht der Knopf */
@media (hover: none) and (pointer: coarse), (max-width: 560px) {
    .beta-qr { display: none; }
}

@media (max-width: 860px) {
    .beta-layout { grid-template-columns: 1fr; }
    .beta-box { position: static; order: -1; }
}

.beta-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.beta-step { position: relative; }
.beta-step .step-number { position: absolute; top: clamp(22px, 3vw, 32px); right: clamp(22px, 3vw, 32px); margin: 0; }
.beta-step h3 { margin-bottom: .35em; }
.beta-step p { margin: 0; color: var(--text-2); }
@media (max-width: 980px) { .beta-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .beta-steps { grid-template-columns: 1fr; } }

.beta-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
}
.beta-parents h2, .beta-faq-title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.beta-parents .checklist { margin-top: 8px; }
.beta-parents .checklist li { font-weight: 500; color: var(--text-2); }
@media (max-width: 860px) { .beta-bottom { grid-template-columns: 1fr; } }

.beta-recognize {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--blue-soft);
}
.beta-text .beta-recognize { color: var(--text); }
.beta-recognize svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--blue); }
.beta-trademark { margin-top: clamp(32px, 5vw, 48px); margin-bottom: 0; font-size: .82rem; color: var(--text-3); }

/* ======================================================================
   Anleitung
   ====================================================================== */

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
    padding-bottom: clamp(40px, 6vw, 80px);
}
/* Inhaltsverzeichnis läuft am Rand mit */
.guide-toc {
    position: sticky;
    top: 92px;
    margin-bottom: 0;
}
.guide-toc ol { columns: 1; font-size: .96rem; }
.guide-toc a { text-decoration: none; color: var(--text); }
.guide-toc a:hover { color: var(--accent-strong); text-decoration: underline; }

.guide-body { display: grid; gap: clamp(20px, 3vw, 32px); }

.guide-chapter {
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
    scroll-margin-top: 90px;
}
.guide-chapter h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .6em; }
.guide-chapter h3 { font-size: 1.15rem; margin-bottom: .5em; }
.guide-chapter p, .guide-chapter li { color: var(--text-2); }
.guide-chapter strong { color: var(--text); }
.guide-chapter ul, .guide-chapter ol { padding-left: 1.3em; margin: 0 0 1em; }
.guide-chapter li + li { margin-top: .4em; }
.guide-chapter code {
    padding: 2px 6px; border-radius: 6px;
    background: var(--accent-soft); color: var(--accent-strong); font-size: .95em;
}

/* Text links, Screenshot rechts */
.guide-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
    gap: clamp(18px, 3vw, 32px);
    align-items: start;
}
.guide-split .phone { width: 100%; }

.guide-steps { counter-reset: guide; list-style: none; padding-left: 0; }
.guide-steps li {
    position: relative;
    padding-left: 38px;
    margin-bottom: .6em;
}
.guide-steps li::before {
    counter-increment: guide;
    content: counter(guide);
    position: absolute; left: 0; top: -1px;
    display: grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-strong);
    font-size: .85rem; font-weight: 800;
}

.guide-tip, .guide-parents {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 0;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--text);
}
.guide-tip svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--accent); }

.guide-parents {
    display: block;
    margin-top: 20px;
    background: var(--blue-soft);
}
.guide-parents h3 { display: flex; align-items: center; gap: 10px; color: var(--text); }
.guide-parents h3 svg { width: 24px; height: 24px; color: var(--blue); }
.guide-parents ul { margin-bottom: 0; }
.guide-parents p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc { position: static; }
    .guide-toc ol { columns: 2; column-gap: 28px; }
    .guide-split { grid-template-columns: 1fr; }
    .guide-split .phone { width: min(100%, 260px); margin-inline: auto; }
}
@media (max-width: 480px) {
    .guide-toc ol { columns: 1; }
}

/* Mehrere Screenshots nebeneinander innerhalb eines Kapitels.
   Feste Höchstbreite, damit ein einzelnes Bild nicht die ganze Zeile füllt. */
.guide-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 190px));
    justify-content: start;
    gap: clamp(12px, 2vw, 20px);
    margin-top: clamp(16px, 2.4vw, 24px);
}
.guide-gallery .phone { width: 100%; }

/* Karten zum Teilen ohne iPhone-Rahmen.
   Wichtig: <picture> hat display:contents — die Bilder brauchen deshalb einen eigenen Rahmen,
   sonst zählt das <source>-Element im Raster als eigene Spalte. */
.guide-card-shot img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
}
.guide-gallery--cards { grid-template-columns: repeat(auto-fit, minmax(180px, 250px)); }

/* Drei Teaser nebeneinander: Bild bzw. Symbol über den Text */
.teasers.grid--3 .teaser {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.teasers.grid--3 .teaser-photo { width: 110px; height: 110px; }
