/* ═══════════════════════════════════════════════════════════════
   familienstiftung.software — CSS
   Editorial-Stil: Stiftungsgrün auf Cremepapier
   Schriften: Fraunces (Display) + DM Sans (Body) + DM Mono (Marker)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@400;500;600&family=DM+Mono:wght@400&display=swap');

:root {
    /* Farben */
    --creme:          #F4EFE6;
    --creme-dark:     #EDE7DB;
    --stiftungsgruen: #1F3D2E;
    --gruen-hell:     #2A5A3C;
    --altgold:        #A88B45;
    --altgold-soft:   #C4A85A;
    --text:           #2C2C2C;
    --text-sekundaer: #5A5A5A;
    --weiss:          #FEFDFB;
    --linie:          rgba(31, 61, 46, 0.12);

    /* Schriften */
    --font-display:   'Fraunces', 'Georgia', serif;
    --font-body:      'DM Sans', 'Helvetica Neue', sans-serif;
    --font-mono:      'DM Mono', 'Menlo', monospace;

    /* Maße */
    --max-width:      1100px;
    --gap:            2rem;
}

/* ── Reset & Basis ──────────────────────────────────────────── */

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--creme);
    line-height: 1.7;
    /* Subtiler Papier-Grain */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── Typografie ─────────────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.25;
    color: var(--stiftungsgruen);
    font-variation-settings: 'opsz' 72;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }

p { max-width: 65ch; }
p + p { margin-top: 1rem; }

a { color: var(--stiftungsgruen); text-decoration-color: var(--altgold); text-underline-offset: 3px; }
a:hover { color: var(--gruen-hell); }

/* ── Layout ─────────────────────────────────────────────────── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ── Header / Navigation ────────────────────────────────────── */

.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--linie);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--stiftungsgruen);
    text-decoration: none;
    letter-spacing: -0.01em;
    font-variation-settings: 'opsz' 48;
}

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-sekundaer);
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--stiftungsgruen); }

.btn-login {
    display: inline-block;
    padding: 0.5rem 1.3rem;
    background: var(--stiftungsgruen);
    color: var(--weiss) !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-login:hover { background: var(--gruen-hell); }

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
    padding: 6rem 0 5rem;
    text-align: center;
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--altgold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    display: block;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-lead {
    font-size: 1.12rem;
    color: var(--text-sekundaer);
    max-width: 52ch;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    background: var(--stiftungsgruen);
    color: var(--weiss);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gruen-hell); transform: translateY(-1px); color: var(--weiss); }

/* ── Sektionen ──────────────────────────────────────────────── */

.section {
    padding: 5rem 0;
    border-top: 1px solid var(--linie);
}

.section-marker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--altgold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.8rem;
    display: block;
}

/* ── Problem-Sektion ────────────────────────────────────────── */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.problem-card {
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 12px;
    padding: 2rem;
}

.problem-card h3 { margin-bottom: 0.6rem; }
.problem-card p { font-size: 0.92rem; color: var(--text-sekundaer); }

/* ── Module-Übersicht ───────────────────────────────────────── */

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.module-card {
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 12px;
    padding: 2rem 2rem 1.8rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.module-card:hover {
    border-color: var(--altgold-soft);
    box-shadow: 0 4px 24px rgba(31, 61, 46, 0.06);
}

.module-nummer {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--altgold);
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    display: block;
}

.module-card h3 {
    color: var(--stiftungsgruen);
    margin-bottom: 0.6rem;
}
.module-card p {
    font-size: 0.9rem;
    color: var(--text-sekundaer);
    line-height: 1.65;
}

/* ── Trust-Sektion ──────────────────────────────────────────── */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-item {
    padding: 1.5rem;
    border-left: 3px solid var(--altgold);
}
.trust-item h3 { margin-bottom: 0.4rem; }
.trust-item p { font-size: 0.9rem; color: var(--text-sekundaer); }

/* ── Beta-Formular ──────────────────────────────────────────── */

.beta-section {
    background: var(--stiftungsgruen);
    color: var(--creme);
    padding: 5rem 0;
    border-top: none;
}

.beta-section h2 { color: var(--creme); }
.beta-section .section-marker { color: var(--altgold-soft); }
.beta-section p { color: rgba(244, 239, 230, 0.8); }

.beta-form {
    max-width: 480px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--creme);
    opacity: 0.9;
}

.form-field input,
.form-field select {
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--creme);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.2s;
}
.form-field input::placeholder { color: rgba(244, 239, 230, 0.4); }
.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--altgold);
}
.form-field select option { color: var(--text); background: var(--weiss); }

.beta-form .btn-primary {
    background: var(--altgold);
    color: var(--stiftungsgruen);
    margin-top: 0.5rem;
    font-weight: 600;
}
.beta-form .btn-primary:hover { background: var(--altgold-soft); }

.form-success {
    display: none;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--creme); margin-bottom: 0.5rem; }
.form-note { font-size: 0.8rem; margin-top: 0.8rem; opacity: 0.6; }

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--linie);
    font-size: 0.85rem;
    color: var(--text-sekundaer);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-sekundaer); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--stiftungsgruen); }

/* ── Reveal-Animation ───────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    html { font-size: 16px; }
    .hero { padding: 4rem 0 3rem; }
    .section { padding: 3.5rem 0; }
    .site-nav { gap: 1rem; }
    .module-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}
