/* =====================================================================
   Galerie Koch – Stil der öffentlichen Seiten
   ---------------------------------------------------------------------
   Stimmung: hell, klar, zeitgemäß. Weißer Grund, große Fotos mit weichen
   Ecken, eine kräftige Groteskschrift und ein Beerenton als einzige
   Akzentfarbe (abgeleitet vom malvenfarbenen Schriftzug im Schaufenster).
   Die Fotos tragen die Seite; Rahmen, Passepartouts und Leuchten gibt es
   nicht mehr.

   Begründung in design-system/galerie-koch/MASTER.md. Jede Farbe steht
   genau einmal hier oben; weiter unten wird nur auf Variablen verwiesen.
   ===================================================================== */

/* ------------------------------------------------------------- Schriften
   Selbst gehostet (OFL, Lizenz in assets/fonts/). Keine Verbindung zu
   Google Fonts – das würde die IP-Adresse jedes Besuchers übertragen. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------- Variablen */
:root {
  --color-background:       #FFFFFF;
  --color-foreground:       #1B1A19;  /* Tinte, 17 : 1 auf Weiß */
  --color-muted:            #F5F3EF;  /* ruhige Fläche zwischen weißen Abschnitten */
  --color-muted-foreground: #5F5A55;  /* 6,8 : 1 auf Weiß, 6,1 : 1 auf der ruhigen Fläche */
  --color-border:           #E3DFD8;  /* nur Zierde */
  --color-feldrand:         #857E76;  /* Ränder von Eingabefeldern, 4 : 1 */
  --color-primary:          #8A2E55;  /* Beere – Knöpfe und Betonungen; 8,1 : 1 mit Weiß */
  --color-primary-hover:    #6F2243;
  --color-primary-zart:     #F7ECF1;  /* Hinweisflächen */
  --color-on-primary:       #FFFFFF;
  --color-tinte:            #1B1A19;  /* dunkle Flächen: Fuß, Öffnungszeiten */
  --color-on-tinte:         #FFFFFF;
  --color-on-tinte-muted:   #C9C5BF;  /* 10 : 1 auf Tinte */
  --color-offen:            #2E7D4F;
  --color-destructive:      #B3261E;

  --schrift: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --breite:        76rem;
  --breite-schmal: 44rem;
  --rand:          clamp(1.1rem, 4vw, 2.5rem);
  --luft:          clamp(3.75rem, 8vw, 6.5rem);
  --spalt:         clamp(0.6rem, 1.4vw, 1rem);   /* Abstand zwischen Fotos */
  --radius:        14px;
  --radius-klein:  8px;
  --kopf-hoehe:    4.5rem;
  --dauer:         200ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sprungziele (#angebot …) nicht unter der klebenden Kopfzeile verstecken. */
  scroll-padding-top: calc(var(--kopf-hoehe) + 1rem);
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--schrift);
  font-size: clamp(1.03rem, 0.99rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Lange deutsche Wörter und Adressen dürfen umbrechen – sonst schieben sie
     auf dem Handy die Seite in die Breite. */
  overflow-wrap: break-word;
}

img, picture { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem); letter-spacing: -0.012em; line-height: 1.2; }

p { margin: 0 0 1.05em; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color var(--dauer), text-decoration-color var(--dauer);
}
a:hover { color: var(--color-primary); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

address { font-style: normal; }

.klein { font-size: 0.9rem; color: var(--color-muted-foreground); }
.gross { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.5; }

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

.sprungmarke {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--color-primary); color: var(--color-on-primary);
  padding: 0.7rem 1.1rem; border-radius: var(--radius-klein);
}
.sprungmarke:focus { top: 1rem; }

/* ------------------------------------------------------------- Gerüst */
.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}
.huelle--schmal { max-width: calc(var(--breite-schmal) + 2 * var(--rand)); }

.abschnitt { padding-block: var(--luft); }
.abschnitt--gedaempft { background: var(--color-muted); }
.abschnitt--schmal-luft { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.abschnitt__kopf { max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.abschnitt__kopf h2 { margin-bottom: 0.35em; }
.abschnitt__kopf p { color: var(--color-muted-foreground); margin: 0; }
.abschnitt__kopf--mitte { margin-inline: auto; text-align: center; }
/* Überschrift links, Knopf rechts auf einer Höhe. */
.abschnitt__kopf--reihe {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2rem;
}
.abschnitt__kopf--reihe > div { max-width: 42rem; }

.ueberzeile {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

/* Foto, das seine Fläche ganz füllt und mittig zugeschnitten wird. Das Bild
   liegt absolut in der Fläche, damit seine eigene Höhe das Raster nicht
   aufbläht. */
.foto {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-muted);
}
.foto picture { position: absolute; inset: 0; max-width: none; }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- Knöpfe */
.knopfreihe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.75rem 0 0; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dauer), color var(--dauer), border-color var(--dauer);
}
.knopf:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-on-primary); }

.knopf--rand { background: transparent; color: var(--color-foreground); border-color: var(--color-foreground); }
.knopf--rand:hover { background: var(--color-foreground); border-color: var(--color-foreground); color: var(--color-background); }

.knopf--klein { min-height: 2.6rem; padding: 0.45rem 1.05rem; font-size: 0.92rem; }

.knopf--telefon { background: transparent; color: var(--color-foreground); border-color: var(--color-border); font-weight: 400; }
.knopf--telefon:hover { background: transparent; border-color: var(--color-foreground); color: var(--color-foreground); }

.alsLink {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit;
  text-decoration: underline; text-decoration-color: currentColor;
  text-underline-offset: 0.2em; cursor: pointer;
}

/* ------------------------------------------------------------- Hinweise */
.testbalken, .hinweisbanner {
  padding: 0.6rem var(--rand);
  text-align: center;
  font-size: 0.92rem;
}
.testbalken    { background: #F2D9A8; color: #3A2A10; }
.hinweisbanner { background: var(--color-primary); color: var(--color-on-primary); }

.hinweis {
  max-width: 44rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--color-primary-zart);
}
.hinweis h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 0.4em; }
.hinweis p:last-child { margin-bottom: 0; }

.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-muted-foreground);
}
.status__punkt {
  flex: none;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: #B5AFA7;
}
.status.istOffen .status__punkt { background: var(--color-offen); box-shadow: 0 0 0 3px rgba(46, 125, 79, .18); }
.status--pille {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--color-muted);
  color: var(--color-foreground);
}

/* ------------------------------------------------------------- Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.kopf__innen {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
  min-height: var(--kopf-hoehe);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.kopf__marke { text-decoration: none; color: var(--color-foreground); }
.kopf__marke:hover { color: var(--color-foreground); }

.marke { display: inline-flex; align-items: center; gap: 0.7rem; }
.marke__text { display: flex; flex-direction: column; line-height: 1; }
/* Die Katze aus dem Logo; Höhe gibt das Maß, die Breite folgt dem Seitenverhältnis. */
.marke__katze { display: block; width: auto; height: 3.1rem; flex: none; }
.marke__name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marke__zusatz {
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--color-muted-foreground);
}
.kopf .marke__text { white-space: nowrap; }

.kopf__nav { display: flex; align-items: center; gap: 2rem; }
.kopf__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.kopf__nav a:not(.knopf) {
  display: inline-block;
  padding-block: 0.6rem;
  text-decoration: none;
  font-size: 0.98rem;
  white-space: nowrap;      /* „Über uns“ darf nie umbrechen */
  color: var(--color-foreground);
  background: linear-gradient(var(--color-primary), var(--color-primary)) no-repeat left 88% / 0 2px;
  transition: background-size var(--dauer), color var(--dauer);
}
.kopf__nav a:not(.knopf):hover,
.kopf__nav a[aria-current="page"] { background-size: 100% 2px; color: var(--color-foreground); }
.kopf__nav a[aria-current="page"] { font-weight: 700; }

.kopf__aktionen { display: flex; align-items: center; gap: 1.25rem; }
.kopf .status--kopf {
  margin: 0; font-size: 0.85rem; white-space: nowrap;
  /* Wird es doch einmal zu eng (langer Wochentag), kürzt sich der Status mit
     „…“ statt die Telefonnummer aus der Kopfzeile zu schieben. */
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.kopf .knopf--telefon { white-space: nowrap; }   /* Telefonnummer bleibt eine Zeile */

.kopf__werkzeuge { display: none; }
.kopf__schalter {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%;
  color: var(--color-foreground); cursor: pointer;
}
.kopf__anruf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 1.5px solid var(--color-border); border-radius: 50%;
  color: var(--color-foreground);
}
.kopf__anruf:hover { border-color: var(--color-foreground); color: var(--color-foreground); }
.kopf__schalter-balken,
.kopf__schalter-balken::before,
.kopf__schalter-balken::after {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--dauer), background var(--dauer);
}
.kopf__schalter-balken { position: relative; }
.kopf__schalter-balken::before, .kopf__schalter-balken::after { content: ""; position: absolute; left: 0; }
.kopf__schalter-balken::before { top: -7px; }
.kopf__schalter-balken::after  { top:  7px; }
.kopf__schalter[aria-expanded="true"] .kopf__schalter-balken { background: transparent; }
.kopf__schalter[aria-expanded="true"] .kopf__schalter-balken::before { transform: translateY(7px) rotate(45deg); }
.kopf__schalter[aria-expanded="true"] .kopf__schalter-balken::after  { transform: translateY(-7px) rotate(-45deg); }

/* Ab hier das Handymenü. Die Grenze liegt bei 64rem, nicht tiefer: Mit
   vier Seiten, Offen-Anzeige und Telefonknopf reicht die Breite darunter
   nicht mehr für eine Zeile. */
@media (max-width: 64rem) {
  .kopf__innen { flex-wrap: wrap; gap: 0.75rem; }
  .kopf__werkzeuge { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
  .mitSkript .kopf__schalter { display: inline-flex; }
  /* Ohne Skript steht das Menü als Liste unter dem Schriftzug. */
  .kopf__nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1rem; }
  .mitSkript .kopf__nav {
    display: none;
    width: auto;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 0.5rem var(--rand) 1.5rem;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 18px 30px -22px rgba(27, 26, 25, .35);
  }
  .mitSkript .kopf__nav.istOffen { display: flex; }
  .kopf__nav ul { flex-direction: column; gap: 0; }
  .kopf__nav ul a:not(.knopf) {
    display: block; padding-block: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.15rem; font-weight: 700; background: none;
  }
  .kopf__aktionen { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
/* Zwischen Handymenü und breitem Bildschirm wird es in der Kopfzeile eng –
   dort steht der Status ohnehin im Aufmacher und im Abschnitt „Besuch“.
   Grenze 80rem: Bis 1280 px brachen „Über uns“ und die Telefonnummer um,
   sobald der längere Text „Heute geschlossen · Morgen ab 10 Uhr“ anlag. */
@media (min-width: 64.01rem) and (max-width: 80rem) { .kopf .status--kopf { display: none; } }

/* Schmale Handys: Katze, Schriftzug, Telefon und Menü müssen in eine Zeile
   passen – sonst rutschen die Knöpfe in eine zweite. Unter 30rem fällt die
   Unterzeile weg; Name und Katze genügen. */
@media (max-width: 30rem) {
  .kopf .marke { gap: 0.55rem; }
  .kopf .marke__katze { height: 2.8rem; }
  .kopf .marke__name { font-size: 1rem; letter-spacing: 0.1em; }
  .kopf .marke__zusatz { display: none; }
}

/* ------------------------------------------------------------- Aufmacher
   Links Überschrift, Satz und Knöpfe, rechts ein Mosaik aus drei Fotos.
   Auf dem Handy rückt das Mosaik direkt unter die Überschrift – sonst sähe
   man beim Öffnen nur Schrift. Die Reihenfolge im Quelltext (Kopf, Mosaik,
   Rest) entspricht der auf dem Handy; breite Bildschirme sortieren per
   Rasterflächen um. */
.start { padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--luft); }
.start__raster {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kopf" "mosaik" "rest";
}
.start__kopf   { grid-area: kopf; }
.start__mosaik { grid-area: mosaik; }
.start__rest   { grid-area: rest; }
.start__titel { margin: 0; }
.start__kopf .ueberzeile { margin-bottom: 0.8rem; }
.start__unterzeile {
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--color-muted-foreground);
  max-width: 34rem;
  margin-bottom: 1.25rem;
}
.start__rest .status { margin: 0; }
@media (min-width: 64rem) {
  .start__raster {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    /* Zwei Zeilen, das Mosaik überspannt beide: Sein Überschuss an Höhe
       verteilt sich gleichmäßig, Überschrift (unten bündig) und Rest (oben
       bündig) stehen so als Block mittig neben den Fotos. */
    grid-template-rows: auto auto;
    grid-template-areas: "kopf mosaik" "rest mosaik";
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: 1.75rem;
  }
  .start__kopf { align-self: end; }
  .start__raster--ohneBild { grid-template-columns: minmax(0, 46rem); grid-template-areas: "kopf" "rest"; }
}

.mosaik {
  display: grid;
  gap: var(--spalt);
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  aspect-ratio: 5 / 4;
}
.mosaik .foto:first-child { grid-row: 1 / -1; }
.mosaik--2 { grid-template-rows: minmax(0, 1fr); }
.mosaik--1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
@media (min-width: 64rem) { .mosaik { aspect-ratio: 1 / 1.06; } }

/* ------------------------------------------------------------- Vorstellung
   Überschrift links, Text rechts – wie der Vorspann eines Magazins. */
.spalten { display: grid; gap: 1rem clamp(2rem, 6vw, 5rem); }
.spalten h2 { margin: 0; }
.spalten__text p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) {
  .spalten { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}

/* ------------------------------------------------------------- Kacheln
   Die Angebotsbereiche: Foto oben, Titel und ein Satz darunter. */
.kacheln {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.25rem) clamp(1rem, 2.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.kachel { display: block; color: inherit; text-decoration: none; }
.kachel:hover { color: inherit; }
.kachel .foto { aspect-ratio: 4 / 5; }
.kachel .foto img { transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
a.kachel:hover .foto img,
a.kachel:focus-visible .foto img { transform: scale(1.04); }
.kachel__text { padding-top: 1rem; }
.kachel__titel {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: 0 0 0.3rem;
}
a.kachel .kachel__titel::after {
  content: "→";
  flex: none;
  color: var(--color-primary);
  transition: transform var(--dauer);
}
a.kachel:hover .kachel__titel::after { transform: translateX(0.3rem); }
.kachel__text p { margin: 0; color: var(--color-muted-foreground); }
@media (max-width: 40rem) { .kachel .foto { aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------- Einblicke
   Fünf Fotos: eines groß, vier klein. Mit weniger oder mehr Fotos ein
   gleichmäßiges Raster (--schlicht). */
.einblicke {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: var(--spalt);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.einblicke .foto { aspect-ratio: 1; }
.einblicke:not(.einblicke--schlicht) .foto:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 52rem) {
  .einblicke { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .einblicke:not(.einblicke--schlicht) .foto:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .einblicke--schlicht { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .einblicke--schlicht .foto { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------- Reihe
   Foto und Text nebeneinander; --gedreht tauscht die Seiten. */
.reihe { display: grid; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
/* Auf dem Handy quadratisch und nach oben gerückt: Beim Foto der Galerie von
   außen bliebe sonst der Schriftzug „GALERIE“ abgeschnitten. */
.reihe__bild { aspect-ratio: 1; }
.reihe__bild img { object-position: 50% 12%; }
.reihe__text > :last-child { margin-bottom: 0; }
.reihe__text p { color: var(--color-muted-foreground); }
.reihe__text .knopfreihe { margin-top: 1.5rem; }
@media (min-width: 56rem) {
  .reihe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reihe--ohneBild { grid-template-columns: minmax(0, 44rem); }
  .reihe__bild { aspect-ratio: 4 / 4.6; }
  .reihe--gedreht > :first-child { order: 2; }
}

/* ------------------------------------------------------------- Besuch */
.besuch { display: grid; gap: clamp(2rem, 6vw, 4.5rem); }
@media (min-width: 56rem) {
  .besuch { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
.besuch__text > p { color: var(--color-muted-foreground); }
.besuch__adresse { margin-top: 1.4rem; line-height: 1.75; }
.besuch__zeiten {
  background: var(--color-tinte);
  color: var(--color-on-tinte);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.besuch__zeiten h3 { margin-bottom: 0.9rem; }
.besuch__zeiten .status { color: var(--color-on-tinte); background: rgba(255, 255, 255, .12); padding: 0.4rem 0.9rem; border-radius: 999px; }
.besuch__zeiten .status.istOffen .status__punkt { background: #6FD08E; box-shadow: 0 0 0 3px rgba(111, 208, 142, .22); }
.besuch__zeiten .zeiten dt, .besuch__zeiten .zeiten__zu, .besuch__zeiten .klein { color: var(--color-on-tinte-muted); }
.besuch__zeiten .zeiten--gross dt, .besuch__zeiten .zeiten--gross dd { border-bottom-color: rgba(255, 255, 255, .16); }
.besuch__zeiten :focus-visible { outline-color: var(--color-on-tinte); }
.besuch__gutschein { margin: 1.2rem 0 0; font-size: 0.95rem; color: var(--color-on-tinte-muted); }

.zeiten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1rem;
}
.zeiten dt { color: var(--color-muted-foreground); }
.zeiten dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.zeiten__zu { color: var(--color-muted-foreground); }
.zeiten--gross { font-size: 1.05rem; gap: 0.6rem 1.5rem; }
.zeiten--gross dt, .zeiten--gross dd { padding-bottom: 0.6rem; border-bottom: 1px solid var(--color-border); }

/* ------------------------------------------------------------- Seitenkopf
   Kopf jeder Unterseite: große Überschrift auf ruhiger Fläche. */
.seitenkopf { background: var(--color-muted); padding-block: clamp(2.75rem, 7vw, 5rem); }
.seitenkopf .ueberzeile { margin-bottom: 0.8rem; }
.seitenkopf__titel { margin-bottom: 0.3em; max-width: 20ch; }
.seitenkopf__einleitung {
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--color-muted-foreground);
  max-width: 40rem;
  margin: 0;
}

/* ------------------------------------------------------------- Angebot
   Sprungleiste zu den Bereichen, dann je Bereich eine Reihe aus Text und
   bis zu drei Fotos. */
.stationen { border-bottom: 1px solid var(--color-border); }
.stationen__liste {
  list-style: none; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  padding-block: 1rem;
}
.stationen__liste a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.05rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color var(--dauer), background var(--dauer), color var(--dauer);
}
.stationen__liste a:hover { border-color: var(--color-foreground); color: var(--color-foreground); }

.station { padding-block: var(--luft); overflow-x: clip; }
.station--gedaempft { background: var(--color-muted); }
.station__titel { margin-bottom: 0.4em; }

.bildgruppe {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: var(--spalt);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bildgruppe .foto { aspect-ratio: 1; }
.bildgruppe .foto:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.bildgruppe--2 .foto { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

/* ------------------------------------------------------------- Weiter
   Am Ende jeder Unterseite der Verweis zur nächsten. */
.weiter { border-top: 1px solid var(--color-border); }
.weiter__innen { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.weiter .ueberzeile { margin-bottom: 0.4rem; color: var(--color-muted-foreground); }
.weiter__verweis {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-decoration: none;
}
.weiter__pfeil { color: var(--color-primary); transition: transform var(--dauer); }
.weiter__verweis:hover .weiter__pfeil { transform: translateX(0.3em); }

/* ------------------------------------------------------------- Künstler
   Buchstabenleiste, darunter je Buchstabe eine Gruppe mit Karten. */
.register { border-bottom: 1px solid var(--color-border); }
.register__leiste {
  list-style: none; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.15rem;
  padding-block: 0.9rem;
}
.register__leiste a,
.register__leiste span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.4rem;
  border-radius: var(--radius-klein);
  font-size: 0.95rem;
  text-decoration: none;
}
.register__leiste a { font-weight: 700; color: var(--color-primary); min-width: 2.75rem; height: 2.75rem; }
.register__leiste a:hover { background: var(--color-primary-zart); }
.register__leiste span { color: #B5AFA7; }

.verzeichnis { padding-block: clamp(1.5rem, 4vw, 2.5rem) var(--luft); }
.verzeichnis__gruppe { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.verzeichnis__gruppe + .verzeichnis__gruppe { border-top: 1px solid var(--color-border); }
.verzeichnis__innen { display: grid; gap: 1rem clamp(1.5rem, 4vw, 3rem); }
.verzeichnis__buchstabe {
  font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
  line-height: 1;
  color: var(--color-primary);
  margin: 0;
}
.verzeichnis__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.25rem) clamp(1rem, 2.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
@media (min-width: 52rem) {
  .verzeichnis__innen { grid-template-columns: 6rem minmax(0, 1fr); align-items: start; }
}
.kuenstler__werk { aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.kuenstler__name { margin-bottom: 0.2rem; }
.kuenstler__angaben { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.5rem; }
.kuenstler__schild p { color: var(--color-muted-foreground); }
.kuenstler__schild p:last-child { margin-bottom: 0; }
.kuenstler__verweis { margin-top: 0.6rem; }
.kuenstler--beispiel { opacity: 0.6; }

/* ------------------------------------------------------------- Über uns */
.chronik__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  max-width: 46rem;
}
.chronik__eintrag {
  position: relative;
  padding: 0 0 2rem 2.25rem;
  border-left: 2px solid var(--color-border);
}
.chronik__eintrag:last-child { padding-bottom: 0; border-left-color: transparent; }
.chronik__eintrag::before {
  content: "";
  position: absolute; left: -0.5rem; top: 0.3rem;
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-background);
}
.chronik__wann { font-size: 1.25rem; margin-bottom: 0.25rem; }
.chronik__eintrag p { margin: 0; color: var(--color-muted-foreground); }

.person { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) {
  .person--mit-bild { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.person__bild { aspect-ratio: 4 / 5; }
.person__text { max-width: 44rem; }
.person__name { margin-bottom: 0.5em; }
.person__zitat {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-primary);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.5;
}
.person__zitat p:last-child { margin-bottom: 0; }

.ort__adresse { margin: 1.25rem 0 0; font-weight: 700; }

/* ------------------------------------------------------------- Kontakt
   Links die Karte mit Öffnungszeiten und Anschrift, rechts das Formular. */
.kontakt { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 60rem) {
  .kontakt { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.abschnitt--kontakt { padding-top: clamp(2rem, 5vw, 3.5rem); }

.besucherkarte,
.briefkarte { border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.25rem); }
.besucherkarte { background: var(--color-muted); }
.briefkarte { border: 1.5px solid var(--color-border); }
.besucherkarte__kopf { margin-bottom: 0.8rem; }
.besucherkarte__titel { font-size: 1.25rem; letter-spacing: -0.01em; margin: 1.6rem 0 0.7rem; }
.besucherkarte .status { margin: 0; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--color-background); color: var(--color-foreground); }
.besucherkarte__adresse { line-height: 1.75; }
.besucherkarte__wege { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.besucherkarte__wege a { display: inline-block; padding-block: 0.3rem; }
.briefkarte__titel { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: 0.4em; }

.formular { display: grid; gap: 1.2rem; margin-top: 1.25rem; }
.feld { display: grid; gap: 0.4rem; }
.feld > label { font-size: 0.92rem; font-weight: 700; }
.feld input:not([type="checkbox"]),
.feld select,
.feld textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
  color: var(--color-foreground);
  background-color: var(--color-background);
  border: 1.5px solid var(--color-feldrand);
  border-radius: var(--radius-klein);
  transition: border-color var(--dauer), box-shadow var(--dauer);
}
.feld select {
  appearance: none;
  padding-right: 2.2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.feld textarea { min-height: 9.5rem; line-height: 1.55; resize: vertical; }
.feld input:not([type="checkbox"]):focus,
.feld select:focus,
.feld textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(138, 46, 85, .2); }
/* So spezifisch wie die Feldregel oben, sonst gewänne die und der Rand
   bliebe grau. */
.feld input:not([type="checkbox"])[aria-invalid="true"],
.feld textarea[aria-invalid="true"],
.feld select[aria-invalid="true"] { border-color: var(--color-destructive); border-width: 2px; }
.feld__notiz { font-size: 0.85rem; font-weight: 400; color: var(--color-muted-foreground); }
.feld__fehler { font-size: 0.9rem; color: var(--color-destructive); }
.pflicht { color: var(--color-destructive); }

.feld--haken { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 0.75rem; }
.feld--haken input {
  width: 1.3rem; height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-primary);
}
.feld--haken label { font-size: 0.92rem; font-weight: 400; }
.feld--haken .feld__fehler { grid-column: 1 / -1; }

.meldung { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 4px solid; border-radius: 0 var(--radius-klein) var(--radius-klein) 0; }
.meldung p { margin: 0.35rem 0 0; }
.meldung--gut    { border-color: var(--color-offen);       background: #EAF4EE; }
.meldung--fehler { border-color: var(--color-destructive); background: #FBEDEA; }
.fehlerliste { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.fehlerliste a { color: var(--color-destructive); text-decoration-color: currentColor; }

/* Köderfeld gegen Spam (inc/formular.php): für Menschen unsichtbar, für
   Vorleseprogramme per aria-hidden ausgeblendet. Nicht display:none – das
   erkennen manche Bots und lassen das Feld dann leer. */
.koeder {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- Fließtext
   Impressum, Datenschutz und Fehlerseite. */
.fliesstext h1 { font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.2rem); }
.fliesstext h2 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem); letter-spacing: -0.012em; margin-top: 2.2em; }
.fliesstext h3 { font-size: 1.15rem; margin-top: 1.6em; }
.fliesstext ul { padding-left: 1.2rem; }
.fliesstext li { margin-bottom: 0.5em; }
.fliesstext { hyphens: auto; }

/* ------------------------------------------------------------- Fußzeile
   Dunkel: links Katze und Name, daneben drei Spalten. */
.fuss {
  background: var(--color-tinte);
  color: var(--color-on-tinte);
  padding-top: clamp(3rem, 7vw, 4.75rem);
}
.fuss a { text-decoration-color: rgba(255, 255, 255, .45); }
.fuss a:hover { color: var(--color-on-tinte); text-decoration-color: var(--color-on-tinte); }
.fuss :focus-visible { outline-color: var(--color-on-tinte); }
.fuss__innen {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
}
@media (min-width: 60rem) {
  .fuss__innen { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.6fr); }
}
.fuss__marke .marke { gap: 1rem; align-items: center; }
/* Die Katzenlinie ist dunkel gezeichnet; auf der dunklen Fläche wird sie
   per Filter weiß. */
.fuss__marke .marke__katze { height: clamp(5.5rem, 4.5rem + 3vw, 7.5rem); filter: invert(1) brightness(1.6); }
.fuss__marke .marke__name { font-size: 1.15rem; }
.fuss__marke .marke__zusatz { color: var(--color-on-tinte-muted); }
.fuss__spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 2.25rem clamp(1.5rem, 4vw, 3rem);
}
.fuss h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-tinte-muted);
  margin-bottom: 1rem;
}
.fuss__adresse { margin-bottom: 0.8rem; }
.fuss .zeiten { font-size: 0.95rem; }
.fuss .zeiten dt, .fuss .zeiten__zu, .fuss .klein { color: var(--color-on-tinte-muted); }
.fuss__liste { list-style: none; margin: 0; padding: 0; }
.fuss__liste li { margin-bottom: 0.45rem; }
.fuss__sozial { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.3rem; }

.fuss__leiste {
  max-width: var(--breite);
  margin: clamp(2.5rem, 6vw, 3.75rem) auto 0;
  padding: 1.3rem var(--rand);
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.88rem;
  color: var(--color-on-tinte-muted);
}
.fuss__leiste p { margin: 0; }
.fuss__leiste nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.fuss__urheber {
  margin: 0;
  padding: 0 var(--rand) 1.4rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-on-tinte-muted);
}

/* ------------------------------------------------------------- Einwilligung
   Nur aktiv, wenn KARTE_EINBETTEN in inc/config.php auf true steht. */
.einwilligung {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  max-width: 38rem; margin-inline: auto;
  background: var(--color-background);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--color-border), 0 20px 50px -20px rgba(0, 0, 0, .35);
  padding: 1.5rem;
}
.einwilligung h2 { font-size: 1.35rem; }
.einwilligung__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

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