/* =====================================================================
   Heimatvereinigung Finkenwerder e.V. – Stylesheet
   Farben: Tinte (Logo-Blau), Papier, Segel-Rost, Haustür-Grün
   ===================================================================== */

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --ink: #1f2c63;
    --ink-deep: #141d45;
    --ink-soft: #3a4a8a;
    --paper: #f7f2e8;
    --paper-2: #efe7d6;
    --paper-3: #e6dbc4;
    --card: #fffdf8;
    --rust: #b4532c;
    --rust-deep: #923f1f;
    --green: #2d5e4b;
    --green-soft: #dfeae2;
    --text: #23252c;
    --muted: #5f5a50;
    --line: rgba(31, 44, 99, 0.14);
    --shadow-sm: 0 1px 2px rgba(20, 29, 69, 0.08), 0 2px 8px rgba(20, 29, 69, 0.06);
    --shadow-md: 0 2px 4px rgba(20, 29, 69, 0.06), 0 12px 32px rgba(20, 29, 69, 0.12);
    --shadow-lg: 0 4px 8px rgba(20, 29, 69, 0.08), 0 24px 60px rgba(20, 29, 69, 0.18);
    --radius: 14px;
    --radius-lg: 22px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --base-size: clamp(17px, 0.95rem + 0.25vw, 19px);
}

html.font-large { --base-size: clamp(19.5px, 1.1rem + 0.25vw, 21.5px); }

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: var(--base-size);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse at 10% -10%, rgba(255, 255, 255, 0.7), transparent 55%),
        radial-gradient(ellipse at 100% 0%, rgba(230, 219, 196, 0.45), transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

:focus-visible {
    outline: 3px solid var(--rust);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 50, "WONK" 0;
    color: var(--ink-deep);
    line-height: 1.12;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); font-weight: 760; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 650; }
h4 { font-size: 1.1rem; font-weight: 650; }

p { margin: 0 0 1em; text-wrap: pretty; }

.accent { color: var(--rust); font-style: italic; font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.kicker {
    display: inline-flex; align-items: center; gap: 0.6em;
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 0.9rem;
}
.kicker::before {
    content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px;
}
.section--ink .kicker { color: #f0b48f; }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    min-height: 48px; padding: 0.7em 1.35em;
    font-family: var(--font-body); font-size: 1rem; font-weight: 700;
    border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ink-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(31, 44, 99, 0.35); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.btn--light { background: var(--paper); color: var(--ink-deep); }
.btn--light:hover { background: #fff; color: var(--ink-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 242, 232, 0.9);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; gap: 18px;
    min-height: var(--header-h);
    max-width: 1400px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ink-deep); flex: none;
}
.brand:hover { color: var(--ink-deep); }
.brand__mark { width: 46px; height: 52px; color: var(--ink); transition: transform 0.4s ease; }
.brand:hover .brand__mark { transform: rotate(-4deg) translateY(-1px); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
    font-variation-settings: "SOFT" 60;
}
.brand__sub {
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); font-weight: 600; margin-top: 3px;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
    display: block; padding: 0.5em 0.72em; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem; color: var(--ink-deep); text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover { background: rgba(31, 44, 99, 0.07); color: var(--ink-deep); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.lang-switch {
    display: inline-flex; padding: 3px; border-radius: 999px;
    background: var(--paper-2); border: 1px solid var(--line);
}
.lang-switch a, .lang-switch span {
    padding: 0.32em 0.8em; border-radius: 999px;
    font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--ink);
    white-space: nowrap;
}
.lang-switch [aria-current="true"] { background: var(--ink); color: #fff; }
.lang-switch a:hover { background: rgba(31, 44, 99, 0.1); color: var(--ink); }
.lang-short { display: none; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--card); color: var(--ink);
    cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.icon-btn:hover { background: #fff; border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

.menu-toggle { display: none; }

@media (max-width: 1400px) {
    .menu-toggle { display: inline-grid; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 12px var(--gutter) 22px;
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { font-size: 1.1rem; padding: 0.75em 1em; border-radius: 12px; }
}
@media (max-width: 560px) {
    :root { --header-h: 68px; }
    .brand__sub { display: none; }
    .brand__name { font-size: 1rem; }
    .brand__mark { width: 38px; height: 44px; }
    .header-tools .font-toggle { display: none; }
    .lang-switch a, .lang-switch span { padding: 0.3em 0.6em; font-size: 0.75rem; }
}
@media (max-width: 560px) {
    .lang-switch { padding: 0; border: 0; background: none; }
    .lang-switch [aria-current="true"] { display: none; }
    .lang-switch a { border: 1px solid var(--line); background: var(--card); padding: 0.55em 0.9em; font-size: 0.8rem; }
    .lang-long { display: none; }
    .lang-short { display: inline; }
    .site-header__inner { gap: 10px; }
    .recurring { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
    .site-header__inner { gap: 8px; }
    .brand { gap: 8px; }
    .brand__mark { width: 32px; height: 38px; }
    .brand__name { font-size: 0.9rem; }
    .lang-switch a { padding: 0.5em 0.65em; }
    .icon-btn { width: 42px; height: 42px; }
}
@media (max-width: 330px) {
    .brand__text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(40px, 7vw, 96px) 0 clamp(90px, 11vw, 150px);
    overflow: hidden;
    isolation: isolate;
}
.hero__map {
    position: absolute; inset: 0 0 auto auto; z-index: -1;
    width: min(1100px, 85vw); height: 100%;
    background-size: cover; background-position: center top;
    opacity: 0.2; mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 85%), linear-gradient(to bottom, #000 40%, transparent 95%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to left, #000 20%, transparent 85%), linear-gradient(to bottom, #000 40%, transparent 95%);
    mask-composite: intersect;
    filter: sepia(0.35) saturate(0.8);
}
.hero .wave { color: var(--ink-deep); }
.hero__grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero__text .lead { margin-bottom: 1.8rem; }
.hero__platt {
    margin-top: 2rem; padding-left: 1rem; border-left: 3px solid var(--rust);
    font-family: var(--font-display); font-style: italic; font-size: 1.08rem;
    color: var(--ink-soft); max-width: 52ch;
}

.postcard-stack { position: relative; padding: 10px 26px 40px 10px; }
.postcard {
    position: relative; margin: 0;
    background: var(--card); padding: 12px 12px 14px;
    border-radius: 6px; box-shadow: var(--shadow-lg);
    transform: rotate(2.2deg);
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.postcard:hover { transform: rotate(0.6deg) translateY(-4px); }
.postcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.postcard figcaption {
    font-family: var(--font-display); font-style: italic;
    font-size: 0.95rem; color: var(--ink-soft); padding: 10px 4px 0;
}
.postcard--back {
    position: absolute; inset: -18px 70px auto -26px; z-index: -1;
    transform: rotate(-7deg); opacity: 0.96;
}
.postcard--back img { filter: sepia(0.4); }

.stamp {
    position: absolute; right: -6px; bottom: -4px;
    width: clamp(96px, 11.2vw, 125px); aspect-ratio: 1;
    color: var(--ink);
    filter: drop-shadow(0 6px 14px rgba(20, 29, 69, 0.2));
}
.stamp__ring { animation: spin 40s linear infinite; transform-origin: 50% 50%; }
.stamp text { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: 1.78px; }
@keyframes spin { to { transform: rotate(360deg); } }

.wave {
    position: absolute; left: 0; right: 0; bottom: -1px;
    width: 100%; height: clamp(40px, 6vw, 90px); color: var(--ink);
}
.wave--top { top: -1px; bottom: auto; transform: scaleY(-1); }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .postcard-stack { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--paper-2);
    padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px);
}
.page-hero__mark {
    position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%;
    width: clamp(120px, 18vw, 230px); color: var(--ink); opacity: 0.09;
    transform: translateY(-55%) rotate(-6deg); z-index: -1;
}
.page-hero .wave { color: var(--paper); }
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); max-width: 18ch; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink {
    background: var(--ink); color: #e9ebf5;
    background-image: radial-gradient(ellipse at 85% 0%, rgba(255, 255, 255, 0.08), transparent 55%);
}
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: #c9cde3; }
.section--ink a:not(.btn) { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .kicker { justify-content: center; }
.section__head--split {
    max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }

/* ---------- Ribbon (Heimat ist …) ---------- */
.ribbon {
    background: var(--ink-deep); color: #f3ead7; overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.ribbon__track {
    display: flex; width: max-content; gap: 0;
    animation: marquee 60s linear infinite;
}
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__item {
    display: inline-flex; align-items: center; gap: 28px;
    padding: 20px 28px 20px 0;
    font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
    white-space: nowrap;
}
.ribbon__item svg { width: 22px; height: 26px; color: #f0b48f; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.feature { display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--paper-2); color: var(--ink); flex: none;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature__meta { font-size: 0.85rem; font-weight: 700; color: var(--green); }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 0.28em 0.75em; border-radius: 999px;
}
.tag--public { background: var(--green-soft); color: var(--green); }
.tag--members { background: #f5e1d6; color: var(--rust-deep); }
.tag--free { background: #e6e9f6; color: var(--ink); }

/* ---------- Split / Media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 88px; gap: 12px; }
.mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic .m1 { grid-column: 1 / 4; grid-row: span 4; }
.mosaic .m2 { grid-column: 4 / 7; grid-row: span 2; }
.mosaic .m3 { grid-column: 4 / 6; grid-row: span 2; }
.mosaic .m4 { grid-column: 6 / 7; grid-row: span 2; }
.mosaic figcaption {
    position: absolute; left: 8px; bottom: 8px; right: 8px;
    font-size: 0.78rem; font-weight: 600; color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
@media (max-width: 560px) { .mosaic { grid-auto-rows: 64px; } }

.framed {
    margin: 0; background: var(--card); padding: 10px; border-radius: 10px; box-shadow: var(--shadow-md);
}
.framed img { border-radius: 4px; width: 100%; }
.framed figcaption { font-size: 0.88rem; color: var(--muted); padding: 10px 4px 2px; font-style: italic; }

/* ---------- Events ---------- */
.events { display: grid; gap: 16px; }
.event {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: clamp(14px, 2.4vw, 26px); align-items: start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(16px, 2.2vw, 24px); box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.event:hover { box-shadow: var(--shadow-md); }
.event--next { border: 2px solid var(--rust); }
.event--past { opacity: 0.82; }
.event--past .datetile { background: var(--paper-3); color: var(--ink-deep); }
.datetile {
    background: var(--ink); color: #fff; border-radius: 14px; text-align: center;
    padding: 10px 6px 12px; line-height: 1; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}
.datetile__wd { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.datetile__day { font-family: var(--font-display); font-weight: 750; font-size: 2.3rem; margin: 6px 0 4px; display: block; }
.datetile__month { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.datetile__range { font-size: 0.72rem; font-weight: 600; margin-top: 6px; opacity: 0.85; }
.event__body { overflow-wrap: anywhere; hyphens: auto; }
.event__body h3 { margin-bottom: 0.25em; }
.event__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.92rem; color: var(--muted); margin-bottom: 0.6em; }
.event__meta svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; margin-right: 4px; }
.event__body p { margin-bottom: 0.5em; }
.event__body ul { margin: 0.2em 0 0.6em; padding-left: 1.2em; }
.event__poster {
    width: 120px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm);
    border: 0; padding: 0; cursor: zoom-in; background: none;
}
.event__poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 680px) {
    .event { grid-template-columns: 76px minmax(0, 1fr); }
    .datetile__day { font-size: 1.9rem; }
    .event__poster { grid-column: 1 / -1; width: 100%; max-width: 280px; }
    .event__poster img { aspect-ratio: auto; }
}

.next-teaser {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 760px) { .next-teaser { grid-template-columns: 1fr; } }

.recurring {
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
    background: var(--green-soft); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 26px);
    color: #1f3f33;
}
.recurring h3 { color: #1f3f33; margin-bottom: 0.2em; }
.recurring p { margin: 0; }
.recurring__icon { width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.recurring__icon svg { width: 30px; height: 30px; }

details.more { margin-top: 28px; }
details.more > summary {
    cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; color: var(--ink); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.2em; line-height: 1; }
details.more[open] > summary::after { content: "–"; }
details.more > .events { margin-top: 18px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before {
    content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--rust), var(--ink)); transform: translateX(-1px);
}
.timeline li { position: relative; width: 50%; padding: 0 44px 34px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 34px 44px; }
.timeline li::before {
    content: ""; position: absolute; top: 8px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--paper); border: 4px solid var(--rust);
}
.timeline li:nth-child(even)::before { left: -9px; right: auto; }
.timeline__year { font-family: var(--font-display); font-weight: 750; font-size: 1.8rem; color: var(--ink); line-height: 1; margin-bottom: 6px; display: block; }
.timeline li:nth-child(odd) { text-align: right; }
.timeline p { margin: 0; }
@media (max-width: 720px) {
    .timeline::before { left: 9px; }
    .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 28px 40px; text-align: left; }
    .timeline li::before, .timeline li:nth-child(even)::before { left: 0; right: auto; }
}

/* ---------- Quote ---------- */
.quote {
    position: relative; margin: 0; padding: clamp(24px, 4vw, 44px);
    border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-md);
}
.quote p { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.35; color: var(--ink-deep); font-style: italic; }
.quote footer { font-weight: 700; color: var(--muted); font-size: 0.92rem; }
.quote::before {
    content: "„"; position: absolute; top: -0.55em; left: 18px;
    font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--rust); opacity: 0.85;
}

/* ---------- CTA band ---------- */
.cta {
    display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
    background: var(--rust); color: #fff; border-radius: 28px;
    padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden; isolation: isolate;
}
.cta::after {
    content: ""; position: absolute; inset: auto -60px -80px auto; width: 300px; height: 300px; z-index: -1;
    border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.cta h2 { color: #fff; margin-bottom: 0.25em; }
.cta p { margin: 0; color: #fbe9df; font-size: 1.08rem; }
.cta__price {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); line-height: 0.9;
    text-align: center;
}
.cta__price small { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; margin-top: 8px; opacity: 0.9; }
@media (max-width: 820px) { .cta { grid-template-columns: minmax(0, 1fr); text-align: left; } .cta__price { text-align: left; } }
@media (max-width: 400px) { .cta { padding: 22px 18px; border-radius: 20px; } .cta .btn { width: 100%; } }

/* ---------- Facts list ---------- */
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.facts__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; }
.facts__icon svg { width: 22px; height: 22px; }
.facts strong { display: block; color: var(--ink-deep); }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.person__initials {
    width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.person--board .person__initials { background: var(--rust); }
.person__name { font-weight: 700; color: var(--ink-deep); line-height: 1.25; }
.person__role { font-size: 0.88rem; color: var(--muted); line-height: 1.35; }

/* ---------- Documents ---------- */
.docs { display: grid; gap: 10px; }
.doc {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink-deep); font-weight: 600;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.doc:hover { border-color: var(--ink); transform: translateX(3px); color: var(--ink-deep); }
.doc svg { width: 28px; height: 28px; color: var(--rust); flex: none; }
.doc small { display: block; font-weight: 500; color: var(--muted); }

.accordion details {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.accordion summary {
    cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; color: var(--ink-deep);
    list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-body); font-size: 1.5rem; color: var(--rust); line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .accordion__body { padding: 0 20px 18px; }
.accordion .accordion__body > :last-child { margin-bottom: 0; }

/* ---------- Archive ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.55em 1.05em; min-height: 44px; border-radius: 999px; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); color: var(--ink-deep);
    font: 600 0.95rem var(--font-body);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip__count { font-size: 0.78rem; padding: 0.05em 0.55em; border-radius: 999px; background: rgba(31, 44, 99, 0.1); }
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, 0.2); }

.gallery { columns: 3 260px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin: 0 0 16px; }
.gallery__item[hidden] { display: none; }
.gallery__btn {
    display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; text-align: left;
    font: inherit; color: inherit;
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.gallery__btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery__btn img { width: 100%; height: auto; transition: transform 0.6s ease; }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__img { overflow: hidden; background: var(--paper-3); }
.gallery__cap { display: block; padding: 12px 10px 14px; }
.gallery__title { display: block; font-weight: 700; color: var(--ink-deep); line-height: 1.3; }
.gallery__meta { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 3px; }

.archive-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.archive-teaser a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.archive-teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; }
.archive-teaser a:hover img { transform: scale(1.05); }
.archive-teaser span {
    position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-weight: 700; font-size: 0.92rem;
    background: linear-gradient(transparent, rgba(10, 15, 40, 0.75));
}
@media (max-width: 760px) { .archive-teaser { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: #0a0d1e; color: #fff;
}
.lightbox::backdrop { background: rgba(10, 13, 30, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lightbox__count { font-size: 0.9rem; opacity: 0.8; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox__cap { padding: 14px 20px 22px; text-align: center; max-width: 820px; margin: 0 auto; }
.lightbox__cap strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.lightbox__cap span { opacity: 0.8; font-size: 0.95rem; }
.lb-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 640px) {
    .lightbox__stage { padding: 0 8px; }
    .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; }
    .lb-prev { left: 16px; } .lb-next { right: 16px; }
    .lightbox__cap { padding: 14px 76px 22px; }
}

/* ---------- Contact ---------- */
.contact-card { display: grid; gap: 18px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line svg { width: 26px; height: 26px; color: var(--rust); flex: none; margin-top: 2px; }
.contact-line a { font-weight: 700; font-size: 1.12rem; }
.links-list { display: grid; gap: 12px; }
.ext-link {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
    padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink-deep);
}
.ext-link:hover { border-color: var(--ink); color: var(--ink-deep); }
.ext-link strong { font-size: 1.05rem; }
.ext-link small { grid-column: 1; color: var(--muted); }
.ext-link svg { grid-row: 1 / 3; grid-column: 2; width: 20px; height: 20px; color: var(--ink); }

.note {
    border-left: 4px solid var(--rust); background: var(--card); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.95rem; color: var(--muted);
}
.note--platt { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink-deep); color: #c7cbe0; padding: clamp(48px, 6vw, 72px) 0 28px; margin-top: clamp(80px, 10vw, 140px); }
.site-footer .wave { color: var(--ink-deep); top: auto; bottom: calc(100% - 1px); }
.site-footer .footer-brand a { overflow-wrap: anywhere; }
.site-footer a { color: #e7e9f4; text-decoration: none; }
.site-footer a:hover { color: #f0b48f; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand svg { width: 64px; color: #f3ead7; flex: none; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: #fff; display: block; line-height: 1.2; margin-bottom: 6px; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #f0b48f; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom {
    margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.86rem; color: #9ea4c4;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .ribbon__track { flex-wrap: wrap; width: auto; justify-content: center; }
    .ribbon__item[aria-hidden="true"] { display: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media print {
    .site-header, .site-footer, .ribbon, .wave, .stamp, .btn, .filters { display: none !important; }
    body { background: #fff; }
    .section { padding: 16px 0; }
}

/* ---------- Satzung ---------- */
.split--toc { grid-template-columns: 300px 1fr; align-items: start; }
.toc-card { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.toc-card a { text-decoration: none; display: block; padding: 3px 0; }
.toc-card a:hover { text-decoration: underline; }
.satzung h3 { scroll-margin-top: calc(var(--header-h) + 20px); padding-top: 0.6em; border-top: 1px solid var(--line); }
.satzung .sub { padding-left: 1.4em; margin-bottom: 0.35em; }
@media (max-width: 860px) {
    .split--toc { grid-template-columns: 1fr; }
    .toc-card { position: static; max-height: none; }
}
.accordion .prose h4 { margin-top: 1.4em; color: var(--ink); }

/* Lange Wörter (z. B. E-Mail-Adressen, „zusammenkommen“) auf schmalen Geräten umbrechen */
.recurring, .contact-line, .card { overflow-wrap: anywhere; }
@media (max-width: 480px) {
    h1, h2 { hyphens: auto; -webkit-hyphens: auto; }
}

/* Karten innerhalb dunkler Sektionen behalten dunkle Schrift */
.section--ink .card h2, .section--ink .card h3 { color: var(--ink-deep); }
.section--ink .card a:not(.btn) { color: var(--ink); }
.section--ink .card .btn--ghost { color: var(--ink); border-color: rgba(31, 44, 99, 0.35); }

/* ---------- Archiv: Kategorie-Karten (Zufallsbild je Kategorie) ---------- */
.filters a.chip { text-decoration: none; }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-current="page"] .chip__count { background: rgba(255, 255, 255, 0.2); }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.album {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.album:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: inherit; }
.album__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.album__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.album:hover .album__img img { transform: scale(1.04); }
/* Stapel-Andeutung: es gibt mehr Bilder dahinter */
.album__img::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
    background: linear-gradient(transparent, rgba(10, 15, 40, 0.35)); pointer-events: none;
}
.album__count {
    position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px; background: rgba(255, 253, 248, 0.92); color: var(--ink-deep);
    font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow-sm);
}
.album__count svg { width: 1em; height: 1em; }
.album__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.album__kat { font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; color: var(--ink-deep); line-height: 1.2; margin-bottom: 8px; }
.album__body .gallery__title { font-weight: 600; font-size: 0.95rem; }
.album__hint {
    display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px;
    color: var(--rust); font-weight: 700; font-size: 0.92rem;
}
.album__hint svg { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.album:hover .album__hint svg { transform: translateX(4px); }

.archive-teaser span small { display: block; font-weight: 600; font-size: 0.78rem; opacity: 0.85; }

.event__flyer { margin: 0.2em 0 0.7em; }
.event__flyer a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.event__flyer svg { width: 1.2em; height: 1.2em; color: var(--rust); }

/* ---------- Termininfoservice ---------- */
.info-band {
    display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
    padding: 22px 26px; border-radius: var(--radius-lg); color: #fff;
    background: linear-gradient(120deg, var(--rust) 0%, var(--rust-deep) 100%);
    box-shadow: var(--shadow-md);
}
.info-band__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.info-band__icon svg { width: 30px; height: 30px; }
.info-band h3 { color: #fff; margin: 0 0 0.2em; }
.info-band p { margin: 0; color: #fbe9df; }
@media (max-width: 760px) {
    .info-band { grid-template-columns: auto 1fr; padding: 20px; }
    .info-band__btn { grid-column: 1 / -1; justify-self: start; }
}
.signup-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .signup-grid { grid-template-columns: 1fr; } }
.signup h2 { font-size: 1.6rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 700; color: var(--ink-deep); }
.field small { font-weight: 500; color: var(--muted); }
.field input {
    width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(31, 44, 99, 0.3);
    background: #fff; font: inherit; color: var(--text);
}
.field input:focus { outline: 3px solid rgba(180, 83, 44, 0.35); border-color: var(--ink); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 4px 0 18px; font-size: 0.95rem; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--rust); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #f6dcdc; color: #8a1f1f; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.steps { padding-left: 1.2em; margin: 0 0 1em; }
.steps li { margin-bottom: 0.4em; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.notice__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.notice__icon svg { width: 28px; height: 28px; }
.notice--ok .notice__icon { background: var(--green-soft); color: var(--green); }
.notice--warn .notice__icon { background: #f5e1d6; color: var(--rust-deep); }
.notice h2 { font-size: 1.5rem; }
.unsub summary { cursor: pointer; font-weight: 700; color: var(--ink-deep); }
.mt-1 { margin-top: 1rem; }

/* ---------- Einwilligungs-Hinweis ---------- */
.consent {
    position: fixed; inset: auto 16px 16px 16px; z-index: 200; max-width: 560px; margin-left: auto;
    background: var(--card); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    border: 1px solid var(--line); padding: 22px 24px;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.3rem; margin: 0 0 0.4em; }
.consent p { font-size: 0.95rem; margin: 0 0 0.8em; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btns .btn { justify-content: center; }
@media (max-width: 480px) { .consent { inset: auto 8px 8px 8px; padding: 18px; } .consent__btns { grid-template-columns: 1fr; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
