:root {
  --ink: #101713;
  --forest: #123d2d;
  --forest-dark: #0b2b20;
  --lime: #d7ed59;
  --cream: #f2efe5;
  --paper: #fbfaf6;
  --white: #fff;
  --line: rgba(16, 23, 19, .16);
  --muted: #657068;
  --max: 1280px;
  /* Layoutmasse der Inhaltsspalte. Der Ausbruch von Galerie und Bildrastern
     rechnet damit, wie weit die Textspalte links der Fenstermitte sitzt. */
  --bahn: min(980px, calc(100vw - 48px));
  --spalte: min(780px, var(--bahn));
  --spalten-versatz: calc((var(--bahn) - var(--spalte)) / 2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Der Kopf steht fix ueber dem Inhalt. Ohne Abstand landet jedes Sprungziel
   dahinter - betrifft alle Anker der Disziplin-, Abteilungs- und
   Galerieseiten. */
html { scroll-padding-top: 118px; }
@media (max-width: 820px) { html { scroll-padding-top: 96px; } }
/* scroll-margin zusaetzlich am Ziel: scrollIntoView aus dem Skript beachtet
   es zuverlaessiger als das scroll-padding des Wurzelelements. */
.entry-content [id], .svb-block, .svb-abschnitt { scroll-margin-top: 118px; }
@media (max-width: 820px) { .entry-content [id], .svb-block, .svb-abschnitt { scroll-margin-top: 96px; } }
html[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #11130c; background: var(--lime); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled { background: rgba(251, 250, 246, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(var(--max), calc(100% - 48px)); height: 102px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img, .brand .custom-logo { width: 66px; height: 66px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.main-nav, .main-nav .menu { display: flex; align-items: center; gap: 34px; font-size: 18px; font-weight: 700; }
.main-nav .menu { margin: 0; padding: 0; list-style: none; }
.main-nav .menu > li > a { position: relative; display: block; padding: 10px 2px; }
.main-nav .menu > li > a::after { content: ""; position: absolute; inset: auto 0 -7px; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav .menu > li > a:hover::after { transform: scaleX(1); }
.main-nav .menu > li:last-child > a { padding: 17px 24px; background: var(--forest); color: var(--white); }
.main-nav .menu > li:last-child > a::after { display: none; }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }
.theme-toggle { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { color: var(--paper); background: var(--ink); transform: rotate(8deg); }
.theme-toggle span { grid-area: 1 / 1; font-size: 18px; line-height: 1; }
.theme-icon-dark, html[data-theme="dark"] .theme-icon-light { opacity: 0; transform: scale(.6); }
html[data-theme="dark"] .theme-icon-dark { opacity: 1; transform: scale(1); }

.hero { position: relative; isolation: isolate; min-height: 860px; padding: 180px max(24px, calc((100vw - var(--max)) / 2)) 0; overflow: hidden; background: var(--cream); display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 6vw; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 0 102px; background: url("../images/bataillonsfoto-2026.jpg") center 58% / cover no-repeat; opacity: .72; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0 0 102px; background: linear-gradient(90deg, var(--cream) 0%, rgba(242,239,229,.96) 28%, rgba(242,239,229,.46) 58%, rgba(242,239,229,.08) 100%), linear-gradient(0deg, rgba(242,239,229,.2), rgba(242,239,229,.12)); }
.hero-text { z-index: 2; align-self: center; padding-bottom: 145px; }
.hero-text, .hero-visual { min-width: 0; }
.eyebrow { margin: 0 0 24px; color: var(--forest); font-size: 11px; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(64px, 7.2vw, 112px); font-weight: 400; letter-spacing: -.065em; line-height: .79; }
.hero h1 em, .statement-content h2 em { color: var(--forest); font-weight: 400; }
.hero-intro { max-width: 540px; margin: 38px 0 34px; font-size: 18px; color: #3e4942; }
.hero-actions, .join-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 22px; padding: 19px 26px; font-size: 16px; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: var(--white); }
.button-primary:hover { background: var(--forest-dark); }
.button-light { background: var(--lime); color: var(--ink); }
.text-link { display: inline-flex; gap: 18px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 6px; font-size: 16px; font-weight: 800; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.hero-visual { position: relative; align-self: stretch; margin-bottom: 120px; }
.hero-seal { position: absolute; z-index: 3; right: 30px; bottom: 34px; width: 164px; height: 164px; border-radius: 50%; background: var(--lime); display: flex; justify-content: center; align-items: center; gap: 8px; transform: rotate(-8deg); box-shadow: 0 12px 30px rgba(18,61,45,.18); }
.hero-seal strong { font-family: var(--serif); font-size: 54px; font-weight: 400; line-height: 1; }
.hero-seal span { font-size: 10px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.hero-note { position: absolute; right: -38px; bottom: 15px; margin: 0; color: var(--forest); font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.1; transform: rotate(-90deg); transform-origin: center; }
.hero-ticker { position: absolute; z-index: 8; inset: auto 0 0; min-height: 102px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--forest); color: var(--white); padding: 0 max(24px, calc((100vw - var(--max)) / 2)); }
.hero-ticker a { position: relative; z-index: 1; display: flex; align-items: center; gap: 17px; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.18); font-size: 15px; font-weight: 800; }
.hero-ticker a:first-child { border-left: 1px solid rgba(255,255,255,.18); }
.hero-ticker a:hover { background: rgba(255,255,255,.06); }
.hero-ticker span { color: var(--lime); font-family: var(--serif); font-size: 16px; font-style: italic; }

.section { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 130px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 52px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2, .heritage-copy h2, .join-content h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 400; }
.section-intro { max-width: 420px; margin: 0; color: var(--muted); font-size: 17px; }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 22px; }
.news-card { min-width: 0; background: var(--cream); overflow: hidden; }
.news-card > img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s; }
.news-card:not(.news-card-royalty):hover > img { transform: scale(1.025); }
.news-card-featured { display: grid; grid-template-columns: .78fr 1fr; }
.news-card-featured > img { height: 100%; min-height: 465px; }
.news-card-royalty { position: relative; isolation: isolate; display: block; height: 100%; min-height: 465px; background: #171915; }
.news-card-royalty-media { position: absolute; z-index: 0; inset: 0; min-width: 0; height: 100%; min-height: 465px; overflow: hidden; }
.news-card-royalty-media img { width: 100%; height: 100%; min-height: 465px; object-fit: cover; object-position: 44% 38%; }
.news-card-royalty .news-card-body { position: absolute; z-index: 1; right: 20px; bottom: 20px; width: min(340px, calc(100% - 40px)); margin: 0; padding: 22px 24px 20px; color: var(--white); background: linear-gradient(135deg, rgba(17,23,19,.68), rgba(17,23,19,.94) 44%, rgba(17,23,19,.98)); backdrop-filter: blur(7px); }
.news-card-royalty .news-card-body .meta { margin-bottom: 18px; color: rgba(255,255,255,.68); }
.news-card-royalty .news-card-body .meta span { color: var(--lime); }
.news-card-royalty .news-card-body > p:not(.meta) { color: rgba(255,255,255,.76); }
.news-card-royalty .news-card-link { margin-top: 0; padding-top: 20px; }
.news-card-body { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.news-card-body .meta { margin: 0 0 26px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.news-card-body .meta span { color: var(--forest); font-weight: 800; }
.news-card h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 31px; line-height: 1.05; font-weight: 400; }
.news-card-body > p:not(.meta) { color: var(--muted); font-size: 14px; }
.news-card-link { margin-top: auto; padding-top: 24px; font-size: 12px; font-weight: 800; }

.anniversary-section { position: relative; min-height: 720px; padding: 110px max(24px, calc((100vw - var(--max)) / 2)); overflow: hidden; background: var(--forest); color: var(--white); display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: center; }
.anniversary-section::after { content: "125"; position: absolute; right: -40px; bottom: -130px; color: rgba(255,255,255,.045); font-family: var(--serif); font-size: 430px; line-height: 1; }
.anniversary-cover { position: relative; z-index: 2; justify-self: center; width: min(100%, 390px); transform: rotate(-2.5deg); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.anniversary-cover img { width: 100%; height: auto; }
.anniversary-cover-placeholder { aspect-ratio: .72; padding: 40px; background: var(--forest-dark); border: 2px solid #c8a84d; display: grid; place-content: center; text-align: center; }
.anniversary-cover-placeholder strong { color: #c8a84d; font-family: var(--serif); font-size: 110px; font-weight: 400; line-height: .8; }
.anniversary-cover-placeholder small { margin-top: 20px; text-transform: uppercase; letter-spacing: .18em; }
.anniversary-copy { position: relative; z-index: 2; }
.anniversary-copy .eyebrow { color: var(--lime); }
.anniversary-copy h2, .shop-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(54px, 6vw, 92px); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.anniversary-copy h2 em { color: var(--lime); font-weight: 400; }
.anniversary-copy > p:not(.eyebrow) { max-width: 650px; margin: 32px 0; color: rgba(255,255,255,.72); font-size: 18px; }

.royalty-home-section { background: var(--paper); }
.royalty-home-section .svb-royalties { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.royalty-home-section .svb-royalty { padding: 0 0 22px; overflow: hidden; }
.royalty-home-section .svb-royalty > :not(img) { margin-inline: 22px; }

.statement-section { position: relative; min-height: 700px; overflow: hidden; padding: 130px max(24px, calc((100vw - var(--max)) / 2)); background: var(--forest); color: var(--white); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 5vw; }
.statement-mark { position: absolute; color: rgba(255,255,255,.045); font-family: var(--serif); font-size: 420px; line-height: 1; left: -40px; bottom: -95px; }
.statement-content { position: relative; z-index: 2; }
.statement-content .eyebrow { color: var(--lime); }
.statement-content h2 { margin: 0; font-family: var(--serif); font-size: clamp(50px, 5.2vw, 82px); line-height: .98; font-weight: 400; letter-spacing: -.05em; }
.statement-content h2 em { color: var(--lime); }
.statement-content > p:not(.eyebrow) { max-width: 620px; margin: 30px 0; color: rgba(255,255,255,.72); font-size: 17px; }
.statement-image { position: relative; z-index: 2; padding-right: 2%; }
.statement-image-button { display: block; width: 100%; border: 0; color: inherit; background: transparent; text-align: left; cursor: zoom-in; }
.statement-image::after { content: ""; position: absolute; inset: 22px -2px -22px 22px; border: 1px solid var(--lime); z-index: -1; }
.statement-image-frame { display: block; width: 100%; height: 500px; overflow: hidden; }
.statement-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.38); transform-origin: 50% 43%; }

.disciplines-section { padding-bottom: 150px; }
.discipline-list { border-top: 1px solid var(--line); }
.discipline { display: grid; grid-template-columns: 80px 1.25fr 1fr 40px; align-items: center; gap: 24px; min-height: 112px; padding: 18px 10px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.discipline:hover { background: var(--cream); padding-inline: 24px; }
.discipline-number { color: var(--forest); font-family: var(--serif); font-style: italic; font-size: 18px; }
.discipline strong { font-family: var(--serif); font-size: clamp(28px, 3vw, 43px); font-weight: 400; }
.discipline > span:not(.discipline-number) { color: var(--muted); font-size: 13px; }
.discipline b { justify-self: end; font-size: 22px; font-weight: 400; }

.schedule-section { padding: 120px max(24px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: var(--white); display: grid; grid-template-columns: .75fr 1.25fr; gap: 9vw; }
.schedule-copy .eyebrow { color: var(--lime); }
.schedule-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(55px, 6vw, 88px); line-height: .88; font-weight: 400; letter-spacing: -.055em; }
.schedule-copy > p:not(.eyebrow) { max-width: 430px; margin: 34px 0; color: rgba(255,255,255,.62); }
.text-link-light { color: var(--lime); }
.schedule-list { border-top: 1px solid rgba(255,255,255,.22); }
.schedule-item { display: grid; grid-template-columns: 165px 1fr; align-items: center; min-height: 105px; border-bottom: 1px solid rgba(255,255,255,.22); }
.schedule-item > div { display: flex; align-items: baseline; gap: 19px; }
.schedule-item span { color: var(--lime); font-family: var(--serif); font-style: italic; white-space: nowrap; }
/* "Heute"/"Morgen" ist laenger als ein Kuerzel wie "Mo" - etwas kleiner,
   damit die Spalte nicht springt. */
.schedule-item .schedule-day-relativ { font-size: 15px; letter-spacing: .01em; }
.schedule-item strong { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.schedule-item p { margin: 0; font-weight: 700; }
.schedule-item small { display: block; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 400; }
.schedule-more { display: flex; justify-content: space-between; padding: 26px 0; color: var(--lime); font-size: 12px; font-weight: 800; }

.heritage-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.heritage-photo { position: relative; padding: 0 0 48px 48px; }
.heritage-photo::before { content: ""; position: absolute; inset: 48px 48px 0 0; background: var(--lime); z-index: -1; }
.heritage-photo img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.heritage-year { position: absolute; left: 0; bottom: 10px; display: grid; color: var(--forest); }
.heritage-year span { font-family: var(--serif); font-style: italic; }
.heritage-year strong { font-family: var(--serif); font-size: 64px; line-height: .9; font-weight: 400; }
.heritage-copy > p:not(.eyebrow) { margin: 28px 0 34px; color: var(--muted); font-size: 17px; }
.heritage-links { border-top: 1px solid var(--line); }
.heritage-links a { display: flex; justify-content: space-between; padding: 19px 2px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.heritage-links a:hover { color: var(--forest); }

.shop-section { min-height: 650px; padding: 100px max(24px, calc((100vw - var(--max)) / 2)); background: var(--cream); display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: center; }
/* Motiv ist 2:1 und traegt an beiden Raendern Inhalt (Festivallogo links,
   Vereinswappen rechts). Container uebernimmt das Verhaeltnis, das Bild wird
   eingepasst statt beschnitten. */
.shop-visual { min-height: 0; aspect-ratio: 2 / 1; background: var(--forest-dark); display: grid; place-items: center; overflow: hidden; }
.shop-visual:empty::before { content: "SVB01 SHOP"; color: var(--lime); font-family: var(--serif); font-size: clamp(54px, 7vw, 105px); }
.shop-visual img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.shop-copy h2 { color: var(--forest); }
.shop-brand-mark { width: 104px; height: 104px; margin: 0 0 30px; object-fit: contain; box-shadow: 12px 12px 0 var(--lime); }
.shop-copy > p:not(.eyebrow) { margin: 28px 0 32px; color: var(--muted); font-size: 17px; }

.social-section { padding-top: 120px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.social-feed { min-width: 0; padding: 28px; background: var(--cream); }
.social-feed > header { min-height: 48px; margin-bottom: 24px; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; border-bottom: 1px solid var(--line); }
.social-feed h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.social-feed header a { font-size: 12px; font-weight: 800; }
.social-feed .feed-awaiting { color: var(--muted); font-size: 13px; }
.social-feed #sbi_mod_error { display: none !important; }
.social-feed:has(.sbi_feed), .social-feed:has(.cff-wrapper) { background: var(--paper); }
.social-feed:has(.sbi_feed) .feed-awaiting, .social-feed:has(.cff-wrapper) .feed-awaiting { display: none; }

.join-section { width: min(var(--max), calc(100% - 48px)); min-height: 530px; margin: 0 auto 120px; padding: 80px; background: var(--lime); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; overflow: hidden; }
.join-content { position: relative; z-index: 2; }
.join-content > p:not(.eyebrow) { max-width: 650px; margin: 26px 0 32px; font-size: 18px; }
.join-orbit { position: relative; justify-self: center; width: 290px; height: 290px; border: 1px solid rgba(16,23,19,.35); border-radius: 50%; display: grid; place-items: center; }
.join-orbit::before, .join-orbit::after { content: ""; position: absolute; border: 1px solid rgba(16,23,19,.2); border-radius: 50%; }
.join-orbit::before { inset: -45px; }
.join-orbit::after { inset: -90px; }
.join-orbit span { font-family: var(--serif); font-size: 82px; font-style: italic; transform: rotate(-9deg); }

.site-footer { padding: 90px max(24px, calc((100vw - var(--max)) / 2)) 30px; background: var(--forest-dark); color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.35fr .75fr .75fr; gap: 7vw; padding-bottom: 80px; }
.footer-brand { display: flex; align-items: center; gap: 26px; }
.footer-brand img { width: 82px; }
.footer-brand h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 58px); line-height: .97; font-weight: 400; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; }
.footer-label { margin: 0 0 15px; color: var(--lime); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.footer-contact address { font-style: normal; color: rgba(255,255,255,.7); }
.footer-contact a { border-bottom: 1px solid rgba(255,255,255,.45); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.62); font-size: 10px; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav .menu { display: contents; margin: 0; padding: 0; list-style: none; }
.prototype-label { color: var(--lime); text-transform: uppercase; letter-spacing: .13em; }

.content-shell { width: var(--bahn); min-height: 62vh; margin: 0 auto; padding: 190px 0 120px; }
.content-header { max-width: 880px; margin-bottom: 70px; }
.content-header .eyebrow { margin-bottom: 18px; }
.content-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 7vw, 92px); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.content-header > p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 18px; }
.entry-hero { margin: 0 0 54px; }
.entry-hero img { width: 100%; max-height: 620px; object-fit: cover; }
.entry-content { max-width: var(--spalte); font-size: 17px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.5em; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; font-family: var(--serif); font-weight: 400; line-height: 1.1; }
.entry-content h2 { font-size: 42px; }
.entry-content h3 { font-size: 30px; }
/* :where() nimmt der Regel die Spezifitaet. Vorher gewann `.entry-content a`
   gegen `.button-primary` - im Hellmodus stand dann forest auf forest, also
   unsichtbarer Text auf der Schaltflaeche (/mitglied-werden/). */
:where(.entry-content) a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.entry-content) a.button, :where(.entry-content) a.wp-block-button__link { text-decoration: none; }
.entry-content .wp-block-button__link { color: var(--white); background: var(--forest); border-radius: 0; padding: 15px 20px; text-decoration: none; font-size: 13px; font-weight: 800; }
.entry-content .alignwide { width: min(1100px, 100vw - 48px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-list { border-top: 1px solid var(--line); }
.post-list-item { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.post-list-item img { width: 100%; height: 210px; object-fit: cover; }
.post-list-item .meta { margin: 0 0 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.post-list-item h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 34px; line-height: 1.05; font-weight: 400; }
.post-list-item p { color: var(--muted); }
.navigation.pagination { margin-top: 50px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; min-height: 42px; padding: 8px; place-items: center; border: 1px solid var(--line); }
.page-numbers.current { color: var(--white); background: var(--forest); }
.svb-contacts, .svb-royalties { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 34px 0; }
.svb-contact, .svb-royalty { padding: 22px; background: var(--cream); }
.svb-contact { display: flex; flex-direction: column; }
.svb-card-media { width: 100%; height: 250px; margin-bottom: 20px; overflow: hidden; background: #ecebe4; }
.svb-card-media img { width: 100%; height: 100%; margin: 0; object-fit: contain; transition: transform .25s ease; }
.svb-card-image-button { display: block; width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; border: 0; color: inherit; background: transparent; cursor: zoom-in; }
.svb-card-image-button:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.svb-contact h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.svb-contact p, .svb-royalty p { margin: 5px 0; font-size: 14px; }
.svb-royalties-current { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.svb-royalties-current .svb-royalty { padding: 0 0 26px; overflow: hidden; }
.svb-royalties-current .svb-card-media { height: clamp(270px, 31vw, 390px); margin-bottom: 24px; }
.svb-royalty-copy { margin-inline: 26px; }
.svb-royalty-title { margin: 0; color: var(--forest); font-family: var(--serif); font-size: clamp(43px, 4.3vw, 66px); font-weight: 400; line-height: .95; letter-spacing: -.035em; overflow-wrap: anywhere; }
.svb-royalty-year { margin: 10px 0 22px!important; color: var(--muted); font-size: 12px!important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.svb-royalty h4 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(26px, 2.7vw, 38px); font-weight: 400; line-height: 1.05; }
.svb-royalty-epithet { color: var(--muted); font-family: var(--serif); font-size: 18px!important; font-style: italic; }
.svb-contact-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; }
.svb-contact .svb-contact-action { position: relative; display: grid; width: 46px; height: 46px; margin: 0; place-items: center; border-radius: 50%; color: #fff; background: #123d2d; text-decoration: none; }
.svb-contact-action svg { width: 23px; height: 23px; fill: currentColor; }
.svb-contact .svb-contact-action:hover, .svb-contact .svb-contact-action:focus-visible { color: var(--ink); background: var(--lime); }
.svb-contact-action::after { position: absolute; z-index: 5; bottom: calc(100% + 9px); left: 50%; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 7px 10px; border-radius: 4px; color: #fff; background: var(--ink); content: attr(data-tooltip); font-size: 12px; line-height: 1.3; opacity: 0; overflow-wrap: break-word; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .16s ease, transform .16s ease; }
.svb-contact-action:hover::after, .svb-contact-action:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.svb-person-modal { position: fixed; z-index: 10000; inset: 0; display: none; padding: 28px; place-items: center; background: rgba(5,7,6,.82); backdrop-filter: blur(10px); }
.svb-person-modal.is-open { display: grid; }
.svb-person-modal-card { position: relative; width: min(620px, calc(100vw - 44px)); max-height: calc(100vh - 44px); overflow: auto; padding: 24px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 34px 90px rgba(0,0,0,.38); }
.svb-person-modal-media { width: 100%; max-height: min(68vh, 720px); overflow: hidden; background: #ecebe4; }
.svb-person-modal-media img { display: block; width: 100%; height: 100%; object-fit: contain; filter: none!important; }
.svb-person-modal-copy { padding: 23px 4px 2px; }
.svb-person-modal-title { margin: 0 0 7px!important; color: var(--forest); font-size: 11px!important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.svb-person-modal-name { margin: 0!important; font-family: var(--serif); font-size: clamp(34px, 5vw, 52px)!important; font-weight: 400; line-height: 1; }
.svb-person-modal-meta { margin: 10px 0 0!important; color: var(--muted); font-size: 13px!important; }
.svb-person-modal-close { position: absolute; z-index: 2; top: 34px; right: 34px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #fff; background: rgba(10,10,10,.7); cursor: pointer; font-size: 27px; line-height: 1; }
.svb-person-modal-close:hover, .svb-person-modal-close:focus-visible { color: #11130c; background: var(--lime); border-color: var(--lime); }
.svb-person-modal.is-wide .svb-person-modal-card { width: min(1500px, calc(100vw - 64px)); padding: 18px; }
.svb-person-modal.is-wide .svb-person-modal-media { max-height: min(78vh, 1000px); }
.svb-person-modal.is-wide .svb-person-modal-copy { padding: 14px 4px 2px; }
.svb-person-modal.is-wide .svb-person-modal-name { font-size: clamp(28px, 3vw, 42px)!important; }
body.svb-modal-open { overflow: hidden; }
.svb-image-placeholder { display: grid; width: 100%; height: 250px; margin-bottom: 20px; place-content: center; gap: 8px; color: var(--forest); background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 11%, var(--cream)), var(--cream)); text-align: center; }
.svb-card-media .svb-image-placeholder { height: 100%; margin: 0; }
.svb-image-placeholder span { display: grid; width: 82px; height: 82px; margin-inline: auto; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 28px; }
.svb-image-placeholder small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.svb-royalties-current .svb-image-placeholder { height: 100%; margin: 0; }
.svb-membership-form, .svb-membership-pdf { margin: 36px 0; }
.news-card-featured > .svb-image-placeholder { height: 100%; min-height: 420px; margin: 0; }
.entry-content:has(.svb-contact-directory) { width: min(1180px, 100vw - 48px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.svb-contact-group { margin-top: 70px; }
/* Traegt in einer Gruppe kein Eintrag ein Foto (derzeit die Fachreferenten),
   waeren es lauter gleiche 250-px-Platzhalter. Dann lieber ein kompaktes
   Kartenformat mit kleinem Initialenzeichen. Sobald ein Foto gepflegt wird,
   faellt die Klasse weg und die Portraitkarten kommen von selbst zurueck. */
.svb-contact-group-compact .svb-contacts { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.svb-contact-group-compact .svb-card-media { width: 54px; height: 54px; margin: 0 0 14px; border-radius: 50%; }
.svb-contact-group-compact .svb-image-placeholder { height: 100%; margin: 0; gap: 0; border-radius: 50%; }
.svb-contact-group-compact .svb-image-placeholder span { width: 54px; height: 54px; border-width: 1px; font-size: 17px; }
.svb-contact-group-compact .svb-image-placeholder small { display: none; }
.svb-contact-group-compact .svb-contact h3 { font-size: 25px; }
.svb-contact-group > h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.svb-contact-role { margin: 0 0 8px!important; color: var(--forest); font-size: 13px!important; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
/* Lange Zustaendigkeiten (Disziplinlisten der Fachreferenten) sprengten die
   Karte: Grossbuchstaben plus Sperrung brauchen etwa ein Drittel mehr Breite.
   Ab 44 Zeichen daher gemischte Schreibweise ohne Sperrung. */
.svb-contact-role--lang { font-size: 13px!important; font-weight: 700; letter-spacing: 0; line-height: 1.4; text-transform: none; }
.svb-contact-kennung { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--forest) 12%, transparent); font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.svb-contact-notes { color: var(--muted); overflow-wrap: anywhere; }
.entry-content:has(.svb-royalty-overview) { width: min(1100px, 100vw - 48px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.svb-royalty-overview > section > h2 { margin-bottom: 8px; }
.svb-royalty-archive { margin-top: 80px; }
.svb-archive-intro { max-width: 720px; color: var(--muted); }
.svb-royalty-group { border-top: 1px solid var(--line); }
.svb-royalty-group:last-child { border-bottom: 1px solid var(--line); }
.svb-royalty-group summary { padding: 22px 4px; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; list-style: none; }
.svb-royalty-group summary::-webkit-details-marker { display: none; }
.svb-royalty-group summary strong { font-family: var(--serif); font-size: 27px; font-weight: 400; }
.svb-royalty-group summary span { color: var(--muted); font-size: 12px; }
.svb-royalty-group[open] summary { color: var(--forest); }
.svb-table-scroll { max-width: 100%; overflow-x: auto; }
.svb-royalty-table { width: 100%; margin: 0 0 30px; border-collapse: collapse; font-size: 14px; }
.svb-royalty-table th, .svb-royalty-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.svb-royalty-table thead th { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.svb-royalty-table tbody th { font-weight: 700; }
.svb-training-list, .svb-documents { border-top: 1px solid var(--line); margin: 34px 0; }
.svb-training-list article, .svb-documents article { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.svb-training-list h3, .svb-documents h3 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.svb-training-list p, .svb-documents p { margin: 0; }
.svb-documents article { grid-template-columns: 1fr auto; align-items: center; }
.svb-documents small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.svb-documents a { font-size: 13px; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { transition-duration: 0s !important; } }

@media (max-width: 1050px) {
  .main-nav, .main-nav .menu { gap: 16px; font-size: 15px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-seal { right: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: 1 / -1; }
  .news-card-featured > img { min-height: 420px; }
  .news-card-royalty { height: 420px; min-height: 420px; }
  .news-card-royalty-media, .news-card-royalty-media img { height: 100%; min-height: 420px; }
  .royalty-home-section .svb-royalties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  /* backdrop-filter macht den Kopf zum Bezugsrahmen fuer position:fixed und
     schneidet damit das Menuepanel auf Kopfhoehe zusammen, sobald gescrollt
     wurde (is-scrolled). Auf Mobilbreiten daher ohne Weichzeichner. */
  .site-header.is-scrolled { backdrop-filter: none; }
  .header-inner { width: calc(100% - 32px); height: 82px; }
  .brand img { width: 52px; height: 52px; }
  .menu-toggle { z-index: 2; display: grid; gap: 5px; }
	.header-actions { gap: 6px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; padding: 110px 28px 36px; background: var(--cream); display: block; transform: translateX(100%); transition: transform .3s; font-family: var(--serif); font-size: 32px; }
  .main-nav.is-open { transform: none; }
  .main-nav .menu { display: flex; align-items: stretch; flex-direction: column; gap: 0; font-size: 32px; }
  .main-nav .menu > li > a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav .menu > li:last-child > a { margin-top: 20px; padding: 18px !important; text-align: center; font-family: var(--sans); font-size: 17px; }
  .hero { min-height: auto; padding: 130px 24px 0; grid-template-columns: 1fr; }
  .hero::before { background-size: 100% auto; background-position: center bottom 102px; }
  .hero::after { background: linear-gradient(180deg, var(--cream) 0%, rgba(242,239,229,.94) 40%, rgba(242,239,229,.28) 72%, rgba(242,239,229,.08) 100%); }
  .hero-text { padding-bottom: 60px; }
  .hero-visual { width: 88%; min-height: 46vw; margin: 0 auto 140px; }
  .hero-ticker { position: relative; margin-inline: -24px; grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .hero-ticker a { min-height: 72px; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .section { padding: 90px 0; }
  .anniversary-section, .statement-section, .schedule-section, .heritage-section, .shop-section { grid-template-columns: 1fr; }
  .anniversary-section { padding-block: 90px; }
  .anniversary-cover { width: min(68vw, 370px); }
  .statement-section { padding-block: 90px; }
  .statement-image-frame { height: 60vw; }
  .schedule-section { gap: 60px; }
  .heritage-section { gap: 65px; }
  .shop-section { gap: 55px; }
  .shop-copy { order: -1; }
  .social-grid { grid-template-columns: 1fr; }
  .heritage-photo img { aspect-ratio: 4 / 3; }
  .join-section { padding: 60px 40px; grid-template-columns: 1fr; }
  .join-orbit { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .post-list-item { grid-template-columns: 220px 1fr; }
}

@media (max-width: 600px) {
  .brand-copy small { display: none; }
  .hero h1 { font-size: clamp(54px, 16.5vw, 68px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { width: 96%; min-height: 52vw; }
  .hero-seal { width: 132px; height: 132px; right: 0; }
  .hero-seal strong { font-size: 43px; }
  .hero-note { display: none; }
  .hero-ticker { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .royalty-home-section .svb-royalties { grid-template-columns: 1fr 1fr; }
  .news-card-featured { display: block; }
  .news-card-featured > img, .news-card > img { height: 300px; min-height: 0; }
  .news-card-royalty { height: 560px; min-height: 560px; }
  .news-card-royalty-media, .news-card-royalty-media img { height: 100%; min-height: 0; }
  .news-card-royalty .news-card-body { right: 14px; bottom: 14px; width: calc(100% - 28px); padding: 20px; }
  .news-card-royalty .news-card-body .meta { margin-bottom: 14px; }
  .news-card-royalty .news-card-body h3 { font-size: 28px; }
  .statement-image { padding-right: 0; }
  .discipline { grid-template-columns: 44px 1fr 28px; gap: 12px; min-height: 94px; }
  .discipline > span:not(.discipline-number) { display: none; }
  .schedule-item { grid-template-columns: 125px 1fr; }
  .heritage-photo { padding: 0 0 34px 32px; }
  .heritage-year strong { font-size: 48px; }
  .join-section { width: 100%; margin-bottom: 0; padding: 70px 24px; }
  .join-actions { align-items: flex-start; flex-direction: column; }
  .site-footer { padding-top: 70px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .content-shell { width: calc(100% - 48px); padding: 140px 0 80px; }
  .content-header { margin-bottom: 48px; }
  .post-list-item { grid-template-columns: 1fr; gap: 22px; }
  .post-list-item img { height: 260px; }
  .svb-training-list article { grid-template-columns: 1fr; gap: 8px; }
  .svb-documents article { align-items: start; grid-template-columns: 1fr; }
  .svb-royalties-current { grid-template-columns: 1fr; }
  .shop-visual, .shop-visual img { min-height: 0; }
  .social-feed { padding: 20px; }
}

@media (max-width: 430px) {
  .royalty-home-section .svb-royalties { grid-template-columns: 1fr; }
}

html[data-theme="dark"] {
  --ink: #f4f1e9;
  --forest: #a0bd37;
  --forest-dark: #0c0b0a;
  --lime: #a0bd37;
  --cream: #1d1a18;
  --paper: #13110f;
  --white: #f7f4ec;
  --line: rgba(255,255,255,.16);
  --muted: #aaa69f;
}
html[data-theme="dark"] body { background: #13110f; }
html[data-theme="dark"] .site-header.is-scrolled { background: rgba(19,17,15,.94); }
html[data-theme="dark"] .theme-toggle { color: #f7f4ec; background: #1d1a18; border-color: rgba(255,255,255,.2); }
html[data-theme="dark"] .theme-toggle:hover { color: #13110f; background: #a0bd37; }
html[data-theme="dark"] .hero { background: #171411; }
html[data-theme="dark"] .hero::before { opacity: .54; }
html[data-theme="dark"] .hero::after { background: linear-gradient(90deg, #171411 0%, rgba(23,20,17,.96) 28%, rgba(23,20,17,.52) 60%, rgba(23,20,17,.12) 100%); }
html[data-theme="dark"] .hero-intro { color: #bbb6ae; }
html[data-theme="dark"] .hero-ticker { background: #0d0c0b; }
html[data-theme="dark"] .anniversary-section { background: #0d0c0b; }
html[data-theme="dark"] .button-primary { color: #11130c; background: #a0bd37; }
html[data-theme="dark"] .button-primary:hover { background: #b6d44b; }
html[data-theme="dark"] .button-light { color: #11130c; }
html[data-theme="dark"] .statement-section { background: #171b10; }
html[data-theme="dark"] .schedule-section { background: #0b0a09; }
html[data-theme="dark"] .shop-section { background: #181512; }
html[data-theme="dark"] .shop-visual { background: #0b0a09; }
html[data-theme="dark"] .join-section { color: #11130c; background: #a0bd37; }
html[data-theme="dark"] .site-footer { background: #090807; }
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .svb-contact,
html[data-theme="dark"] .svb-royalty,
html[data-theme="dark"] .social-feed { background: #201c19; }
html[data-theme="dark"] .main-nav .menu > li:last-child > a { color: #11130c; background: #a0bd37; }
html[data-theme="dark"] .entry-content .wp-block-button__link { color: #11130c; background: #a0bd37; }
html[data-theme="dark"] .svb-contact .svb-contact-action { color: #11130c; background: #a0bd37; }
html[data-theme="dark"] .svb-contact .svb-contact-action:hover, html[data-theme="dark"] .svb-contact .svb-contact-action:focus-visible { color: #fff; background: #123d2d; }
html[data-theme="dark"] .svb-contact-action::after { color: #171411; background: #f4f1e9; border: 1px solid rgba(0,0,0,.18); box-shadow: 0 8px 25px rgba(0,0,0,.3); }
html[data-theme="dark"] .svb-card-media,
html[data-theme="dark"] .svb-person-modal-media { background: #171411; }
html[data-theme="dark"] img { filter: brightness(.92) contrast(1.04); }
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .anniversary-cover img { filter: none; }

@media (max-width: 1180px) {
  html[data-theme="dark"] .main-nav { background: #171411; }
  html[data-theme="dark"] .hero::after { background: linear-gradient(180deg, #171411 0%, rgba(23,20,17,.94) 42%, rgba(23,20,17,.32) 75%, rgba(23,20,17,.1) 100%); }
}

/* --- Zweistufige Hauptnavigation (C2) ------------------------------------
   Bis Paket N1 kam die Navigation aus svb01_primary_menu_fallback() und war
   damit einstufig. Mit einem zugeordneten WordPress-Menue liefert wp_nav_menu
   bei depth=2 zusaetzlich ul.sub-menu in li.menu-item-has-children — dafuer gab
   es bisher keine einzige Regel. Ohne diesen Block erscheint das Untermenue als
   ungestylte verschachtelte Liste. */
.main-nav .menu li { position: relative; }
.main-nav .sub-menu { margin: 0; padding: 0; list-style: none; }

@media (min-width: 1181px) {
  /* Aufklappen per Hover und per Tastatur (focus-within), kein JavaScript */
  .main-nav .sub-menu {
    position: absolute; z-index: 5; top: 100%; left: -16px;
    min-width: 252px; padding: 10px 0;
    background: var(--paper); border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .14);
    font-size: 16px; font-weight: 600; text-align: left;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .main-nav .menu-item-has-children:hover > .sub-menu,
  .main-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: none;
  }
  .main-nav .sub-menu a { display: block; padding: 9px 18px; }
  /* Der abgeleitete Uebersichtslink gehoert sichtbar zum Hauptpunkt, ist
     aber kein gleichrangiger Unterpunkt - daher abgesetzt. */
  .main-nav .sub-menu .svb-menu-overview > a { color: var(--muted); font-size: 15px; }
  .main-nav .sub-menu .svb-menu-overview { border-bottom: 1px solid var(--line); }
  .main-nav .sub-menu a:hover,
  .main-nav .sub-menu a:focus-visible { background: var(--cream); color: var(--forest); }
  /* Kleiner Hinweispfeil am Elternpunkt. ::after ist dort schon fuer die
     Unterstreichung belegt, deshalb ::before. */
  .main-nav .menu > li.menu-item-has-children > a { padding-right: 15px; }
  .main-nav .menu > li.menu-item-has-children > a::before {
    content: ""; position: absolute; right: 0; top: 50%;
    width: 6px; height: 6px; margin-top: -5px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); opacity: .5;
  }
}

@media (max-width: 1180px) {
  /* Das Mobilmenue ist ein fixiertes Vollbild-Panel. Mit Unterpunkten wird die
     Liste laenger als der Bildschirm — ohne overflow-y waeren die untersten
     Einträge nicht erreichbar. */
  .main-nav { overflow-y: auto; overscroll-behavior: contain; }
  .main-nav .sub-menu {
    padding: 2px 0 12px 20px;
    font-family: var(--sans); font-size: 17px; font-weight: 600;
  }
  .main-nav .sub-menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .main-nav .sub-menu .svb-menu-overview > a { color: var(--muted); font-size: 24px; }
  .main-nav .sub-menu li:last-child > a { border-bottom: 0; }
  .main-nav .menu > li.menu-item-has-children > a { border-bottom: 0; }
}

/* --- Download-Einstieg im Header (Paket 2026-08-20) ---------------------- */
.header-downloads {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); background: var(--paper);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.header-downloads:hover,
.header-downloads:focus-visible { color: var(--paper); background: var(--ink); transform: translateY(-1px); }
@media (max-width: 820px) {
  /* Im Mobilheader neben Farbschema und Menuebutton, vor dem Panel */
  .header-downloads { z-index: 2; width: 38px; height: 38px; }
}

/* --- N4.4: Newsliste als Karten ------------------------------------------- */
/* Vorher eine Reihe Trennlinien mit 280-px-Bild links. Jetzt Karten im Stil der
   Galerie- und Inhaltsbloecke, damit /aktuelles/ zum Rest passt. */
.svb-news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin: 30px 0 34px;
  position: relative;
  /* Die Newsliste steht direkt in .content-shell und damit in einer zentrierten
     Bahn - hier darf der Spaltenversatz der Textspalte nicht dazukommen,
     sonst rutscht das Raster um 100 px nach rechts (gemessen). */
  left: 50%;
  transform: translateX(-50%);
  /* Gleiche Breite wie die Hub-Karten, damit die linken Kanten fluchten. */
  width: min(1120px, calc(100vw - 40px));
}
.svb-news-karte { display: grid; align-content: start; overflow: hidden; border-radius: 3px; background: var(--cream); }
.svb-news-bild { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--forest) 10%, var(--paper)); }
.svb-news-bild img { width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .35s ease; }
.svb-news-karte:hover .svb-news-bild img { transform: scale(1.03); }
.svb-news-platzhalter { display: grid; height: 100%; place-items: center; color: var(--forest); font-family: var(--serif); font-size: 34px; }
.svb-news-text { padding: 18px 20px 22px; }
.svb-news-text .meta { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.svb-news-text .meta a { color: inherit; }
.svb-news-text h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.12; }
.svb-news-text h2 a { color: inherit; text-decoration: none; }
.svb-news-text h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.svb-news-text p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.svb-news-leer { grid-column: 1 / -1; color: var(--muted); font-style: italic; }
html[data-theme="dark"] .svb-news-karte { background: #201c19; }
@media (max-width: 600px) {
  .svb-news { grid-template-columns: 1fr; gap: 12px; width: calc(100vw - 24px); }
  .svb-news-text { padding: 15px 16px 18px; }
  .svb-news-text h2 { font-size: 23px; }
}

/* --- N4.1: Panel-Grenze bei 1100 px --------------------------------------
   Neun Hauptpunkte brauchen als waagerechte Leiste rund 1100 px. Zwischen 821
   und 1100 px kommt deshalb derselbe Umschalter und dasselbe Panel wie mobil;
   die uebrigen Mobilregeln bleiben bei 820 px. */
/* Unter 1250 px wird es neben neun Punkten eng: der Zusatz "Gemeinsam seit 1901"
   braecht dort auf zwei Zeilen und rueckt an die Navigation. */
@media (max-width: 1250px) {
  .brand-copy small { display: none; }
}
@media (max-width: 1180px) {
  .menu-toggle { z-index: 2; display: grid; gap: 5px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions { gap: 6px; }
  .header-downloads { z-index: 2; width: 38px; height: 38px; }
  .main-nav { position: fixed; inset: 0; padding: 110px 28px 36px; background: var(--cream); display: block; transform: translateX(100%); transition: transform .3s; font-family: var(--serif); font-size: 32px; }
  .main-nav.is-open { transform: none; }
  .main-nav .menu { display: flex; align-items: stretch; flex-direction: column; gap: 0; font-size: 32px; }
  .main-nav .menu > li > a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav .menu > li:last-child > a { margin-top: 20px; padding: 18px !important; text-align: center; font-family: var(--sans); font-size: 17px; }
  /* Im Panel steht wieder die Beschriftung, nicht nur das Symbol. */
  .main-nav .menu > li.svb-menu-service .svb-menu-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
}

/* --- N4.1: Kontakt als Brief, Archiv als Abstandhalter -------------------- */
/* Kontakt und Dokumente sind Servicepunkte und stehen rechts vor "Mitglied
   werden". Beide bekommen ein Symbol und etwas kleinere Schrift, damit sie sich
   von den Inhaltspunkten abgrenzen - die Beschriftung bleibt lesbar stehen. */
.main-nav .menu > li > a[href$="/kontakt/"] { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; }
.main-nav .menu > li > a[href$="/kontakt/"]::before {
  content: "";
  width: 17px; height: 17px; flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5zm2 2v.4l7 4.6 7-4.6V7H5zm14 3.1-7 4.6-7-4.6V17h14v-6.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5zm2 2v.4l7 4.6 7-4.6V7H5zm14 3.1-7 4.6-7-4.6V17h14v-6.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.main-nav .menu > li > a[href$="/downloads/"] { font-size: 16px; }
@media (min-width: 1181px) {
  /* Neun Hauptpunkte passen nur, wenn die zwei Servicepunkte Platz abgeben.
     Die Beschriftung bleibt fuer Screenreader vorhanden. */
  .main-nav .menu > li.svb-menu-service > a { gap: 0; }
  .main-nav .menu > li.svb-menu-service .svb-menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .main-nav .menu > li.svb-menu-service > a::before { width: 21px; height: 21px; }
  .main-nav .menu > li.svb-menu-service > a::after { display: none; }
}
/* Abstandhalter im Untermenue: Beschriftung mit Linie, nicht anklickbar. */
.main-nav .sub-menu .svb-menu-trenner > a,
.main-nav .sub-menu .svb-menu-trenner > span {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: default; pointer-events: none;
}
.main-nav .sub-menu .svb-menu-trenner > a::after,
.main-nav .sub-menu .svb-menu-trenner > span::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.main-nav .sub-menu .svb-menu-trenner > a:hover { background: none; }
@media (max-width: 1180px) {
  .main-nav .menu > li > a[href$="/kontakt/"] { padding: 13px 0; font-size: 32px; }
  .main-nav .menu > li > a[href$="/kontakt/"]::before { width: 24px; height: 24px; }
  .main-nav .menu > li > a[href$="/downloads/"] { font-size: 32px; }
  .main-nav .sub-menu .svb-menu-trenner > a { border-bottom: 0; }
}

/* --- N4.3: Uebersichtsseiten als Verweiskarten ---------------------------- */
/* Die Uebersichten sollen ein Einstieg sein, kein Fliesstext: grosse Titel,
   kurze Beschreibung, klare Richtung. Der Ausbruch nutzt denselben
   Spaltenversatz wie Galerie und Wochenkalender. */
.svb-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin: 32px 0 42px;
  position: relative;
  left: calc(50% + var(--spalten-versatz));
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 40px));
}
.svb-hub-karte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 20px 22px;
  border-radius: 3px;
  color: inherit;
  background: var(--cream);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.svb-hub-karte strong { grid-column: 1; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.15; overflow-wrap: break-word; }
.svb-hub-karte small { grid-column: 1; color: var(--muted); font-size: 13px; line-height: 1.45; }
.svb-hub-karte > span { grid-column: 2; grid-row: 1 / -1; color: var(--forest); font-size: 22px; transition: transform .2s ease; }
.svb-hub-karte:hover, .svb-hub-karte:focus-visible { background: color-mix(in srgb, var(--forest) 9%, var(--cream)); transform: translateY(-2px); }
.svb-hub-karte:hover > span, .svb-hub-karte:focus-visible > span { transform: translateX(3px); }
/* Abstandhalter innerhalb der Kartenreihe, z. B. "Archiv" bei Tradition. */
.svb-hub-trenner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.svb-hub-trenner::after { content: ""; flex: 1; height: 1px; background: var(--line); }
html[data-theme="dark"] .svb-hub-karte { background: #201c19; }
html[data-theme="dark"] .svb-hub-karte:hover, html[data-theme="dark"] .svb-hub-karte:focus-visible { background: #262019; }
@media (max-width: 600px) {
  .svb-hub { grid-template-columns: 1fr; gap: 10px; width: calc(100vw - 24px); }
  .svb-hub-karte { padding: 16px 18px; }
  .svb-hub-karte strong { font-size: 22px; }
}

/* --- V6: Wochenkalender der Trainingszeiten ------------------------------- */
.svb-woche {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 18px;
  position: relative;
  left: calc(50% + var(--spalten-versatz));
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 40px));
}
.svb-woche-tag { padding: 14px 12px 16px; background: var(--cream); border-radius: 3px; }
.svb-woche-tag h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svb-woche-tag h3 span { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; color: #11130c; background: var(--lime); font-size: 10px; letter-spacing: .06em; }
.svb-woche-heute { outline: 2px solid var(--forest); outline-offset: -2px; }
/* minmax(0,1fr) statt auto: ein langes Wort wie "Unterhebelrepetierer" macht
   das Rasterelement sonst breiter als die Tagesspalte (gemessen 24 px Ueberhang). */
.svb-woche-tag ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.svb-woche-tag li { display: grid; gap: 2px; padding: 10px 11px; background: var(--paper); border-radius: 2px; }
.svb-woche-zeit { color: var(--forest); font-size: 13px; font-weight: 800; }
.svb-woche-tag li strong { font-family: var(--serif); font-size: 17px; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.svb-woche-tag li small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.svb-woche-leer { margin: 0; color: var(--muted); font-size: 12px; font-style: italic; }
.svb-woche-hinweis { color: var(--muted); font-size: 14px; }
.svb-woche-abo { font-size: 14px; }
html[data-theme="dark"] .svb-woche-tag { background: #201c19; }
html[data-theme="dark"] .svb-woche-tag li { background: #171411; }
@media (max-width: 1180px) {
  .svb-woche { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Unter 700 px eine Liste je Tag statt sieben Spalten: Querscrollen ist auf dem
   Telefon die schlechtere Loesung, und leere Tage brauchen dort keinen Platz. */
@media (max-width: 700px) {
  .svb-woche { grid-template-columns: 1fr; gap: 8px; width: calc(100vw - 24px); }
  .svb-woche-tag { padding: 12px 14px 14px; }
  .svb-woche-tag h3 { margin-bottom: 8px; }
}

/* --- V4: Aufklappbare Inhaltsbloecke und dezente Bewegung ----------------- */
.svb-bloecke { display: grid; gap: 12px; margin: 26px 0 40px; }
.svb-block { background: var(--cream); border-radius: 3px; overflow: hidden; }
.svb-block > summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.svb-block > summary::-webkit-details-marker { display: none; }
.svb-block > summary::after {
  content: ""; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .22s ease;
}
.svb-block[open] > summary::after { transform: rotate(-135deg); }
.svb-block > summary:hover { background: color-mix(in srgb, var(--forest) 7%, transparent); }
.svb-block > summary:focus-visible { outline: 3px solid var(--forest); outline-offset: -3px; }
.svb-block-symbol { display: grid; place-items: center; color: var(--forest); }
.svb-block-symbol svg { width: 30px; height: 30px; }
.svb-block-kopf { display: grid; gap: 3px; min-width: 0; }
.svb-block-kopf strong { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.15; }
.svb-block-kopf small { color: var(--muted); font-size: 13px; line-height: 1.4; }
/* Aufgeklappt steht derselbe Satz gleich darunter im Text - dann weg damit. */
.svb-block[open] > summary .svb-block-kopf small { display: none; }
.svb-block-inhalt { overflow: hidden; padding: 0 18px 20px; }
.svb-block-inhalt > *:first-child { margin-top: 0; }
.svb-block-inhalt h3, .svb-block-inhalt h4 { margin-top: 1.5em; font-family: var(--serif); font-weight: 400; }
.svb-block-inhalt h4 { font-size: 21px; }
html[data-theme="dark"] .svb-block { background: #201c19; }

/* Schnellwahl: Sprungmarken als Chips, damit lange Seiten nicht gescrollt
   werden muessen. Das Skript klappt den Zielblock dabei auf. */
.svb-schnellwahl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14px; }
.svb-schnellwahl strong { margin-right: 4px; }
.svb-schnellwahl a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); text-decoration: none; transition: background .18s, border-color .18s; }
.svb-schnellwahl a:hover, .svb-schnellwahl a:focus-visible { border-color: var(--forest); background: color-mix(in srgb, var(--forest) 10%, transparent); }

/* Scroll-Reveal. Der versteckte Zustand kommt ausschliesslich per Klasse vom
   Skript - ohne JavaScript bleibt alles sichtbar. */
.svb-reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.svb-reveal.ist-sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .svb-reveal, .svb-reveal.ist-sichtbar { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 600px) {
  .svb-block > summary { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 11px; padding: 13px 14px; }
  .svb-block-kopf strong { font-size: 21px; }
  .svb-block-inhalt { padding: 0 14px 16px; }
}

/* --- Galerie: Ereigniskarten (Paket V3) ---------------------------------
   Vorher war jedes Ereignis eine nackte <summary>-Zeile mit Standarddreieck; der
   Kopf stand in der 780-px-Textspalte, das Bildraster brach auf 1360 px aus -
   also nie buendig. Jetzt bilden die Ereignisse eines Jahres ein Kartenraster in
   genau dieser Ausbruchbreite, die Jahresueberschrift bricht mit aus, und das
   geoeffnete Ereignis nimmt die ganze Reihe ein. */
.entry-content h2[data-gallery-x2-year],
.svb-galerie-jahr {
  position: relative;
  /* left: 50% zentriert auf die Textspalte, nicht auf das Fenster - deshalb der
     Versatz. Ohne ihn stand das Raster 100 px zu weit links. */
  left: calc(50% + var(--spalten-versatz));
  transform: translateX(-50%);
  width: min(1360px, calc(100vw - 40px));
}
.svb-galerie-jahr { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 0 0 52px; align-items: start; }
.svb-galerie-jahr > details { background: var(--cream); border-radius: 3px; overflow: hidden; }
.svb-galerie-jahr > details[open] { grid-column: 1 / -1; }
.svb-galerie-jahr summary { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 11px 14px 11px 11px; cursor: pointer; list-style: none; }
.svb-galerie-jahr summary::-webkit-details-marker { display: none; }
.svb-galerie-jahr summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .22s ease;
}
.svb-galerie-jahr > details[open] summary::after { transform: rotate(-135deg); }
.svb-galerie-jahr summary:hover { background: color-mix(in srgb, var(--forest) 7%, transparent); }
/* Sichtbarer, aber sauber anliegender Fokusring statt Rahmen um die Zeile. */
.svb-galerie-jahr summary:focus-visible { outline: 3px solid var(--forest); outline-offset: -3px; }
.svb-galerie-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--forest) 10%, var(--paper)); }
.svb-galerie-cover img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
.svb-galerie-cover-leer { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--forest) 9%, var(--paper)) 0 7px, var(--paper) 7px 14px); }
.svb-galerie-kopf { display: grid; gap: 3px; min-width: 0; }
.svb-galerie-kopf strong { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.svb-galerie-kopf small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.svb-galerie-inhalt { overflow: hidden; padding: 4px 16px 18px; }
.svb-galerie-inhalt > *:first-child { margin-top: 0; }
/* Im Kartenraster darf der Galerieblock nicht ein zweites Mal ausbrechen. */
.svb-galerie-jahr .wp-block-gallery.has-nested-images { position: static; left: auto; transform: none; width: auto; }
html[data-theme="dark"] .svb-galerie-jahr > details { background: #201c19; }
@media (max-width: 600px) {
  .entry-content h2[data-gallery-x2-year], .svb-galerie-jahr { width: calc(100vw - 24px); }
  .svb-galerie-jahr { grid-template-columns: 1fr; gap: 12px; }
  .svb-galerie-jahr summary { grid-template-columns: 72px minmax(0, 1fr) auto; }
}

/* --- Galerie: dichteres Raster und Lightbox (Paket W1) ------------------- */
/* WordPress rendert die Bloecke mit fester Spaltenzahl (columns-4). Auf breiten
   Schirmen bleibt dadurch Platz liegen, auf schmalen werden die Bilder winzig.
   Ein auto-fill-Raster nutzt die Breite und haelt die Kacheln nutzbar gross.
   Die Vorschaubilder liegen als 300-px-Ableitung vor; groesser als etwa 320 px
   wuerden sie unscharf. Die echte Grossansicht kommt aus der Lightbox. */
.wp-block-gallery.has-nested-images {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  /* Der Textspalte der Seite sind rund 780 px zugewiesen. Genau daran lag der
     verschenkte Platz: Auf einem 1440-px-Schirm standen nur zwei Bilder je Reihe.
     Die Galerie bricht deshalb aus der Spalte aus und nutzt die Fensterbreite,
     waehrend Ueberschriften und Text in der Spalte bleiben. */
  position: relative;
  left: calc(50% + var(--spalten-versatz));
  transform: translateX(-50%);
  width: min(1360px, calc(100vw - 40px));
}
.wp-block-gallery.has-nested-images figure.wp-block-image {
  width: auto !important; margin: 0 !important; flex: none !important;
}
.wp-block-gallery.has-nested-images figure.wp-block-image a { display: block; height: 100%; }
.wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 2px; transition: transform .25s, filter .25s; cursor: zoom-in;
}
.wp-block-gallery.has-nested-images figure.wp-block-image a:hover img,
.wp-block-gallery.has-nested-images figure.wp-block-image a:focus-visible img {
  transform: scale(1.02); filter: brightness(1.06);
}
@media (max-width: 600px) {
  .wp-block-gallery.has-nested-images {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
    width: calc(100vw - 24px);
  }
}

.svb-gallery-viewer {
  position: fixed; inset: 0; z-index: 120;
  display: none; place-items: center;
  padding: 24px;
  background: rgba(10, 12, 10, .82);
  backdrop-filter: blur(4px);
}
.svb-gallery-viewer.is-open { display: grid; }
.svb-gv-frame {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 10px;
  width: min(96vw, 1400px);
}
.svb-gv-stage { display: grid; place-items: center; min-width: 0; }
.svb-gv-image {
  max-width: 100%; max-height: 82vh;
  width: auto; height: auto;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.svb-gv-nav, .svb-gv-close {
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  color: #f7f4ec; background: rgba(255, 255, 255, .12);
  transition: background .2s, transform .2s;
}
.svb-gv-nav { width: 52px; height: 92px; font-size: 40px; line-height: 1; border-radius: 3px; }
.svb-gv-nav:hover, .svb-gv-nav:focus-visible { background: rgba(255, 255, 255, .26); }
.svb-gv-close {
  position: absolute; top: -46px; right: 0;
  width: 40px; height: 40px; border-radius: 50%; font-size: 24px;
}
.svb-gv-close:hover, .svb-gv-close:focus-visible { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }
.svb-gv-caption {
  grid-column: 2; margin: 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #e8e4da; font-size: 14px;
}
.svb-gv-count { opacity: .75; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) {
  .svb-gallery-viewer { padding: 12px; }
  .svb-gv-frame { grid-template-columns: 1fr; width: 100%; }
  .svb-gv-stage { grid-row: 1; }
  .svb-gv-image { max-height: 66vh; }
  .svb-gv-nav { width: 100%; height: 46px; font-size: 30px; }
  .svb-gv-prev { grid-row: 2; }
  .svb-gv-next { grid-row: 3; }
  .svb-gv-caption { grid-column: 1; grid-row: 4; }
  .svb-gv-close { top: 4px; right: 4px; background: rgba(0, 0, 0, .5); }
}

/* --- Dokumente als Menuepunkt vor dem Mitglied-werden-Button (W3) -------- */
/* Ersetzt das kleine runde Symbol im Header: groesser, beschriftet und im Menue. */
/* Erkennung ueber das Linkziel, nicht ueber eine Klasse: Der Menuepunkt wird in der
   WordPress-Menueverwaltung gepflegt und traegt dort keine eigene CSS-Klasse. */
.main-nav .menu > li > a[href$="/downloads/"],
.main-nav .menu > li.svb-menu-downloads > a { display: inline-flex; align-items: center; gap: 8px; }
.main-nav .menu > li > a[href$="/downloads/"]::before,
.svb-menu-downloads > a::before {
  content: "";
  width: 17px; height: 17px; flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.6l3.3-3.3 1.4 1.4L12 17.4 6.3 10.7l1.4-1.4L11 12.6z'/%3E%3Cpath d='M5 19h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.6l3.3-3.3 1.4 1.4L12 17.4 6.3 10.7l1.4-1.4L11 12.6z'/%3E%3Cpath d='M5 19h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 1180px) {
  .main-nav .menu > li > a[href$="/downloads/"],
  .main-nav .menu > li.svb-menu-downloads > a { padding: 13px 0; }
  .main-nav .menu > li > a[href$="/downloads/"]::before,
  .svb-menu-downloads > a::before { width: 24px; height: 24px; }
}

/* Historische Aufnahmen in den Vereinsseiten */
/* Bilder in Textabschnitten: kein float. Ein gefloatetes Bild quetscht den
   Fliesstext in eine schmale Spalte, und bei zwei Bildern hintereinander wirkt
   der Absatz zerrissen. Stattdessen ein Raster: Text links, Bildspalte rechts,
   auf schmalen Schirmen Bilder unter dem Text. */
.svb-abschnitt { margin: 0 0 42px; }
.svb-abschnitt > h2 { margin-bottom: 14px; }
.svb-abschnitt-raster { display: grid; gap: 20px; align-items: start; }
.svb-abschnitt-text > *:first-child { margin-top: 0; }
.svb-abschnitt-text > *:last-child { margin-bottom: 0; }
/* auto-fit statt :has(): zwei Bilder legen sich von selbst nebeneinander,
   eines nimmt die ganze Spalte - ohne Selektor-Sonderfall. */
.svb-abschnitt-bilder { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.svb-historisch { margin: 0; }
.svb-historisch img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(20, 25, 30, .18); }
.svb-historisch figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
@media (min-width: 760px) {
  .svb-abschnitt-raster { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 28px; }
}
@media (min-width: 1100px) {
  .svb-abschnitt-raster { grid-template-columns: minmax(0, 1fr) 380px; }
}

/* Der zusaetzliche Menuepunkt "Dokumente" machte die Leiste zu eng: "Der Verein"
   und "Mitglied werden" brachen auf zwei Zeilen. Beschriftungen bleiben deshalb
   einzeilig, dafuer werden die Abstaende auf breiten Schirmen etwas knapper. */
.main-nav .menu > li > a { white-space: nowrap; }
@media (min-width: 1181px) {
  .main-nav, .main-nav .menu { gap: 22px; }
}
@media (min-width: 1181px) and (max-width: 1320px) {
  .main-nav, .main-nav .menu { gap: 14px; font-size: 17px; }
  .main-nav .menu > li:last-child > a { padding: 15px 18px; }
}

/* --- Vereins-App: QR-Code (W4) ------------------------------------------ */
.svb-app-qr { display: flex; align-items: flex-start; gap: 16px; }
.svb-app-qr-code { flex: none; display: block; padding: 8px; background: #fff; border-radius: 3px; }
.svb-app-qr-code img { display: block; width: 108px; height: 108px; }
.svb-app-qr-copy p { margin: 0 0 6px; }
.svb-app-qr-gross {
  margin: 28px 0; padding: 22px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 3px;
  align-items: center; gap: 24px;
}
.svb-app-qr-gross .svb-app-qr-code img { width: 150px; height: 150px; }
@media (max-width: 600px) {
  .svb-app-qr, .svb-app-qr-gross { flex-direction: column; gap: 14px; }
}
