/* =====================================================================
   GunSport-Club Filderstadt e.V. - gemeinsames Design
   fuer die Homepage und den Verwaltungsbereich.
   Farben aus dem Vereinslogo: Schwarz/Anthrazit, Gold, Rot.
   Keine externen Schriften (Datenschutz) - es werden die Systemschriften genutzt.
   ===================================================================== */

:root {
    --gold: #d8b460;
    --gold-dunkel: #b8923f;
    --gold-hell: #f7eedb;
    --gold-text: #7a5a12;          /* Gold-Ton mit genug Kontrast fuer Text auf Weiss */
    --schwarz: #0f1012;
    --anthrazit: #1b1d21;
    --anthrazit-2: #26292f;
    --anthrazit-3: #33373e;
    --rot: #c8161d;
    --rot-hell: #fdeeee;
    --gruen: #24733a;
    --gruen-hell: #e9f6ec;
    --blau: #1d5b9c;
    --blau-hell: #eaf2fb;
    --text: #1d2026;
    --text-leise: #5d6470;
    --linie: #e4e0d7;
    --linie-stark: #cfc9bc;
    --hintergrund: #f4f2ed;
    --karte: #ffffff;
    --radius: 10px;
    --radius-klein: 7px;
    --schatten: 0 1px 2px rgba(15, 16, 18, .05), 0 6px 20px rgba(15, 16, 18, .06);
    --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --breite: 1180px;
}

/* ---------------------------------------------------------------- Grundlagen */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--hintergrund);
}

img { max-width: 100%; height: auto; }

a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--schwarz); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--schwarz); margin: 0 0 .6em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 24px 0; }

/* Alte Word-/Template-Reste neutralisieren */
.MsoNormal { margin: 0 0 1em; }
center { text-align: inherit; }

.sprunglink {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--gold); color: var(--schwarz); padding: 8px 14px; border-radius: var(--radius-klein); font-weight: 700;
}
.sprunglink:focus { left: 12px; }

.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;
}

/* ---------------------------------------------------------------- Knoepfe */

.btn, .button, .button2, .button3, .button4,
input[type=submit], input[type=button], button[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-klein);
    background: var(--gold);
    color: var(--schwarz);
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.btn:hover, .button:hover, .button2:hover, .button4:hover,
input[type=submit]:hover, input[type=button]:hover, button[type=submit]:hover {
    background: #cfa64c;
    color: var(--schwarz);
}
.btn:focus-visible, .button:focus-visible, .button2:focus-visible, .button4:focus-visible,
input[type=submit]:focus-visible, button[type=submit]:focus-visible {
    outline: 3px solid rgba(216, 180, 96, .55);
    outline-offset: 2px;
}

.btn-dunkel, input[type=submit].btn-dunkel { background: var(--anthrazit); color: #fff; }
.btn-dunkel:hover, input[type=submit].btn-dunkel:hover { background: var(--anthrazit-3); color: #fff; }
.btn-hell { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-hell:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-umriss, input[type=submit].btn-umriss { background: #fff; color: var(--text); border-color: var(--linie-stark); }
.btn-umriss:hover, input[type=submit].btn-umriss:hover { background: var(--hintergrund); color: var(--schwarz); }
.btn-gefahr, .button3, input[type=submit].btn-gefahr, input[type=submit].button3 { background: var(--rot); color: #fff; }
.btn-gefahr:hover, .button3:hover, input[type=submit].btn-gefahr:hover, input[type=submit].button3:hover { background: #a71016; color: #fff; }
.btn-klein, .button4, input[type=submit].btn-klein, input[type=submit].button4 { min-height: 32px; padding: 5px 12px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }

/* Breitenangaben aus den alten Formularen nicht uebernehmen */
input[type=submit][style*="width"] { width: auto !important; }

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

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=search], input[type=url],
select, textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--linie-stark);
    border-radius: var(--radius-klein);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
select { padding-right: 32px; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-dunkel);
    box-shadow: 0 0 0 3px rgba(216, 180, 96, .3);
}
input::placeholder, textarea::placeholder { color: #8b919b; }
input[type=checkbox], input[type=radio] {
    width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: middle;
    accent-color: var(--gold-dunkel);
}
label { font-weight: 600; }

.feld { margin-bottom: 16px; }
.feld label { display: block; margin-bottom: 6px; font-size: .92rem; }
.feld-hinweis { font-size: .85rem; color: var(--text-leise); margin-top: 4px; }

/* Formularfelder mit Platzhaltern (Kontakt, Gast, Firearms): die alten
   Animations-Beschriftungen ausblenden, die Felder sauber untereinander setzen */
.input--chisato { display: block; margin: 0 0 14px; }
.input__label--chisato, .input__label-content--chisato { display: none; }
.mail_form, .inner_sec_info_wthree_agile { max-width: 640px; }
.mail_form textarea { margin-bottom: 14px; }
.tittle-w3ls { font-size: 1.15rem; margin-top: 4px; }

/* ---------------------------------------------------------------- Hinweise */

.hinweis {
    display: block;
    padding: 12px 16px;
    margin: 0 0 18px;
    border-radius: var(--radius-klein);
    border: 1px solid #bcd3ee;
    border-left-width: 4px;
    background: var(--blau-hell);
    color: #133b66;
}
.hinweis-erfolg { background: var(--gruen-hell); border-color: #b6dcbf; color: #17502a; }
.hinweis-warnung { background: var(--gold-hell); border-color: #e7cf98; color: #5f4510; }
.hinweis-fehler { background: var(--rot-hell); border-color: #f1b9bb; color: #861015; }
.hinweis strong, .hinweis b { color: inherit; }
.hinweis > :last-child { margin-bottom: 0; }

.marke-text { color: var(--text-leise); font-size: .9rem; }

/* Kennzeichnungen (z. B. Status aktiv/passiv) */
.etikett {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .02em;
    background: var(--hintergrund); color: var(--text-leise); border: 1px solid var(--linie);
}
.etikett-gruen { background: var(--gruen-hell); color: var(--gruen); border-color: #b6dcbf; }
.etikett-rot { background: var(--rot-hell); color: var(--rot); border-color: #f1b9bb; }
.etikett-gold { background: var(--gold-hell); color: var(--gold-text); border-color: #e7cf98; }

/* ---------------------------------------------------------------- Karten */

.section, .karte {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    margin: 0 0 28px;
}
.section-inner, .karte-innen { padding: 26px 28px; }
.section .content > :last-child { margin-bottom: 0; }

.heading, .karte-titel {
    position: relative;
    font-size: 1.3rem;
    margin: 0 0 18px;
    padding-left: 14px;
}
.heading::before, .karte-titel::before {
    content: "";
    position: absolute; left: 0; top: .15em; bottom: .15em;
    width: 4px; border-radius: 2px;
    background: var(--gold);
}
.heading.sr-only::before { display: none; }

/* ---------------------------------------------------------------- Tabellen */

.tabelle, .table, .section table.daten {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.tabelle th, .tabelle td, .table th, .table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--linie);
    text-align: left;
    vertical-align: middle;
}
.tabelle thead th, .table thead th {
    background: #f6f3ec;
    color: var(--text-leise);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--linie-stark);
}
.tabelle tbody tr:hover, .table tbody tr:hover { background: #fbf9f4; }
.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius-klein); }
.tabelle-rahmen .tabelle tr:last-child td { border-bottom: 0; }

/* =====================================================================
   HOMEPAGE (oeffentlicher Bereich)
   ===================================================================== */

.kopf {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--anthrazit);
    color: #fff;
    border-bottom: 3px solid var(--gold);
}
.kopf-innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.marke {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.marke:hover { color: #fff; }
.marke img { width: 46px; flex: none; }
.marke-name { display: block; font-weight: 800; font-size: 1.08rem; line-height: 1.2; letter-spacing: .01em; }
.marke-claim { display: block; font-size: .76rem; color: var(--gold); font-style: italic; line-height: 1.3; }

.hauptnav { margin-left: auto; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.hauptnav a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-klein);
    color: #e8e4da;
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    white-space: nowrap;
}
.hauptnav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.hauptnav a.aktiv { color: var(--gold); background: rgba(216, 180, 96, .12); }
.hauptnav a.nav-aktion { margin-left: 8px; background: var(--gold); color: var(--schwarz); }
.hauptnav a.nav-aktion:hover { background: #e3c27a; }

.nav-schalter { position: absolute; opacity: 0; pointer-events: none; }
.nav-knopf {
    display: none;
    margin-left: auto;
    padding: 8px;
    border-radius: var(--radius-klein);
    color: #fff;
    cursor: pointer;
}
.nav-knopf:hover { background: rgba(255, 255, 255, .08); }
.nav-knopf svg { display: block; }
.nav-schalter:focus-visible + .nav-knopf { outline: 2px solid var(--gold); }

/* Startseiten-Banner */
.hero {
    background:
        radial-gradient(1000px 400px at 85% 20%, rgba(216, 180, 96, .16), transparent 60%),
        linear-gradient(135deg, var(--schwarz) 0%, var(--anthrazit-2) 70%, #2f2a1f 100%);
    color: #fff;
}
.hero-innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 64px 20px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
}
.hero-vorzeile {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0 0 14px; letter-spacing: -.01em; }
.hero-claim { color: #d8d3c8; font-size: 1.15rem; font-style: italic; margin: 0 0 30px; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-knoepfe .btn { min-height: 46px; padding: 12px 22px; font-size: 1rem; }
.hero-logo { width: 210px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); }

.seitenband { background: var(--anthrazit-2); color: #fff; }
.seitenband-innen { max-width: var(--breite); margin: 0 auto; padding: 30px 20px; }
.seitenband h1 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.seitenband p { margin: 6px 0 0; color: #cfc9bd; }

.inhalt {
    display: block;
    max-width: var(--breite);
    margin: 36px auto 0;
    padding: 0 20px;
}
.raster {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}
.raster.einspaltig { grid-template-columns: minmax(0, 1fr); }
.raster.einspaltig .haupt { max-width: 920px; width: 100%; margin: 0 auto; }
.raster.einspaltig .haupt.breit { max-width: none; }
.haupt, .seite { min-width: 0; }
.seite .section { position: relative; }

/* Infobox in der Seitenspalte */
.seite .list-unstyled { list-style: none; margin: 0; padding: 0; }
.seite .list-unstyled li { margin: 0; }
.seite .list-unstyled li:empty, .seite .list-unstyled li:has(> i:empty):not(:has(a)) { display: none; }
.seite .list-unstyled a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--linie);
    color: var(--text); text-decoration: none; font-weight: 600;
}
.seite .list-unstyled li:last-child a { border-bottom: 0; }
.seite .list-unstyled a::after { content: "\203A"; margin-left: auto; color: var(--gold-dunkel); font-size: 1.3rem; line-height: 1; }
.seite .list-unstyled a:hover { color: var(--gold-text); }
.seite .list-unstyled i { display: none; }
.seite .intro { margin: 0; }
.seite .intro .button { margin-top: 8px; }

/* News auf der Startseite */
.news-liste { display: grid; gap: 18px; }
.news {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--linie);
}
.news:last-child { border-bottom: 0; padding-bottom: 0; }
.news-bild {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-klein);
    overflow: hidden;
    background: #f1ede4;
}
.news-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-bild img[src$="logo.png"] { object-fit: contain; padding: 12px; }
.news-datum {
    display: inline-block;
    margin-bottom: 6px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.news-text { margin: 0; }

/* Trainingszeiten */
.zeiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.zeiten-box { padding: 18px 20px; border-radius: var(--radius-klein); background: #faf8f3; border: 1px solid var(--linie); }
.zeiten-box h3 { font-size: 1rem; margin-bottom: 8px; }
.kalender-rahmen { border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; margin-bottom: 24px; background: #fff; }
.kalender-rahmen iframe { display: block; width: 100%; border: 0; }

/* Formular-Tabellen der Homepage (Antraege) */
.section table.formular { border: 1px solid var(--linie) !important; border-radius: var(--radius-klein); }

/* Fussbereich */
.fuss {
    margin-top: 56px;
    background: var(--schwarz);
    color: #b7b1a5;
    border-top: 3px solid var(--gold);
    font-size: .95rem;
}
.fuss-innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 44px 20px 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}
.fuss h3 {
    color: #fff;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.fuss p { margin: 0 0 10px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin: 0 0 8px; }
.fuss a { color: #e3c682; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-marke { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.fuss-marke img { width: 40px; }
.fuss-unten {
    border-top: 1px solid #25282d;
    padding: 16px 20px;
    text-align: center;
    font-size: .85rem;
    color: #8d877b;
}

/* =====================================================================
   VERWALTUNG
   ===================================================================== */

body.verwaltung { background: #f3f2ef; }

.v-rahmen { display: flex; min-height: 100vh; }

.v-seitenleiste {
    position: sticky;
    top: 0;
    flex: 0 0 256px;
    height: 100vh;
    overflow-y: auto;
    background: var(--anthrazit);
    color: #cfcabe;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #000;
}
.v-marke {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 18px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #2d3036;
}
.v-marke:hover { color: #fff; }
.v-marke img { width: 38px; }
.v-marke strong { display: block; font-size: 1rem; line-height: 1.2; }
.v-marke small { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

.v-nav { padding: 14px 12px 24px; display: flex; flex-direction: column; gap: 2px; }
.v-nav-gruppe {
    margin: 16px 10px 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7f7a70;
}
.v-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--radius-klein);
    color: #d6d1c6;
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
}
.v-nav a svg { flex: none; opacity: .8; }
.v-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.v-nav a.aktiv { background: rgba(216, 180, 96, .15); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.v-nav a.aktiv svg { opacity: 1; }
.v-seitenleiste-unten { margin-top: auto; padding: 16px 20px; font-size: .78rem; color: #7f7a70; border-top: 1px solid #2d3036; }

.v-haupt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.v-kopf {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--linie);
}
.v-kopf h1 { margin: 0; font-size: 1.3rem; }
.v-menueknopf { display: none; padding: 6px; border-radius: var(--radius-klein); cursor: pointer; color: var(--text); }
.v-menueknopf:hover { background: var(--hintergrund); }
.v-benutzer { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.v-avatar {
    width: 36px; height: 36px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--anthrazit);
    color: var(--gold);
    font-weight: 800; font-size: .85rem;
}
.v-benutzer-name { line-height: 1.2; }
.v-benutzer-name strong { display: block; font-size: .9rem; }
.v-benutzer-name small { color: var(--text-leise); font-size: .78rem; }

.v-inhalt { padding: 28px 32px 40px; width: 100%; max-width: 1240px; }
.v-fuss { margin-top: auto; padding: 16px 32px; font-size: .8rem; color: var(--text-leise); border-top: 1px solid var(--linie); }

.v-abdunkler { display: none; }

/* Inhalte der alten Verwaltungsseiten */
.verwaltung .section { margin-bottom: 24px; }
.verwaltung .section-inner { padding: 24px 26px; }
.verwaltung .section-inner > br:first-child,
.verwaltung .section-inner > br:first-child + br { display: none; }
.verwaltung .content > br:first-child { display: none; }

/* Kennzahlen (Uebersicht, Mitgliederliste) */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kennzahl {
    display: block;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    color: var(--text);
    text-decoration: none;
}
a.kennzahl:hover { border-color: var(--gold); color: var(--text); }
.kennzahl-wert { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--schwarz); }
.kennzahl-name { display: block; margin-top: 4px; font-size: .85rem; color: var(--text-leise); font-weight: 600; }
.kennzahl-warnung { border-left: 4px solid var(--gold); }
.kennzahl-warnung .kennzahl-wert { color: var(--gold-text); }

.schnellzugriff { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.schnellzugriff a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 1px solid var(--linie); border-radius: var(--radius-klein);
    background: #fff; color: var(--text); font-weight: 600; text-decoration: none;
}
.schnellzugriff a:hover { border-color: var(--gold); background: #fffdf8; }
.schnellzugriff svg { color: var(--gold-dunkel); flex: none; }

/* Reiter (Mitglieder / Anwaerter) */
.tab2 {
    display: flex;
    gap: 4px;
    width: auto !important;
    margin: 0 0 20px;
    border-bottom: 1px solid var(--linie-stark);
}
.tab2 font { font-size: inherit !important; }
.tab2links {
    position: relative;
    padding: 10px 16px;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-radius: var(--radius-klein) var(--radius-klein) 0 0;
    background: transparent;
    color: var(--text-leise);
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
}
.tab2links:hover { color: var(--schwarz); }
.tab2links.active { background: #fff; color: var(--schwarz); border-color: var(--linie-stark) var(--linie-stark) #fff; }
.tab2links.active::after { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 3px; border-radius: 2px; background: var(--gold); }
.tab2content { display: none; animation: einblenden .25s ease; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

/* Filter ueber der Mitgliederliste */
.filterleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.filterleiste .suche { flex: 1 1 260px; max-width: 360px; }
.segmente { display: inline-flex; border: 1px solid var(--linie-stark); border-radius: var(--radius-klein); overflow: hidden; background: #fff; }
.segmente a { padding: 8px 14px; font-size: .88rem; font-weight: 600; color: var(--text-leise); text-decoration: none; border-right: 1px solid var(--linie); }
.segmente a:last-child { border-right: 0; }
.segmente a:hover { color: var(--schwarz); background: var(--hintergrund); }
.segmente a.aktiv { background: var(--anthrazit); color: #fff; }
.zeilen-info { font-size: .85rem; color: var(--text-leise); }
.tabelle td.aktionen, .tabelle th.aktionen { text-align: right; white-space: nowrap; width: 1%; }
.tabelle td.aktionen form { display: inline; margin: 0; }
.tabelle .name { font-weight: 700; }

/* Datenblaetter (Mitglieds-Datensatz, Antraege, Bearbeiten, Mitgliedsantrag) */
table.datenblatt {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--linie) !important;
    border-radius: var(--radius-klein);
    overflow: hidden;
    font-size: .95rem;
    background: #fff;
}
table.datenblatt > tbody > tr { height: auto !important; }
table.datenblatt > tbody > tr > td { padding: 9px 16px; border-bottom: 1px solid #efebe3; vertical-align: middle; height: auto !important; }
table.datenblatt > tbody > tr > td:first-child { color: var(--text-leise); width: 42%; }
table.datenblatt > tbody > tr > td:last-child { font-weight: 600; color: var(--text); }
table.datenblatt > tbody > tr > td[width="20"], table.datenblatt > tbody > tr > td[width="2%"] { width: 0; padding: 0; }
table.datenblatt > tbody > tr.db-abschnitt > td {
    padding: 11px 16px;
    background: #f6f3ec !important;
    color: var(--gold-text) !important;
    font-size: .76rem;
    font-weight: 800 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-top: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie);
}
table.datenblatt > tbody > tr.db-abschnitt:first-child > td { border-top: 0; }
table.datenblatt > tbody > tr.db-abstand,
table.datenblatt > tbody > tr:has(> td:only-child:empty) { display: none; }
table.datenblatt > tbody > tr:last-child > td { border-bottom: 0; }
table.datenblatt label { font-weight: inherit; }
table.datenblatt input, table.datenblatt textarea, table.datenblatt select { font-weight: 400; }
table.datenblatt b { font-weight: 600; }
table.datenblatt td > br:first-child { display: none; }
/* verschachtelte Tabellen (Ankreuzfelder) im Datenblatt schlicht halten */
table.datenblatt table { width: auto; border: 0; margin: 0; }
table.datenblatt table td { padding: 4px 12px 4px 0; border: 0; width: auto !important; color: inherit; font-weight: 400; }

.aktionsleiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.aktionsleiste form { margin: 0; }

/* =====================================================================
   Anmeldeseite der Verwaltung
   ===================================================================== */

body.anmeldung {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 500px at 80% 0%, rgba(216, 180, 96, .18), transparent 60%),
        linear-gradient(160deg, var(--schwarz), var(--anthrazit-2));
}
.anmelde-karte {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
}
.anmelde-kopf { padding: 28px 30px 18px; text-align: center; border-bottom: 1px solid var(--linie); }
.anmelde-kopf img { width: 64px; margin-bottom: 10px; }
.anmelde-kopf h1 { font-size: 1.25rem; margin: 0; }
.anmelde-kopf p { margin: 4px 0 0; color: var(--text-leise); font-size: .9rem; }
.anmelde-inhalt { padding: 24px 30px 30px; }
.anmelde-inhalt form { margin: 0; }
.anmelde-inhalt input[type=submit] { width: 100%; margin-top: 6px; min-height: 44px; }
.anmelde-fuss { padding: 0 30px 22px; text-align: center; font-size: .82rem; color: var(--text-leise); }
.anmelde-fuss a { color: var(--text-leise); }

/* =====================================================================
   Kleine Bildschirme
   ===================================================================== */

@media (max-width: 980px) {
    .nav-knopf { display: block; }
    .hauptnav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--anthrazit);
        border-bottom: 3px solid var(--gold);
        padding: 8px 12px 14px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
    }
    .hauptnav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .hauptnav a { padding: 12px 14px; font-size: 1rem; }
    .hauptnav a.nav-aktion { margin: 8px 0 0; text-align: center; }
    .nav-schalter:checked ~ .hauptnav { display: block; }
    .kopf-innen { position: relative; }

    .raster { grid-template-columns: minmax(0, 1fr); }
    .fuss-innen { grid-template-columns: 1fr 1fr; }

    .v-seitenleiste {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        z-index: 60;
        width: 270px;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .v-menueknopf { display: block; }
    .nav-schalter:checked ~ .v-rahmen .v-seitenleiste { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
    .nav-schalter:checked ~ .v-rahmen .v-abdunkler { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); }
    .v-kopf { padding: 12px 18px; }
    .v-inhalt { padding: 20px 18px 32px; }
    .v-fuss { padding: 14px 18px; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .marke-claim { display: none; }
    .marke-name { font-size: .98rem; }
    .marke img { width: 38px; }
    .hero-innen { grid-template-columns: 1fr; padding: 40px 20px 44px; gap: 20px; }
    .hero-logo { display: none; }
    .inhalt { margin-top: 22px; padding: 0 14px; }
    .section-inner, .karte-innen, .verwaltung .section-inner { padding: 20px 18px; }
    .news { grid-template-columns: 1fr; gap: 12px; }
    .fuss-innen { grid-template-columns: 1fr; gap: 24px; }
    .v-benutzer-name, .v-benutzer .btn-umriss { display: none; }
    .v-kopf h1 { font-size: 1.1rem; }

    /* Datenblaetter: Beschriftung ueber dem Wert */
    table.datenblatt, table.datenblatt > tbody, table.datenblatt > tbody > tr, table.datenblatt > tbody > tr > td { display: block; width: 100% !important; }
    table.datenblatt > tbody > tr { border-bottom: 1px solid #efebe3; padding: 8px 0; }
    table.datenblatt > tbody > tr > td { border: 0; padding: 2px 14px; }
    table.datenblatt > tbody > tr > td:empty, table.datenblatt > tbody > tr > td[width="20"], table.datenblatt > tbody > tr > td[width="2%"] { display: none; }
    table.datenblatt > tbody > tr.db-abstand { display: none; }
    table.datenblatt > tbody > tr.db-abschnitt { padding: 0; }
    table.datenblatt > tbody > tr.db-abschnitt > td { padding: 10px 14px; }
    table.datenblatt > tbody > tr > td:first-child { font-size: .85rem; }

    /* Kennzahlen zu zweit nebeneinander */
    .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .kennzahl { padding: 14px 14px; }
    .kennzahl-wert { font-size: 1.5rem; }
    .kennzahl-name { font-size: .78rem; }

    /* Tabellen: lange Woerter umbrechen, Vorschaubilder ausblenden */
    .tabelle th, .tabelle td { padding: 10px 10px; }
    .tabelle td { overflow-wrap: anywhere; }
    .news-zeile img { display: none; }
    .tab2links { padding: 9px 12px; font-size: .9rem; }

    /* Breite Listen-Tabellen: Spalten, die nicht passen, scrollen */
    .tabelle-rahmen { margin: 0 -2px; }
    .tabelle .nur-breit { display: none; }
}

@media print {
    .kopf, .fuss, .v-seitenleiste, .v-kopf, .v-fuss, .aktionsleiste, .nav-knopf { display: none !important; }
    body, body.verwaltung { background: #fff; }
    .section { box-shadow: none; border: 0; }
}

/* ---------------------------------------------------------------- Vorstand ("Ueber uns") */
.vorstand-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vorstand-karte {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: #fcfbf8;
}
.vorstand-karte img { width: 52px; flex: none; }
.vorstand-karte h3 { margin: 0 0 2px; font-size: 1.05rem; }
.vorstand-karte p { margin: 0 0 4px; font-size: .92rem; word-break: break-word; }
.vorstand-rolle { color: var(--gold-text); font-weight: 700; font-size: .82rem !important; letter-spacing: .05em; text-transform: uppercase; }
img[src$="spacer.jpg"] { display: none; }
.zeiten-box p { margin: 0 0 12px; }
.zeiten-ort { padding-top: 12px; border-top: 1px solid var(--linie); font-size: .92rem; }

/* Platzhalter fuer noch nicht fertige Bereiche */
.platzhalter { text-align: center; padding: 48px 24px !important; }
.platzhalter-symbol {
    width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; background: var(--gold-hell); color: var(--gold-text);
}
.platzhalter h2 { margin-bottom: 6px; }
.platzhalter p { color: var(--text-leise); margin: 0; }

/* News-Liste in der Verwaltung */
.news-zeile { display: flex; gap: 12px; align-items: flex-start; }
.news-zeile img { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; flex: none; background: #f1ede4; }
.news-zeile img[src$="logo.png"] { object-fit: contain; padding: 4px; }
input[type=file] { font: inherit; font-size: .92rem; max-width: 100%; }
input[type=file]::file-selector-button {
    margin-right: 12px; padding: 8px 14px; border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
    background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--hintergrund); }
.formular-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.section.schmal { max-width: 620px; }
/* Alte Tabellen enthalten <br> zwischen den Zeilen - der Browser schiebt sie vor die Tabelle */
br:has(~ table.datenblatt) { display: none; }
/* Fussbereich bei kurzen Seiten unten halten */
body.oeffentlich { min-height: 100vh; display: flex; flex-direction: column; }
body.oeffentlich > .inhalt { flex: 1 0 auto; width: 100%; }

/* ---------------------------------------------------------------- Bildergalerie */
.alben { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.album {
    display: block; overflow: hidden;
    border: 1px solid var(--linie); border-radius: var(--radius-klein); background: #fff;
    color: var(--text); text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.album:hover { transform: translateY(-2px); box-shadow: var(--schatten); border-color: var(--gold); color: var(--text); }
.album-bild { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ece8df; }
.album-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.album:hover .album-bild img { transform: scale(1.04); }
.album-titel { display: block; padding: 12px 14px 0; font-weight: 700; }
.album-anzahl { display: block; padding: 2px 14px 14px; font-size: .85rem; color: var(--text-leise); }
.album-zurueck { margin-bottom: 14px; }
.album-zurueck a { font-weight: 600; text-decoration: none; }

.bilder-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.bilder-raster a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #ece8df; }
.bilder-raster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.bilder-raster a:hover img { transform: scale(1.05); }
.bilder-raster a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 64px 72px;
    background: rgba(10, 10, 12, .94);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.lightbox figcaption { margin-top: 12px; color: #cfc9bd; font-size: .9rem; }
.lightbox button {
    position: absolute; display: grid; place-items: center;
    width: 50px; height: 50px; min-height: 0; padding: 0;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff;
    font-size: 32px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-schliessen { top: 14px; right: 14px; }
.lb-zurueck { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .alben { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .bilder-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .lightbox { padding: 60px 8px 80px; }
    .lb-zurueck, .lb-weiter { top: auto; bottom: 14px; transform: none; }
    .lb-zurueck { left: calc(50% - 64px); }
    .lb-weiter { right: calc(50% - 64px); }
}

/* Umlaute reparieren (verwaltung/zeichen_reparieren.php) */
.zeichen-anzahl { color: var(--text-leise); font-weight: 400; }
.zeichen-tabelle td { vertical-align: top; overflow-wrap: anywhere; }
.zeichen-tabelle td.zeichen-alt { color: var(--rot); }
.zeichen-tabelle td.zeichen-neu { color: var(--gruen); font-weight: 600; }
