/* ==========================================================================
   Hundefreunde Hergershausen – Stylesheet
   Farben und Schriften sind aus der Originalwebsite (Avada-Theme) übernommen:
   --awb-color1 #ffffff, --awb-color2 #f4f5fa, --awb-color3 #e1e1e1,
   --awb-color4/6 #0157a3 (Blau), --awb-color5 #007c31 (Grün),
   --awb-color7 #3d436d, --awb-color8 #22253d (Text), Button "Absenden" #f3b544.
   Schriften: Kumbh Sans 700 (Überschriften), Mulish (Fließtext) – lokal eingebunden.
   ========================================================================== */

@font-face { font-family: "Mulish"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/mulish-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/mulish-latin-ext.woff2") format("woff2"); 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: "Mulish"; font-style: italic; font-weight: 200 1000; font-display: swap; src: url("../fonts/mulish-italic-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/kumbh-sans-700-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/kumbh-sans-700-latin-ext.woff2") format("woff2"); 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; }

:root {
    /* Vereinsfarben (Original) */
    --color-primary: #007c31;          /* Vereinsgrün */
    --color-primary-dark: #00642a;     /* abgedunkeltes Vereinsgrün für Hover/Fokus */
    --color-secondary: #0157a3;        /* Vereinsblau (Logo, Links) */
    --color-secondary-dark: #01467f;
    --color-accent: #f3b544;           /* Goldgelb ("Absenden") */
    --color-accent-dark: #e9a422;
    --color-on-accent: #170641;
    --color-background: #ffffff;
    --color-surface: #f4f5fa;
    --color-surface-strong: #e9ebf4;
    --color-text: #22253d;
    --color-text-muted: #3d436d;
    --color-border: #e1e1e1;
    --color-success: #12b878;
    --color-danger: #c22f4f;

    --font-heading: "Kumbh Sans", Arial, Helvetica, sans-serif;
    --font-body: "Mulish", Arial, Helvetica, sans-serif;

    --container: 1240px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(34, 37, 61, .06), 0 1px 3px rgba(34, 37, 61, .08);
    --shadow: 0 6px 18px rgba(34, 37, 61, .09), 0 2px 6px rgba(34, 37, 61, .06);
    --shadow-lg: 0 18px 40px rgba(34, 37, 61, .16);
    --space-section: clamp(3rem, 7vw, 5.5rem);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;           /* 17px wie im Original */
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-background);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--color-text); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--color-primary); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .hp-field {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--color-text); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
main:focus { outline: none; }

.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.15em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: .7em 1.4em;
    border: 2px solid transparent; border-radius: 999px;
    font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
    cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
/* Wie im Original: grüne Buttons, beim Hover blau */
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-secondary); color: #fff; }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { background: var(--color-accent-dark); color: var(--color-on-accent); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: currentColor; }
.btn--ghost:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-surface); color: var(--color-primary-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--outline-light:hover { background: #fff; color: var(--color-primary); }
.btn--on-green { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--on-green:hover { background: #fff; color: var(--color-primary); }
.btn--hero { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .75); backdrop-filter: blur(4px); min-height: 44px; padding: .55em 1.15em; }
.btn--hero:hover { background: #fff; color: var(--color-primary); }
.btn--small { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: #a3203d; color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.pill { display: inline-block; margin: 0; padding: .15em .7em; border-radius: 999px; background: var(--color-surface-strong); color: var(--color-text-muted); font-size: .8rem; font-weight: 700; line-height: 1.6; }
.pill--live { background: var(--color-accent); color: var(--color-on-accent); }
.notice { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--color-primary); color: #fff; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 2rem; padding-block: .45rem; }
.topbar a, .topbar span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .icon { opacity: .9; }
.topbar__social { gap: .25rem !important; }
.topbar__social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar__social a:hover { background: rgba(255, 255, 255, .18); }
.topbar__social .icon { width: 1.15em; height: 1.15em; }
@media (max-width: 699px) {
    .topbar__address { display: none !important; }
    .topbar__inner { gap: .25rem 1.25rem; font-size: .8rem; }
}
@media (max-width: 419px) {
    .topbar a[href^="mailto"] span { display: none; }
    .topbar a[href^="mailto"]::after { content: "E-Mail"; }
}

/* Kein backdrop-filter: er würde das fixierte Mobilmenü im Header "einsperren". */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow); border-color: var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { width: 180px; height: auto; }
@media (min-width: 1100px) { .brand img { width: 230px; } :root { --header-h: 88px; } }
@media (max-width: 359px) {
    .brand img { width: 150px; }
    .site-header__inner { gap: .5rem; }
    .nav-toggle { padding-inline: .75rem; }
}

.nav-toggle, .nav-close {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem 1rem;
    border: 2px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--color-text);
    font: 700 1rem var(--font-body); cursor: pointer;
}
.nav-toggle:hover, .nav-close:hover { border-color: var(--color-primary); color: var(--color-primary); }
.nav-toggle .icon, .nav-close .icon { width: 1.4em; height: 1.4em; }

.main-nav__list { list-style: none; margin: 0; padding: 0; }
.main-nav__link { text-decoration: none; color: var(--color-text); font-weight: 600; }
.main-nav__item.is-active > .main-nav__link { color: var(--color-primary); }
.submenu { list-style: none; margin: 0; padding: 0; }
.submenu a { display: block; text-decoration: none; color: var(--color-text); font-weight: 600; }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--color-primary); }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; border-radius: 6px; }
.submenu-toggle .icon { transition: transform .2s var(--ease); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Mobil: ausklappbares Menü als Seitenpanel */
@media (max-width: 1099px) {
    .main-nav__label--icon { display: inline; }
    .main-nav__icon { display: none; }
    .js .main-nav {
        position: fixed; inset: 0 0 0 auto; z-index: 101; width: min(88vw, 380px);
        display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-lg);
        transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s;
        overflow-y: auto; overscroll-behavior: contain;
    }
    .js .nav-open .main-nav { transform: none; visibility: visible; transition: transform .3s var(--ease); }
    .main-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
    .main-nav__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
    .main-nav__list { padding: .5rem 0 2rem; }
    .main-nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--color-border); }
    .main-nav__link { flex: 1; display: flex; align-items: center; min-height: 56px; padding: .5rem 1.25rem; font-size: 1.08rem; }
    .main-nav__item.is-active > .main-nav__link { box-shadow: inset 4px 0 0 var(--color-primary); background: rgba(0, 124, 49, .05); }
    .submenu-toggle { width: 56px; height: 56px; border-left: 1px solid var(--color-border); border-radius: 0; }
    .submenu-toggle .icon { width: 1.4em; height: 1.4em; }
    .submenu { flex-basis: 100%; background: var(--color-surface); }
    .js .submenu { display: none; }
    .js .submenu.is-open { display: block; }
    .submenu a { min-height: 52px; display: flex; align-items: center; padding: .5rem 1.25rem .5rem 2.25rem; border-top: 1px solid var(--color-border); }
    .nav-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(34, 37, 61, .45); opacity: 0; transition: opacity .3s var(--ease); }
    .nav-open .nav-backdrop { opacity: 1; }
    .nav-open .site-header { z-index: 102; } /* Panel über dem Abdunkler */
    .nav-open { overflow: hidden; }
    /* Ohne JavaScript: Menü unter dem Header vollständig anzeigen */
    .no-js .nav-toggle, .no-js .main-nav__head, .no-js .submenu-toggle { display: none; }
    .no-js .site-header__inner { flex-wrap: wrap; }
    .no-js .main-nav { flex-basis: 100%; }
}
/* Desktop: horizontale Navigation mit Dropdown */
@media (min-width: 1100px) {
    .nav-toggle, .main-nav__head, .nav-backdrop { display: none !important; }
    .main-nav__list { display: flex; align-items: center; gap: .1rem; }
    .main-nav__item { position: relative; display: flex; align-items: center; }
    .main-nav__link { position: relative; display: flex; align-items: center; min-height: 44px; padding: .4rem .62rem; font-size: 1rem; white-space: nowrap; border-radius: 8px; transition: color .2s, background-color .2s; }
    .site-header__inner { gap: 1rem; }
    .main-nav__link::after { content: ""; position: absolute; left: .62rem; right: .62rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--color-primary); transform: scaleX(0); transition: transform .25s var(--ease); }
    .main-nav__link:hover { color: var(--color-secondary); }
    .main-nav__link:hover::after, .main-nav__item.is-active > .main-nav__link::after { transform: scaleX(1); }
    .main-nav__icon { width: 1.2em; height: 1.2em; }
    @media (max-width: 1319px) {
        .brand img { width: 190px; }
        .main-nav__link { padding-inline: .45rem; font-size: .95rem; }
        .main-nav__link::after { left: .45rem; right: .45rem; }
    }
    .main-nav__label--icon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .has-children > .main-nav__link { padding-right: .2rem; }
    .has-children > .main-nav__link::after { right: .2rem; }
    .submenu-toggle { width: 28px; height: 36px; }
    .submenu {
        position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px; padding: .4rem;
        background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s var(--ease), visibility 0s linear .18s;
    }
    .submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
    .has-children:hover > .submenu, .has-children:focus-within > .submenu, .submenu.is-open {
        opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease);
    }
    .submenu a { padding: .6rem .9rem; border-radius: 8px; }
    .submenu a:hover { background: var(--color-surface); }
}

/* ---------- Pinsel-Kante (Originalgrafik der Website) ---------- */
.brush-edge {
    position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(28px, 5vw, 64px); z-index: 2;
    background: #fff;
    -webkit-mask: url("../img/divider-brush.svg") center bottom / 100% 100% no-repeat;
    mask: url("../img/divider-brush.svg") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}
.brush-edge--top { top: -1px; bottom: auto; transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: #2d3b2a; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, .25) 100%); }
.hero__inner { display: grid; gap: 2rem; align-items: center; min-height: clamp(260px, 38vw, 400px); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero--large .hero__inner { min-height: clamp(420px, 52vw, 560px); }
.hero__text { text-align: center; }
.hero__title { color: #fff; margin-bottom: .2em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero__subtitle { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.75rem); line-height: 1.3; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.hero__anchors ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; padding: 0; margin: 1.75rem 0 0; }
@media (min-width: 960px) {
    .hero--with-aside .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: 3rem; }
}

/* ---------- Nächste Veranstaltung ---------- */
.next-event { background: #fff; color: var(--color-text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.1rem; text-align: left; width: 100%; max-width: 440px; margin-inline: auto; }
.next-event__eyebrow { display: flex; align-items: center; gap: .45em; margin: 0 0 .8rem; color: var(--color-primary); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.next-event__link { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); }
.next-event__image { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; margin-bottom: 1rem; background: var(--color-surface); }
.next-event__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.next-event__link:hover .next-event__image img { transform: scale(1.04); }
.next-event__body { display: flex; gap: 1rem; align-items: flex-start; }
.next-event__text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.next-event__date { font-weight: 700; font-size: .95rem; color: var(--color-text-muted); }
.next-event__time { display: inline-flex; align-items: center; gap: .4em; font-size: .95rem; color: var(--color-text-muted); }
.next-event__title { font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--color-secondary); margin: .3rem 0 0; }
.next-event__link:hover .next-event__title { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 2px; }
.next-event__all { margin-top: 1.1rem; width: 100%; }
.next-event .pill { align-self: flex-start; }

/* Datumskachel */
.date-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.4rem; padding: .45rem .3rem .5rem; border-radius: var(--radius); background: var(--color-primary); color: #fff; line-height: 1.1; text-align: center; }
.date-badge__month { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.date-badge__day { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; line-height: 1.05; }
.date-badge__weekday { font-size: .78rem; font-weight: 700; opacity: .9; }
.date-badge--small { width: 3.8rem; }
.date-badge--small .date-badge__day { font-size: 1.6rem; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-section); }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-heading { position: relative; padding-bottom: .55rem; margin-bottom: 1.6rem; }
.section-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--color-primary); }
.section-heading--small { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.section-head { margin-bottom: 1.75rem; }
.section-head .section-heading { margin-bottom: .9rem; }
.section-head p { margin: 0; color: var(--color-text-muted); }
.section-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.center { text-align: center; }
.center .section-heading::after { left: 50%; transform: translateX(-50%); }

.prose { max-width: 70ch; overflow-wrap: break-word; hyphens: auto; }
.prose a { overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: var(--radius); }
.lead { font-size: 1.15rem; color: var(--color-text-muted); }

/* Willkommen + Neues (zweispaltig wie im Original) */
.welcome { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .welcome { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; } }
.welcome__text { font-size: 1.1rem; }
.welcome__highlight { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--color-primary); margin-top: 1.5em; }
.welcome__signature { font-weight: 700; color: var(--color-text-muted); }
.mail-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; word-break: break-all; }
.welcome__news { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--color-surface); }
.news-stack { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }

/* ---------- Karten ---------- */
.news-card, .event-card, .course-card, .gallery-card, .sponsor-card, .download-card, .person-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.news-card:hover, .event-card:hover, .course-card:hover, .gallery-card:hover, .sponsor-card:hover, .download-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card__media, .event-card__media, .gallery-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-surface-strong); }
.news-card__media img, .event-card__media img, .gallery-card__media img, .course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover img, .event-card:hover .event-card__media img, .gallery-card:hover img, .course-card:hover img { transform: scale(1.04); }
.news-card__body { padding: 1.1rem 1.25rem 1.25rem; }
.news-card__meta { margin: 0 0 .35rem; font-size: .85rem; color: var(--color-text-muted); }
.news-card__title { font-size: 1.15rem; margin: 0 0 .5rem; }
.news-card__title a, .event-card__title a, .gallery-card__title a { color: var(--color-text); text-decoration: none; }
.news-card__title a:hover, .event-card__title a:hover, .gallery-card__title a:hover { color: var(--color-secondary); text-decoration: underline; }
.news-card__excerpt { font-size: .95rem; margin-bottom: .75rem; }
.news-card__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; font-size: .95rem; }
.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news-grid .news-card__title { font-size: 1.3rem; }

/* Veranstaltungskarten */
.event-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.event-card { display: flex; flex-direction: column; }
.event-card__body { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.event-card__text { min-width: 0; flex: 1; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: 0 0 .25rem; font-size: .88rem; color: var(--color-text-muted); }
.event-card__meta span { display: inline-flex; align-items: center; gap: .35em; }
.event-card__title { font-size: 1.15rem; margin: 0 0 .35rem; }
.event-card__location { display: flex; gap: .4em; align-items: baseline; font-size: .92rem; color: var(--color-text-muted); margin: 0 0 .4rem; }
.event-card__excerpt { font-size: .95rem; margin: 0 0 .6rem; }
.event-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--color-primary); background: linear-gradient(135deg, var(--color-surface), var(--color-surface-strong)); }
.event-card__placeholder .icon { width: 3rem; height: 3rem; opacity: .5; }
.event-card.is-past { opacity: .78; }
.event-card.is-past .date-badge { background: var(--color-text-muted); }
.event-card--list { flex-direction: column; }
@media (min-width: 720px) {
    .event-card--list { flex-direction: row; }
    .event-card--list .event-card__media { flex: 0 0 min(34%, 320px); aspect-ratio: auto; min-height: 190px; }
}
.event-card--compact .event-card__media { aspect-ratio: 16 / 8; }
.event-list { display: grid; gap: 1.25rem; }
.event-month-heading { font-size: 1.15rem; color: var(--color-text-muted); margin: 1.5rem 0 0; padding-bottom: .4rem; border-bottom: 2px solid var(--color-border); }
.event-month-heading:first-child { margin-top: 0; }

/* Kurskarten (grün wie im Original) */
.course-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.course-card { display: flex; flex-direction: column; background: var(--color-primary); color: #fff; }
.course-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.course-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.course-card__title { font-size: 1.55rem; margin: 0 0 .6rem; }
.course-card__title a { color: #fff; text-decoration: none; }
.course-card__title a:hover { text-decoration: underline; }
.course-card p { flex: 1; font-size: 1rem; }
@media (min-width: 640px) and (max-width: 1023px) {
    .course-grid { grid-template-columns: 1fr 1fr; }
    .course-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
    .course-card:last-child:nth-child(odd) .course-card__media { flex: 0 0 45%; aspect-ratio: auto; }
}

/* ---------- Kontakt-/Anfragebereich (grün wie im Original) ---------- */
.contact-section { position: relative; background: var(--color-primary); color: #fff; padding-block: var(--space-section); }
.contact-section h2, .contact-section h3, .contact-section h4 { color: #fff; }
.contact-section a { color: #fff; }
.contact-section__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-section__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; } }
.contact-section__intro { font-size: 1.08rem; }
.contact-section__intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.contact-section__signature { font-weight: 700; }
.contact-section__form { background: #fff; color: var(--color-text); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-lg); }
.contact-section__form a { color: var(--color-secondary); }

/* ---------- Formulare ---------- */
.form-grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid__full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.req { color: var(--color-danger); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="password"], .field input[type="date"], .field input[type="time"], .field input[type="search"], .field input[type="month"], .field input[type="file"], .field select, .field textarea {
    width: 100%; min-height: 48px; padding: .65rem .9rem;
    font: 1rem/1.4 var(--font-body); color: var(--color-text);
    background: #fff; border: 1.5px solid #c9ccd6; border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(1, 87, 163, .22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-danger); }
.field__error { margin: 0; color: var(--color-danger); font-size: .88rem; font-weight: 700; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.field--check input { width: 22px; height: 22px; margin: .2rem 0 0; flex: none; accent-color: var(--color-primary); }
.field--check label { flex: 1; font-weight: 400; font-size: .9rem; line-height: 1.6; }
.field--check .field__error { flex-basis: 100%; }
.form-hint { font-size: .88rem; color: var(--color-text-muted); margin: 0 0 1rem; }
.contact-form .btn--block { margin-top: 1.5rem; font-size: 1.06rem; border-radius: var(--radius-sm); }
.form-status { display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-status .icon { margin-top: .25em; }
.form-status--success { background: rgba(18, 184, 120, .12); color: #0b6d47; border: 1px solid rgba(18, 184, 120, .4); }
.form-status--error { background: rgba(219, 75, 104, .1); color: #9b1c38; border: 1px solid rgba(219, 75, 104, .4); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Seitenkopf ohne Bild ---------- */
.page-title { background: var(--color-surface); padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--color-border); }
.page-title h1 { margin: 0; }
.page-title__intro { margin: .75rem 0 0; color: var(--color-text-muted); font-size: 1.1rem; max-width: 70ch; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0 0 .75rem; font-size: .9rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-text-muted); }

/* ---------- Inhaltsabschnitte Ausbildungen/Sportarten ---------- */
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.feature + .feature { margin-top: var(--space-section); padding-top: var(--space-section); border-top: 1px solid var(--color-border); }
@media (min-width: 900px) {
    .feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .feature--reverse .feature__media { order: -1; }
}
.feature__media { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.feature__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 899px) { .feature__media { position: static; } }
.feature__text h2 { margin-top: 0; }
.info-box { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--color-surface); border-left: 5px solid var(--color-primary); }
.info-box > :last-child { margin-bottom: 0; }
.qa { display: grid; gap: .9rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.qa li { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--color-surface); }
.qa strong { display: block; color: var(--color-primary); font-family: var(--font-heading); font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--color-primary); margin-top: .35em; stroke-width: 3; }

/* ---------- Über uns ---------- */
.board-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; padding: 0; margin: 0; }
.person-card { text-align: center; padding: 1.5rem 1rem 1.25rem; border: 1px solid var(--color-border); box-shadow: none; }
.person-card img { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--color-primary); }
.person-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.12rem; margin: 0; }
.person-card__role { margin: .15rem 0 0; color: var(--color-primary); font-weight: 700; font-size: .95rem; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 2rem; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--color-border); }
.timeline__item { position: relative; padding-bottom: 2.5rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.95rem; top: .35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--color-primary); }
.timeline__item h3 { margin-bottom: .6rem; }
.timeline__images { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); margin-top: 1rem; list-style: none; padding: 0; }
.timeline__images img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.timeline__images a { display: block; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) {
    .timeline__content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; }
    .timeline__images { margin-top: 0; align-content: start; }
}

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery-card { position: relative; }
.gallery-card__media { aspect-ratio: 4 / 3; }
.gallery-card__body { padding: 1rem 1.25rem 1.2rem; }
.gallery-card__title { font-size: 1.2rem; margin: 0 0 .2rem; }
.gallery-card__title a::after { content: ""; position: absolute; inset: 0; }
.gallery-card__count { margin: 0; color: var(--color-text-muted); font-size: .9rem; display: inline-flex; gap: .4em; align-items: center; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; } }
.gallery__item a { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--color-surface-strong); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease), opacity .3s; }
.gallery__item a:hover img { transform: scale(1.06); }
.gallery__item a:focus-visible { outline-offset: 3px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: rgba(15, 17, 30, .94); color: #fff; padding: max(.75rem, env(safe-area-inset-top)) .75rem max(.75rem, env(safe-area-inset-bottom)); border: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(15, 17, 30, .94); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox__counter { font-weight: 700; font-size: .95rem; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: .5rem 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox__caption { text-align: center; font-size: .92rem; opacity: .9; margin: .25rem 0 0; }
.lightbox__btn { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: .25rem; }
.lightbox__nav--next { right: .25rem; }
.lightbox__actions { display: flex; gap: .5rem; align-items: center; }
.lightbox__actions a { color: #fff; font-size: .9rem; }

/* ---------- Downloads & Sponsoren ---------- */
.download-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.download-card { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; border: 1px solid var(--color-border); box-shadow: none; }
.download-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(0, 124, 49, .1); color: var(--color-primary); }
.download-card__icon .icon { width: 28px; height: 28px; }
.download-card h2 { font-size: 1.3rem; margin: 0; }
.download-card h2 a { color: var(--color-text); text-decoration: none; }
.download-card h2 a::after { content: ""; position: absolute; inset: 0; }
.download-card__meta { margin: 0; color: var(--color-text-muted); font-size: .9rem; }
.download-card__action { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--color-primary); }
.sponsor-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.sponsor-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--color-border); box-shadow: none; }
.sponsor-card__logo { display: grid; place-items: center; height: 170px; padding: 1.5rem; background: #fff; border-bottom: 1px solid var(--color-border); }
.sponsor-card__logo img { max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.sponsor-card__body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.sponsor-card h2 { font-size: 1.2rem; margin: 0; }
.sponsor-card h2 a { color: var(--color-text); text-decoration: none; }
.sponsor-card h2 a::after { content: ""; position: absolute; inset: 0; }
.sponsor-card__link { margin-top: auto; display: inline-flex; gap: .4em; align-items: center; font-weight: 700; color: var(--color-primary); }

/* ---------- Kontaktseite ---------- */
.contact-page { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-page { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 3.5rem; align-items: start; } }
.contact-card { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--color-surface); }
.contact-card h2 { font-size: 1.35rem; }
.icon-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.icon-list li { display: flex; gap: .65rem; align-items: center; word-break: break-word; }
.icon-list .icon { color: var(--color-primary); width: 1.25em; height: 1.25em; }
.contact-page__form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }

/* Karte mit Einwilligung */
.map-consent { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; background: #e8ece6 linear-gradient(135deg, rgba(0, 124, 49, .14), rgba(1, 87, 163, .14)); color: var(--color-text); }
.map-consent__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 300px; padding: 1.5rem; text-align: center; font-size: .92rem; }
.map-consent__placeholder p { max-width: 52ch; margin: 0; }
.map-consent__icon { width: 2.6rem; height: 2.6rem; color: var(--color-primary); }
.map-consent__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.map-consent .btn--light { background: var(--color-primary); color: #fff; }
.map-consent .btn--light:hover { background: var(--color-secondary); color: #fff; }
.map-consent .btn--outline-light { color: var(--color-primary); border-color: var(--color-primary); font-size: .9rem; }
.map-consent .btn--outline-light:hover { background: var(--color-primary); color: #fff; }
.map-consent__more { font-size: .85rem; }
.map-consent iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--color-primary); color: rgba(255, 255, 255, .92); margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(4rem, 8vw, 5.5rem) 3rem; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 4rem; } }
.site-footer address { font-size: 1.08rem; line-height: 1.7; }
.site-footer address strong { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; }
.site-footer .icon-list .icon { color: #fff; }
.site-footer__logo { display: inline-block; margin-top: 1rem; border-radius: 8px; }
.site-footer__logo img { width: 240px; border-radius: 8px; }
.site-footer .map-consent { box-shadow: var(--shadow-lg); }
.site-footer__bottom { background: var(--color-text); color: rgba(255, 255, 255, .8); font-size: .9rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1rem; }
.site-footer__bottom a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer__bottom a:hover, .site-footer__bottom a[aria-current] { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
/* Grüner Anfragebereich direkt vor dem grünen Footer: durchgehende Fläche ohne weiße Kante */
main:has(> .contact-section:last-child) + .site-footer .brush-edge--top { display: none; }
main:has(> .contact-section:last-child) + .site-footer .site-footer__grid { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); }

/* ---------- Beiträge ---------- */
.article-head { padding-block: clamp(2rem, 5vw, 3rem) 0; }
.article-head h1 { max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--color-text-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4em; }
.article-cover { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.article-body { margin-inline: auto; font-size: 1.1rem; }
.pager { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text); transition: border-color .2s, box-shadow .2s; }
.pager a:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.pager small { color: var(--color-text-muted); font-weight: 700; }
.pager strong { color: var(--color-secondary); }
.pager__next { text-align: right; }
@media (min-width: 700px) { .pager__next:only-child { grid-column: 2; } }

/* ---------- Veranstaltungskalender ---------- */
.cal-toolbar { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
@media (min-width: 900px) { .cal-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.cal-search { display: flex; gap: .5rem; }
.cal-search .field { flex: 1; }
.cal-search .field label { font-size: .9rem; }
.cal-search .btn { align-self: flex-end; border-radius: var(--radius-sm); }
.cal-views { display: flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); list-style: none; margin: 0; }
.cal-views a { display: inline-flex; align-items: center; gap: .4em; min-height: 42px; padding: .4rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--color-text-muted); font-size: .95rem; }
.cal-views a:hover { color: var(--color-primary); background: #fff; }
.cal-views a[aria-current="page"] { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
@media (max-width: 599px) {
    .cal-views { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 16px; }
    .cal-views a { justify-content: center; flex-direction: column; gap: .1rem; padding: .35rem .2rem; border-radius: 12px; font-size: .85rem; }
    .cal-jump { flex-wrap: wrap; }
}
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.cal-nav__title { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cal-nav__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cal-nav__controls .btn { min-height: 44px; padding: .45em 1em; }
.cal-nav__arrow { width: 44px; padding: 0 !important; }
.cal-jump { display: flex; gap: .5rem; align-items: center; }
.cal-jump input { min-height: 44px; padding: .4rem .6rem; border: 1.5px solid #c9ccd6; border-radius: var(--radius-sm); font: inherit; }
.cal-jump .btn { min-height: 44px; }
.cal-result { margin-bottom: 1rem; color: var(--color-text-muted); }
.cal-subscribe { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--color-surface); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.cal-subscribe strong { display: inline-flex; gap: .45em; align-items: center; }
.cal-subscribe ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.cal-pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* Monatsraster */
.month { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.month th { padding: .7rem .4rem; background: var(--color-surface); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.month td { vertical-align: top; height: 120px; padding: .4rem; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.month tr td:last-child { border-right: 0; }
.month tbody tr:last-child td { border-bottom: 0; }
.month__day { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .3rem; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--color-text); text-decoration: none; }
a.month__day:hover { background: var(--color-surface); color: var(--color-primary); }
.month td.is-other { background: #fafbfd; }
.month td.is-other .month__day { color: #9a9db0; }
.month td.is-today { background: rgba(243, 181, 68, .12); }
.month td.is-today .month__day { background: var(--color-accent); color: var(--color-on-accent); }
.month__events { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .3rem; }
.month__event a { display: block; padding: .3rem .45rem; border-radius: 6px; background: rgba(0, 124, 49, .1); border-left: 3px solid var(--color-primary); color: var(--color-text); text-decoration: none; font-size: .8rem; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.month__event a:hover { background: var(--color-primary); color: #fff; }
.month__event time { display: block; font-weight: 600; font-size: .75rem; color: var(--color-text-muted); }
.month__event a:hover time { color: rgba(255, 255, 255, .85); }
.month__event.is-past a { background: var(--color-surface); border-left-color: #9a9db0; }
/* Mobil: Monatsansicht als Tagesliste ohne horizontales Scrollen */
@media (max-width: 759px) {
    .month, .month tbody, .month tr, .month td { display: block; width: 100%; height: auto; }
    .month thead { display: none; }
    .month { border-radius: var(--radius); }
    .month td { border-right: 0; padding: .6rem .8rem; }
    .month td.is-other, .month td.is-empty { display: none; }
    .month td:not(.has-events):not(.is-today) { display: none; }
    .month__day::before { content: attr(data-weekday); font-weight: 600; margin-right: .35em; }
    .month__day { display: inline-flex; align-items: center; height: auto; min-height: 2rem; padding: .1rem .7rem; }
    .month-empty-mobile { display: block; }
    .month__event a { font-size: .92rem; padding: .5rem .7rem; }
}
@media (min-width: 760px) { .month-empty-mobile { display: none; } }

/* Tagesansicht */
.day-list { display: grid; gap: 1rem; }

/* Fotoansicht */
.photo-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.event-card--photo .event-card__media { aspect-ratio: 4 / 3; }

/* Detailseite */
.event-detail { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .event-detail { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; } }
.event-detail__image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); }
.event-detail__image img { width: 100%; }
.event-facts { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.5rem; border-radius: var(--radius-lg); background: var(--color-surface); }
.event-facts h2 { font-size: 1.25rem; }
.event-facts dl { margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.event-facts dt { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); display: flex; gap: .4em; align-items: center; }
.event-facts dd { margin: .1rem 0 0; font-weight: 600; }
.event-facts .btn { width: 100%; margin-top: .5rem; }
.event-status { display: inline-flex; gap: .5em; align-items: center; padding: .5rem .9rem; border-radius: var(--radius-sm); background: var(--color-surface-strong); font-weight: 700; margin-bottom: 1.25rem; }

/* ---------- Verwaltung ---------- */
.admin-bar { background: var(--color-text); color: #fff; }
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .6rem; }
.admin-bar a { color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.admin-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.admin-table .actions { white-space: nowrap; display: flex; gap: .4rem; }
@media (max-width: 759px) {
    .admin-table thead { display: none; }
    .admin-table tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--color-border); }
    .admin-table td { display: block; border: 0; padding: .15rem 0; }
}
.admin-form { display: grid; gap: 1.1rem; max-width: 820px; }
.admin-form .form-grid { gap: 1.1rem; }
.admin-form fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.25rem 1.25rem; margin: 0; }
.admin-form legend { font-weight: 800; padding: 0 .4rem; }
.field__help { font-size: .85rem; color: var(--color-text-muted); margin: 0; }
.image-preview { max-width: 280px; border-radius: var(--radius); border: 1px solid var(--color-border); }


/* ---------- Einwilligungsdialog (Cookie-Banner) ---------- */
.consent { width: min(640px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--color-text); box-shadow: var(--shadow-lg); overflow: auto; }
.consent:not([open]) { display: none; }
.consent::backdrop { background: rgba(34, 37, 61, .6); backdrop-filter: blur(3px); }
/* Nicht blockierend (Impressum/Datenschutz): unten angedockt */
.consent.is-docked { position: fixed; inset: auto 1rem 1rem auto; margin: 0; z-index: 300; border: 1px solid var(--color-border); }
.consent__inner { padding: clamp(1.25rem, 4vw, 2rem); }
.consent__title { display: flex; align-items: center; gap: .5rem; font-size: 1.4rem; margin-bottom: .75rem; }
.consent__title .icon { color: var(--color-primary); width: 1.3em; height: 1.3em; }
.consent__text { font-size: .95rem; line-height: 1.6; }
.consent__text p { margin-bottom: .75em; }
.consent__details { margin: .5rem 0 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); }
.consent__details summary { cursor: pointer; padding: .75rem 1rem; font-weight: 700; color: var(--color-secondary); }
.consent__details[open] summary { border-bottom: 1px solid var(--color-border); }
.consent__groups { border: 0; margin: 0; padding: .75rem 1rem; display: grid; gap: .9rem; }
.consent__group { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.consent__group input { width: 22px; height: 22px; margin-top: .1rem; flex: none; accent-color: var(--color-primary); }
.consent__group span { display: block; color: var(--color-text-muted); }
.consent__group code { font-size: .85em; }
.consent__actions { display: grid; gap: .6rem; }
@media (min-width: 520px) { .consent__actions { grid-template-columns: 1fr 1fr; } .consent__actions [data-consent-action="save"] { grid-column: 1 / -1; } }
.consent__actions .btn { width: 100%; }
.consent__actions [hidden] { display: none; }
.consent__links { margin: 1rem 0 0; text-align: center; font-size: .88rem; }
/* Schwebender Button unten links zum erneuten Öffnen */
.consent-fab { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; background: var(--color-primary); color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.consent-fab[hidden] { display: none; }
.consent-fab:hover { background: var(--color-secondary); transform: scale(1.06); }
.consent-fab .icon { width: 26px; height: 26px; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .88); cursor: pointer; }
.footer-link-btn:hover { color: #fff; text-decoration: underline; }
.consent-open { overflow: hidden; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .btn:hover, .news-card:hover, .event-card:hover, .course-card:hover, .gallery-card:hover, .sponsor-card:hover, .download-card:hover { transform: none; }
    .news-card:hover img, .event-card:hover img, .gallery-card:hover img, .course-card:hover img, .gallery__item a:hover img, .next-event__link:hover img { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
    .topbar, .site-header, .site-footer, .contact-section, .consent, .consent-fab, .cal-toolbar, .skip-link, .hero__media, .brush-edge { display: none !important; }
    .hero { color: #000; background: none; }
    .hero__title, .hero__subtitle { color: #000; text-shadow: none; }
}
