/* ===== Schriften ===== */
@font-face {
  font-family: "Auster";
  src: url("../fonts/Auster-Regular.otf") format("opentype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Auster";
  src: url("../fonts/Auster-Medium.otf") format("opentype");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Auster";
  src: url("../fonts/Auster-SemiBold.otf") format("opentype");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Auster";
  src: url("../fonts/Auster-Bold.otf") format("opentype");
  font-weight: 700; font-display: swap;
}

/* ===== Farben (aus dem Original-Design) ===== */
:root {
  --gelb:   #ffe600;
  --rot:    #e32b24;
  --gruen:  #193516;
  --blau:   #0096d8;
  --rahmen-gelb: #ffd901;
  --bg: #0f2309;            /* tiefes Grün für die Seite */
  --panel: #193516;        /* etwas helleres Grün für Karten/Tafeln */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Auster", system-ui, sans-serif;
  background: var(--bg);
  color: #fff;
}

html { scroll-behavior: smooth; overflow-y: scroll; }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 920px;                 /* schmaler, nicht über die ganze Breite */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(16px, 3vw, 28px);
}
.nav { display: flex; gap: clamp(14px, 2.2vw, 28px); }
.nav-left  { justify-self: start; }
.nav-right { justify-self: end; }
.nav a {
  position: relative;
  color: var(--gelb);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(.8rem, 1.1vw, 1rem);
  white-space: nowrap;
  padding-bottom: 13px;             /* Platz für die Aktiv-Markierung */
  transition: color .15s;
}
.nav a:hover { opacity: .7; }
/* Aktiver Punkt: nur das Eichenblatt darunter markiert, wo man sich befindet */
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 58px; height: 13px;
  background: url("../assets/leaf.webp") center/contain no-repeat;
}
.brand { justify-self: center; display: block; line-height: 0; text-decoration: none; }
.brand-logo { height: clamp(40px, 5vw, 54px); width: auto; display: block; }

/* Anker-Sprünge nicht unter den klebenden Header schieben */
#mapStage, #programSection, #socialSection { scroll-margin-top: 90px; }

/* ===== Kopf ===== */
.page-head {
  text-align: center;
  padding: 22px 16px 8px;
}
.page-head h1 {
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
  color: var(--gelb);
}
.page-head .subtitle {
  font-weight: 500;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  margin: .4em 0 0;
  color: rgba(255,255,255,.85);
}

/* ===== Karten-Bühne ===== */
main {
  padding: 8px 0 40px;                        /* kein Seitenabstand */
}

.map-stage {
  position: relative;
  width: 100%;                                /* randlos über volle Breite */
  margin: 0;
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1800 / 983;          /* Bildverhältnis der Karte */
  cursor: default;
}

/* Bildebenen liegen übereinander, werden per Opacity geblendet */
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: opacity .25s ease;
}
.layer-green  { opacity: 1; z-index: 1; }
.layer-color  { opacity: 0; z-index: 2; }
.layer-active { opacity: 0; z-index: 3; }

/* Zustände der Bühne steuern die Sichtbarkeit */
.map-stage[data-state="hover"]  .layer-color  { opacity: 1; }
.map-stage[data-state="active"] .layer-color  { opacity: 1; }
.map-stage[data-state="active"] .layer-active { opacity: 1; }

/* ===== Hotspots ===== */
.hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
}
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  min-width: 28px;                   /* Mindest-Tippfläche (Mobil) */
  min-height: 28px;
}
.hotspot--ellipse { border-radius: 50%; }   /* Fahrgeschäfte */
.hotspot--rect    { border-radius: 12px; }  /* Zelte / Hallen */
/* Touchpoints sind unsichtbar. Die Rückmeldung erfolgt ausschließlich über das
   Aufleuchten der Attraktion im Kartenbild beim Überfahren bzw. Antippen. */
.hotspot:focus-visible {            /* nur für Tastatur-Bedienung sichtbar */
  outline: 3px solid var(--rot);
  outline-offset: 3px;
}

/* ===== Hinweis im Ruhezustand ===== */
.hint {
  position: absolute;
  left: 50%; bottom: 6%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--rot);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(.7rem, 1.4vw, 1rem);
  padding: .5em 1.1em;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  pointer-events: none;
  transition: opacity .25s;
}
.map-stage:not([data-state="idle"]) .hint { opacity: 0; }

/* ===== Info-Tafel: roter Banner (Name) + grünes Feld (Text/Programm) ===== */
.info-panel {
  position: absolute;
  top: 50%; right: 3%;
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(210px, 26%, 320px);
  max-height: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;               /* Platz für das überstehende Band */
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
  animation: pop .25s ease;
}
.info-panel[hidden] { display: none; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-50%) scale(.92); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
/* Rotes Band mit dem Namen */
.panel-ribbon {
  position: relative;
  z-index: 2;
  margin-bottom: -10px;
  max-width: 96%;
  padding: 8px 26px;
  background: var(--rot);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  line-height: 1.05;
  word-break: break-word;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
  box-shadow: 0 3px 6px rgba(0,0,0,.3);
}
/* Grünes Feld mit gelbem Innenrahmen */
.panel-body {
  position: relative;
  width: 100%;
  overflow-y: auto;
  background: var(--gruen);
  border-radius: 8px;
  padding: 24px 22px 20px;
  color: #fff;
  text-align: center;
}
.panel-body::before {              /* gelber Rahmen mit Abstand zur Kante */
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--rahmen-gelb);
  border-radius: 5px;
  pointer-events: none;
}
.panel-body .info-text {
  font-weight: 500;
  font-size: clamp(.9rem, 1.4vw, 1.1rem);
  margin: 0;
}
/* Programm in der Tafel: ein Tag mit Pfeilen zum Blättern */
.prog-day { text-align: center; }
.prog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.prog-arrow {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--gelb);
  font-size: 28px; line-height: 1;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 10px;
  transition: color .15s, transform .15s;
}
.prog-arrow:hover { color: #fff; transform: scale(1.18); }
.prog-day-label { flex: 1 1 auto; }
.prog-day-label .pd {
  display: block;
  color: var(--gelb);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.05;
}
.prog-day-label .pt { color: rgba(255,255,255,.8); font-weight: 600; font-size: .8rem; }
.prog-high { color: #fff; font-style: italic; font-weight: 600; margin: 0 0 6px; }
.prog-acts { list-style: none; margin: 0; padding: 0; text-align: left; display: inline-block; }
.prog-acts li {
  color: #fff;
  font-weight: 500;
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  line-height: 1.3;
  margin-bottom: 5px;
  padding-left: 18px;
  position: relative;
}
.prog-acts li::before {
  content: "★";
  position: absolute; left: 0; top: .2em;
  color: var(--gelb); font-size: .75em;
}
.prog-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.prog-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.prog-dots .dot.is-on { background: var(--gelb); }
/* Bearbeiten-/Debug-Modus: Hotspots sichtbar machen (folgt der Form) */
.map-stage.debug .hotspot {
  background: rgba(227,43,36,.18);
  box-shadow: 0 0 0 2px var(--rot);
}
.map-stage.debug .hotspot .hs-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(25,53,22,.85);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.hotspot .hs-label { display: none; }

/* Editor-Leiste */
.editbar {
  position: fixed;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  z-index: 999;
  display: none;
  gap: 8px;
  align-items: center;
  background: var(--gruen);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  font-size: .85rem;
}
.editbar.show { display: flex; }
.editbar button {
  font-family: inherit;
  background: var(--gelb);
  color: var(--gruen);
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}
.editbar button:hover { background: #fff; }

/* ===== Programm unter der Karte ===== */
.program {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 clamp(14px, 3vw, 28px);
}
.program-head {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gelb);
  margin: 0 0 22px;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}
.venue {
  background: var(--gruen);
  border-radius: 10px;
  padding: 16px 16px 18px;
  box-shadow: inset 0 0 0 2px var(--rahmen-gelb), 0 8px 20px rgba(0,0,0,.15);
}
.venue-name {
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  margin: 4px 0 2px;
}
.venue-sub {
  text-align: center;
  color: var(--gelb);
  font-size: .85rem;
  margin: 0 0 12px;
}
.venue-days { display: flex; flex-direction: column; gap: 12px; }
.day { }
.day-name {
  display: inline-block;
  background: var(--rot);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .9rem;
  padding: 3px 14px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.day-time { display: inline-block; margin-left: 8px; color: var(--gelb); font-weight: 700; font-size: .8rem; }
.day-high { color: #fff; font-style: italic; font-weight: 600; margin: 2px 0 4px; }
.day-acts { list-style: none; margin: 0; padding: 0; }
.day-acts li {
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.3;
  padding-left: 18px;
  position: relative;
}
.day-acts li::before {
  content: "★";
  position: absolute; left: 0;
  color: var(--gelb);
  font-size: .8em;
  top: .15em;
}

/* ===== Rechtsseiten (Impressum / Datenschutz) ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  line-height: 1.6;
  color: #fff;
}
.legal h2 {
  color: var(--gelb);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 1.6em 0 .4em;
}
.legal a { color: var(--gelb); }
.legal address { font-style: normal; }
.legal .back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gelb);
  font-weight: 700;
  text-decoration: none;
}
.legal .back:hover { text-decoration: underline; }

/* ===== Instagram-Bereich ===== */
.insta {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 clamp(14px, 3vw, 28px);
  text-align: center;
}
.insta-feed { margin-bottom: 20px; }
/* SnapWidget/Behold-Einbettungen responsiv halten */
.insta-feed iframe { max-width: 100%; border: 0; }
.insta-placeholder {
  border: 2px dashed rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 44px 20px;
  color: rgba(255,255,255,.6);
}
.insta-cta {
  display: inline-block;
  background: var(--gelb);
  color: var(--gruen);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background .15s, transform .15s;
}
.insta-cta:hover { background: #fff; transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  padding: 26px 16px 32px;
  background: var(--gruen);
  color: #fff;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.footer-links a:hover { color: var(--gelb); text-decoration: underline; }
.footer-copy { margin: 0; font-size: .85rem; color: rgba(255,255,255,.7); }

/* ===== Mobil ===== */
@media (max-width: 720px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 20px;
    padding: 10px 14px;
  }
  .brand { flex: 0 0 100%; order: -1; text-align: center; }   /* Logo oben, eigene Zeile */
  .brand-logo { margin: 0 auto; }
  .nav { gap: 20px; }                  /* alle Links in einer zentrierten Reihe */
  .nav a { padding-bottom: 14px; }
  #mapStage, #programSection, #socialSection { scroll-margin-top: 150px; }

  .info-panel {
    position: fixed;
    top: 50%; left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%);
    width: min(88vw, 340px);
    max-height: 80vh;
    z-index: 200;                       /* über dem Header */
    /* großflächiger, abgedunkelter Hintergrund als Modal-Overlay */
    box-shadow: 0 0 0 100vmax rgba(0,0,0,.6), 0 14px 34px rgba(0,0,0,.45);
  }
  @keyframes pop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }
}
