/* =====================================================================
   Odenwälder Festtage 2026 — Design System
   CI: Festtage-Blau #225F8A · Wiesn-Rot #C11718 · Weiß · Tracht-Braun #A06B3F
   Fonts: UnifrakturMaguntia (Logo) · Roboto Slab (Headlines) · Roboto (Text)
   ===================================================================== */

:root {
  --blau:        #225F8A;
  --blau-dunkel: #1a4a6e;
  --rot:         #C11718;
  --rot-dunkel:  #a01314;
  --braun:       #A06B3F;
  --weiss:       #ffffff;
  --creme:       #fbf8f2;
  --karo-blau:   #bcdcf3;
  --karo-blau-2: #d8ecfa;
  --text:        #1f3a4d;
  --grau:        #6b7e8a;

  --maxw: 1180px;
  --radius: 14px;
  --shadow:    0 10px 30px rgba(34, 95, 138, .12);
  --shadow-lg: 0 20px 50px rgba(34, 95, 138, .20);
  --font-frak: 'UnifrakturMaguntia', cursive;
  --font-head: 'Roboto Slab', Georgia, serif;
  --font-body: 'Roboto', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--weiss);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blau); text-decoration: none; }

/* --- Karo / Gingham Hintergrund (rein CSS) ---------------------------- */
.karo {
  background-color: var(--weiss);
  background-image:
    repeating-linear-gradient( 45deg, transparent 0 28px, var(--karo-blau-2) 28px 56px),
    repeating-linear-gradient(-45deg, transparent 0 28px, var(--karo-blau-2) 28px 56px);
  background-blend-mode: multiply;
}
.karo-stark {
  background-color: var(--weiss);
  background-image:
    repeating-linear-gradient( 45deg, transparent 0 24px, var(--karo-blau) 24px 48px),
    repeating-linear-gradient(-45deg, transparent 0 24px, var(--karo-blau) 24px 48px);
  background-blend-mode: multiply;
}

/* --- Rauten-Bordüre (Sektionstrenner) --------------------------------- */
.rauten {
  height: 22px;
  background:
    linear-gradient(135deg, var(--karo-blau) 25%, transparent 25%) -16px 0,
    linear-gradient(225deg, var(--karo-blau) 25%, transparent 25%) -16px 0,
    linear-gradient(315deg, var(--karo-blau) 25%, transparent 25%),
    linear-gradient( 45deg, var(--karo-blau) 25%, transparent 25%);
  background-size: 32px 32px;
  background-color: var(--weiss);
}

/* --- Layout-Helfer ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 84px 0; position: relative; }
.center { text-align: center; }

/* --- Typografie ------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--blau); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--grau); }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rot); font-size: .8rem; margin-bottom: .6rem;
}

/* --- Logo (Fraktur Live-Text) ----------------------------------------- */
.logo-frak {
  font-family: var(--font-frak);
  color: var(--blau);
  line-height: .92;
  text-shadow:
    -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
    0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff,
    4px 6px 10px rgba(0,0,0,.25);
}

/* --- Rotes Wimpel-Band (Section-Header & Datumsband) ------------------ */
.band {
  display: inline-block;
  background: var(--rot);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  padding: .5em 1.1em;
  transform: skew(-8deg);
  box-shadow: 0 6px 16px rgba(193,23,24,.35);
}
.band > * { display: inline-block; transform: skew(8deg); }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  padding: .85em 1.7em; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-rot   { background: var(--rot); color: #fff; box-shadow: 0 8px 22px rgba(193,23,24,.4); }
.btn-rot:hover   { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(193,23,24,.5); }
.btn-blau  { background: var(--blau); color: #fff; }
.btn-blau:hover  { transform: translateY(-3px); background: var(--blau-dunkel); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blau); }

/* --- Header / Navigation ---------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6eef5;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { font-family: var(--font-frak); font-size: 1.9rem; color: var(--blau); line-height: 1; }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; color: var(--blau); font-size: .98rem;
  padding: .5em .9em; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: #eef5fb; }
.nav-links a.cta { background: var(--rot); color: #fff; }
.nav-links a.cta:hover { background: var(--rot-dunkel); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--blau); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* --- Hero ------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background-image:
    linear-gradient(rgba(120,72,38,.30), rgba(90,52,26,.55)),
    url('../img/holz.png');
  background-size: auto, 420px;
  background-repeat: no-repeat, repeat;
}
.hero-inner { padding: 70px 22px 90px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.hero .logo-frak { font-size: clamp(2.8rem, 11vw, 6.6rem); }
.hero-paar { position: absolute; bottom: 0; left: -10px; width: clamp(180px, 26vw, 360px); z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.hero-datum {
  margin: 18px auto 6px; font-size: clamp(1.1rem, 3.4vw, 1.9rem);
}
.hero-ort { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.1rem,3vw,1.7rem); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-ort strong { font-size: 1.35em; font-weight: 700; display: block; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Wimpelkette (Bunting) -------------------------------------------- */
.wimpel {
  position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='30'><line x1='0' y1='4' x2='90' y2='4' stroke='%23f3ede0' stroke-width='2'/><polygon points='3,4 31,4 17,27' fill='%23C11718'/><polygon points='31,4 59,4 45,27' fill='%23ffffff'/><polygon points='59,4 87,4 73,27' fill='%23225F8A'/></svg>");
  background-repeat: repeat-x; background-position: top center;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.25));
}

/* --- Schwebende Hero-Deko --------------------------------------------- */
.hero-deco { position: absolute; z-index: 1; font-size: 2.2rem; opacity: .9; animation: bob 5s ease-in-out infinite; will-change: transform; pointer-events: none; }
.hero-deco.d1 { top: 16%; right: 9%; animation-delay: 0s; }
.hero-deco.d2 { top: 32%; left: 12%; animation-delay: 1.2s; font-size: 1.8rem; }
.hero-deco.d3 { bottom: 26%; right: 16%; animation-delay: .6s; font-size: 2rem; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .hero-deco { animation: none; } }

/* --- Konfetti-Canvas -------------------------------------------------- */
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* --- Countdown -------------------------------------------------------- */
.countdown { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cd-box {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px; padding: 14px 8px; min-width: 84px; backdrop-filter: blur(4px);
}
.cd-num { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.cd-lab { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }

/* --- Karten ----------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border: 1px solid #eef3f7; transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .ico { font-size: 2.4rem; margin-bottom: 10px; display: block; }
.card .ico-svg { display: flex; justify-content: center; margin-bottom: 12px; }
.card .ico-svg svg { width: 60px; height: 60px; }
.card h3 { margin-bottom: .5rem; }

/* --- Programm-Tage ---------------------------------------------------- */
.tag-card { border-top: 5px solid var(--rot); }
.tag-card .tag-date { font-family: var(--font-head); font-weight: 700; color: var(--rot); font-size: .95rem; }
.tag-card ul { list-style: none; margin-top: 10px; }
.tag-card li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px dashed #e3ebf1; }
.tag-card li::before { content: "»"; position: absolute; left: 0; color: var(--blau); font-weight: 700; }
.badge { display:inline-block; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  padding:.2em .7em; border-radius:999px; background:#eef5fb; color:var(--blau); }
.badge-rot { background: #fbe7e7; color: var(--rot); }

/* --- Preis / Slots ---------------------------------------------------- */
.preis-card { text-align: center; border-top: 5px solid var(--blau); }
.preis-card.hot { border-top-color: var(--rot); position: relative; }
.preis-card .preis { font-family: var(--font-head); font-weight: 700; color: var(--blau); font-size: 2.6rem; }
.preis-card .preis small { font-size: 1rem; color: var(--grau); font-weight: 400; }
.preis-card ul { list-style: none; text-align: left; margin: 16px 0; }
.preis-card li { padding: 7px 0 7px 26px; position: relative; }
.preis-card li::before { content: "✓"; position: absolute; left: 0; color: var(--rot); font-weight: 700; }

/* --- Split (Bild + Text) ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-paar { background: var(--karo-blau-2); border-radius: var(--radius); padding: 20px; }

/* --- Footer ----------------------------------------------------------- */
.footer { background: var(--blau-dunkel); color: #cfe2f0; padding: 56px 0 28px; }
.footer a { color: #cfe2f0; }
.footer a:hover { color: #fff; }
.footer .logo-frak { color: #fff; font-size: 2.4rem; text-shadow: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer h4 { font-family: var(--font-head); color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.wg-badge { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 18px; opacity: .8; transition: opacity .15s; }
.wg-badge:hover { opacity: 1; }
.wg-badge span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #9cc0db; }
.wg-badge img { width: 132px; height: auto; filter: brightness(0) invert(1); }

/* --- Partner / Sponsoren ---------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 2px dashed #c7d7e4; border-radius: 12px; min-height: 96px;
  color: #93a7b5; font-family: var(--font-head); font-size: .82rem; padding: 10px;
}
.sponsor-cta {
  background: var(--blau); color: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center;
  background-image: linear-gradient(135deg, var(--blau), var(--blau-dunkel));
}
.sponsor-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.sponsor-cta p { color: #d6e7f3; max-width: 560px; margin: 0 auto 18px; }
@media (max-width: 860px){ .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- FAQ-Akkordeon ---------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid #e6eef5; border-radius: 12px; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(34,95,138,.07); overflow: hidden;
}
.faq details[open] { box-shadow: var(--shadow); border-color: #cfe0ee; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--rot); font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--rot); }
.faq .faq-a { padding: 0 22px 20px; color: var(--text); }

/* --- Hinweis-Box (Platzhalter etc.) ----------------------------------- */
.hinweis { background: #fff8e6; border: 1px solid #f0d68a; border-radius: 10px; padding: 14px 18px; color: #8a6d1f; font-size: .92rem; }

/* --- Zelt-Tour (interaktiv) ------------------------------------------- */
.tour-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.tour-stage { background: linear-gradient(180deg,#f3f9ff,#fff); border:1px solid #e3eef7; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
#zelt-tour svg { width: 100%; height: auto; display:block; }
.hot { cursor: pointer; transition: opacity .15s; }
.hot:hover { opacity: .22 !important; }
.hot.active { opacity: .28 !important; }
.tour-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; justify-content:center; }
.tour-tab { font-family: var(--font-head); font-weight:500; font-size:.92rem; padding:.5em 1em; border-radius:999px;
  border:2px solid #d6e2ec; background:#fff; color:var(--blau); cursor:pointer; transition:.15s; }
.tour-tab:hover { border-color: var(--blau); }
.tour-tab.active { background: var(--rot); border-color: var(--rot); color:#fff; }
.tour-info { background:#fff; border:1px solid #eef3f7; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.tour-info .ico { font-size:2.6rem; display:block; margin-bottom:8px; }
.tour-info h3 { margin-bottom:10px; }
.tour-info .fact { margin-top:14px; display:inline-block; background:#eef5fb; color:var(--blau); font-weight:700;
  font-family:var(--font-head); padding:.4em .9em; border-radius:999px; font-size:.9rem; }
@media (max-width: 860px){ .tour-wrap { grid-template-columns: 1fr; } }

/* --- Reveal-Animation ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Page-Header (Unterseiten) ---------------------------------------- */
.pagehead { padding: 56px 0; text-align: center; }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.pagehead p { color: var(--grau); font-size: 1.15rem; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 14px; gap: 4px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s; align-items: stretch;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .8em 1em; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero-paar { opacity: .35; }
}

/* =====================================================================
   Stufe 10 — Feinschliff: A11y, reduced-motion, Mobil
   ===================================================================== */
/* Sichtbarer Tastatur-Fokus */
a:focus-visible, button:focus-visible, summary:focus-visible,
.btn:focus-visible, .tour-tab:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid #225F8A; outline-offset: 3px; border-radius: 6px;
}
.btn-rot:focus-visible { outline-color: #7a0e0f; }
.hero .btn:focus-visible, .sponsor-cta .btn:focus-visible { outline-color: #fff; }
.hot:focus-visible { opacity: .3 !important; outline: 3px solid #fff; }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .card:hover, .btn:hover { transform: none; }
}

/* Mobil-Feinschliff */
@media (max-width: 560px) {
  .hero-deco { display: none; }
  .hero-inner { padding: 56px 18px 72px; }
  .hero .logo-frak { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .cd-box { min-width: 66px; padding: 11px 6px; }
  .cd-num { font-size: 1.7rem; }
  .band { font-size: .95rem; }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .tour-tab { font-size: .85rem; padding: .45em .8em; }
  .partner-slot { min-height: 76px; font-size: .76rem; }
}
