* {
  box-sizing: border-box;
}

:root {
  --section-content-gutter: 7.5vw;
  --brand-red: #e30613;
  --brand-gold: #ffd700;
  --brand-charcoal: #1d1d1b;
  --brand-blue: #005da8;
  --theme-accent: #005da8;
  --theme-accent-dark: #004a86;
  --theme-accent-rgb: 0, 93, 168;
  --theme-footer-start: #005da8;
  --theme-footer-mid: #003f73;
  --theme-footer-end: #1d1d1b;
  --theme-footer-shadow: rgba(0, 41, 88, 0.28);
  --surface-white: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-blue-tint: #eef4fb;
  --shadow-soft: rgba(0, 41, 88, 0.12);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--brand-charcoal);
  background: linear-gradient(to bottom, #fff 0 50px, var(--surface-soft) 50px 100%);
  padding-top: 50px;
}

body[data-theme="theme-2"] {
  --brand-blue: #e30613;
  --theme-accent: #e30613;
  --theme-accent-dark: #b30511;
  --theme-accent-rgb: 227, 6, 19;
  --theme-footer-start: #e30613;
  --theme-footer-mid: #a9040d;
  --theme-footer-end: #1d1d1b;
  --theme-footer-shadow: rgba(120, 0, 12, 0.3);
  --surface-blue-tint: #fdecef;
  --shadow-soft: rgba(120, 0, 12, 0.14);
}

body[data-theme="theme-3"] {
  --theme-accent: #e30613;
  --theme-accent-dark: #b30511;
  --theme-accent-rgb: 227, 6, 19;
  --theme-footer-start: #e30613;
  --theme-footer-mid: #a9040d;
  --theme-footer-end: #1d1d1b;
  --theme-footer-shadow: rgba(120, 0, 12, 0.3);
}

body[data-theme="theme-4"] {
  --theme-accent: #005da8;
  --theme-accent-dark: #004a86;
  --theme-accent-rgb: 0, 93, 168;
  --theme-footer-start: #005da8;
  --theme-footer-mid: #003f73;
  --theme-footer-end: #1d1d1b;
  --theme-footer-shadow: rgba(0, 41, 88, 0.28);
}

body[data-theme="theme-5"] {
  --brand-blue: #800000;
  --theme-accent: #800000;
  --theme-accent-dark: #5e0000;
  --theme-accent-rgb: 128, 0, 0;
  --theme-footer-start: #800000;
  --theme-footer-mid: #4a0000;
  --theme-footer-end: #1d1d1b;
  --theme-footer-shadow: rgba(74, 0, 0, 0.3);
}

body[data-theme="theme-6"] {
  --brand-blue: #2f7d4a;
  --theme-accent: #2f7d4a;
  --theme-accent-dark: #245f39;
  --theme-accent-rgb: 47, 125, 74;
  --theme-footer-start: #2f7d4a;
  --theme-footer-mid: #245f39;
  --theme-footer-end: #1d1d1b;
  --theme-footer-shadow: rgba(23, 71, 41, 0.28);
  --surface-blue-tint: #edf7f0;
  --shadow-soft: rgba(23, 71, 41, 0.14);
}

body[data-theme="theme-3"] .top-banner-inner,
body[data-theme="theme-4"] .top-banner-inner,
body[data-theme="theme-5"] .top-banner-inner {
  background: var(--theme-accent);
  border-color: rgba(255, 255, 255, 0.32);
}

body[data-theme="theme-3"] .top-banner.is-scrolled .top-banner-inner,
body[data-theme="theme-4"] .top-banner.is-scrolled .top-banner-inner,
body[data-theme="theme-5"] .top-banner.is-scrolled .top-banner-inner {
  border-bottom-color: rgba(255, 255, 255, 0.46);
}

body[data-theme="theme-3"] .top-banner-brand,
body[data-theme="theme-4"] .top-banner-brand,
body[data-theme="theme-5"] .top-banner-brand,
body[data-theme="theme-3"] .top-banner-menu > li > a,
body[data-theme="theme-4"] .top-banner-menu > li > a,
body[data-theme="theme-5"] .top-banner-menu > li > a,
body[data-theme="theme-3"] .top-banner-menu > li.has-dropdown > a::after,
body[data-theme="theme-4"] .top-banner-menu > li.has-dropdown > a::after,
body[data-theme="theme-5"] .top-banner-menu > li.has-dropdown > a::after {
  color: #ffffff;
}

body[data-theme="theme-3"] .top-banner-menu > li > a:hover,
body[data-theme="theme-3"] .top-banner-menu > li > a:focus-visible,
body[data-theme="theme-4"] .top-banner-menu > li > a:hover,
body[data-theme="theme-4"] .top-banner-menu > li > a:focus-visible,
body[data-theme="theme-5"] .top-banner-menu > li > a:hover,
body[data-theme="theme-5"] .top-banner-menu > li > a:focus-visible {
  color: rgba(255, 255, 255, 0.78);
}

body[data-theme="theme-3"] .top-banner-menu > li > a:focus-visible,
body[data-theme="theme-4"] .top-banner-menu > li > a:focus-visible,
body[data-theme="theme-5"] .top-banner-menu > li > a:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

.theme-switcher-select option {
  color: var(--brand-charcoal);
}

body[data-theme="theme-3"] .top-submenu,
body[data-theme="theme-4"] .top-submenu,
body[data-theme="theme-5"] .top-submenu {
  background: var(--theme-accent);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

body[data-theme="theme-3"] .top-submenu a,
body[data-theme="theme-4"] .top-submenu a,
body[data-theme="theme-5"] .top-submenu a {
  color: #ffffff;
}

body[data-theme="theme-3"] .top-submenu a:hover,
body[data-theme="theme-3"] .top-submenu a:focus-visible,
body[data-theme="theme-4"] .top-submenu a:hover,
body[data-theme="theme-4"] .top-submenu a:focus-visible,
body[data-theme="theme-5"] .top-submenu a:hover,
body[data-theme="theme-5"] .top-submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

body[data-theme="theme-3"] section.white-two-column-section[aria-label="Lokale Führung"],
body[data-theme="theme-3"] section.white-two-column-section[aria-label="Sinnersdorf Steiermark"],
body[data-theme="theme-5"] section.white-two-column-section[aria-label="Lokale Führung"],
body[data-theme="theme-5"] section.white-two-column-section[aria-label="Sinnersdorf Steiermark"] {
  background: linear-gradient(
    135deg,
    rgba(var(--theme-accent-rgb), 0.16) 0%,
    rgba(var(--theme-accent-rgb), 0.08) 100%
  );
  border: 1px solid rgba(var(--theme-accent-rgb), 0.24);
}

body[data-theme="theme-3"] section.white-two-column-section[aria-label="Lokale Führung"] .white-kicker,
body[data-theme="theme-3"] section.white-two-column-section[aria-label="Sinnersdorf Steiermark"] .white-kicker,
body[data-theme="theme-5"] section.white-two-column-section[aria-label="Lokale Führung"] .white-kicker,
body[data-theme="theme-5"] section.white-two-column-section[aria-label="Sinnersdorf Steiermark"] .white-kicker {
  color: var(--theme-accent-dark);
}

body[data-theme="theme-3"] section.white-two-column-section[aria-label="Lokale Führung"] .white-title,
body[data-theme="theme-3"] section.white-two-column-section[aria-label="Sinnersdorf Steiermark"] .white-title,
body[data-theme="theme-5"] section.white-two-column-section[aria-label="Lokale Führung"] .white-title,
body[data-theme="theme-5"] section.white-two-column-section[aria-label="Sinnersdorf Steiermark"] .white-title {
  color: var(--brand-charcoal);
}

body[data-theme="theme-3"] section.white-two-column-section[aria-label="Lokale Führung"] .white-description,
body[data-theme="theme-3"]
  section.white-two-column-section[aria-label="Sinnersdorf Steiermark"]
  .white-description,
body[data-theme="theme-5"] section.white-two-column-section[aria-label="Lokale Führung"] .white-description,
body[data-theme="theme-5"]
  section.white-two-column-section[aria-label="Sinnersdorf Steiermark"]
  .white-description {
  color: #2f2f2f;
}

body[data-theme="theme-5"] .calendar-widget-section {
  background: linear-gradient(
    145deg,
    rgba(var(--theme-accent-rgb), 0.92) 0%,
    rgba(var(--theme-accent-rgb), 0.84) 100%
  );
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-theme="theme-5"] .calendar-widget-section.is-open {
  box-shadow: 0 14px 30px rgba(74, 0, 0, 0.36);
}

body[data-theme="theme-5"] .calendar-view-toggle,
body[data-theme="theme-5"] .calendar-nav {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.98);
  color: var(--theme-accent-dark);
}

body[data-theme="theme-5"] .calendar-view-toggle:hover,
body[data-theme="theme-5"] .calendar-view-toggle:focus-visible,
body[data-theme="theme-5"] .calendar-nav:hover,
body[data-theme="theme-5"] .calendar-nav:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.98);
  color: #3c0000;
}

body[data-theme="theme-5"] .calendar-month {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.72);
}

body[data-theme="theme-5"] .calendar-month-title {
  color: var(--theme-accent-dark);
}

body[data-theme="theme-5"] .calendar-event-date {
  color: rgba(255, 255, 255, 0.97);
}

body[data-theme="theme-5"] .calendar-month-event,
body[data-theme="theme-5"] .calendar-event-item {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.58);
}

body[data-theme="theme-5"] .calendar-month-event-date,
body[data-theme="theme-5"] .calendar-month-event-title,
body[data-theme="theme-5"] .calendar-month-event-description,
body[data-theme="theme-5"] .calendar-event-title,
body[data-theme="theme-5"] .calendar-event-description {
  color: #1f2937;
}

body[data-theme="theme-5"] .calendar-weekday {
  color: #4b1f1f;
}

body[data-theme="theme-5"] .calendar-event-placeholder {
  color: rgba(255, 255, 255, 0.94);
}

body[data-theme="theme-5"] .calendar-day {
  color: #3f1c1c;
}

body[data-theme="theme-5"] .calendar-day.is-muted {
  color: #8f5f5f;
}

body[data-theme="theme-5"] .calendar-day.is-event {
  background: rgba(var(--theme-accent-rgb), 0.2);
  color: #3c0000;
  box-shadow: inset 0 0 0 1px rgba(var(--theme-accent-rgb), 0.35);
}

body[data-theme="theme-5"] .calendar-day.is-event:hover,
body[data-theme="theme-5"] .calendar-day.is-event:focus-visible {
  background: rgba(var(--theme-accent-rgb), 0.3);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-accent-rgb), 0.5);
}

body[data-theme="theme-5"] .calendar-day.is-selected,
body[data-theme="theme-5"] .calendar-day.is-today {
  background: var(--theme-accent-dark);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body[data-theme="theme-6"] .calendar-widget-section {
  background: linear-gradient(
    145deg,
    rgba(var(--theme-accent-rgb), 0.92) 0%,
    rgba(var(--theme-accent-rgb), 0.84) 100%
  );
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-theme="theme-6"] .calendar-widget-section.is-open {
  box-shadow: 0 14px 30px rgba(23, 71, 41, 0.36);
}

body[data-theme="theme-6"] .calendar-view-toggle,
body[data-theme="theme-6"] .calendar-nav {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.98);
  color: var(--theme-accent-dark);
}

body[data-theme="theme-6"] .calendar-view-toggle:hover,
body[data-theme="theme-6"] .calendar-view-toggle:focus-visible,
body[data-theme="theme-6"] .calendar-nav:hover,
body[data-theme="theme-6"] .calendar-nav:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.98);
  color: #173f27;
}

body[data-theme="theme-6"] .calendar-month {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.72);
}

body[data-theme="theme-6"] .calendar-month-title {
  color: var(--theme-accent-dark);
}

body[data-theme="theme-6"] .calendar-event-date {
  color: rgba(255, 255, 255, 0.97);
}

body[data-theme="theme-6"] .calendar-month-event,
body[data-theme="theme-6"] .calendar-event-item {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.58);
}

body[data-theme="theme-6"] .calendar-month-event-date,
body[data-theme="theme-6"] .calendar-month-event-title,
body[data-theme="theme-6"] .calendar-month-event-description,
body[data-theme="theme-6"] .calendar-event-title,
body[data-theme="theme-6"] .calendar-event-description {
  color: #1f2937;
}

body[data-theme="theme-6"] .calendar-weekday {
  color: #1f4d33;
}

body[data-theme="theme-6"] .calendar-event-placeholder {
  color: rgba(255, 255, 255, 0.94);
}

body[data-theme="theme-6"] .calendar-day {
  color: #1e4630;
}

body[data-theme="theme-6"] .calendar-day.is-muted {
  color: #5e8f73;
}

body[data-theme="theme-6"] .calendar-day.is-event {
  background: rgba(var(--theme-accent-rgb), 0.2);
  color: #173f27;
  box-shadow: inset 0 0 0 1px rgba(var(--theme-accent-rgb), 0.35);
}

body[data-theme="theme-6"] .calendar-day.is-event:hover,
body[data-theme="theme-6"] .calendar-day.is-event:focus-visible {
  background: rgba(var(--theme-accent-rgb), 0.3);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-accent-rgb), 0.5);
}

body[data-theme="theme-6"] .calendar-day.is-selected,
body[data-theme="theme-6"] .calendar-day.is-today {
  background: var(--theme-accent-dark);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.parallax-hero {
  position: relative;
  height: 65vh;
  overflow: hidden;
  background: #f8f8f8;
}

.parallax-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 6;
  pointer-events: none;
}

.top-banner {
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.top-banner-inner {
  width: 90%;
  height: 50px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(var(--theme-accent-rgb), 0.18);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 22px var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
  padding-inline: var(--section-content-gutter);
  transition: border-color 220ms ease;
}

.top-banner.is-scrolled .top-banner-inner {
  border-bottom-color: rgba(var(--theme-accent-rgb), 0.35);
}

.top-banner-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-accent);
  text-decoration: none;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(0.82rem, 1vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: none;
}

.top-banner-logo {
  width: clamp(18px, 1.5vw, 24px);
  height: clamp(18px, 1.5vw, 24px);
  object-fit: contain;
  display: block;
}

.top-banner-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: clamp(10px, 2.2vw, 24px);
}

.top-banner-menu > li {
  position: relative;
}

.top-banner-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
}

.top-banner-menu > li.has-dropdown > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 9px;
  line-height: 1;
  color: var(--theme-accent);
}

.top-banner-menu a {
  color: var(--brand-charcoal);
  text-decoration: none;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 220ms ease, opacity 220ms ease;
}

.top-banner-menu a:hover,
.top-banner-menu a:focus-visible {
  color: var(--brand-red);
  opacity: 1;
}

.top-banner-menu a:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 3px;
}

.theme-switcher-item {
  display: inline-flex;
  align-items: center;
}

.theme-switcher-select {
  min-height: 28px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-charcoal);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--theme-accent) 50%),
    linear-gradient(135deg, var(--theme-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 11px,
    calc(100% - 9px) 11px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.theme-switcher-select:hover,
.theme-switcher-select:focus-visible {
  border-color: rgba(var(--theme-accent-rgb), 0.65);
  outline: none;
}

.top-submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 210px;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-white);
  border: 1px solid rgba(var(--theme-accent-rgb), 0.25);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 24px rgba(var(--theme-accent-rgb), 0.2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 260ms ease, opacity 180ms ease, visibility 180ms ease;
  z-index: 1200;
}

.top-submenu li {
  margin: 0;
}

.top-submenu a {
  display: block;
  padding: 8px 12px;
  color: var(--brand-charcoal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.25;
}

.top-submenu a:hover,
.top-submenu a:focus-visible {
  background: var(--surface-blue-tint);
  color: var(--brand-red);
  outline: none;
}

.top-banner-menu > li.has-dropdown:hover > .top-submenu,
.top-banner-menu > li.has-dropdown:focus-within > .top-submenu {
  max-height: 340px;
  opacity: 1;
  visibility: visible;
}

body > section {
  width: 90%;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--shadow-soft);
}

body > section:first-of-type {
  margin-top: -16px;
  position: relative;
  z-index: 8;
}

body.legal-page > section:first-of-type {
  margin-top: 18px;
  z-index: auto;
}

.legal-page-section {
  background: var(--surface-white);
  margin-top: 18px;
  margin-bottom: 20px;
}

.legal-page-content {
  max-width: 980px;
  padding: 56px var(--section-content-gutter) 64px;
}

.legal-title {
  margin: 0;
  color: var(--brand-charcoal);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.legal-subtitle {
  margin: 12px 0 28px;
  color: #4b5563;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.legal-block {
  margin: 0 0 26px;
  color: #374151;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

.legal-heading {
  margin: 34px 0 10px;
  color: var(--brand-charcoal);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

@media (max-width: 760px) {
  body.legal-page > section:first-of-type {
    margin-top: 12px;
  }

  .legal-page-content {
    padding: 42px var(--section-content-gutter) 48px;
  }

  .legal-subtitle,
  .legal-block {
    font-size: 14px;
  }
}

.site-footer {
  width: 90%;
  margin: 12px auto 0;
  background: linear-gradient(
    120deg,
    var(--theme-footer-start) 0%,
    var(--theme-footer-mid) 60%,
    var(--theme-footer-end) 100%
  );
  border-radius: 14px;
  box-shadow: 0 12px 28px var(--theme-footer-shadow);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.92) 0%, rgba(227, 6, 19, 0.86) 100%);
}

.site-footer-inner {
  padding: 28px var(--section-content-gutter) 24px;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff4f4;
  text-decoration: none;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(0.92rem, 1.15vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-text {
  margin: 14px 0 0;
  max-width: 560px;
  color: rgba(244, 248, 255, 0.92);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: flex-start;
}

.footer-nav a {
  color: #f4f8ff;
  text-decoration: none;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--brand-gold);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.footer-legal {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.footer-legal a {
  color: #f4f8ff;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 180ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--brand-gold);
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.footer-meta {
  grid-column: 1 / -1;
  text-align: center;
  justify-self: center;
}

.footer-meta-line {
  margin: 0;
  color: #f6f9ff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-meta-line + .footer-meta-line {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-meta {
    text-align: center;
    justify-self: center;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .top-banner-inner {
    width: 90%;
  }

  .top-banner-brand {
    font-size: 11px;
    letter-spacing: 0.05em;
    transform: none;
    gap: 6px;
  }

  .top-banner-logo {
    width: 16px;
    height: 16px;
  }

  .top-banner-menu {
    margin-left: auto;
    gap: 8px;
  }

  .top-banner-menu a {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .top-submenu {
    min-width: 170px;
  }

  .top-submenu a {
    font-size: 10px;
  }

  .site-footer {
    margin-top: 22px;
  }

  .site-footer-inner {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .footer-text {
    font-size: 12px;
  }
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  will-change: transform;
  pointer-events: none;
}

.layer-a {
  z-index: 5;
}

.layer-b {
  z-index: 4;
}

.layer-c {
  z-index: 2;
}

.layer-d {
  z-index: 1;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%);
  z-index: 3;
  margin: 0;
  color: #fff;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
}

.calendar-group {
  background: var(--surface-white);
  min-height: 500px;
}

.calendar-group .team-heading {
  color: var(--brand-charcoal);
  text-transform: none;
  font-size: clamp(1.8rem, 5.6vw, 3.9rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: left;
}

.calendar-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.calendar-action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--theme-accent);
  color: var(--surface-white);
  cursor: pointer;
  text-decoration: none;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.calendar-action:hover,
.calendar-action:focus-visible {
  background: var(--theme-accent-dark);
  transform: translateY(-1px);
}

.calendar-action:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.calendar-widget-section {
  max-height: 0;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  background: rgba(var(--theme-accent-rgb), 0.1);
  border: 1px solid rgba(var(--theme-accent-rgb), 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  overflow: hidden;
  transition: max-height 340ms ease, opacity 260ms ease, margin 260ms ease, box-shadow 260ms ease;
}

.calendar-widget-section.is-open {
  max-height: 760px;
  margin: 10px auto 12px;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 12px 24px rgba(var(--theme-accent-rgb), 0.18);
}

.calendar-widget-toolbar {
  padding: 16px var(--section-content-gutter) 0;
  display: flex;
  justify-content: flex-end;
}

.calendar-view-toggle {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--theme-accent);
  cursor: pointer;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.calendar-view-toggle:hover,
.calendar-view-toggle:focus-visible {
  background: var(--theme-accent);
  color: var(--surface-white);
  border-color: rgba(var(--theme-accent-rgb), 0.6);
  outline: none;
}

.calendar-widget-shell {
  padding: 14px var(--section-content-gutter) 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.calendar-nav {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--theme-accent);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
  background: var(--theme-accent);
  color: var(--surface-white);
  border-color: rgba(var(--theme-accent-rgb), 0.6);
  outline: none;
}

.calendar-nav.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calendar-month {
  border: 1px solid rgba(var(--theme-accent-rgb), 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 12px 12px;
}

.calendar-month-title {
  margin: 0 0 10px;
  color: var(--theme-accent);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calendar-month-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.calendar-month-event {
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(var(--theme-accent-rgb), 0.08);
  border: 1px solid rgba(var(--theme-accent-rgb), 0.16);
}

.calendar-month-event-date {
  margin: 0;
  color: var(--theme-accent);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calendar-month-event-title {
  margin: 4px 0 0;
  color: var(--brand-charcoal);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.calendar-month-event-description {
  margin: 4px 0 0;
  color: #374151;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.3;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.calendar-weekday {
  text-align: center;
  color: #4b5563;
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-day {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
}

.calendar-day.is-muted {
  color: #9ca3af;
}

.calendar-day.is-empty {
  background: transparent;
  box-shadow: none;
}

.calendar-day.is-event {
  background: rgba(var(--theme-accent-rgb), 0.13);
  color: var(--theme-accent-dark);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(var(--theme-accent-rgb), 0.35);
  cursor: pointer;
}

.calendar-day.is-event:hover,
.calendar-day.is-event:focus-visible {
  background: rgba(var(--theme-accent-rgb), 0.2);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-accent-rgb), 0.5);
  outline: none;
}

.calendar-day.is-selected {
  background: var(--theme-accent);
  color: var(--surface-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.calendar-day.is-today {
  background: var(--theme-accent);
  color: var(--surface-white);
  font-weight: 700;
}

.calendar-event-details {
  padding: 0 var(--section-content-gutter) 22px;
}

.calendar-event-details.is-hidden {
  display: none;
}

.calendar-event-placeholder {
  margin: 0;
  color: rgba(55, 65, 81, 0.95);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.calendar-event-date {
  margin: 0 0 10px;
  color: var(--theme-accent);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calendar-event-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.calendar-event-item {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(var(--theme-accent-rgb), 0.18);
}

.calendar-event-title {
  margin: 0;
  color: var(--brand-charcoal);
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-event-description {
  margin: 5px 0 0;
  color: #4b5563;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.calendar-group .event-description {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.extension-column-left {
  min-width: 0;
  padding: 64px var(--section-content-gutter) 68px;
}

.event-copy {
  max-width: 420px;
}

.event-kicker {
  margin: 0;
  color: var(--brand-red);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.event-title {
  margin: 12px 0 0;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.event-description {
  margin: 20px 0 0;
  color: #222;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.event-carousel {
  margin-top: 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.carousel-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  background: #fff;
  color: var(--theme-accent);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.carousel-arrow:hover {
  background: var(--theme-accent);
  color: var(--surface-white);
  border-color: var(--theme-accent);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background: #fff;
  color: var(--theme-accent);
  border-color: #cfd6df;
}

.event-carousel-viewport {
  overflow: hidden;
}

.event-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 300ms ease;
}

.event-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid #d9e0e8;
  background: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.event-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  margin: 0;
}

.event-card-date {
  margin: 0;
  color: var(--brand-red);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.event-card-title {
  margin: 10px 0 0;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.event-card-featured {
  position: relative;
  overflow: hidden;
  z-index: 2;
  padding: 0;
  flex-basis: calc((100% - 48px) / 4);
  transition: flex-basis 320ms ease;
}

.event-card-featured .event-card-thumb {
  position: absolute;
  inset: 0;
}

.event-card-featured:hover,
.event-card-featured:focus-within {
  flex-basis: calc(((100% - 48px) / 4) + 240px);
}

.event-card-featured .event-card-title {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  margin: 0;
  color: #111;
  z-index: 2;
  font-size: 15px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
  transition: opacity 220ms ease, transform 220ms ease;
}

.event-card-preview-date {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 58px;
  margin: 0;
  color: #111;
  z-index: 2;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
  transition: top 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.event-card-featured.event-card-tight-date .event-card-preview-date {
  top: 33px;
}

.event-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.42) 35%,
    rgba(255, 255, 255, 0) 68%
  );
  z-index: 1;
  pointer-events: none;
  transition: background 220ms ease;
}

.event-card-expand {
  position: absolute;
  bottom: 14px;
  right: 14px;
  opacity: 0;
  transform: translateY(6px);
  z-index: 3;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.event-card-featured:hover .event-card-expand,
.event-card-featured:focus-within .event-card-expand {
  opacity: 1;
  transform: translateY(0);
}

.event-card-featured:hover .event-card-preview-date,
.event-card-featured:focus-within .event-card-preview-date {
  top: 42px;
}

.event-card-featured:hover::before,
.event-card-featured:focus-within::before {
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.2) 38%,
    rgba(255, 255, 255, 0) 58%
  ),
  linear-gradient(
    to top left,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 42%
  );
}

.event-card-expand-date {
  margin: 0;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.event-card-meta {
  margin: 8px 0 0;
  color: #4a5665;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.event-card-location {
  margin: 8px 0 0;
  color: #5f6d7d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .event-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }

  .event-card-featured {
    flex-basis: calc((100% - 32px) / 3);
  }

  .event-card-featured:hover,
  .event-card-featured:focus-within {
    flex-basis: calc(((100% - 32px) / 3) + 220px);
  }
}

@media (max-width: 760px) {
  .extension-column-left {
    padding: 48px var(--section-content-gutter) 52px;
  }

  .calendar-header {
    margin-bottom: 14px;
    align-items: center;
  }

  .event-carousel {
    margin-top: 26px;
  }

  .event-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .event-card-featured {
    flex-basis: calc((100% - 16px) / 2);
  }

  .event-card-featured:hover,
  .event-card-featured:focus-within {
    flex-basis: calc(((100% - 16px) / 2) + 180px);
  }
}

@media (max-width: 520px) {
  .event-card {
    flex: 0 0 100%;
  }

  .event-card-featured {
    flex-basis: 100%;
  }

  .event-card-featured:hover,
  .event-card-featured:focus-within {
    flex-basis: 100%;
  }

  .event-card-featured .event-card-expand {
    display: none;
  }
}

.white-two-column-section {
  height: auto;
  background: var(--surface-blue-tint);
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 20px;
  margin-bottom: 20px;
}

.white-column {
  min-width: 0;
}

.white-column-left {
  padding: 64px var(--section-content-gutter) 68px;
}

.white-column-right {
  padding: 56px var(--section-content-gutter) 56px 0;
}

.white-kicker {
  margin: 0;
  color: var(--brand-red);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.white-title {
  margin: 14px 0 0;
  color: var(--brand-charcoal);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.8rem, 5.6vw, 3.9rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.white-description {
  margin: 26px 0 0;
  max-width: 760px;
  color: #4b5563;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.partnership-action {
  margin-top: 26px;
  margin-left: 0;
}

@media (max-width: 760px) {
  .white-column-left {
    padding: 48px var(--section-content-gutter) 52px;
  }

  .white-title {
    margin-top: 12px;
  }

  .white-description {
    margin-top: 20px;
  }
}

.ghost-white-three-column-section {
  position: relative;
  height: 820px;
  background: #f8f8f8;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  grid-template-rows: auto auto;
  align-content: start;
  column-gap: 10px;
  row-gap: 64px;
  padding: 56px var(--section-content-gutter) 0;
}

.ghost-gray-three-column-section {
  background: var(--surface-soft);
}

.ghost-gray-three-column-section .team-heading {
  color: var(--brand-blue);
}

.ghost-white-three-column {
  min-width: 0;
}

.team-heading {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
  color: #6b7280;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

section[aria-label="Der IG Vorstand"] .team-heading,
section[aria-label="Der IG Vorstand"] .team-heading-secondary,
section[aria-label="Der IG Vorstand"] .team-heading-tertiary {
  color: var(--brand-charcoal);
  font-size: clamp(1.8rem, 5.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
}

#der-ig-vorstand {
  scroll-margin-top: 96px;
}

#ig-sinnersdorfer-ortsvereine {
  scroll-margin-top: 96px;
}

section[aria-label="Der IG Vorstand"] {
  grid-template-columns: 1fr repeat(3, minmax(0, 168px)) 1fr;
  grid-template-rows: auto auto auto auto auto auto auto;
  row-gap: 36px;
  height: auto;
  padding-top: 132px;
  padding-bottom: 72px;
}

section[aria-label="Der IG Vorstand"] .team-card:nth-of-type(1) {
  grid-column: 2;
}

section[aria-label="Der IG Vorstand"] .team-card:nth-of-type(2) {
  grid-column: 3;
}

section[aria-label="Der IG Vorstand"] .team-card:nth-of-type(3) {
  grid-column: 4;
}

section[aria-label="Der IG Vorstand"] .team-heading,
section[aria-label="Der IG Vorstand"] .team-heading-secondary,
section[aria-label="Der IG Vorstand"] .team-heading-tertiary {
  text-align: center;
}

section[aria-label="Der IG Vorstand"] .team-heading-secondary {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 72px;
  text-align: center;
}

.beisitzer-row {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 8px;
  width: min(100%, 1200px);
  justify-self: center;
}

.beisitzer-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.beisitzer-carousel-viewport {
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
}

.beisitzer-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.beisitzer-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 300ms ease;
}

.beisitzer-carousel .team-card {
  flex: 0 0 168px;
  width: 168px;
  height: 228px;
  max-width: 168px;
  justify-self: auto;
}

.beisitzer-carousel .team-card-inline-details {
  flex-basis: 228px;
  width: 228px;
  height: 228px;
  max-width: 228px;
}

.beisitzer-carousel .team-name {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.beisitzer-carousel .team-role {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details .team-meta {
  top: auto;
  bottom: 10px;
  transition: transform 460ms ease, top 460ms ease, bottom 460ms ease;
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details .team-role {
  transition: opacity 460ms ease;
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details .team-expand-details {
  top: auto;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  width: auto;
  max-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  transition: max-height 460ms ease, opacity 460ms ease, transform 460ms ease;
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details .team-expand-address {
  color: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details:hover .team-meta,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details:focus-within .team-meta,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details.is-expanded .team-meta {
  top: 72%;
  bottom: auto;
  transform: translateY(-50%);
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details:hover .team-role,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details:focus-within .team-role,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details.is-expanded .team-role {
  opacity: 0;
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details:hover .team-expand-details,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details:focus-within .team-expand-details,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details.is-expanded .team-expand-details {
  max-height: 94px;
  opacity: 1;
  transform: translateY(0);
}

/* Match the tighter detail inset used in the Ortsvereine cards */
section[aria-label="Der IG Vorstand"] .beisitzer-carousel #card-akkordeon-orchester .team-expand-details,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel #card-arbeiterwohlfahrt .team-expand-details,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel #card-drk-ortsgruppe .team-expand-details,
section[aria-label="Der IG Vorstand"] .beisitzer-carousel #card-dpsg-maximilian-kolbe .team-expand-details {
  left: 2px;
  bottom: 2px;
}

section[aria-label="Der IG Vorstand"] .beisitzer-carousel .team-card-inline-details .team-card-visual::after {
  height: 78%;
  background: linear-gradient(
    to top,
    rgba(7, 14, 27, 0.95),
    rgba(7, 14, 27, 0.78) 46%,
    rgba(7, 14, 27, 0.3) 78%,
    rgba(7, 14, 27, 0)
  );
}

.ortsverein-row {
  grid-column: 1 / -1;
  grid-row: 5;
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

section[aria-label="Der IG Vorstand"] .team-heading-tertiary {
  grid-column: 1 / -1;
  grid-row: 6;
  margin-top: 32px;
  text-align: center;
}

.ortsverein-icons-row {
  grid-column: 1 / -1;
  grid-row: 7;
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.ortsverein-icons-row .team-card {
  width: clamp(176px, 14vw, 196px);
  height: clamp(176px, 14vw, 196px);
}

.ortsverein-icons-row .team-card img {
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 0;
}

.ortsverein-icons-row .team-meta {
  left: 8px;
  right: 8px;
  bottom: 8px;
}

.ortsverein-icons-row .team-name {
  font-size: 10px;
  line-height: 1.2;
}

.ortsverein-icons-row .team-role {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.ortsverein-icons-row-secondary {
  grid-row: 8;
  margin-top: 64px;
}

.ortsverein-icons-row-tertiary {
  grid-row: 9;
  margin-top: 64px;
}

.ortsverein-icons-row-quaternary {
  grid-row: 10;
  margin-top: 64px;
  margin-bottom: 64px;
}

.ortsverein-carousel {
  grid-column: 1 / -1;
  grid-row: 7;
  margin-top: 8px;
  margin-bottom: 36px;
  width: min(100%, 1200px);
  justify-self: center;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.ortsverein-carousel-viewport {
  overflow-x: hidden;
  overflow-y: visible;
}

.ortsverein-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 300ms ease;
}

.ortsverein-carousel .team-card {
  flex: 0 0 228px;
  width: 228px;
  height: 228px;
  max-width: 228px;
  justify-self: auto;
}

.ortsverein-carousel .team-card img {
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 0;
}

.ortsverein-carousel .team-meta {
  left: 8px;
  right: 8px;
  bottom: 8px;
}

.ortsverein-carousel .team-name {
  font-size: 10px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.ortsverein-carousel .team-role {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.ortsverein-row .team-card {
  width: clamp(176px, 14vw, 196px);
  height: clamp(176px, 14vw, 196px);
  transition: transform 420ms ease;
}

.ortsverein-row .team-card img {
  object-fit: contain;
  background: #fff;
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom {
  overflow: visible;
  z-index: 4;
  isolation: isolate;
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom::after {
  display: none;
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom::before {
  content: none;
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom .team-card-visual {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  transform: translateZ(0);
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom .team-card-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(7, 14, 27, 0.88), rgba(7, 14, 27, 0));
  pointer-events: none;
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom .team-card-visual img {
  border-radius: 14px;
  backface-visibility: hidden;
  transform-origin: center;
}

section[aria-label="Der IG Vorstand"] .team-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
  text-indent: -9999px;
  overflow: hidden;
}

section[aria-label="Der IG Vorstand"] .team-card-link-overlay:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: -4px;
}

section[aria-label="Der IG Vorstand"] .team-expand-details {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  max-height: 0;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 24px var(--shadow-soft);
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 420ms ease, padding 420ms ease, opacity 280ms ease, transform 420ms ease;
  z-index: 2;
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom:hover .team-expand-details,
section[aria-label="Der IG Vorstand"] .team-card-expand-bottom:focus-within .team-expand-details,
section[aria-label="Der IG Vorstand"] .team-card-expand-bottom.is-expanded .team-expand-details {
  max-height: 82px;
  padding: 14px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

section[aria-label="Der IG Vorstand"] .team-card-expand-bottom:hover .team-contact-links,
section[aria-label="Der IG Vorstand"] .team-card-expand-bottom:focus-within .team-contact-links,
section[aria-label="Der IG Vorstand"] .team-card-expand-bottom.is-expanded .team-contact-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

section[aria-label="Der IG Vorstand"] .team-expand-address {
  margin: 0;
  color: #374151;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

section[aria-label="Der IG Vorstand"] .team-expand-link {
  display: block;
  margin-top: 8px;
  color: var(--brand-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

section[aria-label="Der IG Vorstand"] .team-expand-link:hover,
section[aria-label="Der IG Vorstand"] .team-expand-link:focus-visible {
  color: var(--brand-red);
  text-decoration: underline;
  outline: none;
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details .team-meta {
  top: auto;
  bottom: 8px;
  transition: transform 460ms ease, top 460ms ease, bottom 460ms ease;
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details .team-role {
  transition: opacity 460ms ease;
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details .team-expand-details {
  top: auto;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  width: auto;
  max-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  transition: max-height 460ms ease, opacity 460ms ease, transform 460ms ease;
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details .team-expand-address {
  color: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  padding: 4px 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85);
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details:hover .team-meta,
section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details:focus-within .team-meta,
section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details.is-expanded .team-meta {
  top: 72%;
  bottom: auto;
  transform: translateY(-50%);
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details:hover .team-role,
section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details:focus-within .team-role,
section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details.is-expanded .team-role {
  opacity: 0;
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details:hover .team-expand-details,
section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details:focus-within .team-expand-details,
section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details.is-expanded .team-expand-details {
  max-height: 108px;
  opacity: 1;
  transform: translateY(0);
}

section[aria-label="Der IG Vorstand"] .ortsverein-carousel .team-card-inline-details .team-card-visual::after {
  height: 78%;
  background: linear-gradient(
    to top,
    rgba(7, 14, 27, 0.95),
    rgba(7, 14, 27, 0.78) 46%,
    rgba(7, 14, 27, 0.3) 78%,
    rgba(7, 14, 27, 0)
  );
}

.team-card {
  position: relative;
  margin-top: 0;
  width: min(100%, 168px);
  height: 228px;
  justify-self: center;
  border-radius: 14px;
  background: #d9dde1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.team-card:nth-of-type(1) {
  grid-column: 2;
  grid-row: 2;
}

.team-card:nth-of-type(2) {
  grid-column: 3;
  grid-row: 2;
}

.team-card:nth-of-type(3) {
  grid-column: 4;
  grid-row: 2;
}

.ghost-white-three-column-section.reveal-pending .team-card {
  opacity: 0;
  transform: translateY(64px);
  transition: opacity 950ms ease, transform 950ms ease;
}

.ghost-white-three-column-section.reveal-pending.is-visible .team-card {
  opacity: 1;
  transform: translateY(0);
}

.ghost-white-three-column-section.reveal-pending.is-visible .team-card:nth-of-type(1) {
  transition-delay: 0ms;
}

.ghost-white-three-column-section.reveal-pending.is-visible .team-card:nth-of-type(2) {
  transition-delay: 140ms;
}

.ghost-white-three-column-section.reveal-pending.is-visible .team-card:nth-of-type(3) {
  transition-delay: 280ms;
}

.team-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(7, 14, 27, 0.88), rgba(7, 14, 27, 0));
  pointer-events: none;
}

.team-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  text-align: center;
}

.team-name {
  margin: 0;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.team-role {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

section[aria-label="Der IG Vorstand"] .team-meta {
  left: 10px;
  right: 10px;
  bottom: 10px;
}

section[aria-label="Der IG Vorstand"] .team-name {
  font-size: 13px;
  line-height: 1.15;
}

section[aria-label="Der IG Vorstand"] .team-role {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.05em;
}

section[aria-label="Der IG Vorstand"] .team-card img {
  transition: transform 260ms ease;
}

section[aria-label="Der IG Vorstand"] .team-card:hover img,
section[aria-label="Der IG Vorstand"] .team-card:focus-within img {
  transform: scale(1.06);
}

section[aria-label="Der IG Vorstand"] .team-card-contact {
  overflow: hidden;
  z-index: 3;
}

section[aria-label="Der IG Vorstand"] .team-card-contact::after {
  display: none;
}

section[aria-label="Der IG Vorstand"] .team-card-contact .team-card-visual {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  transform: translateZ(0);
}

section[aria-label="Der IG Vorstand"] .team-card-contact .team-card-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(7, 14, 27, 0.88), rgba(7, 14, 27, 0));
  pointer-events: none;
}

section[aria-label="Der IG Vorstand"] .team-card-contact .team-card-visual img {
  border-radius: 14px;
  backface-visibility: hidden;
  transform-origin: center;
}

section[aria-label="Der IG Vorstand"] .team-contact-links {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  z-index: 2;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

section[aria-label="Der IG Vorstand"] .team-card-contact:hover .team-contact-links,
section[aria-label="Der IG Vorstand"] .team-card-contact:focus-within .team-contact-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

section[aria-label="Der IG Vorstand"] .team-contact-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

section[aria-label="Der IG Vorstand"] .team-contact-link:hover,
section[aria-label="Der IG Vorstand"] .team-contact-link:focus-visible {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
  outline: none;
}

section[aria-label="Der IG Vorstand"] .team-contact-icon {
  font-size: 13px;
  line-height: 1;
}
