:root {
  --wine: #4e0707;
  --red: #8f1d1d;
  --red-bright: #d32020;
  --green: #0f7a35;
  --green-dark: #0b5e28;
  --cream: #f6e7c8;
  --card: #ffffff;
  --text: #fdfefd;
  --muted: rgba(253, 254, 253, .72);
  --line: rgba(255, 255, 255, .16);
  --panel: rgba(255, 255, 255, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* wie Original: Weinrot + Textur */
  background: var(--wine) url("assets/img/bg-texture.jpg") 52% 22%;
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cream); }

/* ---------- Titel ---------- */
.hero { position: relative; height: 72vh; min-height: 380px; max-height: 760px; overflow: hidden; background: #3a3a3a url("assets/media/hero-poster.jpg") center / cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-intro { transition: opacity .8s ease; }
.hero.is-looping .hero-intro { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 45%); }
.hero-text { position: relative; z-index: 1; text-align: center; padding: 6vh 16px 0; }
.hero-welcome { margin: 0; color: var(--red); letter-spacing: .08em; text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 1.5rem); }
.hero h1 { margin: 0; font-family: "UnifrakturMaguntia", serif; font-weight: 400; color: var(--red); font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: 1; }

/* ---------- Seite ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 32px 16px 56px; }

/* Rote Zeile – nur Handy */
.pc-hint { display: none; margin: 0 0 20px; background: var(--red-bright); color: #fff; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 14px 12px; border-radius: 6px; }
@media (max-width: 768px) { .pc-hint { display: block; } }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 6px; text-align: center; }
.btn:hover { background: var(--green-dark); }
.btn-big { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; padding: 22px 28px; width: 100%; }

/* Samichlaus buchen – Knopf */
.booking-cta { max-width: 720px; margin: 0 auto 40px; }

/* Buchungsseite (Overlay) */
.booking-page { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: var(--wine) url("assets/img/bg-texture.jpg") 52% 22%; color: var(--text); overflow-y: auto; }
.booking-page::backdrop { background: var(--wine); }
.bp-bar { position: sticky; top: 0; z-index: 2; padding: 12px 16px; background: rgba(68, 4, 4, .92); border-bottom: 1px solid var(--line); }
.bp-close { border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
.bp-close:hover { background: rgba(255,255,255,.14); }
.bp-inner { max-width: 1100px; margin: 0 auto; padding: 28px 16px 56px; text-align: center; }
.bp-hero { position: relative; margin: 0 0 28px; border-radius: 10px; overflow: hidden; }
.bp-hero img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 35%; }
.bp-hero figcaption { position: absolute; inset: 0; display: grid; place-items: center; font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; font-size: clamp(1.6rem, 5vw, 3.2rem); text-shadow: 0 2px 18px rgba(0,0,0,.6); background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.1)); }
@media (max-width: 600px) { .bp-hero img { aspect-ratio: 4 / 3; } }
.bp-title { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; }
.bp-sub { margin: 0 0 20px; color: var(--muted); }
.bp-warn { display: inline-block; margin: 0 0 32px; background: #fff; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 12px 18px; border-radius: 6px; }
.bp-choose { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--cream); }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type, .bp-esel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 14px; }
.type h3, .bp-esel h3 { margin: 0 0 4px; font-size: 1.15rem; }
.type-note { margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.type-forms { display: flex; justify-content: center; gap: 12px; }
.form-thumb { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; }
.form-thumb img { width: 100px; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .2s; }
.form-thumb:hover img { transform: translateY(-3px); }
.bp-esel { max-width: 320px; margin: 24px auto 0; display: flex; flex-direction: column; align-items: center; }
.bp-info { max-width: 640px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.bp-info p { margin: 0 0 12px; }
.bp-address { font-size: 1.15rem; font-weight: 600; color: var(--cream); }
.bp-region { margin: 24px auto 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.bp-region .bp-sub { margin-top: -10px; }
.bp-region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; text-align: left; }
.bp-map { display: block; background: #fff; border-radius: 10px; padding: 12px; }
.bp-map img { width: 100%; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 700px) { .bp-region-grid { grid-template-columns: 1fr; } }
body.booking-open { overflow: hidden; }
@media (max-width: 900px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .types { grid-template-columns: 1fr; } .form-thumb img { width: 90px; } }

/* Audio-Player */
.audio-block { max-width: 640px; margin: 0 auto 20px; }
.player { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.player.is-playing { border-color: var(--cream); }
.player-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; }
.player-btn:hover { background: var(--green-dark); }
.player-btn:focus-visible, .player-bar:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.player-icon { width: 0; height: 0; margin-left: 4px; border-left: 15px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.player.is-playing .player-icon { margin: 0; width: 14px; height: 16px; border: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.player-main { flex: 1; min-width: 0; }
.player-title { margin: 0 0 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream); }
.player-bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); cursor: pointer; }
.player-bar::before { content: ""; position: absolute; inset: -8px 0; }
.player-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: var(--cream); }
.player-time { display: flex; justify-content: space-between; margin-top: 6px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Schluss / Outro – gleiche Grösse wie die anderen Bilder */
.outro { margin: 48px 0 0; padding-top: 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.outro a { display: block; border-radius: 8px; overflow: hidden; background: #fff; }
.outro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.outro a.is-text img { object-fit: contain; padding: 8px; }
.outro a:hover img { opacity: .85; }
@media (max-width: 700px) { .outro { grid-template-columns: 1fr; } }

/* Wir suchen Dich / Gewand / Telefon */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.info-card { margin: 0; background: var(--card); border: 0; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.info-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; border-radius: 4px; }
.info-card .btn { margin-top: auto; font-size: .95rem; }

/* Bild + Text Abschnitte */
.rows { margin-top: 56px; }
.row { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 5vw, 56px); align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.row-reverse .row-media { order: 2; }
.row-main { display: block; border-radius: 8px; overflow: hidden; }
.row-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.row-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.row-thumbs a { display: block; border-radius: 6px; overflow: hidden; }
.row-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.row-main:hover img, .row-thumbs a:hover img { opacity: .85; }
#nikolaus .row-main img { aspect-ratio: auto; max-height: 460px; object-fit: contain; background: #fff; }
.row-text h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: var(--cream); }
.row-text p { margin: 0 0 14px; }
.row-text .quote { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.2rem; line-height: 1.5; }
.row-text .btn { margin-top: 6px; }
.row-text .player { margin-top: 8px; }
.row-text .player-title { margin: 0 0 8px; font-family: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.list { margin: 0 0 14px; padding-left: 1.2em; }
.rows-info { margin-top: 40px; }
.rows-end { margin-top: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--panel); }
.tel-big { display: block; margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--text); text-decoration: none; line-height: 1.1; }
.list li { margin-bottom: 4px; }

@media (max-width: 900px) {
  .info-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; padding: 36px 0; }
  .row-reverse .row-media { order: 0; }
}
@media (max-width: 600px) {
  .info-cards { grid-template-columns: 1fr; }
  .forms { grid-template-columns: 1fr; }
  .btn-big { font-size: 1.15rem; padding: 18px; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); text-align: center; padding: 28px 16px 36px; color: var(--muted); font-size: .95rem; }
.footer p { margin: 4px 0; }
.footer strong { color: var(--text); }
.footer a { color: var(--text); }
.footer-small { font-size: .82rem; }

/* Bild gross */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.lb-btn { position: fixed; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* =========================================================
   Vergleichs-Version: goldener Sternchen-Hintergrund statt Weinrot
   ========================================================= */
:root {
  --gold-bg: #fbefd6;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 18l3.5 7 7.7 1.1-5.6 5.4 1.3 7.7L30 35.6l-6.9 3.6 1.3-7.7-5.6-5.4 7.7-1.1z' fill='%23c9a24a' fill-opacity='.28'/%3E%3Cg stroke='%239b1c1c' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M118 92v24M106 104h24M109.5 95.5l17 17M126.5 95.5l-17 17'/%3E%3C/g%3E%3Ccircle cx='86' cy='30' r='2.5' fill='%231f3a2c' fill-opacity='.14'/%3E%3Ccircle cx='40' cy='120' r='3' fill='%239b1c1c' fill-opacity='.12'/%3E%3Cpath d='M142 22l2 4 4.4.6-3.2 3.1.8 4.4-4-2.1-4 2.1.8-4.4-3.2-3.1 4.4-.6z' fill='%239b1c1c' fill-opacity='.14'/%3E%3C/g%3E%3C/svg%3E");
  --text: #2a2522;
  --muted: #6e6660;
  --line: rgba(31, 24, 20, .14);
  --panel: rgba(255, 255, 255, .65);
  --cream: #8f1d1d;
}
body, .booking-page { background: var(--gold-bg) var(--pattern); background-size: 160px 160px; color: var(--text); }
.booking-page::backdrop { background: var(--gold-bg); }
.bp-bar { background: rgba(251, 239, 214, .95); }
.bp-warn { background: #fbe1dc; }
.bp-map, .info-card { box-shadow: 0 6px 20px rgba(31,24,20,.10); }
.footer a, a { color: var(--red); }
.btn, .btn:hover { color: #fff; }
.btn-ghost, .bp-close { color: var(--text); }
.player-btn { color: #fff; }

/* Grün -> Weinrot (nicht zu dunkel) */
:root { --green: #a3263a; --green-dark: #86192c; }

/* Titelvideo füllt die ganze erste Seite (wie 8766) */
.hero { height: 100vh; height: 100svh; min-height: 480px; max-height: none; }

/* Startseite etwas gefüllter */
.hero-sub { margin: 10px 0 22px; color: var(--red); font-weight: 600; font-size: clamp(1rem, 2vw, 1.3rem); }
.hero-btn { font-size: 1.1rem; padding: 14px 28px; border-radius: 999px; box-shadow: 0 4px 0 var(--green-dark); }

/* Zeile + Knopf unten links (der Weg in der Mitte bleibt frei) */
.hero-corner { position: absolute; z-index: 1; left: clamp(16px, 4vw, 48px); bottom: clamp(20px, 6vh, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: min(360px, 60vw); }
.hero-corner .hero-sub { margin: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent); }
@media (max-width: 600px) { .hero-corner { max-width: 70vw; } .hero-btn { font-size: 1rem; padding: 12px 22px; } }

/* Zeile + Knopf unten in der Mitte (unterhalb des Wegs) */
.hero-corner { left: 50%; right: auto; transform: translateX(-50%); align-items: center; text-align: center; max-width: 90vw; bottom: clamp(24px, 7vh, 64px); }

/* «Wir suchen Dich» grösser: volle Breite, darunter die anderen zwei */
.info-cards { grid-template-columns: repeat(2, 1fr); }
.info-card:first-child { grid-column: 1 / -1; }
.info-card:first-child img { aspect-ratio: auto; max-height: none; }
@media (max-width: 600px) { .info-cards { grid-template-columns: 1fr; } }

/* Esel-Kurs-Player im Esel-Abschnitt */
#esel .player { margin-top: 18px; }

/* Buchungsseite: «Mit Esel buchen?» */
.bp-esel-hint { margin: -4px 0 18px; font-size: 1.15rem; font-weight: 700; }
.bp-esel-hint a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* Titel «Samichlaus Lebt»: Regano (sobald die gekaufte Datei in assets/fonts liegt),
   bis dahin die ähnliche freie Schrift Grenze Gotisch */
@font-face {
  font-family: "Regano";
  src: url("assets/fonts/Regano.woff2") format("woff2"), url("assets/fonts/Regano.otf") format("opentype"), url("assets/fonts/Regano.ttf") format("truetype");
  font-display: swap;
}
.hero h1 { font-family: "Regano", "Grenze Gotisch", "UnifrakturMaguntia", serif; font-weight: 600; letter-spacing: .01em; }

/* Regano hat nur eine Strichstärke: kein künstliches Fett */
.hero h1 { font-weight: 400; font-synthesis: none; }

/* Mehr Abstand zwischen «Herzlich Willkommen» und «Samichlaus Lebt» */
.hero h1 { margin-top: clamp(14px, 2.5vh, 28px); }

/* Grossansicht: jedes Bild füllt den verfügbaren Platz (auch kleinere Flyer) */
.lightbox img { width: 92vw; height: 88vh; max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 0; }

/* Nikolaus-Bild: Seitenstreifen im gleichen Grau wie der Bildhintergrund statt weiss */
#nikolaus .row-main, #nikolaus .row-main img { background: #edf0f0; }

/* Nikolaus-Bild: Rahmen genau so breit wie das Bild – keine Seitenstreifen */
#nikolaus .row-main { width: fit-content; max-width: 100%; margin-inline: auto; background: none; }
#nikolaus .row-main img { width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: initial; background: none; }

/* Nikolaus-Bild: Bild selbst seitlich mit passendem Papiergrund erweitert (quadratisch),
   daher wieder volle Rahmengrösse wie vorher – ohne Streifen */
#nikolaus .row-main { width: auto; max-width: 460px; margin-inline: auto; background: none; }
#nikolaus .row-main img { width: 100%; height: auto; max-height: none; aspect-ratio: 1 / 1; object-fit: cover; background: none; }

/* Schlussgruss unter «Hat es euch gefallen?», über dem Fussbereich */
.schlussgruss { margin: 56px auto 8px; max-width: 900px; text-align: center; color: var(--cream); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.25; }

/* Schlussgruss in Regano, etwas kleiner */
.schlussgruss { font-family: "Regano", "Grenze Gotisch", "UnifrakturMaguntia", serif; font-weight: 400; font-synthesis: none; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; }

/* Schlussgruss etwas dünner: feiner Rand in Hintergrundfarbe schmälert die Striche */
.schlussgruss { -webkit-text-stroke: 1.1px var(--gold-bg, #fbefd6); paint-order: normal; }
.schlussgruss { -webkit-text-stroke-width: .6px; }
.schlussgruss { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }

/* Cursor: gelber Stern (nur Geräte mit Maus) */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, summary, [role="slider"], label {
    cursor: url("assets/cursor-star.png?v=2") 16 16, auto;
    cursor: -webkit-image-set(url("assets/cursor-star.png?v=2") 1x, url("assets/cursor-star@2x.png?v=2") 2x) 16 16, auto;
  }
}
