/* Partnershop – Grundgestaltung.
   Bewusst neutral: partnerspezifische Optik kommt in Schritt 5 aus der Config.
   Mobil zuerst, Bedienflächen mindestens 48–56 px hoch. */

:root {
  --grund: #ffffff;
  --flaeche: #f4f4f5;
  --linie: #d9d9de;
  --schrift: #1b1b1f;
  --gedaempft: #63636b;
  --akzent: #1b1b1f;
  --akzent-schrift: #ffffff;
  --gut: #1f6b3a;
  --hinweis: #8a5b00;
  --radius: 8px;
  --breite: 1120px;
}

* { box-sizing: border-box; }

/* Kein seitliches Schwanken auf dem Handy: Nichts darf die Seite breiter machen als
   den Bildschirm, und die Seite federt nicht nach links oder rechts nach.
   "clip" statt "hidden", damit die klebende Kopfzeile weiter funktioniert. */
html, body {
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: pan-y pinch-zoom; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Seite füllt immer die Höhe: die Artikelleiste sitzt dadurch ganz unten,
     auch wenn der Inhalt kurz ist. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.inhalt { flex: 1 0 auto; }
.leiste, .fuss { flex: none; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- Kopf und Fuß ---- */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  background: var(--grund);
  z-index: 10;
}

.kopf__marke {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  min-height: 48px;
  display: flex;
  align-items: center;
}


.zaehler {
  background: var(--akzent);
  color: var(--akzent-schrift);
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 700;
}

.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.fuss {
  padding: 20px 24px 28px;
  color: var(--gedaempft);
  font-size: 14px;
}

h1 { font-size: 24px; line-height: 1.25; margin: 8px 0 16px; }

/* ---- Meldungen ---- */

.meldung {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 20px;
  background: var(--flaeche);
  overflow: hidden;
  /* Nach fünf Sekunden klappt die Meldung nach oben weg, der Inhalt rückt nach. */
  animation: meldung-weg .45s ease 5s forwards;
}

@keyframes meldung-weg {
  to {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    transform: translateY(-6px);
  }
}

.leer, .anzahl, .korb__notiz { color: var(--gedaempft); }
.fehler__text { max-width: 60ch; }

/* ---- Knöpfe: abgerundetes Rechteck, nie Pille ---- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--grund);
  color: var(--schrift);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.knopf--wichtig {
  background: var(--akzent);
  color: var(--akzent-schrift);
  border-color: var(--akzent);
}

.knopf--breit { width: 100%; }

.knopf--klein { min-height: 48px; padding: 0 14px; font-size: 15px; }

.knopf--still { color: var(--gedaempft); }

.knopf:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* ---- Formularfelder ---- */

.feld { display: block; margin: 0 0 14px; }
.feld__name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

.feld select,
.feld input,
.korb__menge input {
  width: 100%;
  min-height: 56px;
  padding: 0 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--grund);
  color: inherit;
  font: inherit;
}

.feld--schmal { max-width: 140px; }

/* ---- Produktraster ---- */

.raster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.kachel__link { text-decoration: none; display: block; }

.kachel__bild {
  background: var(--flaeche);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kachel__bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel__kein-bild { color: var(--gedaempft); font-size: 14px; }

.kachel__titel { font-size: 16px; margin: 10px 0 4px; }
.kachel__preis { margin: 0; font-weight: 600; }
.kachel__hinweis { margin: 4px 0 0; font-size: 14px; color: var(--hinweis); }

/* ---- Produktseite ---- */

.zurueck { margin: 0 0 12px; }
.zurueck a { min-height: 48px; display: inline-flex; align-items: center; }

.produkt { display: grid; gap: 24px; }
.produkt__bilder { display: grid; gap: 12px; }
.produkt__bilder img { border-radius: var(--radius); background: var(--flaeche); }

/* Weitere Ansichten klein halten: auf dem Handy soll der Kaufbereich
   ohne langes Scrollen erreichbar bleiben. */
.produkt__weitere {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}
.produkt__preis { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.produkt__formular { margin: 0 0 24px; }
.produkt__text { border-top: 1px solid var(--linie); padding-top: 16px; }
.produkt__text :first-child { margin-top: 0; }

/* ---- Warenkorb ---- */

.korb { list-style: none; margin: 0 0 24px; padding: 0; }

.korb__zeile {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linie);
}

.korb__bild img { border-radius: var(--radius); background: var(--flaeche); }
.korb__titel { font-size: 17px; margin: 0 0 4px; }
.korb__titel a { text-decoration: none; }
.korb__variante, .korb__einzelpreis { margin: 0 0 4px; color: var(--gedaempft); font-size: 14px; }

/* Menge, Ändern und Entfernen in einer Reihe, gleich hoch, unten bündig - am Handy über die volle Breite. */
.korb__aktionen {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 84px 1fr 1fr;
  align-items: end;
  gap: 10px;
}
.korb__menge { display: contents; }
.korb__menge label { display: block; min-width: 0; }
.korb__menge input { width: 100%; min-height: 48px; }
.korb__aktionen .knopf { width: 100%; }

.korb__summe { grid-column: 2; margin: 0; font-weight: 700; }

.korb__abschluss { border-top: 2px solid var(--schrift); padding-top: 16px; }
.korb__gesamt { display: flex; justify-content: space-between; font-size: 18px; margin: 0 0 4px; }
.korb__notiz { font-size: 14px; margin: 0 0 16px; }
.weiter-einkaufen { display: inline-flex; min-height: 48px; align-items: center; }

/* ---- Ab Tablet ---- */

@media (min-width: 760px) {
  h1 { font-size: 30px; }
  .inhalt { padding: 28px 24px 72px; }
  .kopf { padding: 14px 24px; }
  .produkt { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .korb__zeile { grid-template-columns: 120px 1fr auto; }
  .korb__summe { grid-column: 3; grid-row: 1; margin: 0; align-self: center; }
  .korb__aktionen { grid-column: 2 / -1; grid-template-columns: 84px 140px 140px; }
  .knopf--breit { width: auto; min-width: 260px; }
}

/* ---- Anmeldung ---- */


.anmelden { max-width: 46ch; }
.anmelden__text { margin-bottom: 24px; }
.anmelden__hinweis { color: var(--gedaempft); font-size: 14px; margin-top: 24px; }

/* ---- Meldung mit Bildmarke ---- */

.meldung { display: flex; align-items: center; gap: 12px; }
.meldung__marke { height: 28px; width: auto; flex: none; }

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

/* Marke sitzt unten rechts, mit Luft zum Rand: erst "Ein Shop von", dann das Logo. */
.fuss__marke {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}
.fuss__marke img { height: 24px; width: auto; }

/* ---- Durchlaufende Artikelleiste ---- */

.leiste {
  padding: 6px 0 0;
  overflow: hidden;          /* nichts schiebt die Seite in die Breite */
  position: relative;
}


.leiste__band {
  display: flex;
  width: max-content;
  animation: leiste-lauf 60s linear infinite;
}

.leiste:hover .leiste__band,
.leiste:focus-within .leiste__band { animation-play-state: paused; }

.leiste__reihe {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Große Bilder: gut anderthalb Stück gleichzeitig im Blick. */
.leiste__stueck {
  width: 75vw;
  max-width: 690px;
  padding: 0 10px;
  box-sizing: border-box;
}

.leiste__stueck a { text-decoration: none; display: block; }
.leiste__stueck img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--flaeche);
}

.leiste__titel {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 6px;
  color: var(--gedaempft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes leiste-lauf {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .leiste__band { animation: none; }
  .leiste { overflow-x: auto; }
}

/* Ohne Anmeldung: nur Bilder, keine Namen, nichts anklickbar. */
.leiste--still .leiste__titel { display: none; }
.leiste--still .leiste__stueck { pointer-events: none; }

/* ---- Artikelleiste am Desktop ----
   Die Bildgröße richtet sich nach der Bildschirmhöhe, damit Leiste und
   "Ein Shop von" ohne Scrollen sichtbar sind. Am Handy bleibt es bei 75vw. */
@media (min-width: 760px) {
  .inhalt { padding-bottom: 24px; }
  .leiste__stueck { width: min(20vw, 26vh); }
}

/* ---- Browserleiste auf dem Handy ----
   Safari und die In-App-Browser legen ihre Leiste unten ueber die Seite; eine Webseite
   kann sie nicht ausblenden. Darum bekommt der Fuss auf Touch-Geraeten so viel Luft,
   dass die Marke unten rechts oberhalb der Leiste steht - ohne Scrollen.
   Als installierte App gibt es keine Leiste, dort nur der Abstand zur Home-Leiste. */
@media (hover: none) and (pointer: coarse) {
  .fuss { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* Luft unter dem Inhalt einsparen, damit Leiste und Marke auf den Bildschirm passen. */
  .inhalt { padding-bottom: 16px; }
}
@media (display-mode: standalone) {
  .fuss { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* ---- Gutscheine ---- */


.gutscheinkasten {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 20px;
  background: var(--flaeche);
}
.gutscheinkasten__formular { display: grid; gap: 10px; align-items: end; }
.gutscheinkasten__an { margin: 0 0 6px; }
.gutscheinkasten__text { margin: 0 0 12px; font-size: 14px; color: var(--gedaempft); }
.gutscheinkasten .feld { margin: 0; }

.korb__gesamt--gutschein { color: var(--gut); font-size: 16px; }

.gutscheinliste, .verwaltungsliste { list-style: none; margin: 0 0 24px; padding: 0; }

.gutschein, .vzeile {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 12px;
}
.gutschein--still, .vzeile--still { color: var(--gedaempft); background: var(--flaeche); }

.gutschein__code, .vzeile__code {
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 17px;
}
.gutschein__wert, .vzeile__wert { margin: 0 0 6px; font-size: 20px; }
.gutschein__von, .vzeile__von { font-size: 14px; color: var(--gedaempft); font-weight: 400; }
.gutschein__lage, .vzeile__angaben { margin: 0; font-size: 14px; color: var(--gedaempft); }
.gutschein__verlauf, .vzeile__verlauf { margin-top: 10px; font-size: 14px; }
.gutschein__verlauf summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.gutschein__hinweis { color: var(--gedaempft); font-size: 14px; }

.vzeile__aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vzeile__notiz { font-style: italic; }
.vzeile__verlauf h2 { font-size: 16px; margin: 16px 0 8px; }
.vzeile__verlauf ul { margin: 0 0 16px; padding-left: 18px; }
.korrektur { display: grid; gap: 10px; border-top: 1px solid var(--linie); padding-top: 12px; }

.kasten {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 20px;
}
.kasten summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.kasten__formular { display: grid; gap: 10px; padding-top: 8px; }
.kasten__text { font-size: 14px; color: var(--gedaempft); }

.suche { display: grid; gap: 10px; margin: 0 0 12px; }

/* Ab Tablet duerfen Formulare nebeneinander stehen - auf dem Handy nie quer scrollen. */
@media (min-width: 760px) {
  .gutscheinkasten__formular,
  .kasten__formular,
  .korrektur,
  .suche { grid-template-columns: repeat(auto-fit, minmax(200px, auto)); align-items: end; }
  .vzeile { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
  .vzeile__wert { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .vzeile__aktionen, .vzeile__verlauf { grid-column: 1 / -1; }
}

/* ---- Partnerlogo auf den Gutscheinkarten (dezent) ---- */

.gutschein, .vzeile { position: relative; overflow: hidden; }

/* Das Logo steht in voller Farbe in der Ecke und traegt nie Information - es ordnet nur zu. */
.gutschein::after, .vzeile::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 104px;
  height: 40px;
  background: var(--partnerlogo) right bottom / contain no-repeat;
  pointer-events: none;
}

/* In der Verwaltung 40 Prozent kleiner - und die Karte bekommt unten einen
   eigenen Streifen, damit das Logo nie auf den Knoepfen liegt. */
.vzeile { padding-bottom: 48px; }
.vzeile::after { width: 62px; height: 24px; }

.gutschein__drucken { margin: 10px 0 0; font-size: 14px; }
.gutschein__drucken a { min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 760px) {
  .gutschein::after { width: 130px; height: 50px; }
  .vzeile::after { width: 78px; height: 30px; }
}

/* ---- Kopfzeile: Logo links, Menü und Warenkorb rechts ----
   Warenkorb sitzt ganz rechts in der Ecke. Gutscheine und Abmelden liegen am Handy
   im Menü, das unter der Kopfzeile aufklappt; ab 760 px stehen sie offen in der Zeile. */

.kopf { padding: 10px 12px 10px 16px; }

.kopf__marke--logo { padding: 2px 0; min-width: 0; }
.kopf__marke--logo img {
  height: 40px;
  width: auto;
  max-width: calc(100vw - 160px);
  object-fit: contain;
  object-position: left center;
}

.kopf__rechts { display: flex; align-items: center; gap: 4px; flex: none; }

.kopf__menueknopf,
.kopf__korb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--schrift);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kopf__menueknopf:focus-visible,
.kopf__korb:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

.kopf__menueknopf svg,
.kopf__korb svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.kopf__kreuz { display: none; }
.kopf--offen .kopf__striche { display: none; }
.kopf--offen .kopf__kreuz { display: inline; }

/* Am Handy nur Symbole, die Wörter bleiben für Screenreader. */
.kopf__menuetext,
.kopf__korbtext {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Zähler als kleines Abzeichen oben rechts am Warenkorb. */
.kopf__korb .zaehler {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* Aufklappendes Menü unter der Kopfzeile, volle Breite. */
.menue {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  padding: 6px 0 10px;
}
.kopf--offen .menue { display: block; animation: menue-auf .18s ease-out; }

@keyframes menue-auf {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.menue__punkt {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.menue__punkt + .menue__punkt { border-top: 1px solid var(--flaeche); }
.menue__punkt--abmelden { color: var(--gedaempft); font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .kopf--offen .menue { animation: none; }
}

@media (min-width: 760px) {
  .kopf { padding: 12px 24px; }
  .kopf__marke--logo img { height: 48px; max-width: 320px; }
  .kopf__rechts { gap: 6px; }

  .kopf__menueknopf { display: none; }
  .menue {
    display: flex;
    position: static;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .menue__punkt {
    min-height: 48px;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 400;
    color: var(--gedaempft);
  }
  .menue__punkt + .menue__punkt { border-top: 0; }

  .kopf__korb { border: 1px solid var(--linie); padding: 0 14px; margin-left: 8px; }
  .kopf__korbtext { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .kopf__korb .zaehler {
    position: static;
    height: auto;
    line-height: 1.4;
    border-radius: var(--radius);
    padding: 2px 8px;
    font-size: 14px;
  }
}

/* ---- Nicht angemeldet: "Ein Shop von TEXTIL.Team" steht immer unten im Bild ----
   Die Fußzeile klebt am unteren Rand, auch wenn Text und Bilderleiste länger sind als
   der Bildschirm. Die Leiste ist für Gäste am Handy kleiner, damit mehr Anmeldeseite passt. */
.seite--gast .fuss {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--grund);
  padding-top: 12px;
}
@media (max-width: 759px) {
  .seite--gast .leiste__stueck { width: 46vw; }
  .seite--gast .inhalt { padding-top: 12px; }
}

/* ---- Produktbilder: Vorschau antippen, große Ansicht ---- */

.produkt__gross { display: block; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.produkt__gross img { width: 100%; }

.produkt__vorschau {
  display: block;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.produkt__vorschau img { border-radius: 0; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.produkt__vorschau--aktiv { border-color: var(--schrift); }
.produkt__vorschau:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

.bildansicht {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 15, 18, .96);
  color: #fff;
  overflow: hidden;
  touch-action: pan-y;
}
.bildansicht[open] { display: flex; align-items: center; justify-content: center; }
.bildansicht::backdrop { background: rgba(15, 15, 18, .96); }
html.bildansicht-offen { overflow: hidden; }

.bildansicht__bild {
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
}

.bildansicht__zu,
.bildansicht__blaettern {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 32px;
  z-index: 2; /* ueber dem Bild, das im Dokument spaeter kommt */
  line-height: 1;
  cursor: pointer;
}
.bildansicht__zu { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.bildansicht__blaettern { top: 50%; transform: translateY(-50%); }
.bildansicht__blaettern--zurueck { left: 8px; }
.bildansicht__blaettern--vor { right: 8px; }

.bildansicht__zaehler {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 15px;
}

/* ---- Fußzeile: Kontakt, Impressum, Datenschutz links, Marke rechts ---- */

.fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}
.fuss__recht { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -8px; }
.fuss__recht a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--gedaempft);
  text-decoration: none;
  font-size: 14px;
}
.fuss__recht a:hover { text-decoration: underline; }
.fuss__marke { margin-left: auto; }

/* ---- Rechtstexte und Kontakt ---- */

.rechtstext, .kontakt { max-width: 70ch; }
.rechtstext__inhalt { overflow-wrap: anywhere; }
.rechtstext__inhalt h2 { font-size: 20px; margin: 28px 0 8px; }
.rechtstext__inhalt h3 { font-size: 17px; margin: 22px 0 6px; }
.rechtstext__inhalt h4, .rechtstext__inhalt h5, .rechtstext__inhalt h6 { font-size: 16px; margin: 18px 0 4px; }
.rechtstext__inhalt table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rechtstext__inhalt td, .rechtstext__inhalt th { border: 1px solid var(--linie); padding: 6px 8px; vertical-align: top; }

.kontakt__wege { display: grid; gap: 12px; margin: 20px 0; }
.kontakt__weg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  text-decoration: none;
}
.kontakt__weg:hover { border-color: var(--schrift); }
.kontakt__art { font-weight: 700; }
.kontakt__wert { color: var(--gedaempft); overflow-wrap: anywhere; }
.kontakt__anschrift, .kontakt__hinweis { color: var(--gedaempft); font-size: 15px; }

@media (min-width: 760px) {
  .kontakt__wege { grid-template-columns: 1fr 1fr; }
}

/* ---- WhatsApp-Knopf (schwebend, nur für Angemeldete) ---- */

.whatsapp {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 28px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp svg path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.whatsapp svg .whatsapp__hoerer { fill: #fff; stroke: none; }
.whatsapp:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.whatsapp--weg { opacity: 0; transform: translateY(24px); pointer-events: none; }

/* Am Handy nur das runde Symbol, damit es wenig verdeckt. */
@media (max-width: 759px) {
  .whatsapp { width: 56px; padding: 0; justify-content: center; }
  .whatsapp__text { display: none; }
}

/* Safari legt unten seine Leiste über die Seite: Knopf darüber setzen. */
@media (hover: none) and (pointer: coarse) {
  .whatsapp { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
  .whatsapp { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

.kontakt__weg--whatsapp { border-color: #25d366; }
.kontakt__weg--whatsapp .kontakt__art { color: #128c4b; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp { transition: none; }
}

/* ---- Bild teilen ---- */

.teilen { margin: 4px 0 0; }
.teilen__knopf { gap: 8px; }
.teilen__knopf svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Safari (iPhone/iPad) zeichnet Datumsfelder flacher als Textfelder - gleiche Höhe erzwingen. */
.feld input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-height: 56px; }

/* Suchen: Knopf auf Höhe des Feldes, nicht auf Höhe der Beschriftung. */
@media (min-width: 760px) {
  .suche { grid-template-columns: minmax(240px, 1fr) auto auto; align-items: end; }
  .suche .knopf { min-height: 56px; }
}

/* ---- About: Bild und Text der Kollektion aus Shopify ---- */
.about { max-width: 70ch; }
.about__bild {
  display: block; width: 100%; height: auto;
  /* Hochformatige Kollektionsbilder sollen die Seite nicht auffressen. */
  max-height: 420px; object-fit: cover;
  border-radius: var(--radius); background: var(--flaeche); margin: 0 0 20px;
}
.about h1 { margin-bottom: 12px; }
.about__inhalt p { margin: 0 0 14px; }
.about__inhalt h2 { font-size: 20px; margin: 24px 0 8px; }
.about__inhalt h3 { font-size: 17px; margin: 20px 0 6px; }
.about__inhalt ul, .about__inhalt ol { margin: 0 0 14px; padding-left: 20px; }
.about__inhalt li { margin: 0 0 6px; }
.about__inhalt img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
