/* =========================================================
   LeibFit Landingpage – zentrales Stylesheet
   Marke: Grün #33B86B · Dark-Grün #4DD182 · Warm-Lime #C8E85C
   Mobile-First, Dark Mode via prefers-color-scheme.
   ========================================================= */

:root {
    --green: #33B86B;
    --green-dark: #2A9E5B;
    --green-deep: #1C7A44;
    --lime: #C8E85C;

    --bg: #ffffff;
    --bg-alt: #f4f7f4;
    --surface: #ffffff;
    --text: #16241c;
    --text-muted: #566159;
    --border: #e2e8e3;

    --accent: var(--green);
    --on-accent: #ffffff;

    --maxw: 68rem;
    --prose: 38rem;      /* ~70 Zeichen Zeilenlänge */
    --radius: 14px;
    --shadow: 0 1px 3px rgba(16, 36, 24, .08), 0 8px 24px rgba(16, 36, 24, .06);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --green: #4DD182;
        --green-dark: #3BB870;
        --green-deep: #14512E;
        --bg: #0f1512;
        --bg-alt: #151d18;
        --surface: #18211c;
        --text: #eef3ef;
        --text-muted: #a3b0a8;
        --border: #26322b;
        --accent: var(--green);
        --on-accent: #0c1a11;
        --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    }
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }

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

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

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Zugänglichkeit: Skip-Link & sichtbare Fokus-States */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--on-accent);
    padding: .6rem 1rem;
    border-radius: 0 0 var(--radius) 0;
    z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-nav {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.brand-logo {
    width: 1.9rem;
    height: 1.9rem;
    display: block;
    flex: none;
}
.nav-cta {
    font-weight: 600;
    font-size: .95rem;
    color: var(--accent);
    text-decoration: none;
    padding: .4rem .75rem;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    white-space: nowrap;
}
.nav-cta:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    padding: .95rem 1.9rem;
    border-radius: 999px;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--green) 45%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--green-dark); }
.btn-primary:active { transform: translateY(0); }

/* ---------- App-Store-Badge ---------- */
.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img {
    width: clamp(180px, 46vw, 216px);
    height: auto;
    display: block;
}
a.appstore-badge {
    transition: transform .12s ease, box-shadow .12s ease;
    border-radius: 15px;
}
a.appstore-badge:hover { transform: translateY(-1px); }

/* Dezenter Hinweis in der Navigation, solange die App nicht live ist */
.nav-soon {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.cta-wrap { margin: 1.5rem 0 .5rem; }
.cta-hint {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(163deg, #35C374 0%, var(--green) 38%, var(--green-deep) 100%);
    color: #fff;
    text-align: center;
    padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(3rem, 9vw, 5.5rem);
}
.hero-inner { max-width: 46rem; }
.hero-logo {
    width: clamp(72px, 16vw, 104px);
    height: auto;
    color: #fff;                 /* mono-Variante: Hantel/Linie in Weiß */
    margin: 0 auto 1.25rem;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .18));
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .8rem;
    font-weight: 700;
    opacity: .85;
    margin: 0 0 1rem;
}
.hero-headline {
    font-size: clamp(2.1rem, 6.5vw, 3.6rem);
    font-weight: 800;
    margin: 0 0 1rem;
}
.hero .accent-lime { color: var(--lime); }
.hero-subline {
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    line-height: 1.5;
    opacity: .95;
    margin: 0 auto;
    max-width: 34rem;
}
/* CTA im Hero: heller Kontrast auf grünem Grund */
.hero .btn-primary {
    background: #fff;
    color: var(--green-deep);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.hero .btn-primary:hover { background: #f2fff7; }
.hero .cta-hint { color: rgba(255, 255, 255, .9); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }

.prose { max-width: var(--prose); }
.prose h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose p { color: var(--text); }

/* ---------- Features ---------- */
.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
    .features { grid-template-columns: 1fr 1fr; }
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}
.feature h3 { font-size: 1.2rem; margin: .2rem 0 .5rem; }
.feature p { color: var(--text-muted); margin: 0; }
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 12px;
    color: var(--accent);
    background: color-mix(in srgb, var(--green) 14%, transparent);
    margin-bottom: 1rem;
}

/* ---------- Privacy ---------- */
.privacy { text-align: center; }
.privacy .prose { margin-inline: auto; }
.privacy h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }

/* ---------- Zweiter CTA ---------- */
.section-cta { text-align: center; }
.cta-lead {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 .5rem;
}

/* ---------- Rechtstexte ---------- */
.legal .legal-inner { max-width: var(--prose); }
.legal-back { margin-bottom: 1.5rem; }
.legal-back a { text-decoration: none; font-weight: 600; }
.legal-back a:hover { text-decoration: underline; }
.legal .prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal .prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal .prose h3 { font-size: 1.15rem; }
.legal .prose ul, .legal .prose ol { padding-left: 1.4rem; }
.legal .prose li { margin-bottom: .4rem; }
.legal-todo {
    padding: 1rem 1.25rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    background: var(--bg-alt);
}
.legal-todo code, .prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
    background: color-mix(in srgb, var(--green) 12%, transparent);
    padding: .1em .4em;
    border-radius: 5px;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.25rem;
    text-align: center;
    background: var(--bg-alt);
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.footer-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-meta {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .site-header { backdrop-filter: none; }
}
