/* ==========================================================================
   Vier Brüder – Stylesheet
   Farben, Schriften und Abstände stehen als Variablen ganz oben.
   ========================================================================== */

@font-face {
  font-family: "Fraunces Soft";
  src: url("../fonts/fraunces-soft-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Soft";
  src: url("../fonts/fraunces-soft-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben */
  --orange: #ff5a1f;
  --orange-hell: #ff8a3d;
  --orange-tief: #c93c08;
  --wein: #74111e;
  --wein-tief: #520a14;
  --creme: #fff3e3;
  --sand: #f7e4c9;
  --espresso: #2a120b;
  --holz: #d9a25b;

  /* Flächen (hell/dunkel umschaltbar) */
  --flaeche: var(--creme);
  --flaeche-2: var(--sand);
  --text: var(--espresso);
  --text-leise: #6b4a3a;
  --linie: rgba(42, 18, 11, 0.16);
  --akzent: var(--orange-tief);

  --schrift-titel: "Fraunces Soft", Georgia, "Times New Roman", serif;
  --schrift-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rand: clamp(16px, 4vw, 56px);
  --breite: 1320px;
  --radius: clamp(18px, 2.2vw, 30px);
  --kopf-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --flaeche: #1d0c07;
    --flaeche-2: #2a140c;
    --text: #fbead6;
    --text-leise: #d6b8a1;
    --linie: rgba(255, 243, 227, 0.16);
    --akzent: var(--orange-hell);
    color-scheme: dark;
  }
}

/* --- Grundlagen ---------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-h) + 12px);
}

body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--schrift-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 700; }

h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.huelle {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.1rem;
  font: 700 0.78rem/1 var(--schrift-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--akzent);
}
.kicker::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, transparent 0 22%, currentColor 0 28%, transparent 0 47%, currentColor 0 53%, transparent 0 72%, currentColor 0 78%, transparent 0 97%, currentColor 0),
    radial-gradient(circle, transparent 0 50%, currentColor 52% 100%);
  -webkit-mask: radial-gradient(circle, #000 70%, transparent 71%);
          mask: radial-gradient(circle, #000 70%, transparent 71%);
  opacity: 0.9;
}

.einleitung {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-leise);
  max-width: 38em;
}

.abschnitt { padding-block: clamp(72px, 10vw, 140px); }

.unsichtbar {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sprung {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--wein);
  font-weight: 700;
  text-decoration: none;
}
.sprung:focus { top: 12px; }

/* --- Knöpfe -------------------------------------------------------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.1 var(--schrift-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: translateY(0); }
.knopf svg { width: 1.25em; height: 1.25em; flex: none; }

.knopf-wein { background: var(--wein); color: var(--creme); }
.knopf-wein:hover { background: var(--wein-tief); }
.knopf-creme { background: var(--creme); color: var(--wein); }
.knopf-creme:hover { background: #fff; }
.knopf-rand { border-color: currentColor; background: transparent; }
.knopf-rand:hover { background: rgba(255, 243, 227, 0.12); }

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Kopfzeile ----------------------------------------------------------- */

.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  color: var(--creme);
}
.kopf-innen {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
  height: var(--kopf-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.kopf-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font: 850 1.3rem/1 var(--schrift-titel);
  letter-spacing: -0.01em;
}
.kopf-logo svg { width: 38px; height: 38px; flex: none; }

.hauptnav ul { display: flex; gap: clamp(14px, 2vw, 30px); margin-right: clamp(8px, 1.5vw, 20px); }
.hauptnav a {
  position: relative;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 6px 0;
}
.hauptnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.hauptnav a:hover::after,
.hauptnav a[aria-current="true"]::after { transform: scaleX(1); }

.kopf .knopf { min-height: 44px; padding: 0.6em 1.15em; font-size: 0.95rem; }
.kopf-wa { width: 44px; padding: 0 !important; }
.kopf-wa svg { width: 22px; height: 22px; }

.menue-knopf {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--creme);
  cursor: pointer;
  position: relative;
}
.menue-knopf span,
.menue-knopf span::before,
.menue-knopf span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menue-knopf span { top: 50%; margin-top: -1px; }
.menue-knopf span::before,
.menue-knopf span::after { content: ""; left: 0; margin-left: 0; }
.menue-knopf span::before { transform: translateY(-6px); }
.menue-knopf span::after { transform: translateY(6px); }
.menue-offen .menue-knopf span { background: transparent; }
.menue-offen .menue-knopf span::before { transform: rotate(45deg); background: var(--creme); }
.menue-offen .menue-knopf span::after { transform: rotate(-45deg); background: var(--creme); }

/* kompakte Leiste nach dem Scrollen */
.kopf.kompakt {
  position: fixed;
  background: var(--wein);
  box-shadow: 0 1px 0 rgba(255, 243, 227, 0.14), 0 6px 24px rgba(42, 18, 11, 0.18);
  animation: kopf-rein 0.35s ease both;
}
.kopf.kompakt .kopf-logo { display: inline-flex; }
@keyframes kopf-rein {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Menü-Overlay (Handy/Tablet) */
.menue {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: calc(var(--kopf-h) + 24px) var(--rand) 40px;
  background: var(--wein);
  color: var(--creme);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.menue-offen .menue { visibility: visible; opacity: 1; transition: opacity 0.25s ease; }
.menue ul { display: grid; gap: 6px; }
.menue a:not(.knopf) {
  font: 850 clamp(2.2rem, 9vw, 3.4rem)/1.1 var(--schrift-titel);
  text-decoration: none;
}
.menue a:not(.knopf):hover { color: var(--orange-hell); }
.menue .knoepfe .knopf { flex: 1 1 200px; }
.menue-offen { overflow: hidden; }
.menue-offen .kopf { position: fixed; background: transparent; box-shadow: none; animation: none; }
.menue-offen .kopf .kopf-logo { display: inline-flex; }
.menue-offen .kopf-wa,
.menue-offen .kopf-anfrage { visibility: hidden; }

/* --- Startbereich (Held) ------------------------------------------------- */

.held {
  position: relative;
  background: var(--orange);
  color: var(--espresso);
}

/* Angeheftet: Der Startbereich bleibt stehen, während der Wagen einfährt.
   Höhe der Bühne und Klebeposition setzt main.js. */
.buehne { background: var(--orange); }
.buehne.angeheftet { height: var(--buehne-h, auto); }
.buehne.angeheftet .held { position: sticky; top: var(--klebe-oben, 0px); }

.held-raster {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}

.held-tafel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 3;
  margin-right: clamp(-56px, -3vw, -24px);
  padding: clamp(20px, min(2.6vw, 3svh), 40px) clamp(26px, 3vw, 48px) clamp(24px, min(3.4vw, 4svh), 52px);
  background: var(--wein);
  color: var(--creme);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 30px 60px -30px rgba(42, 18, 11, 0.55);
}

.tafel-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, min(5vw, 5svh), 64px);
  text-decoration: none;
}
.tafel-logo svg { width: clamp(52px, 5vw, 66px); height: auto; flex: none; }
.logo-name {
  display: block;
  font: 850 clamp(1.6rem, 2.3vw, 2rem)/1 var(--schrift-titel);
  letter-spacing: -0.01em;
}
.logo-claim {
  display: block;
  margin-top: 6px;
  font: 700 0.7rem/1 var(--schrift-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.held h1 {
  font-size: clamp(2.5rem, min(5.4vw, 7.2svh), 5.2rem);
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 0.35em;
}
.held h1 em { color: var(--orange-hell); font-weight: 800; }

.held-text {
  font-size: clamp(1.02rem, min(1.35vw, 2.1svh), 1.2rem);
  max-width: 30em;
  margin-bottom: 1.3em;
  color: rgba(255, 243, 227, 0.88);
}

/* Foto läuft bis an den rechten Bildschirmrand – auf großen Bildschirmen
   (ab 1560 px) endet es bündig mit dem Inhalt, damit der Kopf mittig bleibt */
.held-foto {
  grid-area: 1 / 2;
  position: relative;
  margin-top: calc(var(--kopf-h) + 18px);
  margin-left: clamp(16px, 3vw, 48px);
  margin-right: calc(-1 * max(var(--rand), (100vw - var(--breite)) / 2));
  z-index: 1;
}
.held-foto img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 35%;
  max-height: 54svh;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: 0 40px 70px -40px rgba(42, 18, 11, 0.7);
}
@media (min-width: 1560px) {
  .held-foto { margin-right: 0; }
  .held-foto img { border-radius: var(--radius); aspect-ratio: 3 / 2; }
}

.stempel {
  position: absolute;
  right: clamp(28px, 5vw, 80px);
  bottom: clamp(-38px, -2.8vw, -22px);
  width: clamp(110px, 11vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--creme);
  color: var(--wein);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -12px rgba(42, 18, 11, 0.5);
  transform: rotate(-8deg);
}
.stempel-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: drehen 22s linear infinite; }
.stempel text {
  font: 800 8.6px var(--schrift-text);
  text-transform: uppercase;
  fill: currentColor;
}
.stempel-mitte { width: 40%; height: auto; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* --- Fahrt: der Wagen fährt ins Bild -------------------------------------- */

.fahrt {
  --wagen-b: clamp(280px, min(43vw, 36svh * 809 / 525), 640px);
  --wagen-h: calc(var(--wagen-b) * 525 / 809);
  --enthuell-faktor: 0.55;
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(var(--wagen-h) + 12px);
  margin-top: clamp(16px, min(4vw, 4svh), 90px);
  overflow-x: clip;
  overflow-y: visible;
}

.fahrt-text {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--rand), var(--breite));
  margin: 0 auto;
  padding: 0 calc(var(--wagen-b) + 40px) calc(var(--wagen-h) * 0.18) 0;
  color: var(--espresso);
  /* Banner hinter dem Wagen: main.js setzt --zug (Weg des Wagens bis zur Parkposition) */
  transform: translate3d(var(--zug, 0px), 0, 0);
  will-change: transform;
}
.fahrt-text .kicker { color: var(--wein); }
.fahrt-zeile {
  display: block;
  font: 900 clamp(2.6rem, 5.6vw, 5.4rem)/0.95 var(--schrift-titel);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.fahrt-zeile em { font-style: italic; font-weight: 800; color: var(--creme); }
.fahrt-unter {
  display: block;
  margin-top: 1.1rem;
  max-width: 26em;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
}

.wagen {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: var(--wagen-b);
  aspect-ratio: 809 / 525;
  transform: translate3d(var(--x, calc(100vw - var(--wagen-b) - max(var(--rand), (100vw - var(--breite)) / 2))), var(--y, 0px), 0) rotate(var(--neigung, 0deg));
  transform-origin: 47% 96%;   /* zwischen den Rädern auf Straßenhöhe */
  will-change: transform;
}
/* mit JavaScript: Wagen erst zeigen, wenn die Startposition berechnet ist
   (Sicherheitsnetz: nach 2 s auf jeden Fall sichtbar) */
.js .fahrt:not(.bereit) .wagen,
.js .fahrt:not(.bereit) .fahrt-text { visibility: hidden; animation: sichtbar 0s 2s forwards; }
@keyframes sichtbar { to { visibility: visible; } }

.wagen-bild { position: relative; width: 100%; height: auto; transform: translateY(0.8%); }
.wagen-schatten {
  position: absolute;
  left: 2%;
  right: 1%;
  bottom: -3.5%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 18, 11, 0.45), rgba(42, 18, 11, 0));
}
/* ganze Räder (Reifen, Weißwand, Felge) drehen sich; Werte aus tools/wagen_freistellen.py */
.rad {
  position: absolute;
  transform: rotate(var(--dreh, 0deg));
}
.rad-hinten { left: 5.562%; top: 73.714%; width: 16.316%; }
.rad-vorn { left: 73.3%; top: 74.286%; width: 15.575%; }

/* --- Die Karte (Angebot) ------------------------------------------------- */

.karte-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.karte-kopf { position: sticky; top: calc(var(--kopf-h) + 28px); }
.karte-foto {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 420px;
}
.bogen img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
}
/* Anstoßen-Foto im Querformat zeigen, damit alle vier Brüder zu sehen sind */
.karte-foto { max-width: 480px; }
.karte-foto img {
  aspect-ratio: 640 / 424;
  border-radius: clamp(80px, 9vw, 130px) clamp(80px, 9vw, 130px) var(--radius) var(--radius);
}

.karte-tafel {
  position: relative;
  padding: 0 clamp(22px, 3.4vw, 54px) clamp(26px, 3.4vw, 48px);
  background: var(--flaeche-2);
  border-radius: 0 0 var(--radius) var(--radius);
}

.markise {
  height: 54px;
  margin: 0 calc(-1 * clamp(22px, 3.4vw, 54px)) clamp(26px, 3.6vw, 44px);
  background: repeating-linear-gradient(90deg, var(--orange) 0 44px, var(--creme) 44px 88px);
  -webkit-mask: radial-gradient(22px at 22px 32px, #000 98%, transparent) 0 0 / 44px 54px repeat-x, linear-gradient(#000, #000) top / 100% 32px no-repeat;
          mask: radial-gradient(22px at 22px 32px, #000 98%, transparent) 0 0 / 44px 54px repeat-x, linear-gradient(#000, #000) top / 100% 32px no-repeat;
  border-radius: 10px 10px 0 0;
}

.getraenke { counter-reset: nr; }
.getraenk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: baseline;
  padding: 20px 0 22px;
  border-bottom: 1px dashed var(--linie);
}
.getraenk-nr {
  font: 800 0.95rem/1 var(--schrift-titel);
  color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
.getraenk h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.getraenk h3::after {
  content: "";
  flex: 1;
  min-width: 20px;
  border-bottom: 3px dotted var(--linie);
  transform: translateY(-0.25em);
}
.getraenk-hinweis {
  font: 700 0.75rem/1.2 var(--schrift-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--akzent);
  background: var(--flaeche);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}
.getraenk p {
  grid-column: 2 / -1;
  margin: 6px 0 0;
  color: var(--text-leise);
}

.ofen {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 30px;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: calc(var(--radius) * 0.7);
  background: var(--wein);
  color: var(--creme);
}
.ofen svg { width: clamp(64px, 7vw, 92px); height: auto; }
.ofen .kicker { color: var(--orange-hell); margin-bottom: 0.6rem; }
.ofen h3 { margin-bottom: 0.25em; }
.ofen p { margin: 0; color: rgba(255, 243, 227, 0.85); }

.wunsch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}
.wunsch div { flex: 1 1 260px; }
.wunsch h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); margin-bottom: 0.2em; }
.wunsch p { margin: 0; color: var(--text-leise); }

/* --- Leistungen ---------------------------------------------------------- */

.leistungen { background: var(--flaeche-2); }
.leistungen-kopf {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.leistungen-kopf h2 { margin: 0; }
.leistungen-kopf .einleitung { margin: 0; }

.leistungs-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--text);
}
.leistung {
  padding: 28px clamp(16px, 2.2vw, 32px) 34px 0;
  border-bottom: 1px solid var(--linie);
}
.leistung:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--linie); }
.leistung svg { width: 44px; height: 44px; margin-bottom: 18px; color: var(--akzent); }
.leistung h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 0.35em; }
.leistung p { margin: 0; color: var(--text-leise); }

.ablauf {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.ablauf h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: schritt; }
.schritte li {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: calc(var(--radius) * 0.7);
  background: var(--flaeche);
  counter-increment: schritt;
}
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--espresso);
  font: 900 1.35rem/1 var(--schrift-titel);
}
.schritte strong { display: block; font: 800 1.3rem/1.15 var(--schrift-titel); margin-bottom: 6px; }
.schritte span { color: var(--text-leise); }

/* --- Anlässe ------------------------------------------------------------- */

.anlaesse { background: var(--wein); color: var(--creme); }
.anlaesse .kicker { color: var(--orange-hell); }
.anlaesse-kopf { margin-bottom: clamp(30px, 5vw, 64px); }
.anlaesse-kopf h2 { max-width: 12em; }

.anlass-liste { border-top: 1px solid rgba(255, 243, 227, 0.25); }
.anlass {
  display: grid;
  grid-template-columns: 64px minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(12px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid rgba(255, 243, 227, 0.25);
  transition: padding-left 0.3s ease;
}
.anlass:hover { padding-left: 12px; }
.anlass-nr { font: 700 0.95rem/1 var(--schrift-text); letter-spacing: 0.1em; color: var(--orange-hell); }
.anlass h3 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
}
.anlass:nth-child(even) h3 { font-style: italic; font-weight: 800; }
.anlass p { margin: 0; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: rgba(255, 243, 227, 0.85); }

/* --- Wagen-Galerie ------------------------------------------------------- */

.galerie-raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
  align-items: end;
}
.galerie-text { grid-column: 1 / span 5; align-self: start; }
.galerie-text ul { margin-top: 22px; display: grid; gap: 10px; }
.galerie-text li { display: flex; gap: 12px; align-items: baseline; }
.galerie-text li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-1px);
}
.galerie-bild img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.galerie-bild.gross { grid-column: 6 / -1; grid-row: 1 / span 2; }
.galerie-bild.gross img { aspect-ratio: 4 / 3; }
.galerie-klein {
  grid-column: 1 / span 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}
.galerie-klein img { aspect-ratio: 4 / 3; }

/* --- Über uns ------------------------------------------------------------ */

.ueber { background: var(--flaeche); }
.ueber-raster {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.ueber-foto { position: relative; }
.ueber-foto img { border-radius: var(--radius); aspect-ratio: 1353 / 896; object-fit: cover; width: 100%; }
.ueber-foto::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2vw, 26px) clamp(-14px, -2vw, -26px) clamp(-14px, -2vw, -26px) clamp(14px, 2vw, 26px);
  border-radius: var(--radius);
  background: var(--orange);
  z-index: -1;
}
.ueber-foto { isolation: isolate; }
.zitat {
  margin: 0 0 1.2em;
  font: 800 clamp(1.7rem, 2.8vw, 2.4rem)/1.1 var(--schrift-titel);
  color: var(--akzent);
}
.ueber-text p:not(.kicker):not(.zitat) { color: var(--text-leise); }
.ueber-text p.stark { color: var(--text); font-weight: 600; }

/* --- Team ---------------------------------------------------------------- */

.team { background: var(--flaeche-2); overflow: clip; }
.team-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.team-kopf h2 { margin: 0; }
.team-kopf p { margin: 0; max-width: 28em; color: var(--text-leise); }

.team-reihe {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}
.person figure { position: relative; margin-bottom: 20px; }
.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--sand);
}
.person-name {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%) rotate(-3deg);
  margin: 0;
  padding: 0.18em 0.6em 0.24em;
  border-radius: 999px;
  background: var(--orange);
  color: var(--espresso);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  white-space: nowrap;
}
.person:nth-child(even) .person-name { transform: translateX(-50%) rotate(2.5deg); background: var(--wein); color: var(--creme); }
.person-rolle {
  margin: 30px 0 10px;
  text-align: center;
  font: 700 0.78rem/1.3 var(--schrift-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--akzent);
}
.person p:last-child { margin: 0; font-size: 1rem; color: var(--text-leise); }

/* --- Anfrage ------------------------------------------------------------- */

.anfrage { background: var(--orange); color: var(--espresso); }
.anfrage .kicker { color: var(--wein); }
.anfrage-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.anfrage-text { position: sticky; top: calc(var(--kopf-h) + 28px); }
.anfrage-text .einleitung { color: var(--espresso); }
.kontaktwege { display: grid; gap: 12px; margin-top: 28px; max-width: 380px; }
.kontaktwege .knopf { justify-content: flex-start; }
.kontakt-mail { margin-top: 18px; font-weight: 600; }
.kontakt-mail a { text-underline-offset: 3px; }

.formular {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 3.4vw, 46px);
  border-radius: var(--radius);
  background: var(--creme);
  color: var(--espresso);
  box-shadow: 0 40px 80px -50px rgba(42, 18, 11, 0.7);
}
.formular .breit { grid-column: 1 / -1; }
/* Köderfeld gegen Spam-Bots: unsichtbar, nicht per Tab erreichbar */
.formular .kein-feld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}
.formular input,
.formular textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(42, 18, 11, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--espresso);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.formular input:focus,
.formular textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.2);
}
.formular textarea { resize: vertical; min-height: 130px; }
.formular .knopf { width: 100%; }
.formular .rechenfrage input { max-width: 9em; }
.formular .zustimmung { display: flex; align-items: flex-start; gap: 12px; }
.formular .zustimmung input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--wein);
}
.formular .zustimmung label { margin: 0; font-weight: 500; line-height: 1.45; }
.formular .zustimmung a { color: var(--wein); text-underline-offset: 3px; }
.formular-fehler { margin: 0 0 12px; font-weight: 700; color: var(--wein); }
.formular-fehler[hidden] { display: none; }
.formular-hinweis { margin: 12px 0 0; font-size: 0.88rem; color: #6b4a3a; }
.formular-hinweis a { color: var(--wein); }

.gesendet {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 18px;
  background: var(--sand);
}
.gesendet[hidden] { display: none; }
.gesendet h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.gesendet .knoepfe { margin-top: 14px; }
.gesendet .knopf { width: auto; flex: 1 1 200px; }
.knopf-wein-rand { border-color: var(--wein); color: var(--wein); background: transparent; }

/* --- Fußzeile ------------------------------------------------------------ */

.fuss {
  background: var(--espresso);
  color: var(--creme);
  padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
}
.fuss-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr);
  gap: 32px;
}
.fuss-marke { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 18px; }
.fuss-marke svg { width: 54px; height: 54px; }
.fuss p { color: rgba(255, 243, 227, 0.75); font-size: 0.98rem; }
.fuss h2 {
  font: 700 0.78rem/1 var(--schrift-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-hell);
  margin-bottom: 16px;
}
.fuss ul { display: grid; gap: 8px; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 243, 227, 0.16);
  font-size: 0.88rem;
  color: rgba(255, 243, 227, 0.6);
}

/* --- Unterseiten (Impressum, Datenschutz) -------------------------------- */

.unterseite .kopf { position: sticky; top: 0; background: var(--wein); }
.unterseite .kopf .kopf-logo { display: inline-flex; }
.rechtstext { padding-block: clamp(48px, 7vw, 100px); }
.rechtstext .huelle { max-width: 760px; }
.rechtstext h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.rechtstext h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2em; }
.rechtstext p, .rechtstext li { color: var(--text-leise); }
.rechtstext a { color: var(--akzent); text-underline-offset: 3px; }
.rechtstext ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.rechtstext .stand { margin-top: 3em; font-size: 0.92rem; }

/* --- Responsiv ----------------------------------------------------------- */

@media (max-width: 1100px) {
  .leistungs-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leistung:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .leistung:nth-child(even) { padding-left: clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--linie); }
  .team-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .ablauf { grid-template-columns: 1fr; }
}

@media (max-width: 1099px) {
  .hauptnav, .kopf-anfrage { display: none; }
  .menue-knopf { display: inline-block; }
}

@media (max-width: 959px) {
  :root { --kopf-h: 68px; }

  .held-raster { grid-template-columns: 1fr; }
  /* Startbereich mittig: Tafel über die ganze Breite mit zentriertem Inhalt,
     Foto mit gleichem Rand links und rechts, keine Überlappung mit der Tafel */
  .held-tafel {
    grid-area: 1 / 1;
    margin: 0 calc(-1 * var(--rand));
    padding-inline: var(--rand);
    text-align: center;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .tafel-logo { margin-bottom: 40px; text-align: left; }   /* Logo bleibt links, wie die Knöpfe oben rechts */
  .held-text { margin-inline: auto; }
  .held .knoepfe { justify-content: center; }
  .held-foto {
    grid-area: 2 / 1;
    margin: 18px 0 52px;
  }
  .held-foto img { border-radius: var(--radius); }
  .stempel { right: auto; left: calc(50% - 48px); bottom: -46px; width: 96px; }   /* mittig unter dem Bild */

  /* Wagen klein, parkt rechts und fährt unter dem Text her, der schon fest dasteht */
  .fahrt {
    --wagen-b: clamp(150px, 44vw, 300px);
    --enthuell-faktor: 1;
    display: block;
    min-height: 0;
    padding-bottom: calc(var(--wagen-h) + 10px);
    margin-top: 8px;
  }
  .fahrt-text { padding: 0; transform: none; will-change: auto; }
  .js .fahrt:not(.bereit) .fahrt-text { visibility: visible; animation: none; }
  .wagen { transform: translate3d(var(--x, calc(100vw - var(--wagen-b) - var(--rand))), var(--y, 0px), 0) rotate(var(--neigung, 0deg)); }

  .karte-raster { grid-template-columns: 1fr; }
  .karte-kopf { position: static; }
  .karte-foto { display: none; }

  .leistungen-kopf { grid-template-columns: 1fr; }
  .schritte { grid-template-columns: 1fr; }

  .anlass { grid-template-columns: 44px minmax(0, 1fr); }
  .anlass p { grid-column: 2; }

  .galerie-text { grid-column: 1 / -1; margin-bottom: 12px; }
  .galerie-bild.gross { grid-column: 1 / -1; grid-row: auto; }
  .galerie-klein { grid-column: 1 / -1; }

  .ueber-raster { grid-template-columns: 1fr; }

  .anfrage-raster { grid-template-columns: 1fr; }
  .anfrage-text { position: static; }

  .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-raster > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  /* Team untereinander: kein Wischen nötig */
  .team-reihe { grid-template-columns: 1fr; row-gap: 56px; }
  .person figure { max-width: 300px; margin-inline: auto; }

  .leistungs-liste { grid-template-columns: 1fr; }
  .leistung:nth-child(even) { padding-left: 0; border-left: 0; }

  .getraenk { grid-template-columns: auto minmax(0, 1fr); }
  .getraenk-hinweis { grid-column: 2; justify-self: start; margin-top: 8px; }
  .getraenk p { grid-column: 2; }
  .getraenk h3::after { display: none; }

  .ofen { grid-template-columns: 1fr; }

  .formular { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
