/* ==========================================================
   Lauftreff Bürgerpark 2026
   Haupt-Stylesheet

   Struktur:
   01. Variablen & Basis
   02. Hilfsklassen & Barrierefreiheit
   03. Links & Buttons
   04. Überschriften & allgemeine Inhaltsbereiche
   05. Header & Navigation
   06. Hero-Bereich Startseite
   07. Startseite: Inhalte, Bildkacheln & CTA
   08. Unterseiten-Hero
   09. Termine
   10. Galerie
   11. Sponsoren
   12. Footer
   13. Adminbereich
   14. Formulare & Tabellen
   15. Responsive Anpassungen
   ========================================================== */


/* ==========================================================
   01. Variablen & Basis
   ========================================================== */

:root {
    --green-dark: #174d2c;
    --green: #48a832;
    --green-light: #8bd320;
    --mint: #edf8e8;
    --text: #172218;
    --muted: #53625a;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(21, 55, 31, 0.14);
    --radius: 24px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: #ffffff;
    text-align: justify;
    hyphens: auto;
}


/* ==========================================================
   02. Hilfsklassen & Barrierefreiheit
   ========================================================== */

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 99;
    background: #ffffff;
    padding: 0.7rem 1rem;
    border: 2px solid var(--green-dark);
}

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.note {
    background: var(--mint);
    border-left: 5px solid var(--green);
    padding: 0.8rem;
    border-radius: 12px;
    color: var(--green-dark);
}


/* ==========================================================
   03. Links & Buttons
   ========================================================== */

/* Links sind bewusst nicht unterstrichen und werden über Fettschrift hervorgehoben. */
a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0.78rem 1.15rem;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
}

.btn-primary {
    background: var(--green-light);
    color: #102b16;
}

.btn-secondary {
    background: #ffffff;
    color: var(--green-dark);
}

.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--green-dark);
    color: #ffffff;
}


/* ==========================================================
   04. Überschriften & allgemeine Inhaltsbereiche
   ========================================================== */

h1,
h2,
h3 {
    line-height: 1.18;
    text-align: left;
    color: var(--green-dark);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0 0 1rem;
}

.section {
    padding: 4.5rem 0;
}

.section-soft {
    background: var(--mint);
}

.text-content {
    max-width: 860px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.info-box,
.card,
.term-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.card > img,
.info-box > img,
.term-card > img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1rem;
}


/* ==========================================================
   05. Header & Navigation
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--green-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.brand img {
    display: block;
    max-width: 210px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    color: #ffffff;
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
    background: rgba(255, 255, 255, 0.14);
    color: var(--green-light);
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 700;
}


/* ==========================================================
   06. Hero-Bereich Startseite
   ========================================================== */

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    display: grid;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 62, 35, 0.92),
            rgba(15, 62, 35, 0.72),
            rgba(15, 62, 35, 0.12)
        ),
        url("../images/hero-park.png") center / cover no-repeat;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    color: #ffffff;
}

.hero-text {
    max-width: 680px;
}

.hero h1,
.hero .hero-text h1 {
    color: #ffffff;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1.02;
    margin: 0.25rem 0 1rem;
    text-align: left;
    hyphens: none;
}

.hero p {
    max-width: 650px;
    font-size: 1.15rem;
    text-align: left;
}

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--green-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.next-card {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
}

.next-card span {
    display: block;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.next-card strong {
    display: block;
    margin: 0.5rem 0;
    font-size: 1.5rem;
    line-height: 1.25;
}


/* ==========================================================
   07. Startseite: Inhalte, Bildkacheln & CTA
   ========================================================== */

/* Bereich: Gemeinschaft + Nordic Walking */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.image-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.image-card > div {
    padding: 1.35rem;
}

.image-card .eyebrow {
    margin-top: 0;
}

/* Beide Bildbereiche stehen auf Desktop gleichwertig nebeneinander. */
.image-card-reverse img {
    order: 0;
}

/* Bereich: Treffpunkte */
.spot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.spot-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.spot-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.spot-card > div {
    padding: 1.35rem;
}

.spot-card h3 {
    margin-top: 0;
}

.home-note {
    margin-top: 1.25rem;
}

/* Familien-CTA */
.home-highlight {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--green-dark);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.home-highlight h2,
.home-highlight p {
    color: #ffffff;
}

.home-highlight .eyebrow {
    color: var(--green-light);
}

.highlight-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.highlight-actions {
    justify-content: flex-end;
}

/* Rückwärtskompatibilität für ältere Klassennamen aus früheren Patches */
.home-image-grid,
.feature-image-grid,
.start-image-grid,
.place-grid,
.treffpunkt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.home-image-card,
.feature-image-card,
.start-image-card,
.place-card,
.treffpunkt-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.home-image-card img,
.feature-image-card img,
.start-image-card img,
.place-card img,
.treffpunkt-card img {
    display: block;
    width: 100%;
    height: 260px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-image-card figcaption,
.feature-image-card figcaption,
.start-image-card figcaption,
.place-card figcaption,
.treffpunkt-card figcaption {
    padding: 0.9rem 1rem 1rem;
    font-weight: 700;
    color: var(--green-dark);
    text-align: left;
}


/* ==========================================================
   08. Unterseiten-Hero
   ========================================================== */

.page-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--green-dark), #236d3b);
    color: #ffffff;
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
    text-align: left;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4rem);
}


/* ==========================================================
   09. Termine
   ========================================================== */

.term-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}


/* ==========================================================
   10. Galerie
   ========================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    margin: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 0.8rem;
    font-weight: 700;
    text-align: left;
}


/* ==========================================================
   11. Sponsoren
   ========================================================== */

.sponsors {
    padding: 3.5rem 0;
    background: #f8fbf6;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 135px;
    padding: 1rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease;
}

.sponsor-card:hover {
    transform: translateY(-3px);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 95px;
    object-fit: contain;
}


/* ==========================================================
   12. Footer
   ========================================================== */

.site-footer {
    background: var(--green-dark);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
}

.site-footer a {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-grid p,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.86);
    text-align: left;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}


/* ==========================================================
   13. Adminbereich
   ========================================================== */

.admin-body {
    background: #f4f7f2;
}

.admin-shell {
    width: min(100% - 2rem, 1100px);
    margin: 2rem auto;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.admin-nav a {
    background: #ffffff;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
}

.admin-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin: 1rem 0;
}


/* ==========================================================
   14. Formulare & Tabellen
   ========================================================== */

.form-grid {
    display: grid;
    gap: 0.85rem;
}

.form-grid label {
    display: grid;
    gap: 0.3rem;
    font-weight: 700;
    text-align: left;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5cc;
    border-radius: 12px;
    font: inherit;
}

textarea {
    min-height: 110px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #e1e8df;
    text-align: left;
    vertical-align: top;
}

.danger {
    color: #b42318;
}


/* ==========================================================
   15. Responsive Anpassungen
   ========================================================== */

@media (max-width: 900px) {
    body {
        text-align: left;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--green-dark);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 18px;
        padding: 0.75rem;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 5rem 0;
    }

    .hero-content,
    .intro-grid,
    .footer-grid,
    .feature-grid,
    .spot-grid,
    .home-highlight,
    .home-image-grid,
    .feature-image-grid,
    .start-image-grid,
    .place-grid,
    .treffpunkt-grid {
        grid-template-columns: 1fr;
    }

    .cards-3,
    .term-list,
    .gallery-grid,
    .sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand img {
        max-width: 180px;
    }

    .hero p {
        text-align: left;
    }

    .image-card img,
    .spot-card img,
    .home-image-card img,
    .feature-image-card img,
    .start-image-card img,
    .place-card img,
    .treffpunkt-card img,
    .card > img,
    .info-box > img,
    .term-card > img {
        height: auto;
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .highlight-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 1.2rem, var(--max));
    }

    .hero {
        padding: 3.4rem 0;
    }

    .hero-content {
        gap: 1.2rem;
    }

    .hero-actions .btn,
    .highlight-actions .btn,
    .section-actions .btn {
        width: 100%;
    }

    .cards-3,
    .term-list,
    .gallery-grid,
    .sponsor-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .image-card > div,
    .spot-card > div,
    .home-highlight {
        padding: 1.25rem;
    }

    .sponsor-card {
        min-height: 115px;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand img {
        max-width: 150px;
    }
}

/* ==========================================================
   Terminseite: 3 Spalten auf Desktop wiederherstellen
   Ergänzung am Ende der style.css einfügen.
   ========================================================== */

/* Desktop: Dauertermine wieder klar dreispaltig darstellen */
@media (min-width: 901px) {
    .term-list,
    .terms-grid,
    .termine-grid,
    .schedule-grid,
    .dauertermine-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        align-items: stretch;
    }

    .term-list .term-card,
    .terms-grid .term-card,
    .termine-grid .term-card,
    .schedule-grid .term-card,
    .dauertermine-grid .term-card {
        height: 100%;
    }
}

/* Tablet: zwei Spalten */
@media (min-width: 561px) and (max-width: 900px) {
    .term-list,
    .terms-grid,
    .termine-grid,
    .schedule-grid,
    .dauertermine-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Smartphone: eine Spalte */
@media (max-width: 560px) {
    .term-list,
    .terms-grid,
    .termine-grid,
    .schedule-grid,
    .dauertermine-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Terminbilder innerhalb der Karten begrenzen */
.term-card img,
.term-list img,
.terms-grid img,
.termine-grid img,
.schedule-grid img,
.dauertermine-grid img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1rem;
}

