/* Fleisch & Wurst Schmitzberger — self-hosted stylesheet.
   No external fonts/CDNs: the CSP is 'self' only, so everything below is local
   and the type stack falls back to the OS UI font.

   Diese Fassung ist gegenueber der Erstmigration bewusst kuerzer: die
   Shop-Bausteine (Anfragekorb, Preis-Pills, Filter-Chips, Teile-Listen) und die
   Werkstatt-Bausteine (Schritt-Kacheln, Lieferantenlogos, Meistersiegel) aus der
   ack-Vorlage sind entfernt — dieser Betrieb hat weder Shop noch Preise. Wer sie
   sucht: clients/ack/website/site/styles.css. */

/* ------------------------------------------------------------------------
   Gestaltung der ALTSEITE (WordPress-Thema „natural-lite" + Motopress-Slider),
   nachgebaut statt neu erfunden. Aus deren Stylesheets uebernommen:

     Seitengrund   #98876f + festes Hintergrundfoto (background-1, 600x694)
     Kasten        .container, 1280 px breit, 48 px Rand, darin ein weisses Blatt
     Menueleiste   #504741, Punkte in Grossbuchstaben, 48 px Zeilenhoehe
     Rot           #d40000 (Aktivfeld im Menue, Verweise, Akzente)
     Text          #535353, Schriftgewicht 300, Zeilenhoehe 1.8
     Ueberschriften ebenfalls #535353 und 300, negative Laufweite
     Radius        2 px      Schatten  0 0 4px rgba(0,0,0,.24)

   #d40000 traegt weisse Schrift mit 5,5:1 und liegt auf Weiss bei 5,5:1 — es
   braucht also, anders als das frueher hier gemessene #cc0000, keine zweite,
   abgedunkelte Fassung. Nur im Dunkelmodus muss der Ton aufgehellt werden.
   ------------------------------------------------------------------------ */

:root {
  --accent: #d40000;
  --accent-deep: #d40000;   /* Flächen mit weißer Schrift */
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: 0 0 4px rgba(0, 0, 0, .24);
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Kasten (1280/48) wie .container der Altseite; darin eine Inhaltsspalte von
     1024 px, damit die Zeilen im 1184 px breiten Blatt lesbar bleiben. */
  --maxw: 1280px;
  --sheet: 1024px;
  --sheet-pad: clamp(18px, 4vw, 48px);
  --font: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Ein einziger vertikaler Rhythmus für alle Abschnitte. */
  --pad-y: clamp(38px, 5vw, 72px);
  --nav-bg: #504741;
  --page-bg: #98876f;
}

/* Hell ist die Gestaltung der Altseite — der Dunkelmodus ist dieselbe Anlage
   mit dunklen Blaettern und aufgehelltem Rot. */
:root,
:root[data-theme="light"] {
  --bg: #ffffff;            /* das Inhaltsblatt */
  --bg-2: #f6f4f0;          /* abwechselndes Band im Blatt */
  --surface: #ffffff;
  --surface-2: #f2efe9;
  --line: #e5e1d9;
  --line-strong: #cfc9be;
  --text: #535353;
  --text-dim: #6b6b6b;
  --text-faint: #8d8a84;
  --img-bg: #f0eee9;
}

:root[data-theme="dark"] {
  /* Auf dunklem Grund kommt #d40000 nur auf 2,8:1 — Schrift und Linien nehmen
     deshalb einen aufgehellten Ton, Flächen mit weißer Schrift das Markenrot. */
  --accent: #f8767b;
  --accent-deep: #b81212;
  --bg: #262120;
  --bg-2: #2d2725;
  --surface: #2d2725;
  --surface-2: #383130;
  --line: #443c39;
  --line-strong: #574d49;
  --text: #ece7de;
  --text-dim: #c2b9ad;
  --text-faint: #9a9184;
  --img-bg: #221d1c;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Der Kopf klebt nicht mehr (die Altseite hatte keine feste Leiste), ein
     Sprungziel braucht also keinen Vorhalt — nur etwas Luft. */
  scroll-padding-top: 12px;
  -webkit-text-size-adjust: 100%;
  /* Reicht ALLEIN NICHT gegen das seitliche Verschieben — nachgemessen: mit
     dieser Zeile liess sich die Seite weiterhin um 1703 px schieben. Grund:
     `clip` erzeugt keinen Scroll-Container und kappt deshalb die Weiterreichung
     des Scroll-Ueberlaufs aus den Slidern nicht. Das erledigt der Wrapper-Fix
     bei den Slidern weiter unten. Die Zeile bleibt als zweite Absicherung fuer
     Engines stehen, die den Ueberlauf anders propagieren. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  /* Wie die Altseite: das Foto liegt FEST hinter der Seite, oben ausgerichtet
     und formatfuellend, darunter der warme Braunton des Themas. `fixed` ist auf
     iOS unzuverlaessig — dann greift `background-attachment: scroll` und das
     Bild scrollt mit; das Bild ist 600x694 und wird ohnehin hochskaliert, genau
     wie auf der Altseite. */
  background: var(--page-bg) url("img/hero-bg.webp") center top / cover no-repeat fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  /* KEIN overflow-x: hidden hier — das macht den Body zum Scroll-Container und
     kann `position: sticky` am Kopf aushebeln; ausserdem verdeckt es Ueberlaeufe
     statt sie zu beheben. Ueberlaufquellen werden einzeln gebrochen
     (overflow-wrap an den Ueberschriften, min-width:0 in den Rastern). */
}

/* `height: auto` ist hier NICHT kosmetisch: die width/height-Attribute im
   Markup landen als echte CSS-Hoehe im Praesentations-Hint. Sind damit BEIDE
   Achsen gesetzt, hat `aspect-ratio` nichts mehr zu tun und wird ignoriert —
   die Auszeichnungsfotos standen deshalb 170x320 statt 170x136 im Layout.
   Wer eine feste Hoehe braucht (Karten, Galerie), setzt sie weiter unten
   ausdruecklich. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* Ueberschriften wie im Thema der Altseite: dieselbe Schriftfarbe wie der
   Fliesstext, Gewicht 300, leicht negative Laufweite, 1.4 Zeilenhoehe. Der
   frueher hier stehende fette Satz (700) war der auffaelligste Unterschied zur
   Altseite. */
h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 .5em;
  font-weight: 300;
  /* lange deutsche Komposita ("Hauptverkaufstage") sonst über den Rand */
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.8px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.6px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

/* Der Kasten der Altseite: 1280 px breit, 48 px Rand, mittig auf dem Foto.
   Darin stecken Kopf, Inhaltsblatt und Fussleiste. */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 48px;
}

/* Inhaltsspalte IM Blatt. Vorher war `.wrap` die Seitenbreite selbst — jetzt
   traegt `.container` die Seitenbreite und `.wrap` nur noch die Spalte. */
.wrap {
  width: 100%;
  max-width: var(--sheet);
  margin-inline: auto;
  padding-inline: var(--sheet-pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-deep);
  color: #ffffff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ header */

/* Kopf: Logo GROSS und mittig auf dem Foto, darunter die Menueleiste — der
   Aufbau von #custom-header + #navigation der Altseite. */

#header { margin: 24px 0 0; }

/* Logofeld OHNE eigene Flaeche: das Logo liegt frei auf dem Hintergrundfoto,
   wie das 833x650-PNG im `.header-img` der Altseite (280 px Mindesthoehe,
   `background-size: contain`, mittig). */
#custom-header {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 20px 0;
}
#custom-header .brand { display: block; line-height: 0; }
#custom-header img {
  width: auto;
  max-height: 260px;
  /* Das Oval ist innen deckend weiss; ein weicher Schatten trennt seine Kante
     vom Foto, ohne eine Platte darunter zu legen. */
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
}

#navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--nav-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}

/* Die Punkte stehen mittig in der Leiste (`1fr auto 1fr`: links leer, rechts
   die zwei Knoepfe — so bleibt die Mitte die Mitte). */
.menu {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  line-height: 48px;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 1px 1px rgba(0, 0, 0, .4);
  padding: 0 12px;
  white-space: nowrap;
  /* Die Trennstriche der Altseite: helle Kante links, dunkle rechts. */
  border-left: 1px solid rgba(255, 255, 255, .1);
  border-right: 1px solid rgba(0, 0, 0, .4);
}
.menu li:first-child a { border-left: none; padding-left: 16px; }
.menu li:last-child a { border-right: none; }
.menu a:hover,
.menu a:focus,
.menu a:active,
.menu a[aria-current] { background: var(--accent-deep); color: #fff; }

/* Anrufknopf und Farbschema-Schalter — die einzigen Zutaten, die die Altseite
   nicht hatte. Sie sind wie Menuepunkte gesetzt, damit die Leiste EIN Element
   bleibt. */
.menu-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}
.menu-call,
.menu-theme {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: .8rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 1px 1px rgba(0, 0, 0, .4);
  cursor: pointer;
}
.menu-call:hover,
.menu-theme:hover { background: var(--accent-deep); color: #fff; }
.menu-call svg,
.menu-theme svg { width: 16px; height: 16px; flex: none; }

/* One icon per theme; JS only flips data-theme. */
:root[data-theme="light"] .i-moon { display: none; }
:root:not([data-theme="light"]) .i-sun { display: none; }

/* „Menü" heisst der Schalter auf der Altseite — er erscheint erst unter 900 px
   (dort schaltet auch app.js die Liste um). */
.menu-toggle { display: none; }

/* ------------------------------------------------------- Inhaltsblatt */

/* Inhalt und Fussleiste sind EIN weisses Blatt im Kasten, wie auf der
   Altseite; unten laeuft es mit 24 px Abstand aus, damit der Kasten auf dem
   Foto zu schweben scheint. */
main,
.foot {
  display: block;
  background: var(--bg);
  box-shadow: var(--shadow);
}
/* haelt das Bildband und die Baender in den Ecken des Blattes */
main { overflow: hidden; }
.foot {
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------ buttons */

/* Flach, 2 px Radius, Grossbuchstaben — im Ton der Menueleiste. Die frueheren
   Pillen mit Anhebe-Effekt und farbigem Schlagschatten waren die zweite
   deutliche Abweichung von der Altseite. */
.btn {
  --btn-bg: var(--accent-deep);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 400;
  font-size: .85rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--nav-bg); color: #fff; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--nav-bg); border-color: var(--nav-bg); color: #fff; }

.btn-sm { padding: 8px 15px; font-size: .78rem; }

/* ------------------------------------------------------------------ hero */

/* Bildband am Kopf des Blattes. Auf der Altseite lag hier der
   Motopress-Slider: dunkles Holz, darauf die Motive OVAL freigestellt mit dem
   Wort darunter (Fleisch, Wurst, Catering).
   Das Holz ist genau dasselbe Bild wie dort — `background1-e1516216767177.jpg`
   (600x400), hier als `slider-holz.webp`. Die Erstmigration hatte die Datei als
   „unbenutzt" verworfen; sie war der Hintergrund des Sliders. Nicht zu
   verwechseln mit `background-1` (mit Bindestrich), dem Seitenhintergrund. */
.hero {
  position: relative;
  isolation: isolate;
  padding: 0;
  overflow: hidden;
}
.hero-media { position: relative; width: 100%; }
.hero-track { scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }

/* Eine Folie = drei Motive mit je einem Wort, zwei oben und eines darunter
   mittig; jede Folie hat ihr eigenes Hintergrundfoto. Der Innenrand liegt IN
   der Folie, damit das Foto bis an die Kanten des Bandes reicht. */
.hero-slide {
  flex: 0 0 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.6vw, 18px) clamp(18px, 3vw, 40px);
  justify-items: center;
  align-items: start;
  /* Alle Folien sind so hoch wie die hoechste (eine Flex-Reihe). Damit die
     zweite Folie mit ihren kleineren Siegeln nicht oben klebt, werden die
     Reihen in der Bandhoehe zentriert. */
  align-content: center;
  /* Bandhoehe: auf Wunsch rund 70 % der ersten Fassung (741 -> ~515 px bei
     1280 px Fenster). Gedreht wurde an drei Schrauben — Motivbreite 340 -> 240,
     Innenrand und Abstaende kleiner, Wortgroesse eine Stufe zurueck. */
  padding: clamp(18px, 2.4vw, 28px) clamp(46px, 6vw, 74px);
}
/* Das dritte Motiv sitzt allein in der zweiten Reihe. */
.hero-slide > :nth-child(3) { grid-column: 1 / -1; }

.hero-slide-holz {
  background: #2f2620 url("img/slider-holz.webp") center center / cover no-repeat;
}
/* Zweite Folie der Altseite: Fleisch auf Schiefer (`50916258_m`, ein
   zugekauftes Stockfoto des Betriebs — die Lizenz haengt am Kunden). */
.hero-slide-schiefer {
  background: #4a4b47 url("img/slider-schiefer.webp") center center / cover no-repeat;
}

.hero-item {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: clamp(6px, 1vw, 10px);
  width: 100%;
  max-width: 240px;
}
/* Oval statt Rechteck: die Motive der Altseite waren als Ellipse freigestellte
   PNG. Dasselbe erledigt hier `border-radius: 50%` mit unseren — deutlich
   schaerferen — Fotos, ohne eine zweite Bildfassung anzulegen. */
.hero-item-foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .85);
}
/* Guetesiegel sind Logos: vollstaendig zeigen, nichts beschneiden. Die weisse
   Platte ist eine Zutat — zwei der drei sind freigestellt und waeren auf dem
   Schieferfoto nicht zu lesen; sie folgt dem Muster der Siegelkarten weiter
   unten auf der Seite. */
.hero-item-logo img {
  width: auto;
  max-height: 110px;
  max-width: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8);
}
.hero-item figcaption {
  color: #fff;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}

/* Gestaffeltes Einblenden je Folie — die Altseite liess ihre Ebenen einfliegen
   (Bilder `flipInX`, Woerter `fadeInUp`, Verzoegerungen 500–2500 ms). Hier
   dasselbe Prinzip: Bild kippt aus der Tiefe herein, das Wort folgt kurz
   danach, jedes Motiv 0,2 s nach dem vorigen.

   `.anim` setzt app.js, `is-active` bekommt die sichtbare Folie. Ohne
   JavaScript fehlt beides — dann greift keine dieser Regeln und die Motive
   stehen einfach da, statt auf `opacity: 0` haengen zu bleiben. Bei
   `prefers-reduced-motion` vergibt app.js `.anim` gar nicht; die globale
   Regel weiter oben kappt Animationen ohnehin auf .01ms. */
/* KEIN `opacity: 0` als Grundzustand: faellt der Observer aus (oder laeuft
   JavaScript gar nicht), soll das Band trotzdem stehen. Das Verstecken macht
   allein der `from`-Zustand der Keyframes, und der greift nur auf der aktiven
   Folie. */
.hero-track.anim .hero-slide.is-active .hero-item { --d: 0s; }
.hero-track.anim .hero-slide.is-active .hero-item:nth-child(2) { --d: .2s; }
.hero-track.anim .hero-slide.is-active .hero-item:nth-child(3) { --d: .4s; }

.hero-track.anim .hero-slide.is-active .hero-item img {
  animation: hero-img .75s var(--ease) var(--d) both;
}
.hero-track.anim .hero-slide.is-active .hero-item figcaption {
  animation: hero-txt .6s var(--ease) calc(var(--d) + .3s) both;
}

@keyframes hero-img {
  from { opacity: 0; transform: perspective(700px) rotateX(28deg) translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-txt {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Pfeile liegen im Band, links und rechts neben den Motiven. */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: rgba(8, 9, 11, .5);
  border-color: rgba(255, 255, 255, .32);
  color: #f3ece9;
  backdrop-filter: blur(6px);
}
.hero-arrow:hover:not(:disabled) { background: rgba(8, 9, 11, .8); color: #fff; }
.hero-arrow svg { width: 17px; height: 17px; }
.hero-prev { left: clamp(6px, 1.4vw, 18px); }
.hero-next { right: clamp(6px, 1.4vw, 18px); }

/* ------------------------------------------------------------- willkommen */

/* Der Willkommensblock der Altseite: mittig, leichte Schrift, darunter die
   Anschrift mit unterstrichenen Verweisen. */
.welcome { padding: clamp(32px, 4.5vw, 60px) 0 clamp(28px, 4vw, 52px); }
.welcome-inner { max-width: 800px; text-align: center; }
.welcome h1 { margin-bottom: .7em; }
.welcome .lead {
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  line-height: 1.4;
  margin-bottom: 1.1em;
}
.welcome .signature { font-weight: 400; margin: 1.5em 0 0; }
.welcome-addr {
  font-style: normal;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  margin: 1.4em 0 0;
}
.welcome-addr a { color: inherit; text-decoration: underline; }
.welcome-addr a:hover { color: var(--accent); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.hero-cta .btn { flex: 0 1 auto; }

/* Faktenzeile: keine Kästen, nur Trennlinien. */
.facts {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px 0;
  padding: clamp(22px, 3vw, 32px) 0;
}
.fact { padding: 4px clamp(14px, 2vw, 26px); }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  letter-spacing: -.03em;
  color: var(--accent);
  /* "Gentechnikfrei" ist auf 320px breiter als die Spalte */
  overflow-wrap: break-word;
  hyphens: auto;
}
.fact span { font-size: .88rem; color: var(--text-dim); }

/* ------------------------------------------------------------------ sections */

/* Kein Trennstrich zwischen Abschnitten: die Abschnitte wechseln sich in der
   Fläche ab, ein zusätzlicher Strich liest sich wie ein Fehler. */
section { padding: var(--pad-y) 0; }
.section-alt { background: var(--bg-2); }

/* `.kicker` war vorher nur als `.head .kicker` und `.page-hero .kicker`
   definiert. In den Split-Blöcken (Startseite „Verkaufstage", Betriebsseite
   „Bauernhof"/„Metzgerei") stand er deshalb als unformatierter Fließtext —
   dieselbe Auszeichnung sah je Abschnitt anders aus. Jetzt eine Klasse. */
.kicker {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.head { max-width: 60ch; margin-bottom: clamp(26px, 3.5vw, 42px); }
.head p { color: var(--text-dim); margin-bottom: 0; }
.head p:last-child { max-width: 56ch; }

/* Zwischenüberschrift ohne eigenen Abschnitt (z. B. Gütesiegel unter den
   Produktkarten) — spart eine ganze Sektion samt Kicker und H2. */
.sub-label {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: clamp(38px, 5vw, 56px) 0 16px;
}

/* ------------------------------------------------------------------ cards */

/* Ein Kartenmuster für die ganze Seite: Bild oben, Text darunter. Die
   Produktseite hatte vorher ein zweites Muster (Bild links) — weg damit. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { border-color: var(--accent); }

.card-media {
  aspect-ratio: 3 / 2;
  background: var(--img-bg);
  overflow: hidden;
}
.card-media .zoom { height: 100%; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--text-dim); font-size: .94rem; margin-bottom: 14px; }
/* Karten ohne „Zu den Produkten"-Zeile (Produktseite) sonst mit Leerrand */
.card-body > p:last-child { margin-bottom: 0; }

.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
  font-size: .92rem;
  color: var(--accent);
}
.card-more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-more svg { transform: translateX(4px); }

/* -------------------------------------------------------- zoombare Bilder */

/* Jedes Inhaltsbild, das sich vergrössern lässt, liegt in einem `.zoom`-Knopf
   mit `data-full` — app.js bindet die in Dokumentreihenfolge, der Lightbox
   blättert also über alle Bilder einer Seite. Der Knopf trägt Rahmen und
   Radius, nicht das `img`: sonst liegt der Fokusring am Kasten und die Ecken
   des Bildes stehen darüber hinaus.
   Bewusst NICHT zoombar: die Gütesiegel- und Prämierungslogos (da gibt es
   nichts zu vergrössern), das Hero-Foto (Gestaltung, kein Inhalt) und die
   Produktkarten der STARTSEITE — die sind selbst Links nach produkte.html. */
.zoom {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--img-bg);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color .18s var(--ease);
}

/* ------------------------------------------------------------------ figures */

/* Einzelbilder waren vorher „Galerien" mit einem Element und standen dadurch
   als Miniatur in einem fünfspaltigen Raster. */
.figure { margin: 0; }
.figure button {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--img-bg);
  cursor: zoom-in;
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  margin-top: 10px;
  font-size: .86rem;
  color: var(--text-faint);
}
/* Der Aushang ist 1600px breit und lebt von der Lesbarkeit. */
.figure-wide { max-width: 100%; }
/* Alles andere ist 600–1024px breit und wuerde ueber die volle Spaltenbreite
   hochskaliert. */
.figure-medium { max-width: 640px; }
/* Hochformat (Familienfoto) darf die Seite nicht sprengen. */
.figure-portrait { max-width: 340px; }

/* ------------------------------------------------------------------ gallery */

/* auto-fit statt auto-fill: bei vier Bildern blieb sonst eine fünfte Spalte
   leer und die Reihe klebte linksbündig in der halben Seitenbreite. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.gallery button {
  appearance: none;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--img-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.gallery button:hover { border-color: var(--accent); }
/* object-position etwas ueber die Mitte: im Hochformat (Familienfoto) schneidet
   ein zentrierter 4:3-Ausschnitt sonst die Gesichter ab. Bei den
   Querformat-Bildern ist der Unterschied kaum sichtbar. */
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* lightbox */
.lb[hidden] { display: none; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 12, .93);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 18px;
  backdrop-filter: blur(4px);
}
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -30px #000;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 14px;
  color: #cbd5e1;
  font-size: .9rem;
}
.lb-btn {
  appearance: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* ------------------------------------------------------------------ split */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(26px, 4.5vw, 56px);
  align-items: center;
}
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.split p { color: var(--text-dim); }
/* Die Fotos sind zwischen 500 und 800 px breit — in einer halben Seitenbreite
   von 540 px werden sie sonst hochskaliert und weich. */
.split-media { justify-self: center; max-width: 460px; width: 100%; }
/* zweiter Themenblock in derselben Spalte (Betriebsseite) */
.kicker-2 { margin-top: 2.2em; }

/* ------------------------------------------------------------ rezensionen */

/* Statisch nachgedruckte Google-Bewertungen. Keine Autorenbilder: die liegen
   bei lh3.googleusercontent.com und wuerden die CSP img-src 'self' brechen. */
/* Slider ohne JavaScript: eine scroll-snap-Bahn. Wischen, Trackpad und
   Pfeiltasten (die Bahn ist fokussierbar) funktionieren nativ; die Pfeile in
   app.js scrollen nur zusaetzlich. Ein Skript-Karussell haette ohne JS nichts
   angezeigt. */
.rez-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.rez-head > div { max-width: 60ch; }

.slider-nav { display: flex; gap: 8px; flex: none; }
.slider-btn {
  appearance: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .18s var(--ease), border-color .18s var(--ease), opacity .18s var(--ease);
}
.slider-btn:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.slider-btn svg { width: 19px; height: 19px; }
.slider-btn:disabled { opacity: .35; cursor: default; }

/* Kappt die Weiterreichung des Scroll-Ueberlaufs an die Wurzel: ohne das
   liessen sich die Seiten auf dem Telefon quer schieben, weil die Folien der
   beiden scroll-snap-Bahnen bis x=2206 reichen und diese Geometrie bis zum
   Wurzelelement durchschlaegt.

   Entscheidend ist die Kombination: `overflow: hidden` an einem POSITIONIERTEN
   Vorfahren kappt die Kette. Mit `clip` statt `hidden` wirkt es nicht, und an
   html oder body wirkt beides gar nicht — alles nachgemessen, scrollX blieb
   jeweils 1703, nur diese Variante ergab 0.

   Der Wrapper ist NICHT die Scroll-Bahn selbst: .slider-track behaelt sein
   `overflow-x: auto`, die Karussells scrollen unveraendert bis zum Anschlag
   (704/704 bzw. 1862/1862 nachgemessen). Und weil hier weder html noch body
   angefasst wird, klebt der Kopf weiter. */
.slider { position: relative; overflow: hidden; }

.slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  /* Platz fuer Fokusring und Kartenschatten, sonst schneidet overflow sie ab */
  padding: 4px 4px 14px;
  margin: -4px -4px 0;
}
.slider-track > * { scroll-snap-align: start; }
.rez {
  margin: 0;
  flex: 0 0 clamp(258px, 31%, 340px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.rez blockquote {
  margin: 0;
  flex: 1;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.6;
}
.rez blockquote::before { content: "„"; color: var(--accent); font-weight: 700; }
.rez blockquote::after { content: "“"; color: var(--accent); font-weight: 700; }
.rez figcaption { display: flex; align-items: center; gap: 12px; }
.rez-ini {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.rez-meta { display: grid; line-height: 1.35; min-width: 0; }
.rez-meta b { font-size: .92rem; }
.rez-stars { color: #e0a106; font-size: .86rem; letter-spacing: .06em; }
.rez-meta time { font-size: .78rem; color: var(--text-faint); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq details:hover { border-color: var(--accent); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 400;
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* Chevron drawn in CSS so no icon markup is needed per question. */
.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2.2px solid var(--accent);
  border-bottom: 2.2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.faq-body { padding: 0 20px 18px; }
.faq-body p { color: var(--text-dim); margin: 0; font-size: .96rem; }
.faq-body a { color: var(--accent); }

/* ------------------------------------------------------------------ contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.contact-col { display: grid; gap: clamp(20px, 3vw, 36px); align-content: start; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.info-card h3 { font-size: 1.02rem; }
.info-card > :last-child { margin-bottom: 0; }

/* Ein Betrieb, eine Nummer — der Personen-Block mit Initialen-Avatar war für
   einen einzigen Kontakt zu viel Apparat. */
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contact-lines li { font-size: .95rem; color: var(--text-dim); }
.contact-lines .big { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.contact-lines a { color: var(--text); text-decoration: none; font-weight: 600; }
.contact-lines a:hover { color: var(--accent); text-decoration: underline; }
.contact-scope { font-size: .84rem; color: var(--accent); font-weight: 700; margin: 0 0 12px; }

.addr { font-style: normal; color: var(--text-dim); font-size: .95rem; }
.addr strong { color: var(--text); }

/* Kartenausschnitt: ein Bild, kein iframe (Begruendung im Generator). Der
   Hinweis liegt als Pille im Bild, wie die Bildunterschrift im Hero. */
.karte {
  position: relative;
  display: block;
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .18s var(--ease);
}
.karte:hover { border-color: var(--accent); }
.karte img { width: 100%; height: auto; }
.karte-hint {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(8, 9, 11, .74);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  color: #f3ece9;
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.karte-hint svg { width: 14px; height: 14px; }

.geo-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 16px 0 0;
}
.geo-line .coords {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-faint);
}

/* form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--text-dim); }
.field input,
.field textarea {
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  /* iOS zoomt bei < 16px beim Fokus in das Feld hinein */
  min-width: 0;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(240, 102, 107, .22); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--text-faint); margin: 0; }
.form-msg { font-size: .93rem; font-weight: 600; margin: 0; min-height: 1.4em; }
.form-msg[data-state="ok"] { color: #45c07f; }
.form-msg[data-state="err"] { color: #ef6a5a; }
/* breites Formular (Catering-Seite) */
.form-wide { max-width: 680px; }

/* ------------------------------------------------------------------ footer */

/* Fussleiste der Altseite: dasselbe weisse Blatt, die Spalten durch einen
   feinen Strich vom Copyright getrennt (dort `.footer-widgets` mit
   `border-bottom` und darunter `.footer-information`). */
.foot {
  padding: 24px 0 0;
  font-size: .9rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.foot h4 {
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot .legal {
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: .85rem;
}
.hours-mini { font-size: .88rem; color: var(--text-faint); margin: 10px 0 0; }

/* Routen-Link in der Fusszeile: gleiche Optik wie die uebrigen Fusszeilen-
   Links, aber mit Nadel-Symbol, damit er als Wegbeschreibung erkennbar ist. */
.foot-route { margin: 12px 0 0; }
.foot-route a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  text-decoration: none;
}
.foot-route a:hover { color: var(--accent); }
.foot-route svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ legal pages */

.page { padding: clamp(44px, 6vw, 78px) 0; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 1.6em; }
.prose dt { font-weight: 700; color: var(--text-dim); }
.prose dd { margin: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; color: var(--text-dim); }
.prose a { color: var(--accent); }

/* ================================================================ pages */

/* --------------------------------------------------------- breadcrumbs */

/* Die Brotkrumen liegen als erste Zeile IM Blatt; als graues Band direkt
   unter der Menueleiste lasen sie sich wie ein zweiter Kopf. */
.crumbs {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: .85rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 11px 0;
  color: var(--text-faint);
}
.crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--text); }

/* ----------------------------------------------------------- page hero */

/* Kopfblock der Unterseiten: dieselbe weisse Fläche, nur ein Strich darunter —
   der frühere rote Farbverlauf hatte auf der Altseite kein Vorbild. */
.page-hero {
  padding: clamp(30px, 4.5vw, 52px) 0 clamp(22px, 3vw, 34px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-inline: auto; }
.page-hero .lead {
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
}
.page-hero .kicker { text-align: center; }

/* -------------------------------------------------------------- prose */

/* Der Fließtext-Block startete vorher mittig statt am Seitenraster. */
.prose-narrow { max-width: 68ch; }
.prose-narrow p { color: var(--text-dim); }
.prose-narrow a { color: var(--accent); }
.prose-narrow p:last-child { margin-bottom: 0; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.3em; display: grid; gap: 7px; }
ul.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
}
/* Ungleiche Schenkel (5x9) ergeben einen Haken — bei 7x7 sah das Zeichen wie
   ein nach unten zeigender Pfeil aus, also wie ein Aufklapp-Element. */
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 5px; top: .5em;
  width: 5px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------- tables */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  background: var(--surface-2);
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data td:first-child { font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
.tnote { font-size: .85rem; color: var(--text-faint); margin: 12px 0 0; }

/* Betriebsurlaub in der Terminliste hervorheben */
table.data tr.row-urlaub td {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-style: italic;
}

/* ---------------------------------------------------------- CTA band */

.cta-band {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 56px);
}
.cta-inner h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.cta-inner p { color: var(--text-dim); margin-bottom: .6em; }
.cta-note { font-size: .89rem; color: var(--text-faint); }
.cta-note strong { color: var(--text-dim); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-alt {
  font-size: .86rem;
  color: var(--text-faint);
  margin: 4px 0 0;
  text-align: center;
}

/* ============================================== fws: Betriebs-spezifisch */

/* Guetesiegel und Praemierungszeichen — helle Karten, damit die Logos sitzen */
.siegel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 14px;
}
.siegel li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px 13px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  text-align: center;
}
.siegel img { max-height: 72px; width: auto; object-fit: contain; }
.siegel span { font-size: .8rem; font-weight: 600; color: #4e433a; line-height: 1.35; }

/* Auszeichnungen: Foto links, Jahr und Wortlaut rechts */
.awards { display: grid; gap: 14px; }
.award {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 16px 16px;
}
.award .zoom { border-radius: var(--radius-sm); }
.award img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.award > div { max-width: 62ch; }
.award p { color: var(--text-dim); margin: 0; font-size: .95rem; }
.award-year {
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent);
  margin: 0 0 6px !important;
}
/* Die drei Prämierungszeichen liegen als ein Bild mit transparentem Grund vor. */
/* min(): ein glattes max-width:430px schlaegt die Basisregel img{max-width:100%}
   und stand auf dem Telefon 30 px ueber den Rand. */
.award-logos { max-width: min(430px, 100%); margin: clamp(24px, 3vw, 34px) auto 0; }

/* Zeitleiste des Hofes: drei Luftbilder mit Jahreszahl */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.tl-item { margin: 0; position: relative; }
.tl-item .zoom {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tl-item:hover .zoom { border-color: var(--accent); }
.tl-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.tl-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--accent-deep);
  color: #fff;
  font-size: .88rem;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: var(--radius);
}

/* ------------------------------------------------------------ responsive */

/* Der Kasten verliert seinen Rand frueh — auf der Altseite ab 1023 px
   (`.container { margin: 0 12px; padding: 0 }`). */
@media (max-width: 1023px) {
  .container { padding-inline: 12px; }
  #custom-header { min-height: 200px; }
  #custom-header img { max-height: 190px; }
}

@media (max-width: 1000px) {
  .split, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .split-media { max-width: 520px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Bei zwei Spalten braucht Zeile 2 eine waagrechte Trennung, und die linke
     Zelle jeder Reihe darf keinen linken Strich haben. */
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 18px; }
  .fact:nth-child(-n+2) { padding-bottom: 18px; }
}

/* Telefon-Fassung wie auf der Altseite (dort ab 767 px): in der Leiste steht
   nur „Menü", die Punkte klappen darunter als vollbreite, mittige Zeilen auf.
   Die Schwelle ist hier 900 px, weil app.js bei 900 px umschaltet — die Liste
   wird per `hidden` gesteuert, CSS und Skript muessen dieselbe Grenze haben. */
@media (max-width: 900px) {
  #navigation { display: block; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    appearance: none;
    background: none;
    border: 0;
    color: #fff;
    font: inherit;
    font-size: 1.15rem;
    padding: 12px;
    cursor: pointer;
    text-shadow: -1px -1px rgba(0, 0, 0, .1);
  }
  .menu-toggle svg { width: 20px; height: 20px; }

  .menu { display: block; }
  .menu[hidden] { display: none; }
  .menu li a,
  .menu li:first-child a {
    display: block;
    text-align: center;
    line-height: 42px;
    padding: 0 12px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .2);
  }
  /* `justify-self` muss hier ausdruecklich zurueckgenommen werden: Chrome
     wendet die Eigenschaft auch auf BLOCK-Boxen an, und mit dem `end` aus der
     Schreibtisch-Regel schrumpfte die Zeile auf ihre Inhaltsbreite und klebte
     rechts — `justify-content: center` allein blieb wirkungslos. */
  .menu-actions {
    justify-self: auto;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, .2);
  }
  .menu-call,
  .menu-theme { border-left: 0; }
  .award { grid-template-columns: 130px 1fr; gap: 16px; }
}

/* Die zweispaltigen Datentabellen (Öffnungszeiten, Termine) brechen auf dem
   Telefon zu unlesbaren Zeilenumbrüchen. Ab hier wird jede Zeile ein Block mit
   Beschriftung — die Kopfzeile entfällt, weil sie dann doppelt wäre. */
@media (max-width: 620px) {
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  table.data tr:last-child { border-bottom: 0; }
  table.data td { border: 0; padding: 1px 0; }
  table.data td:first-child { font-weight: 700; }
  table.data td:not(:first-child) { color: var(--text-dim); }
  table.data tr.row-urlaub { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  table.data tr.row-urlaub td { background: none; }
}

@media (max-width: 620px) {
  /* Kopf und Pfeile des Rezensions-Sliders nebeneinander quetschen den Text;
     auf dem Telefon stehen die Pfeile deshalb darunter. */
  .rez-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Bildband: zwei Ovale nebeneinander waeren auf dem Telefon 150 px breit —
     die drei Motive stehen dort untereinander. */
  .hero-slide { grid-template-columns: 1fr; }
  .hero-slide > :nth-child(3) { grid-column: auto; }
  .hero-item { max-width: 210px; }
  .hero-item-logo img { max-height: 100px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --pad-y: clamp(44px, 11vw, 64px); }
  .foot-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
  .hero-cta .btn { flex: 1 1 100%; }
  .award { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .award img { aspect-ratio: 16 / 9; }
  .figure-portrait { max-width: 100%; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dt { margin-top: .7em; }
}

@media (max-width: 380px) {
  .facts-inner { grid-template-columns: 1fr; }
  .fact { border-left: 0 !important; padding-inline: 0; }
  .fact:nth-child(n+2) { border-top: 1px solid var(--line); padding-top: 14px; }
  .fact:nth-child(-n+3) { padding-bottom: 14px; }
}

@media print {
  #navigation, .foot, .lb, .hero, .gallery, .form, .cta-band { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .container { padding: 0; }
  main { box-shadow: none; }
  /* Das Logo bleibt (es traegt Name, Ort und Tagline), aber ohne Schatten. */
  #custom-header { min-height: 0; padding: 0 0 12px; }
  #custom-header img { max-height: 120px; filter: none; }
}
