/* Vereinswebseite (Modul „Webseite“). Farben und Schriften kommen je Verein als CSS-Variablen aus lib/site.js;
   die Design-Vorlagen (body.design-…) ändern nur Kopfzeile, Formen und Typografie. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f4f6f5;
  --text: #1d2624;
  --muted: #5f6b67;
  --border: #e1e6e3;
  --success: #2e7d32;
  --success-soft: #e6f4e7;
  --warning-soft: #fff5d6;
  --radius: 12px;
  --radius-btn: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .05), 0 6px 20px rgba(20, 30, 28, .06);
  --wrap: 90vw;
  --header-bg: var(--surface);
  --header-text: var(--text);
  --heading-weight: 700;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body, system-ui, sans-serif); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--font-heading, inherit); font-weight: var(--heading-weight); line-height: 1.25; color: var(--text); }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.s-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 2vw, 1.5rem); }
.s-skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
.s-skip:focus { left: 1rem; }
.s-pre { white-space: pre-line; }
.s-hint { background: var(--warning-soft); padding: 1rem 1.2rem; border-radius: var(--radius); }
.s-preview-bar { background: #2b2f2e; color: #fff; font-size: .85rem; padding: .45rem 1rem; text-align: center; position: sticky; top: 0; z-index: 60; }
.s-preview-bar a { color: #ffd772; }

/* ---- Buttons ---- */
.s-btn, .sc-button { display: inline-block; padding: .6rem 1.2rem; border-radius: var(--radius-btn); background: var(--primary); color: var(--on-primary) !important;
  font-weight: 600; text-decoration: none; border: 2px solid var(--primary); line-height: 1.3; transition: filter .15s, transform .15s; }
.s-btn:hover, .sc-button:hover { filter: brightness(1.08); }
.s-btn-ghost, .sc-button.secondary { background: transparent; color: var(--primary) !important; }
.s-btn-large { padding: .8rem 1.6rem; font-size: 1.05rem; }
.s-btn-light { background: rgba(255, 255, 255, .92); border-color: transparent; color: var(--primary-dark) !important; }

/* ---- Kopfbereich (Optionen aus Webseite → Design: hdr-*, nav-*, navs-*, navalign-*, brand-*) ---- */
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s-headwrap { position: relative; z-index: 40; }
.is-sticky .s-headwrap { position: sticky; top: 0; }
.s-topbar { height: 6px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); }
.s-header { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--border); position: relative; }
.hdr-hell { --header-bg: #fff; --header-text: var(--text); }
.hdr-farbig { --header-bg: var(--brand); --header-text: var(--on-brand); }
.hdr-dunkel { --header-bg: #15191b; --header-text: #f1f3f2; }
.hdr-bild { --header-bg: #1d2321; --header-text: #fff; }
.hdr-farbig .s-header, .hdr-dunkel .s-header, .hdr-bild .s-header { border-bottom: 0; }
.hdr-bild .s-header { background: linear-gradient(rgba(0, 0, 0, var(--header-ov, .3)), rgba(0, 0, 0, var(--header-ov, .3))), var(--header-img) center / cover no-repeat; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.s-header-in { display: flex; align-items: center; gap: .6rem 1.4rem; min-height: max(76px, var(--header-min, 0px)); padding-top: .7rem; padding-bottom: .7rem; }
.s-brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; flex: 0 1 auto; }
.s-brand:hover { color: inherit; }
.s-logo { height: var(--logo-h, 56px); width: auto; max-width: min(70vw, 520px); object-fit: contain; flex: none; }
.s-brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 340px; }
.s-brand-text strong { font-family: var(--font-heading, inherit); font-size: 1.15rem; line-height: 1.2; }
.s-brand-text small { color: inherit; opacity: .78; font-size: .85rem; }
.brand-mitte .s-header-in { flex-wrap: wrap; justify-content: center; }
.brand-mitte .s-brand { flex-direction: column; text-align: center; margin: 0 auto; flex-basis: 100%; justify-content: center; }
.brand-mitte .s-brand-text { max-width: none; align-items: center; }
.brand-mitte .s-brand-text strong { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.brand-mitte .s-tools { position: absolute; right: 1.25rem; top: .9rem; }
.brand-mitte.nav-kopf .s-nav { flex-basis: 100%; justify-content: center; }
.s-tools { display: flex; align-items: center; gap: .5rem; flex: none; }
.s-tools .s-btn { padding: .42rem .9rem; font-size: .92rem; white-space: nowrap; }
/* Bei vielen Menüpunkten im Kopfbereich zuerst „Mitgliederbereich“, dann die Social-Links ausblenden */
@media (max-width: 1360px) { .nav-kopf .s-tools .s-btn-ghost { display: none; } }
@media (max-width: 1440px) { .nav-kopf .s-tools .s-social { display: none; } }
.nav-kopf .s-tools { margin-left: .6rem; }
.hdr-farbig .s-tools .s-btn, .hdr-dunkel .s-tools .s-btn, .hdr-bild .s-tools .s-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.hdr-farbig .s-tools .s-btn-ghost, .hdr-dunkel .s-tools .s-btn-ghost, .hdr-bild .s-tools .s-btn-ghost { background: transparent; border-color: currentColor; color: inherit !important; }
.s-social { display: flex; gap: .15rem; margin-right: .3rem; }
.s-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: inherit; opacity: .75; text-decoration: none; transition: opacity .15s, background .15s; }
.s-social a:hover, .s-social a:focus-visible { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.s-icon { width: 20px; height: 20px; display: block; }
.s-footer-social { margin-top: .8rem !important; margin-left: -.5rem; }
.s-footer .s-social a { color: #fff; }

/* Menü */
.s-nav { display: flex; align-items: center; min-width: 0; }
.s-nav > ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .1rem; margin: 0; padding: 0; }
.s-nav li { position: relative; }
.s-nav a { color: inherit; text-decoration: none; }
.s-nav > ul > li > a { display: block; padding: .45rem .75rem; border-radius: var(--radius-btn); font-weight: 500; white-space: nowrap; }
.s-nav > ul > li > a:hover, .s-nav > ul > li.active > a { background: var(--primary-soft); color: var(--primary-dark); }
.hdr-farbig .nav-kopf .s-nav > ul > li > a:hover, .hdr-dunkel.nav-kopf .s-nav > ul > li > a:hover, .hdr-bild.nav-kopf .s-nav > ul > li > a:hover,
.hdr-farbig.nav-kopf .s-nav > ul > li > a:hover, .hdr-farbig.nav-kopf .s-nav > ul > li.active > a,
.hdr-dunkel.nav-kopf .s-nav > ul > li.active > a, .hdr-bild.nav-kopf .s-nav > ul > li.active > a { background: rgba(255, 255, 255, .16); color: inherit; }
.s-nav .has-sub > a::after { content: " ▾"; font-size: .75em; opacity: .7; }
.s-sub { list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: none; z-index: 50; text-shadow: none; }
.s-nav li:hover > .s-sub, .s-nav li:focus-within > .s-sub { display: block; }
.s-sub a { display: block; padding: .45rem .7rem; border-radius: 6px; }
.s-sub a:hover, .s-sub .active a { background: var(--primary-soft); }
/* Menüleiste unter dem Kopfbereich */
.s-navbar { border-top: 1px solid var(--border); background: var(--header-bg); color: var(--header-text); }
.s-navbar .s-nav > ul { justify-content: flex-end; }
.navalign-links .s-navbar .s-nav > ul { justify-content: flex-start; }
.navalign-mitte .s-navbar .s-nav > ul { justify-content: center; }
.s-navbar .s-nav > ul > li > a { padding: .75rem .9rem; border-radius: 0; }
.navs-farbig .s-navbar { background: var(--brand); color: var(--on-brand); border-top: 3px solid var(--accent); }
.navs-farbig .s-navbar .s-nav > ul > li > a:hover, .navs-farbig .s-navbar .s-nav > ul > li.active > a { background: rgba(0, 0, 0, .15); color: inherit; }
/* Stil: Trennlinien (volle Höhe, kleine Schrift) */
.navs-trennlinien .s-nav > ul { gap: 0; flex-wrap: nowrap; }
/* Viele Menüpunkte: im Kopf kompakter und notfalls zweizeilig statt abgeschnitten */
.navs-trennlinien.nav-kopf .s-nav > ul { flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 1081px) { .navs-trennlinien.nav-kopf .s-nav > ul:has(> li:nth-child(10)) > li > a { padding-left: .45rem; padding-right: .45rem; font-size: .75rem; } }
.navs-trennlinien .s-nav > ul > li { border-left: 1px solid var(--border); }
.navs-trennlinien .s-nav > ul > li:last-child { border-right: 1px solid var(--border); }
.navs-trennlinien .s-nav > ul > li > a { font-size: .8rem; padding: 1.6rem .8rem; border-radius: 0; color: var(--muted); }
.navs-trennlinien .s-nav > ul > li > a:hover, .navs-trennlinien .s-nav > ul > li.active > a { background: transparent; color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }
.navs-trennlinien.nav-kopf .s-header-in { padding-top: 0; padding-bottom: 0; align-items: stretch; }
.navs-trennlinien.nav-kopf .s-brand, .navs-trennlinien.nav-kopf .s-tools { padding: .7rem 0; }
.navs-trennlinien.nav-kopf .s-nav > ul { align-self: stretch; }
.navs-trennlinien.nav-kopf .s-nav > ul > li > a { height: 100%; display: flex; align-items: center; }
/* Stil: unterstrichen */
.navs-unterstrichen .s-nav > ul > li > a { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; border-radius: 0; }
.navs-unterstrichen .s-nav > ul > li > a:hover, .navs-unterstrichen .s-nav > ul > li.active > a { background: transparent !important; color: inherit; box-shadow: inset 0 -2px 0 var(--accent); }
/* Menü als Spalte neben dem Inhalt */
.s-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-top: 2.5rem; }
.nav-seite-rechts .s-layout { grid-template-columns: minmax(0, 1fr) 250px; }
.nav-seite-rechts .s-sidenav { order: 2; }
.s-layout .s-main { padding-top: 0; }
.s-layout-main .s-wrap { padding: 0; max-width: none; }
.s-sidenav { position: sticky; top: 1rem; }
.s-sidenav .s-nav { display: block; }
.s-sidenav .s-nav > ul { flex-direction: column; flex-wrap: nowrap; gap: .15rem; background: var(--soft); border-radius: var(--radius); padding: .6rem; border: 0 !important; }
.s-sidenav .s-nav > ul > li { border: 0 !important; }
.s-sidenav .s-nav > ul > li > a { padding: .55rem .8rem !important; white-space: normal; height: auto !important; box-shadow: none !important; font-size: .95rem !important; color: inherit; text-transform: none !important; letter-spacing: 0 !important; }
.s-sidenav .s-nav > ul > li.active > a { background: var(--primary) !important; color: var(--on-primary) !important; }
.s-sidenav .s-sub { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 .3rem .8rem; min-width: 0; }
.s-sidenav .has-sub > a::after { content: ""; }
.s-burger { display: none; cursor: pointer; width: 44px; height: 44px; border-radius: var(--radius-btn); flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent; border: 0; color: inherit; flex: none; }
.s-burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .s-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .s-burger span:nth-child(2) { opacity: 0; }
.nav-open .s-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Begrüßungsbereich mit Hintergrundbild oder Slider ---- */
.s-hero { position: relative; color: var(--on-brand); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); overflow: hidden; }
.s-slides { display: grid; }
.s-slide { grid-area: 1 / 1; display: flex; align-items: center; min-height: var(--hero-h, 440px); padding: 3rem 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.s-slide.is-active { opacity: 1; visibility: visible; }
.s-slide.has-image { background: linear-gradient(rgba(0, 0, 0, var(--ov, .4)), rgba(0, 0, 0, var(--ov, .4))), var(--hero-img) center / cover no-repeat; color: #fff; }
.hero-klein { --hero-h: 280px; } .hero-mittel { --hero-h: 440px; } .hero-gross { --hero-h: 600px; } .hero-voll { --hero-h: calc(100vh - 120px); }
.s-hero-in { width: 100%; }
.s-caption { max-width: 52rem; margin: 0 auto; text-align: center; }
.s-caption .s-hero-actions { justify-content: center; }
.s-page-head { text-align: center; }
.s-cap-title { color: inherit; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .8rem; line-height: 1.15; font-family: var(--font-heading, inherit); font-weight: var(--heading-weight); }
.s-cap-text { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 0 0 1.8rem; opacity: .95; white-space: pre-line; }
.s-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }
.s-hero .s-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.s-hero .s-btn-light { background: rgba(255, 255, 255, .92); border-color: transparent; color: var(--primary-dark) !important; }
/* Beschriftung in dunklen Boxen (zentriert) */
.cap-box .s-caption { margin: 0 auto; text-align: center; max-width: 52rem; }
.cap-box .s-cap-title span, .cap-box .s-cap-text span { display: inline; background: rgba(0, 0, 0, .55); padding: .15em .45em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.55; }
.cap-box .s-cap-title { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; color: color-mix(in srgb, var(--brand) 55%, #fff); font-weight: 500; margin-bottom: .2rem; }
.cap-box .s-cap-text { font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: #fff; }
.cap-box .s-hero-actions { justify-content: center; }
/* Beschriftung in heller Karte */
.cap-karte .s-caption { background: rgba(255, 255, 255, .94); color: var(--text); padding: 1.6rem 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 34rem; }
.cap-karte .s-cap-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--text); }
.cap-karte .s-cap-text { margin-bottom: 1.2rem; }
.s-slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; z-index: 2; }
.s-slide-nav:hover { background: rgba(0, 0, 0, .6); }
.s-slide-nav.prev { left: 1rem; } .s-slide-nav.next { right: 1rem; }
.s-dots { position: absolute; left: 0; right: 0; bottom: 1rem; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.s-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.s-dots button[aria-current="true"] { background: #fff; }
html:not(.js) .s-slide-nav, html:not(.js) .s-dots { display: none; }
.tpl-landing .s-main:has(> .s-wrap > .s-content > .s-overlap:first-child) { padding-top: 0; }
.s-page-head { background: var(--primary-soft); padding: 3rem 0 2.5rem; }
.s-page-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.s-page-head.has-image { background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), var(--hero-img) center / cover no-repeat; padding: 6rem 0 3rem; }
.s-page-head.has-image h1 { color: #fff; }

/* ---- Inhalt ---- */
.s-main { padding: 3rem 0 4rem; min-height: 40vh; }
.s-content > :first-child { margin-top: 0; }
.s-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.s-sidebar { display: grid; gap: 1.2rem; }
.s-widget { background: var(--soft); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.s-widget h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.s-widget .sc-events li { grid-template-columns: 52px 1fr; padding: .5rem 0; }
.s-widget .sc-event-text { display: none; }
.s-widget .sc-events { margin: 0; } .s-widget .sc-events li:last-child { border: 0; padding-bottom: 0; }
.s-widget .sc-contact { padding: 0; background: none; }
.s-widget .sc-actions { margin: .5rem 0 0; }
.s-widget-list { list-style: none; margin: 0; padding: 0; }
.s-widget-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.s-widget-list li:last-child { border: 0; }
.s-widget-list small { display: block; color: var(--muted); }
.s-news-meta { color: var(--muted); }
.s-news-cover { margin: 0 0 1.5rem; } .s-news-cover img { width: 100%; border-radius: var(--radius); }
.s-back { margin-top: 2.5rem; }

.news-content { overflow-wrap: anywhere; }
.news-content h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.news-content h3 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.news-content p { margin: 0 0 1.1rem; }
.news-content img { border-radius: var(--radius); }
.news-content blockquote { margin: 1.4rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--accent); background: var(--primary-soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.news-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.news-content th, .news-content td { border: 1px solid var(--border); padding: .55rem .75rem; text-align: left; }
.news-content th { background: var(--primary-soft); }
.news-content iframe, .news-content .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); display: block; margin: 1.2rem 0; }
.news-content .ql-align-center { text-align: center; } .news-content .ql-align-right { text-align: right; } .news-content .ql-align-justify { text-align: justify; }
.news-content li[data-list="bullet"] { list-style-type: disc; } .news-content li[data-list="ordered"] { list-style-type: decimal; }
.news-content .ql-ui { display: none; }
.news-content details { border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1.1rem; margin: 0 0 .7rem; background: var(--surface); }
.news-content summary { cursor: pointer; font-weight: 600; }
.news-content details[open] summary { margin-bottom: .6rem; }
.news-box { padding: 1.1rem 1.3rem; border-radius: var(--radius); margin: 1.4rem 0; border-left: 5px solid var(--primary); background: var(--primary-soft); }
.news-box > :last-child { margin-bottom: 0; } .news-box h3 { margin-top: 0; }
.news-box.success { border-color: var(--success); background: var(--success-soft); }
.news-box.warning { border-color: var(--accent); background: var(--warning-soft); }
.news-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin: 1.5rem 0; }
.news-columns > div { background: var(--soft); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.news-columns > div > :first-child { margin-top: 0; } .news-columns > div > :last-child { margin-bottom: 0; }
.news-button { display: inline-block; padding: .65rem 1.3rem; border-radius: var(--radius-btn); background: var(--primary); color: var(--on-primary) !important; text-decoration: none; font-weight: 600; }
.news-figure { margin: 1.4rem 0; } .news-figure img { width: 100%; }
.news-figure figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.news-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.news-facts > div { background: var(--primary-soft); border-radius: var(--radius); padding: 1.3rem; text-align: center; }
.news-facts strong { display: block; font-size: 2rem; color: var(--primary); font-family: var(--font-heading, inherit); }
.news-facts span { color: var(--muted); font-size: .95rem; }
.news-video iframe { width: 100%; aspect-ratio: 16 / 9; }

/* ---- Bausteine (Platzhalter) ---- */
.sc-empty { color: var(--muted); font-style: italic; }
.sc-actions { margin: 1.5rem 0; }
.sc-tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--primary-dark); background: var(--primary-soft); padding: .15rem .55rem; border-radius: 999px; }
.sc-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); justify-content: center; gap: 1.5rem; margin: 1.2rem 0 2rem; }
.sc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.sc-card-media { display: block; aspect-ratio: 16 / 9; background: var(--primary-soft); overflow: hidden; }
.sc-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .3s; }
.sc-card:hover .sc-card-media img { transform: scale(1.04); }
.sc-card-media.no-image { display: grid; place-items: center; text-decoration: none; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--accent) 25%, var(--primary-soft))); }
.sc-card-media.no-image span { font-size: 3rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading, inherit); }
.sc-card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.sc-card-body h3 { margin: .2rem 0 0; font-size: 1.15rem; }
.sc-card-body h3 a { color: var(--text); text-decoration: none; }
.sc-card-body h3 a:hover { color: var(--primary); }
.sc-card-body p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.sc-card-body time { font-size: .85rem; color: var(--muted); }
.sc-events { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.sc-events li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.sc-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: .45rem .2rem; line-height: 1.15; }
.sc-date strong { font-size: 1rem; } .sc-date small { font-size: .75rem; opacity: .85; }
.sc-event-body { display: flex; flex-direction: column; gap: .1rem; }
.sc-event-body > span { color: var(--muted); font-size: .95rem; }
.sc-event-body .sc-event-text { color: var(--text); }
.sc-event-body a { font-size: .85rem; }
.sc-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 380px)); justify-content: center; gap: 1.3rem; margin: 1rem 0 2rem; }
.sc-course { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--surface); box-shadow: var(--shadow); }
.sc-course h3 { margin: .5rem 0 .4rem; }
.sc-course p { margin: 0 0 .6rem; font-size: .95rem; }
.sc-course-free { color: var(--primary-dark); font-weight: 600; }
.sc-course .sc-button { padding: .4rem .9rem; font-size: .9rem; }
.sc-docs { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.sc-docs li { display: grid; grid-template-columns: 52px 1fr; column-gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.sc-doc-ext { grid-row: span 2; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: .75rem; border-radius: 8px; display: grid; place-items: center; height: 44px; }
.sc-docs small { color: var(--muted); }
.sc-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 240px)); justify-content: center; gap: 1.6rem; margin: 1.2rem 0 2rem; }
.sc-person { text-align: center; }
.sc-photo { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center; overflow: hidden; background: var(--primary-soft); color: var(--primary); font-size: 2.2rem; font-weight: 700; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sc-person h3 { margin: 0; font-size: 1.1rem; }
.sc-person p { margin: .2rem 0; font-size: .92rem; }
.sc-role { color: var(--muted); }
.sc-contact { background: var(--soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; line-height: 1.6; }

/* ---- Gestaltungsbausteine (Webseite → Seite → HTML-Code) ---- */
body { overflow-x: clip; }
.s-content .s-full { width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }
.s-layout-main .s-content .s-full, .tpl-seitenleiste .s-main .s-content .s-full, .tpl-standard .s-main .s-content .s-full { width: auto; margin-left: 0 !important; border-radius: var(--radius); }
.s-section-title { text-align: center; margin: 3rem 0 1.5rem; }
.s-section-title small { display: block; color: var(--muted); font-size: .9rem; }
.s-section-title h2 { margin: .1rem 0 0 !important; font-size: clamp(1.6rem, 3vw, 2.1rem); text-transform: uppercase; letter-spacing: .02em; font-weight: 400; border: 0 !important; }
.s-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0 0 3rem; position: relative; z-index: 3; }
.s-tiles > div { background: var(--brand); color: var(--on-brand); text-align: center; padding: 2rem 1.8rem 2.2rem; }
.s-tiles > div:nth-child(3n+2) { background: color-mix(in srgb, var(--brand) 85%, #fff); }
.s-tiles > div:nth-child(3n) { background: color-mix(in srgb, var(--brand) 68%, #fff); }
.s-tiles h3 { color: inherit !important; text-transform: uppercase; font-size: 1.05rem; font-weight: 500; margin: .8rem 0 .6rem !important; }
.s-tiles p { margin: 0 0 1rem; font-size: .95rem; }
.s-tiles img { max-height: 72px; width: auto; border-radius: 0 !important; filter: brightness(0) invert(1); }
.s-tile-icon { font-size: 2.8rem; line-height: 1; display: block; }
.s-outline { display: inline-block; border: 2px solid currentColor; color: inherit !important; padding: .35rem .9rem; text-decoration: none; font-size: .85rem; border-radius: 3px; }
.s-outline:hover { background: rgba(255, 255, 255, .15); }
.tpl-landing .s-overlap:first-child { margin-top: -7rem; }
.s-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; margin: 2rem 0 3rem; }
.s-cards > div { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow); background: var(--surface); }
.s-cards h3 { margin: 0 0 .8rem !important; color: var(--primary); text-transform: uppercase; font-size: 1.05rem; font-weight: 500; }
.s-cards > div > p:last-child { margin: auto 0 0; padding-top: .6rem; text-align: center; }
.s-cards img { border-radius: 0 !important; }
.s-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 3rem 0; }
.s-full.s-stats { margin-top: 3rem; margin-bottom: 0; }
.s-stats > div { background: var(--brand); color: var(--on-brand); padding: 3rem 1rem; text-align: center; }
.s-stats > div:nth-child(4n+2) { background: color-mix(in srgb, var(--brand) 85%, #fff); }
.s-stats > div:nth-child(4n+3) { background: color-mix(in srgb, var(--brand) 70%, #fff); }
.s-stats > div:nth-child(4n) { background: color-mix(in srgb, var(--brand) 55%, #fff); }
.s-stats strong { display: block; font-size: 2rem; font-weight: 400; line-height: 1.1; }
.s-stats small { font-size: 1.3rem; opacity: .85; }
.s-stats span { font-size: 1.15rem; }
.s-band { background: color-mix(in srgb, var(--brand) 88%, #000); color: #fff; text-align: center; padding: 3.5rem 1.25rem; margin: 0 0 -4rem; }
.s-band .s-section-title { margin-top: 0; }
.s-band .s-section-title small, .s-band h2 { color: inherit !important; }
.s-band p { max-width: 42rem; margin-left: auto; margin-right: auto; }
.s-band .sc-button { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.s-band a:not(.sc-button) { color: #fff; }
.s-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: center; margin: 2.5rem 0; }
.s-split figure { margin: 0; } .s-split img { width: 100%; }
.s-split h2 { margin-top: 0 !important; }
.s-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; margin: 2rem 0; }
.s-logos img { max-height: 70px; width: auto; border-radius: 0 !important; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.s-logos img:hover { filter: none; opacity: 1; }
.sc-news-compact { grid-template-columns: repeat(auto-fit, minmax(200px, 300px)); gap: 1.6rem; }
.sc-news-compact .sc-card { border: 0; box-shadow: none; background: transparent; border-radius: 0; }
.sc-news-compact .sc-card-media { aspect-ratio: 260 / 185; border-radius: 2px; }
.sc-news-compact .sc-card-body { padding: .7rem 0 0; }
.sc-news-compact .sc-card-body h3 { font-size: .95rem; text-transform: uppercase; font-weight: 500; }
.sc-news-compact .sc-card-body p, .sc-news-compact .sc-tag { display: none; }
.sc-news-list { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.sc-news-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.sc-news-list time { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* ---- Visitenkarten des Vorstands ---- */
.sc-bcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: 1.8rem; margin: 1.5rem 0 2.5rem; }
.sc-bcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: 0 2px 6px rgba(20, 30, 28, .06), 0 14px 34px rgba(20, 30, 28, .1); transition: transform .2s, box-shadow .2s; text-align: center; }
.sc-bcard:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(20, 30, 28, .08), 0 20px 44px rgba(20, 30, 28, .14); }
.sc-bcard-top { height: 96px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); position: relative; }
.sc-bcard-top::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.sc-bcard-logo { position: absolute; left: .9rem; top: .8rem; max-height: 34px; max-width: 90px; width: auto; border-radius: 4px !important; background: rgba(255, 255, 255, .92); padding: 3px 5px; z-index: 1; }
.sc-bcard-photo { width: 112px; height: 112px; border-radius: 50%; margin: -56px auto 0; border: 4px solid var(--surface); background: var(--primary-soft); overflow: hidden;
  display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.sc-bcard-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.sc-bcard-photo span { font-size: 2rem; font-weight: 700; color: var(--primary); }
.sc-bcard-body { padding: .8rem 1.4rem 1rem; flex: 1; display: flex; flex-direction: column; align-items: center; }
.sc-bcard h3 { margin: 0 !important; font-size: 1.2rem; text-transform: none !important; color: var(--text) !important; border: 0 !important; }
.sc-bcard-role { margin: .2rem 0 0 !important; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.sc-bcard-rule { display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--accent); margin: .9rem auto; }
.sc-bcard-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; text-align: left; width: 100%; }
.sc-bcard-contact li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; }
.sc-bcard-contact .s-icon { color: var(--primary); width: 18px; height: 18px; margin-top: .15rem; }
.sc-bcard-contact a { overflow-wrap: anywhere; }
.sc-wa { display: inline-grid; vertical-align: middle; color: #25d366 !important; }
.sc-wa .s-icon { color: inherit; }
.sc-bcard-links { display: flex; gap: .3rem; justify-content: center; margin: .9rem 0 0 !important; }
.sc-bcard-links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); }
.sc-bcard-links a:hover { background: var(--primary); color: var(--on-primary); }
.sc-bcard-foot { margin: 0 !important; padding: .55rem 1rem; border-top: 1px solid var(--border); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---- Vorstand als Visitenkarten im Querformat (Standard) ---- */
.sc-bizcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; margin: 2rem 0 3rem !important; padding: 0 !important; list-style: none; }
.sc-bizcards:has(> li:only-child) { grid-template-columns: minmax(0, 640px); justify-content: center; }
.sc-bizcard { display: grid; grid-template-columns: 40% minmax(0, 1fr); margin: 0 !important; padding: 0 !important; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 10px 30px rgba(20, 30, 28, .08); transition: transform .25s, box-shadow .25s; text-align: left; }
.sc-bizcard::before { content: none !important; }
.sc-bizcard:hover, .sc-bizcard:focus-within { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 30, 28, .08), 0 22px 48px rgba(20, 30, 28, .16); }
.sc-bizcard-photo { display: flex; align-items: center; justify-content: center; padding: 22px;
  background: linear-gradient(160deg, var(--primary-soft) 0%, color-mix(in srgb, var(--primary-soft) 70%, var(--brand)) 100%); border-right: 4px solid var(--brand); }
.sc-bizcard-photo img, .sc-bizcard-photo span { width: 100%; max-width: 240px; aspect-ratio: 1; height: auto; object-fit: cover; background: var(--surface); border: 4px solid var(--surface);
  border-radius: 10px !important; box-shadow: 0 8px 22px rgba(20, 30, 28, .18); transition: transform .4s; }
.sc-bizcard-photo span { display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; color: var(--primary); }
.sc-bizcard:hover .sc-bizcard-photo img, .sc-bizcard:hover .sc-bizcard-photo span { transform: scale(1.03); }
.sc-bizcard-main { position: relative; display: flex; flex-direction: column; padding: 26px 28px 22px; overflow: hidden; min-width: 0; }
.sc-bizcard-main::before { content: ""; position: absolute; top: -70px; right: -70px; width: 180px; height: 180px; border-radius: 50%; background: var(--primary-soft); opacity: .8; }
.sc-bizcard-main > * { position: relative; }
.s-content .sc-bizcard-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--brand); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.sc-bizcard-brand::before { content: ""; flex: 0 0 22px; height: 2px; background: currentColor; }
.s-content .sc-bizcard-name { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 1.85rem; line-height: 1.1; text-transform: none !important; color: var(--text) !important; overflow-wrap: anywhere; }
.s-content .sc-bizcard-role { margin: 6px 0 0 !important; color: var(--primary); font-weight: 600; font-size: .95rem; line-height: 1.45; }
.sc-bizcard-contact { display: grid; gap: 4px; margin: 18px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--border); font-size: .92rem; line-height: 1.5; }
.sc-bizcard-contact div { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: baseline; }
.sc-bizcard-contact dt { color: var(--brand); font-weight: 700; font-size: .8rem; }
.sc-bizcard-contact abbr { text-decoration: none; }
.sc-bizcard-contact dd { margin: 0; overflow-wrap: anywhere; }
.sc-bizcard-contact a { color: var(--text); text-decoration: none; }
.sc-bizcard-contact a:hover { color: var(--primary); text-decoration: underline; }
.sc-bizcard-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; }
.sc-bizcard-links { display: flex; gap: .3rem; }
.sc-bizcard-links a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); }
.sc-bizcard-links a:hover { background: var(--primary); color: var(--on-primary); }
.sc-bizcard-links .s-icon { width: 16px; height: 16px; }
.sc-bizcard-more { margin-left: auto; color: var(--primary-dark); font-weight: 600; font-size: .9rem; text-decoration: none; }
.sc-bizcard-more span { display: inline-block; transition: transform .2s; }
.sc-bizcard-more:hover span { transform: translateX(4px); }
@media (max-width: 960px) { .sc-bizcards { grid-template-columns: minmax(0, 640px); justify-content: center; } }
@media (max-width: 560px) {
  .sc-bizcard { grid-template-columns: minmax(0, 1fr); }
  .sc-bizcard-photo { border-right: 0; border-bottom: 4px solid var(--brand); }
  .sc-bizcard-photo img, .sc-bizcard-photo span { max-width: 200px; }
  .sc-bizcard-main { padding: 22px 20px 20px; }
  .s-content .sc-bizcard-name { font-size: 1.6rem; }
}

/* ---- Fußbereich (auf allen Seiten, Webseite → Fußbereich) ---- */
.s-prefooter { padding: 0; }
.s-prefooter .s-content > :first-child { margin-top: 0; }
.s-prefooter .s-content > :last-child { margin-bottom: 0; }
.s-prefooter .s-full { margin-top: 0 !important; margin-bottom: 0 !important; }
.s-prefooter .s-band { margin-bottom: 0; }
.s-prefooter:not(:has(.s-full)) { padding: 2.5rem 0; background: var(--soft); }
.s-main:has(+ .s-prefooter) { padding-bottom: 3rem; }

/* ---- Fußzeile ---- */
.s-footer { background: var(--footer-bg, #1f2624); color: var(--footer-text, #d4dbd8); padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer-farbig .s-footer { --footer-bg: color-mix(in srgb, var(--brand) 80%, #000); --footer-text: rgba(255, 255, 255, .85); }
.footer-hell .s-footer { --footer-bg: var(--soft); --footer-text: var(--text); border-top: 1px solid var(--border); }
.footer-hell .s-footer a, .footer-hell .s-footer strong, .footer-hell .s-footer .s-social a { color: var(--text); }
.footer-hell .s-footer-legal { border-color: var(--border); color: var(--muted); }
.s-footer-in.cols-1 { grid-template-columns: 1fr; } .s-footer-in.cols-2 { grid-template-columns: 2fr 1fr; }
.s-footer-in.cols-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.s-footer a { color: #fff; }
.s-footer strong { color: #fff; display: block; margin-bottom: .5rem; }
.s-footer p { margin: 0; }
.s-footer ul { list-style: none; margin: 0; padding: 0; }
.s-footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.s-footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #9aa6a2; }
.s-footer-legal span { margin-right: auto; }

/* =========================================================================
   Design-Vorlagen: nur Formen, Schrift und Farbakzente. Kopfbereich und Menü kommen aus den Optionen oben.
   ========================================================================= */
.design-schulhof { --radius: 22px; --radius-btn: 999px; --soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --font-heading: "Nunito", "Varela Round", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; --heading-weight: 800; }
.design-schulhof.hdr-farbig .s-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; pointer-events: none;
  background: radial-gradient(circle at 18px 0, var(--brand) 18px, transparent 18.5px) 0 0 / 36px 18px repeat-x; }
.design-schulhof .s-hero { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent) 60%, transparent) 0 90px, transparent 91px),
  radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .15) 0 140px, transparent 141px), color-mix(in srgb, var(--brand) 85%, #000); }
.design-schulhof.hdr-farbig .s-slide { padding-top: 4rem; }
.design-schulhof .s-page-head { padding-top: 4rem; background: color-mix(in srgb, var(--accent) 18%, #fff); }
.design-schulhof .s-page-head h1 { display: inline-block; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%); }
.design-schulhof .s-page-head.has-image h1 { background: none; }
.design-schulhof .sc-date { background: var(--accent); color: var(--on-accent); border-radius: 50%; aspect-ratio: 1; }
.design-schulhof .sc-card { border: 3px solid var(--soft); box-shadow: none; }
.design-schulhof .news-content h2 { color: var(--primary); }
.design-schulhof { --footer-bg: color-mix(in srgb, var(--brand) 25%, #151a19); }

.design-magazin { --radius: 4px; --radius-btn: 3px; --font-heading: Georgia, Cambria, "Times New Roman", serif; --soft: #f6f4ef; --shadow: none; }
.design-magazin.brand-mitte .s-header-in { padding-top: 1.4rem; padding-bottom: 1.2rem; }
.design-magazin .s-brand-text small { font-style: italic; font-size: 1rem; }
.design-magazin .s-navbar .s-nav > ul > li > a { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 600; }
.design-magazin .s-page-head { background: transparent; text-align: center; border-bottom: 1px solid var(--border); padding: 3rem 0 2rem; }
.design-magazin .s-page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.design-magazin .s-page-head.has-image { border: 0; }
.design-magazin .s-caption { margin: 0 auto; text-align: center; }
.design-magazin .s-hero-actions { justify-content: center; }
.design-magazin .news-content > p:first-child::first-letter { float: left; font-family: var(--font-heading); font-size: 3.4em; line-height: .9; padding: .08em .1em 0 0; color: var(--primary); }
.design-magazin .news-content h2 { border-bottom: 2px solid var(--text); padding-bottom: .3rem; }
.design-magazin .sc-card { border: 0; border-top: 3px solid var(--brand); }
.design-magazin { --footer-bg: #1d1b18; }

.design-elegant { --radius: 2px; --radius-btn: 2px; --heading-weight: 600; --soft: #f5f5f3; --shadow: none; }
.design-elegant.hdr-dunkel.tpl-landing .s-headwrap { position: absolute; left: 0; right: 0; }
.design-elegant.hdr-dunkel.tpl-landing.is-sticky .s-headwrap { position: absolute; }
.design-elegant.hdr-dunkel.tpl-landing .s-header { background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.design-elegant.hdr-dunkel.tpl-landing .s-slide { padding-top: 7rem; }
.design-elegant .s-header-in { min-height: max(88px, var(--header-min, 0px)); }
.design-elegant .s-tools .s-btn { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.design-elegant .s-hero { background: linear-gradient(160deg, #14181a, color-mix(in srgb, var(--brand) 70%, #14181a)); }
.design-elegant .s-slide { align-items: flex-end; }
.design-elegant .s-cap-title { font-weight: 300; letter-spacing: -.02em; }
.design-elegant .s-hero .s-btn-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.design-elegant .s-page-head { background: #14181a; padding: 4rem 0 3rem; }
.design-elegant .s-page-head h1 { color: #fff; font-weight: 300; letter-spacing: -.01em; }
.design-elegant .s-page-head h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--accent); margin-top: 1rem; }
.design-elegant .news-content h2 { font-weight: 400; font-size: 1.9rem; }
.design-elegant .sc-card { border: 0; background: var(--soft); }
.design-elegant .sc-date { background: transparent; color: var(--text); border: 1px solid var(--text); }
.design-elegant { --footer-bg: #14181a; }

/* Klassik: wie viele Vereinsseiten mit WordPress-Themes – kleine Schrift im Menü, Slider mit Textboxen, Kacheln */
.design-klassik { --radius: 3px; --radius-btn: 3px; --heading-weight: 500; --font-heading: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.design-klassik body, body.design-klassik { font-size: 1rem; }
.design-klassik .s-topbar { height: 22px; background: var(--brand); }
.design-klassik .news-content h2 { color: var(--primary); text-transform: uppercase; font-weight: 400; font-size: 1.5rem; }
.design-klassik .s-page-head { background: #f7f8f8; border-bottom: 1px solid var(--border); padding: 1.6rem 0; }
.design-klassik .s-page-head h1 { font-size: 1.5rem; font-weight: 400; color: var(--primary); }
.design-klassik .s-hero { border-bottom: 6px solid color-mix(in srgb, var(--brand) 70%, #fff); }
.design-klassik .sc-button { font-weight: 600; }
.design-klassik { --footer-bg: #2a2f31; }

/* ---- Tablet ---- */
@media (max-width: 1080px) and (min-width: 701px) {
  .s-cards, .s-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-tiles > div:last-child:nth-child(odd), .s-cards > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .s-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---- Handy ---- */
@media (max-width: 700px) {
  :root { --wrap: 100vw; }
  body { font-size: 1rem; }
  .s-main { padding: 2rem 0 3rem; }
  .s-tiles, .s-cards, .s-stats { grid-template-columns: 1fr; }
  .s-stats > div { padding: 1.6rem 1rem; }
  .sc-news-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .s-page-head { padding: 2rem 0 1.6rem; }
  .s-page-head.has-image { padding: 4rem 0 2rem; }
  .hero-klein { --hero-h: 220px; } .hero-mittel, .hero-gross, .hero-voll { --hero-h: 340px; }
  .s-slide { padding: 2rem 0 2.5rem; }
  .s-cap-text { margin-bottom: 1.2rem; }
  .s-hero-actions .s-btn-large { padding: .65rem 1.1rem; font-size: 1rem; }
  .s-band { padding: 2.5rem 1rem; }
  .sc-events li { grid-template-columns: 52px 1fr; gap: .7rem; }
  .sc-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sc-photo { width: 96px; height: 96px; font-size: 1.6rem; }
  .news-content table { display: block; overflow-x: auto; }
  .s-footer-legal span { margin-right: 0; flex-basis: 100%; }
}

/* ---- Mobil (Menü) ---- */
@media (max-width: 1080px) {
  .s-burger { display: flex; }
  .s-header-in { min-height: 64px; flex-wrap: nowrap; }
  .s-logo { height: min(var(--logo-h, 56px), 64px); max-width: 60vw; }
  .s-tools .s-btn { display: none; }
  .s-tools .s-social a { width: 30px; height: 30px; }
  .brand-mitte .s-brand { flex-direction: row; text-align: left; margin: 0 auto 0 0; flex-basis: auto; }
  .brand-mitte .s-brand-text strong { font-size: 1.15rem; }
  .brand-mitte .s-tools { position: static; }
  .navs-trennlinien.nav-kopf .s-header-in { padding-top: .5rem; padding-bottom: .5rem; align-items: center; }
  /* Menü: ohne JavaScript immer sichtbar, sonst als Feld unter der Kopfzeile */
  .s-headwrap .s-nav, .s-sidenav { width: 100%; }
  .js .s-headwrap .s-nav, .js .s-sidenav { display: none; }
  .js .nav-open .s-headwrap .s-nav, .js .nav-open .s-sidenav { display: block; }
  .s-headwrap .s-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); color: var(--text); box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
    max-height: calc(100vh - 80px); overflow: auto; padding: .6rem 1rem 1rem; text-shadow: none; }
  html:not(.js) .s-headwrap .s-nav { position: static; box-shadow: none; }
  .s-nav > ul { flex-direction: column; flex-wrap: nowrap; }
  .s-nav > ul > li { border: 0 !important; }
  .s-nav > ul > li > a { padding: .65rem .6rem !important; height: auto !important; font-size: 1rem !important; box-shadow: none !important; color: inherit !important; white-space: normal; }
  .s-nav > ul > li.active > a { background: var(--primary-soft) !important; }
  .s-sub { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 .3rem 1rem; min-width: 0; }
  .s-nav .has-sub > a::after { content: ""; }
  .s-navbar { border: 0; }
  .s-navbar > .s-wrap { padding: 0; }
  .s-layout { grid-template-columns: 1fr !important; padding-top: 0; gap: 0; }
  .js .s-sidenav { position: fixed; top: 64px; left: 0; right: 0; z-index: 45; background: var(--surface); box-shadow: 0 12px 24px rgba(0, 0, 0, .15); padding: .6rem 1rem 1rem; max-height: calc(100vh - 64px); overflow: auto; }
  html:not(.js) .s-sidenav { position: static; margin-top: 1rem; }
  .s-layout .s-main { padding-top: 2rem; }
  .s-with-sidebar { grid-template-columns: 1fr; gap: 2rem; }
  .s-footer-in { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-gross, .hero-voll { --hero-h: 420px; }
  .s-slide-nav { display: none !important; }
  .tpl-landing .s-overlap:first-child { margin-top: -3rem; }
  .design-elegant.hdr-dunkel.tpl-landing .s-headwrap { position: relative; }
  .design-elegant.hdr-dunkel.tpl-landing .s-header { background: #15191b; }
  .design-elegant.hdr-dunkel.tpl-landing .s-slide { padding-top: 3rem; }
}

@media print {
  .s-headwrap, .s-footer, .s-sidebar, .s-sidenav, .s-preview-bar, .s-slide-nav, .s-dots { display: none; }
  .s-hero, .s-page-head { background: none !important; color: #000; }
  .s-slide:not(.is-active) { display: none; }
}
@media (max-width: 520px) { .s-tools .s-social { display: none; } }

/* ---- Band mit Bild (links Foto, rechts Text) ---- */
.s-band.s-band-split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; text-align: left; align-items: stretch; }
.s-band-split .s-band-img { margin: 0; min-height: 320px; position: relative; overflow: hidden; }
.s-band-split .s-band-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; max-width: none; }
.s-band-split .s-band-text { padding: 3.5rem clamp(1.25rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.s-band-split .s-band-text > * { margin-left: 0; margin-right: 0; }
.s-band-split .s-section-title { text-align: left; }
.s-band-split .s-section-title::after { margin-left: 0; }
.s-band-split .sc-actions { justify-content: flex-start; text-align: left; }
@media (max-width: 760px) {
  .s-band.s-band-split { grid-template-columns: 1fr; }
  .s-band-split .s-band-img { min-height: 220px; }
  .s-band-split .s-band-text { padding: 2.5rem 1.25rem 4.5rem; text-align: center; }
  .s-band-split .s-section-title { text-align: center; }
  .s-band-split .sc-actions { justify-content: center; text-align: center; }
}

/* ---- Eingebettetes Formular (Mitgliedsantrag) ---- */
.sc-embed { margin: 1.5rem 0; }
.sc-embed-frame { display: block; width: 100%; min-height: 900px; border: 0; border-radius: var(--radius); background: transparent; }
.sc-embed-frame[style*="height"] { min-height: 0; }

/* ---- Karte (Google Maps nach Zustimmung) ---- */
.sc-map { position: relative; height: var(--map-h, 400px); margin: 1.2rem 0; border-radius: var(--radius); overflow: hidden; background: var(--soft);
  border: 1px solid var(--border); display: grid; place-items: center; text-align: center; }
.sc-map-consent { padding: 1.5rem; max-width: 34rem; }
.sc-map-consent p { margin: .4rem 0; }
.sc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Buttons im Fußbereich (Mitglied werden, Mitgliederbereich, Kündigen) ---- */
.s-footer .s-footer-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem !important; }
.s-footer ul + .s-footer-btns { margin-top: 1rem !important; }
.s-fbtn { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .9rem; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.s-fbtn:hover, .s-fbtn:focus-visible { background: rgba(255, 255, 255, .14); border-color: #fff; }
.s-fbtn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.s-fbtn-primary:hover, .s-fbtn-primary:focus-visible { background: color-mix(in srgb, var(--accent) 85%, #fff); border-color: var(--accent); }
.s-fbtn-quiet { border-color: rgba(255, 255, 255, .3); font-weight: 500; }
.footer-hell .s-fbtn { border-color: var(--border); color: var(--text) !important; }
.footer-hell .s-fbtn:hover { background: var(--primary-soft); border-color: var(--primary); }
.footer-hell .s-fbtn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.s-footer-in > div:last-child .s-footer-btns { flex-direction: column; align-items: flex-start; }

/* ---- Unterstützer: Logos in Farbe als Kacheln, verlinkt ---- */
.s-logos.s-logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }
.s-logos-grid a { display: grid; place-items: center; height: 130px; padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.s-logos-grid a:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 30, 28, .12); }
.s-logos-grid img { max-height: 90px; max-width: 100%; object-fit: contain; filter: none; opacity: 1; }

/* Logo-Karussell 3D: Logos als Karten auf einem drehenden Ring (site.js). Ohne JavaScript bzw. bei reduzierter Bewegung: großes Raster */
.s-logos.s-logos-3d { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; margin: 2rem 0 3rem; }
.s-logos-3d a { display: grid; place-items: center; height: 170px; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 14px 34px -18px rgba(10, 35, 60, .35); }
.s-logos-3d img { max-height: 120px; max-width: 100%; object-fit: contain; filter: none; opacity: 1; }
.s-logos-3d.is-3d { --card-w: 400px; --card-h: 250px; display: block; position: relative; height: calc(var(--card-h) + 7.5rem); perspective: 1600px; perspective-origin: 50% 35%;
  overflow: hidden; margin-inline: calc(-1 * clamp(1rem, 2vw, 1.5rem)); touch-action: pan-y; user-select: none; cursor: grab; }
.s-logos-3d.is-3d.is-dragging { cursor: grabbing; }
.s-logos-3d .s-ring { position: absolute; left: 50%; top: 1.5rem; width: var(--card-w); height: var(--card-h); margin-left: calc(var(--card-w) / -2); transform-style: preserve-3d; }
.s-logos-3d.is-3d a { position: absolute; inset: 0; height: auto; padding: .9rem 1.1rem; grid-template: minmax(0, 1fr) / minmax(0, 1fr); backface-visibility: hidden; will-change: transform, opacity;
  background: #fff; }
.s-logos-3d.is-3d a:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.s-logos-3d.is-3d a::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -46px; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 35, 60, .22), transparent); }
.s-logos-3d.is-3d img { width: 100%; height: 100%; max-height: none; pointer-events: none; -webkit-user-drag: none; }
.s-logo3d-nav { position: absolute; left: 0; right: 0; bottom: .6rem; display: flex; justify-content: center; gap: .6rem; z-index: 2; }
.s-logo3d-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary-dark); font-size: 1.5rem; line-height: 1;
  cursor: pointer; box-shadow: 0 6px 18px -10px rgba(10, 35, 60, .4); transition: background .15s, color .15s; }
.s-logo3d-nav button:hover { background: var(--primary); color: var(--on-primary); }
@media (max-width: 700px) { .s-logos-3d.is-3d { --card-w: 270px; --card-h: 175px; } .s-logos-3d.is-3d a { padding: .6rem .8rem; border-radius: 14px; } }

/* ---- Projekte: Bilder + Text, abwechselnd links/rechts ---- */
.s-project { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; align-items: start; margin: 2.5rem 0; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.s-project:last-of-type { border-bottom: 0; }
.s-project:nth-of-type(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.s-project:nth-of-type(even) > .s-project-img { order: 2; }
.s-project-img { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.s-project-img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px !important; display: block; }
.s-project-img img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.s-project-img img:only-child { aspect-ratio: auto; }
.s-project h3 { margin-top: 0 !important; }
.s-project-year { display: inline-block; margin-bottom: .4rem; padding: .15rem .6rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .8rem; font-weight: 700; }
@media (max-width: 760px) {
  .s-project, .s-project:nth-of-type(even) { grid-template-columns: 1fr; gap: 1rem; }
  .s-project:nth-of-type(even) > .s-project-img { order: 0; }
}

/* ---- Bildergalerie (Raster, Klick vergrößert) ---- */
.s-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: 1.5rem 0 2.5rem; }
.s-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px !important; display: block; transition: transform .2s, box-shadow .2s; }
.s-gallery img:hover { transform: scale(1.02); box-shadow: 0 8px 22px rgba(20, 30, 28, .18); }

/* ---- Schritte mit Symbol (z. B. gooding) ---- */
.s-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin: 1.5rem 0 2.5rem; }
.s-steps > div { padding: 1.4rem 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: center; }
.s-steps img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto .6rem; display: block; border-radius: 0 !important; }
.s-steps strong { display: block; margin-bottom: .3rem; color: var(--primary-dark); }
.s-steps p { margin: 0; font-size: .95rem; }
.s-gallery.s-gallery-fit { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.s-gallery-fit img { aspect-ratio: auto; object-fit: contain; }
/* Viele Menüpunkte im Kopf: Symbole und Mitgliederbereich-Button (stehen auch im Fußbereich) früher ausblenden */
@media (max-width: 1700px) { .nav-kopf:has(.s-nav > ul > li:nth-child(10)) .s-tools .s-social { display: none; } }
@media (max-width: 1600px) { .nav-kopf:has(.s-nav > ul > li:nth-child(10)) .s-tools .s-btn-ghost { display: none; } }

/* ==== Moderne Inhaltsbausteine (u. a. übernommene Seiten der alten Webseite) ==== */
/* Seite beginnt mit Titelkarte: Titelband nur für Screenreader */
body:has(.s-content > .s-intro:first-child) .s-page-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
body:has(.s-content > .s-intro:first-child) .s-main { padding-top: 2rem; }

/* Titelkarte: Foto links, Farbfläche mit Text rechts */
.s-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0 0 3.5rem; border-radius: 24px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 62%, #08182a) 100%); box-shadow: 0 30px 60px -28px rgba(10, 35, 60, .45); }
.s-intro > figure { position: relative; margin: 0; min-height: 380px; background: color-mix(in srgb, var(--brand) 25%, #fff); }
.s-intro > figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; max-width: none; }
.s-intro.is-logo > figure { background: #fff; display: grid; place-items: center; }
.s-intro.is-logo > figure img { position: static; width: 80%; height: auto; max-height: 70%; object-fit: contain; }
.s-intro-text { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.8rem, 4vw, 3.6rem); overflow: hidden; }
.s-intro-text::before { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.s-intro-text::after { content: ""; position: absolute; right: 40px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.s-intro-text > * { position: relative; z-index: 1; }
.s-content .s-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .8rem !important; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.s-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); }
.s-intro .s-eyebrow { color: rgba(255, 255, 255, .85); }
.s-content .s-intro h2 { margin: 0 0 1rem !important; padding: 0 !important; border: 0 !important; color: #fff !important; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.12; text-transform: none !important; letter-spacing: -.01em; }
.s-content .s-intro p { color: rgba(255, 255, 255, .88); margin: 0 0 .8rem; }
.s-content .s-intro p.s-lead { color: #fff; font-size: 1.15rem; font-weight: 500; line-height: 1.5; }
.s-intro .sc-actions { margin: .8rem 0 0; }
.s-intro .sc-button { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
@media (max-width: 860px) {
  .s-intro { grid-template-columns: 1fr; border-radius: 18px; }
  .s-intro > figure { min-height: 230px; }
  .s-intro.is-logo > figure { min-height: 160px; }
}

/* Abschnittsüberschrift mit Linie */
.s-content h2.s-h { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 1.2rem !important; text-transform: none !important; }
.s-content h2.s-h::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 35%, transparent), transparent); }
.s-content .s-eyebrow.is-plain { color: var(--primary); margin-bottom: .2rem !important; }

/* Häkchen-Liste als Kacheln */
.s-content ul.s-checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; margin: 1.2rem 0 2rem; padding: 0; }
.s-checks li { position: relative; margin: 0 !important; padding: 1rem 1.1rem 1rem 3.4rem; border-radius: 14px; background: var(--soft); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); line-height: 1.5; }
.s-checks li::before { content: "✓"; position: absolute; left: 1rem; top: .95rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--primary); color: var(--on-primary, #fff); font-weight: 700; font-size: .85rem; }

/* Kennzahlen */
.s-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.s-keyfacts > div { position: relative; padding: 1.3rem 1.2rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.s-keyfacts > div::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.s-keyfacts strong { display: block; font-size: 1.8rem; line-height: 1.1; color: var(--primary); letter-spacing: -.01em; }
.s-keyfacts span { display: block; margin-top: .35rem; font-size: .92rem; color: var(--muted); }

/* Themenkarten mit Symbol */
.s-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.5rem 0 2.5rem; }
.s-features > div { padding: 1.6rem 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 30px -18px rgba(10, 35, 60, .25); transition: transform .2s, box-shadow .2s; }
.s-features > div:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(10, 35, 60, .3); }
.s-feature-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 14px; background: var(--primary-soft); font-size: 1.6rem; }
.s-content .s-features h3 { margin: 0 0 .5rem !important; font-size: 1.15rem; }
.s-features p { margin: 0 0 .6rem; font-size: .97rem; }
/* Bild als Symbol der Karte (statt .s-feature-ico); einzelne Karte quer mit Symbol links */
.s-content .s-features > div > img { width: 64px; height: 64px; object-fit: contain; margin: 0 0 1rem; border-radius: 0; box-shadow: none; }
.s-features > div:only-child { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.4rem; align-items: center; }
.s-content .s-features > div:only-child > img { grid-row: span 9; margin: 0; }
.s-features > div:only-child > :not(img) { grid-column: 2; }

/* Hinweis */
.s-note { display: flex; gap: 1rem; align-items: flex-start; margin: 2rem 0; padding: 1.2rem 1.4rem; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.s-note > span { font-size: 1.6rem; line-height: 1; }
.s-note p { margin: 0; }

/* Aufrufkasten mit Buttons */
.s-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; margin: 3rem 0 1rem; padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 22px; background: linear-gradient(120deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 40%, var(--surface))); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.s-content .s-callout h2, .s-content .s-callout h3 { margin: 0 0 .5rem !important; }
.s-callout p { margin: 0 0 .5rem; }
.s-callout-actions { display: flex; flex-direction: column; gap: .6rem; }
.s-callout-actions .sc-actions { margin: 0; }
.s-callout-actions .sc-button { width: 100%; justify-content: center; text-align: center; }
@media (max-width: 760px) { .s-callout { grid-template-columns: 1fr; } }

/* Projekte als Karten */
.s-project { padding: 1.5rem; border: 1px solid var(--border) !important; border-radius: 20px; background: var(--surface); box-shadow: 0 12px 34px -22px rgba(10, 35, 60, .3); margin: 1.6rem 0; }
.s-project:last-of-type { border-bottom: 1px solid var(--border); }
.s-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; margin: 2rem 0; }
.s-pcard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 34px -22px rgba(10, 35, 60, .3); transition: transform .2s, box-shadow .2s; }
.s-pcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(10, 35, 60, .35); }
.s-pcard > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 !important; display: block; }
.s-pcard > div { padding: 1.2rem 1.4rem 1.4rem; }
.s-content .s-pcard h3 { margin: .2rem 0 .5rem !important; }
.s-pcard p { margin: 0; font-size: .97rem; }

/* Nummerierte Schritte */
.s-steps.is-numbered { counter-reset: step; }
.s-steps.is-numbered > div { position: relative; counter-increment: step; padding-top: 2rem; }
.s-steps.is-numbered > div::before { content: counter(step); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .9rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.s-steps > div { box-shadow: 0 10px 30px -20px rgba(10, 35, 60, .25); }
.s-content .s-eyebrow.is-plain + h2.s-h { margin-top: .1rem !important; }
.s-content .s-eyebrow.is-plain { margin-top: 3rem !important; }

/* ---- Fanshop-Artikel als Produktkarten ([shop]) ---- */
.sc-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.2rem 0 1.5rem; }
.sc-product { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: inherit !important;
  text-decoration: none !important; box-shadow: 0 12px 30px -22px rgba(10, 35, 60, .3); transition: transform .2s, box-shadow .2s; }
.sc-product:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(10, 35, 60, .35); }
.sc-product-img { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem; }
.sc-product-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0 !important; transition: transform .3s; }
.sc-product:hover .sc-product-img img { transform: scale(1.04); }
.sc-product-img > span { font-size: 3rem; opacity: .5; }
.sc-product-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem 1.2rem; flex: 1; }
.sc-product-body .sc-tag { align-self: flex-start; }
.sc-product-body strong { font-size: 1.05rem; line-height: 1.3; }
.sc-product-price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.sc-product-more { margin-top: auto; padding-top: .4rem; font-weight: 600; color: var(--primary-dark); }
.sc-product-out { margin-top: auto; padding-top: .4rem; font-weight: 600; color: var(--muted); }

/* ---- Termine und Kurse im modernen Kartenstil ---- */
.sc-events li { margin-bottom: .8rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 28px -22px rgba(10, 35, 60, .3); transition: box-shadow .2s; }
.sc-events li:hover { box-shadow: 0 16px 36px -22px rgba(10, 35, 60, .35); }
.sc-courses { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); justify-content: stretch; }
.sc-course { border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: 0 12px 30px -22px rgba(10, 35, 60, .3); transition: transform .2s, box-shadow .2s; }
.sc-course:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(10, 35, 60, .35); }

/* ==== Startseite im modernen Stil ==== */
/* Farbkacheln: abgerundet mit Abstand und Schatten */
.s-tiles { gap: 1.2rem; }
.s-tiles > div { border-radius: 22px; box-shadow: 0 24px 50px -26px rgba(10, 35, 60, .5); position: relative; overflow: hidden; transition: transform .2s; }
.s-tiles > div::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.s-tiles > div:hover { transform: translateY(-4px); }
.s-tiles > div { background: linear-gradient(150deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #08182a)); }
.s-tiles > div:nth-child(3n+2) { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); }
.s-tiles > div:nth-child(3n) { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 62%, #fff), color-mix(in srgb, var(--brand) 85%, #fff)); }
.s-tiles .s-outline { border-radius: 999px; }

/* Willkommen: Bild + Text */
.s-split.s-welcome { gap: 3rem; margin: 1rem 0 3.5rem; }
.s-welcome figure img { border-radius: 22px !important; box-shadow: 0 30px 60px -30px rgba(10, 35, 60, .5); aspect-ratio: 4 / 3; object-fit: cover; }
.s-content .s-welcome h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; text-transform: none !important; margin: 0 0 1rem !important; }
.s-welcome .sc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; }

/* „Mehr“-Link in Karten */
.s-content a.s-more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--primary-dark); text-decoration: none; }
.s-content a.s-more:hover { text-decoration: underline; }
.s-features > div { display: flex; flex-direction: column; }
.s-features > div > p:last-child:has(> a.s-more) { margin-top: auto; padding-top: .4rem; }

/* Zwei Spalten (z. B. Termine | Vorstand) */
.s-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; margin: 1rem 0 2rem; align-items: start; }
.s-cols > div > h2.s-h:first-child { margin-top: 1rem !important; }
.s-cols img { border-radius: 18px !important; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 20px 40px -26px rgba(10, 35, 60, .45); }
@media (max-width: 860px) { .s-cols { grid-template-columns: 1fr; gap: 1rem; } .s-split.s-welcome { gap: 1.5rem; } }
/* Neuigkeiten (auch kompakt) im Kartenstil */
.sc-news, .sc-news-compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); justify-content: stretch; }
.sc-news .sc-card, .sc-news-compact .sc-card { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface);
  box-shadow: 0 12px 30px -22px rgba(10, 35, 60, .3); transition: transform .2s, box-shadow .2s; }
.sc-news .sc-card:hover, .sc-news-compact .sc-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(10, 35, 60, .35); }
.sc-news-compact .sc-card-media { border-radius: 0; }
.sc-news-compact .sc-card-body { padding: .9rem 1.1rem 1.1rem; }
.sc-news-compact .sc-card-body h3 { text-transform: none; font-weight: 700; font-size: 1rem; }

/* ---- Karussell (z. B. Projekte, Aktuelles): waagerecht scrollbar, automatischer Wechsel per site.js ---- */
.s-carousel { position: relative; margin: 1rem 0 1.5rem; }
.s-carousel .s-track { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 86%; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin: 0 !important; padding: .6rem .2rem 1.2rem; scrollbar-width: none; }
.s-carousel .s-track::-webkit-scrollbar { display: none; }
.s-carousel .s-track > * { scroll-snap-align: start; min-width: 0; }
.s-carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.s-carousel-dots { display: flex; gap: .4rem; flex-wrap: wrap; }
.s-carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--border); cursor: pointer; transition: width .2s, background .2s; }
.s-carousel-dots button.is-active { width: 26px; background: var(--primary); }
.s-carousel-arrows { display: flex; gap: .4rem; }
.s-carousel-arrows button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--primary-dark); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.s-carousel-arrows button:hover, .s-carousel-arrows button:focus-visible { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }
.s-carousel .s-pcard p, .s-carousel .sc-card-body p { font-size: .95rem; }
@media (min-width: 1500px) { .s-carousel .s-track { grid-auto-columns: 70%; } }
.s-carousel .s-pcard > img, .s-carousel .sc-card-media { aspect-ratio: 16 / 9 !important; }
/* Projektkarten als Link (Baustein [projekte]) */
a.s-pcard { color: inherit !important; text-decoration: none !important; }
a.s-pcard h3 { color: var(--text); }
a.s-pcard:hover h3 { color: var(--primary); }
.s-pcard-noimg { display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #fff)); color: #fff; font-size: 2.5rem; font-weight: 800; }

/* ==== Abschluss der Seite (Zahlenband, Aufruf, Fußzeile) im modernen Stil ==== */
/* Zahlenband: durchgehender Blauverlauf mit feinen Trennlinien */
.s-stats.s-full { position: relative; overflow: hidden; gap: 0;
  background: linear-gradient(115deg, color-mix(in srgb, var(--brand) 88%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 68%, #06182b) 100%); }
.s-stats.s-full::before, .s-stats.s-full::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.s-stats.s-full::before { width: 340px; height: 340px; left: -120px; top: -180px; }
.s-stats.s-full::after { width: 260px; height: 260px; right: -80px; bottom: -150px; }
.s-stats.s-full > div { position: relative; z-index: 1; background: transparent !important; padding: 3.4rem 1rem 3.2rem; }
.s-stats.s-full > div + div::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: rgba(255, 255, 255, .22); }
.s-stats.s-full strong { font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.s-stats.s-full small { font-size: 1rem; font-weight: 600; opacity: .8; margin-right: .15rem; letter-spacing: 0; }
.s-stats.s-full span { display: block; margin-top: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
@media (max-width: 700px) { .s-stats.s-full > div:nth-child(odd)::before { display: none; } .s-stats.s-full > div { padding: 2rem .8rem; } }

/* Aufruf mit Bild im Fußbereich: abgerundete Karte statt randlosem Band */
.s-prefooter .s-band.s-band-split.s-full { width: auto !important; margin: 3.5rem 0 !important; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 62%, #08182a) 100%); box-shadow: 0 34px 70px -34px rgba(8, 30, 55, .6); }
.s-prefooter .s-band-split .s-band-text { position: relative; overflow: hidden; }
.s-prefooter .s-band-split .s-band-text::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.s-prefooter .s-band-split .s-section-title small { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; opacity: .85; }
.s-prefooter .s-band-split h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem) !important; text-transform: none !important; letter-spacing: -.01em; }
.s-prefooter .s-band-split .sc-button { border-radius: 999px; padding-left: 1.4rem; padding-right: 1.4rem; }
.s-prefooter:has(.s-band-split) .s-content > :last-child { margin-bottom: 3.5rem !important; }
@media (max-width: 760px) { .s-prefooter .s-band.s-band-split.s-full { border-radius: 20px; margin: 2rem 0 !important; } }

/* Fußzeile „Modern (Blauverlauf)“: tiefes Blau, abgerundete Oberkante */
.footer-modern .s-footer { position: relative; overflow: hidden; color: rgba(255, 255, 255, .8); padding: 4rem 0 1.6rem; border-radius: 34px 34px 0 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 82%, #06182b) 0%, color-mix(in srgb, var(--brand) 52%, #030c17) 100%); }
.footer-modern .s-footer::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -200px; border-radius: 50%; background: rgba(255, 255, 255, .05); pointer-events: none; }
.footer-modern .s-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, var(--brand))); }
.footer-modern .s-footer-in { position: relative; z-index: 1; }
.footer-modern .s-footer strong { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.footer-modern .s-footer strong::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.footer-modern .s-footer-in > div:first-child > strong { font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
.footer-modern .s-footer-in > div:first-child > strong::before { display: none; }
.footer-modern .s-footer a { color: #fff; text-decoration: none; }
.footer-modern .s-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-modern .s-footer p { line-height: 1.7; }
.footer-modern .s-footer .s-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); margin-right: .2rem; transition: background .15s; }
.footer-modern .s-footer .s-social a:hover { background: rgba(255, 255, 255, .22); text-decoration: none; }
.footer-modern .s-fbtn { border-color: rgba(255, 255, 255, .45); text-decoration: none !important; }
.footer-modern .s-fbtn:hover { background: rgba(255, 255, 255, .14); }
.footer-modern .s-fbtn-primary { border-color: var(--accent); }
.footer-modern .s-footer-legal { position: relative; z-index: 1; border-top-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .6); }
.footer-modern .s-footer-legal a { color: rgba(255, 255, 255, .85); }
@media (max-width: 760px) { .footer-modern .s-footer { border-radius: 24px 24px 0 0; padding-top: 3rem; } }
@media (max-width: 760px) { .s-prefooter .s-band-split .s-band-text { padding-bottom: 2.4rem; } }

/* ==== Begrüßungsbereich „Modern“: Farbverlauf von links, sanfter Zoom, Glas-Steuerung ==== */
.s-hero.cap-modern { border-bottom: 0 !important; background: color-mix(in srgb, var(--brand) 60%, #06182b); }
.cap-modern .s-slide { position: relative; overflow: hidden; align-items: center; }
.tpl-landing .cap-modern .s-slide { padding-bottom: 8rem; }
.cap-modern .s-slide.has-image { background: none; }
.cap-modern .s-slide.has-image::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center / cover no-repeat; transform: scale(1.02); transition: transform 9s ease-out; }
.cap-modern .s-slide.is-active::before { transform: scale(1.1); }
.cap-modern .s-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, color-mix(in srgb, var(--brand) 62%, #031020) calc(70% + var(--ov, .4) * 30%), transparent) 0%,
                                     color-mix(in srgb, color-mix(in srgb, var(--brand) 62%, #031020) calc(30% + var(--ov, .4) * 40%), transparent) 48%,
                                     color-mix(in srgb, #031020 calc(var(--ov, .4) * 30%), transparent) 100%),
              linear-gradient(0deg, rgba(3, 16, 32, .45) 0%, transparent 35%); }
.cap-modern .s-hero-in { position: relative; z-index: 1; }
.cap-modern .s-caption { max-width: 40rem; margin: 0; text-align: left; }
.cap-modern .s-caption::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 1.2rem; }
.cap-modern .s-cap-title { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1rem; text-transform: none; color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.cap-modern .s-cap-text { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; color: rgba(255, 255, 255, .92); margin: 0 0 1.8rem; max-width: 34rem; }
.cap-modern .s-hero-actions { justify-content: flex-start; }
.cap-modern .s-btn { border-radius: 999px; padding-left: 1.6rem; padding-right: 1.6rem; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
/* Text gleitet beim Wechsel herein */
.cap-modern .s-slide .s-caption { opacity: 0; transform: translateY(18px); transition: opacity .8s ease .25s, transform .8s ease .25s; }
.cap-modern .s-slide.is-active .s-caption { opacity: 1; transform: none; }
/* Steuerung: Glas-Kreise und Pillen-Punkte (über den Kacheln) */
.cap-modern .s-slide-nav { width: 50px; height: 50px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 1.6rem; z-index: 3; transition: background .2s, transform .2s; }
.cap-modern .s-slide-nav:hover { background: rgba(255, 255, 255, .3); transform: translateY(-50%) scale(1.06); }
.tpl-landing .cap-modern .s-slide-nav { top: calc(50% - 4rem); }
.cap-modern .s-dots { z-index: 3; gap: .45rem; }
.tpl-landing .cap-modern .s-dots { bottom: 9rem; }
.cap-modern .s-dots button { width: 10px; height: 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.cap-modern .s-dots button[aria-current="true"] { width: 34px; background: #fff; }
/* Fortschrittsbalken der aktuellen Folie */
.cap-modern.is-slider::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; z-index: 4; background: var(--accent); width: 0; }
.cap-modern.is-slider.is-running::before { animation: hero-progress var(--hero-interval, 6s) linear infinite; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }
@media (max-width: 760px) {
  .tpl-landing .cap-modern .s-slide { padding-bottom: 4.5rem; }
  .tpl-landing .cap-modern .s-dots { bottom: 4.6rem; }
  .cap-modern .s-slide::after { background: linear-gradient(0deg, color-mix(in srgb, color-mix(in srgb, var(--brand) 62%, #031020) 85%, transparent) 0%, color-mix(in srgb, #031020 35%, transparent) 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .cap-modern .s-slide.has-image::before, .cap-modern .s-slide.is-active::before { transform: none; transition: none; }
  .cap-modern .s-slide .s-caption { transition: none; }
  .cap-modern.is-slider::before { display: none; }
}
@media (max-width: 760px) {
  .cap-modern .s-slide::after { background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, var(--brand) 62%, #031020) 60%, transparent) 0%,
    color-mix(in srgb, color-mix(in srgb, var(--brand) 62%, #031020) 82%, transparent) 100%); }
}
/* Karussell in voller Breite: mehrere Karten nebeneinander */
.s-carousel.is-wide .s-track { grid-auto-columns: calc((100% - 2rem) / 3); }
@media (max-width: 1000px) { .s-carousel.is-wide .s-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 640px) { .s-carousel.is-wide .s-track { grid-auto-columns: 86%; } }
.s-carousel.is-wide .s-pcard > img, .s-carousel.is-wide .sc-card-media { aspect-ratio: 16 / 10 !important; }
.s-footer-address { font-style: normal; line-height: 1.7; margin: 0; }
.s-footer-register { margin-top: .6rem !important; font-size: .82rem; opacity: .7; }

/* ==== Impressum & Datenschutz ==== */
.s-intro.is-text { grid-template-columns: 1fr; margin-bottom: 2.5rem; }
.s-intro.is-text .s-intro-text { padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.4rem); }
.s-content .s-intro.is-text .s-lead { max-width: 46rem; }
.legal-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0 !important; }
.legal-switch a { padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .92rem; }
.legal-switch a:hover { background: rgba(255, 255, 255, .14); }
.legal-switch a.is-active { background: #fff; color: var(--primary-dark) !important; border-color: #fff; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto 3rem; align-items: start; }
.legal-layout.has-toc { grid-template-columns: 290px minmax(0, 1fr); max-width: none; }
.legal-card { padding: clamp(1.4rem, 4vw, 2.8rem); border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 16px 40px -28px rgba(10, 35, 60, .35); min-width: 0; }
.s-content .legal-card h2 { margin: 2.2rem 0 .8rem !important; padding: 1.6rem 0 0 !important; border: 0 !important; border-top: 1px solid var(--border) !important; font-size: 1.35rem;
  text-transform: none !important; letter-spacing: -.01em; color: var(--primary) !important; scroll-margin-top: 8rem; }
.s-content .legal-card h2:first-child { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.s-content .legal-card h3 { margin: 1.5rem 0 .5rem !important; font-size: 1.08rem; text-transform: none !important; color: var(--text) !important; }
.legal-card p, .legal-card li { line-height: 1.75; overflow-wrap: anywhere; }
.legal-card a { overflow-wrap: anywhere; }
.legal-toc { position: sticky; top: 7.5rem; max-height: calc(100vh - 9rem); overflow: auto; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: 18px; background: var(--soft); }
.legal-toc > summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); list-style: none; }
.legal-toc > summary::-webkit-details-marker { display: none; }
.legal-toc > summary::before { content: "☰ "; }
.legal-toc ol { margin: .8rem 0 0; padding-left: 1.4rem; font-size: .9rem; line-height: 1.45; }
.legal-toc li { margin: .35rem 0; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover, .legal-toc a.is-current { color: var(--primary); text-decoration: underline; }
@media (max-width: 1000px) {
  .legal-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .legal-toc { position: static; max-height: none; }
}
.legal-toc ol { list-style: none; padding-left: 0; }
/* Grafik statt Foto in der Titelkarte (Impressum/Datenschutz) */
.s-intro.is-art > figure { display: grid; place-items: center; background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 75%, #fff), var(--brand)); }
.s-intro .legal-art { width: 78%; max-width: 360px; height: auto; color: var(--brand); }

/* Hintergrundbild der Webseite (Webseite → Design): Bild hinter dem Inhalt, heller Schleier (--bg-fade) für die Lesbarkeit */
body.has-bg { position: relative; isolation: isolate; background: #fff; }
body.has-bg::before, body.has-bg::after { content: ""; inset: 0; z-index: -1; pointer-events: none; }
body.has-bg::before { background: var(--bg-img) center / cover no-repeat; filter: blur(var(--bg-blur, 0)); }
body.has-bg::after { background: rgba(255, 255, 255, var(--bg-fade, .8)); }
body.bg-fest::before, body.bg-fest::after { position: fixed; }
body.bg-fest::before { inset: calc(-2 * var(--bg-blur, 0px)); }
body.bg-scroll::before, body.bg-scroll::after, body.bg-kachel::before, body.bg-kachel::after { position: absolute; }
body.bg-scroll::before { background-position: center top; background-size: 100% auto; background-repeat: repeat-y; }
body.bg-kachel::before { background-size: auto; background-repeat: repeat; background-position: 0 0; }
