/* Magdener Dorfzytig – Design angelehnt an die Original-Seite
   (Elementor-Kit: Grün #589231, Roboto / Roboto Slab, Inhaltsbreite 1140px) */

:root {
    --akzent: #589231;          /* Original-Grün */
    --akzent-dunkel: #46741f;
    --gruen-tief: #2c4a17;      /* dunkles Grün für Hero/Nav */
    --tinte: #1a1a1a;
    --text: #262626;
    --grau: #6d6d6d;
    --linie: #d9d6cc;
    --hintergrund: #e9e6de;     /* gedämpftes, warmes Grau */
    --flaeche: #faf9f6;         /* helle Inhaltsflächen */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Roboto", system-ui, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--hintergrund);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 400;
    color: var(--tinte);
    line-height: 1.25;
}
h1 { font-size: 2.1rem; margin: 0 0 .6rem; }
h2 {
    font-size: 1.5rem; margin-top: 2.5rem;
    border-bottom: 3px solid var(--akzent);
    display: inline-block; padding-bottom: .25rem;
}
h3 { font-size: 1.2rem; }

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

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* Header: grosses Logo, dunkle Menüleiste darunter */
.site-header {
    background: #fff;
}
.header-inner {
    display: flex; flex-wrap: wrap; align-items: center;
    padding-top: 1.4rem;
}
.brand { display: block; }
.brand-logo { width: min(440px, 90vw); height: auto; display: block; }

.nav-toggle {
    display: none; margin-left: auto; font-size: 1.5rem;
    background: none; border: 1px solid var(--linie); border-radius: 4px;
    padding: .2rem .6rem; cursor: pointer;
}

.site-nav {
    flex-basis: 100%;
    display: flex; flex-wrap: wrap;
    margin-top: 1.2rem;
    /* Balken über die volle Browserbreite ziehen */
    background: var(--gruen-tief);
    box-shadow: 0 0 0 100vmax var(--gruen-tief);
    clip-path: inset(0 -100vmax);
}
.site-nav a {
    font-family: "Roboto", sans-serif;
    font-weight: 600; font-size: .92rem;
    text-transform: uppercase; letter-spacing: .04em;
    text-decoration: none; color: #e8eee2;
    padding: .9rem 1.1rem;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.aktiv { color: #fff; background: var(--akzent); }

main { padding: 2.5rem 1.25rem 4rem; }

/* Hero / aktuelle Ausgabe – dunkelgrünes Band */
.hero {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem;
    align-items: center;
    background: linear-gradient(135deg, var(--gruen-tief) 0%, #3c641f 100%);
    color: #f0f3ea;
    padding: 2.5rem 2.75rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.25rem; color: #dce8cf; margin-top: 0; font-family: "Roboto Slab", serif; }
.hero-info { max-width: 52ch; color: #e4ead9; }
.hero .btn { background: #fff; color: var(--gruen-tief); }
.hero .btn:hover { background: #e4ead9; color: var(--gruen-tief); }
.hero .btn-sekundaer { background: transparent; border-color: #c8d6b4; color: #fff; }
.hero .btn-sekundaer:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-cover img {
    width: 100%; max-width: 340px; display: block; margin-left: auto;
    border: 4px solid #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

/* Buttons – grün und VERSAL wie auf der Original-Seite */
.btn {
    display: inline-block; background: var(--akzent); color: #fff;
    font-family: "Roboto", sans-serif; font-weight: 600; font-size: .92rem;
    text-transform: uppercase; letter-spacing: .05em;
    padding: .75rem 1.5rem; border-radius: 3px;
    text-decoration: none; border: none; cursor: pointer;
}
.btn:hover { background: var(--akzent-dunkel); color: #fff; }
.btn-sekundaer { background: transparent; color: var(--akzent); border: 2px solid var(--akzent); }
.btn-sekundaer:hover { background: #eef5e9; color: var(--akzent-dunkel); }

/* Tabellen */
table.termine { border-collapse: collapse; width: 100%; max-width: 760px; background: var(--flaeche); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.termine th, .termine td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.termine thead th {
    background: var(--akzent); color: #fff;
    font-family: "Roboto", sans-serif; font-weight: 600;
}

/* Info-Karten */
.karten {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem; margin-top: 2.5rem;
}
.karte {
    background: var(--flaeche); border: 1px solid var(--linie);
    padding: 1.4rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.karte h3 { margin-top: 0; }

/* Themenbild (Team/Verein/Abo/Inserate) */
.themenbild {
    width: 100%; max-width: 760px; height: auto; display: block;
    margin: 0 0 1.5rem; border: 1px solid var(--linie);
}

/* Team-Mitglieder mit Foto – einheitlich quadratisch im Raster */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.5rem; margin: 1.2rem 0 2.5rem;
}
.team-mitglied {
    margin: 0; /* figure-Standardabstand des Browsers entfernen */
    text-align: center; border: 1px solid var(--linie);
    background: var(--flaeche); padding-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.team-mitglied img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top;
    display: block; margin: 0 0 .8rem;
}
.team-rolle {
    font-family: "Roboto", sans-serif; font-weight: 600; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .04em; color: var(--akzent);
}
.team-name { font-family: "Roboto Slab", serif; font-size: 1.05rem; color: var(--tinte); }

/* Ausgaben-Archiv */
.jahrgang h2 { margin-bottom: 1rem; }
.ausgaben-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 1.6rem; margin-bottom: 1rem;
}
.ausgabe-kachel { text-align: center; }
.ausgabe-kachel img, .ausgabe-kachel .platzhalter {
    width: 100%; aspect-ratio: 210 / 297; object-fit: cover;
    border: 1px solid var(--linie); background: var(--flaeche);
    box-shadow: 0 4px 12px rgba(0,0,0,.14);
    display: grid; place-items: center; color: var(--grau);
}
.ausgabe-kachel a { text-decoration: none; }
.ausgabe-kachel img:hover { box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.ausgabe-label { margin-top: .5rem; font-size: .95rem; font-family: "Roboto Slab", serif; }
.download-link {
    display: inline-block; margin-top: .3rem;
    font-family: "Roboto", sans-serif; font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .05em;
    color: #fff; background: #000; padding: .35rem .9rem; border-radius: 3px;
    text-decoration: none;
}
.download-link:hover { background: var(--akzent); color: #fff; }

/* Formulare */
.formular { max-width: 540px; display: grid; gap: 1rem; }
.formular label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
.formular input, .formular textarea, .formular select {
    padding: .6rem .7rem; border: 1px solid #bbb; border-radius: 3px;
    font: inherit; background: var(--flaeche);
}
.formular input:focus, .formular textarea:focus, .formular select:focus {
    outline: 2px solid var(--akzent);
}
.formular .hp { position: absolute; left: -9999px; }
.meldung { padding: .7rem 1rem; max-width: 640px; }
.meldung.ok { background: #e9f3e2; border: 1px solid #a9cc8f; }
.meldung.fehler { background: #fdebea; border: 1px solid #e3a8a3; }

/* Footer */
.site-footer { background: #000; color: #ddd; margin-top: 3rem; }
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
    padding: 2.4rem 1.25rem; font-size: .92rem;
}
.site-footer a { color: #b9d6a3; }
.footer-copy { align-self: end; text-align: right; color: #999; }

/* Responsiv */
@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; }
    .hero-cover img { margin: 0; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-copy { text-align: left; }
    .nav-toggle { display: block; }
    .site-nav { display: none; flex-direction: column; }
    body.nav-offen .site-nav { display: flex; }
    .site-nav a { border-top: 1px solid rgba(255,255,255,.15); }
}
