/* ============================================================
   home.css — Öffentliche Startseite (helles Thema)
   Alle Regeln sind auf body.home gescoped und damit vollständig
   vom dunklen Mitgliederbereich isoliert.
   ============================================================ */

/* ---- Schriften (korrekte Pfade; fonts.css ist fehlerhaft) ---- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal; font-weight: 400;
    src: url('/static/website/fonts/Open_Sans/static/OpenSans-Regular.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal; font-weight: 600;
    src: url('/static/website/fonts/Open_Sans/static/OpenSans-SemiBold.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal; font-weight: 700;
    src: url('/static/website/fonts/Open_Sans/static/OpenSans-Bold.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal; font-weight: 800;
    src: url('/static/website/fonts/Open_Sans/static/OpenSans-ExtraBold.ttf') format('truetype');
    font-display: swap;
}

/* ---- Basis / helles Thema ---- */
body.home {
    --home-bg: #ffffff;
    --home-surface: #f1f7f2;
    --home-surface-2: #e7f0e9;
    --home-text: #1f2a24;
    --home-text-muted: #5b6b62;
    --home-brand: #07a35a;
    --home-brand-dark: #0a663b;
    --home-radius: 18px;
    --home-shadow: 0 12px 34px rgba(20, 45, 30, 0.10);
    --home-wrap: 1120px;
    --main-brand-color: var(--home-brand);
    --primary-color: var(--home-surface);
    --secondary-color: var(--home-brand-dark);
    --light-secondary-color: var(--home-brand-dark);
    --text-color: var(--home-text);
    --secondary-text-color: var(--home-text-muted);
    --glass-bg: var(--home-bg);
    --glass-bg-strong: var(--home-surface);
    --glass-border: 1px solid rgba(20, 45, 30, .10);
    --glass-shadow: var(--home-shadow);
    --glass-blur: none;
    --glass-radius: var(--home-radius);

    margin: 0;
    background: var(--home-bg);
    background-color: var(--home-bg);
    background-attachment: initial;
    color: var(--home-text);
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    box-sizing: border-box;
    /* Sticky-Footer: bei wenig Inhalt den Footer ans Viewport-Ende drücken */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.home *, .home *::before, .home *::after { box-sizing: inherit; }

/* Inhaltsbereich wächst, Header/Footer behalten ihre Höhe */
body.home > .container { flex: 1 0 auto; }
body.home > .hero,
body.home > .site-header,
body.home > footer { flex-shrink: 0; }

/* container aus homepage_base.html neutralisieren (footer.css gibt ihm
   padding-bottom für den fixierten Footer – hier nicht gewollt) */
.home .container { max-width: none; width: 100%; margin: 0; padding: 0; }

/* ---- Layout-Helfer ---- */
.home-wrap { max-width: var(--home-wrap); margin: 0 auto; padding: 0 24px; }
.home-section { padding: 76px 0; }
.home-section--tight { padding: 52px 0; }
.home-section--band { background: var(--home-surface); }
.home-section--center { text-align: center; }

.home-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--home-brand-dark);
    margin: 0 0 12px;
}
.home h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    text-align: left;
    margin: 0 0 16px;
    padding: 0;
    color: var(--home-text);
}
.home h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    margin: 0;
    padding: 0;
    color: var(--home-text);
}
.home-section--center h2 { text-align: center; }
.home-lead {
    font-size: 1.08rem;
    color: var(--home-text-muted);
    max-width: 620px;
    margin: 0 0 32px;
}
.home-section--center .home-lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.home-btn--primary {
    background: var(--home-brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(7, 163, 90, .30);
}
.home-btn--primary:hover {
    background: var(--home-brand-dark);
    color: #fff;
    transform: translateY(-2px);
}
.home-btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--home-brand-dark);
}
.home-btn--ghost:hover {
    background: rgba(7, 163, 90, .08);
    transform: translateY(-2px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    background-image:
        linear-gradient(185deg, rgba(7,26,14,.62) 0%, rgba(7,26,14,.28) 40%, rgba(10,102,59,.80) 100%),
        url('/static/website/img/bluete.webp');
    background-size: cover;
    background-position: center;
}

/* Navbar über dem Hero */
.hero-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.hero-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.hero-nav__brand {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none;
    font-weight: 800; font-size: 1.1rem;
}
.hero-nav__brand img { height: 36px; width: auto; display: block; }
.hero-nav__toggle { display: none; }
.hero-nav__burger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
}
.hero-nav__burger .material-symbols-rounded { font-size: 32px; }
.hero-nav__links {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 16px; right: 16px;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(20, 45, 30, .16);
}
.hero-nav__toggle:checked ~ .hero-nav__links { display: flex; }
.hero-nav__links li { display: block; }
.hero-nav__links a {
    display: block;
    color: var(--home-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 999px;
    transition: background .2s;
}
.hero-nav__links a:hover { background: var(--home-surface); }
.hero-nav__links a.hero-nav__login {
    background: var(--home-brand);
    color: #fff;
    text-align: center;
}
.hero-nav__links a.hero-nav__login:hover {
    background: var(--home-brand-dark);
    color: #fff;
}

/* Hero-Inhalt */
.hero__content {
    margin: auto 0;
    padding-top: 120px;
    padding-bottom: 80px;
    width: 100%;
}
.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .82rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .85);
}
.hero__title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    font-weight: 800;
    text-align: left;
    letter-spacing: -.01em;
    margin: 0 0 20px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__sub {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    max-width: 560px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .92);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .home-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .home-btn--ghost:hover { background: rgba(255, 255, 255, .14); }

/* ============================================================
   Kennzahlen
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
}
.stat-card {
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .08);
    border-radius: var(--home-radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--home-shadow);
}
.stat-card__num {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--home-brand);
    line-height: 1.05;
}
.stat-card__num .material-symbols-rounded { font-size: 2.5rem; }
.stat-card__label {
    margin-top: 8px;
    color: var(--home-text-muted);
    font-size: .96rem;
    font-weight: 600;
}

/* ============================================================
   Über uns
   ============================================================ */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-grid__media img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    display: block;
}
.about-grid__text .home-lead { max-width: none; }

/* ============================================================
   So wirst du Mitglied
   ============================================================ */
.steps-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.step-card {
    position: relative;
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .08);
    border-radius: var(--home-radius);
    padding: 32px 26px;
    box-shadow: var(--home-shadow);
    text-align: left;
}
.step-card__icon {
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--home-surface-2);
    color: var(--home-brand-dark);
    margin-bottom: 16px;
}
.step-card__icon .material-symbols-rounded { font-size: 30px; }
.step-card__num {
    position: absolute;
    top: 22px; right: 26px;
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(7, 163, 90, .22);
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--home-text-muted); }
.steps-cta { margin-top: 40px; }

/* ============================================================
   Galerie
   ============================================================ */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--home-radius);
    display: block;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-item {
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .material-symbols-rounded {
    color: var(--home-brand);
    transition: transform .2s ease;
    flex-shrink: 0;
}
.faq-item[open] summary .material-symbols-rounded { transform: rotate(180deg); }
.faq-item__body {
    padding: 0 24px 20px;
    color: var(--home-text-muted);
}
.faq-item__body a { color: var(--home-brand-dark); font-weight: 600; }

/* ============================================================
   Kontakt
   ============================================================ */
.contact-card {
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .08);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    padding: 36px;
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}
.contact-card p { margin: 0 0 14px; }
.contact-card a { color: var(--home-brand-dark); font-weight: 600; }
.contact-social { display: inline-block; margin-top: 6px; }
.contact-social img { width: 44px; height: 44px; }

/* ============================================================
   Abschluss-CTA
   ============================================================ */
.home-cta-band {
    background: linear-gradient(135deg, var(--home-brand) 0%, var(--home-brand-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 72px 0;
}
.home-cta-band h2 { color: #fff; text-align: center; }
.home-cta-band p {
    margin: 0 auto 28px;
    max-width: 520px;
    color: rgba(255, 255, 255, .92);
}
.home-cta-band .home-btn--primary {
    background: #fff;
    color: var(--home-brand-dark);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.home-cta-band .home-btn--primary:hover { background: #eef2ee; color: var(--home-brand-dark); }

/* ============================================================
   Footer (footer.css ist global – hier nur für die Homepage
   überschrieben: statt fixiert normal im Fluss)
   ============================================================ */
body.home footer {
    position: static;
    height: auto;
    background: #0a2417;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: none;
    box-shadow: none;
    padding: 30px 24px;
}
body.home .footer_nav a { color: rgba(255, 255, 255, .75); }
body.home .footer_nav a:hover { color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
    .home-section { padding: 96px 0; }
    .hero-nav__burger { display: none; }
    .hero-nav__links {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        background: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    .hero-nav__links a {
        color: #fff;
        font-size: .98rem;
        padding: 11px 14px;
    }
    .hero-nav__links a:hover { background: rgba(255, 255, 255, .16); }
    .hero-nav__links a.hero-nav__login {
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, .55);
        color: #fff;
    }
    .hero-nav__links a.hero-nav__login:hover {
        background: rgba(255, 255, 255, .16);
        color: #fff;
    }
    .about-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .home-btn, .faq-item summary .material-symbols-rounded { transition: none; }
    .home-btn:hover { transform: none; }
}

/* ============================================================
   Öffentliche Unterseiten (abfrage / dokumente / login)
   Kompakter Header statt Hero.
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid rgba(20, 45, 30, .10);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--home-brand-dark);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
}
.site-header__toggle { display: none; }
.site-header__burger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--home-text);
}
.site-header__burger .material-symbols-rounded { font-size: 30px; }
.site-header__links {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 16px; right: 16px;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(20, 45, 30, .16);
}
.site-header__toggle:checked ~ .site-header__links { display: flex; }
.site-header__links li { display: block; }
/* Mobil: Links sind volle Reihen im Dropdown; Desktop überschreibt unten. */
.site-header__links a {
    display: block;
    color: var(--home-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 999px;
    transition: background .2s;
}
.site-header__links a:hover { background: var(--home-surface); }
/* Login-Button: Farbe + Hover wie der „Anmelden"-Button (.home-btn--primary).
   Höhere Spezifität, damit die generischen .site-header__links a-Regeln
   (Textfarbe, Hover) nicht gewinnen. Glow + Anheben nur am Desktop –
   im Mobil-Dropdown würde der Schatten über den Panelrand laufen. */
.site-header__links a.site-header__login {
    background: var(--home-brand);
    color: #fff;
    text-align: center;
}
.site-header__links a.site-header__login:hover {
    background: var(--home-brand-dark);
    color: #fff;
}

/* ---- Inhaltsbereich öffentlicher Unterseiten ---- */
.public-main { padding-bottom: 80px; }
.page-head { padding: 52px 0 28px; }
.page-head h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    text-align: left;
    margin: 0;
    color: var(--home-text);
}
.page-head .home-eyebrow { margin-bottom: 10px; }
.page-lead {
    color: var(--home-text-muted);
    font-size: 1.05rem;
    margin: 10px 0 0;
}

/* ---- Karte / Formular (hell) ---- */
.home-card {
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    padding: 32px;
}
.home-form { display: flex; flex-direction: column; gap: 16px; }
.home-form h3 {
    font-size: 1.1rem;
    margin: 10px 0 0;
}
.home-field label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 6px;
}
.home-input,
.home-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid rgba(20, 45, 30, .18);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--home-text);
}
.home-input:focus,
.home-textarea:focus {
    outline: none;
    border-color: var(--home-brand);
    box-shadow: 0 0 0 3px rgba(7, 163, 90, .15);
}
.home-textarea { min-height: 120px; resize: vertical; }
.home-radio-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.home-radio {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(20, 45, 30, .18);
    cursor: pointer;
    font-size: .92rem;
    transition: border-color .15s, background .15s;
}
.home-radio:hover { border-color: var(--home-brand); background: var(--home-surface); }
.home-radio input { accent-color: var(--home-brand); margin: 0; width: auto; }
.home-req { color: #d23b3b; font-weight: 700; }
.home-hint { font-size: .82rem; color: var(--home-text-muted); }

/* ---- Hinweisbox ---- */
.notice-box {
    background: var(--home-surface);
    border: 1px solid rgba(20, 45, 30, .10);
    border-left: 4px solid var(--home-brand);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.notice-box p { margin: 0 0 8px; }
.notice-box p:last-child { margin-bottom: 0; }

/* ---- Dokumentenliste ---- */
.doc-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--home-text);
    font-weight: 600;
    line-height: 1.35;
    box-shadow: var(--home-shadow);
    transition: transform .15s ease, border-color .15s ease;
    overflow-wrap: break-word;
}
.doc-card:hover { transform: translateY(-2px); border-color: var(--home-brand); }
.doc-card .material-symbols-rounded { color: var(--home-brand); flex-shrink: 0; }

/* ---- Auth / Login ---- */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 0 72px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    overflow: hidden;
}
.auth-card__head {
    padding: 26px 28px 0;
}
.auth-card__head h1 {
    margin: 0;
    font-size: 1.6rem;
    text-align: left;
    color: var(--home-text);
}
.auth-card__body { padding: 22px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-card__body label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.auth-card__body input[type="text"],
.auth-card__body input[type="email"],
.auth-card__body input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid rgba(20, 45, 30, .18);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--home-text);
}
.auth-card__body input:focus {
    outline: none;
    border-color: var(--home-brand);
    box-shadow: 0 0 0 3px rgba(7, 163, 90, .15);
}
.auth-card__text {
    margin: 0;
    color: var(--home-text-muted);
}
.auth-card__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--home-surface);
    color: var(--home-text);
    font-size: .95rem;
    line-height: 1.45;
}
.auth-card__notice .material-symbols-rounded {
    color: var(--home-brand);
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}
.auth-card__notice--success {
    background: #eef9f1;
    border: 1px solid rgba(7, 163, 90, .20);
}
.auth-card__notice--warning {
    background: #fff7e1;
    border: 1px solid rgba(181, 126, 12, .24);
}
.auth-card__notice--warning .material-symbols-rounded { color: #9a6a08; }
.auth-card__notice--error {
    background: #fff0f0;
    border: 1px solid rgba(210, 59, 59, .24);
}
.auth-card__notice--error .material-symbols-rounded { color: #d23b3b; }
.auth-card__links { font-size: .92rem; }
.auth-card__links a { color: var(--home-brand-dark); font-weight: 600; }
.auth-card__footer {
    border-top: 1px solid rgba(20, 45, 30, .10);
    padding: 16px 28px 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: .92rem;
}
.auth-card__footer a {
    color: var(--home-brand-dark);
    font-weight: 600;
    text-decoration: none;
}
.auth-card__footer a:hover { text-decoration: underline; }
.auth-card__body small,
.auth-card__body .helptext {
    display: block;
    margin-top: 6px;
    color: var(--home-text-muted);
    font-size: .82rem;
}

/* Django-Formularfehler (errorlist) hell darstellen */
.home .errorlist {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    color: #d23b3b;
    font-size: .88rem;
    font-weight: 600;
}

/* ---- Rechtstexte (Impressum / Datenschutz) ---- */
.legal-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: left;
    margin: 0 0 12px;
}
.legal-text h2:not(:first-child) { margin-top: 26px; }
.legal-text p { margin: 0 0 16px; }
.legal-text p:last-child { margin-bottom: 0; }
.legal-text a { color: var(--home-brand-dark); font-weight: 600; }

/* ---- Öffentliche Spezialseiten / Gartenvorschau ---- */
.home .fin-page {
    max-width: var(--home-wrap);
    margin: 0 auto;
    padding: 52px 24px 80px;
}
.home .fin-page h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    text-align: left;
    margin: 0 0 16px;
    color: var(--home-text);
}
.home .fin-card {
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    padding: 24px;
    margin-bottom: 18px;
}
.home .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 12px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--home-brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(7, 163, 90, .30);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.home .btn:hover {
    background: var(--home-brand-dark);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}
.home .fin-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .96rem;
}
.home .fin-info-table td {
    padding: .55rem 0;
    border-bottom: 1px solid rgba(20, 45, 30, .08);
    vertical-align: top;
}
.home .fin-info-table td:first-child {
    width: 150px;
    color: var(--home-text-muted);
    font-weight: 700;
}
.home .fin-info-table tr:last-child td { border-bottom: 0; }
.home .badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid rgba(20, 45, 30, .10);
}
.home .badge-paid {
    background: #eef9f1;
    color: var(--home-brand-dark);
    border-color: rgba(7, 163, 90, .28);
}
.home .badge-open {
    background: #fff7e1;
    color: #9a6200;
    border-color: rgba(181, 126, 12, .28);
}
.home .parzelle-header h3 { color: var(--home-text); }
.home .parzelle-fotos img {
    border-color: rgba(20, 45, 30, .10);
    box-shadow: 0 8px 24px rgba(20, 45, 30, .08);
}
.home .not-found-card {
    max-width: 560px;
    margin: 56px auto 80px;
    text-align: center;
}
.home .not-found-number {
    font-size: clamp(80px, 18vw, 136px);
    font-weight: 800;
    line-height: 1;
    color: var(--home-brand);
    margin-bottom: 6px;
}
.home .not-found-icon {
    display: block;
    color: var(--home-brand);
    font-size: 48px;
    margin-bottom: 12px;
}
.home .not-found-title { text-align: center; }
.home .not-found-text {
    color: var(--home-text-muted);
    margin: 0 0 28px;
}
.home .not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.home .nf-btn-ghost {
    background: transparent;
    color: var(--home-brand-dark);
    border-color: var(--home-brand-dark);
    box-shadow: none;
}

@media (min-width: 960px) {
    .site-header__burger { display: none; }
    .site-header__links {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        background: none;
        border: 0;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    .site-header__links a { padding: 11px 16px; font-size: .98rem; }
    /* Login-Button: Glow + Anheben wie der „Anmelden"-Button – nur am Desktop */
    .site-header__links a.site-header__login {
        box-shadow: 0 8px 20px rgba(7, 163, 90, .30);
        transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    }
    .site-header__links a.site-header__login:hover { transform: translateY(-2px); }
}

/* ====================================================================
   Vermietung – öffentliche Unterseite (vermietung.html)
   ==================================================================== */
.vm-section { padding: 36px 0; }
.vm-section + .vm-section { border-top: 1px solid rgba(20, 45, 30, .08); }
.vm-section__title {
    margin: 6px 0 22px;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--home-text);
}
.vm-section--cta { text-align: center; padding: 48px 0 12px; }
.vm-section--cta .vm-section__title { margin-bottom: 8px; }
.vm-section--cta .page-lead { margin: 0 auto 18px; max-width: 540px; }

/* --- Info-Kacheln: Kaution / Pauschalen / Zeiträume --- */
.vm-info-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}
.vm-info-card {
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--home-shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vm-info-card > .material-symbols-rounded {
    color: var(--home-brand);
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.vm-info-card h3 {
    margin: 0 0 2px;
    font-size: 1rem;
    color: var(--home-text-muted);
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.vm-info-card__amount {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.15;
}
.vm-info-card__hint {
    margin: 4px 0 0;
    font-size: .9rem;
    color: var(--home-text-muted);
}

/* --- Preiskarten: Kleiner Raum / Großer Raum --- */
.vm-price-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.vm-price-card {
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: 16px;
    box-shadow: var(--home-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.vm-price-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: var(--home-surface);
    border-bottom: 1px solid rgba(20, 45, 30, .08);
}
.vm-price-card__head .material-symbols-rounded {
    color: var(--home-brand);
    font-size: 1.6rem;
}
.vm-price-card__head h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--home-text);
}
.vm-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}
.vm-price-table th,
.vm-price-table td {
    padding: 12px 22px;
    text-align: right;
}
.vm-price-table thead th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--home-text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(20, 45, 30, .08);
}
.vm-price-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--home-text);
}
.vm-price-table tbody td {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--home-text);
}
.vm-price-table tbody tr + tr th,
.vm-price-table tbody tr + tr td {
    border-top: 1px solid rgba(20, 45, 30, .06);
}
.vm-price-foot {
    margin: 18px 0 0;
    font-size: .9rem;
    color: var(--home-text-muted);
}

/* --- Ablauf-Schritte: Zahlung / Übergabe / Abnahme --- */
.vm-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.vm-steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--home-bg);
    border: 1px solid rgba(20, 45, 30, .10);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: var(--home-shadow);
}
.vm-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--home-brand);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}
.vm-steps li h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--home-text);
}
.vm-steps li p {
    margin: 0;
    color: var(--home-text-muted);
    line-height: 1.5;
}

/* 2-Spalten-Variante des Steps-Grid (Räume-Vermietung-Teaser auf der Startseite) */
@media (min-width: 640px) {
    .steps-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
