/* ==========================================================================
   Musikverein Palfau – Design
   Abgeleitet vom Vereinslogo: Grün #487427, Rot #BE3A3C, Weiß; schmale, fette Schrift.
   Farben, Schriften und Abstände zentral als Variablen – für Änderungen nur :root anpassen.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    /* Grün aus dem Logo (#487427) – hell bis dunkel */
    --green-950: #142209;
    --green-900: #1d3110;
    --green-800: #2a4518;
    --green-700: #3b5f20;
    --green-600: #487427;
    --green-300: #a3cf72;
    --green-50: #eef4e7;
    /* Rot aus dem Logo (#BE3A3C) */
    --red: #be3a3c;
    --red-dark: #9a2b2d;
    --red-50: #fbeaea;

    --paper: #f5f6f2;
    --tint: #ebefe4;
    --card: #ffffff;
    --ink: #1a2214;
    --muted: #5d6656;
    --line: #dfe4d6;

    --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(29, 49, 16, .06), 0 8px 24px -12px rgba(29, 49, 16, .2);
    --shadow-lg: 0 2px 4px rgba(29, 49, 16, .06), 0 20px 40px -18px rgba(29, 49, 16, .38);
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .5em; color: var(--green-800); }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .7em; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Buttons & Links ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-900); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--green-700); display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow.back::after { content: none; }
.link-arrow.back::before { content: "←"; }
.link-arrow.light { color: var(--green-300); margin-top: 1rem; }
.link-arrow.light:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* grün-roter Streifen wie der Ring im Logo */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--green-600) 0 72%, var(--red) 72% 100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); }
.brand img { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; background: #fff; padding: 1px; }
.brand span { font-family: var(--display); font-size: 1.75rem; font-weight: 700; text-transform: uppercase; line-height: .9; letter-spacing: .02em; color: var(--green-600); display: flex; flex-direction: column; }
.brand small { font-family: var(--display); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 1px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a, .main-nav button { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: none; border: 0; }
.main-nav li.active > a, .main-nav li.active > button { color: var(--green-600); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.main-nav a:hover, .main-nav button:hover { color: var(--red); }
.has-sub ul a { font-family: var(--sans); font-size: .98rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.has-sub ul a:hover { background: var(--green-50); }
.main-nav .nav-admin { background: var(--green-600); color: #fff; border-radius: 999px; }
.main-nav .nav-admin:hover { background: var(--green-700); color: #fff; }
.has-sub { position: relative; }
.has-sub ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.has-sub ul a { border-radius: var(--radius-sm); }
.has-sub:hover ul, .has-sub.open ul, .has-sub:focus-within ul { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--green-600); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .main-nav { position: fixed; inset: 75px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; max-height: calc(100vh - 72px); overflow: auto; box-shadow: var(--shadow-lg); }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .main-nav a, .main-nav button { width: 100%; padding: 12px 14px; font-size: 1.3rem; }
    .main-nav li.active > a, .main-nav li.active > button { box-shadow: inset 3px 0 0 var(--red); }
    .has-sub ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; display: none; }
    .has-sub.open ul { display: block; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; background: var(--green-800); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,34,9,.1) 0%, rgba(20,34,9,.35) 45%, rgba(20,34,9,.93) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green-600) 0 72%, var(--red) 72% 100%); }
.hero-content { position: relative; text-shadow: 0 1px 14px rgba(0,0,0,.45); padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; font-size: clamp(3.4rem, 10vw, 7rem); font-weight: 700; line-height: .88; margin-bottom: .25em; }
.hero h1 em { font-style: normal; color: var(--green-300); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 18px; font-size: .8rem; color: rgba(255,255,255,.75); text-decoration: none; }
.hero-credit:hover { color: #fff; }
@media (max-width: 640px) { .hero-credit { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Seitenkopf ---------- */
.page-head { background: var(--green-600); color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
/* Bögen wie der Ring im Logo */
.page-head::before, .page-head::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.page-head::after { right: -90px; top: -120px; width: 380px; height: 380px; border: 40px solid rgba(255,255,255,.08); }
.page-head::before { right: -40px; top: -70px; width: 280px; height: 280px; border: 10px solid var(--red); border-left-color: transparent; border-top-color: transparent; transform: rotate(10deg); opacity: .9; }
.page-head h1 { color: #fff; margin: 0; position: relative; }
.page-head .eyebrow { color: #fff; }
.page-head .eyebrow::before { background: var(--red); }
.page-head .lead { margin: .8em 0 0; max-width: 60ch; opacity: .9; font-size: 1.1rem; position: relative; }
.page-head .lead a { color: #fff; font-weight: 600; }
@media (max-width: 640px) { .page-head::before { width: 180px; height: 180px; right: -60px; top: -60px; border-width: 7px; } .page-head::after { width: 240px; height: 240px; border-width: 28px; } }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--green-900); color: #e8eee2; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--green-300); }
.section-dark .eyebrow::before { background: var(--red); }
.muted-light { color: rgba(232,238,226,.72); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); }

/* ---------- Datum-Badge ---------- */
/* Kalenderblatt: roter Kopf mit Monat, darunter der Tag in Grün */
.date-badge { flex: none; width: 64px; height: 70px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(29,49,16,.12); display: flex; flex-direction: column; align-items: stretch; overflow: hidden; line-height: 1; text-align: center; }
.date-badge .m { order: -1; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 5px 0 4px; }
.date-badge .d { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--green-600); }
.date-badge.small { width: 54px; height: 60px; }
.date-badge.small .d { font-size: 1.65rem; }
.date-badge.small .m { font-size: .62rem; padding: 4px 0 3px; }
.date-badge.large { width: 96px; height: 106px; border-radius: 12px; }
.date-badge.large .d { font-size: 3.2rem; }
.date-badge.large .m { font-size: .82rem; padding: 7px 0 6px; }

/* ---------- Termine ---------- */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.event-card { display: flex; gap: 16px; padding: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; border: 1px solid transparent; transition: .15s; }
.event-card:hover { border-color: var(--green-600); transform: translateY(-2px); color: inherit; }
.event-card > div:last-child { min-width: 0; }
.event-card h3 { margin: 2px 0 4px; font-size: 1.35rem; overflow-wrap: anywhere; hyphens: auto; }
.event-card p { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--green-600); color: var(--green-700); }
.chip.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.month-title { font-size: 1.6rem; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.month-title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-top: 6px; margin-bottom: -8px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.event-list a { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; background: var(--card); border-radius: var(--radius); text-decoration: none; color: inherit; border: 1px solid var(--line); transition: .15s; }
.event-list a:hover { border-color: var(--green-600); color: inherit; }
.event-list h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0 0 2px; color: var(--ink); }
.event-list p { margin: 0; }
.event-list-main { flex: 1; min-width: 0; }
.event-list .past { opacity: .6; }
.tag { flex: none; white-space: nowrap; hyphens: none; overflow-wrap: normal; display: inline-block; line-height: 1.3; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }
@media (max-width: 560px) { .event-list .tag:not(.tag-internal) { display: none; } }

.ev { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ev-internal { margin: 0; padding: 10px 28px; background: var(--red); color: #fff; font-size: .88rem; font-weight: 600; }
@media (max-width: 560px) { .ev-internal { padding: 10px 20px; } }
.tag-internal { background: var(--red); color: #fff; }
h3 .tag-internal { font-family: var(--sans); font-size: .65rem; vertical-align: 3px; padding: 2px 8px; letter-spacing: .02em; }
.member-welcome { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--green-50); border: 1px solid var(--green-600); color: var(--green-800); }
.cal-note-top { margin: 0 0 24px; }
.ev-past { margin: 0; padding: 10px 28px; background: var(--tint); color: var(--muted); font-size: .88rem; }
.ev-when { display: flex; gap: 24px; align-items: center; padding: 28px; }
.ev-when p { margin: 0; line-height: 1.25; }
.ev-weekday { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.ev-date { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 700; color: var(--green-800); margin: 2px 0 !important; }
.ev-time { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.ev-facts { margin: 0; padding: 4px 28px 8px; display: grid; border-top: 1px solid var(--line); }
.ev-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; }
.ev-facts > div + div { border-top: 1px dashed var(--line); }
.ev-facts dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.ev-facts dt svg { color: var(--red); flex: none; }
.ev-facts dd { margin: 0; font-weight: 600; }
.ev-info { padding: 24px 28px 28px; border-top: 1px solid var(--line); background: linear-gradient(var(--paper), var(--card) 60px); }
.ev-info h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.ev-info .prose > :last-child { margin-bottom: 0; }
.ev-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
@media (max-width: 560px) {
    .ev-when, .ev-info { padding: 20px; }
    .ev-when { gap: 18px; }
    .ev-when .date-badge.large { width: 76px; height: 84px; }
    .ev-when .date-badge.large .d { font-size: 2.5rem; }
    .ev-facts { padding: 0 20px 6px; }
    .ev-facts > div { grid-template-columns: 1fr; gap: 4px; }
    .ev-past { padding: 10px 20px; }
}

/* ---------- Willkommen ---------- */
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.welcome-img { margin: 0; position: relative; }
.welcome-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.welcome-img::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); border-radius: var(--radius); z-index: -1; }
.welcome-img { z-index: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--display); font-size: 3rem; font-weight: 700; color: var(--green-600); line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) { .welcome { grid-template-columns: 1fr; } .welcome-img::before { inset: 12px -10px -12px 10px; } }

/* ---------- Galerien ---------- */
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.gallery-cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .gallery-cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-cards.three { grid-template-columns: 1fr; } }
.gallery-card { display: block; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.gallery-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.gallery-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-card:hover .gallery-card-img img { transform: scale(1.04); }
.count { position: absolute; right: 10px; bottom: 10px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.gallery-card-body { padding: 14px 18px 18px; }
.gallery-card-body h3 { margin: 2px 0 0; font-size: 1.35rem; }
.year-title { display: flex; align-items: center; gap: 16px; font-size: 1.9rem; margin: 44px 0 20px; }
.year-title span { color: var(--green-600); }
.year-title::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--red); order: -1; }
.year-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chips + .year-title { margin-top: 0; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-grid a { flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * 200px); aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--radius-sm); background: var(--tint); }
.photo-grid::after { content: ""; flex-grow: 1000000; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.photo-grid a:hover img { transform: scale(1.03); }
@media (max-width: 560px) { .photo-grid a { flex-basis: calc(var(--ar) * 130px); } }
.pager-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .95rem; }
.pager-nav > :nth-child(2) { text-align: center; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(12,20,6,.96); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.lb.show { opacity: 1; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 4px; user-select: none; }
.lb button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-info { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 640px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Chronik ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 100px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: linear-gradient(var(--green-600), var(--green-600) 70%, var(--red)); }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 0 0 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 94.5px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.tl-year { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--green-600); text-align: right; padding-right: 8px; line-height: 1.3; }
.tl-body { background: var(--card); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.tl-body:not(:has(.tl-img)) { grid-template-columns: 1fr; }
.tl-img img { width: 180px; border-radius: var(--radius-sm); }
.tl-body .prose p:last-child { margin-bottom: 0; }
.tl-body .prose img { display: inline-block; vertical-align: middle; }
@media (max-width: 640px) {
    .timeline::before { left: 6.5px; }
    .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 32px; }
    .timeline li::before { left: 1px; }
    .tl-year { text-align: left; }
    .tl-body { grid-template-columns: 1fr; padding: 16px; }
    .tl-img img { width: 100%; }
}

/* ---------- Mitglieder ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.person { text-align: center; background: var(--card); border-radius: var(--radius); padding: 22px 14px 18px; box-shadow: var(--shadow); }
.person img, .person .avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 12px; border: 3px solid var(--green-600); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); }
.avatar { display: flex; align-items: center; justify-content: center; background: var(--green-50); font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--green-600); }
.person strong { display: block; font-size: 1rem; line-height: 1.3; }
.person span { display: block; font-size: .85rem; color: var(--red); font-weight: 600; line-height: 1.35; }
.person strong + span { margin-top: 2px; }
.registers { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.register { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.register > a { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.register > a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.register > a:hover img { transform: scale(1.03); }
.register-body { padding: 20px 24px; }
.register h3 { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 3px solid var(--red); display: inline-block; color: var(--green-600); }
.register ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.register li { padding: 3px 0; }

/* ---------- Kalender abonnieren ---------- */
.cal-help h2 { margin-top: 2em; font-size: 1.5rem; }
.cal-quick { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); }
.cal-quick h2 { margin-top: 0; }
.cal-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.cal-btn { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--green-600); color: #fff; text-decoration: none; transition: .15s; }
.cal-btn:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }
.cal-btn strong { font-size: 1.02rem; }
.cal-btn span { font-size: .82rem; color: rgba(255,255,255,.8); }
.cal-url-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.cal-url { display: flex; gap: 8px; }
.cal-url input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .9rem; background: var(--paper); color: var(--ink); }
.cal-url .btn { padding: .6em 1.1em; border-radius: var(--radius-sm); }
.cal-note { margin: 24px 0 0; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--red-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cal-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; font-size: .95rem; }
.cal-table th, .cal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cal-table th { background: var(--tint); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .cal-table th:nth-child(3), .cal-table td:nth-child(3) { display: none; } }
.cal-guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.cal-guide summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cal-guide summary::-webkit-details-marker { display: none; }
.cal-guide summary::after { content: "+"; font-size: 1.3rem; color: var(--red); line-height: 1; }
.cal-guide[open] summary::after { content: "–"; }
.cal-guide[open] summary { border-bottom: 1px solid var(--line); }
.cal-guide > :not(summary) { margin-left: 18px; margin-right: 18px; }
.cal-guide > :last-child { margin-bottom: 16px; }
.cal-guide h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 16px 18px 6px; color: var(--green-700); }
.cal-guide ol { padding-left: 1.4em; }
.cal-guide li { margin-bottom: 6px; }

/* Sortieren der Musiker (nur für angemeldete Admins) */
.admin-hint { background: var(--red-50); border: 1px dashed var(--red); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; color: var(--green-800); margin: -4px 0 20px; }
.sort-status { font-weight: 600; color: var(--green-600); }
.sortable li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; cursor: grab; }
.sortable li:hover { background: var(--tint); }
.sortable li.dragging { opacity: .4; }
.sortable li.moved { background: var(--green-50); transition: background .6s; }
.drag-handle { color: var(--muted); font-size: 1rem; line-height: 1; }
.sort-name { flex: 1; }
.sort-btn { border: 1px solid var(--line); background: var(--card); color: var(--green-600); width: 26px; height: 26px; border-radius: 6px; font-size: .65rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sort-btn:hover { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.sortable li:first-child .sort-btn[data-dir="-1"], .sortable li:last-child .sort-btn[data-dir="1"] { visibility: hidden; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.video-grid h3 { margin: 12px 0 4px; font-size: 1.1rem; }
.yt { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--green-950); }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-play { width: 100%; height: 100%; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
    background: radial-gradient(circle at 30% 20%, var(--green-600), var(--green-950)); }
.yt-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.yt-play:hover .yt-icon { transform: scale(1.08); }
.yt-title { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.yt-note { font-size: .72rem; opacity: .6; }

.media-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); }
.media-split h2 { margin-bottom: .6em; }
@media (max-width: 820px) { .media-split { grid-template-columns: 1fr; } }
.radio-list { display: grid; gap: 10px; }
.radio { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.radio summary { cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; list-style: none; }
.radio summary::-webkit-details-marker { display: none; }
.radio-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(190,58,60,.3); }
.radio-hint { margin-left: auto; font-size: .8rem; font-weight: 400; opacity: .6; }
.radio iframe { width: 100%; height: 140px; border: 0; display: block; }

/* ---------- Aufnahmen ---------- */
.album { margin-bottom: 40px; }
.album h2 { font-size: 1.8rem; color: var(--green-600); }
.tracks { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tracks li + li { border-top: 1px solid var(--line); }
.track { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: none; border: 0; text-align: left; color: var(--ink); }
.track:hover { background: var(--tint); }
.track-no { width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track-title { flex: 1; font-weight: 500; }
.track-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--tint); position: relative; flex: none; }
.track-icon::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--red); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.track.playing { background: var(--tint); }
.track.playing .track-title { color: var(--green-700); font-weight: 700; }
.track.playing .track-icon { background: var(--red); }
.track.playing .track-icon::after { left: 11px; top: 11px; width: 12px; height: 12px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.audio-bar { position: sticky; bottom: 16px; width: 100%; margin-top: 16px; border-radius: 999px; box-shadow: var(--shadow-lg); display: none; }
.audio-bar.active { display: block; }

/* ---------- Fließtext ---------- */
.prose { font-size: 1.04rem; }
.prose img { border-radius: var(--radius-sm); }
.prose h2 { font-size: 1.8rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.page-img { border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(232,238,226,.75); padding: 64px 0 24px; font-size: .95rem; border-top: 6px solid var(--red); }
.site-footer h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--green-300); margin-bottom: 14px; }
.site-footer a { color: rgba(232,238,226,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(232,238,226,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer img { width: 84px; height: 84px; padding: 4px; }
.brand-footer span { color: #fff; }
.brand-footer small { color: var(--green-300); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom img { background: #fff; border-radius: 8px; padding: 4px 6px; height: 56px; width: auto; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
