/* ==========================================================================
   Royal Rangers 359 Leipzig III – Theme "rangers"
   Gestaltung: gerahmte Fotoflächen, schmale Versal-Display-Schrift,
   Farben nach Royal-Rangers-CD, Höhenlinien als Leitmotiv. Kein Build-Schritt.
   ========================================================================== */

:root {
    /* Royal Rangers CD-Farben (Corporate-Design-Leitfaden 1.1, S. 19) */
    --rr-gelb: #FCE604;
    --rr-rot: #E3000F;
    --rr-blau: #1E398F;
    --rr-braun: #742B20;
    --rr-schwarz: #1A1A18;
    --rr-beige: #AEA97D;
    --rra-blau: #547282;
    --rra-grau: #EDF1ED;
    /* Sandton der Flächen im Leitfaden + zulässige Tonwerte */
    --rr-sand: #E0D1B0;
    --rra-blau-30: #CCD5DA;
    --rr-braun-90: #824036;
    --rr-schwarz-90: #313130;
    --rr-schwarz-70: #5F5F5D;

    --ink: var(--rr-schwarz);
    --muted: var(--rr-schwarz-70);
    --line: rgb(26 26 24 / .16);
    --line-light: rgb(237 241 237 / .2);

    /* Stufenfarben – nur als kleiner Farbpunkt */
    --tone-sun: var(--rr-gelb);
    --tone-leaf: var(--rr-beige);
    --tone-sky: var(--rr-blau);
    --tone-ember: var(--rr-rot);
    --tone-night: var(--rr-braun);
    --tone-earth: var(--rra-blau);

    --display: "Bebas Neue", "Arial Narrow", sans-serif;
    --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --frame-gap: 12px;
    --frame-pad: clamp(14px, 2vw, 24px);
    --r-frame: clamp(20px, 2.4vw, 32px);
    --r-photo: clamp(14px, 1.6vw, 22px);
    --wrap: 1320px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header-h: 84px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Basis -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
    margin: 0; background: var(--rra-grau); color: var(--ink);
    font: 400 1rem/1.65 var(--body); font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rr-rot); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rr-gelb); color: var(--rr-schwarz); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .7rem 1rem; border-radius: 999px; background: var(--rr-gelb); color: var(--rr-schwarz); }
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--text { max-width: 780px; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* Höhenlinien */
.topo-light { background: var(--rr-sand) url("../images/topo-light.svg") center top / 1600px auto; }
.topo-dark { background-image: url("../images/topo-dark.svg"); background-size: 1600px auto; background-position: center; }

/* Typografie-Bausteine ----------------------------------------------------- */
.display { font: 400 clamp(3rem, 7vw, 6rem)/.86 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 0; }
.display--section { font-size: clamp(2.8rem, 5.5vw, 4.6rem); }
.label { margin: 0 0 1rem; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--rr-rot); }
.label--light { color: var(--rr-gelb); }
.statement {
    max-width: 22ch; margin: 0 0 clamp(2.5rem, 5vw, 4rem);
    font: 400 clamp(2.5rem, 5.6vw, 5.2rem)/.92 var(--display); text-transform: uppercase; color: var(--rr-schwarz);
}
.statement--small { max-width: none; font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 1.5rem; }
.muted-light { color: rgb(237 241 237 / .75); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

/* Pills (Buttons + Tags) --------------------------------------------------- */
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .8rem 1.45rem; border: 1px solid transparent; border-radius: 999px;
    background: var(--rr-rot); color: #fff;
    font: 500 .92rem/1.1 var(--body); text-decoration: none; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { background: var(--rr-braun); }
.pill--cream { background: var(--rra-grau); color: var(--rr-schwarz); }
.pill--cream:hover { background: #fff; }
.pill--outline { background: transparent; border-color: var(--rr-schwarz); color: var(--rr-schwarz); }
.pill--outline:hover { background: var(--rr-schwarz); color: var(--rra-grau); }
.pill--outline-light { background: rgb(26 26 24 / .15); border-color: rgb(237 241 237 / .65); color: var(--rra-grau); backdrop-filter: blur(6px); }
.pill--outline-light:hover { background: var(--rra-grau); color: var(--rr-schwarz); }
.pill--ghost-light { background: rgb(237 241 237 / .08); color: var(--rra-grau); }
.pill--ghost-light:hover { background: rgb(237 241 237 / .16); }
.pill--active { background: var(--rr-schwarz); color: var(--rra-grau); }
.pill--small { padding: .45rem .9rem; font-size: .8rem; }
.pill--large { padding: 1.05rem 2.2rem; font-size: 1.02rem; }

.tag {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .28rem .75rem; border: 1px solid currentColor; border-radius: 999px;
    font-size: .78rem; line-height: 1.3; white-space: nowrap; opacity: .9;
}
.tag--tone::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tone, var(--rra-blau)); }
.tag-line { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; color: var(--rr-schwarz); }

/* Header ------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgb(237 241 237 / .9); backdrop-filter: blur(14px);
    color: var(--rr-schwarz); transition: background .3s, color .3s;
}
.site-header__inner {
    height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
    padding-inline: calc(var(--frame-gap) + var(--frame-pad) + 4px);
}
.has-hero .site-header { position: fixed; inset: var(--frame-gap) var(--frame-gap) auto; background: transparent; backdrop-filter: none; color: var(--rra-grau); }
.has-hero .site-header__inner { padding-inline: calc(var(--frame-pad) + 4px); }
.has-hero .site-header.is-scrolled { inset: 0 0 auto; background: rgb(26 26 24 / .88); backdrop-filter: blur(14px); }
.has-hero .site-header.is-scrolled .site-header__inner { padding-inline: calc(var(--frame-gap) + var(--frame-pad) + 4px); }

.brand { justify-self: center; display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__emblem { width: 40px; }
.brand__name { display: grid; font: 400 1.55rem/.9 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand__name small { font: 500 .62rem/1.4 var(--body); letter-spacing: .12em; opacity: .75; }

.site-nav__list { display: flex; gap: .2rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__link {
    padding: .5rem 0; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s var(--ease);
}
.site-nav__link:hover, .site-nav__link.current, .site-nav__link.section { background-size: 100% 1px; }
.site-nav__sub-toggle { display: grid; place-items: center; width: 24px; height: 24px; margin-left: .1rem; border: 0; background: none; color: inherit; }
.site-nav__sub-toggle .icon { width: 13px; height: 13px; transition: transform .2s; }
.icon { width: 1em; height: 1em; }
.site-nav__sub {
    position: absolute; top: calc(100% + .6rem); left: -1rem; min-width: 250px;
    margin: 0; padding: .5rem; list-style: none; border-radius: 18px;
    background: var(--rr-schwarz); color: var(--rra-grau);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav__sub::before { content: ""; position: absolute; inset: -.7rem 0 auto; height: .7rem; }
.site-nav__item:hover > .site-nav__sub, .site-nav__item:focus-within > .site-nav__sub, .site-nav__item.is-open > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__item.is-open .site-nav__sub-toggle .icon { transform: rotate(180deg); }
.site-nav__sublink { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem .8rem; border-radius: 10px; text-decoration: none; font-size: .88rem; }
.site-nav__sublink small { font-size: .74rem; opacity: .6; }
.site-nav__sublink:hover, .site-nav__sublink.current { background: rgb(237 241 237 / .1); }

.site-header__end { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.pill--header { padding: .6rem 1.15rem; font-size: .8rem; }
.header-social { display: grid; place-items: center; width: 40px; height: 40px; color: var(--rr-rot); transition: color .2s, transform .2s; }
.header-social .icon { width: 24px; height: 24px; stroke-width: 2; }
.header-social:hover { color: var(--rr-braun); transform: scale(1.08); }
.has-hero .site-header:not(.is-scrolled) .header-social:hover { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
    .site-header__inner { grid-template-columns: auto 1fr; }
    .brand { justify-self: start; grid-row: 1; grid-column: 1; }
    .site-header__end { grid-column: 2; }
    .nav-toggle {
        display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
        background: rgb(26 26 24 / .08); color: inherit;
    }
    .has-hero .nav-toggle { background: rgb(237 241 237 / .16); }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), background .2s; }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bars::before { top: -6px; }
    .nav-toggle__bars::after { top: 6px; }
    .nav-open .nav-toggle__bars { background: transparent; }
    .nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

    /* absolute statt fixed: backdrop-filter am Header wäre sonst der Bezugsrahmen */
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h));
        padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
        background: var(--rr-schwarz); color: var(--rra-grau);
        opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .nav-open, .nav-open body { overflow: hidden; }
    .nav-open .site-header { background: var(--rr-schwarz) !important; color: var(--rra-grau); inset: 0 0 auto !important; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line-light); }
    .site-nav__link { padding: .9rem 0; font: 400 2.4rem/1 var(--display); letter-spacing: .01em; background: none; }
    .site-nav__sub-toggle { width: 44px; height: 44px; }
    .site-nav__sub-toggle .icon { width: 20px; height: 20px; }
    .site-nav__sub { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 1rem; background: none; }
    .site-nav__item:hover > .site-nav__sub { display: none; }
    .site-nav__item.is-open > .site-nav__sub { display: block; }
}
@media (max-width: 520px) { .pill--header { display: none; } }

/* Rahmen (Hero + Seitenkopf) ---------------------------------------------- */
.frame { padding: var(--frame-gap); }
.frame__inner {
    position: relative; isolation: isolate; overflow: hidden;
    padding: var(--frame-pad); border-radius: var(--r-frame);
    background: var(--rra-blau); color: var(--rra-grau);
}
.frame__photo { width: 100%; object-fit: cover; }

/* Startseite */
.frame--hero .frame__inner { min-height: calc(100svh - 2 * var(--frame-gap)); display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 1rem); }
.frame--hero .frame__photo { position: absolute; inset: 0; z-index: -2; height: 100%; object-position: center 62%; }
.frame--hero .frame__inner::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgb(26 26 24 / .5) 0%, rgb(26 26 24 / 0) 30%, rgb(26 26 24 / 0) 45%, rgb(26 26 24 / .75) 100%);
}
.hero-tags { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; margin: 0; padding: 0 .3rem; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hero-title {
    margin: 0 0 .2em -.02em; font: 400 clamp(5rem, 19.5vw, 22rem)/.78 var(--display);
    text-transform: uppercase; letter-spacing: -.005em; color: var(--rra-grau); white-space: nowrap;
    animation: rise 1s var(--ease) both;
}
.hero-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 0 .3rem; }
.hero-bar p { margin: 0; max-width: 40ch; font-size: clamp(.95rem, 1.3vw, 1.1rem); }
.hero-bar__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@media (max-width: 700px) {
    .hero-title { white-space: normal; font-size: clamp(5.5rem, 31vw, 9rem); line-height: .8; }
    .hero-tags { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Seitenkopf mit Titel-Aussparung im Foto */
.frame--page .frame__inner { min-height: clamp(260px, 34vw, 380px); display: flex; flex-direction: column; justify-content: flex-end; }
.frame--page:not(.has-image) .frame__inner { background-color: var(--rra-blau); background-image: url("../images/topo-dark.svg"); background-size: 1600px auto; padding-top: 5rem; }
.frame--page.has-image .frame__inner { display: block; background: linear-gradient(to top, var(--rra-blau) 0, var(--rra-blau) 60%, var(--rra-blau-30) 100%); }
.frame--page .frame__photo { height: clamp(340px, 52vw, 600px); border-radius: var(--r-photo); }
.frame__meta { position: absolute; top: calc(var(--frame-pad) + 1rem); left: calc(var(--frame-pad) + 1rem); right: calc(var(--frame-pad) + 1rem); display: flex; flex-wrap: wrap; gap: .5rem; }
.frame--page:not(.has-image) .frame__meta { position: static; margin-bottom: 1.5rem; }
.crumbs { display: flex; gap: .5rem; }
.crumbs a { padding: .4rem .9rem; border-radius: 999px; background: rgb(26 26 24 / .35); backdrop-filter: blur(8px); color: var(--rra-grau); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.crumbs a:hover { background: var(--rra-grau); color: var(--rr-schwarz); }
.frame--page:not(.has-image) .crumbs a { background: rgb(237 241 237 / .12); }

.frame__title { margin: 0; font: 400 clamp(3.6rem, 10.5vw, 10rem)/.8 var(--display); text-transform: uppercase; letter-spacing: -.003em; }
.frame__title--long { font-size: clamp(3rem, 7vw, 6.6rem); line-height: .86; }
.frame--page.has-image .frame__title { position: absolute; left: var(--frame-pad); bottom: var(--frame-pad); max-width: calc(100% - 2 * var(--frame-pad)); }
.frame--page.has-image .frame__title span {
    --notch: var(--r-photo);
    position: relative; display: inline-block; padding: .14em .28em 0 0;
    background: var(--rra-blau); border-top-right-radius: var(--notch);
}
/* konkave Ecken: Foto-Ecke über dem Titel und rechts daneben abrunden */
.frame--page.has-image .frame__title span::before,
.frame--page.has-image .frame__title span::after {
    content: ""; position: absolute; width: var(--notch); height: var(--notch);
    background: radial-gradient(circle at 100% 0, transparent calc(var(--notch) - .5px), var(--rra-blau) var(--notch));
}
.frame--page.has-image .frame__title span::before { left: 0; top: calc(-1 * var(--notch)); }
.frame--page.has-image .frame__title span::after { left: 100%; bottom: 0; }
.frame__lead {
    width: min(100% - 2 * var(--gutter), var(--wrap)); max-width: 52ch;
    margin: clamp(2rem, 4vw, 3rem) 0 0 max(var(--gutter), (100% - var(--wrap)) / 2);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--rr-schwarz);
}

/* Startseite: Intro --------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, .95fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.intro__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-photo); }
.intro__text .prose { margin-bottom: 1.5rem; }
@media (max-width: 1100px) {
    .intro { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
    .intro__events { grid-column: 1 / -1; }
}
@media (max-width: 680px) { .intro { grid-template-columns: 1fr; } .intro__photo { aspect-ratio: 4 / 3; } }

/* Panels */
.panel { border-radius: var(--r-frame); padding: clamp(1.5rem, 3.5vw, 3rem); }
.panel--dark { background-color: var(--rr-schwarz); color: var(--rra-grau); }
.panel--slate { background-color: var(--rra-blau); color: var(--rra-grau); }
.panel--mist { background: var(--rr-sand); color: var(--rr-schwarz); }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.panel__title { font: 400 2.4rem/.9 var(--display); text-transform: uppercase; margin-bottom: 1.25rem; }

/* Termine */
.event-list { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 6.2rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-light); }
.event__date { align-self: start; padding: .3rem .6rem; border: 1px solid rgb(237 241 237 / .55); border-radius: 999px; font-size: .74rem; text-align: center; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.event__title { margin: 0 0 .15rem; font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.event__note { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .8; }
.event__meta { margin: 0; font-size: .85rem; line-height: 1.5; color: rgb(237 241 237 / .78); }
.event__extra { display: block; font-size: .8rem; opacity: .8; }
.event.is-past { opacity: .5; }
.event__rsvp {
    display: inline-block; margin-top: .45rem; padding: .3rem .8rem; border-radius: 999px;
    background: var(--rr-gelb); color: var(--rr-schwarz); font-size: .78rem; font-weight: 600; text-decoration: none;
    transition: background .2s;
}
.event__rsvp:hover { background: #fff; }

/* Monatskalender */
.cal__head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.cal__title { margin: 0; text-align: center; font: 400 1.7rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.cal__nav {
    width: 40px; height: 40px; border: 1px solid rgb(237 241 237 / .5); border-radius: 50%;
    background: transparent; color: inherit; font-size: 1rem; transition: background .2s, color .2s;
}
.cal__nav:hover:not(:disabled) { background: var(--rra-grau); color: var(--rr-schwarz); }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 1.25rem; text-align: center; }
.cal__wd { padding-bottom: .35rem; font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cal__day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: .85rem; font-variant-numeric: tabular-nums; }
.cal__day.is-out { opacity: .3; }
.cal__day.is-past:not(.is-today) { opacity: .55; }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--rra-grau); }
.cal__day.has-events { background: var(--rr-gelb); color: var(--rr-schwarz); font-weight: 700; opacity: 1; cursor: help; }
.cal__empty { margin: 0 0 1rem; font-size: .9rem; opacity: .8; }
.cal__subscribe { display: inline-block; margin-top: 1rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; }
.cal__subscribe:hover { color: var(--rr-gelb); }

/* Nummerierte Liste ("Was wir machen", Schritte) */
.numbered { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
.numbered--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.numbered__item { display: grid; grid-template-columns: 3.5rem 1fr; padding: 1.6rem 0 1.4rem; border-top: 1px solid var(--line); }
.numbered__num { grid-row: span 2; font-size: .8rem; font-weight: 500; color: var(--rr-rot); padding-top: .55rem; }
.numbered__title { margin: 0 0 .4rem; font: 400 clamp(2rem, 3vw, 2.6rem)/.95 var(--display); text-transform: uppercase; color: var(--rr-schwarz); }
.numbered__item p { grid-column: 2; margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 800px) { .numbered, .numbered--three { grid-template-columns: 1fr; } }
section > .wrap > .display--section { color: var(--rr-schwarz); }

/* Werte */
.frame--values .frame__inner { min-height: min(92vh, 860px); display: grid; place-items: center; text-align: center; }
.frame--values .frame__photo { position: absolute; inset: 0; z-index: -2; height: 100%; }
.frame--values .frame__inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(26 26 24 / .5); }
.values { padding: 4rem 1rem; }
.values__list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: .15rem; font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; line-height: 1.25; }
.values__motto { margin: 0; font: 400 clamp(2.6rem, 6vw, 5.5rem)/.9 var(--display); text-transform: uppercase; }

/* Zeilenlisten (Altersstufen, Kontakte) */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: .75rem 2rem; align-items: center;
    padding: 1.35rem 0; border-top: 1px solid var(--line-light); text-decoration: none;
}
.rows > li:last-child .row { border-bottom: 1px solid var(--line-light); }
.row__title { font: 400 clamp(2.3rem, 4.4vw, 3.6rem)/.9 var(--display); text-transform: uppercase; transition: transform .3s var(--ease); }
.row__body { display: grid; gap: .5rem; }
.row__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.row__note { font-size: .9rem; color: rgb(237 241 237 / .75); max-width: 60ch; }
.row__mail { font-weight: 600; }
.row__arrow { font-size: 1.6rem; line-height: 1; transition: transform .3s var(--ease); }
.row:hover .row__title { transform: translateX(.4rem); }
.row:hover .row__arrow { transform: translate(.2rem, -.2rem); }
.rows--light .row, .rows--light > li:last-child .row { border-color: var(--line); }
.rows--light .row__title { color: var(--rr-schwarz); }
.rows--light .row__note { color: var(--muted); }
@media (max-width: 700px) {
    .row { grid-template-columns: 1fr auto; }
    .row__body { grid-column: 1 / -1; grid-row: 2; }
}

/* Blog-Kacheln */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); color: var(--rr-schwarz); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.2rem); }
.tile {
    position: relative; display: flex; flex-direction: column; min-height: 380px;
    padding: 1.3rem; border-radius: var(--r-photo); background: var(--rr-braun); color: var(--rra-grau);
    transition: background .25s;
}
.tile:hover { background: var(--rr-braun-90); }
.tile__label { margin: 0 0 .5rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.tile__title { margin: 0 0 1.5rem; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; line-height: 1.12; text-transform: uppercase; max-width: 18ch; }
.tile__title a { text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; }
.tile__photo { margin-top: auto; align-self: flex-end; width: 64%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: width .4s var(--ease); }
.tile:hover .tile__photo { width: 70%; }
.tiles--blog .tile:first-child { grid-column: span 2; min-height: 460px; }
.tiles--blog .tile:first-child .tile__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); max-width: 20ch; }
.tiles--blog .tile:first-child .tile__photo { width: 50%; }
@media (max-width: 900px) {
    .tiles { grid-template-columns: 1fr 1fr; }
    .tiles--blog .tile:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 320px; } }

/* Aufruf */
.cta { border-radius: var(--r-frame); background-color: var(--rr-schwarz); color: var(--rra-grau); text-align: center; padding: clamp(3rem, 7vw, 6rem) var(--gutter); }
.cta__title { margin: 0 0 1.5rem; font: 400 clamp(5rem, 17vw, 15rem)/.8 var(--display); text-transform: uppercase; color: var(--rr-gelb); }
.cta p { max-width: 46ch; margin: 0 auto 2rem; font-size: 1.1rem; }

/* Fließtext ---------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose--lead { font-size: 1.18rem; line-height: 1.6; color: var(--rr-schwarz); }
.prose--article { font-size: 1.1rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .5em; font: 400 clamp(2.2rem, 3.6vw, 3rem)/.92 var(--display); text-transform: uppercase; color: var(--rr-schwarz); }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rr-schwarz); }
.prose h4 { margin: 1.5em 0 .4em; font-size: 1rem; font-weight: 600; }
.prose a { color: var(--rr-rot); text-underline-offset: 3px; }
.prose a:hover { color: var(--rr-braun); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--rr-rot); }
.prose strong { font-weight: 650; }
.prose img { border-radius: var(--r-photo); }
.back-link { margin-top: 3rem; }

/* Altersstufe */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split__aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list li { display: grid; gap: .1rem; padding: 1rem 0; border-top: 1px solid var(--line-light); }
.team-list strong { font: 400 2rem/.95 var(--display); text-transform: uppercase; }
.team-list span { font-size: .9rem; opacity: .75; }
.team-list img { border-radius: 12px; margin-bottom: .75rem; }
.siblings { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.siblings--top { margin: 0 0 clamp(2rem, 4vw, 3rem); }

/* Mitmachen: Anmeldung */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 1.5rem 3rem; align-items: start; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-frame); background: var(--rr-sand); color: var(--rr-schwarz); }
.signup .prose p:last-child { margin: 0; }
.signup__actions { display: grid; gap: .5rem; }
@media (max-width: 960px) { .signup { grid-template-columns: 1fr; } }

/* Galerie ------------------------------------------------------------------ */
.gallery-year { margin-bottom: clamp(3rem, 6vw, 5rem); }
.gallery-year__title { display: flex; align-items: center; gap: 1.5rem; margin: 0 0 1.5rem; font: 400 clamp(4rem, 10vw, 8rem)/.8 var(--display); color: var(--rra-blau); }
.gallery-year__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gallery-heading { margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; color: var(--rr-schwarz); }
.album { margin-bottom: 2.5rem; }
.album__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; color: var(--rr-schwarz); }
.album__title { margin: 0; font: 400 2.2rem/.9 var(--display); text-transform: uppercase; }
.album__head .pill { margin-left: auto; }
.masonry { columns: 3 260px; column-gap: .75rem; }
.masonry__item { display: block; margin-bottom: .75rem; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--rr-sand); cursor: zoom-in; }
.masonry__item img { width: 100%; transition: transform .6s var(--ease); }
.masonry__item:hover img { transform: scale(1.03); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(26 26 24 / .96); color: var(--rra-grau); }
.lightbox[open] { display: grid; place-items: center; animation: fade .2s ease-out; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 86dvh; width: auto; border-radius: 14px; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(237 241 237 / .4); border-radius: 50%; background: transparent; color: var(--rra-grau); font-size: 1.2rem; }
.lightbox__btn:hover { background: var(--rra-grau); color: var(--rr-schwarz); }
.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__counter { position: fixed; bottom: 1rem; left: 50%; translate: -50% 0; margin: 0; font-size: .8rem; letter-spacing: .1em; opacity: .7; }
@keyframes fade { from { opacity: 0; } }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }

/* Kontakt + Formulare ------------------------------------------------------ */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact__rows .row { grid-template-columns: 1fr auto; }
.contact__rows .row__body { grid-column: 1 / -1; grid-row: 2; }
.form-panel .display { margin-bottom: 1.5rem; }
.form-panel .prose { max-width: none; }

form .field { margin: 0 0 1rem; border: 0; padding: 0; }
form label.left, form legend.left { display: block; margin-bottom: .4rem; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=date], form input[type=number], form select, form textarea {
    width: 100%; padding: .9rem 1.25rem; border: 1px solid var(--line); border-radius: 999px;
    background-color: #fff; color: var(--ink); font: inherit; font-size: .98rem; transition: border-color .2s, background-color .2s;
}
form textarea { min-height: 150px; border-radius: 22px; resize: vertical; }
form select { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351665f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 16px; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--rra-blau); }
form input[type=file] { width: 100%; padding: .9rem; border: 1px dashed var(--line); border-radius: 22px; font: inherit; font-size: .9rem; }
form input[type=file]::file-selector-button { margin-right: 1rem; padding: .55rem 1rem; border: 0; border-radius: 999px; background: var(--rr-schwarz); color: var(--rra-grau); font: 500 .85rem var(--body); cursor: pointer; }
form .message, form span.message { display: block; margin-top: .4rem; font-size: .85rem; color: #e2694f; }
form .description, form .right-title { font-size: .82rem; opacity: .7; }
form .Actions, form .btn-toolbar { margin-top: 1.5rem; }
form input[type=submit], form button[type=submit], form .action {
    padding: .95rem 1.9rem; border: 0; border-radius: 999px; background: var(--rr-rot); color: #fff;
    font: 500 .95rem var(--body); cursor: pointer; transition: background .2s;
}
form input[type=submit]:hover, form button[type=submit]:hover, form .action:hover { background: var(--rr-braun); }
.userform fieldset { border: 0; padding: 0; margin: 0; }
.userform .form-step > legend, .userform-progress, .step-navigation .step-button-prev, .userform .FormHeading { display: none; }
form [type=reset] { display: none; }

/* Formular auf dunklem Panel */
.panel--dark form input[type=text], .panel--dark form input[type=email], .panel--dark form input[type=tel], .panel--dark form select, .panel--dark form textarea, .panel--slate form input[type=text], .panel--slate form input[type=email], .panel--slate form input[type=tel], .panel--slate form select, .panel--slate form textarea {
    background-color: rgb(237 241 237 / .12); border-color: transparent; color: var(--rra-grau);
}
.panel--dark form select, .panel--slate form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edf1ed' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.panel--dark form select option, .panel--slate form select option { color: var(--ink); }
.panel--dark form input:focus, .panel--dark form select:focus, .panel--dark form textarea:focus, .panel--slate form input:focus, .panel--slate form select:focus, .panel--slate form textarea:focus { border-color: rgb(237 241 237 / .6); background-color: rgb(237 241 237 / .18); }
.panel--dark form input[type=submit], .panel--dark form button[type=submit], .panel--slate form input[type=submit], .panel--slate form button[type=submit] { background: var(--rr-rot); color: #fff; }
.panel--dark form input[type=submit]:hover, .panel--dark form button[type=submit]:hover, .panel--slate form input[type=submit]:hover, .panel--slate form button[type=submit]:hover { background: var(--rr-braun); }

/* Footer ------------------------------------------------------------------- */
.site-footer { margin: clamp(2rem, 5vw, 4rem) var(--frame-gap) var(--frame-gap); border-radius: var(--r-frame); background: var(--rr-schwarz); color: rgb(237 241 237 / .82); font-size: .92rem; overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) 0; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer .label { color: var(--rr-gelb); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--rra-grau); text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { margin-bottom: .75rem; }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; }
.footer-social .icon { width: 20px; height: 20px; color: var(--rr-rot); }
.site-footer__logo { width: 190px; filter: invert(1); opacity: .85; }
.site-footer__wordmark {
    margin: clamp(1.5rem, 4vw, 3rem) 0 0; text-align: center; white-space: nowrap;
    font: 400 clamp(4rem, 17.6vw, 21rem)/.78 var(--display); text-transform: uppercase; color: var(--rr-schwarz-90); letter-spacing: -.005em;
    user-select: none;
}
.site-footer__bottom { padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line-light); }
.funding { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: .9rem 1.2rem; margin-bottom: 1.25rem; border-radius: 16px; background: #fff; color: var(--muted); }
.funding img { height: 52px; width: auto; }
.funding p { flex: 1 1 260px; margin: 0; font-size: .8rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; font-size: .8rem; }
.site-footer__legal span { opacity: .7; }
.to-top { margin-left: auto; }

/* Einblenden beim Scrollen (per JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stufenfarben (am Ende, damit sie Standardwerte überschreiben) */
.tone--sun { --tone: var(--tone-sun); }
.tone--leaf { --tone: var(--tone-leaf); }
.tone--sky { --tone: var(--tone-sky); }
.tone--ember { --tone: var(--tone-ember); }
.tone--night { --tone: var(--tone-night); }
.tone--earth { --tone: var(--tone-earth); }

/* Rückmelde-Formular */
.rr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rr-response-form .optionset { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rr-response-form .optionset li { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 14px; background: rgb(237 241 237 / .12); cursor: pointer; }
.rr-response-form .optionset li:has(input:checked) { background: var(--rr-gelb); color: var(--rr-schwarz); }
.rr-response-form .optionset input { accent-color: var(--rr-rot); width: 1.1rem; height: 1.1rem; margin: 0; }
.rr-response-form .optionset label { margin: 0; cursor: pointer; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1rem; opacity: 1; }
.rr-response-form .description { display: block; margin-top: .35rem; }
.rr-thanks { padding: 1.5rem; border-radius: 18px; background: var(--rr-gelb); color: var(--rr-schwarz); }
.rr-thanks__title { font: 400 1.9rem/1 var(--display); text-transform: uppercase; margin-bottom: .6rem; }
.form-panel .message.good, .form-panel .message.bad { padding: .75rem 1rem; border-radius: 12px; background: var(--rra-grau); color: var(--rr-schwarz); }
.rr-response-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rr-response-form .optionset > legend, .rr-response-form fieldset.field > legend, .rr-response-form .field.optionset > label.left {
    display: block; margin-bottom: .4rem; padding: 0; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .8;
}

/* Altersstufen als aufklappbare Abschnitte (Mitmachen) */
.age-acc > li { scroll-margin-top: calc(var(--header-h) + 1rem); }
.acc > summary { list-style: none; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:focus-visible { outline-offset: -2px; }
.acc__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(237 241 237 / .45); border-radius: 50%; font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease), background .2s; }
.acc[open] .acc__icon { transform: rotate(45deg); background: var(--rr-gelb); color: var(--rr-schwarz); border-color: var(--rr-gelb); }
.acc[open] > summary .row__title { color: var(--rr-gelb); }
.acc__panel { padding: .25rem 0 2rem; max-width: 72ch; animation: fade .25s ease-out; }
.acc__lead { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--display); text-transform: uppercase; margin-bottom: 1rem; }
.acc__prose { color: rgb(237 241 237 / .9); margin-bottom: 1.5rem; }
.acc__prose h2, .acc__prose h3 { color: var(--rra-grau); }
.acc__prose a { color: var(--rr-gelb); }
.acc__prose li::marker { color: var(--rr-gelb); }

/* CSP ohne 'unsafe-inline' für Styles: Framework-Vorlagen verstecken leere Meldungen per style="display:none" –
   das Attribut wird blockiert, bleibt aber im DOM. Per JS gesetzte Styles (show/hide) funktionieren weiterhin. */
[style*="display:none"], [style*="display: none"] { display: none; }

/* ---------- Leitung: Rückmeldungen (/leitung) ---------- */
.leader-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; font-size: .9rem; color: var(--muted); }
.leader-bar__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.leader-bar a { color: var(--rr-schwarz); text-underline-offset: 3px; }
.leader-list { display: grid; gap: 1rem; }
.leader-event { background: var(--rr-sand); border-radius: var(--r-frame); padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: 1.1rem; justify-items: start; }
.leader-event--today { outline: 3px solid var(--rr-gelb); }
.leader-event__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; width: 100%; }
.leader-event__day { margin: 0 0 .2rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rr-rot); }
.leader-event__title { margin: 0; font: 400 clamp(1.9rem, 4vw, 2.6rem)/.95 var(--display); text-transform: uppercase; }
.leader-event__place { margin: .35rem 0 0; font-size: .88rem; color: var(--muted); }
.leader-event__counts { display: flex; gap: .5rem; }
.leader-count { display: grid; justify-items: center; min-width: 4.6rem; padding: .55rem .8rem; border-radius: 14px; font-size: .78rem; line-height: 1.1; }
.leader-count strong { font: 400 2.2rem/1 var(--display); }
.leader-count--yes { background: var(--rr-schwarz); color: var(--rra-grau); }
.leader-count--no { background: rgb(26 26 24 / .08); color: var(--rr-schwarz); }
.leader-event__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; width: 100%; }
.leader-event__sub { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.leader-names { list-style: none; margin: 0; padding: 0; }
.leader-names li { display: grid; padding: .45rem 0; border-top: 1px solid var(--line); }
.leader-names__name { font-weight: 600; }
.leader-names__note { font-size: .88rem; color: var(--muted); }
.leader-names__none { margin: 0; color: var(--muted); font-size: .9rem; }
.leader-empty { color: var(--muted); }
.leader-past { margin-top: 2rem; }
.leader-past > summary { cursor: pointer; font-weight: 600; margin-bottom: 1rem; }
.leader-hint { margin-top: 2rem; font-size: .8rem; color: var(--muted); }
.leader-page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.leader-title { margin: 0 0 .75rem; }
