/* vereinpilot.de — eigenständiges Stylesheet, kein Framework.
   Palette: Navy als Basis (Vertrauen), Grün als Akzent (Handlung). */

:root {
    --navy: #1b355e;
    --navy-dunkel: #122340;
    --navy-tinte: #263e66;
    --gruen: #0e9f6e;
    --gruen-dunkel: #0b7f58;
    --gruen-hell: #e3f5ee;
    --papier: #ffffff;
    --hintergrund: #f6f8fc;
    --linie: #e3e9f2;
    --text: #24354f;
    --text-leise: #5b6b84;
    --radius: 14px;
    --schatten: 0 10px 30px -12px rgba(18, 35, 64, 0.18);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--papier);
    line-height: 1.65;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.huelle { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { max-width: 65ch; }

a { color: var(--gruen-dunkel); }
a:hover { color: var(--navy); }

.sprunglink {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.sprunglink:focus { left: 0; }

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

.kopfleiste {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--linie);
}
.kopfleiste-innen {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 4.25rem;
}
.marke { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.marke-logo { width: 2.1rem; height: 2.1rem; }
.marke-name { font-size: 1.35rem; color: var(--navy); letter-spacing: -0.02em; }
.marke-name strong { font-weight: 800; }
.marke-name-hell { color: #fff; }

.hauptnav { display: flex; align-items: center; gap: 1.4rem; }
.hauptnav a:not(.knopf) {
    text-decoration: none; color: var(--text); font-weight: 550;
    padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.hauptnav a:not(.knopf):hover,
.hauptnav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gruen); }

.menue-schalter { display: none; }
.menue-knopf { display: none; cursor: pointer; padding: 0.5rem; }
.menue-knopf span {
    display: block; width: 1.5rem; height: 2px; background: var(--navy);
    margin: 5px 0; transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 47rem) {
    .menue-knopf { display: block; }
    .hauptnav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--linie);
        padding: 0.5rem 1.25rem 1rem; box-shadow: var(--schatten);
    }
    .hauptnav a { padding: 0.7rem 0 !important; }
    .hauptnav .knopf { margin-top: 0.5rem; text-align: center; }
    .menue-schalter:checked ~ .hauptnav { display: flex; }
    .menue-schalter:checked ~ .menue-knopf span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menue-schalter:checked ~ .menue-knopf span:nth-child(2) { opacity: 0; }
    .menue-schalter:checked ~ .menue-knopf span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Knöpfe ---------- */

.knopf {
    display: inline-block; background: var(--gruen); color: #fff !important;
    font-weight: 650; text-decoration: none; border: 0; cursor: pointer;
    padding: 0.85rem 1.7rem; border-radius: 999px; font-size: 1.0625rem;
    transition: background 0.15s, transform 0.15s;
}
.knopf:hover { background: var(--gruen-dunkel); transform: translateY(-1px); }
.knopf-klein { padding: 0.55rem 1.25rem; font-size: 0.95rem; }
.knopf-hell { background: #fff; color: var(--navy) !important; }
.knopf-hell:hover { background: var(--gruen-hell); }
.knopf-umriss {
    background: transparent; color: var(--navy) !important;
    box-shadow: inset 0 0 0 2px var(--linie);
}
.knopf-umriss:hover { background: var(--hintergrund); }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

/* ---------- Held (Startseite) ---------- */

.held {
    background: linear-gradient(135deg, var(--navy-dunkel) 0%, var(--navy) 55%, #1f4d6e 100%);
    color: #fff; overflow: hidden;
}
.held-innen {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem; align-items: center; padding: 4.5rem 1.25rem 4rem;
}
.held h1 { color: #fff; }
.held .untertitel { font-size: 1.2rem; color: #c9d6ea; margin: 1.2rem 0 1.8rem; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.held-fakten {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
    margin-top: 2.2rem; padding: 0; list-style: none;
    color: #a9bcd8; font-size: 0.95rem;
}
.held-fakten li::before { content: "✓ "; color: var(--gruen); font-weight: 700; }

.held-bild svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }

@media (max-width: 56rem) {
    .held-innen { grid-template-columns: 1fr; padding-top: 3rem; }
    .held-bild { max-width: 30rem; }
}

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

.abschnitt { padding: 4.5rem 0; }
.abschnitt-getoent { background: var(--hintergrund); }
.abschnitt-kopf { max-width: 46rem; margin-bottom: 2.5rem; }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.1rem; margin-top: 0.7rem; }
.vorzeile {
    display: inline-block; color: var(--gruen-dunkel); font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.kartenraster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.kartenraster-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 56rem) { .kartenraster, .kartenraster-2 { grid-template-columns: 1fr; } }

.karte {
    background: var(--papier); border: 1px solid var(--linie);
    border-radius: var(--radius); padding: 1.8rem;
    box-shadow: 0 4px 14px -10px rgba(18, 35, 64, 0.12);
}
.karte h3 { margin-bottom: 0.6rem; }
.karte p, .karte li { color: var(--text-leise); font-size: 1rem; }
.karte ul { padding-left: 0; list-style: none; margin-top: 0.8rem; }
.karte li { padding: 0.28rem 0 0.28rem 1.6rem; position: relative; }
.karte li::before {
    content: "✓"; position: absolute; left: 0; top: 0.28rem;
    color: var(--gruen); font-weight: 700;
}

.symbol {
    width: 3rem; height: 3rem; border-radius: 12px;
    background: var(--gruen-hell); color: var(--gruen-dunkel);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.1rem;
}

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

.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: schritt; }
@media (max-width: 56rem) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .schritte { grid-template-columns: 1fr; } }
.schritt { counter-increment: schritt; }
.schritt::before {
    content: counter(schritt);
    display: flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 750;
    margin-bottom: 0.9rem;
}
.schritt h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.schritt p { color: var(--text-leise); font-size: 0.97rem; }

/* ---------- Preise ---------- */

.preisraster {
    display: grid; grid-template-columns: repeat(2, minmax(0, 26rem)); gap: 1.4rem;
    justify-content: center;
}
@media (max-width: 56rem) { .preisraster { grid-template-columns: minmax(0, 26rem); } }
.preiskarte { text-align: left; display: flex; flex-direction: column; }
.preiskarte .knopf { margin-top: auto; text-align: center; }
.preiszeile { margin: 0.9rem 0 1.2rem; }
.preis-ab { color: var(--text-leise); font-size: 0.95rem; }
.preis-wert { font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.preis-einheit { color: var(--text-leise); }
.preishinweis {
    max-width: 46rem; margin: 2rem auto 0; text-align: center;
    color: var(--text-leise); font-size: 0.97rem;
}

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; }
.faq details {
    border: 1px solid var(--linie); border-radius: 12px;
    background: var(--papier); margin-bottom: 0.8rem; padding: 0 1.2rem;
}
.faq summary {
    cursor: pointer; font-weight: 650; color: var(--navy);
    padding: 1rem 0; list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0.2rem; top: 50%;
    transform: translateY(-50%); font-size: 1.4rem; color: var(--gruen-dunkel);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; color: var(--text-leise); }

/* ---------- Formulare ---------- */

.formular { max-width: 40rem; }
.feld { margin-bottom: 1.3rem; }
.feld label { display: block; font-weight: 650; color: var(--navy); margin-bottom: 0.35rem; }
.feld .pflicht { color: var(--gruen-dunkel); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"],
.feld select, .feld textarea {
    width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--text);
    border: 1.5px solid var(--linie); border-radius: 10px; background: #fff;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
    border-color: var(--gruen); outline: 2px solid var(--gruen-hell);
}
.feld-hinweis { font-size: 0.9rem; color: var(--text-leise); margin-top: 0.3rem; }
.feld-kastchen { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.98rem; }
.feld-kastchen input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--gruen); }
.feld-kastchen label { font-weight: 500; color: var(--text); margin: 0; }

.formular-fehler {
    background: #fdf0f0; border: 1px solid #e8b7b7; border-radius: 12px;
    color: #8c2f2f; padding: 1rem 1.2rem; margin-bottom: 1.5rem;
}
.formular-fehler ul { margin: 0.3rem 0 0 1.2rem; }
.feld-fehler input, .feld-fehler select, .feld-fehler textarea { border-color: #c96a6a; }

/* Honeypot: für Menschen unsichtbar, aber nicht display:none (manche Bots erkennen das) */
.feld-website {
    position: absolute !important; left: -6000px !important;
    width: 1px; height: 1px; overflow: hidden;
}

/* ---------- CTA-Band ---------- */

.cta-band {
    background: linear-gradient(135deg, var(--navy-dunkel), var(--navy-tinte));
    border-radius: var(--radius); color: #fff;
    padding: 3rem 2.5rem; display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #c9d6ea; }
.cta-band-knoepfe { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Inhaltsseiten (Impressum etc.) ---------- */

.inhalt-schmal { max-width: 46rem; }
.inhalt-schmal h2 { margin: 2.2rem 0 0.7rem; font-size: 1.35rem; }
.inhalt-schmal p, .inhalt-schmal li { color: var(--text); margin-bottom: 0.7rem; }
.inhalt-schmal ul { padding-left: 1.3rem; }

.platzhalter-hinweis {
    background: #fff8e6; border: 1px solid #eeddab; border-radius: 12px;
    padding: 1rem 1.2rem; color: #7a5d1c; margin-bottom: 1.8rem; font-size: 0.97rem;
}

/* ---------- Ratgeber ---------- */

.artikel-kopf {
    background: var(--hintergrund);
    border-bottom: 1px solid var(--linie);
    padding: 3rem 0 2.4rem;
}
.artikel-kopf h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.artikel-kopf .untertitel { color: var(--text-leise); font-size: 1.15rem; margin-top: 0.9rem; }
.artikel-meta { color: var(--text-leise); font-size: 0.9rem; margin-top: 1.1rem; }

.brotkrumen { font-size: 0.9rem; color: var(--text-leise); margin-bottom: 1.2rem; }
.brotkrumen a { color: var(--text-leise); text-decoration: none; }
.brotkrumen a:hover { color: var(--navy); text-decoration: underline; }

.artikel { padding-top: 2.6rem; padding-bottom: 1rem; }
.artikel h2 { margin: 2.4rem 0 0.8rem; font-size: 1.45rem; }
.artikel h3 { margin: 1.7rem 0 0.5rem; font-size: 1.1rem; }
.artikel ol, .artikel ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.artikel li { margin-bottom: 0.45rem; }
.artikel .tabellen-huelle { margin: 1.4rem 0; }
.artikel .faq { margin-top: 1.2rem; }

.merkkasten {
    background: var(--gruen-hell); border: 1px solid #bfe6d6;
    border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.merkkasten > :last-child { margin-bottom: 0; }

.karte h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.karte h2 a, .karte h3 a { color: inherit; text-decoration: none; }
.karte h2 a:hover, .karte h3 a:hover { color: var(--gruen-dunkel); text-decoration: underline; }
.lesezeit { font-size: 0.85rem !important; color: var(--text-leise) !important; margin-top: 0.8rem; }

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

.fussbereich { background: var(--navy-dunkel); color: #b9c6dc; margin-top: 4rem; }
.fuss-spalten {
    display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr 1.4fr;
    gap: 2rem; padding: 3.2rem 1.25rem 2rem;
}
@media (max-width: 56rem) { .fuss-spalten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .fuss-spalten { grid-template-columns: 1fr; } }
.fussbereich h2 {
    color: #fff; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.9rem;
}
.fussbereich a { display: block; color: #b9c6dc; text-decoration: none; padding: 0.22rem 0; }
.fussbereich a:hover { color: #fff; }
.fuss-marke p { font-size: 0.97rem; margin-top: 0.8rem; }
.fuss-vertrauen { font-size: 0.88rem !important; color: #8fa2c0; }
.fuss-hinweis { font-size: 0.9rem; }
.fuss-zeile {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.2rem; padding-bottom: 1.6rem; font-size: 0.9rem; color: #8fa2c0;
}

/* ---------- Verwaltungsbereich (nur Betreiber, /verwaltung) ---------- */

.vw-body { background: var(--hintergrund); }
.vw-kopf { background: var(--navy-dunkel); }
.vw-kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; flex-wrap: wrap; }
.vw-abzeichen {
    background: var(--gruen); color: #fff; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    padding: 0.15rem 0.55rem; border-radius: 999px; margin-left: 0.6rem;
}
.vw-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.vw-nav a { color: #c9d6ea; text-decoration: none; font-size: 0.95rem; }
.vw-nav a:hover { color: #fff; }
.vw-abmelden button {
    background: none; border: 1px solid #3d5580; color: #c9d6ea; cursor: pointer;
    font: inherit; font-size: 0.88rem; padding: 0.3rem 0.85rem; border-radius: 999px;
}
.vw-abmelden button:hover { border-color: #fff; color: #fff; }

.vw-inhalt { padding: 2.5rem 1.25rem 4rem; }
.vw-inhalt h1 { font-size: 1.7rem; }
.vw-seitenkopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.vw-zwischentitel { font-size: 1.15rem; margin: 2.4rem 0 0.9rem; }
.vw-leer { color: var(--text-leise); }
.vw-meta { color: var(--text-leise); font-size: 0.88rem; margin-top: 1.5rem; }
.vw-erfolg {
    background: var(--gruen-hell); border: 1px solid #9fd9c3; color: var(--gruen-dunkel);
    border-radius: 10px; padding: 0.7rem 1.1rem; margin-bottom: 1.2rem;
}

.vw-login { max-width: 26rem; margin: 3rem auto; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 2rem; }
.vw-login h1 { margin-bottom: 1.2rem; }
.vw-login code { font-size: 0.8rem; word-break: break-all; }

.vw-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 56rem) { .vw-kacheln { grid-template-columns: 1fr 1fr; } }
.vw-kachel { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 1.1rem 1.3rem; }
.vw-kachel-wert { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.vw-kachel-name { color: var(--text-leise); font-size: 0.88rem; }

.tabellen-huelle { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: 12px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabelle th {
    text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-leise); padding: 0.75rem 1rem; border-bottom: 1px solid var(--linie);
}
.tabelle td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.vw-details { color: var(--text-leise); font-size: 0.88rem; max-width: 22rem; }

.status {
    display: inline-block; font-size: 0.78rem; font-weight: 700;
    padding: 0.12rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.status-interessent { background: #eef2f8; color: #4a5c78; }
.status-bestellt { background: #fff3d6; color: #8a6410; }
.status-vertrag { background: #e3ecfb; color: #2d5aa8; }
.status-provisioniert { background: #e6f2f5; color: #1f6f80; }
.status-live { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.status-gekuendigt { background: #fdeaea; color: #a03434; }

.vw-formular { max-width: none; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.8rem; }
.vw-felder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.4rem; }
@media (max-width: 56rem) { .vw-felder { grid-template-columns: 1fr; } }
.vw-spickzettel { padding-left: 1.3rem; }
.vw-spickzettel li { margin-bottom: 0.6rem; }
.vw-spickzettel code, .vw-login code {
    background: #eef2f8; border-radius: 6px; padding: 0.08rem 0.4rem;
    font-size: 0.88em; color: var(--navy);
}
.vw-loeschen { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.knopf-mini { padding: 0.3rem 0.9rem; font-size: 0.85rem; }
