/* Tungeler Markt
   Leitmotiv: gelbes Ortsschild (DIN-Schrift) als einziges lautes Element,
   sonst ruhig: Tannengrün, Kalkweiß. Keine externen Ressourcen. */

:root {
  --tanne: #1d3a2c;
  --tanne-tief: #142a20;
  --nacht: #0d1b14;
  --gelb: #f4c300;
  --kalk: #f7f8f4;
  --weiss: #ffffff;
  --schiefer: #222825;
  --grau: #4d5751;
  --linie: #d6dbd3;
  --holz: #8a5a2b;
  --pfahl: #7d8781;

  --din: "DIN Condensed", "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Arial Narrow", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);

  /* Seitenverhältnis des Teaser-Videos (Fallback, main.js setzt den echten Wert) */
  --video-ratio: 16 / 9;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--schiefer);
  background: var(--kalk);
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--tanne); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--schiefer);
  border-radius: 2px;
}

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--gelb); color: #000; padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Überschriften in DIN – wie die Beschriftung eines Ortsschilds */
h1, h2, .sign, .plate, .eyebrow, .countdown__value, .expect__list li::before, .doorplate__title {
  font-family: var(--din);
  font-weight: 700;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--tanne); max-width: 22ch; margin-bottom: 1rem; text-wrap: balance; }
h3 { font-size: 1.2rem; }

.eyebrow {
  display: inline-block; margin: 0 0 0.9rem;
  font-size: 1.15rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--tanne);
  padding: 0.45rem 0.7rem 0.3rem; background: var(--gelb); border-radius: 4px;
}

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--tanne);
  color: var(--weiss);
}
.top__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--weiss); text-decoration: none; font-weight: 700; line-height: 1.15; }
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand__name { font-size: 0.98rem; }
.brand__place { display: block; font-weight: 400; opacity: 0.85; }
.top__nav { margin-left: auto; }
.top__nav ul { display: flex; gap: 0.25rem; list-style: none; }
.top__nav a, .top__cta {
  display: block; padding: 0.5rem 0.7rem; color: var(--weiss); text-decoration: none; font-size: 0.95rem;
}
.top__nav a:hover { text-decoration: underline; }
.top__cta {
  border: 1.5px solid var(--gelb); border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.top__cta:hover { background: var(--gelb); color: #000; }

/* Unter 860 px: Anker als schlanke, horizontal scrollbare Leiste unter der Kopfzeile (ohne JS) */
@media (max-width: 860px) {
  html { scroll-padding-top: 6.5rem; }
  .top__inner { flex-wrap: wrap; column-gap: 1rem; row-gap: 0; }
  .top__cta { margin-left: auto; font-size: 0.9rem; padding: 0.4rem 0.8rem; }
  .top__nav {
    order: 3; flex: 0 0 auto;
    width: calc(100% + 2 * var(--gap)); margin: 0.35rem calc(-1 * var(--gap)) 0;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .top__nav::-webkit-scrollbar { display: none; }
  .top__nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .top__nav ul { padding-right: 2.5rem; }
  .top__nav ul { width: max-content; padding: 0 calc(var(--gap) - 0.6rem); gap: 0; }
  .top__nav a { padding: 0.55rem 0.6rem; font-size: 0.92rem; white-space: nowrap; }
  .top__nav a:focus-visible { outline-offset: -3px; box-shadow: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 6px;
}
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn--sign {
  background: var(--gelb); color: #111;
  box-shadow: inset 0 0 0 2px var(--gelb), inset 0 0 0 4px #111;
}
.btn--sign:hover { background: #ffd633; }
.btn--line { color: var(--tanne); box-shadow: inset 0 0 0 2px var(--tanne); }
.btn--line:hover { background: var(--tanne); color: var(--weiss); }
.btn--line-light { color: var(--weiss); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.75); }
.btn--line-light:hover { background: var(--weiss); color: var(--tanne); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; gap: var(--gap); align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 0.98;
  color: var(--tanne);
  max-width: 14ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero__lead { font-size: 1.15rem; max-width: 36rem; color: var(--schiefer); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 2rem; }
.hero__facts { display: grid; gap: 0.9rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--linie); max-width: 36rem; }
.hero__facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; }
.hero__facts dt { color: var(--grau); font-size: 0.95rem; }
.hero__facts dd { margin: 0; font-weight: 600; }

/* Countdown – nur sichtbar, wenn JavaScript läuft (Progressive Enhancement) */
.countdown { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; }
.countdown[hidden] { display: none; }
.countdown__label { color: var(--grau); font-size: 0.95rem; }
.countdown__value { font-size: 1.9rem; line-height: 1; color: var(--tanne); padding-top: 0.12em; }

/* Ortsschild an zwei Pfählen, darunter ein Zusatzzeichen mit dem Termin */
.hero__visual {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; align-content: center;
  min-height: 24rem; padding: 2.5rem 1.25rem 4.25rem;
  background:
    radial-gradient(120% 80% at 50% 0%, #2a4d3c 0%, transparent 70%),
    var(--tanne);
  border-radius: 6px;
}
.hero__visual::after { /* Grasnarbe */
  content: ""; position: absolute; inset: auto 0 0 0; height: 3rem; background: var(--tanne-tief);
}
.signpost { position: relative; z-index: 1; display: grid; justify-items: center; }
.signpost::before, .signpost::after { /* die beiden Pfähle */
  content: ""; position: absolute; z-index: -1; top: 30%; bottom: -10rem;
  width: 0.55rem; background: var(--pfahl); border-radius: 2px;
}
.signpost::before { left: 22%; }
.signpost::after { right: 22%; }

.sign {
  display: grid; justify-items: center; gap: 0.15rem;
  padding: 1rem 2.4rem 0.9rem;
  min-width: min(22rem, 100%);
  background: var(--gelb); color: #111;
  border-radius: 12px;
  box-shadow: inset 0 0 0 6px var(--gelb), inset 0 0 0 9px #111, 0 18px 34px -14px rgba(0, 0, 0, 0.6);
}
.sign__big { font-size: clamp(3.4rem, 7vw, 5.2rem); line-height: 1; padding-top: 0.12em; }
.sign__small { font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.1; }

.plate {
  margin-top: 0.7rem;
  display: grid; justify-items: center;
  padding: 0.6rem 1.3rem 0.45rem;
  background: var(--weiss); color: #111;
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px var(--weiss), inset 0 0 0 6.5px #111, 0 14px 28px -14px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.plate__big { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1; padding-top: 0.1em; }
.plate__small { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.15; }

@media (max-width: 899px) {
  .hero { padding-top: 1rem; }
  .hero__visual { order: -1; min-height: 0; padding: 1.75rem 1rem 3.25rem; }
  .hero__visual::after { height: 2.25rem; }
  .sign { min-width: 0; padding: 0.7rem 1.6rem 0.6rem; box-shadow: inset 0 0 0 4px var(--gelb), inset 0 0 0 6.5px #111, 0 12px 24px -12px rgba(0, 0, 0, 0.6); }
  .sign__big { font-size: 3rem; }
  .sign__small { font-size: 0.95rem; }
  .plate { margin-top: 0.5rem; padding: 0.45rem 1rem 0.35rem; }
  .plate__big { font-size: 1.45rem; }
  .plate__small { font-size: 0.92rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero__actions { margin: 1.25rem 0 1.5rem; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 6fr 5fr; }
}

/* ---------- Teaser-Video ---------- */
.teaser { background: var(--tanne-tief); color: #e3eae5; padding: var(--section) 0; }
.teaser h2 { color: var(--weiss); }
.teaser__head { display: grid; gap: 0.5rem 3rem; margin-bottom: 2rem; }
.teaser__head p { max-width: 36rem; margin: 0; }
@media (min-width: 900px) {
  .teaser__head { grid-template-columns: 1fr 1fr; align-items: end; }
}

.video { margin: 0; }
.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-ratio);
  max-height: min(82vh, 46rem);  /* Hochformat bleibt auf dem Bildschirm, Rest wird dunkel aufgefüllt */
  background: var(--nacht);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.video__frame video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--nacht);
}
.video figcaption { margin-top: 0.9rem; font-size: 0.95rem; color: #c4d0c7; }
.video figcaption a, .video__notice a { color: var(--weiss); }
.video__notice {
  margin: 1rem 0 0; padding: 0.8rem 1rem;
  background: rgba(244, 195, 0, 0.12); border-left: 4px solid var(--gelb); color: var(--weiss);
}
.video__notice[hidden] { display: none; }

/* ---------- Was dich erwartet ---------- */
.expect { background: var(--weiss); padding: var(--section) 0; border-bottom: 1px solid var(--linie); }
.expect__grid { display: grid; gap: calc(var(--gap) * 1.5); }
.expect__intro p { max-width: 34rem; color: var(--grau); }

.range { list-style: none; display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.range li {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--linie);
  font-weight: 600; font-size: 1.1rem;
}
.range li::before {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem;
  background: var(--holz); border-radius: 1px; transform: translateY(-0.1em);
}

.expect__list { list-style: none; counter-reset: punkt; display: grid; gap: 2rem; align-content: start; }
.expect__list li {
  counter-increment: punkt;
  display: grid; grid-template-columns: 4.25rem 1fr; column-gap: 1.25rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--linie);
}
.expect__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.expect__list li::before {
  content: counter(punkt);
  grid-row: span 2;
  display: grid; place-items: center;
  width: 4.25rem; height: 4.25rem; padding-top: 0.2em;
  font-size: 2.6rem; line-height: 1;
  color: var(--tanne); background: var(--kalk);
  border: 2px solid var(--tanne); border-radius: 50%;
}
.expect__list h3 { font-size: 1.35rem; margin: 0.35rem 0 0.4rem; color: var(--tanne); }
.expect__list p { margin: 0; max-width: 34rem; }
.expect__note { margin-top: 2rem; color: var(--grau); font-size: 0.98rem; max-width: 34rem; }

@media (min-width: 900px) {
  .expect__grid { grid-template-columns: 5fr 6fr; align-items: start; }
}

/* ---------- Eröffnung & Anfahrt ---------- */
.visit { background: var(--tanne); color: #eef2ee; padding: var(--section) 0; }
.visit h2 { color: var(--weiss); }
.visit__grid { display: grid; gap: calc(var(--gap) * 1.5); }
.visit a:not(.btn) { color: var(--weiss); }
.visit__intro { max-width: 34rem; }

.doorplate {
  max-width: 26rem; margin-top: 1.5rem;
  background: var(--weiss); color: var(--schiefer);
  border-radius: 8px; padding: 1.4rem 1.6rem 1.2rem;
  box-shadow: inset 0 0 0 4px var(--weiss), inset 0 0 0 6px var(--tanne);
}
.doorplate__title { font-size: 1.8rem; line-height: 1; color: var(--tanne); margin: 0 0 0.8rem; padding-top: 0.1em; }
.doorplate table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doorplate th, .doorplate td { padding: 0.42rem 0; border-bottom: 1px dotted #b9c1b8; text-align: left; vertical-align: top; }
.doorplate th { font-weight: 400; padding-right: 1rem; }
.doorplate td { text-align: right; font-weight: 700; }
.doorplate__note { margin: 0.9rem 0 0; font-size: 0.93rem; color: var(--grau); }

.visit__way h3 { font-size: 1.35rem; color: var(--gelb); margin: 0.25rem 0 0.9rem; }
.visit__way address { font-style: normal; font-size: 1.3rem; font-weight: 600; line-height: 1.45; margin-bottom: 1.1rem; }
.visit__way p { max-width: 34rem; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.visit__hint { font-size: 0.9rem; color: #c4d0c7; }

@media (min-width: 900px) {
  .visit__grid { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* ---------- Instagram ---------- */
.social { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.social__inner {
  display: grid; gap: 1.25rem 2.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--weiss); border: 1px solid var(--linie); border-left: 6px solid var(--gelb); border-radius: 6px;
}
.social h2 { margin-bottom: 0.5rem; }
.social p { margin: 0; color: var(--grau); max-width: 36rem; }
@media (min-width: 760px) {
  .social__inner { grid-template-columns: 1fr auto; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--weiss); padding: var(--section) 0; border-block: 1px solid var(--linie); }
.faq__grid { display: grid; gap: var(--gap); }
.faq__head p { max-width: 26rem; color: var(--grau); }
.faq__list { border-top: 2px solid var(--tanne); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.faq summary::after {
  content: ""; flex: none; width: 0.8rem; height: 0.8rem;
  border-right: 2.5px solid var(--tanne); border-bottom: 2.5px solid var(--tanne);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover .faq__q { text-decoration: underline; text-underline-offset: 0.2em; }
.faq details p { padding: 0 0.25rem 1.2rem; margin: 0; max-width: 42rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 4fr 7fr; }
}

/* ---------- Fußzeile ---------- */
.foot { background: var(--tanne-tief); color: #d3ddd6; padding: 2rem 0; font-size: 0.93rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; }
.foot p { margin: 0; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot a { color: var(--weiss); }
.foot .foot__credit { margin-left: auto; }
@media (max-width: 700px) { .foot .foot__credit { margin-left: 0; } }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: var(--section) 0; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-family: var(--din); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--tanne); margin-bottom: 1.25rem; }
.legal h2 { font-size: 1.6rem; margin: 2rem 0 0.6rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.3rem; }
