/* MeineSparquote – gemeinsame Basis aller öffentlichen Seiten (PLAN-4-LIFE-Markenfamilie): Schrift, Farben, Knöpfe, Kopfzeile, Fuß */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
    --g950: #002d20;
    --g900: #003a29;
    --g800: #005940;
    --g700: #0f6849;
    --g100: #d5e4dd;
    --g50: #f0f7f4;
    --gelb: #ffdf16;
    --gelb-dunkel: #f2cf00;
    --creme: #fbfaf5;
    --weiss: #ffffff;
    --text: #005940;
    --text-ged: rgba(0, 89, 64, 0.8);
    --auf-gruen: #d2e7dd;
    --rand: rgba(0, 89, 64, 0.14);
    --rand-stark: rgba(0, 89, 64, 0.24);
    --warnung: #a34a32;
    --schatten-karte: 0 4px 18px rgba(0, 70, 50, 0.055);
    --schatten-schwebt: 0 28px 60px -28px rgba(0, 45, 32, 0.32), 0 4px 14px rgba(0, 70, 50, 0.06);
    --r-sm: 10px;
    --r-knopf: 14px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 30px;
    --wrap: 1240px;
    --abschnitt: clamp(64px, 7vw, 96px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --seite: calc(clamp(40px, 6vw, 96px) / 2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--g800) var(--creme); scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--creme);
    color: var(--text);
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gelb); color: var(--g900); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    text-wrap: balance;
    color: var(--g900);
}
.wrap { width: min(calc(100% - 2 * var(--seite)), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--gelb); color: var(--g950); padding: 0.75rem 1.1rem; border-radius: var(--r-knopf);
    font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
.icon { width: 1em; height: 1em; flex: none; }

.mark {
    padding: 0 0.12em;
    color: var(--g900);
    background: var(--gelb);
    border-radius: 5px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ---------- Knöpfe ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 56px; padding: 0 26px;
    border: 2px solid transparent; border-radius: var(--r-knopf);
    font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
    text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary { color: var(--g950); background: var(--gelb); }
.btn-primary:hover { background: var(--gelb-dunkel); }
.btn-secondary { color: var(--g800); border-color: var(--rand-stark); background: rgba(255, 255, 255, 0.6); }
.btn-secondary:hover { border-color: var(--g700); background: var(--weiss); }
.btn-hell { color: var(--g800); background: var(--weiss); }
.btn-hell:hover { background: var(--g50); }
.btn-klein { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* ---------- Kopfzeile ---------- */
.kopfzeile {
    position: sticky; top: 0; z-index: 50;
    background: var(--weiss);
    border-bottom: 1px solid rgba(0, 89, 64, 0.12);
}
.kopfzeile-innen {
    display: flex; align-items: center; gap: 28px;
    width: min(calc(100% - 2 * var(--seite)), var(--wrap)); min-height: 76px; margin-inline: auto;
    position: relative;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--g800); }
.logo img { width: 38px; height: 38px; }
.logo span span { color: var(--g700); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; margin-left: 24px; }
.nav a:not(.btn) {
    padding: 10px 14px; border-radius: var(--r-sm);
    color: var(--g800); font-size: 16px; text-decoration: none;
    transition: background-color 0.2s;
}
.nav a:not(.btn):hover { background: var(--g50); }
.nav .btn { margin-left: auto; min-height: 50px; padding: 0 30px; }
.menu-knopf {
    display: none; margin-left: auto;
    width: 48px; height: 48px; border-radius: var(--r-knopf);
    border: 1px solid var(--rand-stark); background: var(--weiss); color: var(--g800);
    align-items: center; justify-content: center; cursor: pointer;
}
.menu-knopf svg { width: 22px; height: 22px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--abschnitt) 0; }
.flaeche-weiss { background: var(--weiss); }
.flaeche-creme { background: var(--creme); }
.flaeche-hell { background: var(--g50); }
.flaeche-gruen { background: var(--g800); color: var(--auf-gruen); }
.flaeche-gruen h2, .flaeche-gruen h3 { color: var(--weiss); }
.flaeche-gruen :focus-visible { outline-color: var(--gelb); }

.kopf { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 54px); }
.h2 { font-size: clamp(30px, 3.3vw, 44px); letter-spacing: -0.025em; line-height: 1.1; }
.kopf p { margin-top: 18px; color: var(--text-ged); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; max-width: 640px; }
.flaeche-gruen .kopf p { color: var(--auf-gruen); }

/* ---------- Fragen (Akkordeon) ---------- */
.fragen { border-top: 1px solid var(--rand); }
.fragen details { border-bottom: 1px solid var(--rand); }
.fragen summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 0; cursor: pointer; list-style: none;
    font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--g900);
}
.fragen summary::-webkit-details-marker { display: none; }
.frage-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--g50); color: var(--g900); transition: transform 0.2s ease, background-color 0.2s; }
.frage-icon svg { width: 16px; height: 16px; }
.fragen summary:hover .frage-icon { background: var(--g100); }
.fragen details[open] .frage-icon { transform: rotate(45deg); }
.fragen details p { padding: 0 48px 24px 0; color: var(--text-ged); font-size: 16px; line-height: 1.65; }

/* ---------- Fuß ---------- */
.fuss { background: var(--g900); color: var(--auf-gruen); padding: 52px 0 34px; font-size: 14.5px; }
.fuss-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; }
.fuss-marke { display: flex; flex-direction: column; gap: 18px; max-width: 32rem; }
.fuss-marke .logo { color: var(--weiss); }
.fuss-marke .logo img { background: var(--weiss); border-radius: 10px; padding: 4px; box-sizing: content-box; width: 32px; height: 32px; }
.fuss-marke .logo span span { color: var(--auf-gruen); }
.fuss-partner { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fuss-partner img { height: 40px; width: auto; border-radius: 8px; }
.fuss-partner .schild { background: var(--weiss); padding: 2px 6px; box-sizing: content-box; height: 36px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-self: start; }
.fuss nav a { color: var(--weiss); text-decoration: none; }
.fuss nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fuss nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fuss-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(210, 231, 221, 0.18); font-size: 13px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
    .nav a:not(.btn) { padding: 10px 10px; font-size: 15px; }
}

@media (max-width: 960px) {
    .menu-knopf { display: inline-flex; }
    .nav {
        display: none;
        position: absolute; top: 100%; left: calc(-1 * var(--seite)); right: calc(-1 * var(--seite)); margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--seite) 20px; background: var(--weiss);
        border-bottom: 1px solid var(--rand); box-shadow: 0 24px 40px -30px rgba(0, 45, 32, 0.35);
    }
    .nav.offen { display: flex; }
    .nav a:not(.btn) { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rand); font-size: 17px; }
    .nav .btn { margin: 16px 0 0; }
    .fuss-raster { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .fragen details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; }
}
