/* Café Liebling · Gestaltung
   Ein Grund: das warme Weiß der Blumentapete. Schrift: das Grün des Schriftzugs (gemessen #28493B).
   Braun nur für die Tischkarte, Apricot nur fürs Herz. Abstände im 4-px-Raster, Radius 10 px. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(schrift/fraunces-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(schrift/fraunces-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url(schrift/fraunces-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --grund: #F6F3EE;
  --grund-tief: #EDE8DF;
  --tinte: #28493B;
  --tinte-tief: #1D372C;
  --tinte-2: #4E6157;
  --linie: rgba(40, 73, 59, .18);
  --samt: #B4B583;
  --karte: #3D2C22;
  --karte-2: #4A3529;
  --karte-schrift: #EFE4D0;
  --karte-fein: #CDB592;
  --herz: #E2B394;
  --r: 10px;
  --max: 76rem;
  --spalte: 9.5rem;
  --rand-abstand: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--grund); color: var(--tinte);
  font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: 1.0625rem; line-height: 1.6; font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 420; line-height: 1.15; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
p { margin: 0; }
p + p { margin-top: .9em; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--samt); color: var(--tinte-tief); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }

.huelle { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.zeile { display: grid; grid-template-columns: var(--spalte) minmax(0, 1fr); column-gap: var(--rand-abstand); }
.rand { padding-top: .5rem; font-size: 1rem; line-height: 1.3; color: var(--tinte-2); font-variant-numeric: tabular-nums lining-nums; }
.rand-zeit { display: block; font-size: 2rem; line-height: 1; font-style: italic; font-weight: 340; color: var(--tinte); letter-spacing: .01em; }
.rand-zahl { display: block; border-top: 1px solid var(--linie); padding-top: .6rem; }
.gross { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); line-height: 1.5; max-width: 38em; }
.nur-klein { display: none; }
.sprung { position: absolute; left: 12px; top: -60px; background: var(--tinte); color: var(--grund); padding: 12px 16px; border-radius: var(--r); z-index: 100; }
.sprung:focus { top: 12px; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Knöpfe und Links */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 8px; border: 0; font: inherit; font-size: 1.0625rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.knopf-haupt { background: var(--tinte); color: var(--grund); }
.knopf-haupt:hover { background: var(--tinte-tief); }
.knopf-haupt:active { transform: translateY(1px); }
.knopf-klein { min-height: 40px; padding: 0 16px; font-size: 1rem; }
.knopf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.textlink { color: var(--tinte); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--linie); transition: text-decoration-color .2s ease; }
.textlink:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }

/* Kopfleiste */
html { scroll-padding-top: 69px; } /* Sprungziele (Logo „nach oben“, „Zum Inhalt“, Anker) landen unter der Kopfleiste, nicht dahinter */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .94); border-bottom: 1px solid var(--linie);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kopf-innen { display: flex; align-items: center; gap: 28px; height: 68px; }
.kopf-logo { flex: none; } /* das Logo gibt nie Platz ab: sonst wird es bei großer Schrift gestaucht (Prüfer 9) */
.kopf-logo img { height: 40px; width: auto; max-width: none; }
.kopf-nav { display: flex; gap: 24px; margin-left: auto; }
.kopf-nav a, .kopf-tel { text-decoration: none; font-size: 1rem; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; white-space: nowrap; }
.tisch-kurz { display: none; }
.kopf-nav a:hover, .kopf-tel:hover { border-bottom-color: currentColor; }
.kopf-tel { font-variant-numeric: tabular-nums; }
.kopf-tisch { white-space: nowrap; }

/* Einstieg */
.einstieg { padding-top: 56px; }
.einstieg-kopf { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 48px; align-items: end; }
.einstieg-titel { font-size: inherit; }
.einstieg-logo { width: min(100%, 640px); margin-left: -8px; }
.einstieg-titel .unter { display: block; margin-top: 16px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 380; line-height: 1.3; }
.einstieg-seite { padding-bottom: 8px; }
.heute { display: grid; grid-template-columns: 16px 1fr; column-gap: 12px; row-gap: 4px; padding: 20px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); font-variant-numeric: tabular-nums lining-nums; }
.heute + .einstieg-knoepfe { margin-top: 24px; }
.heute-punkt { grid-row: 1 / span 3; width: 12px; height: 12px; margin-top: .45em; border-radius: 50%; border: 2px solid var(--tinte); }
.heute.offen .heute-punkt { background: var(--tinte); box-shadow: 0 0 0 4px rgba(40, 73, 59, .14); }
.heute-tag { font-size: 1rem; color: var(--tinte-2); }
.heute-zeile { font-size: 1.375rem; line-height: 1.3; }
.heute-fein { font-size: 1rem; color: var(--tinte-2); }
.einstieg-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.einstieg-bild { margin-top: 48px; }
.einstieg-bild img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 42% 52%; border-radius: var(--r); }
.bild-rahmen { overflow: hidden; border-radius: var(--r); }
@media (prefers-reduced-motion: no-preference) {
  .fahrt { animation: fahrt 16s cubic-bezier(.22, .61, .36, 1) both; }
}
@keyframes fahrt { from { transform: scale(1.08) translate3d(1.2%, .6%, 0); } to { transform: none; } }

/* Abschnitte */
main > section, .tag, .reservieren { padding-top: clamp(72px, 9vw, 128px); }
.geschichte-text h2 { margin-bottom: 24px; }
.geschichte-bild { margin-top: 48px; }
.geschichte-bild img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 62%; border-radius: var(--r); }
figcaption { margin-top: 12px; font-size: .9375rem; color: var(--tinte-2); }
.geschichte-bild figcaption { padding-left: calc(var(--spalte) + var(--rand-abstand)); }

/* Ein Tag im Café */
.tag-kopf h2 { padding-bottom: 8px; }
.station { padding-top: 64px; }
.station .zeile { border-top: 1px solid var(--linie); padding-top: 28px; }
.station-innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.station-text h3 { margin-bottom: 16px; }
.station-text p { max-width: 32em; }
.station-fein { color: var(--tinte-2); font-size: 1rem; }
.station-fein:empty { display: none; }
.station-bilder { display: grid; grid-template-columns: 1fr; position: relative; padding-bottom: 72px; }
.station-bilder .b-gross { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.station-bilder .b-klein { position: absolute; right: -16px; bottom: 0; width: 38%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); border: 6px solid var(--grund); }
.station-bilder-hoch { grid-template-columns: minmax(0, .62fr) minmax(0, .38fr); }
.station-bilder-hoch .b-gross { aspect-ratio: 4 / 5; }
.station-bilder-hoch .b-klein { position: static; width: 100%; align-self: end; margin-left: 16px; border: 0; }
.station-bilder-hoch { padding-bottom: 0; }
.station-schluss .station-bilder { padding-bottom: 0; }
.jetzt { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; font-size: .875rem; background: var(--tinte); color: var(--grund); }
.station.ist-jetzt .rand-zeit { text-decoration: underline; text-decoration-color: var(--herz); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Die Karte (Tischkarte) */
.karte-kopf h2 { margin-bottom: 12px; }
.tischkarte-buehne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 40px; align-items: end; margin-top: 40px; }
.tischkarte { position: relative; perspective: 2200px; min-width: 0; }
.tischkarte.zu { cursor: pointer; }
.tk-seiten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); position: relative; z-index: 1;
  background: var(--karte); color: var(--karte-schrift); border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 40px -18px rgba(61, 44, 34, .55); }
.tk-seite { padding: 40px 44px 44px; }
.tk-seite-1 { border-right: 1px solid rgba(239, 228, 208, .16); grid-row: 1 / span 2; }
.tk-seite-2 { padding-bottom: 8px; }
.tk-seite-3 { padding-top: 8px; grid-column: 2; }
.tk-seite h3 { font-size: 1.5rem; font-weight: 420; color: var(--karte-schrift); margin: 0 0 16px; }
.tk-seite h3 + .tk-liste { margin-bottom: 0; }
.tk-liste + h3 { margin-top: 28px; }
.tk-fein { display: block; font-size: .875rem; font-style: italic; color: var(--karte-fein); font-weight: 380; }
h3 .tk-fein { display: inline; font-size: 1rem; margin-left: 8px; }
.tk-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 1.0625rem; line-height: 1.35; }
.tk-liste li { padding-bottom: 8px; border-bottom: 1px dotted rgba(239, 228, 208, .22); }
.tk-seite-1 .tk-liste { grid-template-columns: 1fr; }
.tk-breit { grid-column: 1 / -1; }
.tk-hinweis { margin-top: 24px; font-size: .9375rem; font-style: italic; color: var(--karte-fein); line-height: 1.45; }
.tk-seite-1 { display: flex; flex-direction: column; }
.tk-fuss { margin-top: auto; padding-top: 48px; }
.tk-fuss img { width: 46%; opacity: .5; }
.tk-deckel { position: absolute; z-index: 3; top: 0; right: 0; width: 55.5%; height: 100%; border-radius: 6px;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(255,255,255,.05), rgba(0,0,0,0) 60%),
    var(--karte-2);
  box-shadow: inset 0 0 0 1px rgba(239, 228, 208, .08), 0 18px 40px -18px rgba(61, 44, 34, .6);
  display: grid; place-items: center; transform-origin: 0 50%; transform-style: preserve-3d; backface-visibility: hidden;
  opacity: 0; visibility: hidden; pointer-events: none; }
.tk-deckel img { width: 58%; }
.tk-blaettern { display: none; }
/* zugeklappt (nur mit JS, nur wenn Bewegung erlaubt): Deckel liegt auf der rechten Seite, links ist leer */
.tischkarte.zu .tk-deckel { opacity: 1; visibility: visible; transform: rotateY(0); }
.tischkarte.zu .tk-seiten { box-shadow: none; background: transparent; } /* Inhalt bleibt für Vorleser und Tastatur erreichbar */
.tischkarte.zu .tk-seite { opacity: 0; }
.tischkarte.zu { transform: translateX(-22%); }
.tischkarte.auf { transform: none; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1); }
.tischkarte.auf .tk-deckel { opacity: 0; visibility: visible; transform: rotateY(-178deg);
  transition: transform 1.25s cubic-bezier(.45, .05, .2, 1), opacity .25s linear .62s, visibility 0s linear 1.3s; }
.tischkarte.auf .tk-seiten { transition: background-color .3s ease .55s, box-shadow .6s ease .6s; }
.tischkarte.auf .tk-seite { opacity: 1; transition: opacity .5s ease .7s; }
.tischkarte-foto { position: sticky; top: 100px; align-self: start; } /* wandert neben der langen Karte mit, statt erst unten aufzutauchen */
.tischkarte-foto img { border-radius: var(--r); aspect-ratio: 16 / 10; object-fit: cover; }

/* Team */
.team-kopf h2 { margin-bottom: 16px; }
.team-kopf p { max-width: 36em; }
.personen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; padding-left: calc(24px + var(--spalte) + var(--rand-abstand)); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.person-name { margin-top: 16px; font-size: 1.375rem; line-height: 1.2; }
.person-zeile { margin-top: 4px; font-size: 1rem; color: var(--tinte-2); }

/* Galerie */
.galerie-titel { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.galerie-titel h2 { max-width: 18em; }
.galerie-zahl { margin-top: 12px; font-size: 1rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.galerie-pfeile { display: flex; gap: 12px; flex: none; }
.pfeil { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--tinte); background: transparent; color: var(--tinte); cursor: pointer; display: grid; place-items: center; transition: background-color .2s ease, color .2s ease; }
.pfeil:hover { background: var(--tinte); color: var(--grund); }
.pfeil:disabled { opacity: .35; cursor: default; background: transparent; color: var(--tinte); }
.pfeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.galerie-band { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  margin-top: 36px; padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px)); scroll-padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  scrollbar-width: none; }
.galerie-band::-webkit-scrollbar { display: none; }
.galerie-band figure { flex: none; scroll-snap-align: start; }
.galerie-band img { height: clamp(260px, 36vw, 520px); width: auto; object-fit: cover; border-radius: var(--r); } /* Seitenverhältnis aus width/height, damit das Band schon vor dem Laden breit ist */

/* Reservierung: am Desktop links Text und Tischschild, rechts das Formular */
.reservieren { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1101px) {
  .reservieren { grid-template-columns: var(--spalte) minmax(0, .95fr) minmax(0, 1.1fr); column-gap: var(--rand-abstand); align-items: start;
    max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
  .reservieren .huelle { padding-inline: 0; max-width: none; }
  .reservieren .res-text { grid-column: 1 / 3; }
  .reservieren .res-form { grid-column: 3; padding-top: 0 !important; padding-left: 24px; }
  .reservieren .formular { margin-left: 0; }
}
.res-text h2 { margin-bottom: 20px; }
.res-text p { max-width: 34em; }
.res-weg { color: var(--tinte); }
.reserviert { display: inline-grid; gap: 4px; margin-top: 32px; padding: 20px 28px 24px; min-width: 18rem; border-radius: 8px;
  background: #FBF9F5; border: 1px solid var(--linie); box-shadow: 0 14px 30px -20px rgba(29, 55, 44, .45); text-align: center; }
.reserviert-titel { font-style: italic; font-size: 1.75rem; line-height: 1.1; margin-bottom: 8px; }
.reserviert-name { font-size: 1.125rem; }
.reserviert-wann, .reserviert-wer { font-size: 1rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.reserviert .leer { color: #7C8A83; }
.res-form { padding-top: 40px !important; }
.formular { margin-left: calc(var(--spalte) + var(--rand-abstand)); max-width: 52rem; }
.mail-weg .feld-text > span:first-child { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 500; }
.feld-fein { font-size: .9375rem; color: var(--tinte-2); font-weight: 400; }
.feld-leer { color: var(--tinte-2); font-size: 1rem; padding: 12px 0; }
.streifen { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl { position: relative; flex: none; scroll-snap-align: start; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--linie);
  background: #FBF9F5; text-align: center; line-height: 1.2; font-variant-numeric: tabular-nums; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.wahl-tag span { width: 64px; padding: 8px 4px; }
.wahl-tag small { display: block; font-size: .8125rem; color: var(--tinte-2); }
.wahl-tag b { display: block; font-size: 1.25rem; font-weight: 450; }
.wahl input:hover + span { border-color: var(--tinte); }
.wahl input:checked + span { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }
.wahl input:checked + span small { color: rgba(246, 243, 238, .82); }
.wahl input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; }
.wahl input:disabled + span { background: transparent; color: #8E9A94; border-style: dashed; cursor: not-allowed; }
.wahl input:disabled + span small { color: #8E9A94; }
.wahl input:disabled { cursor: not-allowed; }
.feld-text { display: block; }
.feld-text input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 8px; border: 1px solid #76837C; background: #FBF9F5;
  font: inherit; color: var(--tinte); transition: border-color .15s ease; }
.feld-text input::placeholder { color: #66736C; } /* 4,7:1 auf #FBF9F5 */
.feld-text input:hover { border-color: var(--tinte); }
.feld-text input:focus-visible { outline: 3px solid var(--tinte); outline-offset: 1px; border-color: var(--tinte); }
.feld-text input[aria-invalid="true"] { border-color: #9B3B2A; }
.meldung { margin-top: 16px; min-height: 1.6em; }
.meldung:empty { margin-top: 0; min-height: 0; }
.meldung.fehler { color: #8E3424; }
.meldung.gut { color: var(--tinte); }
.formular-hinweis { margin-top: 12px; max-width: 40em; }

/* Begleitende Reservierung: eine Frage nach der anderen, Fortschritt oben, Zurück unten links */
.begleiter { max-width: 40rem; }
.schritt-kopf { margin-bottom: 24px; }
.schritt-zahl { font-size: .9375rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.schritt-leiste { height: 4px; margin-top: 8px; border-radius: 4px; background: var(--linie); overflow: hidden; }
.schritt-leiste span { display: block; height: 100%; width: 16.7%; background: var(--tinte); border-radius: 4px; transition: width .35s ease; }
.schritt-bisher { margin-top: 12px; font-size: 1rem; color: var(--tinte); font-variant-numeric: tabular-nums; }
.schritt { border: 0; padding: 0; margin: 0; min-width: 0; }
.schritt:not([hidden]) { animation: schritt-rein .35s ease both; }
@keyframes schritt-rein { from { opacity: 0; transform: translateY(8px); } }
.schritt-frage { display: block; float: none; width: 100%; padding: 0; margin: 0 0 16px; font-size: 1.5rem; line-height: 1.25; font-weight: 420; color: var(--tinte); outline: none; }
.schritt-frage .feld-fein { font-size: 1rem; }
.schritt > .feld-fein { margin-top: 12px; }
#zeit-tag { margin: -8px 0 16px; }
.zeit-gruppe + .zeit-gruppe { margin-top: 20px; }
.zeit-titel { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.zeit-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.zeit-raster .wahl span { width: 100%; padding-inline: 4px; }
.reihe-personen .wahl span { min-width: 64px; min-height: 64px; font-size: 1.375rem; }
.uebersicht { margin: 0 0 24px; border-top: 1px solid var(--linie); }
.uebersicht > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.uebersicht dt { color: var(--tinte-2); font-size: .9375rem; }
.uebersicht dd { margin: 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.uebersicht dd.leer { color: var(--tinte-2); }
.aendern { min-height: 40px; padding: 8px 4px; background: none; border: 0; font: inherit; font-size: .9375rem; color: var(--tinte); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--linie); }
.aendern:hover { text-decoration-color: currentColor; }
.aendern:focus-visible, .knopf:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.senden-wege { display: grid; gap: 12px; max-width: 22rem; }
.senden-wege .knopf { width: 100%; }
.mail-wahl { display: grid; gap: 8px; }
.knopf-zweit { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1px var(--tinte); }
.knopf-zweit:hover { background: rgba(40, 73, 59, .06); }
.knopf-zweit:disabled { color: #66736C; box-shadow: inset 0 0 0 1px #8E9A94; background: transparent; cursor: not-allowed; }
.knopf-leise { background: transparent; color: var(--tinte); padding: 0 12px; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .22em; text-decoration-color: var(--linie); }
.knopf-leise:hover { text-decoration-color: currentColor; }
.schritt-fuss { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.schritt-fuss #weiter { margin-left: auto; min-width: 10rem; }
.ohne-wa { font-size: 1.125rem; }
.mail-weg { display: grid; gap: 16px; margin-top: 24px; max-width: 28rem; }
.mail-weg .knopf { justify-self: start; }
@media (min-width: 1101px) { .schritt-bisher { display: none; } }
@media (prefers-reduced-motion: reduce) { .schritt:not([hidden]) { animation: none; } .schritt-leiste span { transition: none; } }

/* Anfahrt */
.anfahrt-innen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.anfahrt h2 { margin-bottom: 24px; }
.adresse { font-size: 1.375rem; line-height: 1.4; }
.anfahrt-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.zeiten { margin-top: 36px; border-collapse: collapse; width: 100%; max-width: 30rem; font-variant-numeric: tabular-nums lining-nums; }
.zeiten caption { text-align: left; font-weight: 500; padding-bottom: 8px; }
.zeiten th, .zeiten td { text-align: left; font-weight: 400; padding: 12px 0; border-top: 1px solid var(--linie); vertical-align: top; }
.zeiten td { text-align: right; white-space: nowrap; padding-left: 16px; }
.zeiten tr.heute-reihe th, .zeiten tr.heute-reihe td { font-weight: 560; }
.anfahrt-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* Fuß */
.fuss { margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--linie); padding: 40px 0 48px; }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.fuss-logo { width: 150px; }
.fuss-zeilen { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.fuss-zeilen a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.fuss-zeilen a:hover { border-bottom-color: currentColor; }
.fuss-fein { width: 100%; font-size: .9375rem; color: var(--tinte-2); }

/* Runder WhatsApp-Begleiter (nur Handy) */
.wa-rund { display: none; }

/* Rechtsseiten */
.recht { padding-top: 56px; padding-bottom: 56px; }
.recht h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 32px; }
.recht h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.recht p, .recht li { max-width: 40em; }
.recht ul { list-style: disc; padding-left: 1.2em; }
.recht .stand { color: var(--tinte-2); font-size: 1rem; }

/* ---------- mittlere Breiten ---------- */
@media (max-width: 1100px) {
  :root { --spalte: 7rem; --rand-abstand: 1.5rem; }
  .kopf-nav { gap: 16px; }
  .rand-zeit { font-size: 1.75rem; }
  .einstieg-kopf { grid-template-columns: 1fr; gap: 24px; }
  .tischkarte-buehne { grid-template-columns: minmax(0, 1fr); }
  .tischkarte-foto { display: none; }
  .personen { padding-left: 24px; } /* vier in einer Reihe: die Porträts haben nur 340 px, zweispaltig würden sie hochgerechnet */
}

/* ---------- Handy (handy-film übernimmt das Blättern) ---------- */
@media (max-width: 860px) {
  body { font-size: 1rem; }
  .nur-gross { display: none !important; }
  .nur-klein { display: inline; }
  .zeile { grid-template-columns: 1fr; }
  .rand { display: none; }
  .station .rand { display: flex; align-items: center; gap: 12px; padding-top: 0; margin-bottom: 10px; } /* Uhrzeit und „jetzt“ als Datenzeile über dem Text */
  .station .rand-zeit { font-size: 1.625rem; }
  .station .jetzt { margin-top: 0; }
  .huelle { padding-inline: 20px; }
  html { scroll-padding-top: 57px; }
  .kopf-innen { height: 56px; gap: 12px; }
  .kopf-logo img { height: 32px; }
  .kopf-nav { display: none; }
  .kopf-tel { margin-left: auto; }
  .kopf-tisch { min-height: 40px; padding: 0 16px; margin-left: auto; }
  .kopf-tel + .kopf-tisch { margin-left: 0; }
  main > section, .tag, .reservieren, .station { padding-top: 0; }
  main > section:not(.hf-screen), .station:not(.hf-screen), .res-text:not(.hf-screen) { padding-top: 48px; } /* .res-text liegt in .reservieren, nicht direkt in main */
  .tag-kopf { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* nur für Vorleser */
  .station .zeile { border-top: 0; padding-top: 0; }

  .einstieg { padding-top: 24px; }
  .einstieg-logo { width: min(86%, 340px); margin-left: -4px; }
  .einstieg-titel .unter { margin-top: 8px; font-size: 1.25rem; }
  .einstieg-kopf { gap: 16px; }
  .heute { padding: 12px 0; }
  .heute-zeile { font-size: 1.1875rem; }
  .einstieg-bild { margin-top: 24px; padding: 0; }
  .einstieg-bild img, .einstieg-bild .bild-rahmen { border-radius: 0; }
  .einstieg-bild img { aspect-ratio: 4 / 3; }

  .geschichte-text h2 { margin-bottom: 16px; }
  .gross { font-size: 1.1875rem; }
  .geschichte-bild { margin-top: 24px; }
  .geschichte-bild img { aspect-ratio: 4 / 3; }
  .geschichte-bild figcaption { padding-left: 0; }

  .station-innen { grid-template-columns: 1fr; gap: 20px; }
  .station-text h3 { margin-bottom: 12px; }
  .station-bilder { padding-bottom: 0; }
  /* ohne Bildschirmfolge (quer, ohne JS): das kleine Bild fehlt hier, darum eine Spalte und dasselbe Format wie die anderen Stationen */
  .station-bilder-hoch { grid-template-columns: minmax(0, 1fr); }
  .station-bilder-hoch .b-gross { aspect-ratio: 16 / 10; object-position: 50% 45%; }

  .karte-kopf h2 { margin-bottom: 8px; }
  .tischkarte-buehne { margin-top: 20px; }
  .tischkarte.zu { transform: none; }
  .tk-seiten { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 6px; }
  .tk-seiten::-webkit-scrollbar { display: none; }
  .tk-seite { flex: 0 0 100%; scroll-snap-align: start; padding: 24px 24px 28px; }
  .tk-seite-1 { border-right: 0; }
  .tk-seite h3 { font-size: 1.3125rem; margin-bottom: 12px; }
  .tk-liste { gap: 4px 16px; font-size: .96875rem; }
  .tk-seite-1 .tk-liste { grid-template-columns: 1fr 1fr; }
  .tk-liste li { padding-bottom: 4px; }
  .tk-liste + h3 { margin-top: 20px; }
  .tk-hinweis { margin-top: 12px; font-size: .875rem; }
  .tk-fuss { display: none; }
  .tk-deckel { width: 100%; }
  .tischkarte.auf .tk-deckel { transform: rotateY(-115deg); opacity: 0; transition: transform 1s cubic-bezier(.45, .05, .2, 1), opacity .45s linear .45s, visibility 0s linear 1s; }
  .tk-blaettern { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .tk-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--linie); transition: background-color .2s ease; }
  .tk-punkt.an { background: var(--tinte); }

  .personen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding-left: 20px; }
  .person-name { margin-top: 8px; font-size: 1.125rem; }
  .person-zeile { font-size: .875rem; line-height: 1.35; }

  .galerie-titel { display: block; }
  .galerie-titel h2 { font-size: 1.625rem; }
  .galerie-pfeile { display: none; }
  .galerie-band { margin-top: 20px; padding: 0 20px; scroll-padding-inline: 20px; gap: 12px; }
  .galerie-band img { height: min(54vh, 420px); max-width: 84vw; }

  .reserviert { margin-top: 20px; min-width: 0; width: 100%; padding: 16px 20px; }
  .formular { margin-left: 0; }
  .res-form { padding-top: 16px !important; }
  .schritt-kopf { margin-bottom: 16px; }
  .schritt-frage { font-size: 1.3125rem; margin-bottom: 12px; }
  #zeit-tag { display: none; } /* der Tag steht am Handy schon in der Zeile über der Frage */
  .zeit-raster { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 4px; }
  .zeit-raster .wahl span { min-height: 44px; padding: 4px 2px; font-size: 1rem; }
  .zeit-gruppe + .zeit-gruppe { margin-top: 12px; }
  .zeit-titel { margin-bottom: 4px; font-size: .9375rem; }
  .reihe-personen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .reihe-personen .wahl span { width: 100%; min-height: 56px; }
  .uebersicht { margin-bottom: 16px; }
  .uebersicht > div { grid-template-columns: 5rem minmax(0, 1fr) auto; gap: 8px; padding: 0; }
  .uebersicht dt { font-size: .875rem; }
  .uebersicht dd { font-size: 1rem; }
  /* lange Namen und Wünsche höchstens zwei Zeilen (voller Text steht in der Nachricht und unter „ändern“), sonst
     rechnet die Bildschirmfolge die ganze Übersicht kleiner (node lab/schrift-probe.mjs --fertig) */
  .uebersicht dd[data-zeige] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .aendern { min-height: 36px; font-size: .875rem; }
  .senden-wege { max-width: none; }
  .mail-wahl { gap: 4px; }
  .schritt-fuss { margin-top: 20px; }
  .schritt-fuss #weiter { min-width: 0; flex: 1 1 auto; }
  .formular-hinweis { font-size: .875rem; }
  .mail-offen .uebersicht, .mail-offen #wa-knopf, .mail-offen #ohne-wa, .mail-offen #mail-hinweis, .mail-offen #wa-hinweis { display: none; } /* E-Mail-Felder brauchen den Platz */
  .mail-offen .mail-weg { margin-top: 16px; gap: 12px; }

  .anfahrt-innen { grid-template-columns: 1fr; gap: 20px; }
  .anfahrt h2 { margin-bottom: 16px; }
  .adresse { font-size: 1.1875rem; }
  .anfahrt-links { margin-top: 12px; }
  .zeiten { margin-top: 20px; font-size: .9375rem; }
  .zeiten th, .zeiten td { padding: 8px 0; }
  .anfahrt-bild img { aspect-ratio: 16 / 9; }

  .fuss { margin-top: 0; padding: 32px 0 96px; }
  .fuss-zeilen { margin-left: 0; }

  .wa-rund { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 56px; height: 56px; border-radius: 50%;
    background: var(--tinte); color: var(--grund); box-shadow: 0 10px 24px -10px rgba(29, 55, 44, .7);
    opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; visibility: hidden; /* unsichtbar = auch kein Tab-Stopp */
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
  .wa-rund.zeigen { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .wa-rund svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
}

/* Tablet hochkant und breite Handys (600 bis 860 px): Team in einer Reihe, sonst füllen vier große Quadrate den Bildschirm */
@media (min-width: 600px) and (max-width: 860px) {
  .personen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* handy-film: Verlauf in der Grundfarbe statt Weiß, Text oben (mit .hf-screen, sonst gewinnt die später geladene Bibliotheksregel) */
html.hf .hf-screen .hf-bg::after { background: linear-gradient(to bottom, rgba(246,243,238,.98) 0%, rgba(246,243,238,.95) 34%, rgba(246,243,238,.75) 50%, rgba(246,243,238,.25) 62%, rgba(246,243,238,0) 72%); }
html.hf .station.hf-screen { padding-top: 28px; }
html.hf .einstieg.hf-screen { padding-top: 20px; }
html.hf .hf-screen:not(.einstieg):not(.station) { padding-top: 28px; }
html.hf .einstieg .einstieg-bild { display: none; }
html.hf .station .station-bilder { display: none; }
html.hf .station-fein:not(:empty) { margin-top: 8px; }
html.hf .einstieg .heute { background: rgba(246, 243, 238, .7); }

/* handy-film: Eingabefelder bleiben trotz Einpassen bei 16 px (sonst zoomt das iPhone beim Antippen hinein) */
html.hf .hf-screen .feld-text input { font-size: max(1rem, calc(1rem / var(--hf-fit, 1))); }

/* handy-film: der Seitenfuß ist der letzte Bildschirm */
html.hf .fuss.hf-screen { margin-top: 0; border-top: 0; padding-top: 28px; justify-content: center; }
html.hf .fuss .fuss-innen { flex-direction: column; align-items: flex-start; gap: 28px; }
html.hf .fuss .fuss-logo { width: min(62%, 260px); }
html.hf .fuss .fuss-zeilen { flex-direction: column; gap: 0; }
html.hf .fuss .fuss-zeilen a { font-size: 1.125rem; padding: 10px 0; }

@media (prefers-reduced-motion: reduce) {
  .tischkarte, .tischkarte * { transition: none !important; }
  .galerie-band { scroll-behavior: auto; }
  /* Handy: Inhalt steht sofort, ohne Aufbau, Wischblende und Verlauf-Einblendung */
  html.hf .hf-screen .hf-el { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.hf .hf-bg { --hf-w: 1 !important; transition: none !important; }
  html.hf .hf-bg::after { opacity: 1 !important; transition: none !important; }
}

/* sehr schmale Handys (unter 400 px): Kopfleiste ohne Umbruch */
@media (max-width: 400px) {
  .kopf-innen { gap: 10px; }
  .kopf-logo img { height: 28px; }
  .kopf-tel { font-size: .9375rem; }
  .kopf-tisch { padding: 0 12px; font-size: .9375rem; }
}

/* Kopfleiste bei großer Browserschrift (Prüfer 9). Die Grenzen stehen in em: Media Queries rechnen em mit der
   Schriftgröße, die im Browser eingestellt ist, die Grenze wandert also mit der Schrift mit. Gemessen mit
   lab/kopf-probe.mjs (Breiten 300 bis 1280, Schrift 16 bis 24). Bei Standardschrift ändert sich nichts außer
   unter 344 px („Reservieren“) und unter 296 px (ohne „Anrufen“).
   Großer Bildschirm: zuerst entfällt die Telefonnummer, bei noch weniger Platz die Bereichsliste (dann wie am Handy). */
@media (min-width: 861px) and (max-width: 52em) { .kopf-tel { display: none; } }
@media (min-width: 861px) and (max-width: 43em) {
  .kopf-nav { display: none; }
  .kopf-tel { display: block; margin-left: auto; }
  .kopf-tisch { margin-left: auto; }
  .kopf-tel + .kopf-tisch { margin-left: 0; }
}
/* Handy: erst „Reservieren“ statt „Tisch reservieren“, dann ohne „Anrufen“ (die Nummer steht im Kontaktteil) */
@media (max-width: 860px) and (max-width: 21.5em) { .tisch-lang { display: none; } .tisch-kurz { display: inline; } }
@media (max-width: 860px) and (max-width: 18.5em) { .kopf-tel { display: none; } .kopf-tel + .kopf-tisch { margin-left: auto; } }

/* Kurze Handys (unter 760 px Höhe): Bilder flacher, damit Team und Geschichte nicht zu klein gerechnet werden */
@media (max-width: 860px) and (max-height: 760px) {
  .gross { font-size: 1.0625rem; line-height: 1.45; }
  .geschichte-bild { margin-top: 16px; }
  .geschichte-bild img { aspect-ratio: 2 / 1; }
  .tischkarte-buehne { margin-top: 12px; }
  .tk-seite { padding: 18px 20px 20px; }
  .tk-seite h3 { margin-bottom: 8px; font-size: 1.1875rem; }
  .tk-liste { gap: 2px 16px; font-size: .9375rem; line-height: 1.3; }
  .tk-liste li { padding-bottom: 3px; }
  .tk-liste + h3 { margin-top: 14px; }
  .karte-kopf h2 { margin-bottom: 4px; }
  .tk-blaettern { margin-top: 10px; }
  .personen { margin-top: 16px; gap: 12px 16px; }
  .person img { aspect-ratio: 16 / 10; object-position: 50% 18%; }
  .anfahrt-bild { display: none; } /* Adresse, Wege und Öffnungszeiten gehen vor; das Foto zeigt die Geschichte schon */
  /* Reservierung, vor allem „Passt alles?“: dichter, damit auch mit Meldung nichts unter 13 px gerechnet wird
     (node lab/schrift-probe.mjs --fertig) */
  .schritt-kopf { margin-bottom: 10px; }
  .schritt-frage { margin-bottom: 8px; }
  .uebersicht { margin-bottom: 12px; }
  .aendern { min-height: 32px; padding: 4px; }
  .meldung { margin-top: 10px; }
  .schritt-fuss { margin-top: 12px; }
  .senden-wege { gap: 8px; }
  .senden-wege .knopf { min-height: 44px; }
  .formular:has(#meldung:not(:empty)) #wa-hinweis { display: none; } /* die Meldung sagt dasselbe */
  .mail-offen .schritt-frage, .formular:has(.mail-offen:not([hidden])) .schritt-kopf { display: none; } /* der E-Mail-Knopf führt */
  .mail-offen .mail-weg { margin-top: 8px; gap: 8px; }
}

/* Sehr kurze Handys (unter 680 px Höhe, etwa 360 × 640): Karte und Team noch dichter, sonst rechnet die
   Bildschirmfolge die feine Schrift unter 13 px (node lab/schrift-probe.mjs) */
@media (max-width: 860px) and (max-height: 680px) {
  .tk-seite { padding: 14px 18px 16px; }
  .tk-seite h3 { margin-bottom: 6px; font-size: 1.125rem; }
  .tk-liste { line-height: 1.25; }
  .tk-liste li { padding-bottom: 2px; }
  .tk-liste + h3 { margin-top: 10px; }
  .tk-blaettern { margin-top: 8px; }
  .personen { margin-top: 12px; gap: 10px 14px; }
  .person img { aspect-ratio: 2 / 1; }
  .person-zeile { line-height: 1.3; }
  /* „Passt alles?“ (node lab/schrift-probe.mjs --fertig); die Ändern-Knöpfe bleiben über 24 px hoch */
  .res-form { padding-top: 8px !important; }
  .aendern { min-height: 28px; padding: 2px 4px; }
  .uebersicht { margin-bottom: 8px; }
  .schritt-fuss { margin-top: 8px; }
  .mail-offen .mail-weg { margin-top: 4px; gap: 6px; }
  .mail-weg .feld-text > span:first-child { margin-bottom: 4px; }
  .meldung { margin-top: 6px; }
  .uebersicht dd[data-zeige="name-lang"] { -webkit-line-clamp: 1; line-clamp: 1; } /* langer Name: eine Zeile */
  /* Fotobildschirme: der längste Stationstext (10:00) reicht hier bis zwei Drittel hinunter; der helle Verlauf
     muss mitgehen, sonst steht die letzte Zeile auf dem dunklen Tablett (node lab/kontrast-probe.mjs) */
  html.hf .hf-screen .hf-bg::after { background: linear-gradient(to bottom, rgba(246,243,238,.98) 0%, rgba(246,243,238,.95) 46%, rgba(246,243,238,.85) 66%, rgba(246,243,238,.3) 78%, rgba(246,243,238,0) 88%); }
}
