/* ============================================================
   Schützenverein Sieversen-Leversen – zentrales Stylesheet
   Farbwelt: Jägergrün + Gold (traditionell, freundlich)
   ============================================================ */

:root {
    --gruen-dunkel: #1e3d2b;
    --gruen:        #2c5e3f;
    --gruen-hell:   #eaf2ec;
    --gold:         #c9a227;
    --gold-hell:    #f4e9c8;
    --text:         #26292b;
    --text-hell:    #5b6167;
    --weiss:        #ffffff;
    --grau-hell:    #f6f7f5;
    --rand:         #dfe4e0;
    --rot:          #a52a2a;
    --radius:       10px;
    --schatten:     0 2px 12px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--weiss);
    line-height: 1.65;
}

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

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

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--gruen-dunkel);
    line-height: 1.25;
}

/* ---------- Kopfbereich / Navigation ---------- */

.kopf {
    background: var(--gruen-dunkel);
    border-bottom: 4px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.kopf-innen {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.marke {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.marke-logo { width: 52px; height: 52px; }

.marke-text { display: flex; flex-direction: column; }

.marke-text strong {
    color: var(--weiss);
    font-family: Georgia, serif;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.marke-text small {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.navigation a {
    display: block;
    padding: 0.55rem 0.85rem;
    color: #dfe8e2;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.navigation a:hover { background: rgba(255, 255, 255, 0.12); color: var(--weiss); }

.navigation a.aktiv {
    background: var(--gold);
    color: var(--gruen-dunkel);
    font-weight: 600;
}

/* Mobiles Menü (ohne JavaScript, über Checkbox) */
.nav-schalter { display: none; }

.nav-knopf {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-knopf span {
    width: 26px;
    height: 3px;
    background: var(--weiss);
    border-radius: 2px;
}

@media (max-width: 840px) {
    .nav-knopf { display: flex; }
    .navigation { display: none; width: 100%; }
    .nav-schalter:checked ~ .navigation { display: block; }
    .navigation ul { flex-direction: column; padding: 0.5rem 0 0.75rem; }
}

/* ---------- Heldenbereich (Startseite) ---------- */

.held {
    background: linear-gradient(rgba(30, 61, 43, 0.72), rgba(30, 61, 43, 0.82)),
                url("../img/beispiel/umzug-gross.jpg") center / cover no-repeat;
    color: var(--weiss);
    text-align: center;
    padding: 5.5rem 1rem;
}

.held h1 {
    color: var(--weiss);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    margin-bottom: 0.75rem;
}

.held p {
    max-width: 640px;
    margin: 0 auto 1.75rem;
    font-size: 1.1rem;
    color: #e8efe9;
}

/* ---------- Allgemeine Bereiche ---------- */

.bereich { padding: 3.5rem 1rem; }
.bereich.hell { background: var(--grau-hell); }
.bereich.gruen { background: var(--gruen-hell); }

.innen { max-width: 1100px; margin: 0 auto; }
.innen.schmal { max-width: 780px; }

.bereich-titel {
    text-align: center;
    margin-bottom: 2.25rem;
}

.bereich-titel h2 { font-size: 1.9rem; }

.bereich-titel .unterzeile {
    color: var(--text-hell);
    margin-top: 0.4rem;
}

.bereich-titel::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--gold);
    margin: 0.9rem auto 0;
    border-radius: 2px;
}

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

.knopf {
    display: inline-block;
    background: var(--gold);
    color: var(--gruen-dunkel);
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}

.knopf:hover { filter: brightness(1.07); color: var(--gruen-dunkel); }
.knopf:active { transform: translateY(1px); }

.knopf.gruen { background: var(--gruen); color: var(--weiss); }
.knopf.gruen:hover { color: var(--weiss); }

.knopf.klein { padding: 0.4rem 1rem; font-size: 0.88rem; }

.knopf.gefahr { background: #f3dede; color: var(--rot); }

/* ---------- Kartenraster ---------- */

.raster {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.karte {
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    overflow: hidden;
}

.karte-inhalt { padding: 1.25rem 1.4rem 1.5rem; }

.karte h3 { margin-bottom: 0.5rem; }

/* ---------- Terminlisten ---------- */

.termin {
    display: flex;
    gap: 1.25rem;
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
    box-shadow: var(--schatten);
    align-items: flex-start;
}

.termin-datum {
    flex: 0 0 auto;
    background: var(--gruen);
    color: var(--weiss);
    border-radius: 8px;
    text-align: center;
    padding: 0.5rem 0.9rem;
    min-width: 72px;
}

.termin-datum .tag { font-size: 1.5rem; font-weight: 700; line-height: 1.1; display: block; }
.termin-datum .monat { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

.termin-info h3 { margin-bottom: 0.15rem; font-size: 1.15rem; }

.termin-meta {
    color: var(--text-hell);
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.termin-meta span + span::before { content: " · "; }

/* ---------- Jahresplan ---------- */

.monat-block { margin-bottom: 2rem; }

.monat-block h3 {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.3rem;
    margin-bottom: 0.9rem;
    font-size: 1.3rem;
}

.jahresplan-tabelle { width: 100%; border-collapse: collapse; }

.jahresplan-tabelle td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--rand);
    vertical-align: top;
}

.jahresplan-tabelle td.datum { white-space: nowrap; font-weight: 600; width: 1%; }

.jahr-wahl {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.jahr-wahl a {
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--rand);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    background: var(--weiss);
}

.jahr-wahl a.aktiv {
    background: var(--gruen);
    border-color: var(--gruen);
    color: var(--weiss);
    font-weight: 600;
}

/* ---------- Königshaus ---------- */

.person-karte { text-align: center; }

.person-karte .bild-rahmen {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gruen-hell);
}

.person-karte .bild-rahmen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-karte .position {
    display: inline-block;
    background: var(--gold-hell);
    color: #7c6413;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.person-karte h3 { font-size: 1.2rem; }

.person-karte .zeitraum { color: var(--text-hell); font-size: 0.9rem; }

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

.formular label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.3rem;
}

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="date"],
.formular input[type="time"],
.formular input[type="number"],
.formular input[type="password"],
.formular select,
.formular textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--rand);
    border-radius: 8px;
    font: inherit;
    background: var(--weiss);
}

.formular input:focus,
.formular select:focus,
.formular textarea:focus {
    outline: 2px solid var(--gruen);
    outline-offset: 1px;
    border-color: var(--gruen);
}

.formular textarea { min-height: 150px; resize: vertical; }

.formular .hinweis { color: var(--text-hell); font-size: 0.85rem; margin-top: 0.25rem; }

.formular .aktionen { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Honigtopf-Feld für Spam-Bots unsichtbar machen */
.hp-feld { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Meldungen ---------- */

.meldung {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.meldung.erfolg { background: #e4f2e6; color: #1e5e2a; border: 1px solid #bfdec4; }
.meldung.fehler { background: #f9e3e3; color: #8c2020; border: 1px solid #eec3c3; }

/* ---------- Infokästen (Vermietung u. a.) ---------- */

.info-liste {
    list-style: none;
}

.info-liste li {
    padding: 0.45rem 0 0.45rem 1.9rem;
    position: relative;
}

.info-liste li::before {
    content: "✓";
    position: absolute;
    left: 0.25rem;
    color: var(--gold);
    font-weight: 700;
}

.preis-tabelle { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }

.preis-tabelle th,
.preis-tabelle td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--rand);
}

.preis-tabelle th { background: var(--gruen-hell); color: var(--gruen-dunkel); }

/* ---------- Galerie ---------- */

.galerie {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.galerie figure {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--rand);
    background: var(--weiss);
}

.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.galerie figcaption {
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-hell);
}

/* ---------- Zweispalter ---------- */

.zweispalter {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

@media (max-width: 760px) {
    .zweispalter { grid-template-columns: 1fr; }
}

.zweispalter .bild img {
    border-radius: var(--radius);
    box-shadow: var(--schatten);
}

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

.fuss {
    background: var(--gruen-dunkel);
    color: #cfdad2;
    margin-top: 3rem;
    border-top: 4px solid var(--gold);
}

.fuss-innen {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1rem 1.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.fuss h3 {
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.fuss ul { list-style: none; }

.fuss a { color: #cfdad2; text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }

.fuss-zeile {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

/* ---------- Adminbereich ---------- */

.admin-kopf {
    background: var(--gruen-dunkel);
    color: var(--weiss);
    padding: 0.8rem 1rem;
    border-bottom: 4px solid var(--gold);
}

.admin-kopf-innen {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-kopf .titel { font-family: Georgia, serif; font-size: 1.1rem; }

.admin-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.admin-nav a {
    color: #dfe8e2;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.92rem;
}

.admin-nav a:hover { background: rgba(255, 255, 255, 0.12); color: var(--weiss); }
.admin-nav a.aktiv { background: var(--gold); color: var(--gruen-dunkel); font-weight: 600; }

.admin-tabelle {
    width: 100%;
    border-collapse: collapse;
    background: var(--weiss);
    box-shadow: var(--schatten);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-tabelle th,
.admin-tabelle td {
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--rand);
    vertical-align: middle;
}

.admin-tabelle th { background: var(--gruen-hell); color: var(--gruen-dunkel); }

.admin-tabelle tr:hover td { background: var(--grau-hell); }

.admin-tabelle .mini-bild {
    width: 46px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--rand);
}

.admin-kasten {
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
}

.anmelde-kasten {
    max-width: 420px;
    margin: 4rem auto;
}

.kachel-raster {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.5rem;
}

.kachel {
    background: var(--weiss);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1.5rem;
    text-decoration: none;
    display: block;
}

.kachel:hover { border-color: var(--gruen); }

.kachel .zahl { font-size: 2.2rem; font-weight: 700; color: var(--gruen); }

.kachel .beschriftung { color: var(--text-hell); }
