/* ============================================================
   BFECG – Internetauftritt
   Design: ruhig, würdevoll, gut lesbar. Serif für Überschriften,
   Sans-Serif für Fließtext. Mobile-first.
   ============================================================ */

:root {
    --navy: #1f3a5f;
    --navy-dark: #16293f;
    --gold: #b58b3a;
    --gold-soft: #d8b66a;
    --ink: #232629;
    --muted: #5d6670;
    --line: #e3e6ea;
    --bg: #ffffff;
    --bg-soft: #f6f4ef;
    --bg-tint: #eef2f6;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(31, 58, 95, 0.08);
    --container: 1100px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--serif);
    line-height: 1.15;
    color: var(--navy);
    font-weight: 600;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

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

.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 0.6rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--navy);
}

.brand-mark {
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
}

.brand-text { display: flex; flex-direction: column; }
.brand-short {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}
.brand-full {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.site-nav ul {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}
.site-nav a:hover { background: var(--bg-tint); color: var(--navy); }
.site-nav a.is-active { color: var(--gold); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(135deg, rgba(22, 41, 63, 0.92), rgba(31, 58, 95, 0.82)),
        radial-gradient(circle at 80% 20%, rgba(181, 139, 58, 0.35), transparent 55%);
    color: #fff;
    padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .lead {
    max-width: 640px;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-soft); padding: 2.5rem 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.stat { padding: 0.6rem; }
.stat-value {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-soft); }
.prose { max-width: 720px; color: var(--ink); }
.prose h2 { margin-top: 1.6rem; }

.page-head {
    background: var(--bg-tint);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid var(--line);
}
.page-head .lead { max-width: 680px; font-size: 1.1rem; color: var(--muted); }

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-top: 1.8rem;
}
.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card-link { font-weight: 600; color: var(--gold); }

/* ---------- Belief grid ---------- */
.belief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}
.belief {
    border-left: 3px solid var(--gold);
    padding: 0.4rem 0 0.4rem 1.2rem;
}
.belief h3 { margin-bottom: 0.3rem; }

/* ---------- Timeline ---------- */
.timeline {
    margin-top: 3rem;
    border-left: 2px solid var(--line);
    padding-left: 1.6rem;
}
.timeline-item { position: relative; margin-bottom: 1.6rem; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.95rem;
    top: 0.45rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--bg-soft);
}
.timeline-year {
    display: inline-block;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}
.timeline-item p { margin: 0.1rem 0 0; color: var(--muted); }

/* ---------- Pill list ---------- */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
}
.pill-list li {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
}

/* ---------- Feature ---------- */
.feature {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.feature-stats {
    display: flex;
    gap: 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 1.6rem;
}

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta .btn-primary { background: var(--gold); color: var(--navy-dark); }
.cta .btn-primary:hover { background: var(--gold-soft); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.contact-list li {
    display: flex;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}
.contact-label {
    min-width: 110px;
    font-weight: 600;
    color: var(--muted);
}
.contact-form {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.form-note {
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--bg-tint);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
}
.form-success {
    background: #e7f3ea;
    border: 1px solid #b6dcc0;
    color: #1f5130;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
}
.form-errors {
    background: #fcebea;
    border: 1px solid #f1b9b5;
    color: #8a2820;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.optional { color: var(--muted); font-weight: 400; font-size: 0.82em; }

/* Checkbox-Zeile (Einwilligung) */
.field-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.field-check input { width: auto; margin-top: 0.25rem; }
.field-check label { font-weight: 400; font-size: 0.88rem; margin: 0; }

/* Honeypot – für Menschen unsichtbar */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.field input, .field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}
.field input:focus, .field textarea:focus {
    outline: 2px solid var(--gold-soft);
    border-color: var(--gold);
}
code {
    background: var(--bg-tint);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.82);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h3 { color: #fff; font-size: 1.05rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.2rem 0; }
.footer-col a { color: rgba(255,255,255,0.82); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-name { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin: 0.4rem 0; }
    .footer-muted { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
    .footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
        padding-top: 1.2rem;
        font-size: 0.82rem;
        color: rgba(255,255,255,0.78);
    }
    .footer-bottom a { color: #ffffff; }
    .footer-bottom a:hover { color: var(--gold-soft); }
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .site-nav.open { max-height: 420px; }
    .site-nav ul { flex-direction: column; padding: 0.6rem 1.25rem 1rem; }
    .site-nav a { padding: 0.75rem 0.5rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .feature { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
