/* ==========================================================================
   Gartenbau Modlinger — öffentliche Webseite, Schicht 1 von 3: der Aufbau.

   Hier stehen Raster, Abstände und alle Bausteine. Farben und Schriften in
   dieser Datei sind noch die des verworfenen hellen Redesigns vom 29.08.2026 —
   sie werden von hausvorlage.css (Schicht 2: Schrift und Formen) und
   dunkel.css (Schicht 3: Anthrazit, Titelbild über die ganze Breite)
   überschrieben. Wer Farben ändern will, tut das in dunkel.css.

   Die Variablennamen sind die der Hausvorlage „Modlinger UI" (--green,
   --ink-2, --line …). Farbwerte stehen nur in den :root-Blöcken, sonst var(…).

   Alle drei Dateien werden auch im Editor geladen, damit Sandra beim
   Schreiben dasselbe sieht wie später auf der Seite.
   ========================================================================== */

/* --- 1. Werte ------------------------------------------------------------- */

:root {
  /* Flächen */
  --bg:            #FDFCF8;
  --surface:       #FFFFFF;
  --surface-2:     #F4F2EA;
  --line:          #E7E3D6;
  --line-strong:   #C6C2B2;

  /* Schrift */
  --ink:           #22261F;
  --ink-2:         #4A5245;
  --ink-3:         #6A7362;

  /* Hausfarbe */
  --green:         #1F4D33;
  --green-hover:   #2E7049;
  --green-ink:     #2E6641;
  --green-tint:    #EFF3E7;
  --on-green:      #FDFCF8;
  --on-green-2:    #D8E0CE;
  --on-green-3:    #A8B39B;
  --on-green-line: rgba(253, 252, 248, .18);

  /* Akzente: Gold für Hinweise, Rot für „jetzt aktuell", Blaugrau für den Advent */
  --yellow:        #E0A83A;
  --yellow-hover:  #EDBB55;
  --yellow-tint:   #FBEFD9;
  --yellow-ink:    #8A5A20;
  --red:           #B4472F;
  --red-tint:      #F7E5DF;
  --red-ink:       #8E3520;
  --orange:        #EE9550;
  --on-orange:     #2B1709;
  --blue-tint:     #E9EDF0;
  --blue-ink:      #3A5568;

  /* Schriftfamilien */
  --font:          'Jost', Helvetica, Arial, sans-serif;
  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Radien und Maße */
  --r-ctrl:        8px;
  --r-card:        12px;
  --r-big:         14px;
  --r-pill:        999px;
  --tap:           44px;
  --seite-max:     1176px;
  --seite-rand:    32px;
}

/* --- 2. Grundlage --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--green);
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.seite {
  max-width: calc(var(--seite-max) + 2 * var(--seite-rand));
  margin-inline: auto;
  padding-inline: var(--seite-rand);
}

.sprung {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-ctrl);
  background: var(--green); color: var(--on-green);
}
.sprung:focus { left: 8px; color: var(--on-green); }

/* Nur für Vorlesegeräte und Suchmaschinen, auf dem Bildschirm unsichtbar */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Kleine gesperrte Zeile über Überschriften */
.dachzeile {
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dachzeile.mit-strich { display: flex; align-items: center; gap: 11px; }
.dachzeile.mit-strich::before { content: ""; flex: none; width: 30px; height: 1px; background: var(--line-strong); }

/* Schildchen „Heute geöffnet bis …": grün = offen, gelb = heute noch
   (vor dem Aufsperren, Mittagspause), orange und gefüllt = geschlossen. Gefüllt,
   weil es sonst auf dem Titelfoto untergeht; orange, weil Rot wie eine Störung wirkt. */
.offen-jetzt {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--green-tint); border: 1px solid var(--green);
  color: var(--green-ink); font-size: 13.5px; font-weight: 500; line-height: 1.3;
}
.offen-jetzt::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.offen-jetzt.gelb { background: var(--yellow-tint); border-color: var(--yellow); color: var(--yellow-ink); }
.offen-jetzt.gelb::before { background: var(--yellow); }
.offen-jetzt.orange { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.offen-jetzt.orange::before { background: var(--on-orange); }

.vorspann { margin: 0; max-width: 30em; font-size: 18.5px; line-height: 1.62; color: var(--ink-2); }

/* --- 3. Knöpfe ------------------------------------------------------------ */

.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; }

.knopf {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: var(--tap); padding: 13px 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 500; line-height: 1.25; text-decoration: none;
}
.knopf-klein { padding: 9px 17px; font-size: 14.5px; }

.knopf-voll { background: var(--green); color: var(--on-green); }
.knopf-voll:hover { background: var(--green-hover); color: var(--on-green); }

.knopf-rand { background: var(--bg); color: var(--green); border-color: var(--green); }
.knopf-rand:hover { background: var(--green-tint); color: var(--green); }

.knopf-auf-gruen { color: var(--on-green); border-color: var(--on-green-3); }
.knopf-auf-gruen:hover { background: var(--on-green-line); color: var(--on-green); }

.pfeil-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--green); text-decoration: none; }
.pfeil-link span { border-bottom: 1px solid currentColor; }

/* --- 4. Kopfzeile --------------------------------------------------------- */

.kopf {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.admin-bar .kopf { top: 32px; }

.kopf-innen { display: flex; align-items: center; gap: 26px; padding-block: 14px; }

.marke { display: flex; flex: none; flex-direction: column; gap: 4px; text-decoration: none; }
.marke-name { font-family: var(--font-serif); font-size: 25px; font-weight: 600; line-height: 1; color: var(--green); }
.marke-zeile { font-size: 10px; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--ink-3); }
/* Das Logo bringt eigenen Rand mit — deshalb darf es höher sein als die Knöpfe daneben. */
.marke-bild { margin-block: -8px; }
.marke-bild img { display: block; width: auto; height: 68px; max-width: none; }

.navi { margin-left: auto; }
.navi-liste { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.navi-liste a { color: var(--ink-2); text-decoration: none; }
.navi-liste a:hover { color: var(--green); }
.navi-liste .current-menu-item > a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.kopf-telefon, .kopf-whatsapp { flex: none; }
.kopf-whatsapp + .kopf-telefon { margin-left: -14px; }
.menue-knopf { display: none; }

/* --- 5. Hinweisband ------------------------------------------------------- */

.hinweisband { background: var(--green); color: var(--on-green); }
/* Schlagwort groß, darunter der Text. Ohne Schlagwort wird der Text selbst größer. */
.hinweisband-innen { display: flex; flex-direction: column; gap: 6px; padding-block: clamp(20px, 2.6vw, 32px); }
.hinweisband-wort { font-size: clamp(27px, 3.4vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; overflow-wrap: break-word; text-wrap: balance; }
.hinweisband-text { max-width: 56em; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; text-wrap: pretty; }
.hinweisband-text:only-child { font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; line-height: 1.3; }

/* --- 6. Bilder ------------------------------------------------------------ */

.bild { width: 100%; object-fit: cover; border-radius: var(--r-big); }

/* Getönte Fläche, wo noch kein Foto gewählt ist. Den Text sehen nur Angemeldete. */
.bild-leer {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; padding: 12px;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  color: var(--ink-3); font-size: 13px; text-align: center;
}

/* --- 7. Startseite: Auftakt ----------------------------------------------- */

.auftakt {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 44px; align-items: center; padding-top: 44px;
}
.auftakt-text { display: flex; flex-direction: column; gap: 22px; }
.auftakt h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; }
.auftakt-bilder { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 190px 190px; gap: 12px; min-width: 0; }
.auftakt-bilder .bild { height: 100%; min-height: 0; }
.auftakt-bilder .hoch { grid-row: span 2; }

/* --- 8. Abschnitte -------------------------------------------------------- */

.abschnitt { padding-top: 68px; }
.abschnitt-eng { padding-top: 56px; }

.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding-bottom: 22px; }
.abschnitt-kopf h2 { margin-top: 9px; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.1; }
.abschnitt-kopf p { margin: 0; max-width: 34em; font-size: 16px; color: var(--ink-2); }

/* Jahreszeiten */
.saison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 14px; }
.saison-karte {
  --ton: var(--green-tint); --ton-ink: var(--green);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card); background: var(--ton);
  color: inherit; text-decoration: none;
}
.saison-karte.ton-gold { --ton: var(--yellow-tint); --ton-ink: var(--yellow-ink); }
.saison-karte.ton-rot  { --ton: var(--red-tint);    --ton-ink: var(--red-ink); }
.saison-karte.ton-blau { --ton: var(--blue-tint);   --ton-ink: var(--blue-ink); }
.saison-karte:hover { color: inherit; }
.saison-karte .bild { height: 152px; border-radius: 0; }
.saison-karte .bild-leer { border: 0; background: transparent; }
.saison-text { display: flex; flex-direction: column; gap: 5px; padding: 15px 17px 18px; }
.saison-text .dachzeile { font-size: 10.5px; letter-spacing: .2em; }
.saison-text h3 { font-size: 24px; font-weight: 600; color: var(--ton-ink); }
.saison-text p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.saison-karte.laeuft { outline: 2px solid var(--ton-ink); }
.saison-karte.laeuft .dachzeile { display: flex; align-items: center; gap: 7px; color: var(--ton-ink); }
.saison-karte.laeuft .dachzeile::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Jahreszeit-Karte mit mehreren Fotos: alle liegen übereinander, eines ist sichtbar (karten.js wechselt). */
.saison-bilder { position: relative; height: 152px; overflow: hidden; }
.saison-bilder .bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.saison-bilder .bild.zeigt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .saison-bilder .bild { transition: none; } }

/* Schnee, Herzen, Blätter (assets/js/effekt.js): liegen über der Seite, fangen aber keine Klicks ab
   und bleiben unter der Kopfzeile. */
.effekt { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.effekt i { position: absolute; top: -32px; display: block; animation: effekt-fall linear forwards; will-change: transform; }
.effekt svg { display: block; width: 100%; height: 100%; }
.effekt-schnee i { color: var(--ink); }
.effekt-herzen .farbe-0, .effekt-herzen .farbe-2 { color: var(--red-ink); }
.effekt-herzen .farbe-1 { color: var(--red); }
.effekt-blaetter .farbe-0 { color: var(--yellow); }
.effekt-blaetter .farbe-1 { color: var(--orange); }
.effekt-blaetter .farbe-2 { color: var(--red-ink); }
.effekt .glanz { stroke: var(--ink); opacity: .6; }
.effekt .ader { stroke: var(--bg); opacity: .45; }
/* Das <i> fällt, das <svg> darin bewegt sich zusätzlich je nach Art (Dauer aus effekt.js):
   Flocken pendeln und schimmern, Herzen schaukeln und pochen leicht, Blätter taumeln. */
.effekt-schnee svg { filter: drop-shadow(0 0 2px currentColor); animation: effekt-wiegen var(--pendel, 3s) ease-in-out infinite alternate; }
.effekt-herzen svg { animation: effekt-schaukeln var(--pendel, 2.4s) ease-in-out infinite alternate; }
.effekt-blaetter i { perspective: 120px; }
.effekt-blaetter svg { animation: effekt-taumeln var(--pendel, 2s) ease-in-out infinite alternate; }
@keyframes effekt-wiegen { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes effekt-schaukeln {
  0%   { transform: translateX(-12px) rotate(-14deg) scale(1); }
  50%  { transform: translateX(0) rotate(0deg) scale(1.08); }
  100% { transform: translateX(12px) rotate(14deg) scale(1); }
}
@keyframes effekt-taumeln {
  0%   { transform: translateX(-18px) rotateX(20deg) rotateY(-65deg); }
  50%  { transform: translateX(0) rotateX(-10deg) rotateY(0deg); }
  100% { transform: translateX(18px) rotateX(20deg) rotateY(65deg); }
}
@keyframes effekt-fall { to { transform: translate3d(var(--drift, 0), calc(100vh + 64px), 0) rotate(var(--dreh, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .effekt { display: none; } }

/* Anlass (Valentinstag, Allerheiligen …) auf der Startseite: Fotos links, Nachricht rechts. */
.anlass { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); }
.anlass.ohne-fotos { grid-template-columns: minmax(0, 1fr); }
.anlass-bilder { position: relative; height: auto; min-height: 340px; overflow: hidden; }
.anlass-bilder .bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.anlass-text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px 44px; }
.anlass-text .dachzeile { color: var(--yellow-ink); }
.anlass-text h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.12; }
.anlass-text p { margin: 0; max-width: 34em; font-size: 17px; color: var(--ink-2); }
.anlass-text .knopf-reihe { margin-top: 6px; }
@media (max-width: 820px) {
  .anlass { grid-template-columns: minmax(0, 1fr); }
  .anlass-bilder { min-height: 0; height: 250px; }
  .anlass-text { padding: 26px 24px 30px; }
}

/* Leiste am Ende einer Jahreszeit-Seite */
.saison-leiste { display: flex; flex-direction: column; gap: 12px; }
.saison-leiste-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.saison-pille {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; color: var(--ink);
}
a.saison-pille:hover { border-color: var(--green); color: var(--green); }
.saison-pille.hier { background: var(--surface-2); border-color: transparent; color: var(--ink-3); }
.saison-zurueck { margin-left: auto; padding: 10px 0; font-size: 15.5px; color: var(--ink-2); }

/* Diashow: Fotostreifen, der von selbst weiterläuft und sich wischen lässt */
.diashow { margin-bottom: 22px; }
.diashow-band {
  display: flex; gap: 12px; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--r-big);
}
.diashow-band::-webkit-scrollbar { display: none; }
.diashow-band li { flex: 0 0 min(82%, 400px); scroll-snap-align: start; }
.diashow figure { margin: 0; }
.diashow .bild { height: 280px; }
.diashow figcaption { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.diashow-knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.diashow-knoepfe[hidden] { display: none; }
.diashow-knoepfe button {
  min-width: var(--tap); min-height: var(--tap); padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--ink); font: 500 14px/1 var(--font); cursor: pointer;
}
.diashow-knoepfe button:hover { border-color: var(--green); color: var(--green); }

/* Ruhige Darstellung: dieselben Fotos als stilles Raster */
.diashow-ruhig .diashow-band { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); overflow: visible; }
.diashow-ruhig .bild { height: 240px; }

/* Die beiden großen Karten */
.bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.bereich { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); }
.bereich .bild { height: 258px; border-radius: 0; }
.bereich-text { display: flex; flex-direction: column; gap: 13px; padding: 26px 28px 30px; }
.bereich-text h3 { font-size: clamp(26px, 2.8vw, 31px); line-height: 1.12; }
.bereich-text h3 a { color: inherit; text-decoration: none; }
.bereich-text h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.bereich-text p { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.stichworte { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 0 0; list-style: none; }
.stichworte li { padding: 6px 12px; border-radius: var(--r-pill); font-size: 13.5px; line-height: 1.3; background: var(--green-tint); color: var(--green-ink); }
.bereich-1 .dachzeile { color: var(--red); }
.bereich-1 .stichworte li { background: var(--red-tint); color: var(--red-ink); }
.bereich-2 .dachzeile { color: var(--green-hover); }

/* Über uns */
.ueber {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 44px; align-items: center; padding-top: 40px; border-top: 1px solid var(--line);
}
.ueber-text { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.ueber-text h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; }
.ueber-text p { margin: 0; font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.ueber .bild { height: 300px; }

/* Schmaler Kasten am Ende */
.band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 28px 32px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-big);
  color: var(--ink); text-decoration: none;
}
.band:hover { border-color: var(--line-strong); color: var(--ink); }
.band-text { flex: 1 1 340px; }
.band h2 { font-size: 25px; color: var(--ink); }
.band p { margin: 5px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* --- 9. Öffnungszeiten ---------------------------------------------------- */

.zeiten { overflow: hidden; border-radius: 16px; background: var(--green); color: var(--on-green); }
.zeiten .dachzeile { color: var(--on-green-3); }
.zeiten a { color: var(--on-green); }
.zeiten dl, .zeiten dd { margin: 0; }

.zeiten-gross { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.zeiten-text { display: flex; flex-direction: column; gap: 26px; padding: 44px 46px 48px; }
.zeiten-text h2 { margin-top: 9px; font-size: 36px; line-height: 1.1; color: var(--on-green); }
.zeiten-liste > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--on-green-line); font-size: 16.5px; }
.zeiten-liste > div:last-child { border-bottom: 0; }
.zeiten-liste dt { white-space: nowrap; }
.zeiten-liste dd { text-align: right; color: var(--on-green-2); }
.am-stueck { display: block; white-space: nowrap; }
/* Sonderöffnungszeiten der nächsten Wochen, unter der Wochentabelle */
.zeiten-sonder { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--on-green-line); font-size: 15.5px; line-height: 1.6; }
.zeiten-sonder li + li { margin-top: 4px; }
.zeiten-sonder strong { font-weight: 600; }
.zeiten .zu { opacity: .65; }
.zeiten-anschrift { margin: 5px 0 0; font-size: 17px; line-height: 1.55; }
.zeiten-bild { position: relative; min-height: 420px; min-width: 0; }
.zeiten-bild .bild { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.zeiten-bild .bild-leer { border: 0; background: var(--green-hover); color: var(--on-green-2); }

.zeiten-schmal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 36px; padding: 40px 46px 44px; }
.zeiten-schmal p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.7; }
.zeiten-kurz { margin-top: 12px; font-size: 16.5px; line-height: 1.7; }
.zeiten-kurz > div + div { margin-top: 6px; }
.zeiten-kurz dd { color: var(--on-green-2); }
.zeiten-kurz .zu { display: flex; gap: .4em; }
.zeiten-telefon { display: inline-block; margin-top: 8px; font-family: var(--font-serif); font-size: 30px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.zeiten a.zeiten-telefon { color: var(--green-ink); }
.zeiten a.zeiten-telefon:hover { color: var(--green); }

/* --- 10. Unterseiten ------------------------------------------------------ */

.seitenkopf { padding-top: 48px; }
.seitenkopf.mit-bild { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 44px; align-items: center; }
.seitenkopf-text { display: flex; flex-direction: column; gap: 20px; max-width: 46rem; }
.seitenkopf h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; }
.seitenkopf-bild { height: 400px; }

.schlicht { max-width: calc(46rem + 2 * var(--seite-rand)); padding-top: 56px; }
.schlicht h1 { margin-bottom: 28px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.schlicht .knopf-reihe { margin-top: 24px; }

/* --- 11. Frei gestalteter Inhalt (Editor) --------------------------------- */

.seite.inhalt { padding-top: 60px; }
.inhalt > * { margin-block: 0; }
.inhalt > * + * { margin-top: 1.1em; }
.inhalt > p, .inhalt > ul, .inhalt > ol, .inhalt > h2, .inhalt > h3 { max-width: 44rem; }
.inhalt h2 { font-size: clamp(28px, 3vw, 34px); line-height: 1.12; }
.inhalt h3 { font-size: 24px; line-height: 1.2; }
.inhalt > * + h2 { margin-top: 60px; }
.inhalt > * + h3 { margin-top: 36px; }
.inhalt > h2 + * { margin-top: 14px; }
.inhalt > * + .wp-block-columns,
.inhalt > * + .wp-block-media-text,
.inhalt > * + .wp-block-group { margin-top: 28px; }
.inhalt p, .inhalt li { color: var(--ink-2); }
.inhalt li + li { margin-top: .35em; }

.wp-block-image img { border-radius: var(--r-big); }
.wp-block-image figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); }

.wp-block-button__link {
  padding: 13px 24px; border-radius: var(--r-pill);
  background: var(--green); color: var(--on-green);
  font-size: 16px; font-weight: 500; text-decoration: none;
}
.wp-block-button__link:hover { background: var(--green-hover); color: var(--on-green); }

/* Baustein „Karten mit Foto" */
.wp-block-columns.karten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px;
}
/* Genau vier Karten: vier nebeneinander, wenn Platz ist, sonst zwei mal zwei — nie drei und eine. */
@media (min-width: 620px) {
  .wp-block-columns.karten:has(> .karte:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .wp-block-columns.karten:has(> .karte:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
}
/* Fünf oder sechs Karten: drei nebeneinander (zwei Reihen), auf mittleren Bildschirmen zwei. */
@media (min-width: 620px) {
  .wp-block-columns.karten:has(> .karte:nth-child(5)):not(:has(> .karte:nth-child(7))) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .wp-block-columns.karten:has(> .karte:nth-child(5)):not(:has(> .karte:nth-child(7))) { grid-template-columns: repeat(3, 1fr); }
}
.wp-block-column.karte {
  overflow: hidden; padding-bottom: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big);
}
.karte > * { margin: 0; padding-inline: 22px; }
.karte > .wp-block-image { padding: 0; min-height: var(--karte-bild, 190px); background: var(--surface-2); }
.karte > .wp-block-image img { width: 100%; height: var(--karte-bild, 190px); object-fit: cover; border-radius: 0; }
.karte > .wp-block-image img:not([src]), .karte > .wp-block-image img[src=""] { visibility: hidden; }
.karte > h3 { margin-top: 20px; }
/* Karte noch ohne Foto: die Fläche bleibt frei, damit die Karte so hoch ist wie ihre Nachbarn. */
.vorn .karte > h3:first-child::before { content: ""; display: block; height: var(--karte-bild, 190px); margin: -20px -22px 20px; background: var(--surface-2); }

/* Im Editor steckt jedes Bild in einem Rahmen zum Größeziehen, der dem Bild seine
   Originalhöhe vererbt — ein Hochkantfoto zog die Karte dort weit in die Länge.
   Hier bekommt der Rahmen dieselbe feste Höhe wie auf der Seite. */
.karte > .wp-block-image .components-resizable-box__container { width: 100% !important; max-width: none !important; height: var(--karte-bild, 190px) !important; }
.karte > .wp-block-image .components-resizable-box__container img { width: 100% !important; height: 100% !important; object-fit: cover; }

/* In einer Karte ist die Überschrift die Beschriftung. Eine Bildunterschrift am Foto würde
   beim Bilderwechsel über Überschrift und Text rutschen — auf der Seite bleibt sie deshalb weg,
   und der Bildbereich ist fest so hoch wie das Foto. */
.vorn .karte > .wp-block-image { height: var(--karte-bild, 190px); overflow: hidden; }
.vorn .karte > .wp-block-image figcaption { display: none; }

/* Mehrere Bilder in einer Karte wechseln auf der Seite an derselben Stelle durch
   (assets/js/karten.js). Im Editor stehen sie einfach untereinander. */
.vorn .karte > .wp-block-image ~ .wp-block-image { display: none; }
.karte-wechsel { position: relative; }
.vorn .karte-wechsel > .wp-block-image { opacity: 0; transition: opacity .9s ease; cursor: pointer; }
.vorn .karte-wechsel > .wp-block-image ~ .wp-block-image { display: block; position: absolute; top: 0; left: 0; right: 0; }
.vorn .karte-wechsel > .wp-block-image.zeigt { opacity: 1; z-index: 1; }
.karte > p { margin-top: 7px; font-size: 15px; line-height: 1.55; }

/* Galerie in einer Karte: mehrere Fotos auf einmal aus der Mediathek gewählt.
   Auf der Seite liegen sie übereinander und wechseln durch (assets/js/karten.js);
   im Editor bleibt die Galerie als kleine Übersicht zum Bearbeiten stehen.
   Die !important sind nötig, weil WordPress die Breiten der Galeriebilder sehr hart setzt. */
.karte > .wp-block-gallery { margin: 0; }
.vorn .karte > .wp-block-gallery { display: block; position: relative; height: var(--karte-bild, 190px); padding: 0; overflow: hidden; background: var(--surface-2); }
.vorn .karte > .wp-block-gallery > figure.wp-block-image {
  position: absolute; inset: 0; width: 100% !important; height: 100%; margin: 0 !important;
  opacity: 0; transition: opacity .9s ease;
}
.vorn .karte > .wp-block-gallery > figure.wp-block-image:first-child { opacity: 1; }
.vorn .karte > .wp-block-gallery > figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.vorn .karte > .wp-block-gallery figcaption { display: none; }
.vorn .karte-wechsel > .wp-block-gallery > figure.wp-block-image { cursor: pointer; }
.vorn .karte-wechsel > .wp-block-gallery > figure.wp-block-image:first-child { opacity: 0; }
.vorn .karte-wechsel > .wp-block-gallery > figure.wp-block-image.zeigt { opacity: 1; z-index: 1; }

/* Baustein „Ablauf in Schritten" */
.wp-block-columns.zweiteilig { gap: 28px 44px; align-items: flex-start; }
.zweiteilig .wp-block-column > * { margin-block: 0; }
.zweiteilig .wp-block-column > * + * { margin-top: 14px; }
ol.schritte { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
ol.schritte li {
  position: relative; margin: 0; padding: 22px 24px 22px 66px;
  background: var(--surface-2); border-radius: var(--r-card);
  font-size: 15.5px; line-height: 1.55; counter-increment: schritt;
}
ol.schritte li::before {
  content: counter(schritt); position: absolute; left: 24px; top: 20px;
  font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1; color: var(--red);
}
ol.schritte li strong { font-size: 17.5px; font-weight: 500; color: var(--ink); }

/* Baustein „Hervorgehobener Kasten" */
.wp-block-group.kasten { padding: 24px 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-big); }
.kasten > * { margin-block: 0; }
.kasten > * + * { margin-top: 10px; }
/* Gelb = Hinweis, den niemand überlesen darf. */
.wp-block-group.kasten.wichtig { background: var(--yellow-tint); border-color: var(--yellow); border-left-width: 5px; }
.kasten.wichtig strong { color: var(--yellow-ink); }
.inhalt > .kasten.wichtig:first-child { margin-bottom: 44px; }

/* Baustein „Foto neben Text" */
.wp-block-media-text { gap: 24px 44px; align-items: center; }
.wp-block-media-text > .wp-block-media-text__content { padding: 0; }
/* Das Foto ist so groß wie das Bild im Seitenkopf und wird von selbst auf dieses Format zugeschnitten. */
.wp-block-media-text__media img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--r-big); }
.wp-block-media-text + .wp-block-media-text { margin-top: 56px; }
/* Ohne Foto nimmt der Text die ganze Breite — kein leeres Feld auf der Seite. */
.vorn .wp-block-media-text:has(> .wp-block-media-text__media:empty) { display: block; }
.vorn .wp-block-media-text > .wp-block-media-text__media:empty { display: none; }

/* Mehrere dieser Bausteine hintereinander wechseln von selbst die Seite: Foto links,
   Foto rechts, Foto links … Wer die Seite über die Leiste von Hand umstellt, behält seine Wahl. */
@media (min-width: 601px) {
  .wp-block-media-text:nth-child(even of .wp-block-media-text):not(.has-media-on-the-right) { grid-template-columns: 1fr 50%; }
  .wp-block-media-text:nth-child(even of .wp-block-media-text):not(.has-media-on-the-right) > .wp-block-media-text__media { grid-column: 2; grid-row: 1; }
  .wp-block-media-text:nth-child(even of .wp-block-media-text):not(.has-media-on-the-right) > .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
}
.wp-block-media-text__content > * { margin-block: 0; }
.wp-block-media-text__content > * + * { margin-top: 14px; }

/* --- 12. Fußzeile --------------------------------------------------------- */

.fuss { margin-top: 80px; background: var(--surface-2); border-top: 1px solid var(--line); }
.fuss-innen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; padding-block: 40px 46px; }
.fuss-logo img { display: block; width: auto; height: 64px; margin-bottom: 16px; }
.fuss-name { font-family: var(--font-serif); font-size: 23px; font-weight: 600; color: var(--green); }
.fuss-marke p { margin: 11px 0 0; font-size: 15.5px; color: var(--ink-2); }
.fuss-marke a { color: inherit; }
.fuss-spalte .dachzeile { font-size: 11px; }
.fuss-spalte ul { margin: 11px 0 0; padding: 0; list-style: none; }
.fuss-spalte li + li { margin-top: 9px; }
.fuss-spalte a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.fuss-spalte a:hover { color: var(--green); text-decoration: underline; }

/* --- 13. Schmale Bildschirme ---------------------------------------------- */

/* Das Hauptmenü klappt früher ein als der Rest, damit es nie zweizeilig wird. */
@media (max-width: 1240px) {
  .kopf-innen { gap: 10px; }
  .kopf-telefon { margin-left: auto; }
  .kopf-whatsapp { margin-left: auto; }
  .kopf-whatsapp + .kopf-telefon { margin-left: 0; }
  .menue-knopf {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: var(--tap); padding: 0 14px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
    color: var(--ink); font: 500 15px/1 var(--font); cursor: pointer;
  }
  .navi {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 6px var(--seite-rand) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .menue-offen .navi { display: block; }
  .navi-liste { flex-direction: column; gap: 0; font-size: 17px; }
  .navi-liste a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .navi-liste li:last-child a { border-bottom: 0; }
}

@media (max-width: 900px) {
  :root { --seite-rand: 20px; }

  .auftakt { padding-top: 32px; gap: 32px; }
  .auftakt-bilder { grid-template-rows: 150px 150px; }
  .abschnitt { padding-top: 52px; }
  .diashow .bild { height: 220px; }
  .wp-block-media-text__media img { height: 280px; }
  .wp-block-media-text + .wp-block-media-text { margin-top: 40px; }
  .zeiten-text { padding: 32px 24px 36px; }
  .zeiten-bild { min-height: 260px; }
  .zeiten-schmal { gap: 28px; padding: 30px 24px 34px; }
  .seitenkopf { padding-top: 32px; }
  .seitenkopf-bild { height: 280px; }
  .seite.inhalt { padding-top: 44px; }
  .band { padding: 24px; }
  .fuss { margin-top: 60px; }
}

@media (max-width: 782px) {
  .admin-bar .kopf { top: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .kopf { top: 0; }
  .marke-name { font-size: 21px; }
  .marke-zeile { display: none; }
  .kopf-telefon, .kopf-whatsapp { width: var(--tap); padding: 0; justify-content: center; }
  .kopf-telefon span, .kopf-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menue-knopf span { display: none; }
  .menue-knopf { flex: none; width: var(--tap); padding: 0; justify-content: center; }
}

/* Schmale Handys: Name und drei Knöpfe müssen nebeneinander passen. */
@media (max-width: 420px) {
  .kopf-innen { gap: 6px; }
  .kopf .marke-name { font-size: 18px; }
  .marke-bild img { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vorn .karte-wechsel > .wp-block-image { transition: none; }
}

@media print {
  .kopf, .hinweisband, .knopf-reihe, .fuss-spalte { display: none; }
  body { background: var(--surface); }
}
