/* Whisky-Tram – bewusst ohne externe Fonts/Skripte (DSGVO, keine Drittanbieter)
   Farben: helles Creme, Honig/Bernstein als Akzent, Grün der Albtalbahn als Zweitfarbe */
:root {
  --bg: #fffdf7;
  --bg-alt: #f5f0e3;
  --card: #ffffff;
  --ink: #2b2925;
  --ink-soft: #5f5a50;
  --accent: #b0650a;        /* Buttons, Zahlen – weißer Text darauf ≥ 4.5:1 */
  --accent-hover: #8f5208;
  --accent-soft: #fbe9c8;
  --green: #2e6b3e;
  --green-soft: #e3efe1;
  --line: #e6dcc6;
  --shadow: 0 6px 24px rgba(60, 45, 20, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 70rem;
  --radius: .8rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a17;
    --bg-alt: #23221e;
    --card: #2a2924;
    --ink: #f2ede2;
    --ink-soft: #c8c0b0;
    --accent: #e3a04a;
    --accent-hover: #f0b566;
    --accent-soft: #3a2f1e;
    --green: #8cc79a;
    --green-soft: #22301f;
    --line: #3b3830;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  }
  .btn { color: #1b1a17; }
  .btn:hover { color: #1b1a17; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-alt); }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; }
.brand { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.brand img { width: 1.6rem; }
.topbar nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.topbar nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.topbar nav a:hover { color: var(--accent); }
@media (max-width: 680px) { .topbar nav { display: none; } }

/* Hero */
.hero { padding: 3.5rem 0 4.5rem; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 2rem; } }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); margin: 0 0 1rem; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 32rem; margin: 0 0 1.6rem; }

.badge {
  display: inline-block; background: var(--green-soft); color: var(--green);
  border-radius: 999px; padding: .35rem 1rem; font-size: .9rem; font-weight: 600; margin-bottom: 1.5rem;
}
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; margin: 0 .5rem .5rem 0;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost { background: transparent; border: 2px solid var(--accent); color: var(--accent); padding: calc(.8rem - 2px) calc(1.5rem - 2px); }
.btn.ghost:hover { background: var(--accent-soft); }

/* Fotos */
figure { margin: 0; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.photo-43 { aspect-ratio: 4 / 3; }
.photo-34 { aspect-ratio: 3 / 4; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.2rem; margin-top: 2rem; max-width: 54rem; }
.gallery img { aspect-ratio: 3 / 2; }

/* Fakten */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.fact .num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; display: block; margin-bottom: .4rem; }
.fact p { margin: 0; color: var(--ink-soft); }

/* Zwei Spalten */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.split.media-left { grid-template-columns: 1fr 1.6fr; }
.split figure { max-width: 24rem; width: 100%; justify-self: end; }
.split.media-left figure { justify-self: start; }


/* Ablauf */
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 3px solid var(--green); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -.6rem; top: .3rem;
  width: .9rem; height: .9rem; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--green);
}
.timeline time { font-weight: 700; color: var(--green); display: block; }
.timeline p { margin: .2rem 0 0; color: var(--ink-soft); }

.mottos { margin: 1rem 0 0; }
.mottos dt { display: inline-block; background: var(--accent-soft); border-radius: 999px; padding: .35rem 1rem; font-size: .95rem; font-weight: 600; }
.mottos dd { margin: .5rem 0 1.2rem; color: var(--ink-soft); }
.mottos dd:last-child { margin-bottom: 0; }

/* Termine */
.callout {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; max-width: 46rem; box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }
.notes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.notes li { background: var(--green-soft); color: var(--ink); border-radius: .5rem; padding: .55rem .9rem; font-size: .95rem; }
.notes b { color: var(--green); }

/* FAQ */
.faq { max-width: 50rem; }
details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: .6rem 0 0; color: var(--ink-soft); }

/* Footer */
footer { background: var(--green); color: #f4f8f2; padding: 2.5rem 0; font-size: .95rem; }
@media (prefers-color-scheme: dark) { footer { background: #1f3324; } }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer a { color: #f4f8f2; }
footer nav { display: flex; gap: 1.2rem; }

/* Rechtstexte */
.legal { padding: 3rem 1rem 4rem; max-width: 46rem; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }

.todo { background: #fff3b0; color: #4a3b00; padding: 0 .25rem; border-radius: .2rem; }

.mt { margin-top: 1.6rem; }
.intro { max-width: 46rem; }
.photo-34 { max-height: 26rem; object-position: center 30%; }
@media (max-width: 860px) { .photo-34 { aspect-ratio: 4 / 3; } .split figure { justify-self: start; } }

/* Vollbild-Abschnitte: Foto über die ganze Breite, Text darüber */
.fullbleed { position: relative; overflow: hidden; padding: 0; display: flex; color: #fff; background: #2b2925; }
.fullbleed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fullbleed::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fullbleed-text { position: relative; z-index: 1; width: 100%; }
.fullbleed h1, .fullbleed h2 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.fullbleed .lead { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }

.hero.fullbleed { min-height: min(86vh, 46rem); align-items: flex-start; }
.hero.fullbleed .fullbleed-img { object-position: 45% 60%; }
.hero.fullbleed::after { background: linear-gradient(180deg, rgba(20,22,24,.55) 0%, rgba(20,22,24,.15) 45%, rgba(20,22,24,0) 70%); }
.hero.fullbleed .fullbleed-text { padding-top: clamp(2.5rem, 7vh, 5rem); padding-bottom: 3rem; }
.hero.fullbleed .lead { max-width: 36rem; }
.hero.fullbleed .badge { background: rgba(255,255,255,.9); }
.btn.ghost.light { border-color: #fff; color: #fff; }
.btn.ghost.light:hover { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 680px) {
  .hero.fullbleed { min-height: 78vh; }
  .hero.fullbleed .fullbleed-img { object-position: 30% 60%; }
  .hero.fullbleed::after { background: linear-gradient(180deg, rgba(20,22,24,.65) 0%, rgba(20,22,24,.3) 55%, rgba(20,22,24,.1) 100%); }
}

.team.fullbleed { min-height: min(80vh, 44rem); align-items: flex-end; }
.team.fullbleed .fullbleed-img { object-position: 50% 62%; }
.team.fullbleed::after { background: linear-gradient(0deg, rgba(20,22,24,.75) 0%, rgba(20,22,24,.2) 35%, rgba(20,22,24,0) 55%); }
.team.fullbleed .fullbleed-text { padding-bottom: 2.5rem; }
.team.fullbleed h2 { margin: 0; max-width: 40rem; }
.hero.fullbleed .wrap { display: block; }
.hero.fullbleed p.lead { color: #fff; }
.hero.fullbleed .fullbleed-text { padding-top: clamp(1.8rem, 5vh, 3.5rem); }
.hero.fullbleed h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: .6rem; }
.hero.fullbleed p.lead { font-size: 1.15rem; margin-bottom: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.hero-actions .btn { margin: 0; }
.hero-actions .badge { margin: 0; }
.team.fullbleed { min-height: min(70vh, 38rem); }
.team.fullbleed .fullbleed-img { object-position: 50% 78%; }
/* Handy: Startbild oben, Text darunter – sonst verdeckt der Text die Bahn */
@media (max-width: 680px) {
  .hero.fullbleed { display: block; min-height: 0; background: var(--bg); color: var(--ink); }
  .hero.fullbleed::after { display: none; }
  .hero.fullbleed .fullbleed-img { position: relative; height: 62vw; object-position: 35% 60%; }
  .hero.fullbleed h1, .hero.fullbleed p.lead { color: var(--ink); text-shadow: none; }
  .hero.fullbleed p.lead { color: var(--ink-soft); }
  .hero.fullbleed .fullbleed-text { padding-top: 1.8rem; }
  .hero.fullbleed .badge { background: var(--green-soft); }
  .btn.ghost.light { border-color: var(--accent); color: var(--accent); }
  .team.fullbleed { min-height: 75vh; }
}

@media (max-width: 860px) { .split, .split.media-left { grid-template-columns: 1fr; gap: 2rem; } }
/* Handy: Teamfoto komplett zeigen (sonst fehlt rechts eine Person), Text unten darüber */
@media (max-width: 680px) {
  .team.fullbleed { display: block; min-height: 0; }
  .team.fullbleed .fullbleed-img { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .team.fullbleed .fullbleed-text { position: absolute; bottom: 0; left: 0; padding-bottom: 1rem; }
  .team.fullbleed h2 { font-size: 1.35rem; }
}

.vehicles { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .5rem 2.5rem; max-width: 54rem; margin: 1.2rem 0; }
.vehicles h3 { color: var(--green); }
.vehicles p { margin-top: 0; }

/* Parallax nur am Desktop: Foto bleibt stehen, die Seite gleitet darüber.
   Trick: Abschnitt clippt, Bild ist viewport-fixiert. Auf Touch-Geräten und bei
   reduzierter Bewegung bleibt es beim normalen Mitscrollen. */
@media (min-width: 861px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fullbleed { clip-path: inset(0); }
  .fullbleed .fullbleed-img { position: fixed; inset: 0; width: 100vw; height: 100vh; }
  .hero.fullbleed .fullbleed-img { object-position: 45% 70%; }
  .team.fullbleed .fullbleed-img { object-position: 50% 65%; }
}

/* Bildband ohne Text (eingeschenkte Gläser) */
.band.fullbleed { min-height: min(45vh, 26rem); }
/* kein Parallax: der Ausschnitt muss stabil auf der Flaschenreihe bleiben */
.band.fullbleed .fullbleed-img,
.fullbleed.band .fullbleed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 42%; }
@media (max-width: 680px) { .band.fullbleed { min-height: 14rem; } }

/* Stimmungsbilder unter der Moderation */
.mood { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 3rem; }
.mood img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 680px) { .mood { grid-template-columns: 1fr; } }

/* Lightbox (Fahrzeugbilder) */
a.zoom { display: block; cursor: zoom-in; border-radius: var(--radius); }
a.zoom img { transition: transform .2s ease, box-shadow .2s ease; }
a.zoom:hover img { transform: scale(1.02); }
a.zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh;
  overflow: visible; cursor: zoom-out;
}
dialog.lightbox::backdrop { background: rgba(15, 14, 12, .88); }
dialog.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: .4rem; margin: 0 auto; }
.lightbox-caption { color: #f2ede2; text-align: center; margin: .6rem 0 0; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: .6rem; right: .6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.hero.fullbleed .lead { max-width: 46rem; }
.hero.fullbleed::after { background: linear-gradient(180deg, rgba(20,22,24,.62) 0%, rgba(20,22,24,.25) 40%, rgba(20,22,24,0) 62%); }
@media (min-width: 681px) and (max-height: 820px) {
  .hero.fullbleed .fullbleed-text { padding-top: 1.4rem; }
  .hero.fullbleed h1 { font-size: 2.5rem; margin-bottom: .4rem; }
  .hero.fullbleed p.lead { font-size: 1.05rem; margin-bottom: .9rem; line-height: 1.55; }
}
@media (max-width: 680px) { .hero.fullbleed::after { display: none; } }

/* Terminliste */
.dates { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 50rem; }
@media (max-width: 680px) { .dates { grid-template-columns: repeat(2, 1fr); } }
.dates li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.date-day { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.date-month { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-top: .2rem; }
.date-meta { color: var(--ink-soft); font-size: .92rem; margin-top: .4rem; }
.date-status { align-self: flex-start; margin-top: .8rem; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 600; }
.date-book {
  align-self: flex-start; margin-top: .8rem; background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 999px; padding: .3rem .9rem; font-size: .88rem; font-weight: 600;
}
.date-book:hover { background: var(--accent-hover); color: #fff; }
@media (prefers-color-scheme: dark) { .date-book, .date-book:hover { color: #1b1a17; } }
