/* ============================================================================
 * DATEINAME: css/style.css (Ordner: dippe-sippe)
 * ZWECK:     Zentrales Layout-, Komponenten- und Responsiv-Stylesheet für die
 *            modulare Familienhomepage www.dippe-sippe.de.
 *            Definiert Seitenleiste (Sidebar), Mobile-Header, Hero- & Sand-Karten,
 *            Impressum, Projekt-Wiki (FAQs), Feedback-Ecke und Passwort-Modals.
 *            Das einheitliche Preußischblau-Petrol-Bernstein-Design (Hell/Dunkel)
 *            sowie das Steuer-Cockpit liegen modular getrennt in css/themes.css.
 * VERSION:   1.4.0
 * HISTORIE:
 *   2026-11-22 | 1.4.0 | Buttons/Badges (`.btn-emerald`, `.dsgvo-highlight-badge`, `.sidebar-mini-btn:hover`)
 *                      | auf `var(--emerald-btn-bg)` für WCAG-AA-Kontrast im π-Markenschema umgestellt
 *                      | sowie `.sidebar-mini-btn` mobil (`<= 980 px`) auf `>= 44 × 44 px` angehoben.
 *   2026-11-22 | 1.3.0 | Einheitliche lokal gehostete Open-Source-Schriftart Manrope Variable
 *                      | (SIL OFL 1.1, `fonts/*.woff2`, `--font-sans`) für alle Texte, Buttons,
 *                      | Überschriften, Formulare und Code-Elemente eingeführt.
 *   2026-11-17 | 1.2.0 | Sammelpaket 2026-11-17 (Befund H10):
 *                      | - Kontrast von `.status-pill` („Chronik & Stammbaum in Vorbereitung“)
 *                      |   in den 7 Hellmodi über `color: var(--text-dark)` erhöht.
 *                      | - Leaflet-Zoomknöpfe (`.leaflet-control-zoom a`) auf mindestens
 *                      |   44 × 44 px Touch-Größe vergrößert.
 *   2026-11-11 | 1.1.0 | Wappen-Rahmen (.brand-logo, .brand-logo-mobile, .brand-logo img)
 *                      | für DippeSippeWappen.jpg in Seitenleiste und mobiler Kopfleiste
 *                      | ergänzt (warmer Pergament-Fond passend zum Wappen ohne Beschnitt
 *                      | von Geweih oder Spruchband + Fallback-Stil).
 *   2026-11-11 | 1.0.1 | Fehlende Navigations- & Vektor-Icon-Regeln (.nav-btn-inner, .nav-ico,
 *                      | .ui-ico mit festen 16x16 px & stroke:currentColor, .sidebar-mini-btn
 *                      | sowie .fb-admin-card.status-*) ergänzt – behebt übergroße schwarze/weiße
 *                      | SVGs in Seitenleiste & Standortkarte sowie den ungestylten Passwort-Knopf.
 * ============================================================================ */

/* --- 0. LOKALE SCHRIFTART: MANROPE VARIABLE (SIL OFL 1.1, 100 % DSGVO-REIN) --- */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
    --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- 1. GRUND-RESET & SCROLLBALKEN --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* --- 2. SEITEN-GRUNDGERÜST & LOKALE HAUSSCHRIFT MANROPE (100 % DSGVO-KONFORM) --- */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display,
button, input, select, textarea, code, pre, kbd, samp {
    font-family: var(--font-sans);
}
code, pre, kbd, samp {
    font-variant-numeric: tabular-nums;
}

.hidden {
    display: none !important;
}

/* Unsichtbare Bot-Falle (Honeypot) im Feedback-Formular */
.hp-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* --- 3. LINKE SEITENLEISTE (SIDEBAR) --- */
.sidebar {
    width: clamp(235px, 18vw, 280px);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    z-index: 1000;
    overflow-y: auto;
}

.brand-box {
    padding: clamp(14px, 2vh, 22px) clamp(14px, 1.5vw, 20px);
    border-bottom: 1px solid var(--border-green);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wappen-Rahmen für DippeSippeWappen.jpg in der linken Seitenleiste & Mobil-Leiste:
   Hochformatige Proportion (44x54 px) und warmer Pergament-Hintergrund (#f3ead4)
   sorgen dafür, dass Hirschgeweih, Schild und Spruchband vollständig ohne Beschnitt leuchten. */
.brand-logo {
    width: 44px;
    height: 54px;
    border-radius: 11px;
    background: #f3ead4;
    border: 1.5px solid var(--border-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

/* Kompakte Wappen-Größe für die Smartphone-Kopfleiste (bleibt unter 44px Button-Höhe) */
.brand-logo.brand-logo-mobile {
    width: 34px;
    height: 42px;
    border-radius: 9px;
    font-size: 13px;
}

/* Grüner Monogramm-Fallback, falls die Bilddatei offline einmal nicht erreichbar wäre */
.brand-logo.brand-logo-fallback {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    box-shadow: 0 6px 16px var(--accent-glow);
}
.brand-logo.brand-logo-mobile.brand-logo-fallback {
    width: 34px;
    height: 34px;
}

/* Einpassung des Familienwappens ohne Verzerrung oder abgeschnittene Ränder */
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.brand-title {
    font-size: clamp(18px, 1.4vw, 21px);
    font-weight: 800;
    color: var(--text-cream);
}

.brand-sub {
    font-size: 11.5px;
    color: var(--emerald-light);
    margin-top: 2px;
    font-weight: 600;
}

.nav-list {
    padding: clamp(10px, 1.5vh, 16px) 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-btn {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-cream);
    padding: clamp(9px, 1.15vh, 11px) 13px;
    min-height: 44px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}

.sub-nav {
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
}
.sub-nav.open {
    max-height: 240px;
    opacity: 1;
    margin-top: 4px;
    margin-bottom: 4px;
}

.nav-caret {
    font-size: 11px;
    opacity: 0.75;
    transition: transform 0.25s ease;
    display: inline-block;
}
.nav-btn.group-open .nav-caret {
    transform: rotate(90deg);
}

.sub-nav-btn {
    width: 100%;
    border: none;
    border-left: 3px solid var(--border-green);
    background: transparent;
    color: var(--text-muted);
    padding: 8px 12px;
    min-height: 44px;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}

.sidebar-footer {
    margin: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--border-green);
    font-size: 11.5px;
}

/* Ruhige, einfarbige Vektor-Linien-Icons (.nav-ico / .ui-ico) & kompakter Footer-Button:
   Ohne feste 16x16-Pixel-Maße und fill:none zeichnen Browser ein <svg viewBox="0 0 24 24">
   in riesiger Standardgröße (300x150 px) und schwarz gefüllt! */
.nav-btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.nav-ico,
.ui-ico {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    opacity: 0.9;
}
.nav-btn.active .nav-ico {
    opacity: 1;
}
.sidebar-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--emerald-light);
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.18s ease;
}
.sidebar-mini-btn:hover {
    background: var(--emerald-btn-bg, var(--emerald-dark));
    border-color: var(--emerald-btn-bg, var(--emerald-dark));
    color: #ffffff;
}

/* --- 4. MOBILE KOPFLEISTE --- */
.mobile-bar {
    display: none;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-green);
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1100;
}

/* --- 5. HAUPTINHALTSBEREICH RECHTS & SEITEN-SEKTIONEN --- */
.main-content {
    flex: 1;
    padding: clamp(12px, 1.8vh, 26px) clamp(18px, 2.6vw, 48px);
    max-width: none;
    margin: 0;
    width: 100%;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}
@media (min-width: 1700px) {
    .main-content { padding: 28px 64px; }
}

.page-section {
    display: none;
    animation: fadeIn 0.28s ease-out;
}
.page-section.active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    padding-bottom: 18px;
}
.page-section.active > .section-header {
    flex: 0 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 6. STARTSEITEN-SPEZIFISCHE RASTER & STANDORTKARTE --- */
#page-home .hero-card {
    flex: 0 0 auto;
}
#page-home .home-bottom-grid {
    flex: 1 0 auto;
    align-items: stretch;
}
#page-home .home-bottom-grid > .sand-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#page-home #osm-map {
    flex: 1 1 auto;
    width: 100%;
    height: clamp(280px, 36vh, 460px);
    min-height: 270px;
    border-radius: 16px;
    border: 2px solid var(--border-sand);
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(18px, 2.4vw, 30px);
    align-items: center;
}
.home-bottom-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: clamp(16px, 2vw, 24px);
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* --- 7. KARTEN-CONTAINER, BUTTONS, BADGES & FORMULARFELDER --- */
.hero-card {
    background: var(--hero-grad);
    border: 1px solid var(--border-green);
    border-radius: clamp(18px, 2vw, 26px);
    padding: clamp(18px, 2.4vh, 32px) clamp(20px, 2.5vw, 34px);
    box-shadow: var(--card-shadow);
    margin-bottom: clamp(16px, 2.2vh, 26px);
    color: var(--text-cream);
}

.sand-card {
    background: var(--bg-sand);
    color: var(--text-dark);
    border: 1px solid var(--border-sand);
    border-radius: clamp(16px, 1.8vw, 22px);
    padding: clamp(16px, 2vh, 24px);
    box-shadow: var(--card-shadow);
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amber-light);
    margin-bottom: 4px;
}
.eyebrow-dark {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--emerald-light);
    margin-bottom: 4px;
}

.hero-title {
    font-size: clamp(24px, 2.5vw, 38px);
    line-height: 1.15;
    font-weight: 800;
    margin: 6px 0 12px;
    color: var(--text-cream);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(8px, 1vh, 11px) clamp(13px, 1.4vw, 18px);
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
    transition: filter 0.18s ease, transform 0.16s ease, background-color 0.2s ease;
}
.btn-emerald {
    background: linear-gradient(135deg, var(--emerald-btn-bg, var(--emerald-dark)), var(--emerald-btn-end, var(--emerald)));
    color: #ffffff;
}
.btn-amber {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    color: var(--btn-amber-text, #1c1204);
}
.btn-sand {
    background: var(--bg-sand-light);
    color: var(--text-dark);
    border: 1px solid var(--border-sand);
}
.btn-dark {
    background: var(--btn-dark-bg);
    color: var(--btn-dark-text);
    border: 1px solid var(--border-green);
}
.btn-emerald:hover,
.btn-amber:hover {
    filter: brightness(1.07);
}
.btn-sand:hover,
.btn-dark:hover {
    filter: brightness(1.06);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--accent-soft-bg);
    color: var(--emerald-light);
    border: 1px solid var(--accent-soft-border);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 99px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--amber-light);
    margin-top: 14px;
    width: fit-content;
}
html[data-color-mode="light"] .status-pill {
    color: var(--text-dark);
}
.leaflet-touch .leaflet-bar a,
.leaflet-control-zoom a {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 42px !important;
}

.wappen-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}
.wappen-frame img {
    max-height: clamp(220px, 38vh, 420px);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    display: block;
}

/* --- 8. IMPRESSUM & DATENSCHUTZ-KARTEN --- */
.impressum-card {
    max-width: 820px;
    color: var(--text-dark);
}
.impressum-card h3 {
    margin: 18px 0 7px;
    font-size: 19px;
    color: var(--text-dark);
}
.impressum-card h3:first-child {
    margin-top: 0;
}
.impressum-card p {
    line-height: 1.7;
    font-size: 14px;
}
.created-by {
    margin-top: 26px;
    font-weight: 800;
    color: var(--emerald-light);
    font-size: 15px !important;
    letter-spacing: 0.01em;
}

.dsgvo-highlight-box {
    background: var(--accent-soft-bg);
    border: 1.5px solid var(--accent-soft-border);
    border-radius: 14px;
    padding: 18px;
    margin-top: 22px;
}
.dsgvo-highlight-badge {
    background: var(--emerald-btn-bg, var(--emerald-dark));
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
    margin-bottom: 8px;
}
.dsgvo-highlight-box h3 {
    margin-top: 4px !important;
    color: var(--emerald-light);
}
.dsgvo-highlight-box p {
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 9px 11px;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-sand);
    font-size: 13.5px;
    font-family: inherit;
    background: var(--surface-elevated);
    color: var(--text-dark);
}

.section-header {
    border-bottom: 1px solid var(--border-green);
    padding-bottom: clamp(10px, 1.4vh, 16px);
    margin-bottom: clamp(14px, 2vh, 22px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.section-header h2 {
    font-size: clamp(22px, 2.2vw, 32px) !important;
    line-height: 1.15;
    color: var(--text-cream);
}

/* --- 9. PROJEKT-WIKI (FAQS), AKKORDEONS & FEEDBACK-ECKE --- */
.fb-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.fb-type-btn {
    padding: 9px 10px;
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid var(--border-green);
    background: var(--surface-elevated);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}
.fb-type-btn:hover {
    border-color: var(--emerald);
}
.fb-type-btn.active {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    color: #ffffff;
    border-color: var(--emerald);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.faq-search-bar {
    background: var(--bg-sand-light);
    border: 1px solid var(--border-sand);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.faq-pill {
    padding: 8px 13px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-sand);
    background: var(--surface-elevated);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}
.faq-pill:hover {
    border-color: var(--emerald);
}
.faq-pill.active {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    color: #ffffff;
    border-color: var(--emerald);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.faq-group-card {
    background: var(--bg-sand-light);
    border: 1px solid var(--border-sand);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.faq-group-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-sand);
}

details.faq-item {
    background: var(--surface-elevated);
    border: 1px solid var(--border-sand);
    border-radius: 12px;
    margin-bottom: 9px;
    overflow: hidden;
    transition: border-color 0.18s ease;
}
details.faq-item[open] {
    border-color: var(--emerald);
}
summary.faq-question {
    padding: 13px 16px;
    min-height: 44px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
summary.faq-question::-webkit-details-marker {
    display: none;
}
summary.faq-question::after {
    content: '▾';
    font-size: 14px;
    color: var(--emerald-light);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
details.faq-item[open] summary.faq-question::after {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 16px 15px 16px;
    font-size: 13.8px;
    line-height: 1.68;
    color: var(--text-dark);
    border-top: 1px solid var(--border-sand);
    padding-top: 12px;
}
.faq-answer code {
    font-family: var(--font-sans); font-variant-numeric: tabular-nums;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--accent-soft-bg);
    color: var(--emerald-light);
}

.sport-stat-box {
    background: var(--surface-elevated);
    border: 1px solid var(--border-sand);
    border-radius: 12px;
    padding: 10px 14px;
}
.telemetry-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--surface-subtle-text);
}
.sport-stat-val {
    font-size: 22px;
    font-weight: 800;
    margin-top: 2px;
}

.fb-admin-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-sand);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.fb-admin-card.status-planned {
    border-color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}
.fb-admin-card.status-done {
    border-color: rgba(148, 163, 184, 0.3);
    opacity: 0.78;
}
.fb-admin-card.status-quarantine {
    border-color: rgba(248, 113, 113, 0.45);
    border-style: dashed;
    background: rgba(127, 29, 29, 0.18);
}

/* --- 10. PASSWORT-MODALS (#pwd-modal & #ds-pw-change-modal) --- */
.ds-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5100;
    background: rgba(5, 10, 18, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.ds-modal-overlay.open {
    display: flex;
    animation: fadeIn 0.18s ease-out;
}

/* --- 11. RESPONSIVE ANPASSUNG FÜR NOTEBOOKS & SMARTPHONES --- */
@media (max-height: 860px) and (min-width: 981px) {
    .main-content { padding: 14px 22px; }
    .section-header { padding-bottom: 8px; margin-bottom: 12px; }
    .hero-card { padding: 18px 22px; margin-bottom: 16px; border-radius: 18px; }
    .sand-card { padding: 15px 18px; border-radius: 16px; }
    #page-home .hero-grid img.family-banner-img { height: 110px !important; margin-bottom: 8px !important; }
    .wappen-frame img { max-height: 32vh; }
    #page-home #osm-map { height: 290px; min-height: 260px; }
}

@media (max-width: 1280px) and (min-width: 981px) {
    .sidebar { width: 235px; }
    .main-content { padding: 18px 22px; }
    .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
    .home-bottom-grid { grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
}

@media (max-width: 980px) {
    body { flex-direction: column; }
    .mobile-bar { display: flex; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        width: 280px;
        height: calc(100vh - 64px);
        transform: translateX(-100%);
        transition: transform 0.25s ease, background-color 0.28s ease;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.45);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content {
        padding: 16px 14px;
        height: auto;
        min-height: calc(100vh - 64px);
        overflow: visible;
    }
    .page-section.active {
        overflow-y: visible;
        padding-right: 0;
    }
    .hero-grid,
    .home-bottom-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .fb-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-title { font-size: 26px; }
    .hero-card, .sand-card { padding: 16px; border-radius: 18px; }
    #page-home #osm-map { height: 300px; min-height: 280px; }
    .nav-btn, .sub-nav-btn { min-height: 44px; }
    .sidebar-mini-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 12px;
        justify-content: center;
    }
}
