/* ==========================================================================
   Heideblütenfest 2026 Schneverdingen
   Farbwelt & Typo nach CI 2026: Magenta/Lila, Gelb, Creme
   Headline-Schrift: Neo Sans Std Bold (Lizenz nötig) → freie Alternative „Exo 2“
   ========================================================================== */

/* Liegt Neo Sans Std als Webfont-Lizenz vor, hier aktivieren:
@font-face {
  font-family: "Neo Sans Std";
  src: url("../fonts/NeoSansStd-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
*/

:root {
  --magenta:      #a3138a;
  --magenta-hell: #d21ba4;
  --lila-dunkel:  #5a1560;
  --beere:        #7b0f6e;
  --ink:          #3a0e3e;
  --gelb:         #ffd400;
  --gelb-dunkel:  #b8860b; /* für Text auf hellem Grund (Kontrast) */
  --creme:        #fff9ec;
  --weiss:        #ffffff;
  --grau-text:    #4b3a4d;

  --font-head: "Neo Sans Std", "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Exo 2", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(90, 21, 96, 0.18);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--grau-text);
  background: var(--creme);
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--lila-dunkel); }

a { color: var(--beere); }
a:hover { color: var(--magenta-hell); }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1180px, 92vw); margin-inline: auto; }
.container.narrow { width: min(820px, 92vw); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--gelb);
  color: var(--ink);
  padding: 0.8em 1.4em;
  font-weight: 700;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--weiss);
}

.header-inner {
  width: min(1180px, 94vw);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 62px; width: auto; }
@media (max-width: 480px) { .logo img { height: 52px; } }

/* Navigation */
.nav-list {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.6rem);
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4em 0.2em;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--gelb));
  border-radius: 2px;
  transition: right 0.25s ease;
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--magenta);
  color: var(--weiss);
  border: 0;
  border-radius: 999px;
  padding: 0.55em 1.1em;
  font: 700 1rem var(--font-head);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 20px; height: 2px;
  background: currentColor;
  position: relative;
  display: inline-block;
}
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: currentColor;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--weiss);
    box-shadow: var(--shadow);
    padding: 0.5rem 0 1rem;
    text-align: center;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { display: block; padding: 0.9em; font-size: 1.2rem; }
}

/* Lila Bogen (liegt oben auf der Hero-Collage) */
.bogen {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(90, 21, 96, 0.25));
}
.bogen img {
  display: block;
  width: 100%;
  height: clamp(64px, 10vw, 150px);
  object-fit: fill;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--lila-dunkel);
}

.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active img { animation: kenburns 9s ease-out forwards; }
  @keyframes kenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(58,14,62,0.55) 0%, rgba(58,14,62,0.15) 40%, rgba(58,14,62,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--weiss);
  padding: clamp(7rem, 16vw, 10rem) 1.2rem 5.5rem;
  max-width: 62rem;
}
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gelb);
  margin: 0 0 0.4rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6.5vw, 4.3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--weiss);
  margin: 0 0 1rem;
  text-shadow: 0 4px 24px rgba(58, 14, 62, 0.55);
}
.hero-date {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  background: var(--gelb);
  color: var(--ink);
  padding: 0.35em 1.2em;
  border-radius: 999px;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.hero-motto {
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin: 0 0 1.8rem;
  opacity: 0.95;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  font: 700 1.05rem var(--font-head);
  text-decoration: none;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.3); }
.btn-primary { background: linear-gradient(120deg, var(--magenta), var(--magenta-hell)); color: var(--weiss); }
.btn-primary:hover { color: var(--weiss); }
.btn-ghost { background: rgba(255,255,255,0.14); color: var(--weiss); border: 2px solid rgba(255,255,255,0.75); backdrop-filter: blur(4px); }
.btn-ghost:hover { color: var(--weiss); background: rgba(255,255,255,0.24); }

/* Hero Steuerung */
.hero-controls {
  position: absolute;
  right: clamp(0.8rem, 3vw, 2rem);
  bottom: 1.2rem;
  z-index: 6;
  display: flex;
  gap: 0.5rem;
}
.hero-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: rgba(58,14,62,0.45);
  color: var(--weiss);
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.hero-btn:hover { background: var(--magenta); }

.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.6rem;
  z-index: 6;
  display: flex;
  gap: 0.55rem;
}
.hero-dots button {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--weiss);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button[aria-selected="true"] { background: var(--gelb); border-color: var(--gelb); }

@media (max-width: 640px) {
  .hero-dots { left: 1.2rem; transform: none; bottom: 1.9rem; }
}

/* Schwebende Heideblüten (Deko) */
.heide-deko { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.blossom {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 35% 35%, #e88ecf, var(--magenta-hell));
  opacity: 0.65;
}
@media (prefers-reduced-motion: no-preference) {
  .blossom { animation: floaty 9s ease-in-out infinite; }
}
.b1 { left: 8%;  top: 22%; animation-delay: 0s; }
.b2 { left: 18%; top: 68%; animation-delay: 1.4s; width: 10px; height: 10px; }
.b3 { left: 46%; top: 14%; animation-delay: 2.8s; width: 18px; height: 18px; }
.b4 { left: 72%; top: 30%; animation-delay: 0.9s; }
.b5 { left: 86%; top: 62%; animation-delay: 2.1s; width: 11px; height: 11px; }
.b6 { left: 60%; top: 78%; animation-delay: 3.3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-26px) rotate(25deg); }
}

/* ---------- Intro ---------- */
.intro { padding: clamp(3rem, 7vw, 5rem) 0 1rem; text-align: center; }
.intro-text { font-size: clamp(1.1rem, 2.4vw, 1.35rem); margin: 0 auto 2rem; }
.intro-text strong { color: var(--beere); }

.fact-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
}
.fact-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--weiss);
  border: 2px solid rgba(163, 19, 138, 0.25);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--lila-dunkel);
  box-shadow: 0 4px 14px rgba(90,21,96,0.08);
}
.fact-pills .fa-icon { width: 1.25em; height: 1.25em; }

/* ---------- FontAwesome-Icons (per CSS-Maske einfärbbar) ---------- */
.fa-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  background-color: var(--magenta);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.fa-icon.fa-inline { vertical-align: -0.18em; margin-right: 0.4em; }
.fa-magenta { background-color: var(--magenta); }
.fa-gelb {
  background-color: var(--gelb);
  filter: drop-shadow(0 1px 1px rgba(90, 21, 96, 0.4));
}

/* Icon-Motive (Pfade relativ zu dieser CSS-Datei) */
.ico-grin     { --icon: url(../img/icons/face-grin-stars.svg); }
.ico-note     { --icon: url(../img/icons/itunes-note.svg); }
.ico-tractor  { --icon: url(../img/icons/tractor.svg); }
.ico-star     { --icon: url(../img/icons/star.svg); }
.ico-crown    { --icon: url(../img/icons/crown.svg); }
.ico-location { --icon: url(../img/icons/location-dot.svg); }
.ico-users    { --icon: url(../img/icons/users.svg); }

/* ---------- Sektionen allgemein ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 0.6rem;
}
.section-title .hl { color: var(--magenta); }
.section-title .hl-yellow { color: var(--gelb); }
.section-title.on-dark { color: var(--weiss); }

.section-sub {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2.8rem;
  font-size: 1.08rem;
}
.section-sub.on-dark { color: rgba(255,255,255,0.88); }

/* ---------- Festumzug / Marquee-Galerie ---------- */
.section-festumzug { padding-bottom: clamp(4rem, 9vw, 7rem); }

.marquee-wrap { position: relative; display: grid; gap: 1.2rem; }

.marquee-pause {
  justify-self: center;
  order: 3;
  background: var(--weiss);
  border: 2px solid var(--magenta);
  color: var(--beere);
  font: 600 0.95rem var(--font-head);
  border-radius: 999px;
  padding: 0.5em 1.3em;
  cursor: pointer;
}
.marquee-pause[aria-pressed="true"] { background: var(--magenta); color: var(--weiss); }

.marquee { overflow: hidden; }
.marquee-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 60s linear infinite; }
  .marquee[data-direction="reverse"] .marquee-track { animation-direction: reverse; }
  .marquee-wrap.is-paused .marquee-track,
  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.gallery-item {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.gallery-item:hover { transform: translateY(-6px) rotate(-1deg); }

/* Hervorhebung der neuen 2026er-Bilder */
.gallery-new { position: relative; }
.gallery-new .gallery-item {
  box-shadow: 0 0 0 4px var(--gelb), 0 0 0 7px var(--magenta), var(--shadow);
}
.gallery-new::after {
  content: "★ Neu 2026";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: var(--gelb);
  color: var(--ink);
  font: 800 0.72rem var(--font-head);
  letter-spacing: 0.02em;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(20, 4, 24, 0.35);
  pointer-events: none;
}
.gallery-item img {
  width: clamp(220px, 26vw, 330px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.marquee-b .gallery-item img { width: clamp(190px, 22vw, 280px); }

/* ---------- Programm (dunkle Sektion mit Parallax-Band) ---------- */
.section-programm {
  position: relative;
  background: linear-gradient(160deg, var(--lila-dunkel) 0%, var(--beere) 55%, var(--magenta) 130%);
  overflow: hidden;
}
.parallax-band {
  position: absolute;
  inset: -20% 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 212, 0, 0.14) 0, transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(210, 27, 164, 0.35) 0, transparent 30%),
    radial-gradient(circle at 60% 85%, rgba(255, 255, 255, 0.08) 0, transparent 26%);
  will-change: transform;
}
/* Inhalt der Programm-Sektion sicher über dem dekorativen Band halten */
.section-programm .container { position: relative; z-index: 1; }

/* Tages-Tabs */
.day-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.day-tab {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 5.4rem;
  padding: 0.65em 1.2em;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: var(--weiss);
  font-family: var(--font-head);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.day-tab:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-3px); }
.day-tab[aria-selected="true"] {
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.day-tab:focus-visible { outline-color: var(--gelb); }
.day-tab-name { font-weight: 800; font-size: 1.25rem; text-transform: uppercase; line-height: 1; }
.day-tab-date { font-weight: 600; font-size: 0.9rem; opacity: 0.85; }

.day-panels { position: relative; width: min(880px, 100%); margin-inline: auto; }
.day-card {
  background: rgba(255, 249, 236, 0.97);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(20, 4, 24, 0.35);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .day-card:not([hidden]) { animation: panel-in 0.45s ease; }
  @keyframes panel-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: linear-gradient(120deg, var(--magenta), var(--magenta-hell));
  color: var(--weiss);
  padding: 0.9rem 1.3rem;
  font-family: var(--font-head);
}
.day-name { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; }
.day-date { font-size: 1.1rem; font-weight: 700; color: var(--gelb); }

.event-list { list-style: none; margin: 0; padding: 0.7rem 1.3rem 1.2rem; }
.event-list li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(90, 21, 96, 0.2);
}
.event-list li:last-child { border-bottom: 0; }
.event-list time {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--magenta);
  font-size: 0.98rem;
  padding-top: 0.1em;
}
.event-list strong { display: block; color: var(--lila-dunkel); font-family: var(--font-head); }
.event-list span { font-size: 0.92rem; }

/* Veranstalter-Hinweis mit Logo (z. B. Stadtjugendring am Donnerstag) */
.day-veranstalter {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1rem 1.3rem 0.3rem;
  padding: 0.8rem 1rem;
  background: rgba(163, 19, 138, 0.06);
  border: 1px solid rgba(163, 19, 138, 0.15);
  border-radius: 14px;
}
.veranstalter-logo {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(90, 21, 96, 0.18);
}
.day-veranstalter span { font-size: 0.9rem; color: var(--grau-text); line-height: 1.45; }
.day-veranstalter strong { color: var(--lila-dunkel); font-family: var(--font-head); }

/* Highlight: Krönung der Heidekönigin */
.event-list .event-highlight {
  margin: 0.8rem -0.6rem 0;
  padding: 0.9rem 0.6rem;
  border-bottom: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 212, 0, 0.28), rgba(210, 27, 164, 0.14));
  border-left: 5px solid var(--gelb);
}
.event-list .event-highlight time { color: var(--beere); }
.event-list .event-highlight strong { font-size: 1.12rem; }

.day-note {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin: 2rem 0 0;
}

/* ---------- Unterstützer ---------- */
.sponsor-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}
.sponsor-grid li {
  background: var(--weiss);
  border-radius: var(--radius);
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(90,21,96,0.09);
  border: 1px solid rgba(163, 19, 138, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.sponsor-grid li:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(90,21,96,0.18);
}
.sponsor-grid a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1.1rem 1.3rem;
}
.sponsor-grid img {
  max-height: 74px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
/* Etwas größer gezogene Logos (kleinere Bildmarken) */
.sponsor-grid li.sponsor-lg a { padding: 0.6rem 0.9rem; }
.sponsor-grid li.sponsor-lg img { max-height: 104px; }
.sponsor-grid .sponsor-text span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lila-dunkel);
  padding: 1rem;
}

/* ---------- Weiterführende Links ---------- */
.section-links { background: var(--weiss); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, var(--creme), #fdf1f9);
  border: 2px solid rgba(163, 19, 138, 0.18);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--lila-dunkel);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.link-card:hover {
  transform: translateY(-5px);
  border-color: var(--magenta);
  box-shadow: var(--shadow);
  color: var(--beere);
}
.link-icon.fa-icon { width: 1.9rem; height: 1.9rem; }
.link-arrow {
  font-size: 1.4rem;
  color: var(--magenta);
  transition: transform 0.22s ease;
}
.link-card:hover .link-arrow { transform: translateX(6px); }

/* ---------- Footer ---------- */
.site-footer { margin-top: -1px; }
.footer-bogen svg { display: block; width: 100%; height: clamp(40px, 7vw, 90px); background: var(--weiss); }

.footer-main {
  background: var(--ink);
  color: rgba(255, 249, 236, 0.9);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2rem;
  padding-bottom: 2.5rem;
}

.footer-logo { height: auto; width: min(210px, 100%); margin: 0 0 1rem; }
.footer-claim { font-style: italic; opacity: 0.85; }

.footer-head {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gelb);
  margin: 0 0 0.9rem;
}
address { font-style: normal; }
.site-footer a { color: #f4b8e4; text-decoration-thickness: 1px; }
.site-footer a:hover { color: var(--gelb); }

.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 249, 236, 0.15);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }
.footer-ai-note {
  margin-top: 0.6rem !important;
  font-size: 0.8rem;
  color: rgba(255, 249, 236, 0.55);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(30, 5, 34, 0.92);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }

.lightbox-figure { margin: 0; text-align: center; min-width: 0; }
.lightbox-figure img {
  max-width: min(100%, 1100px);
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-figure figcaption { color: var(--creme); margin-top: 0.8rem; font-family: var(--font-head); }

.lightbox-close, .lightbox-nav {
  background: rgba(255,255,255,0.12);
  color: var(--weiss);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--magenta); }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
}

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Gestaffelte Verzögerung für Karten-Raster */
.sponsor-grid li.is-visible,
.link-grid .link-card.is-visible,
.day-grid .day-card.is-visible { transition-delay: calc(var(--stagger, 0) * 70ms); }


/* ==========================================================================
   Festumzug – Aufstellung (aufklappbar, mehrspaltig)
   ========================================================================== */
.umzug-liste{
  background: var(--weiss);
  border: 1px solid rgba(163,19,138,.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 1.6rem 0 2rem;
  text-align: left;
}
.umzug-liste > summary{
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(90deg, var(--magenta), var(--magenta-hell));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.umzug-liste > summary::-webkit-details-marker{ display: none; }
.umzug-liste > summary:hover{ filter: brightness(1.05); }
.ul-sum-left{ display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.ul-count{
  background: var(--gelb); color: var(--ink);
  font-family: var(--font-body); font-weight: 800; font-size: .8rem;
  padding: .15rem .65rem; border-radius: 999px;
}
.ul-sum-hint{ font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.ul-chev{ font-size: 1.3rem; line-height: 1; transition: transform .25s ease; }
.umzug-liste[open] .ul-chev{ transform: rotate(180deg); }
.umzug-liste[open] .ul-closed{ display: none; }
.umzug-liste:not([open]) .ul-open{ display: none; }

.ul-inner{ padding: 1.3rem; }
.ul-legend{ display: flex; gap: 1.3rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .82rem; color: var(--grau-text); }
.ul-legend span{ display: inline-flex; align-items: center; gap: .4rem; }
.ul-dot{ width: .75rem; height: .75rem; border-radius: 50%; display: inline-block; }
.ul-dot-f{ background: var(--magenta); }
.ul-dot-m{ background: var(--gelb); border: 1px solid var(--gelb-dunkel); }

.ul-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: .6rem; }
.ul-card{
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--creme);
  border-left: 4px solid var(--magenta);
  border-radius: 10px;
  padding: .6rem .75rem;
}
.ul-card.ul-musik{ border-left-color: var(--gelb); background: #fffbe8; }
.ul-nr{
  flex: 0 0 auto; min-width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  background: var(--magenta); color: #fff;
  font-family: var(--font-body); font-weight: 800; font-size: .85rem;
  border-radius: 8px;
}
.ul-musik .ul-nr{ background: var(--gelb); color: var(--ink); }
.ul-body{ display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ul-badge{ font-size: .66rem; font-weight: 700; color: var(--gelb-dunkel); text-transform: uppercase; letter-spacing: .04em; }
.ul-name, .ul-motto{ font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--lila-dunkel); }
.ul-pending{ font-family: var(--font-body); font-style: italic; font-weight: 600; color: var(--magenta); opacity: .7; font-size: .85rem; }
.ul-gruppe{ font-size: .82rem; color: var(--grau-text); line-height: 1.2; }

@media (max-width: 560px){
  .umzug-liste > summary{ font-size: 1.02rem; padding: .9rem 1.1rem; }
  .ul-inner{ padding: 1rem; }
}

/* Aktionszeile: Legende links, Druckbutton rechts */
.ul-actions{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ul-actions .ul-legend{ margin-bottom: 0; }
.ul-print-btn{
  display: inline-flex; align-items: center; gap: .45rem;
  font: 700 .9rem var(--font-head);
  color: var(--beere); background: #fff;
  border: 2px solid var(--magenta); border-radius: 999px;
  padding: .5em 1.1em; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ul-print-btn:hover, .ul-print-btn:focus-visible{ background: var(--magenta); color: #fff; }
.ul-print-ico{ flex: 0 0 auto; }
.ul-print-title{ display: none; }

/* ---- Druckansicht: nur die Festumzug-Aufstellung aufs Papier ---- */
@media print{
  /* Alles außerhalb der Aufstellung per display:none entfernen – so entstehen
     keine leeren Folgeseiten (visibility:hidden würde die Höhe behalten). */
  body > *:not(main){ display: none !important; }
  main > section:not(#festumzug){ display: none !important; }
  #festumzug{ margin: 0 !important; padding: 0 !important; }
  #festumzug > *:not(.container){ display: none !important; }
  #festumzug > .container{ width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  #festumzug > .container > *:not(.umzug-liste){ display: none !important; }

  .umzug-liste{ margin: 0 !important; border: 0 !important; box-shadow: none !important; background: #fff !important; }
  .umzug-liste > summary, .ul-print-btn, .ul-sum-hint{ display: none !important; }
  .umzug-liste .ul-inner{ display: block !important; padding: 0 !important; }
  .ul-print-title{ display: block; font-family: var(--font-head); font-weight: 800; font-size: 14pt; color: #000; margin: 0 0 10pt; text-align: center; }
  .ul-actions{ margin-bottom: 8pt; }
  .ul-grid{ display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 5pt !important; }
  .ul-card{ break-inside: avoid; background: #fff !important; border: 1px solid #999; border-left: 3px solid #333; border-radius: 0; padding: 4pt 6pt; }
  .ul-card.ul-musik{ background: #f4f4f4 !important; border-left-color: #333; }
  .ul-nr{ background: #333 !important; color: #fff !important; }
  .ul-musik .ul-nr{ background: #777 !important; color: #fff !important; }
  .ul-name, .ul-motto{ color: #000 !important; font-size: 10pt; }
  .ul-gruppe{ color: #333 !important; font-size: 9pt; }
  .ul-badge{ color: #555 !important; }
  @page{ margin: 12mm; }
}

/* ==========================================================================
   Programm – Bühnenprogramm (aufklappbar, mehrspaltig)
   ========================================================================== */
.buehnen-prog{
  margin: 0 1.3rem 1.3rem;
  border: 1px solid rgba(90, 21, 96, .16);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
}
.buehnen-prog > summary{
  list-style: none;
  cursor: pointer;
  padding: .8rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(90deg, var(--lila-dunkel), var(--beere));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}
.buehnen-prog > summary::-webkit-details-marker{ display: none; }
.buehnen-prog > summary:hover{ filter: brightness(1.12); }
.bp-sum-left{ display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bp-count{
  background: var(--gelb); color: var(--ink);
  font-family: var(--font-body); font-weight: 800; font-size: .75rem;
  padding: .12rem .6rem; border-radius: 999px;
}
.bp-sum-hint{ font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.bp-chev{ font-size: 1.2rem; line-height: 1; transition: transform .25s ease; }
.buehnen-prog[open] .bp-chev{ transform: rotate(180deg); }
.buehnen-prog[open] .bp-closed{ display: none; }
.buehnen-prog:not([open]) .bp-open{ display: none; }

.bp-inner{ padding: 1rem; }
.bp-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.bp-stage{
  background: var(--weiss);
  border-radius: 10px;
  border-top: 4px solid var(--magenta);
  padding: .8rem .9rem;
  box-shadow: 0 2px 8px rgba(20,4,24,.07);
}
.bp-stage-1{ border-top-color: #4a9c52; }
.bp-stage-2{ border-top-color: #d4562a; }
.bp-stage-3{ border-top-color: #2f7cc4; }
.bp-stage-head{ display: flex; align-items: center; gap: .6rem; padding-bottom: .55rem; margin-bottom: .55rem; border-bottom: 1px solid rgba(90,21,96,.12); }
.bp-num{
  flex: 0 0 auto; width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border-radius: 6px; color: #fff;
  font-family: var(--font-body); font-weight: 800; font-size: .85rem;
  background: var(--magenta);
}
.bp-stage-1 .bp-num{ background: #4a9c52; }
.bp-stage-2 .bp-num{ background: #d4562a; }
.bp-stage-3 .bp-num{ background: #2f7cc4; }
.bp-stage-info{ display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bp-stage-info strong{ font-family: var(--font-head); font-size: .98rem; color: var(--lila-dunkel); }
.bp-stage-info span{ font-size: .78rem; color: var(--grau-text); }

.bp-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.bp-list li{ display: grid; grid-template-columns: 4.9rem 1fr; gap: .55rem; align-items: start; }
.bp-time{
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--magenta); padding-top: .12em; line-height: 1.25;
}
.bp-list strong{ display: block; font-family: var(--font-head); font-size: .92rem; color: var(--lila-dunkel); line-height: 1.25; }
.bp-sub{ display: block; font-size: .8rem; color: var(--grau-text); line-height: 1.25; }

@media (max-width: 560px){
  .buehnen-prog{ margin: 0 .9rem 1rem; }
  .bp-inner{ padding: .8rem; }
  .bp-list li{ grid-template-columns: 4.4rem 1fr; }
}

/* ==========================================================================
   Programm – Download Programmheft (PDF)
   ========================================================================== */
.programm-download{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-top: 2.2rem;
  text-align: center;
}
.btn-download{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gelb);
  color: var(--lila-dunkel);
  box-shadow: 0 8px 22px rgba(20, 4, 24, .3);
}
.btn-download:hover, .btn-download:focus-visible{ color: var(--lila-dunkel); background: #ffe14d; }
.dl-icon{ flex: 0 0 auto; }
.dl-meta{
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
@media (max-width: 480px){
  .btn-download{ font-size: .95rem; padding: .8em 1.4em; }
}
