/* ============================================================
   Union Wallenried – Designsystem
   Inspiriert von Apple-Style: schlicht, klar, viel Weissraum.
   ============================================================ */

:root {
    /* Farbpalette – Hybrid Theme: heller Inhalt + dunkler Hero/Footer */
    --c-bg:           #f6f6f9;     /* Seitenhintergrund: helles Cool-Gray */
    --c-bg-soft:      #ececf0;     /* Leicht erhöhte Sektionen (etwas dunkler) */
    --c-bg-elev:      #ffffff;     /* Karten: reines Weiss, klar erhöht */
    --c-bg-elev-hi:   #ffffff;     /* Karten-Hover: weiss mit Schatten */
    --c-bg-tinted:    #e8eef9;     /* Dezent blaue Akzentsektion */
    --c-bg-dark:      #0a0a0d;     /* Hero / Footer / dramatische Sektionen */
    --c-bg-darker:    #000000;
    --c-text:         #1d1d1f;
    --c-text-muted:   #58585e;
    --c-text-faint:   #86868b;
    --c-text-on-dark: #f5f5f7;
    --c-border:       #cfcfd6;
    --c-border-soft:  #e2e2e8;
    --c-accent:       #2563eb;     /* Lebhaftes Royal-Blau – „happy" + professionell */
    --c-accent-hover: #1d4ed8;
    --c-accent-soft:  #dbe7fe;     /* Light-Blue Tint */
    --c-success:      #2c8a3e;
    --c-danger:       #c0392b;

    /* Subtiler Hover-Hintergrund (dunkel auf hell) */
    --c-hover:        rgba(0, 0, 0, 0.05);

    /* Typografie */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* Abstände (8-pt-Raster) */
    --s-1: 0.25rem;   /*  4px */
    --s-2: 0.5rem;    /*  8px */
    --s-3: 0.75rem;   /* 12px */
    --s-4: 1rem;      /* 16px */
    --s-5: 1.5rem;    /* 24px */
    --s-6: 2rem;      /* 32px */
    --s-7: 3rem;      /* 48px */
    --s-8: 4rem;      /* 64px */
    --s-9: 6rem;      /* 96px */
    --s-10: 8rem;     /* 128px */

    /* Layout */
    --container:      1200px;
    --container-narrow: 820px;
    --nav-height:     78px;
    --radius-sm:      6px;
    --radius:         12px;
    --radius-lg:      18px;

    /* Schatten – fein, auf hellem Grund */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.07);
    --shadow:     0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg:  0 14px 44px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08);

    /* Übergänge */
    --t-fast:  120ms ease;
    --t:       200ms ease;
    --t-slow:  400ms ease;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Reserviert den Scrollbalken-Platz immer, damit Seiten ohne Scrollbalken
       nicht horizontal verschoben aussehen. */
    scrollbar-gutter: stable;
}
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-accent-hover); }
:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip-Link (Barrierefreiheit) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
    padding: var(--s-3) var(--s-4);
    z-index: 9999;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--c-text-on-dark); }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { margin: 0 0 var(--s-4); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 var(--s-4); }
.lead { font-size: 1.2rem; color: var(--c-text-muted); max-width: 60ch; }
small, .small { font-size: 0.875rem; }
.text-muted { color: var(--c-text-muted); }
.text-center { text-align: center; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--s-5);
    padding-right: var(--s-5);
}
.container-narrow { max-width: var(--container-narrow); }

section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
@media (max-width: 768px) {
    section { padding-top: var(--s-7); padding-bottom: var(--s-7); }
}

.section-dark    { background: var(--c-bg-dark);  color: var(--c-text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .text-muted { color: #a1a1a6; }
.section-soft    { background: var(--c-bg-soft); }
.section-tinted  { background: var(--c-bg-tinted); }
.section-accent {
    background: linear-gradient(135deg, var(--c-accent) 0%, #1a3d80 100%);
    color: #fff;
}
.section-accent h1, .section-accent h2, .section-accent h3 { color: #fff; }
.section-accent .text-muted { color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 0.7rem 1.4rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    border: 1.5px solid transparent;
    transition: all var(--t);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
}
.btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.btn-primary:hover {
    background: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--c-accent);
    border-color: var(--c-accent);
}
.btn-ghost:hover {
    background: var(--c-accent-soft);
    color: var(--c-accent-hover);
}
.btn-on-dark {
    background: #fff;
    color: var(--c-bg-dark);
    border-color: #fff;
}
.btn-on-dark:hover { background: #f0f0f0; color: #000; transform: translateY(-1px); }
.btn-on-dark-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-on-dark-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

.btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--c-border-soft);
    height: var(--nav-height);
    transition: transform var(--t);
}
.nav-inner {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--s-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--c-text);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--c-text); }
.nav-brand img { height: 52px; width: auto; transition: transform var(--t); }
.nav-brand:hover img { transform: scale(1.04); }
@media (max-width: 600px) {
    .nav-brand span { display: none; } /* nur Logo auf sehr kleinen Bildschirmen */
    .nav-brand img { height: 44px; }
}

.nav-list {
    display: flex;
    gap: var(--s-1);
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list a {
    color: var(--c-text);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all var(--t);
}
.nav-list a:hover { background: var(--c-hover); color: var(--c-text); }
.nav-list a.is-active { color: var(--c-accent); font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }
.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: var(--c-text-muted);
    font-size: 0.9rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    transition: all var(--t);
    font-weight: 500;
    line-height: 1;
}
.nav-lang:hover { background: var(--c-hover); color: var(--c-text); border-color: var(--c-text-muted); }
.nav-lang img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    display: block;
}
.nav-mobile-lang .nav-lang { font-size: 1rem; padding: 0.6rem 0.9rem; }
.nav-mobile-lang .nav-lang img { width: 26px; height: 18px; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--c-text);
}
.nav-toggle:hover { background: var(--c-hover); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav.is-open .nav-toggle .icon-open { display: none; }
.nav.is-open .nav-toggle .icon-close { display: block; }

/* Mobile-Menü */
@media (max-width: 900px) {
    .nav-list, .nav-lang-wrap { display: none; }
    .nav-toggle { display: inline-flex; }

    .nav.is-open {
        background: var(--c-bg);
        backdrop-filter: none;
    }
    .nav-mobile-panel {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-border-soft);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-slow);
    }
    .nav.is-open .nav-mobile-panel {
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }
    .nav-mobile-panel ul {
        list-style: none;
        margin: 0;
        padding: var(--s-3);
    }
    .nav-mobile-panel a {
        display: block;
        padding: var(--s-4);
        color: var(--c-text);
        font-size: 1.1rem;
        border-radius: var(--radius-sm);
        font-weight: 500;
    }
    .nav-mobile-panel a:hover { background: var(--c-bg-soft); }
    .nav-mobile-panel a.is-active { color: var(--c-accent); }
    .nav-mobile-lang {
        padding: var(--s-3) var(--s-4) var(--s-5);
        border-top: 1px solid var(--c-border-soft);
        margin-top: var(--s-3);
    }
}
@media (min-width: 901px) {
    .nav-mobile-panel { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
    overflow: hidden;
    padding: var(--s-9) 0 var(--s-9);
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-5);
}
.hero-logo {
    height: 96px;
    width: auto;
    margin: 0 auto var(--s-5);
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}
.hero h1 {
    color: #fff;
    margin-bottom: var(--s-4);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 700;
}
.hero-subtitle {
    color: #d2d2d7;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    max-width: 38rem;
    margin: 0 auto var(--s-6);
}
.hero .btn-row { justify-content: center; }

.hero-compact {
    padding: var(--s-7) 0 var(--s-7);
    text-align: center;
}
.hero-compact h1 { margin-bottom: var(--s-3); }
.hero-compact .hero-subtitle { margin-bottom: 0; }

/* ---------- Card-Grid ---------- */
.grid {
    display: grid;
    gap: var(--s-5);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--c-bg-elev);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-border);
    background: var(--c-bg-elev-hi);
}
.card-img {
    aspect-ratio: 16 / 9;
    background: var(--c-bg-soft);
    object-fit: cover;
    width: 100%;
}
.card-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.85rem; color: var(--c-text-muted); margin-bottom: var(--s-2); text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--c-text-muted); margin-bottom: var(--s-4); }
.card-footer { margin-top: auto; }
.card a.card-link { color: var(--c-accent); font-weight: 500; }

a.card { color: inherit; }
a.card:hover h3 { color: var(--c-accent); }

/* Quick-Links auf Home */
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 800px) { .quick-links { grid-template-columns: 1fr; } }
.quick-link {
    padding: var(--s-6);
    background: var(--c-bg-elev);
    border-radius: var(--radius);
    border: 1px solid var(--c-border-soft);
    color: var(--c-text);
    transition: all var(--t);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.quick-link::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.quick-link:hover { color: var(--c-text); border-color: var(--c-accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-link:hover::before { transform: scaleX(1); }
.quick-link h3 { margin: 0; }
.quick-link p { margin: 0; color: var(--c-text-muted); }
.quick-link .arrow { color: var(--c-accent); font-weight: 600; margin-top: auto; font-size: 1.1rem; transition: transform var(--t); }
.quick-link:hover .arrow { transform: translateX(4px); }

/* Section-Header */
.section-header { margin-bottom: var(--s-7); }
.section-header.with-action { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- Inhalte (Prose) ---------- */
.prose { max-width: 65ch; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: var(--s-6); margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }

/* ---------- Archiv (News + andere Listen) ---------- */
.archive {
    margin-top: var(--s-5);
}
.archive[hidden] { display: none; }
.archive-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    border-bottom: 1px solid var(--c-border-soft);
    margin-bottom: var(--s-7);
    padding-bottom: var(--s-1);
}
.archive-tab {
    background: transparent;
    border: 0;
    padding: var(--s-3) var(--s-4);
    color: var(--c-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t);
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.archive-tab:hover { color: var(--c-text); background: var(--c-hover); }
.archive-tab.is-active {
    color: var(--c-accent);
    border-bottom-color: var(--c-accent);
}
.archive-content[hidden] { display: none; }

/* Toggle-Button: nur eines der beiden Labels anzeigen */
[data-archive-toggle] .archive-hide-label { display: none; }
[data-archive-toggle][aria-expanded="true"] .archive-show-label { display: none; }
[data-archive-toggle][aria-expanded="true"] .archive-hide-label { display: inline; }

/* ---------- News-Artikel ---------- */
.news-list { display: flex; flex-direction: column; gap: var(--s-9); }
.news-article {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
    scroll-margin-top: calc(var(--nav-height) + var(--s-4));
}
.news-article-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.news-article-meta {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.news-article h2 { margin: var(--s-2) 0 var(--s-3); }
.news-article-body { font-size: 1.075rem; line-height: 1.65; color: var(--c-text); }
.news-article-body p { margin-bottom: var(--s-4); }

/* ---------- Disziplin-Pills ---------- */
.disc-pill {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 980px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    white-space: nowrap;
}

/* ---------- Termin-Liste (Jahresprogramm) ---------- */
.schedule {
    border-top: 1px solid var(--c-border-soft);
}
.schedule-row {
    display: grid;
    grid-template-columns: 130px 1fr 180px;
    gap: var(--s-5);
    padding: var(--s-5) var(--s-3);
    border-bottom: 1px solid var(--c-border-soft);
    align-items: start;
    transition: background var(--t);
}
.schedule-row:hover { background: var(--c-hover); }
.schedule-date {
    font-weight: 600;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}
.schedule-date small {
    display: block;
    font-weight: 400;
    color: var(--c-text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}
.schedule-title { font-weight: 500; }
.schedule-meta { color: var(--c-text-muted); font-size: 0.9rem; }
.schedule-place { color: var(--c-text-muted); font-size: 0.9rem; text-align: right; }
.schedule-month-header {
    padding: var(--s-5) 0 var(--s-2);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: -0.01em;
    border-bottom: 2px solid var(--c-accent);
    margin-top: var(--s-6);
}
.schedule-month-header:first-of-type { margin-top: 0; }
@media (max-width: 700px) {
    .schedule-row { grid-template-columns: 1fr; gap: var(--s-1); padding: var(--s-4) 0; }
    .schedule-place { text-align: left; }
}

/* ---------- PDF-Embed (responsiv) ---------- */
.pdf-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 90vh;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border-soft);
    box-shadow: var(--shadow);
}
.pdf-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 700px) {
    .pdf-embed { aspect-ratio: 3 / 4; }
}

/* ---------- Tabelle / Liste-Resultate ---------- */
.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    align-items: center;
    margin-bottom: var(--s-5);
}
.results-toolbar select, .results-toolbar input {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-bg-elev);
    font: inherit;
    color: var(--c-text);
    cursor: pointer;
}
.results-toolbar select:hover { border-color: var(--c-text-muted); }
.results-toolbar select:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.results-toolbar label { font-size: 0.9rem; color: var(--c-text-muted); margin-right: var(--s-2); }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: var(--s-4);
    align-items: center;
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--c-border-soft);
}
/* Kein Hover-Effekt auf der ganzen Zeile – nur der PDF-Button reagiert */
.result-item .btn {
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.result-item .btn-ghost:hover {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
    transform: translateY(-1px);
}
.result-date { color: var(--c-text-muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.result-title { font-weight: 500; }
.result-disc { color: var(--c-text-muted); font-size: 0.85rem; }
@media (max-width: 700px) {
    .result-item { grid-template-columns: 1fr; gap: var(--s-1); padding: var(--s-4) 0; }
}

/* ---------- Galerie ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--s-4);
}
.gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--c-bg-soft);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
    position: relative;
}
.gallery a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.gallery a {
    outline: 2px solid transparent;
    outline-offset: 0;
}
.gallery a:hover { outline-color: var(--c-accent); }
.gallery a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--t);
}
.gallery a:hover::after { opacity: 1; }
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.gallery a:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.94);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9000;
    padding: var(--s-5);
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border: 0;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--t), transform var(--t);
}
.lightbox-close {
    top: var(--s-5);
    right: var(--s-5);
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    line-height: 1;
}
.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    backdrop-filter: blur(10px);
}
.lightbox-prev { left: var(--s-5); }
.lightbox-next { right: var(--s-5); }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-counter {
    position: absolute;
    bottom: var(--s-5);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .lightbox-nav { width: 44px; height: 44px; }
    .lightbox-prev { left: var(--s-2); }
    .lightbox-next { right: var(--s-2); }
}

/* ---------- Vereinsseite (Vorstand-Karten, Sub-Nav, Buvette-Features) ---------- */
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    justify-content: center;
    padding: var(--s-3) 0 var(--s-2);
    border-bottom: 1px solid var(--c-border-soft);
}
.subnav a {
    color: var(--c-text-muted);
    padding: var(--s-2) var(--s-4);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--t);
}
.subnav a:hover { background: var(--c-hover); color: var(--c-accent); }

.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
}
@media (max-width: 700px) { .board-grid { grid-template-columns: 1fr; } }
.board-card {
    padding: var(--s-5) var(--s-6);
    background: var(--c-bg-elev);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}
.board-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--c-accent);
}
.board-role {
    color: var(--c-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--s-1);
    font-weight: 500;
}
.board-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--c-text);
}

.feature-card {
    padding: var(--s-6);
    background: var(--c-bg-elev);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--c-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--t-slow);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleY(1); }
.feature-card h3 { margin: 0 0 var(--s-2); font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }

/* ---------- Reglement-Liste ---------- */
.regl-group {
    margin-bottom: var(--s-7);
}
.regl-group h3 {
    color: var(--c-text);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-2);
    border-bottom: 2px solid var(--c-accent);
    display: inline-block;
}
.regl-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.regl-list li {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--c-border-soft);
}
.regl-list li:last-child { border-bottom: 0; }
.regl-list .regl-title { flex: 1; }
.regl-list .regl-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
    padding: var(--s-6);
    background: var(--c-bg-elev);
    border-radius: var(--radius);
    border: 1px solid var(--c-border-soft);
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c-accent); }
.contact-card h3 { margin-bottom: var(--s-1); }
.contact-card .role { color: var(--c-text-muted); font-size: 0.95rem; margin-bottom: var(--s-4); display: block; }
.contact-card a { display: inline-block; padding: 0.2rem 0; word-break: break-word; }

/* ---------- Footer ---------- */
.footer {
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
    padding: var(--s-8) 0 var(--s-5);
    margin-top: var(--s-9);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-5);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--s-7);
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; gap: var(--s-5); } }
.footer h4 { color: #fff; margin-bottom: var(--s-3); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer p, .footer a, .footer li { color: #a1a1a6; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: var(--s-2); }
.footer-bottom {
    max-width: var(--container);
    margin: var(--s-7) auto 0;
    padding: var(--s-5) var(--s-5) 0;
    border-top: 1px solid #38383a;
    color: #6e6e73;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-3);
}
.footer-bottom a { color: #6e6e73; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 404 ---------- */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--s-8) var(--s-5);
}

/* ---------- Animationen (subtil) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .fade-up { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
    .fade-up.is-in { opacity: 1; transform: translateY(0); }
}

/* ---------- Print ---------- */
@media print {
    .nav, .footer, .nav-toggle, .lightbox, .btn { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
