/* ==========================================================
   Thunfest – main.css
   Design-Tokens kommen aus :root via Customizer (functions.php).
   ========================================================== */

:root {
  --tf-orange:       #F07828;
  --tf-orange-dark:  #C83800;
  --tf-orange-warm:  #F5C155;
  --tf-cream:        #FFF8F0;
  --tf-brown:        #1A0A00;
  --tf-brown-mid:    #5A3A28;
  --tf-muted:        #6b5d54; /* AA-konformer Grauton für Labels auf hellem Grund */
  --tf-white:        #ffffff;
  --tf-nav-h:        88px;
  --tf-pad-x:        clamp(24px, 5.5vw, 80px);
  --tf-section-py:   clamp(56px, 7vw, 96px);
  --tf-max-w:        1440px;
  --tf-radius:       4px;
  --tf-btn-radius:   8px; /* Einheitlicher Button-Radius (Theme + Nav + Plugin-Formulare) */
  --tf-shadow-sm:    0 1px 3px rgba(26,10,0,.06), 0 1px 2px rgba(26,10,0,.04);
  --tf-shadow-md:    0 4px 16px rgba(26,10,0,.08), 0 2px 6px rgba(26,10,0,.04);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--tf-cream);
  color: var(--tf-brown);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Section ── */
.tf-section { padding: var(--tf-section-py) 0; }
.tf-section__inner {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x);
}
.tf-heading {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
.tf-label {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tf-orange);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Accessibility ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
/* Sichtbarer Tastatur-Fokus (WCAG 2.4.7). :where() = 0 Spezifität, leicht überschreibbar. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--tf-orange);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Heller Fokus auf dunklen/orangen Flächen für ausreichenden Kontrast */
.tf-hero :focus-visible,
.tf-jubilee :focus-visible,
.tf-nav:not(.tf-nav--scrolled) :focus-visible {
  outline-color: #fff;
}

/* ── Buttons ── */
.tf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--tf-btn-radius);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.tf-btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--tf-shadow-md); }
.tf-btn:active { transform: translateY(0); }
.tf-btn--primary { background: var(--tf-orange); color: #fff; }
.tf-btn--white   { background: #fff; color: var(--tf-orange-dark); }
.tf-btn--ghost   { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); padding: 12px 36px; backdrop-filter: blur(8px); }
.tf-btn--outline { border: 1.5px solid var(--tf-orange); color: var(--tf-orange); background: transparent; padding: 12px 36px; }

/* ──────────────────────────────────────────────────
   NAV  (nur Startseite)
────────────────────────────────────────────────── */
.tf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  /* Im Homescreen-/Web-App-Modus rückt die Leiste unter den Notch,
     der Hintergrund füllt den Statusleisten-Bereich mit. Im Browser = 0. */
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

/* WP-Admin-Bar nicht über die Theme-Nav legen lassen */
body.admin-bar .tf-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .tf-nav { top: 46px; }
}

/* Transparent über dem Hero */
.tf-nav__inner {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x);
  height: var(--tf-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Glassmorphism beim Scrollen */
.tf-nav--scrolled {
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(240,120,40,.1), var(--tf-shadow-sm);
}

/* Brand */
.tf-nav__brand { display: flex; align-items: center; }
.tf-nav__brand .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.tf-nav--scrolled .tf-nav__brand .custom-logo-link {
  opacity: 1;
}
.tf-nav__brand .custom-logo {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: none;
  transition: filter .25s ease;
}
.tf-nav--scrolled .tf-nav__brand .custom-logo { filter: none; }
.tf-nav__name {
  font-size: 15px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.95);
  transition: color .25s;
}
.tf-nav--scrolled .tf-nav__name { color: var(--tf-brown); }

/* Links */
.tf-nav__links { display: flex; align-items: center; gap: 28px; }
.tf-nav__menu  { display: flex; align-items: center; gap: 8px; }
.tf-nav__menu li a {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.85);
  transition: color .2s;
  padding: 6px 10px;
  border-radius: var(--tf-radius);
}
.tf-nav__menu li a:hover { color: #fff; background: rgba(255,255,255,.12); }
.tf-nav--scrolled .tf-nav__menu li a { color: var(--tf-brown-mid); }
.tf-nav--scrolled .tf-nav__menu li a:hover { color: var(--tf-orange); background: rgba(240,120,40,.07); }

/* ── Dropdown / Untermenüs (Desktop) ── */
.tf-nav__menu .menu-item-has-children { position: relative; }
.tf-nav__menu .menu-item-has-children > a {
  display: inline-flex; align-items: center; gap: 6px;
}
.tf-nav__menu .menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease; opacity: .7;
}
.tf-nav__menu .menu-item-has-children:hover > a::after,
.tf-nav__menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg) translateY(2px);
}
.tf-nav__menu .sub-menu {
  position: absolute; top: calc(100% + 12px); left: 0;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 210px; padding: 8px;
  background: var(--tf-cream);
  border: 1px solid rgba(26,10,0,.06);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
/* unsichtbare Brücke, damit der Hover zwischen Parent und Panel nicht abreisst */
.tf-nav__menu .sub-menu::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.tf-nav__menu .menu-item-has-children:hover > .sub-menu,
.tf-nav__menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.tf-nav__menu .sub-menu li { width: 100%; }
.tf-nav__menu .sub-menu li a,
.tf-nav--scrolled .tf-nav__menu .sub-menu li a {
  display: block; white-space: nowrap;
  color: var(--tf-brown); font-size: 11px; padding: 9px 12px;
}
.tf-nav__menu .sub-menu li a:hover,
.tf-nav--scrolled .tf-nav__menu .sub-menu li a:hover {
  color: var(--tf-orange); background: rgba(240,120,40,.08);
}

/* Ticket Button */
.tf-nav__ticket-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 9px 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--tf-btn-radius);
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.tf-nav__ticket-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.25); }
.tf-nav--scrolled .tf-nav__ticket-btn {
  background: var(--tf-orange);
  border-color: var(--tf-orange);
  color: #fff;
}
.tf-nav--scrolled .tf-nav__ticket-btn:hover {
  background: var(--tf-orange-dark);
  border-color: var(--tf-orange-dark);
}

/* ── PRESENTING PARTNER (Nav) ── */
.tf-nav__partner-sep {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.3);
  margin: 0 14px;
  opacity: 0;
  transition: opacity .25s ease;
}
.tf-nav--scrolled .tf-nav__partner-sep {
  background: rgba(26,10,0,.15);
  opacity: 1;
}
.tf-nav__partner-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  opacity: 0;
  transition: opacity .25s ease;
}
.tf-nav--scrolled .tf-nav__partner-wrap { opacity: 1; }
.tf-nav__partner-label {
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tf-brown-mid);
  opacity: .5;
  line-height: 1;
}
.tf-nav__partner-link {
  display: flex;
  align-items: center;
}
.tf-nav__partner-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
/* Standalone img (kein Link) */
img.tf-nav__partner-logo {
  display: block;
}


/* Burger */
.tf-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--tf-radius);
}
.tf-nav__burger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: background .25s;
}
.tf-nav--scrolled .tf-nav__burger span { background: var(--tf-brown); }

/* Mobile-Menü */
.tf-mobile-menu {
  background: rgba(255,248,240,.96);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  padding: 20px var(--tf-pad-x) 28px;
  border-top: 1px solid rgba(240,120,40,.12);
  box-shadow: 0 8px 24px rgba(26,10,0,.08);
}
.tf-mobile-menu__list { display: flex; flex-direction: column; }
.tf-mobile-menu__list li a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tf-brown);
  border-bottom: 1px solid rgba(240,120,40,.08);
}
.tf-mobile-menu__list li a:hover { color: var(--tf-orange); }
/* Mobile Untermenüs – eingerückte Gruppe */
.tf-mobile-menu__list .sub-menu {
  padding-left: 16px;
  margin: 0 0 6px;
  border-left: 2px solid rgba(240,120,40,.25);
}
.tf-mobile-menu__list .sub-menu li a {
  padding: 11px 0;
  font-size: 13px; font-weight: 500;
  letter-spacing: .02em; text-transform: none;
  color: var(--tf-brown-mid);
  border-bottom: 1px solid rgba(240,120,40,.06);
}
.tf-mobile-menu__list .sub-menu li a:hover { color: var(--tf-orange); }
.tf-mobile-menu__ticket {
  display: block;
  margin-top: 20px;
  text-align: center;
  padding: 14px;
  background: var(--tf-orange);
  color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--tf-radius);
}

/* ──────────────────────────────────────────────────
   HERO
────────────────────────────────────────────────── */
.tf-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--tf-nav-h);
}
.tf-hero__gradient {
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 120% 90% at 50% 40%,
    var(--tf-orange-warm) 0%,
    var(--tf-orange) 30%,
    #D84810 60%,
    #A82800 100%
  );
}
.tf-hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.tf-hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 120% 90% at 50% 40%,
    rgba(245,193,85,.65) 0%,
    rgba(240,120,40,.72) 30%,
    rgba(216,72,16,.82) 60%,
    rgba(168,40,0,.90) 100%
  );
}
.tf-hero__noise {
  display: none;
}
.tf-hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.tf-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--tf-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}
.tf-hero__dates {
  font-size: 11px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tf-hero__dates::before,
.tf-hero__dates::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,.35);
}
.tf-hero__title { color: #fff; line-height: .95; }
.tf-hero__edition {
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 900;
  letter-spacing: -.04em;
  display: block;
  line-height: .9;
}
.tf-hero__name {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
  opacity: .92;
}
.tf-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 44px;
}
.tf-hero__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
}
/* ── HERO-COUNTDOWN ── */
.tf-countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 4px;
}
.tf-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tf-countdown__num {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tf-countdown__lbl {
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.tf-countdown--live .tf-countdown__num { color: var(--tf-orange-warm); }
@media (max-width: 480px) {
  .tf-countdown { gap: 8px; }
  .tf-countdown__unit { min-width: 62px; padding: 10px 8px; }
}
.tf-hero__logo-img {
  max-height: clamp(80px, 14vw, 160px);
  max-width: clamp(240px, 55vw, 600px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  drop-shadow: 0 2px 24px rgba(0,0,0,.18);
}
/* ── PRESENTING PARTNER (Hero) ── */
.tf-hero__presenting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}
.tf-hero__presenting-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
  color: #fff;
}
.tf-hero__presenting-logo {
  max-height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity .2s;
}
.tf-hero__presenting-link:hover .tf-hero__presenting-logo { opacity: 1; }

.tf-hero__tagline {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
}
.tf-hero__wave {
  position: absolute;
  bottom: -2px; left: -1px;
  width: calc(100% + 2px);
  display: block;
  fill: var(--tf-cream);
}
.tf-hero__scroll-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .5;
  animation: tf-bounce 2.4s ease-in-out infinite;
}
.tf-hero__scroll-hint span {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}
.tf-hero__scroll-hint svg { fill: #fff; }
@keyframes tf-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ──────────────────────────────────────────────────
   HERO-ANIMATION (nur Startseite)
   – dezentes, gestaffeltes Einblenden der Inhalte beim Laden
────────────────────────────────────────────────── */
.tf-hero__content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: tf-hero-rise .7s cubic-bezier(.16, 1, .3, 1) forwards;
}
.tf-hero__content > *:nth-child(1) { animation-delay: .1s; }
.tf-hero__content > *:nth-child(2) { animation-delay: .2s; }
.tf-hero__content > *:nth-child(3) { animation-delay: .3s; }
.tf-hero__content > *:nth-child(4) { animation-delay: .4s; }
.tf-hero__content > *:nth-child(5) { animation-delay: .5s; }
.tf-hero__content > *:nth-child(n+6) { animation-delay: .6s; }
@keyframes tf-hero-rise {
  to { opacity: 1; transform: none; }
}

/* Glas-Elemente (backdrop-filter) NICHT animieren – sonst „springt" der
   Blur-Hintergrund von Countdown-Kacheln und Ghost-Button verzögert rein. */
.tf-hero__content > .tf-countdown,
.tf-hero__content > .tf-hero__actions {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .tf-hero__content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── FACTS ── */
.tf-facts {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--tf-orange);
  background: var(--tf-cream);
}
.tf-facts__item {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(240,120,40,.15);
  text-align: center;
}
.tf-facts__item:last-child { border-right: none; }
.tf-facts__number {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  color: var(--tf-orange);
  letter-spacing: -.02em;
}
.tf-facts__label {
  font-size: 10px;
  color: var(--tf-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 600;
}

/* ── JUBILÄUM ── */
.tf-jubilee {
  position: relative;
  background: var(--tf-brown);
  color: #fff;
  padding: var(--tf-section-py) 0;
  overflow: hidden;
}
.tf-jubilee::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.tf-jubilee__inner {
  position: relative;
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.tf-jubilee__eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tf-orange-warm);
  font-weight: 700;
  margin-bottom: 14px;
}
.tf-jubilee__title {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 28px;
}
.tf-jubilee__logo { margin: 0 0 28px; }
.tf-jubilee__logo img { width: clamp(220px, 28vw, 360px); height: auto; }
.tf-jubilee__text {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255,255,255,.78);
  max-width: 42ch;
}
.tf-jubilee__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.tf-jubilee__media { margin: 36px 0 0; }
.tf-jubilee__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--tf-radius);
}
.tf-jubilee__caption {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  margin-top: 10px;
}
.tf-jubilee__timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: relative;
}
.tf-jubilee__timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--tf-orange), rgba(240,120,40,.12));
}
.tf-jubilee__milestone {
  position: relative;
  padding: 0 0 28px 40px;
}
.tf-jubilee__milestone:last-child { padding-bottom: 0; }
.tf-jubilee__milestone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tf-orange);
  border: 3px solid var(--tf-brown);
  box-shadow: 0 0 0 2px var(--tf-orange);
}
.tf-jubilee__year {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--tf-orange-warm);
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: 7px;
}
.tf-jubilee__ms-text {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}

/* ── GESCHICHTE / TIMELINE (Pattern) ── */
.tf-history {
  background: var(--tf-brown);
  color: #fff;
  border-radius: 18px;
  padding: clamp(28px, 5vw, 56px);
  margin: 32px 0;
}
.tf-history__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tf-orange-warm);
  margin: 0 0 8px;
}
.tf-history__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 16px;
}
.tf-history__intro {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 60ch;
  margin: 0 0 32px;
}
.tf-history__media { margin: 0 0 36px; }
.tf-history__media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.tf-history__media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.tf-history__timeline { position: relative; padding: 6px 0; }
.tf-history__timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--tf-orange), rgba(240,120,40,.12));
}
.tf-history__milestone {
  position: relative;
  padding: 0 0 28px 40px;
}
.tf-history__milestone:last-child { padding-bottom: 0; }
.tf-history__milestone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tf-orange);
  border: 3px solid var(--tf-brown);
  box-shadow: 0 0 0 2px var(--tf-orange);
}
.tf-history__year {
  font-size: 20px;
  font-weight: 900;
  color: var(--tf-orange-warm);
  letter-spacing: -.01em;
  line-height: 1;
  margin: 0 0 6px;
}
.tf-history__ms-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  margin: 0;
}

/* ── LINEUP ── */
.tf-lineup { background: var(--tf-cream); padding: var(--tf-section-py) 0; }
.tf-lineup__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.tf-lineup__filter { display: flex; gap: 6px; flex-wrap: wrap; }
.tf-filter-btn {
  padding: 8px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--tf-muted);
  border: 1px solid #e8e0d8;
  border-radius: var(--tf-radius);
  transition: all .18s ease;
  font-family: inherit;
}
.tf-filter-btn--active,
.tf-filter-btn:hover {
  background: var(--tf-orange);
  color: #fff;
  border-color: var(--tf-orange);
}
.tf-lineup__act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(240,120,40,.1);
  gap: 20px;
  transition: background .18s;
}
.tf-lineup__act:hover { background: rgba(240,120,40,.03); }
.tf-lineup__act--featured:first-child { background: rgba(240,120,40,.05); }
.tf-lineup__act-bar {
  width: 3px;
  min-height: 44px;
  background: var(--tf-orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.tf-lineup__act-name {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
  display: block;
}
.tf-lineup__act-genre {
  font-size: 11px;
  color: var(--tf-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
  font-weight: 600;
}
.tf-lineup__act-meta { text-align: right; flex-shrink: 0; }
.tf-lineup__act-time {
  font-size: 13px;
  color: var(--tf-orange);
  font-weight: 800;
  letter-spacing: .1em;
  display: block;
}
.tf-lineup__act-stage {
  font-size: 11px;
  color: var(--tf-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}
.tf-lineup__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
}
.tf-lineup__card {
  padding: 22px 20px;
  background: rgba(240,120,40,.04);
  border-left: 3px solid var(--tf-orange);
  transition: background .18s;
}
.tf-lineup__card:hover { background: rgba(240,120,40,.08); }
.tf-lineup__card-name { font-size: 20px; font-weight: 800; display: block; letter-spacing: -.01em; }
.tf-lineup__card-meta {
  font-size: 11px;
  color: var(--tf-orange);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
}

/* ── BÜHNEN ── */
.tf-buehnen {
  background: #fff;
  padding: var(--tf-section-py) 0;
  border-top: 1px solid rgba(240,120,40,.1);
}
.tf-buehnen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tf-buehnen__card {
  padding: 28px 24px;
  background: var(--tf-cream);
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 0 0 var(--tf-radius) var(--tf-radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tf-buehnen__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tf-shadow-md);
}
.tf-buehnen__card-type {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
}
.tf-buehnen__card-name { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.tf-buehnen__card-desc { font-size: 13px; color: var(--tf-muted); line-height: 1.65; margin-top: 4px; }

/* ── TICKETS ── */
.tf-tickets {
  background: linear-gradient(135deg, var(--tf-orange) 0%, var(--tf-orange-dark) 100%);
  padding: var(--tf-section-py) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tf-tickets::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.tf-tickets__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.tf-tickets__heading {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 24px;
}
.tf-tickets__desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
}
.tf-tickets__tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255,255,255,.1);
  border-left: 3px solid rgba(255,255,255,.35);
  border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
  margin-bottom: 12px;
  transition: background .18s;
}
.tf-tickets__tier:hover { background: rgba(255,255,255,.16); }
.tf-tickets__tier-label { font-size: 15px; font-weight: 700; display: block; }
.tf-tickets__tier-note { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; display: block; }
.tf-tickets__tier-price { font-size: 28px; font-weight: 900; letter-spacing: -.02em; }

/* ── VEREIN ── */
.tf-verein { background: var(--tf-cream); padding: var(--tf-section-py) 0; }
.tf-verein__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.tf-verein__text p {
  font-size: 16px;
  color: var(--tf-brown-mid);
  line-height: 1.85;
  margin-bottom: 18px;
}
.tf-verein__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.tf-verein__stat {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid rgba(240,120,40,.1);
  text-align: center;
  border-radius: var(--tf-radius);
  transition: box-shadow .2s;
}
.tf-verein__stat:hover { box-shadow: var(--tf-shadow-sm); }
.tf-verein__stat-n {
  font-size: 24px;
  font-weight: 900;
  color: var(--tf-orange);
  display: block;
  letter-spacing: -.02em;
}
.tf-verein__stat-l {
  font-size: 10px;
  color: var(--tf-muted);
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
  font-weight: 600;
}

/* ── TEAM / OK-KÖPFE ── */
.tf-team__grid {
  margin-top: 36px;
}
/* Fallback: greift nur, wenn der Block NICHT das native WP-Grid-Layout
   nutzt (is-layout-grid). So bleiben ältere/abweichende Einfügungen sauber,
   während das Pattern WordPress' eigenes Grid-Layout verwendet. */
.tf-team__grid:not(.is-layout-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
/* WP-Flow-Layout setzt vertikale Kind-Margins, die im Grid zu Versatz führen */
.tf-team__grid:not(.is-layout-grid) > * {
  margin-block: 0;
}

/* Foto: einheitliche warme Duotone-Tönung (Marken-Orange), beim Hover farbig.
   Vereinheitlicht uneinheitliche OK-Fotos zu einem geschlossenen Bild. */
.tf-team__photo {
  position: relative;
  margin: 0 0 12px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--tf-orange);
}
.tf-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.02);
  mix-blend-mode: luminosity;
  opacity: .92;
  transition: filter .35s, opacity .35s, transform .4s;
}
.tf-team__member:hover .tf-team__photo img {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
  transform: scale(1.03);
}
/* Karten ohne Foto bekommen einen dezenten Platzhalter im gleichen 4:5-Format,
   damit das Raster auch halb gefüllt gleichmässig aussieht. Verschwindet
   automatisch, sobald ein Bild eingesetzt wird. */
.tf-team__member:not(:has(.tf-team__photo))::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--tf-orange);
  opacity: .12;
}
/* Spezifität 0,3,0 (drei Klassen), damit diese Regeln die später
   definierte globale Regel ".tf-page__content .entry-content p
   { margin-bottom: 1.2em }" sicher schlagen — sonst zu grosse
   Zeilenabstände in den Karten. */
.tf-team__grid .tf-team__member .tf-team__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--tf-brown);
  margin: 0;
}
.tf-team__grid .tf-team__member .tf-team__role {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tf-orange);
  letter-spacing: .02em;
  margin: 3px 0 0;
}
.tf-team__grid .tf-team__member .tf-team__mail {
  font-size: 13px;
  line-height: 1.3;
  margin: 5px 0 0;
}
.tf-team__mail a {
  color: var(--tf-muted);
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.tf-team__mail a:hover {
  color: var(--tf-orange);
  border-bottom-color: var(--tf-orange);
}

/* ── SPONSORS ── */
.tf-sponsors {
  background: #fff;
  padding: var(--tf-section-py) 0;
  border-top: 1px solid rgba(240,120,40,.1);
}
.tf-sponsors__inner {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x);
}
.tf-sponsors__heading {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tf-orange);
  margin-bottom: 28px;
}
.tf-sponsors__grid {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #F0E8E0;
  border-left: 1px solid #F0E8E0;
}
.tf-sponsors__item {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 40px;
  border-right: 1px solid #F0E8E0;
  border-bottom: 1px solid #F0E8E0;
  opacity: .55;
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
  filter: grayscale(1);
  text-decoration: none;
}
.tf-sponsors__item:hover { opacity: 1; filter: none; transform: translateY(-1px); }
.tf-sponsors__logo {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ──────────────────────────────────────────────────
   FOOTER-AREA (frei via Customizer befüllbar, sitzt INNEN
   im dunklen Footer – oberhalb der Brand-/Menu-Spalten)
────────────────────────────────────────────────── */
.tf-footer-area {
  background: transparent;
  padding: 0 0 clamp(32px, 4vw, 56px);
  margin-bottom: clamp(28px, 3.5vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
}
.tf-footer-area__inner {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x);
}
.tf-footer-area__inner > *:first-child { margin-top: 0; }
.tf-footer-area__inner > *:last-child  { margin-bottom: 0; }

/* Helle Text-/Heading-Farben für Inhalte gegen den braunen Footer */
.tf-footer-area__inner :is(p, li, span, div) { color: rgba(255,255,255,.7); }
.tf-footer-area__inner :is(h2, h3, h4, h5, h6, strong, b) { color: #fff; }
.tf-footer-area__inner a {
  color: var(--tf-orange-warm);
  text-decoration: none;
  transition: color .15s;
}
.tf-footer-area__inner a:hover { color: #fff; }

/* Bilder-/Sponsor-Logos: heller Filter + sinnvolle Größenbegrenzung
   damit grosse PNGs/SVGs nicht den Footer sprengen. */
.tf-footer-area__inner img {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .75;
  transition: opacity .2s ease;
  vertical-align: middle;
}
.tf-footer-area__inner a:hover img,
.tf-footer-area__inner img:hover { opacity: 1; }

/* Spezielle Behandlung für das Plugin-Sponsoren-Markup [festival_sponsoren] –
   die Container kommen aus dem Plugin, wir geben hier konsistente Limits. */
.tf-footer-area__inner .fm-sponsors__grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  justify-content: center;
}
.tf-footer-area__inner .fm-sponsors__category-title {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tf-orange-warm);
  margin: 0 0 16px;
}
.tf-footer-area__inner .fm-sponsor { display: inline-flex; align-items: center; }
.tf-footer-area__inner .fm-sponsor__logo {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Überschreibt Plugin-eigene filter-Regeln und macht Logos im dunklen
     Footer hell sichtbar. grayscale(1) invert(1) statt brightness(0)
     invert(1): erhält Abstufungen/Konturen (sonst flache weisse
     Silhouette, z.B. Feldschlösschen wird ein weisser Klumpen). */
  filter: grayscale(1) invert(1) !important;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}
.tf-footer-area__inner .fm-sponsor { opacity: .9; transition: opacity .2s ease; }
.tf-footer-area__inner .fm-sponsor:hover { opacity: 1; transform: translateY(-1px); }

/* Categories mit "small/large" Klassen respektieren */
.tf-footer-area__inner .fm-sponsors__category--small .fm-sponsor__logo {
  max-height: 36px;
  max-width: 120px;
}
.tf-footer-area__inner .fm-sponsors__category--large .fm-sponsor__logo {
  max-height: 64px;
  max-width: 200px;
}

/* Abstand zwischen den Kategorien-Sektionen (für gestapelte Layouts) */
.tf-footer-area__inner .fm-sponsors__category + .fm-sponsors__category {
  margin-top: clamp(24px, 3vw, 40px);
}
.tf-footer-area__inner .fm-sponsors__category {
  text-align: center;
}

/* Footer-Variante (.fm-sponsors--footer) liegt als Flex-ZEILE nebeneinander.
   Der vertikale margin-top oben (für gestapelte Layouts gedacht) würde die
   2.+ Kategorie in der Zeile nach unten schieben -> asymmetrisch. In der
   Zeile daher kein margin-top; Abstand kommt aus dem gap der Flex-Zeile.
   align-items: flex-start hält alle Titel (und damit die Logo-Reihen) auf
   einer Linie. */
.tf-footer-area__inner .fm-sponsors--footer {
  align-items: flex-start;
}
.tf-footer-area__inner .fm-sponsors--footer .fm-sponsors__category + .fm-sponsors__category {
  margin-top: 0;
}

/* Filter-Buttons (bei stil="beide") an dunklen Footer anpassen */
.tf-footer-area__inner .fm-sponsors__filter {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.tf-footer-area__inner .fm-sponsors__filter-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--tf-radius);
  cursor: pointer;
  transition: all .15s;
}
.tf-footer-area__inner .fm-sponsors__filter-btn--active,
.tf-footer-area__inner .fm-sponsors__filter-btn:hover {
  background: var(--tf-orange);
  color: #fff;
  border-color: var(--tf-orange);
}

/* ──────────────────────────────────────────────────
   CALLOUTS (Block-Patterns)
────────────────────────────────────────────────── */
.tf-callout {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 32px);
  margin: 2em 0;
  border-radius: 8px;
  background: rgba(26,10,0,.04);
  border-left: 3px solid var(--tf-brown-mid);
  display: flow-root;
}
.tf-callout > * { margin-top: 0; margin-bottom: .6em; }
.tf-callout > *:last-child { margin-bottom: 0; }
.tf-callout .tf-callout__title,
.tf-callout > h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  margin: 0 0 8px !important;
  color: var(--tf-brown);
  line-height: 1.3 !important;
}
.tf-callout .tf-callout__title::before,
.tf-callout > h4::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.tf-callout p {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: var(--tf-brown-mid);
  margin-bottom: .8em;
}
.tf-callout p:last-child { margin-bottom: 0; }

/* Info – neutral Braun */
.tf-callout--info {
  background: rgba(90,58,40,.06);
  border-left-color: var(--tf-brown-mid);
}
.tf-callout--info .tf-callout__title::before,
.tf-callout--info > h4::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A3A28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}

/* Tipp – Orange */
.tf-callout--tip {
  background: rgba(240,120,40,.07);
  border-left-color: var(--tf-orange);
}
.tf-callout--tip .tf-callout__title,
.tf-callout--tip > h4 { color: var(--tf-orange-dark); }
.tf-callout--tip .tf-callout__title::before,
.tf-callout--tip > h4::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F07828' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 22h4'/><path d='M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2v.3h6v-.3c0-.7.4-1.5 1-2A7 7 0 0 0 12 2z'/></svg>");
}

/* Achtung – Warm-Yellow */
.tf-callout--warning {
  background: rgba(245,193,85,.16);
  border-left-color: #D89224;
}
.tf-callout--warning .tf-callout__title,
.tf-callout--warning > h4 { color: #8a5414; }
.tf-callout--warning .tf-callout__title::before,
.tf-callout--warning > h4::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5414' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}

/* ── CTA-Card (Block-Pattern) ── */
.tf-cta-card {
  position: relative;
  margin: 2.4em 0;
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 40px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tf-orange) 0%, var(--tf-orange-dark) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.tf-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
}
.tf-cta-card .tf-cta-card__title,
.tf-cta-card > h3 {
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
  line-height: 1.15 !important;
  color: #fff !important;
  margin: 0 0 .4em !important;
}
.tf-cta-card .tf-cta-card__text,
.tf-cta-card > p {
  color: rgba(255,255,255,.88) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 0 1.2em !important;
  max-width: 56ch;
}
/* ── Button-Block im Inhalt → Marken-Stil (gefüllt / outline) ── */
.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tf-orange) !important;
  background-image: none !important;
  color: #fff !important;
  border: 1.5px solid var(--tf-orange);
  /* !important, damit ein im Editor manuell gesetzter Radius (Inline-Style)
     die Einheitlichkeit nicht bricht. */
  border-radius: var(--tf-btn-radius) !important;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.entry-content .wp-block-button__link:hover,
.entry-content .wp-element-button:hover {
  background: var(--tf-orange-dark) !important;
  border-color: var(--tf-orange-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--tf-shadow-md);
}
/* Outline-Variante (Block-Stil „Outline") */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--tf-orange) !important;
  border-color: var(--tf-orange);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--tf-orange) !important;
  color: #fff !important;
}

.tf-cta-card .wp-block-buttons { margin-top: 0; }
.tf-cta-card .wp-block-button__link {
  background: #fff !important;
  color: var(--tf-orange-dark) !important;
  border-radius: var(--tf-btn-radius) !important;
  padding: 12px 28px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tf-cta-card .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* ── FAQ-Item (details/summary) ── */
.tf-faq {
  border-bottom: 1px solid rgba(26,10,0,.1);
  padding: 16px 0;
  margin: 0 !important;
}
.tf-faq > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 32px;
  font-size: 17px;
  font-weight: 700;
  color: var(--tf-brown);
  line-height: 1.4;
  transition: color .15s;
}
.tf-faq > summary::-webkit-details-marker { display: none; }
.tf-faq > summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0A00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
  transition: transform .25s ease;
}
.tf-faq[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.tf-faq[open] > summary { color: var(--tf-orange); }
.tf-faq > p,
.tf-faq > div { margin-top: 12px; }

/* ──────────────────────────────────────────────────
   ADS-SLIDER (Werbungen)
────────────────────────────────────────────────── */
.tf-ads-slider {
  position: relative;
  margin: 2.4em 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(26,10,0,.04);
  isolation: isolate;
  /* Standard-Seitenverhältnis für gleichmäßige Höhe */
  aspect-ratio: 16 / 5;
  max-width: 100%;
}

/* „Anzeige"-Label oben links – aus rechtlichen Gründen sinnvoll */
.tf-ads-slider__label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.tf-ads-slider__track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.tf-ads-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.tf-ads-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.tf-ads-slider__link {
  display: block;
  width: 100%;
  height: 100%;
}
.tf-ads-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dot-Indikatoren */
.tf-ads-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tf-ads-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.tf-ads-slider__dot:hover { background: rgba(255,255,255,.7); }
.tf-ads-slider__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* Pause/Play-Toggle */
.tf-ads-slider__toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.tf-ads-slider:hover .tf-ads-slider__toggle,
.tf-ads-slider:focus-within .tf-ads-slider__toggle { opacity: 1; }
.tf-ads-slider__toggle:hover { background: rgba(0,0,0,.7); }
.tf-ads-slider__toggle svg { fill: #fff; display: block; }
.tf-ads-slider__icon-play { display: none; }
.tf-ads-slider[data-paused="true"] .tf-ads-slider__icon-pause { display: none; }
.tf-ads-slider[data-paused="true"] .tf-ads-slider__icon-play { display: block; }
.tf-ads-slider[data-paused="true"] .tf-ads-slider__toggle { opacity: 1; }

/* Responsive: höhere Aspect-Ratio auf Mobile, damit Inhalt nicht zu schmal wird */
@media (max-width: 640px) {
  .tf-ads-slider { aspect-ratio: 4 / 3; }
}

/* Reduced Motion: ohne Übergang, nur Schnitt */
@media (prefers-reduced-motion: reduce) {
  .tf-ads-slider__slide { transition: none; }
}

/* ──────────────────────────────────────────────────
   RELATED PAGES (Cards am Ende der Page)
────────────────────────────────────────────────── */
.tf-page__related {
  background: linear-gradient(180deg, var(--tf-cream) 0%, #fff 100%);
  border-top: 1px solid rgba(26,10,0,.06);
  padding: clamp(48px, 6vw, 88px) 0;
}
.tf-page__related-inner {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x);
}
.tf-page__related-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tf-orange);
  margin-bottom: 28px;
}
.tf-page__related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.tf-page__related-item { margin: 0; padding: 0; }
.tf-page__related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px 24px 22px;
  background: #fff;
  border: 1px solid rgba(26,10,0,.08);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tf-page__related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(26,10,0,.18), 0 2px 6px rgba(26,10,0,.06);
  border-color: rgba(240,120,40,.4);
}
.tf-page__related-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--tf-brown);
  margin: 0;
  padding-right: 24px;
}
.tf-page__related-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tf-brown-mid);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-page__related-arrow {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--tf-orange);
  opacity: .55;
  transition: opacity .2s ease, transform .2s ease;
}
.tf-page__related-card:hover .tf-page__related-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ──────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────── */
.tf-footer {
  background: var(--tf-brown);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}
.tf-footer__inner {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x) 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.tf-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.tf-footer__logo svg { fill: var(--tf-orange); }
.tf-footer__logo span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.tf-footer__logo-img {
  max-height: 48px;
  width: auto;
  height: auto;
}
.tf-footer__brand p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,.45);
}
.tf-footer__col-title {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tf-orange);
  font-weight: 700;
  margin-bottom: 18px;
}
.tf-footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.tf-footer__col-links li a {
  font-size: 14px;
  color: rgba(255,255,255,.4);
  transition: color .15s;
}
.tf-footer__col-links li a:hover { color: rgba(255,255,255,.9); }

/* Footer-Spalten: freier Inhalt aus dem Customizer (Links/Text/HTML) */
.tf-footer__col-content {
  font-size: 14px;
  line-height: 1.95;
  color: rgba(255,255,255,.5);
}
.tf-footer__col-content p { margin: 0 0 10px; }
.tf-footer__col-content p:last-child { margin-bottom: 0; }
.tf-footer__col-content a { color: rgba(255,255,255,.55); transition: color .15s; }
.tf-footer__col-content a:hover { color: rgba(255,255,255,.95); }

/* Footer-Social-Icons */
.tf-footer__social {
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.tf-footer__social li { margin: 0; }
.tf-footer__social a {
  display: inline-flex;
  color: rgba(255,255,255,.55);
  transition: color .15s ease, transform .15s ease;
}
.tf-footer__social a:hover { color: #fff; transform: translateY(-2px); }
.tf-footer__social svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.tf-footer__bottom {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 22px var(--tf-pad-x);
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.tf-footer__bottom span { font-size: 12px; color: rgba(255,255,255,.2); }

/* ──────────────────────────────────────────────────
   BLOCK CONTENT (front-page + innere Seiten)
   WordPress-Standard: normale Blöcke zentriert,
   alignwide / alignfull dürfen ausbrechen.
────────────────────────────────────────────────── */
:root {
  --tf-content-w: 760px;
  --tf-wide-w:    1100px;
}

.entry-content {
  display: flow-root;
}

/* Alle direkten Block-Kinder zentriert mit Padding */
.entry-content > * {
  max-width: var(--tf-content-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tf-pad-x);
  padding-right: var(--tf-pad-x);
  box-sizing: border-box;
}

/* Wide-Blöcke */
.entry-content > .alignwide,
.entry-content > .wp-block-group.alignwide {
  max-width: var(--tf-wide-w);
}

/* Full-Blöcke ohne Seitenabstand */
.entry-content > .alignfull,
.entry-content > .wp-block-group.alignfull {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Basis-Typografie für Rohtext */
.entry-content p   { font-size: 16px; line-height: 1.8; color: var(--tf-brown-mid); margin-bottom: 1.2em; }
.entry-content h1,
.entry-content h2,
.entry-content h3  { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .5em; margin-top: 1.5em; color: var(--tf-brown); }
.entry-content h1  { font-size: clamp(32px, 4vw, 52px); }
.entry-content h2  { font-size: clamp(24px, 3vw, 38px); }
.entry-content h3  { font-size: clamp(18px, 2vw, 26px); }
.entry-content ul,
.entry-content ol  { padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content li  { font-size: 16px; line-height: 1.8; color: var(--tf-brown-mid); }
.entry-content a   { color: var(--tf-orange); text-decoration: underline; }

/* ──────────────────────────────────────────────────
   PAGE (innere Seiten) – State-of-the-Art 2026
────────────────────────────────────────────────── */

/* ── Reading-Progress-Bar ── */
.tf-page__progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}
.tf-page__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tf-orange-warm), var(--tf-orange), var(--tf-orange-dark));
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(240,120,40,.45);
}

/* ── Article shell ── */
.tf-page { background: var(--tf-cream); }

/* ── HERO ── */
.tf-page__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--tf-nav-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(48px, 7vw, 110px);
}

/* Layered background: cream base, warm radial glow, dot pattern, grain */
.tf-page__hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tf-cream);
}
.tf-page__hero-glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 75%;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(245,193,85,.55) 0%, transparent 60%),
    radial-gradient(45% 60% at 15% 10%, rgba(240,120,40,.18) 0%, transparent 65%),
    radial-gradient(90% 70% at 50% -20%, rgba(255,236,210,.85) 0%, transparent 70%);
  filter: blur(0.5px);
}
.tf-page__hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,10,0,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 35%, transparent 80%);
  pointer-events: none;
}
.tf-page__hero-grain {
  position: absolute;
  inset: 0;
  opacity: .35;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1 0 0 0 0 .04 0 0 0 0 0 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.tf-page__hero-inner {
  position: relative;
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: 0 var(--tf-pad-x);
}

/* ── Breadcrumb – schwebende Pill ── */
.tf-page__breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(26,10,0,.08);
  border-radius: 999px;
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 2px rgba(26,10,0,.04);
}
.tf-page__breadcrumb a,
.tf-page__breadcrumb span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--tf-brown-mid);
}
.tf-page__breadcrumb a { transition: color .15s ease; }
.tf-page__breadcrumb a:hover { color: var(--tf-orange); }
.tf-page__breadcrumb [aria-current="page"] {
  color: var(--tf-brown);
  font-weight: 800;
}
.tf-page__breadcrumb-sep {
  color: rgba(26,10,0,.3);
  font-size: 12px;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

/* ── Haupttitel – Editorial, balanciert, mit Akzent ── */
.tf-page__title {
  position: relative;
  font-size: clamp(44px, 7.5vw, 104px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .94;
  color: var(--tf-brown);
  text-wrap: balance;
  max-width: 18ch;
}
.tf-page__title::after {
  content: "";
  display: block;
  width: clamp(48px, 6vw, 84px);
  height: 6px;
  margin-top: clamp(24px, 3vw, 36px);
  background: linear-gradient(90deg, var(--tf-orange), var(--tf-orange-warm));
  border-radius: 3px;
}

/* ── Lede / Excerpt ── */
.tf-page__lede {
  margin-top: clamp(20px, 2.5vw, 32px);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--tf-brown-mid);
  max-width: 56ch;
  font-weight: 400;
  text-wrap: pretty;
}

/* ── Optionales Hero-Medium (Featured Image) ── */
.tf-page__media {
  margin: clamp(36px, 5vw, 64px) 0 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(26,10,0,.25), 0 4px 16px rgba(26,10,0,.08);
}
.tf-page__media-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Wave-Übergang in den Body */
.tf-page__hero-wave {
  position: absolute;
  bottom: -2px; left: -1px;
  width: calc(100% + 2px);
  height: 60px;
  display: block;
  fill: var(--tf-cream);
  z-index: 1;
}

/* ── BODY ── */
.tf-page__body {
  position: relative;
  background: var(--tf-cream);
  min-height: 50vh;
}
.tf-page__body-inner {
  max-width: var(--tf-max-w);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--tf-pad-x) clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

/* Wenn keine TOC vorhanden ist (hidden) → einspaltig zentriert */
.tf-page__body-inner:has(> .tf-page__rail[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.tf-page__body-inner:has(> .tf-page__rail[hidden]) .tf-page__content {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Sticky Rail mit TOC ── */
.tf-page__rail {
  position: sticky;
  top: calc(var(--tf-nav-h) + 24px);
}
.tf-page__rail-sticky { display: block; }
.tf-page__rail-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tf-orange);
  margin-bottom: 14px;
}
.tf-page__toc {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(26,10,0,.08);
}
.tf-page__toc a {
  display: block;
  position: relative;
  padding: 8px 0 8px 16px;
  margin-left: -1px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tf-brown-mid);
  border-left: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease, padding .18s ease;
  text-decoration: none;
}
.tf-page__toc a:hover {
  color: var(--tf-orange);
  border-color: rgba(240,120,40,.4);
}
.tf-page__toc a.is-active {
  color: var(--tf-brown);
  font-weight: 700;
  border-color: var(--tf-orange);
}
.tf-page__toc a.tf-toc--h3 {
  padding-left: 28px;
  font-size: 12px;
  opacity: .85;
}

/* ── Content ── */
.tf-page__content { min-width: 0; }
.tf-page__content > .entry-content > *:first-child { margin-top: 0; }

/* Anchor-Offset für H2/H3 (damit sticky Nav nicht überlappt) */
.tf-page__content :is(h2, h3)[id] {
  scroll-margin-top: calc(var(--tf-nav-h) + 24px);
}

/* ── Template-Variante: Minimal (ohne Hero-Atmosphäre) ── */
.tf-page__hero--minimal {
  padding-top: calc(var(--tf-nav-h) + clamp(28px, 4vw, 52px));
  padding-bottom: clamp(28px, 4vw, 56px);
  background: var(--tf-cream);
  border-bottom: 1px solid rgba(26,10,0,.06);
}
.tf-page__hero--minimal .tf-page__hero-bg,
.tf-page__hero--minimal .tf-page__hero-wave { display: none; }
.tf-page__title--minimal {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -.025em;
  line-height: 1.05;
}
.tf-page__title--minimal::after { display: none; }

/* ── Template-Variante: Foto-Hero ── */
.tf-page--foto .tf-page__hero--foto {
  position: relative;
  padding-top: calc(var(--tf-nav-h) + clamp(80px, 12vw, 180px));
  padding-bottom: clamp(80px, 12vw, 180px);
  background-color: var(--tf-brown);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.tf-page--foto .tf-page__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,10,0,.15) 0%, rgba(26,10,0,.65) 100%),
    radial-gradient(ellipse 70% 60% at 30% 70%, rgba(240,120,40,.35) 0%, transparent 60%);
}
.tf-page--foto .tf-page__title--foto {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
  max-width: 18ch;
}
.tf-page--foto .tf-page__title--foto::after {
  background: linear-gradient(90deg, var(--tf-orange-warm), #fff);
}
.tf-page--foto .tf-page__lede--foto {
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.tf-page--foto .tf-page__breadcrumb--light {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.tf-page--foto .tf-page__breadcrumb--light a,
.tf-page--foto .tf-page__breadcrumb--light span { color: rgba(255,255,255,.85); }
.tf-page--foto .tf-page__breadcrumb--light a:hover { color: #fff; }
.tf-page--foto .tf-page__breadcrumb--light [aria-current="page"] { color: #fff; }
.tf-page--foto .tf-page__breadcrumb--light .tf-page__breadcrumb-sep { color: rgba(255,255,255,.4); }

/* ── Mobile-TOC (Accordion) ── */
.tf-page__toc-mobile {
  display: none;
  margin: 0 0 32px;
  border: 1px solid rgba(26,10,0,.1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.tf-page__toc-mobile > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tf-orange);
  user-select: none;
}
.tf-page__toc-mobile > summary::-webkit-details-marker { display: none; }
.tf-page__toc-mobile > summary svg {
  transition: transform .25s ease;
  flex-shrink: 0;
  color: var(--tf-brown-mid);
}
.tf-page__toc-mobile[open] > summary svg { transform: rotate(180deg); }
.tf-page__toc-mobile .tf-page__toc {
  padding: 4px 16px 14px;
  border-left: none;
}
.tf-page__toc-mobile .tf-page__toc a {
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}
.tf-page__toc-mobile .tf-page__toc a.is-active {
  color: var(--tf-orange);
}
.tf-page__toc-mobile .tf-page__toc a.tf-toc--h3 { padding-left: 16px; }

/* entry-content innerhalb des Page-Layouts: kein extra Padding / Max-Width
   (das übernimmt bereits tf-page__body-inner). */
.tf-page__content > .entry-content > * {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}
.tf-page__content > .entry-content > .alignwide,
.tf-page__content > .entry-content > .alignfull {
  margin-left: calc(var(--tf-pad-x) * -1);
  margin-right: calc(var(--tf-pad-x) * -1);
}

/* Editorial-Typografie nur im Page-Body */
.tf-page__content .entry-content h2 {
  margin-top: 2em;
  margin-bottom: .6em;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--tf-brown);
}
.tf-page__content .entry-content h3 {
  margin-top: 1.6em;
  margin-bottom: .5em;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--tf-brown);
}
.tf-page__content .entry-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--tf-brown-mid);
  margin-bottom: 1.2em;
  text-wrap: pretty;
}
.tf-page__content .entry-content a {
  color: var(--tf-orange);
  text-decoration: none;
  background-image: linear-gradient(var(--tf-orange), var(--tf-orange));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size .2s ease;
}
.tf-page__content .entry-content a:hover {
  background-size: 100% 2px;
}
.tf-page__content .entry-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--tf-orange);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--tf-brown);
  font-weight: 500;
  letter-spacing: -.01em;
  font-style: normal;
}
.tf-page__content .entry-content ul,
.tf-page__content .entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}
.tf-page__content .entry-content li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--tf-brown-mid);
  margin-bottom: .4em;
}
.tf-page__content .entry-content img {
  border-radius: 4px;
}
.tf-page__content .entry-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,10,0,.18), transparent);
  margin: 3em 0;
}

/* ── Scroll-Animationen ── */
.tf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.tf-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.tf-reveal--delay-1 { transition-delay: .1s; }
.tf-reveal--delay-2 { transition-delay: .2s; }
.tf-reveal--delay-3 { transition-delay: .3s; }
.tf-reveal--delay-4 { transition-delay: .4s; }

/* ──────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tf-lineup__grid,
  .tf-buehnen__grid { grid-template-columns: 1fr 1fr; }
  .tf-tickets__inner,
  .tf-verein__inner,
  .tf-jubilee__inner { grid-template-columns: 1fr; }
  .tf-jubilee__inner { gap: 44px; }
  .tf-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* TOC-Rail nur ab Desktop – auf Tablet/Mobile vollständig einspaltig */
  .tf-page__body-inner,
  .tf-page__body-inner:has(> .tf-page__rail[hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
  .tf-page__body-inner .tf-page__rail { display: none; }
  .tf-page__content { max-width: 760px; margin: 0 auto; }

  /* Mobile-TOC ersetzt die Rail – nur wenn JS sie befüllt hat */
  .tf-page__toc-mobile:not([hidden]) { display: block; }
}

@media (max-width: 768px) {
  .tf-nav__links { display: none; }
  .tf-nav__burger { display: flex; }
  .tf-lineup__grid,
  .tf-buehnen__grid { grid-template-columns: 1fr; }
  .tf-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .tf-footer__bottom { flex-direction: column; text-align: center; }
  .tf-tickets__inner { gap: 40px; }
  .tf-verein__inner { gap: 40px; }
}

@media (max-width: 480px) {
  .tf-hero__actions { flex-direction: column; width: 100%; max-width: 300px; }
  .tf-hero__actions .tf-btn { justify-content: center; }
  .tf-facts__item { flex: 1 1 50%; }
  .tf-verein__stats { grid-template-columns: 1fr; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .tf-reveal { opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────────
   PRINT-STYLES
────────────────────────────────────────────────── */
@media print {
  /* Grundlage: weisser Hintergrund, schwarzer Text, alles in einer Spalte */
  :root, body, .tf-page, .tf-page__body, .tf-page__hero {
    background: #fff !important;
    color: #000 !important;
  }

  /* Alles dekorative / interaktive ausblenden */
  .tf-nav,
  .tf-mobile-menu,
  .tf-page__progress,
  .tf-page__hero-bg,
  .tf-page__hero-wave,
  .tf-page__hero-overlay,
  .tf-page__rail,
  .tf-page__toc-mobile,
  .tf-page__media,
  .tf-page__related,
  .tf-sponsors,
  .tf-ads-slider,
  .tf-footer,
  .tf-hero,
  .tf-facts,
  .tf-jubilee,
  .tf-lineup,
  .tf-buehnen,
  .tf-tickets,
  .tf-verein,
  .tf-reveal,
  .tf-faq summary::after,
  .tf-cta-card .wp-block-buttons {
    display: none !important;
  }

  /* Tf-reveal Inhalte wieder einblenden */
  .tf-reveal { opacity: 1 !important; transform: none !important; display: block !important; }

  /* Layout vereinfachen */
  .tf-page__hero {
    padding: 0 0 24pt !important;
    border-bottom: 1pt solid #000;
    margin-bottom: 24pt;
  }
  .tf-page__hero-inner,
  .tf-page__body-inner {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }
  .tf-page__content { max-width: none !important; margin: 0 !important; }
  .tf-page__breadcrumb {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12pt !important;
    box-shadow: none !important;
  }
  .tf-page__breadcrumb a,
  .tf-page__breadcrumb span { color: #555 !important; }
  .tf-page__title {
    font-size: 28pt !important;
    line-height: 1.1 !important;
    color: #000 !important;
    margin-bottom: 8pt !important;
    max-width: none !important;
  }
  .tf-page__title::after { display: none !important; }
  .tf-page__lede {
    font-size: 13pt !important;
    color: #333 !important;
    max-width: none !important;
  }

  /* Body-Typografie */
  .tf-page__content .entry-content p,
  .tf-page__content .entry-content li {
    font-size: 11pt !important;
    line-height: 1.55 !important;
    color: #000 !important;
  }
  .tf-page__content .entry-content h2 {
    font-size: 16pt !important;
    color: #000 !important;
    margin-top: 18pt !important;
    page-break-after: avoid;
  }
  .tf-page__content .entry-content h3 {
    font-size: 13pt !important;
    color: #000 !important;
    page-break-after: avoid;
  }
  .tf-page__content .entry-content a {
    color: #000 !important;
    background: none !important;
    text-decoration: underline !important;
  }
  /* Externe Links: URL nach dem Text drucken */
  .tf-page__content .entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }

  /* Callouts: ohne Farbe, mit Rahmen */
  .tf-callout {
    background: #fff !important;
    border: 1pt solid #999 !important;
    border-left: 3pt solid #000 !important;
    padding: 10pt 14pt !important;
    page-break-inside: avoid;
  }
  .tf-callout .tf-callout__title,
  .tf-callout > h4 { color: #000 !important; }
  .tf-callout .tf-callout__title::before,
  .tf-callout > h4::before { display: none !important; }

  /* CTA-Card: nur Text drucken, kein Button-Hinweis */
  .tf-cta-card {
    background: #fff !important;
    color: #000 !important;
    border: 1pt solid #999 !important;
    padding: 12pt 14pt !important;
  }
  .tf-cta-card .tf-cta-card__title,
  .tf-cta-card > h3,
  .tf-cta-card .tf-cta-card__text,
  .tf-cta-card > p { color: #000 !important; }

  /* FAQ: aufgeklappt drucken */
  .tf-faq { border-bottom: 1pt solid #ccc !important; padding: 8pt 0 !important; }
  .tf-faq > summary {
    list-style: none !important;
    font-weight: 700 !important;
    color: #000 !important;
    padding-right: 0 !important;
  }
  .tf-faq:not([open]) > *:not(summary) { display: block !important; }

  /* Bilder skalieren */
  .tf-page__content img { max-width: 100% !important; height: auto !important; page-break-inside: avoid; }

  /* Seitenumbruch-Regeln */
  h1, h2, h3 { page-break-after: avoid; }
  p, li, blockquote { orphans: 3; widows: 3; }
}
