/* ==========================================================================
   Just Connect Here — Designsystem der Website
   --------------------------------------------------------------------------
   Farben und Formensprache sind aus den Bannern abgeleitet: kräftiges Blau,
   Marineblau als Tiefe, goldgelber Akzent, weiche Rundungen.

   BEWUSST OHNE externe Schriften und ohne CDN. Google Fonts würde bei jedem
   Seitenaufruf die IP der Besucher in die USA übertragen — das widerspricht
   der Aussage „keine Drittlandübertragung", mit der diese Seite wirbt.
   Deshalb ausschließlich System-Schriften und lokale Dateien.
   ========================================================================== */

:root {
    color-scheme: light dark;

    /* Marke */
    --brand:        #1d6fe8;
    --brand-strong: #1558c0;
    --brand-soft:   #e8f0fe;
    --navy:         #0b2447;
    --gold:         #f5b301;

    /* Flächen und Text — Hell ist die Vorgabe */
    --bg:           #f4f8fd;
    --bg-alt:       #eaf1fa;
    --surface:      #ffffff;
    --border:       #dde7f3;
    --text:         #0c1f3f;
    --text-muted:   #5b6d88;

    --shadow-sm: 0 1px 2px rgba(11, 36, 71, .06), 0 2px 8px rgba(11, 36, 71, .05);
    --shadow-md: 0 4px 12px rgba(11, 36, 71, .08), 0 12px 32px rgba(11, 36, 71, .07);

    --radius:    14px;
    --radius-lg: 22px;
    --maxw:      1140px;

    --banner:       url("img/banner25-light.webp?v=5");
    /* Hell und dunkel sind unterschiedlich hoch. Ohne eigenes Verhältnis je
       Schema müsste eines von beiden beschnitten oder gestaucht werden. */
    --banner-ratio: 1600 / 551;
}

/* Dunkel: einmal automatisch nach Systemwahl, einmal per Schalter erzwingbar.
   Beide Wege sind nötig — ohne den Datenattribut-Zweig hätte der Umschalter
   keine Wirkung, ohne die Medienabfrage gäbe es keine Vorbelegung. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:         #070f1e;
        --bg-alt:     #0b1729;
        --surface:    #0e1b30;
        --border:     #1c2e4a;
        --text:       #e8eef7;
        --text-muted: #93a6c0;
        --brand-soft: #12325e;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-md: 0 8px 28px rgba(0, 0, 0, .45);
        --banner:       url("img/banner25-dark.webp?v=5");
        --banner-ratio: 1600 / 584;
    }
}

:root[data-theme="dark"] {
    --bg:         #070f1e;
    --bg-alt:     #0b1729;
    --surface:    #0e1b30;
    --border:     #1c2e4a;
    --text:       #e8eef7;
    --text-muted: #93a6c0;
    --brand-soft: #12325e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .45);
    --banner:       url("img/banner25-dark.webp?v=5");
    --banner-ratio: 1600 / 584;
}

/* Die englische Seite trägt ein eigenes Banner — die Beschriftung im Bild
   ist Teil der Grafik, nicht des Textes, und wäre auf Englisch sonst
   deutsch geblieben. Vier Fassungen, weil hell und dunkel unterschiedlich
   hoch sind; jede bringt ihr eigenes Seitenverhältnis mit, damit nichts
   gestaucht wird. Die Sprache steht im `lang` des `html`-Elements, die
   Auswahl braucht deshalb keine zweite Stylesheet-Datei. */
html[lang="en"] {
    --banner:       url("img/banner25-light-en.webp?v=1");
    --banner-ratio: 1600 / 569;
}

@media (prefers-color-scheme: dark) {
    html[lang="en"]:not([data-theme="light"]) {
        --banner:       url("img/banner25-dark-en.webp?v=1");
        --banner-ratio: 1600 / 623;
    }
}

html[lang="en"][data-theme="dark"] {
    --banner:       url("img/banner25-dark-en.webp?v=1");
    --banner-ratio: 1600 / 623;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --- Kopfleiste ---------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 62px;
}

.brandmark {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 17px;
    color: var(--text);
    white-space: nowrap;
}
.brandmark:hover { text-decoration: none; }
.brandmark span { color: var(--brand); }

.brandmark img {
    width: 30px;
    height: 30px;
    display: block;
    /* Gürtel und Hosenträger: Greift die Flex-Zentrierung oben aus
       irgendeinem Grund nicht, säße das Bild als Inline-Element auf der
       Schriftlinie — und damit sichtbar zu hoch. */
    vertical-align: middle;
    /* Das Symbol hat einen freigestellten Hintergrund und einen sehr hellen
       Blasenkörper. Auf dunklem Grund braucht es deshalb eine eigene Fläche,
       sonst schwebt eine weiße Sprechblase im Nichts. */
    border-radius: 8px;
    background: #fff;
    padding: 1px;
}

.topbar-spacer { flex: 1; }

.langs { display: flex; gap: 2px; font-size: 14px; }
.langs a {
    color: var(--text-muted);
    padding: 4px 9px;
    border-radius: 8px;
}
.langs a:hover { background: var(--bg-alt); text-decoration: none; }
.langs .active {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }

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

.hero { padding: 28px 0 8px; }

/* Banner als Hintergrundbild statt <img>: So lädt der Browser nur die
   Variante, die zum aktiven Farbschema gehört. Zwei <img> übereinander
   würden beide geladen — rund 330 KB unnötig. */
/* **Nur für Suchmaschinen und Screenreader sichtbar.** Die Überschrift der
   Startseite steckt im Banner — als Pixel, nicht als Text. Ohne eine echte
   `h1` hätte die wichtigste Seite gar keine, während jede Unterseite eine
   hat. Sie wird nicht mit `display:none` versteckt: Das nähme sie auch dem
   Screenreader. */
.nur-vorlesen {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-banner {
    display: block;
    width: 100%;
    /* **Ganz und mittig, ohne Text daneben.** Das Banner trägt seine
       Botschaft selbst — Logo, Claim, die vier Merkmale und das Gerät. Eine
       Überschrift daneben sagte dasselbe ein zweites Mal. */
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: var(--banner-ratio);
    background-image: var(--banner);
    /* `contain`, nicht `cover`: Auf schmalen Geräten wird skaliert, nicht
       beschnitten — sonst fielen genau die Merkmale weg, für die es da ist. */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}



h1 {
    font-size: clamp(30px, 5.2vw, 46px);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 0 0 14px;
    font-weight: 800;
}

.lead {
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--text-muted);
    margin: 0 0 26px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 16px;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(29, 111, 232, .32);
}
.btn-primary:hover { background: var(--brand-strong); }

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Im Hero enger setzen: Der Absatz stand mit 26 px Luft über den Knöpfen,
   und unter ihnen blieben weitere 22 px stehen — Rest davon, dass dort
   ursprünglich die Merkmale saßen. Zusammen war die Textspalte fast 90 px
   höher als das Banner daneben. */
.hero .lead { margin-bottom: 18px; }
.hero .cta-row { margin-bottom: 0; }

/* Vertrauensmerkmale — im Hero eine eigene Zeile über die volle Breite,
   damit alle drei nebeneinander passen. In der schmalen Textspalte brachen
   sie auf zwei Zeilen um und wirkten wie ein Rest. */
.hero .chips { margin-top: 26px; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 550;
}

/* --- Abschnitte ---------------------------------------------------------- */

section { padding: 46px 0; }
section.tinted { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }

h2 {
    font-size: clamp(23px, 3.4vw, 31px);
    letter-spacing: -.02em;
    margin: 0 0 8px;
    font-weight: 750;
}

.section-head p { color: var(--text-muted); margin: 0; font-size: 16px; }

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: block;
    color: inherit;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

a.card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.badge {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 7px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.badge.gold {
    background: color-mix(in srgb, var(--gold) 18%, transparent);
    color: #9a7100;
}
:root[data-theme="dark"] .badge.gold,
:root:not([data-theme="light"]) .badge.gold { color: var(--gold); }

/* Nummerierte Schritte (Android-Beta) */
.step-num {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

/* --- Inhaltsseiten (Impressum, Datenschutz, Support …) -------------------- */

/* Die Startseite besteht aus Karten, diese Seiten aus Fließtext. Deshalb ein
   eigener, schmalerer Satzspiegel: Zeilen über etwa 70 Zeichen liest niemand
   gern, und juristische Texte sind ohnehin anstrengend genug. */
.page {
    max-width: 760px;
    padding-top: 34px;
    padding-bottom: 20px;
}

.page h1 {
    font-size: clamp(27px, 4.4vw, 38px);
    text-align: left;
    margin-bottom: 6px;
}

.page .subtitle {
    color: var(--text-muted);
    font-size: 17px;
    margin: 0 0 26px;
}

.page h2 {
    font-size: 21px;
    margin: 38px 0 10px;
    padding-top: 4px;
    text-align: left;
    font-weight: 700;
}

.page h3 {
    font-size: 17.5px;
    margin: 26px 0 6px;
    font-weight: 700;
}

.page p { margin: 0 0 14px; }

.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; }
.page li { margin-bottom: 7px; }

.page strong { font-weight: 650; }

.page table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 15.5px;
}
.page th, .page td {
    border: 1px solid var(--border);
    padding: 9px 12px;
    text-align: left;
}
.page th { background: var(--bg-alt); font-weight: 650; }

.page code {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 14.5px;
}

.page pre {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    overflow-x: auto;
    font-size: 14px;
}
.page pre code { background: none; border: 0; padding: 0; }

/* Hervorgehobener Kasten, z. B. die Schritt-für-Schritt-Anleitung */
.page .steps, .page .callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 0 0 20px;
    box-shadow: var(--shadow-sm);
}
.page .steps ol, .page .steps ul, .page .callout p:last-child { margin-bottom: 0; }

.page .updated {
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Auf Inhaltsseiten sind die Karten reine Textblöcke, keine Kacheln mit
   Symbol — deshalb etwas gedämpfter als auf der Startseite. */
.page .card { margin-bottom: 14px; padding: 18px 20px; }
.page .card h3 { margin-top: 0; }
.page .card p:last-child { margin-bottom: 0; }

/* Warn- und Hinweiskästen (AI-Bridge-Seite) */
.page .warning, .page .info {
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 0 0 22px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.page .warning { border-left: 3px solid #d93025; }
.page .info    { border-left: 3px solid var(--brand); }
.page .warning h3 { margin-top: 0; color: #c5221f; }
:root[data-theme="dark"] .page .warning h3 { color: #ff8a80; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .page .warning h3 { color: #ff8a80; }
}
.page .warning p:last-child, .page .info p:last-child { margin-bottom: 0; }
.page .warning summary { cursor: pointer; font-weight: 650; }

/* Download-Kacheln der AI-Bridge: Symbol links, Text rechts */
.page .dl-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    color: inherit;
}
.page a.dl-card:hover {
    text-decoration: none;
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}
.page .dl-card.unavailable { opacity: .55; cursor: not-allowed; }
.page .dl-card .icon {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 11px;
    background: var(--brand-soft);
    display: grid;
    place-items: center;
    font-size: 21px;
}
.page .dl-card .body { flex: 1; min-width: 0; }
.page .dl-card h3 { margin: 0 0 4px; }
.page .dl-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 15px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--brand); }

/* **Die Wege nach außen.** Instagram und die Mutterseite führen von der Seite
   weg — sie stehen deshalb in einer eigenen Zeile unter den Rechtstexten und
   nicht zwischen ihnen. Wer Impressum sucht, soll nicht bei Instagram landen. */
.footer-extern {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
}

.footer-extern a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 15px;
    background: var(--surface);
    transition: color .15s, border-color .15s;
}

.footer-extern a:hover { color: var(--brand); border-color: var(--brand); }

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0 44px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Größere Bildschirme ------------------------------------------------- */

@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    section { padding: 60px 0; }
    .hero { padding: 36px 0 12px; }
}

@media (min-width: 980px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Reiter: „Lerne die App kennen" ─────────────────────────────────────────
 *
 * **Vier Seiten statt vier Abschnitte untereinander.** Die Startseite lief
 * vorher über sechs Bildschirmhöhen; wer wissen wollte, was es für Vereine
 * gibt, scrollte an allem vorbei, was ihn nicht betraf. Jetzt wählt er.
 *
 * **Ohne Umschalter bleibt alles lesbar.** Die Reiter sind Knöpfe, die
 * Abschnitte gewöhnliche Bereiche — ist das Skript aus, stehen sie
 * untereinander da wie zuvor (`.tab-seite { display:block }` ist der
 * Ausgangszustand, verborgen wird erst per Skript).
 */
.tab-leiste {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 0 28px;
}

.tab-knopf {
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.tab-knopf:hover { color: var(--text); }

.tab-knopf[aria-selected="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.tab-knopf:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Der Slogan über den Reitern. */
.tab-slogan {
    text-align: center;
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 18px;
}

@media (max-width: 620px) {
    .tab-knopf { font-size: 14px; padding: 9px 14px; }
}

/* Der Beschreibungstext unter dem Banner — schmaler als die Karten darunter,
   damit die Zeilen nicht zu lang werden. */
.hero-intro {
    max-width: 680px;
    margin: 26px auto 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .btn:hover, a.card:hover { transform: none; }
    * { transition: none !important; }
}

/* Windows-Logo als Inline-SVG: erbt die Textfarbe, sitzt auf der Grundlinie. */
.btn .win-logo { flex: none; }
.card .icon .win-logo { display: block; }

/* Drei Knoepfe in einer Reihe (iPhone/Mac, Android, Windows): etwas kompakter,
   nie umbrechender Text; auf breiten Bildschirmen kein Zeilenumbruch der Reihe. */
.cta-row .btn { padding: 12px 18px; font-size: 15px; white-space: nowrap; }
@media (min-width: 900px) {
    .cta-row { flex-wrap: nowrap; }
}
