/* Stadtgarde Schwarz-Rot Hennef e.V.
   Moderner Aufbau mit eigenen Klassen (sg-*) nach ProntoSite-Spec.
   Motiv: Uniform (Schwarz / Dunkelrot / weiße Litze) und Orden. */

:root {
  --rot: #841111;
  --rot-tief: #5e0c0c;
  --schwarz: #1b0a0a;
  --creme: #f6f0e8;
  --sand: #fbf7f2;
  --weiss: #ffffff;
  --text: #4a4543;
  --text-leise: #6e6b6b;
  --linie: #e3d9cc;

  --wrap: 1300px;
  --gutter: clamp(16px, 4vw, 40px);
  --abstand: clamp(48px, 7vw, 88px);
  --bogen: 46% 46% 6px 6px / 24% 24% 6px 6px;   /* Nischenform der Porträts */
}

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

html { -webkit-text-size-adjust: 100%; scroll-blocked: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-blocked: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "PT Serif", Georgia, serif;
  font-weight: 400;
  color: var(--rot);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--rot); text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--rot-tief); }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

.sg-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sg-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--weiss); color: var(--rot); padding: 12px 20px;
}
.sg-skip:focus { left: 0; }

.sg-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Litzenband (das wiederkehrende Motiv) ---------- */
.sg-litze { display: none; }

/* ---------- Kopfbereich ---------- */
.sg-topbar { background: #000; }
.sg-banner {
  display: block;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 0;
  /* content-box: das Seitenverhältnis gilt für die Bildfläche, der Abstand kommt außen dazu */
  box-sizing: content-box;
  aspect-ratio: 1600 / 151;
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-origin: content-box;
}
@media (max-width: 860px) {
  .sg-banner { padding: 5px 0; }
}

/* Navigation als Schleife über der Bühne.
   Band liegt vor der Bühne (z-index 80), die Enden laufen dahinter aus (z-index 1). */
.sg-navbar {
  position: relative;
}

/* nach unten auslaufende Enden, hinter der Bühne */
.sg-navbar::before,
.sg-navbar::after {
  content: "";
  position: absolute;
  /* Endstück: 80 × 83 Einheiten bei Bandhöhe 60 → skaliert auf die reale Bandhöhe (56 px) */
  top: 0;
  width: 78px;
  height: 80px;
  z-index: 20;              /* über der Bühne, unter dem Band */
  display: none;
  background: url("/img/ribbon-end.svg") no-repeat center / 100% 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45));
}
.sg-navbar::before { left: calc(50% - 650px - 48px); }   /* 30 px Überlappung hinter dem Band */
.sg-navbar::after { right: calc(50% - 650px - 48px); transform: scaleX(-1); }
@media (min-width: 1301px) {
  .sg-navbar::before, .sg-navbar::after { display: block; }
}
.sg-header { overflow-x: clip; }   /* überstehende Zipfel erzeugen keinen Scrollbalken */

.sg-nav {
  position: relative;
  z-index: 80;
  width: 100%;
  max-width: 1300px;   /* bündig mit der Bühne */
  margin: 0 auto;
}
.sg-nav::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #9c1919 0%, var(--rot) 55%, #6f0f0f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 6px 14px rgba(0, 0, 0, .45);
}

.sg-nav__list,
.sg-nav__sub { list-style: none; margin: 0; padding: 0; }

.sg-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-inline: 34px;   /* Abstand zu den Schleifenkerben */
}
.sg-nav__item { position: relative; }

.sg-nav a {
  display: block;
  padding: 17px 24px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
/* aktiver Punkt: eingelassenes dunkleres Feld im Band, Text voll weiß */
.sg-nav__list > .sg-nav__item:hover > a,
.sg-nav__list > .sg-nav__item:focus-within > a,
.sg-nav__list > .sg-nav__item--current > a {
  color: var(--weiss);
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .12);
}

.sg-nav__item--parent > a { padding-right: 36px; }
.sg-nav__item--parent > a::before {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .75;
}

.sg-nav__sub {
  position: absolute;
  left: 0; top: 100%;
  min-width: 230px;
  background: var(--schwarz);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .35);
}
.sg-nav__item:hover > .sg-nav__sub,
.sg-nav__item:focus-within > .sg-nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sg-nav__sub a { padding: 11px 20px; font-size: 15px; }
.sg-nav__sub a:hover, .sg-nav__sub a:focus { background: var(--rot); }
.sg-nav__sub .sg-nav__item--current > a { background: var(--rot); }

/* ---------- Mobile: Drawer von rechts ---------- */
.sg-burger {
  display: none;
  padding: 20px var(--gutter);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.sg-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--weiss);
  box-shadow: 0 -8px 0 var(--weiss), 0 8px 0 var(--weiss);
}

.sg-backdrop {
  position: fixed; inset: 0;
  background: rgba(27, 10, 10, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 90;
}
.sg-backdrop[aria-expanded="true"] { opacity: 1; pointer-events: auto; }

.sg-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86%, 360px);
  background: var(--rot);
  transform: translateX(100%);
  transition: transform .3s ease, visibility .3s;
  overflow-y: auto;
  overscroll-blocked: contain;
  z-index: 100;
  padding: 64px 0 32px;
  visibility: hidden;
}
/* !important: die ProntoSite-Runtime setzt am Drawer Inline-Styles
   (transform:none; visibility:visible), sonst steht er dauerhaft offen. */
.sg-drawer {
  transform: translateX(100%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.sg-drawer[aria-expanded="true"] {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.sg-drawer__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
}
.sg-drawer__close::before,
.sg-drawer__close::after {
  content: ""; position: absolute; left: 11px; top: 21px;
  width: 22px; height: 2px; background: var(--weiss);
}
.sg-drawer__close::before { transform: rotate(45deg); }
.sg-drawer__close::after { transform: rotate(-45deg); }

.sg-drawer__list, .sg-drawer__list ul { list-style: none; margin: 0; padding: 0; }
.sg-drawer__list a {
  display: block;
  padding: 12px 26px;
  color: var(--weiss);
  font-family: "Open Sans", Arial, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.sg-drawer__list ul a { padding-left: 46px; background: rgba(0, 0, 0, .22); font-size: 15px; }
.sg-drawer__list a:hover, .sg-drawer__list a:focus { background: var(--schwarz); }

/* Untermenüs im Drawer stehen offen – kein Dropdown */
.sg-drawer .sg-nav__sub {
  position: static;
  width: auto;
  min-width: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  box-shadow: none;
}
.sg-drawer .sg-nav__item--parent > a { padding-right: 26px; }
.sg-drawer .sg-nav__item--parent > a::before { content: none; }

/* ---------- Bühne (Keyvisual) ---------- */
.sg-header { background: #000; }

.sg-buehne {
  position: relative;
  z-index: 10;   /* verdeckt die auslaufenden Schleifenenden */
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;   /* schließt bündig an das Band an */
  background: #000;
  aspect-ratio: 2 / 0.8;
}
.sg-buehne--klein { aspect-ratio: 2 / 0.8; }

/* seitliche Verläufe: vom Rand schwarz, nach 25 % transparent */
.sg-buehne::before,
.sg-buehne::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 10%;
  z-index: 2;
  pointer-events: none;
}
.sg-buehne::before { left: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 100%); }
.sg-buehne::after { right: 0; background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0) 100%); }

/* display !important: die ProntoSite-Runtime setzt sonst inline display:none */
.sg-buehne__slide { position: absolute; inset: 0; display: block !important; opacity: 0; transition: opacity .9s ease; }
.sg-buehne__slide:first-of-type { opacity: 1; }          /* ohne JS: erste Folie */
.sg-buehne--einzel .sg-buehne__slide { opacity: 1; }
.sg-buehne--js .sg-buehne__slide:first-of-type { opacity: 0; }
.sg-buehne--js .sg-buehne__slide.sg-buehne__slide--aktiv { opacity: 1; }
.sg-buehne__slide { overflow: hidden; }
.sg-buehne__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.sg-buehne__pfeil {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 6, 6, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--weiss);
  font-size: 0;          /* der Pfeil kommt allein aus ::before */
  cursor: pointer;
  z-index: 4;
  opacity: .72;
  transition: opacity .25s ease, background-color .25s ease, transform .25s ease;
}
.sg-buehne:hover .sg-buehne__pfeil,
.sg-buehne:focus-within .sg-buehne__pfeil { opacity: 1; }
.sg-buehne__pfeil:hover { background: rgba(16, 6, 6, .6); }
.sg-buehne__pfeil::before {
  content: "";
  width: 13px; height: 13px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.sg-buehne__pfeil--zurueck::before { transform: rotate(-135deg); margin-left: 4px; }
.sg-buehne__pfeil--vor::before { transform: rotate(45deg); margin-right: 4px; }
.sg-buehne__pfeil:hover, .sg-buehne__pfeil:focus-visible {
  background: var(--rot);
  opacity: 1;
}
.sg-buehne__pfeil--zurueck:hover { transform: translateY(-50%) translateX(-2px); }
.sg-buehne__pfeil--vor:hover { transform: translateY(-50%) translateX(2px); }
@media (hover: none) {
  .sg-buehne__pfeil { opacity: 1; }
}
.sg-buehne__punkte {
  position: absolute;
  left: 50%; bottom: clamp(16px, 2.4vw, 26px);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(16, 6, 6, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sg-buehne__punkte button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.sg-buehne__punkte button:hover { background: rgba(255, 255, 255, .8); }
.sg-buehne__punkte button[aria-current="true"] {
  width: 30px;
  background: var(--weiss);
}
@media (prefers-reduced-motion: reduce) {
  .sg-buehne__punkte button { transition: none; }
}
.sg-buehne__pfeil--zurueck { left: clamp(10px, 2vw, 26px); }
.sg-buehne__pfeil--vor { right: clamp(10px, 2vw, 26px); }

/* ---------- Inhalt ---------- */
.sg-inhalt {
  padding: var(--abstand) 0;
  position: relative;
  isolation: isolate;
}

/* Herz-Wasserzeichen: mittig hinter dem Inhalt, als contain */
.sg-inhalt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/img/wasserzeichen.webp") no-repeat center center;
  background-size: contain;
  opacity: .085;
  pointer-events: none;
}

/* Unterseiten: Inhalt + rechte Spalte */
.sg-seite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.sg-seite__inhalt { min-width: 0; }
.sg-seite__leiste { position: sticky; top: 24px; }

.sg-infobox {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 3px solid var(--rot);
  padding: 26px 26px 28px;
  margin-bottom: 20px;
  box-shadow: 0 10px 26px rgba(60, 30, 20, .07);
}
.sg-infobox h2 {
  font-size: 1.3rem;
  margin-bottom: .7em;
}
.sg-infobox h2::before { content: none; }

.sg-kontakt { list-style: none; margin: 0 0 1.4em; padding: 0; }
.sg-kontakt li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1em;
  font-size: .97rem;
  line-height: 1.5;
}
.sg-kontakt li:last-child { margin-bottom: 0; }
.sg-kontakt__ico { width: 19px; height: 19px; flex: none; margin-top: 3px; fill: var(--rot); }
.sg-kontakt a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.sg-kontakt a:hover, .sg-kontakt a:focus-visible { color: var(--rot); text-decoration: underline; }

.sg-btn--block { display: block; width: 100%; text-align: center; padding-inline: 18px; }

.sg-social.sg-social--hell { justify-content: flex-start; margin-bottom: 0; }
.sg-social.sg-social--hell a {
  background: rgba(132, 17, 17, .05);
  border: 1px solid rgba(132, 17, 17, .3);
}
.sg-social.sg-social--hell a:hover,
.sg-social.sg-social--hell a:focus-visible { background: var(--rot); border-color: var(--rot); }
.sg-social.sg-social--hell svg { fill: var(--rot); }
.sg-social.sg-social--hell a:hover svg,
.sg-social.sg-social--hell a:focus-visible svg { fill: var(--weiss); }
.sg-section { margin: 0 0 var(--abstand); }
.sg-section:last-child { margin-bottom: 0; }
.sg-section > h1, .sg-section > h2 { margin-bottom: .6em; }
.sg-section > h1::before, .sg-section > h2::before {
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin: 0 0 .55em;
  background: var(--rot);
}
.sg-center > h1::before, h1.sg-center::before, h2.sg-center::before { margin-inline: auto; }
.sg-center { text-align: center; }
.sg-center + p { margin-inline: auto; }

.sg-lead { font-size: 1.2rem; line-height: 1.65; color: #3a3533; }

/* Bild + Text */
.sg-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.sg-split__col > :last-child { margin-bottom: 0; }
.sg-split__col img,
.sg-bild--gross {
  border: 6px solid var(--weiss);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(60, 30, 20, .16);
}
.sg-bild--gross { margin-bottom: 1.8em; }
.sg-split__col img.sg-logo,
.sg-logo { width: 100%; max-width: 300px; height: auto; border: 0; box-shadow: none; }
.sg-split--logo { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .sg-split--logo { grid-template-columns: 1fr; } }
.sg-split { gap: clamp(28px, 5vw, 64px); }

/* ---------- Buttons ---------- */
.sg-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(180deg, #951818 0%, var(--rot) 100%);
  color: var(--weiss) !important;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid #6f0f0f;
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(132, 17, 17, .28);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background-color .2s;
}
.sg-btn:hover, .sg-btn:focus-visible {
  background: var(--schwarz);
  border-color: var(--schwarz);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}
.sg-btn--hell {
  background: transparent;
  color: var(--weiss) !important;
  border-color: rgba(255, 255, 255, .7);
}
.sg-btn--hell:hover, .sg-btn--hell:focus-visible { background: var(--weiss); color: var(--rot) !important; border-color: var(--weiss); }

/* ---------- Personen: Porträts in Nischen ---------- */
.sg-people {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: clamp(18px, 2.6vw, 34px) clamp(14px, 2vw, 24px);
}
.sg-person { text-align: center; }
.sg-person img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--bogen);
  background: var(--sand);
  border: 1px solid var(--linie);
}
.sg-person__name {
  margin: .8em 0 0;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.05rem;
  color: var(--rot);
  max-width: none;
}
.sg-person__role {
  margin: 0;
  font-size: .86rem;
  color: var(--text-leise);
  max-width: none;
}
.sg-person--empty {
  display: grid; place-items: center;
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--linie);
  border-radius: var(--bogen);
  padding: 16px;
}
.sg-person--empty p { margin: 0; font-size: .9rem; color: var(--text-leise); max-width: none; }

/* ---------- Training ---------- */
.sg-training {
  border-left: 3px solid var(--rot);
  padding: 2px 0 2px 20px;
  margin: 0 0 2em;
}
.sg-training__title {
  margin: 0 0 .2em;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.15rem;
  color: var(--rot);
}
.sg-training p { margin: 0; }

/* ---------- Orden ---------- */
.sg-orden { list-style: none; margin: 0; padding: 0; }
.sg-orden__item {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--linie);
}
.sg-orden__item:first-child { border-top: 0; padding-top: 0; }
.sg-orden__media img { border-radius: 4px; }
.sg-orden__caption {
  display: block;
  margin-top: .6em;
  font-size: .86rem;
  color: var(--text-leise);
  text-align: center;
}
.sg-orden__title {
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.4rem;
  color: var(--rot);
  margin: 0 0 .4em;
}

/* ---------- Galerie ---------- */
.sg-gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.sg-gallery__item { margin: 0; }
.sg-gallery__item a {
  display: block;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: var(--schwarz);
}
.sg-gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s;
}

/* Masonry: jedes Bild behält sein echtes Seitenverhältnis.
   Ohne JS ein Raster mit unterschiedlich hohen Kacheln; mit JS werden die
   Zeilenspannen aus den tatsächlichen Bildhöhen berechnet, dann sitzt alles lückenlos. */
.sg-gallery--masonry {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 14px;
}
.sg-gallery--masonry .sg-gallery__item img {
  height: auto;
  aspect-ratio: auto;
}
.sg-gallery--masonry.sg-masonry--js {
  /* 8px-Raster statt 1px: Chrome deckelt ein Grid bei 10.000 Spuren – bei
     150 Bildern waeren es sonst ueber 11.000 Zeilen und die letzten
     Elemente rutschen aus dem Raster. */
  grid-auto-rows: 8px;
  row-gap: 0;
}
.sg-gallery__item--versteckt { display: none; }
.sg-gallery__mehr { margin: 22px 0 0; text-align: center; }
.sg-gallery__rest { opacity: .75; font-weight: 400; }
.sg-gallery__item a:hover img,
.sg-gallery__item a:focus-visible img { transform: scale(1.04); opacity: .88; }
/* Lightbox */
.sg-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(10, 4, 4, .94);
}
.sg-lightbox[aria-hidden="false"] { display: block; }
.sg-lightbox__bild {
  position: absolute; inset: 56px 24px;
  display: grid; place-items: center;
}
.sg-lightbox__bild img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.sg-lightbox button {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: var(--weiss);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.sg-lightbox button:hover, .sg-lightbox button:focus-visible {
  background: var(--rot); border-color: var(--rot);
}
.sg-lightbox__zu { top: 16px; right: 20px; font-size: 22px; }
.sg-lightbox__vor { top: 50%; right: 20px; transform: translateY(-50%); }
.sg-lightbox__zurueck { top: 50%; left: 20px; transform: translateY(-50%); }
.sg-lightbox__zaehler {
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}
body.sg-lightbox-offen { overflow: hidden; }

/* Sessions-Übersicht */
.sg-teaser { list-style: none; margin: 0; padding: 0; }
.sg-teaser__item { padding: 0 0 clamp(28px, 4vw, 44px); }
.sg-teaser__item + .sg-teaser__item { border-top: 1px solid var(--linie); padding-top: clamp(28px, 4vw, 44px); }
.sg-teaser__item h2 { margin-bottom: .5em; }
.sg-teaser__link { text-decoration: none; }
.sg-teaser__link:hover, .sg-teaser__link:focus-visible { text-decoration: underline; }
.sg-teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.sg-teaser__grid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

/* ---------- Unterstützer ---------- */
.sg-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.sg-logos__item { background: var(--weiss); border: 1px solid var(--linie); padding: 22px; display: grid; place-items: center; }
.sg-logos__item img { max-height: 190px; width: auto; }

/* ---------- Formular ---------- */
.sg-form {
  max-width: 720px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 14px 34px rgba(60, 30, 20, .08);
}
.sg-form__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .sg-form__reihe { grid-template-columns: 1fr; } }

/* Beschriftung liegt im Feld und wandert beim Tippen nach oben */
.sg-form__row { position: relative; margin: 0 0 22px; }
.sg-form__row label {
  position: absolute;
  top: 15px; left: 15px;
  color: var(--text-leise);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .18s ease, color .18s ease;
}
.sg-form input[type="text"],
.sg-form input[type="email"],
.sg-form input[type="tel"],
.sg-form textarea {
  width: 100%;
  padding: 24px 15px 9px;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: #fcfaf8;
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.sg-form textarea { padding-top: 26px; resize: vertical; min-height: 150px; }
.sg-form input:hover, .sg-form textarea:hover { border-color: #cbbcab; }
.sg-form input:focus, .sg-form textarea:focus {
  outline: 0;
  background: var(--weiss);
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(132, 17, 17, .12);
}
.sg-form__row input:focus + label,
.sg-form__row textarea:focus + label,
.sg-form__row input:not(:placeholder-shown) + label,
.sg-form__row textarea:not(:placeholder-shown) + label {
  transform: translateY(-9px) scale(.78);
  color: var(--rot);
}

.sg-form__consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 4px 0 20px;
  font-size: .95rem;
}
.sg-form__consent input {
  flex: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--rot);
}
.sg-form__consent label {
  position: static;
  transform: none;
  pointer-events: auto;
  color: var(--text);
  font-size: .95rem;
}
.sg-form__note { font-size: .86rem; color: var(--text-leise); margin-bottom: 1.4em; }

/* ---------- Aufruf vor dem Fußbereich ---------- */
/* Aufruf als Kasten, zur Hälfte über den Fußbereich geschoben.
   Die Hülle ist oben cremefarben, unten in der Fußbereichsfarbe – dadurch
   liegt der Kasten unabhängig von seiner Höhe exakt zur Hälfte darüber. */
.sg-aufruf-huelle {
  padding-inline: var(--gutter);
  /* obere Hälfte Creme, untere Hälfte dunkel – mit zwei weißen Linien
     direkt am Übergang, die von der CTA-Box überlappt werden */
  background: linear-gradient(
    to bottom,
    var(--creme) 0 50%,
    #1f0b0b 50% calc(50% + 16px),
    #fff calc(50% + 16px) calc(50% + 18px),
    #1f0b0b calc(50% + 18px) calc(50% + 23px),
    #fff calc(50% + 23px) calc(50% + 25px),
    #1f0b0b calc(50% + 25px) 100%);
}
.sg-aufruf {
  width: 100%;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, #8f1616 0%, var(--rot) 60%, #6f0f0f 100%);
  color: var(--weiss);
  text-align: center;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .3);
}
.sg-aufruf h2 { color: var(--weiss); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.sg-aufruf p { margin-inline: auto; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.sg-aufruf__knoepfe { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 1.6em; }

/* ---------- Fußbereich ---------- */
.sg-footer {
  background: linear-gradient(180deg, #1f0b0b 0%, var(--schwarz) 60%, #0f0505 100%);
  color: rgba(255, 255, 255, .7);
}
.sg-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s; }
.sg-footer a:hover, .sg-footer a:focus-visible { color: var(--weiss); text-decoration: underline; text-underline-offset: .2em; }
.sg-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(40px, 5vw, 64px);   /* seitlicher Abstand kommt aus .sg-wrap */
}
.sg-footer__grid > div > :last-child { margin-bottom: 0; }
.sg-footer h2 {
  font-size: 1.05rem;
  color: var(--weiss);
  margin-bottom: 1.25em;
  padding-bottom: .9em;
  position: relative;
}
.sg-footer h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px;
  background: var(--rot);
}
.sg-footer p { max-width: none; margin-bottom: .5em; }
.sg-footer ul { list-style: none; margin: 0; padding: 0; }
.sg-footer li { margin-bottom: .4em; }
.sg-footer__motto {
  font-family: "PT Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--weiss);
  margin-bottom: .5em;
}

.sg-social { display: flex; gap: 14px; list-style: none; margin: 0 0 1.2em; padding: 0; }
.sg-social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.sg-social a:hover, .sg-social a:focus-visible { background: var(--rot); border-color: var(--rot); transform: translateY(-2px); }
.sg-social svg { width: 19px; height: 19px; fill: #fff; }

.sg-bottombar {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0 30px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.sg-bottombar .sg-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.sg-bottombar p { margin: 0 0 .3em; max-width: none; }
.sg-legal a { white-space: nowrap; }

/* ProntoSite-Badge mit Favicon */
/* Favicon als Hintergrund: der Link bleibt inline, dadurch sitzt der Text
   exakt auf derselben Grundlinie wie die übrigen Footer-Links. */
.ps-badge-link, .sg-legal [data-ps="badge"] a {
  padding-left: 19px;
  background: url("/img/ps-badge.svg") no-repeat left center;
  background-size: 13px 13px;
}
/* Auf ProntoSite setzt die Runtime ein eigenes Icon in den Link –
   dann das eigene Hintergrund-Icon weglassen (sonst zwei Favicons). */
.ps-badge-link:has(.ps-badge-icon),
.sg-legal [data-ps="badge"] a:has(.ps-badge-icon) {
  padding-left: 0;
  background-image: none;
}

/* ---------- Rechtstexte ----------
   Das ProntoSite-Widget bringt eigene Styles mit (ps-legal); hier auf die
   Typografie der übrigen Seiten gezogen und linksbündig zur H1 gesetzt. */
.sg-legal-content :is(h2, h3) { margin-top: 1.4em; }
.sg-legal-content .ps-legal {
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
  line-height: inherit;
}
.sg-legal-content .ps-legal :is(p, li, td, th, strong, b, em) {
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
/* Rechtstexte laufen über die volle Spaltenbreite */
.sg-legal-content .ps-legal p,
.sg-legal-content .ps-legal li,
.sg-legal-content p { margin: 0 0 1.1em; max-width: none; }
.sg-legal-content .ps-legal :is(h1, h2, h3, h4, h5) {
  /* das Widget setzt die Schrift per !important */
  font-family: "PT Serif", Georgia, serif !important;
  font-weight: 400;
  color: var(--rot);
  line-height: 1.15;
}
.sg-legal-content .ps-legal h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 1.6em 0 .5em;
}
.sg-legal-content .ps-legal h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 1.4em 0 .5em;
}
.sg-legal-content .ps-legal h4 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.sg-legal-content .ps-legal a { color: var(--rot); }
.sg-legal-content .ps-legal ul, .sg-legal-content .ps-legal ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.sg-legal-content .ps-legal li { margin-bottom: .35em; }
/* Entwurfs-Hinweis dezent absetzen */
.sg-legal-content .ps-legal .ps-legal-draft {
  margin-bottom: 1.6em;
  padding: 10px 14px;
  border-left: 3px solid var(--rot);
  background: rgba(132, 17, 17, .06);
  font-size: .92em;
}

/* Sobald Bühne und Band den Browser-Rand erreichen (≤ 1300 px): keine seitlichen Verläufe */
@media (max-width: 1300px) {
  .sg-buehne::before, .sg-buehne::after { display: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .sg-seite { grid-template-columns: 1fr; }
  .sg-seite__leiste { position: static; }
  .sg-infobox { max-width: 520px; }
}

@media (max-width: 860px) {
  .sg-nav { display: none; }
  .sg-navbar { display: flex; justify-content: center; background: var(--rot); }
  .sg-burger { display: block; }
  .sg-navbar { margin-bottom: 0; }
  .sg-navbar::before, .sg-navbar::after { display: none; }
  .sg-buehne { margin-top: 14px; }
  .sg-orden__item { grid-template-columns: 1fr; }
  .sg-orden__media { max-width: 320px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sg-people { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .sg-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sg-gallery--masonry { grid-template-columns: repeat(2, 1fr); column-gap: 10px; }
}

/* ---------- Cookie-Banner & -Dialog (ProntoSite-Consent-Widget) ----------
   Das Widget setzt Farben per !important aus eigenen Variablen – deshalb die
   Variablen belegen. Der Dialog haengt NICHT in .ps-c-root, sondern in
   .ps-c-modal-overlay, darum beide Wurzeln ansprechen. */
.ps-c-root,
.ps-c-banner,
.ps-c-modal-overlay,
.ps-c-modal {
  --ps-w-primary: #841111;
  --ps-w-on-primary: #ffffff;
  --ps-w-link: #841111;
  --ps-w-text: #4a4040;
  --ps-w-radius-control: 999px;
}
.ps-c-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ps-c-banner .ps-c-actions .ps-c-btn,
.ps-c-modal .ps-c-actions .ps-c-btn {
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.ps-c-banner .ps-c-actions .ps-c-btn:first-child:hover,
.ps-c-modal .ps-c-actions .ps-c-btn:first-child:hover {
  background: #a31717 !important;
  border-color: #a31717 !important;
  transform: translateY(-1px);
}
/* zweiter Button als Sekundaer-CTA (beide tragen ps-c-btn-primary) */
.ps-c-banner .ps-c-actions .ps-c-btn + .ps-c-btn,
.ps-c-modal .ps-c-actions .ps-c-btn + .ps-c-btn {
  background: transparent !important;
  color: #841111 !important;
  border-color: rgba(132, 17, 17, .45) !important;
}
.ps-c-banner .ps-c-actions .ps-c-btn + .ps-c-btn:hover,
.ps-c-modal .ps-c-actions .ps-c-btn + .ps-c-btn:hover {
  background: rgba(132, 17, 17, .08) !important;
  border-color: #841111 !important;
  transform: translateY(-1px);
}
.ps-c-title { color: #841111; }
@media (max-width: 480px) {
  .ps-c-banner .ps-c-actions .ps-c-btn,
  .ps-c-modal .ps-c-actions .ps-c-btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- ProntoSite-Kontaktformular auf unsere Optik ----------
   Das Widget rendert eigenes Markup (.ps-form) und leitet Farben aus
   --ps-w-*-Variablen ab; die werden hier belegt, der Rahmen kommt dazu. */
.ps-form {
  --ps-w-text: #4a4040;
  --ps-w-bg: #fcfaf8;
  --ps-w-surface: #fcfaf8;
  --ps-w-primary: #841111;
  --ps-w-on-primary: #ffffff;
  --ps-w-radius-control: 4px;
  --ps-w-focus: 0 none;
  --ps-form-gap-y: 18px;
  --ps-form-gap-x: 18px;
  max-width: 720px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 14px 34px rgba(60, 30, 20, .08);
}
.ps-form .ps-form-field > label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-leise);
}
.ps-form .ps-form-field :is(input, textarea, select) {
  padding: 13px 15px;
  border: 1px solid var(--linie);
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ps-form .ps-form-field :is(input, textarea, select):hover { border-color: #cbbcab; }
.ps-form .ps-form-field :is(input, textarea, select):focus {
  outline: 0;
  background: var(--weiss);
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(132, 17, 17, .12);
}
.ps-form .ps-form-field textarea { min-height: 150px; }
.ps-form .ps-form-consent { margin-top: 6px; }
.ps-form .ps-form-opt { font-size: .95rem; gap: 12px; }
.ps-form .ps-form-opt input {
  width: 20px; height: 20px;
  margin-top: .1em;
  accent-color: var(--rot);
}
.ps-form button[type="submit"] {
  margin-top: 24px;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--rot);
  color: var(--weiss);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, transform .15s;
}
.ps-form button[type="submit"]:hover {
  background: #a31717;
  transform: translateY(-1px);
}
.ps-form button[type="submit"]:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
@media (max-width: 560px) {
  .ps-form .ps-form-grid { grid-template-columns: 1fr; }
  .ps-form button[type="submit"] { width: 100%; }
}

/* ---------- Karten "Mehr über uns" ---------- */
.sg-karten {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 520px) {
  .sg-karten { grid-template-columns: 1fr; }
}
.sg-karte { margin: 0; }
.sg-karte__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sg-karte__link:hover,
.sg-karte__link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--rot);
  box-shadow: 0 14px 30px rgba(60, 30, 20, .14);
}
.sg-karte__bild {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--creme);
}
.sg-karte__bild img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.sg-karte__link:hover .sg-karte__bild img { transform: scale(1.04); }
.sg-karte__text {
  display: block;
  padding: 16px 18px 18px;
}
.sg-karte__titel {
  display: block;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.2rem;
  color: var(--rot);
  margin-bottom: .3em;
}
.sg-karte__info {
  display: block;
  font-size: .94rem;
  color: var(--text-leise);
  line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
  .sg-karte__link, .sg-karte__bild img { transition: none; }
  .sg-karte__link:hover { transform: none; }
}
