/* ==========================================================================
   Telemark plus – Theme-Stylesheet
   Grundlage: Designsystem „Telemark plus“ (Graphit #3D3D3F, Logo-Blau #007EAD,
   Impact/Anton für Überschriften, Source Sans 3 für Text, kantige Flächen, Plus-Motiv)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Farben (Designsystem, Thema „Hell“) */
  --brand: #007EAD;
  --brand-strong: #00668C;
  --brand-tint: #E6F2F7;
  --on-brand: #FFFFFF;
  --ink: #3D3D3F;
  --ink-muted: #6B6C6E;
  --surface: #FFFFFF;
  --surface-alt: #F4F5F6;
  --surface-inverse: #3D3D3F;
  --on-inverse: #FFFFFF;
  --brand-on-inverse: #4FB3DB; /* Akzent auf dunklen Bändern (Designsystem: brand, dunkler Wert) */
  --border: #D9DADC;
  --border-strong: #8E8F92;
  --focus: var(--brand);
  --success: #1E7D46;
  --warning: #8A5A00;
  --danger: #B4232A;

  /* Schrift */
  --font-display: Impact, "Anton", Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.25rem, 1.4rem + 3.2vw, 3rem);   /* 48px */
  --fs-h1: clamp(1.75rem, 1.4rem + 1.4vw, 2rem);        /* 32px */
  --fs-h2: 1.5rem;                                       /* 24px */
  --fs-body-lg: 1.125rem;                                /* 18px */
  --fs-body: 1rem;                                       /* 16px */
  --fs-label: 0.875rem;                                  /* 14px */
  --fs-caption: 0.8125rem;                               /* 13px */

  /* Abstände & Formen */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-section: clamp(48px, 6vw, 88px);
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  /* Plus-Motiv */
  --plus-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' fill='%23007EAD'/%3E%3Cpath d='M10 4h4v6h6v4h-6v6h-4v-6H4v-4h6z' fill='%23fff'/%3E%3C/svg%3E");
  --plus-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M22 17h4v5h5v4h-5v5h-4v-5h-5v-4h5z' fill='%23007EAD' fill-opacity='.09'/%3E%3C/svg%3E");
  --plus-pattern-on-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M22 17h4v5h5v4h-5v5h-4v-5h-5v-4h5z' fill='%23fff' fill-opacity='.10'/%3E%3C/svg%3E");

  --radius-card: 18px;
  --radius-media: 12px;
  --shadow-card: 0 1px 2px rgba(15, 29, 39, .06), 0 12px 32px -12px rgba(15, 29, 39, .22);
  --shadow-card-hover: 0 2px 4px rgba(15, 29, 39, .06), 0 24px 60px -20px rgba(15, 29, 39, .35);
  --card-pad: clamp(20px, 2.4vw, 28px);
  --shadow-header: 0 1px 0 var(--border), 0 6px 18px rgba(61, 61, 63, 0.08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 1100px) {
  :root { --header-h: 88px; }
}

/* ---------- 2. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
.has-sticky-header { scroll-padding-top: calc(var(--header-h) + 8px); }
html:has(.has-sticky-header) { scroll-padding-top: calc(var(--header-h) + 8px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { border: 0; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color .15s var(--ease);
}
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }

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

::selection { background: var(--brand-tint); color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-12) 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: var(--on-brand); }

.plus-mark {
  display: inline-block;
  width: 1em; height: 1em;
  background: var(--plus-mark) center / contain no-repeat;
}

/* ---------- 3. Typografie ---------- */
h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0 0 var(--space-4); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-synthesis: none;
}
h1 { font-size: var(--fs-display); line-height: 1.05; }
h2 { font-size: var(--fs-h1); line-height: 1.1; }
h3 { font-size: var(--fs-h2); line-height: 1.2; }
h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
h5 { font-size: var(--fs-body-lg); line-height: 1.4; font-weight: 700; }
h6 { font-size: var(--fs-label); line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }

h1 a, h2 a, h3 a, h4 a { color: inherit; text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--brand); }

p, ul, ol, dl, blockquote, pre, table, figure { margin: 0 0 var(--space-4); }

strong, b { font-weight: 700; }
small { font-size: var(--fs-caption); }

.lead, .prose > p:first-child { font-size: var(--fs-body-lg); line-height: 1.55; }

.prose { max-width: 72ch; }
/* Inhaltsbreite (Option content_width) */
.prose--full { max-width: none; }
.prose--centered { margin-inline: auto; }
.prose--full > p, .prose--full > ul, .prose--full > ol { max-width: none; }
.prose > * + h2 { margin-top: var(--space-12); }
.prose > * + h3 { margin-top: var(--space-8); }
.prose > * + h4 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: var(--space-2); }
.prose ul li::marker { color: var(--brand); }
.prose img { display: block; margin-block: var(--space-6); }

blockquote {
  margin-inline: 0;
  padding: var(--space-6);
  background: var(--brand-tint);
  font-size: var(--fs-body-lg);
  color: var(--ink);
}
blockquote > :last-child { margin-bottom: 0; }

code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}
pre { background: var(--surface-alt); padding: var(--space-4); overflow-x: auto; border: 1px solid var(--border); }
pre code { background: none; padding: 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.04em; }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); }
dl.details dt { font-weight: 600; color: var(--ink-muted); }
dl.details dd { margin: 0; }

/* ---------- 4. Buttons & Links ---------- */
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.button:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
  background: var(--brand-tint);
  border-color: var(--brand-strong);
  color: var(--brand-strong);
  text-decoration: none;
}

.button.primary,
button.button[type="submit"],
input[type="submit"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.button.primary:hover,
button.button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--on-brand);
}

.button--on-dark {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
}
.button--on-dark:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-strong); }

.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin: var(--space-6) 0 0; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.more-link::after {
  content: "";
  width: 1.15em; height: 1.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.more-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.more-link:hover::after { transform: translateX(4px); }

/* ---------- 5. Kopfzeile & Navigation ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow .2s var(--ease);
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: var(--shadow-header); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-h);
}

.site-logo { display: block; flex: 0 0 auto; line-height: 0; padding-block: var(--space-3); }
.site-logo img { width: clamp(168px, 22vw, 248px); height: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-6); }

.navigation { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--space-1); }
.navigation li { position: relative; }
.navigation a {
  display: block;
  position: relative;
  padding: var(--space-3) var(--space-3);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.navigation a .fa { margin-right: 0.3em; color: var(--brand); }
.navigation > li > a::after {
  content: "";
  position: absolute;
  left: var(--space-3); right: var(--space-3); bottom: 2px;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.navigation a:hover { color: var(--brand); }
.navigation > li > a:hover::after,
.navigation > li.active > a::after { transform: scaleX(1); }
.navigation li.active > a { color: var(--brand); }

/* Untermenüs */
.navigation .subnav {
  list-style: none;
  margin: 0; padding: var(--space-2) 0;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(61, 61, 63, 0.12);
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.navigation .subnav .subnav { top: -9px; left: 100%; }
.navigation li:hover > .subnav,
.navigation li:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.navigation .subnav a { padding: var(--space-2) var(--space-4); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1rem; }
.navigation .subnav li.active > a { background: var(--brand-tint); color: var(--brand-strong); }

.site-nav__tools { display: flex; align-items: center; gap: var(--space-3); }

/* Social-Icons */
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.social-icons a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.social-icons--small a { width: 34px; height: 34px; font-size: 0.9rem; }

/* Suche */
.search-box { position: relative; display: flex; align-items: center; margin: 0; }
.search-box input[type="search"] {
  width: 160px;
  min-height: 40px;
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.search-box--wide, .search-box--wide input[type="search"] { width: 100%; }
.search-box button {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 40px;
  border: 0; background: none; color: var(--ink); cursor: pointer;
}
.search-box button:hover { color: var(--brand); }

/* Menü-Knopf (mobil) */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 700 0.875rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099.98px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; gap: 0 var(--space-4); }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    margin: 0 calc(-1 * var(--gutter));
    padding: var(--space-2) var(--gutter) var(--space-6);
    border-top: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .navigation { flex-direction: column; align-items: stretch; gap: 0; }
  .navigation li { border-bottom: 1px solid var(--border); }
  .navigation a { padding: var(--space-4) 0; font-size: 1.0625rem; }
  .navigation > li > a::after { display: none; }
  .navigation li.active > a { color: var(--brand); }
  .navigation li.active > a::before {
    content: ""; position: absolute; left: calc(-1 * var(--gutter)); top: 0; bottom: 0; width: 4px; background: var(--brand);
  }
  .navigation .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 var(--space-2) var(--space-4); min-width: 0;
  }
  .navigation .subnav li { border: 0; }
  .navigation .subnav a { padding: var(--space-2) 0; }
  .site-nav__tools { justify-content: space-between; flex-wrap: wrap; }
  .search-box { flex: 1 1 200px; }
  .search-box input[type="search"] { width: 100%; }
}

/* ---------- 6. Hero / Showcase (wie im Original: Bild + zentrierte Headline) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #666;
  color: var(--on-inverse);
}
.hero__track { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 48vw, 560px);
  padding-block: var(--space-12);
  background-color: #666;
  background-image: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.hero__slide.is-plain { background-color: var(--brand); background-image: none; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__inner { position: relative; z-index: 1; padding-inline: clamp(56px, 8vw, 120px); }

.hero__title {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--on-inverse);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero__title strong { font-weight: 400; color: var(--brand-on-inverse); }
.hero__slide.is-plain .hero__title strong { color: var(--on-brand); text-decoration: underline; text-underline-offset: .12em; }
.hero__sub { margin: var(--space-4) auto 0; max-width: 46ch; font-size: var(--fs-body-lg); text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hero .button { margin-top: var(--space-6); border-color: var(--on-inverse); color: var(--on-inverse); background: transparent; }
.hero .button:hover { background: rgba(255, 255, 255, .2); color: var(--on-inverse); }
.hero :focus-visible { outline-color: var(--surface); }

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin-top: -28px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: #000;
  font-size: 1.5rem;
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s;
}
.hero__arrow:hover, .hero__arrow:focus-visible { opacity: 1; }
.hero__arrow--prev { left: clamp(12px, 3vw, 48px); }
.hero__arrow--prev .fa { margin-right: 3px; }
.hero__arrow--next { right: clamp(12px, 3vw, 48px); }
.hero__arrow--next .fa { margin-left: 3px; }

.hero__dots {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 5%;
  display: flex; justify-content: center; align-items: center; gap: 6px;
}
.hero__dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  opacity: .7;
  cursor: pointer;
  transition: width .2s, height .2s, opacity .2s;
}
.hero__dot:hover { opacity: 1; }
.hero__dot.is-active { width: 16px; height: 16px; opacity: 1; }

@media (max-width: 719.98px) {
  .hero__arrow { width: 40px; height: 40px; margin-top: -20px; font-size: 1.1rem; }
  .hero__inner { padding-inline: 52px; }
}

/* ---------- 7. Abschnitte (modular) ---------- */
.section { padding-block: var(--space-section); }
.section + .section:not(.section--alt):not([class*="band-"]) { padding-top: 0; }
.section--intro { padding-bottom: 0; }
.section--intro + .section { padding-top: var(--space-12); }
.section--alt, .band-alt { background: var(--surface-alt); }
.section--alt + .section, .band-alt + .section { padding-top: var(--space-section) !important; }

.anchor { scroll-margin-top: calc(var(--header-h) + 8px); }

.section-intro {
  max-width: 760px;
  margin: 0 auto var(--space-8);
  text-align: center;
}
.section-intro:last-child { margin-bottom: 0; }
.section-intro p { font-size: var(--fs-body-lg); line-height: 1.6; }
.section-intro > :last-child { margin-bottom: 0; }
.section-intro.prose { max-width: 760px; }

/* Farbbänder – per Seiten-Header „class: band-brand | band-alt | band-dark“ */
.band-brand {
  background-color: var(--brand-strong);
  background-image: var(--plus-pattern-on-brand);
  background-size: 48px 48px;
  color: var(--on-brand);
}
.band-dark { background: var(--surface-inverse); color: var(--on-inverse); }
.band-brand h1, .band-brand h2, .band-brand h3, .band-brand h4,
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: inherit; }
.band-brand a:not(.button), .band-dark a:not(.button) { color: inherit; }
.band-brand .button, .band-dark .button { border-color: var(--surface); color: var(--surface); }
.band-brand .button:hover, .band-dark .button:hover { background: var(--surface); color: var(--brand-strong); }
.band-brand .button.primary, .band-dark .button.primary { background: var(--surface); color: var(--brand-strong); }
.band-brand .button.primary:hover, .band-dark .button.primary:hover { background: var(--brand-tint); border-color: var(--brand-tint); }
.band-brand :focus-visible, .band-dark :focus-visible { outline-color: var(--surface); }
.band-brand .section-intro > h2:first-child::before,
.band-dark .section-intro > h2:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M10 4h4v6h6v4h-6v6h-4v-6H4v-4h6z' fill='%2300668C'/%3E%3C/svg%3E");
}
.band-brand .feature, .band-dark .feature { color: var(--ink); }
.band-brand .feature a:not(.button), .band-dark .feature a:not(.button) { color: var(--brand); }
.band-brand .feature h3, .band-dark .feature h3 { color: var(--ink); }

/* Features / Leistungen – Karten wie auf telemarkfest.de (.card) */
.feature-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt); }
.feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature__body { display: flex; flex-direction: column; flex: 1; padding: var(--card-pad); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.4rem;
}
.feature__icon .plus-mark { width: 22px; height: 22px; }
.feature__title { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.18; }
.feature__link { color: inherit; text-decoration: none; }
.feature__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature__link:hover { color: inherit; text-decoration: none; }
.feature:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.feature__link:focus-visible { outline: none; }
.feature-content { display: flex; flex-direction: column; flex: 1; }
.feature-content p { margin: 0 0 .8em; font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }
.feature-content .more-link { margin-top: auto; padding-top: 4px; align-self: flex-start; color: var(--brand); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.feature:hover .more-link::after { transform: translateX(4px); }

/* Sponsoren – Logo-Karten wie auf telemarkfest.de */
.sponsors { background: var(--surface-alt); }
.sponsor-items {
  list-style: none;
  margin: 0 auto; padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.sponsor {
  display: grid; place-items: center;
  min-height: 200px;
  padding: 28px 36px;
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.sponsor a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.sponsor img { height: 130px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.sponsor:hover img { filter: none; opacity: 1; }
.sponsor__name { font-family: var(--font-display); font-size: var(--fs-h2); text-transform: uppercase; color: var(--ink); text-align: center; }

/* Kacheln (Portfolio) */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-6);
}
.tile { margin: 0; }
.tile__link { display: block; color: var(--ink); text-decoration: none; }
.tile__image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--brand-tint) var(--plus-pattern-light) center / 48px 48px;
  background-size: cover;
  background-position: center;
}
.tile__plus {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 126, 173, .88);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.tile__plus::before { content: ""; width: 56px; height: 56px; background: var(--plus-mark) center / contain no-repeat; filter: brightness(0) invert(1); }
.tile__link:hover .tile__plus, .tile__link:focus-visible .tile__plus { opacity: 1; }
.tile__title { display: block; margin-top: var(--space-3); font-family: var(--font-display); font-size: var(--fs-h2); text-transform: uppercase; line-height: 1.2; }
.tile__link:hover .tile__title { color: var(--brand); }
.tile__desc { margin-top: var(--space-2); color: var(--ink-muted); }

/* Dialog */
.modal {
  width: min(760px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100vh - 64px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
}
.modal::backdrop { background: rgba(61, 61, 63, .72); }
.modal__body { position: relative; padding: var(--space-8); }
.modal__body img { display: block; width: 100%; margin-bottom: var(--space-6); }
.modal__close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 44px; height: 44px;
  border: 0; background: var(--surface-alt); color: var(--ink);
  font-size: 1.125rem; cursor: pointer;
}
.modal__close:hover { background: var(--brand); color: var(--on-brand); }

/* Preise */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.pricing-item {
  display: flex; flex-direction: column;
  padding: var(--space-8) var(--space-6);
  border: 0;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: center;
}
.pricing-item.is-highlight { box-shadow: 0 0 0 2px var(--brand), var(--shadow-card); }
.pricing-item__name { margin-bottom: var(--space-2); }
.pricing-item__price { font-family: var(--font-display); font-size: var(--fs-display); line-height: 1; color: var(--brand); margin-bottom: var(--space-6); }
.pricing-item__options { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.pricing-item__options li { padding: var(--space-2) 0; border-top: 1px solid var(--border); }
.pricing-item .button { margin-top: auto; }

/* Team */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--space-8) var(--space-6);
}
.member { margin: 0; }
.member__photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: var(--space-4); background: var(--surface-alt); border-radius: var(--radius-media); }
.member__photo--empty { display: flex; align-items: center; justify-content: center; background: var(--brand-tint) var(--plus-pattern-light); }
.member__photo--empty .plus-mark { width: 64px; height: 64px; }
.member__name { margin-bottom: var(--space-1); }
.member__role { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }

/* Zwei Spalten (Kontakt, Formular) */
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
@media (max-width: 899.98px) { .two-col { grid-template-columns: 1fr; gap: var(--space-8); } }
.card { padding: var(--space-6); background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card > :last-child { margin-bottom: 0; }

/* ---------- 8. Seitenkopf & Inhalt ---------- */
.page-header {
  position: relative;
  padding-block: var(--space-12);
  background-color: var(--page-header-bg, var(--surface-alt));
  background-image: var(--plus-pattern-light);
  background-size: 48px 48px;
}
.page-header.has-image {
  display: flex;
  align-items: flex-end;
  min-height: clamp(240px, 36vh, 380px);
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 60%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.page-header__title { margin: 0; line-height: 1.2; }
.page-header__title span {
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.04em 0.24em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.page-header__sub { margin: var(--space-4) 0 0; font-size: var(--fs-body-lg); color: var(--ink-muted); max-width: 60ch; }
.page-header.has-image .page-header__sub { color: var(--on-inverse); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.page-header.has-image .page-header__inner { width: 100%; }

.content-wrapper { padding-block: var(--space-12) var(--space-section); }
.page-header + .content-wrapper, .blog-intro + .content-wrapper { padding-top: var(--space-12); }

/* Blog-Einleitung (Inhalt der Blog-Seite) */
.blog-intro {
  padding-block: var(--space-12);
  background: var(--surface-alt) var(--plus-pattern-light);
  background-size: 48px 48px;
}
.blog-intro__inner .prose > :last-child { margin-bottom: 0; }
.blog-intro h1 { margin-bottom: var(--space-3); }
.blog-intro.has-image {
  background-color: var(--page-header-bg, var(--ink));
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 70%), var(--hero-image);
  background-size: cover;
  background-position: center;
  color: var(--on-inverse);
}
.blog-intro.has-image h1, .blog-intro.has-image h2 { color: var(--on-inverse); }
.blog-intro.has-image a { color: var(--on-inverse); }

/* Inhalt + Seitenleiste */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-12); align-items: start; }
@media (max-width: 959.98px) { .with-sidebar { grid-template-columns: 1fr; } }
.listing.prose { max-width: none; }
.no-sidebar.width-centered .listing { max-width: 72ch; margin-inline: auto; width: 100%; }
.no-sidebar.width-full .post__body { max-width: none; }
.no-sidebar .post__image img { max-height: 480px; object-fit: cover; }

/* Beiträge */
.post { margin: 0 0 var(--space-12); padding-bottom: var(--space-12); border-bottom: 1px solid var(--border); }
.post:last-of-type { border-bottom: 0; }
.post__image { display: block; margin-bottom: var(--space-6); line-height: 0; overflow: hidden; background: var(--surface-alt); border-radius: var(--radius-media); }
.post__image img { width: 100%; transition: transform .4s var(--ease); }
.post--teaser .post__image:hover img { transform: scale(1.02); }
.post__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.post__meta .fa { color: var(--brand); margin-right: 0.25em; }
.post__title { font-size: var(--fs-h1); margin-bottom: var(--space-3); }
.post--full .post__title { font-size: var(--fs-display); }
.post__header { margin-bottom: var(--space-6); }
.post__body { max-width: 72ch; }
.post__body > :last-child { margin-bottom: 0; }

.tags { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.tags a:hover { background: var(--brand); color: var(--on-brand); }

.prev-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-8); }

/* Seitenleiste */
.sidebar { display: grid; gap: var(--space-6); }
.has-sticky-header .sidebar { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
@media (max-width: 959.98px) { .has-sticky-header .sidebar { position: static; } }
.sidebar-content { padding: var(--space-6); background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.sidebar-content > :last-child { margin-bottom: 0; }
.sidebar-title { font-size: var(--fs-h2); margin-bottom: var(--space-4); }
.sidebar-content .button { margin: 0 var(--space-2) var(--space-2) 0; }
.sidebar-content a:not(.button) { color: var(--brand-strong); }
.sidebar-content .tags a { color: var(--brand-strong); }
.sidebar-content .tags a:hover { color: var(--on-brand); }

.archives { list-style: none; margin: 0; padding: 0; }
.archives li { border-bottom: 1px solid var(--border); }
.archives li:last-child { border-bottom: 0; }
.archives a { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; text-decoration: none; font-weight: 600; }
.archive_count { min-width: 2em; text-align: center; padding: 0 6px; background: var(--surface-alt); color: var(--ink-muted); font-size: var(--fs-caption); line-height: 1.8; }

/* Breadcrumbs & Pagination (Plugins) */
#breadcrumbs, .breadcrumbs { padding-top: var(--space-6); font-size: var(--fs-label); color: var(--ink-muted); }
#breadcrumbs a { color: var(--brand-strong); }
#breadcrumbs .fa { margin: 0 0.4em; font-size: 0.75em; }

ul.pagination { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: var(--space-8) 0 0; }
ul.pagination li a, ul.pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
ul.pagination li a:hover { border-color: var(--brand); color: var(--brand); }
ul.pagination li.active span, ul.pagination li span.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Suche */
.simplesearch .search-box { max-width: 520px; margin-bottom: var(--space-6); }
.search-summary { color: var(--ink-muted); }
.search-results > * { padding-block: var(--space-6); border-bottom: 1px solid var(--border); }

/* Fehlerseite */
.error-page { text-align: center; }
.error-page__code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--brand-tint); margin: 0; }
.error-page .prose { margin-inline: auto; }

/* ---------- 9. Formulare ---------- */
label, .form-label { display: block; margin-bottom: var(--space-2); font-size: var(--fs-label); font-weight: 600; color: var(--ink); }
.form-label .required, .required { color: var(--danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="password"], input[type="date"], input[type="datetime-local"], input[type="search"],
select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 18px; height: 18px; }
::placeholder { color: var(--ink-muted); opacity: 1; }

.form-field { margin-bottom: var(--space-6); }
.form-field .checkboxes label, .form-field .radio label { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 400; font-size: var(--fs-body); }
.form-errors, .form-field.has-errors .form-errors { color: var(--danger); font-size: var(--fs-label); margin-top: var(--space-1); }
.buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Hinweise (notices-Plugin) */
.notices { padding: var(--space-4) var(--space-6); margin: var(--space-6) 0; background: var(--brand-tint); color: var(--ink); border-radius: var(--radius-sm); }
.notices p { margin: 0; }
.notices.green { background: #E7F3EC; }
.notices.green::before { content: "✓ "; color: var(--success); font-weight: 700; }
.notices.yellow { background: #FBF3E2; }
.notices.yellow::before { content: "! "; color: var(--warning); font-weight: 700; }
.notices.red { background: #FBEAEA; }
.notices.red::before { content: "× "; color: var(--danger); font-weight: 700; }
.notices.blue { background: var(--brand-tint); }

/* OpenCalendar
   Die Plugin- und Kalender-Stylesheets laden nach diesem Stylesheet, deshalb die höhere
   Spezifität (.oc-root.opencalendar). Das Theme ist hell, auch data-theme="auto" bleibt hell. */
.opencalendar { margin-block: var(--space-6); }
html .opencalendar.oc-root,
html .opencalendar.oc-root[data-theme] {
  --oc-bg: var(--surface);
  --oc-surface: var(--surface-alt);
  --oc-text: var(--ink);
  --oc-muted: var(--ink-muted);
  --oc-border: var(--border);
  --oc-accent: var(--brand);
  --oc-danger: var(--danger);
  --oc-radius: var(--radius-card);
  --oc-shadow: var(--shadow-card-hover);
  --oc-font: var(--font-sans);
  padding: var(--card-pad);
  border: 0;
  box-shadow: var(--shadow-card);
}
.oc-root.opencalendar .oc-filters select,
.oc-root.opencalendar .oc-filters input { border-radius: var(--radius-sm); font: inherit; }

/* Terminliste */
.oc-root.opencalendar .oc-list__group { margin: var(--space-6) 0 var(--space-2); font-size: var(--fs-h2); color: var(--ink); }
.oc-root.opencalendar .oc-list > .oc-list__group:first-child { margin-top: 0; }
.oc-root.opencalendar .oc-list__items { padding: 0; gap: 0; }
.oc-root.opencalendar .oc-list__item { margin: 0; background: none; border-left: 0; border-radius: 0; }
.oc-root.opencalendar .oc-list__item + .oc-list__item { border-top: 1px solid var(--border); }
.oc-root.opencalendar .oc-list__button {
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-media);
  font: inherit;
  transition: background-color .15s var(--ease);
}
.oc-root.opencalendar .oc-list__button:hover { background: var(--brand-tint); }
.oc-root.opencalendar .oc-list__button::after {
  content: "→";
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 1.25rem;
  transition: transform .2s var(--ease);
}
.oc-root.opencalendar .oc-list__button:hover::after { transform: translateX(4px); }
/* Das Emoji des Plugins weicht dem Icon im hellblauen Kreis (wie .feature__icon) */
.oc-root.opencalendar .oc-list__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin: 0;
  border-radius: 50%;
  background: var(--brand-tint);
  font-size: 0;
}
.oc-root.opencalendar .oc-list__icon::before {
  content: "\f073";
  font: normal 1.125rem/1 FontAwesome;
  color: var(--brand);
}
.oc-root.opencalendar .oc-list__button:hover .oc-list__icon { background: var(--surface); }
.oc-root.opencalendar .oc-list__when { font-size: var(--fs-label); font-weight: 600; color: var(--brand-strong); }
.oc-root.opencalendar .oc-list__title { font-size: var(--fs-body-lg); font-weight: 700; color: var(--ink); }
.oc-root.opencalendar .oc-list__location { font-size: 0.9375rem; color: var(--ink-muted); }

/* Kalender (Bibliothek Event Calendar) */
.oc-root.opencalendar .ec {
  --ec-border-color: var(--border);
  --ec-button-text-color: var(--ink);
  --ec-button-border-color: var(--border);
  --ec-button-active-bg-color: var(--brand);
  --ec-button-active-border-color: var(--brand);
  --ec-button-active-text-color: var(--on-brand);
  --ec-today-bg-color: var(--brand-tint);
  --ec-highlight-color: var(--surface-alt);
  --ec-event-bg-color: var(--brand);
  --ec-event-text-color: var(--on-brand);
  --ec-now-indicator-color: var(--danger);
}
.oc-root.opencalendar .ec-toolbar { flex-wrap: wrap; gap: var(--space-3); }
.oc-root.opencalendar .ec-title { font-size: var(--fs-h2); }
.oc-root.opencalendar .ec-button {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.oc-root.opencalendar .ec-button:disabled { color: var(--ink-muted); opacity: .6; }
.oc-root.opencalendar .ec-main { border: 1px solid var(--border); border-radius: var(--radius-media); overflow: hidden; }
.oc-root.opencalendar .ec-header { background: var(--surface-alt); }
.oc-root.opencalendar .ec-col-head {
  padding-block: var(--space-2);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.oc-root.opencalendar .ec-day-head { font-size: var(--fs-label); }
.oc-root.opencalendar .ec-day.ec-today .ec-day-head time { font-weight: 700; color: var(--brand-strong); }
/* Die Terminfarbe setzt das Plugin als Inline-Stil, daher !important */
.oc-root.opencalendar .ec:not(.ec-list) .ec-event {
  padding: 2px 6px;
  border-radius: var(--radius-md);
  background-color: var(--brand) !important;
  box-shadow: none;
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
}
.oc-root.opencalendar .ec:not(.ec-list) .ec-event:hover { background-color: var(--brand-strong) !important; }
.oc-root.opencalendar .ec-event-tag { background-color: var(--brand) !important; }
.oc-root.opencalendar .ec-event-title { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.oc-root.opencalendar .ec-event:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 719.98px) {
  .oc-root.opencalendar .ec-toolbar { justify-content: center; }
  .oc-root.opencalendar .ec-center { order: -1; width: 100%; justify-content: center; }
}

/* Popup */
.oc-root.opencalendar .oc-modal__dialog { padding: var(--card-pad); border-radius: var(--radius-card); }
.oc-root.opencalendar .oc-modal__title { margin: 0 var(--space-8) var(--space-4) 0; font-size: var(--fs-h2); }
.oc-root.opencalendar .oc-modal__close {
  top: var(--space-2);
  right: var(--space-2);
  width: 44px; height: 44px;
  border-radius: 50%;
  line-height: 1;
}
.oc-root.opencalendar .oc-modal__close:hover { background: var(--brand-tint); color: var(--brand-strong); }
.oc-root.opencalendar .oc-modal__meta > div { grid-template-columns: 5rem 1fr; }
.oc-root.opencalendar .oc-modal__meta dt {
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink-muted);
}
.oc-root.opencalendar .oc-modal__meta dd { font-weight: 600; }
.oc-root.opencalendar .oc-modal__description { padding-top: var(--space-4); border-top: 1px solid var(--border); }
.oc-root.opencalendar .oc-modal__url { margin: var(--space-3) 0 0; }
.oc-modal__meta div:has([data-oc-field="organizer"]),
.oc-modal__meta div:has([data-oc-field="calendar"]),
.oc-modal__meta div:has([data-oc-field="categories"]) { display: none; }
.oc-modal__description a { text-decoration: underline; overflow-wrap: anywhere; }

/* Abo-Links */
.oc-root.opencalendar .oc-subscribe { padding-inline: 0; }
.oc-root.opencalendar .oc-subscribe__link,
.oc-root.opencalendar .oc-subscribe__copy { border-radius: var(--radius-sm); }

/* ---------- 10. Fußzeile (Aufbau wie im Original) ---------- */
.site-footer {
  background: #333;
  color: #ccc;
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8) var(--space-12);
  padding-block: var(--space-12) var(--space-8);
}
@media (max-width: 719.98px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: var(--on-inverse); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--brand-on-inverse); }
.site-footer__logo { display: inline-block; line-height: 0; margin-bottom: var(--space-4); }
.site-footer__logo img { width: 100%; max-width: 300px; }
.site-footer__brand p { max-width: 52ch; }
.site-footer__title { font-size: var(--fs-h2); color: var(--on-inverse); margin-bottom: var(--space-3); }
.site-footer address { font-style: normal; margin-bottom: var(--space-4); }
.site-footer address span { display: block; }
.site-footer strong { color: var(--on-inverse); }
.site-footer .social-icons { margin-top: var(--space-4); }
.site-footer .social-icons a { border-color: rgba(255, 255, 255, .3); color: var(--on-inverse); }
.site-footer .social-icons a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); text-decoration: none; }

.site-footer__bar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(204, 204, 204, .35);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: var(--fs-label);
}
.footer-copyright { margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-menu li + li::before { content: "/"; margin: 0 0.6rem; color: #999; }

/* ---------- 11. Sanftes Einblenden (wie telemarkfest3: .fx-reveal, Schalter effects.reveal) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes reveal-in { from { opacity: 0; transform: translateY(28px); } }
    .fx-reveal .section-intro,
    .fx-reveal .feature,
    .fx-reveal .sponsor,
    .fx-reveal .tile,
    .fx-reveal .member,
    .fx-reveal .pricing-item,
    .fx-reveal .post {
      animation: reveal-in ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* ---------- 12. Druck ---------- */
@media print {
  .site-header, .nav-toggle, .hero__arrow, .hero__dots, .sidebar, .site-footer__grid nav, .skip-link { display: none !important; }
  .hero__slide:not(.is-active) { display: none; }
  body { color: #000; }
  a { color: #000; }
}
