/* Ergänzungen zum Designsystem der Demo (styles.css).
   Ersetzt alle Inline-Styles der Demo, damit die Content-Security-Policy keine Inline-Styles erlauben muss. */

/* Abstände */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }

/* Sprachumschalter als Links */
.lang a { min-width: 32px; min-height: 32px; padding: 4px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); letter-spacing: .06em; text-decoration: none; }
.lang a[aria-current="true"] { color: var(--graphite); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.side .foot .lang a { color: var(--muted-on-dark); }
.side .foot .lang a[aria-current="true"] { color: #fff; }
.hdr-right .lang a:hover, .lang a:focus-visible { color: var(--graphite); }

/* Farbpunkte ohne Inline-Style */
.swatch { --c: #fff; }
.sw-ivory { --c: #f1e8d6; } .sw-weiss, .sw-white { --c: #ffffff; } .sw-grau, .sw-grey { --c: #8e9093; }
.sw-hellgrau { --c: #c8cacb; } .sw-champagner { --c: #e6d3b1; } .sw-offwhite { --c: #f6f2e9; } .sw-gold { --c: #c9a55c; }

/* Produktbilder aus ProMode: Köpfe nicht abschneiden; Querformate waagerecht aufs Motiv (Klasse fx-…, katalog/fotos.py) */
.media img.produkt { object-position: var(--fx, 50%) 15%; }

/* Zwei-Faktor-Einrichtung */
.qr { display: block; width: 220px; height: 220px; margin: 8px 0 16px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; font-size: var(--fs-14); word-break: break-all; }
.codes { columns: 2; padding: 0; list-style: none; font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; }
.codes li { padding: 6px 0; }
ol.schritte { padding-left: 20px; margin: 0 0 20px; color: var(--muted); }
ol.schritte li { margin-bottom: 6px; }

/* Meldungen oben im Inhalt */
.meldungen { display: grid; gap: 8px; margin: 16px 0; }
.wrap > .meldungen { margin-top: 24px; }

/* Formularfehler aus Django */
.field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--err, #a3241b); font-size: var(--fs-14); }
.note ul { margin: 8px 0 0; padding-left: 20px; }

/* Bestellraster: Menge als Zahlenfeld */
.matrix input[type="number"] { width: 64px; text-align: center; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; }
.tbl td.acts form { display: inline; }

/* Nur ohne JavaScript sichtbar (Filter, Warenkorb aktualisieren sich sonst selbst) */
.js .nojs-only { display: none; }
.abstand-unten { height: 96px; }
.link.mitte { align-self: center; }
.wrap.schmal { max-width: 900px; }
.ohne-rahmen { border: 0; padding: 0; margin: 0; }
.ohne-rahmen legend { margin-bottom: 8px; }
.reihe { display: flex; gap: 28px; flex-wrap: wrap; }
/* Honigtopf gegen Bots: für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rich Text aus dem CMS */
.richtext h2 { margin: 32px 0 12px; }
.richtext h3 { margin: 24px 0 8px; }
.richtext p, .richtext ul, .richtext ol { margin: 0 0 14px; max-width: 70ch; }
/* AGB und Datenschutz: mittig, breiter, im Blocksatz. Auf dem Handy linksbündig, dort reißt Blocksatz große Lücken. */
.pagehead-mitte .wrap { text-align: center; }
.pagehead-mitte .lead { margin-inline: auto; }
.wrap.richtext.langtext { max-width: 960px; }
.langtext p, .langtext ul, .langtext ol { max-width: none; text-align: justify; hyphens: auto; }
@media (max-width: 700px) { .langtext p, .langtext ul, .langtext ol { text-align: left; hyphens: manual; } }

/* Hochformat statt quer beschnitten: Die Kleidung soll vollständig zu sehen sein.
   Desktop: Hero und Markenkapitel mit Bildrahmen 4:5, Text daneben. Handy war schon Hochformat. */
/* Breite: Große Bildschirme nutzen (Demo: 1280 px, dort liefen Hero und Kapitel randlos – mit Hochformat-Bildern
   wirkte die Seite sonst schmal). Fließtext bleibt über max-width lesbar (65–75 Zeichen). */
:root { --wrap: 1680px; }
@media (min-width: 1400px) { :root { --gutter: clamp(32px, 3vw, 64px); } }

@media (min-width: 901px) {
  /* Bild und Text an der Inhaltsbreite (Logo, Navigation) ausrichten; Hintergrundflächen bleiben randlos */
  :root { --rand: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); --luft: clamp(24px, 3vw, 48px); }
  .hero { grid-template-columns: minmax(0, 1fr) min(44vw, calc((100svh - var(--hdr-h) - 2 * var(--luft)) * .8), 760px);
          min-height: 0; padding: var(--luft) var(--rand) var(--luft) 0; column-gap: clamp(32px, 4vw, 64px); }
  .hero-media { aspect-ratio: 4 / 5; min-height: 0; }
  .chapter { grid-template-columns: min(42vw, calc(85svh * .8), 720px) minmax(0, 1fr); min-height: 0;
             padding: var(--luft) var(--rand); }
  .chapter.flip { grid-template-columns: minmax(0, 1fr) min(42vw, calc(85svh * .8), 720px); }
  .chapter-media { aspect-ratio: 4 / 5; min-height: 0; }
  .chapter-text { padding: 48px 0 48px clamp(40px, 5vw, 96px); }
  .chapter.flip .chapter-text { padding: 48px clamp(40px, 5vw, 96px) 48px 0; }
  .chapter-text .lead { max-width: 34em; }
}
/* Produktfotos im üblichen Modeformat 2:3 – Kleider von Kopf bis Saum */
.card .media, .gallery .main { aspect-ratio: 2 / 3; }

/* Fokuspunkt aus Wagtail (Klassen fx-/fy-, gesetzt vom Baustein {% bild %}) – ersetzt die Inline-Styles der Demo */
.media picture img, .slide picture img { object-position: var(--fx, 50%) var(--fy, 50%); }
.fx-0 { --fx: 0%; } .fx-5 { --fx: 5%; } .fx-10 { --fx: 10%; } .fx-15 { --fx: 15%; } .fx-20 { --fx: 20%; } .fx-25 { --fx: 25%; } .fx-30 { --fx: 30%; } .fx-35 { --fx: 35%; } .fx-40 { --fx: 40%; } .fx-45 { --fx: 45%; } .fx-50 { --fx: 50%; } .fx-55 { --fx: 55%; } .fx-60 { --fx: 60%; } .fx-65 { --fx: 65%; } .fx-70 { --fx: 70%; } .fx-75 { --fx: 75%; } .fx-80 { --fx: 80%; } .fx-85 { --fx: 85%; } .fx-90 { --fx: 90%; } .fx-95 { --fx: 95%; } .fx-100 { --fx: 100%; }
.fy-0 { --fy: 0%; } .fy-5 { --fy: 5%; } .fy-10 { --fy: 10%; } .fy-15 { --fy: 15%; } .fy-20 { --fy: 20%; } .fy-25 { --fy: 25%; } .fy-30 { --fy: 30%; } .fy-35 { --fy: 35%; } .fy-40 { --fy: 40%; } .fy-45 { --fy: 45%; } .fy-50 { --fy: 50%; } .fy-55 { --fy: 55%; } .fy-60 { --fy: 60%; } .fy-65 { --fy: 65%; } .fy-70 { --fy: 70%; } .fy-75 { --fy: 75%; } .fy-80 { --fy: 80%; } .fy-85 { --fy: 85%; } .fy-90 { --fy: 90%; } .fy-95 { --fy: 95%; } .fy-100 { --fy: 100%; }

/* ---------- Lesbarkeit auf hellen Flächen ----------
   Regeln aus ui-ux-pro-max: color-contrast / color-accessible-pairs (Text ≥ 4,5:1, Ziel 7:1),
   contrast-readability (kein Grau auf Grau), weight-hierarchy (Fließtext 400, Labels 500), readable-font-size.
   Werte im Browser gemessen auf Weiß, Perlmutt (#f3f1ed), Puder (#f4e9e6) und Händlergrund (#f7f6f3). */
:root {
  --text-2: #3f3a35;        /* Fließtext zweite Ebene (Einleitungen, Beschreibungen): 9,5–11:1 */
  --muted: #524c46;         /* Nebentext (Brotkrumen, Anzahl, Labels): 7,1–8,5:1, vorher 5,1–6,1:1 */
  --gold: #73552e;          /* Altgold für Links und Akzente: 5,8–6,9:1, vorher 4,2–5:1 (auf Perlmutt unter AA) */
  --gold-dark: #5a4124;
  --muted-on-dark: #cfc8bf; /* auf Graphit 9:1, vorher 6,7:1 */
  --gold-on-dark: #d4b483;  /* auf Graphit 7,6:1 */
  --fs-12: .8125rem;        /* kleinste Schrift 13 px statt 12 px */
}
/* macOS: „antialiased“ macht dunkle Schrift auf hellem Grund dünner – nur auf dunklen Flächen verwenden */
body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
.chapter-a, .side, .ftr, .skip, .btn-dark, .btn-gold, .btn-line:hover, .cartbtn .n, .ph-v3 {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Fließtext nicht in Hellgrau, sondern fast schwarz */
.lead, details.acc .body, .dealer-box p, .auth-card .intro, .auth-foot p, .dinfo, ol.schritte, .news p, .empty { color: var(--text-2); }
.chapter-a .lead { color: var(--muted-on-dark); }

/* Bodoni Moda hat die Achse „optische Größe“ (opsz 6–96). Browser setzen sie automatisch auf die Schriftgröße, bei großen
   Überschriften und dem Logo der Startseite also bis 96 – dort werden die Haarlinien so fein, dass sie auf hellem Grund
   unruhig wirken. Auf 28 gedeckelt (Gregor, 23.11.2026, nach Vergleich von 48, 36 und 28) werden nur die feinsten Linien
   kräftiger, Grundstriche und Gewicht bleiben. Nur für Schrift ab etwa 28 px; kleinere behält die automatische Einstellung.
   ui-ux-pro-max: contrast-readability (sehr feine Striche wirken wie zu wenig Kontrast); Achsen laut google-fonts.csv. */
.d1, .d2, .hero h1, .statement-text, .pinfo h1, .pricebox b, .doc h2, .nav-klein .side .logo .mono {
  font-optical-sizing: none; font-variation-settings: "opsz" 28; }   /* immer ≥ 28 px */
@media (min-width: 1200px) {   /* erst ab hier ≥ 28 px */
  .reel-titel, .jahr-kopf h2 { font-optical-sizing: none; font-variation-settings: "opsz" 28; }
}

/* Bodoni: Haarstriche bei mittleren Größen kräftiger (Gewicht 500 statt 400) */
.d1, .d2, .d3, .card-title, .tile-cap span, .pinfo h1, .dcard h3, .dealer-box h2, .statement-text,
.hero .sub, .chapter .slogan, .richtext h2, .richtext h3 { font-weight: 500; }

/* Kleine Versalien und Labels mit Gewicht 500 */
.nav a { font-weight: 500; }
.hero h1 span { font-weight: 500; }
.logo span { font-size: 12px; font-weight: 500; }
.status { font-weight: 500; }

/* Platzhalter „Bild folgt“: Schrift dunkler */
.ph-v1 { color: #5e5143; } .ph-v2, .chapter-a .ph { color: #6a4d47; } .ph-v4 { color: #64553f; }
.st-in_bearbeitung { color: #5a4008; }
.req { color: #8f2f24; }

/* Zwei Kategoriekacheln (Amo & Luv): auch Hochformat statt 4:3, Kachelgröße wie bei drei Kacheln */
.tiles.n2 .media { aspect-ratio: 3 / 4; }
@media (min-width: 1101px) { .tiles.n2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Händlersuche ---------- */
@media (min-width: 1101px) { .dsearch { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr) auto; } }
/* Felder oben ausrichten: Elemente, die z. B. Passwort-Manager unter ein Eingabefeld hängen, verschieben nichts.
   Der Knopf bekommt dafür eine leere Beschriftungszeile. */
.dsearch { align-items: start; }
@media (max-width: 1100px) { .dsearch .field:first-child, .dsearch .suchknopf { grid-column: 1 / -1; } .dsearch .suchknopf .lbl-s { display: none; } }
@media (max-width: 700px) { .dsearch .field:nth-child(2) { grid-column: auto; order: 0; } .dsearch .field:nth-child(4) { grid-column: 1 / -1; } }
.dinfo:empty { display: none; }
.karte-spalte { min-width: 0; }
#map { position: relative; display: flex; }
#map .karte-flaeche { position: absolute; inset: 0; }
#map .mapoff { flex: 1; }
#map .mapoff[hidden] { display: none; }
.karte-frage { display: grid; justify-items: center; gap: 16px; max-width: 420px; }
.karte-frage p { margin: 0; color: var(--text-2); }
.karte-frage .check { font-size: var(--fs-14); color: var(--text-2); }
html:not(.js) .js-only { display: none; }
.js .nojs { display: none; }
.karte-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 8px 0 0;
  font-size: var(--fs-14); color: var(--muted); }
.karte-zeile .link { min-height: 24px; padding: 0; }
.dcard { cursor: default; }
.dcard .links .link { display: none; min-height: 32px; font-size: var(--fs-14); }
.karte-an .dcard .links .zeigen { display: inline-flex; align-items: center; }
.karte-hinweis { margin: auto; padding: 24px; text-align: center; color: var(--text-2); }
.karte-hinweis[hidden] { display: none; }
.pin-btn { display: block; width: 28px; height: 27px; padding: 0; border: 0; background: none; cursor: pointer; }
.pin-btn .pin { margin: 2px auto 0; }
.pin-btn:focus-visible { outline: none; }
.pin-btn:focus-visible .pin { outline: 2px solid var(--graphite); outline-offset: 3px; }
.ursprung { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--graphite);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: none; }
.maplibregl-map { font-family: var(--sans); }
.maplibregl-ctrl-attrib { font-size: 12px; }
.statement .finder { margin-top: 8px; }
.dealer-box .btn { margin-top: 8px; }

/* Modellseite: Produktfoto nie höher als der Bildschirm – das Kleid bleibt auf großen Bildschirmen ganz sichtbar */
@media (min-width: 901px) {
  .pdp { grid-template-columns: min(56%, calc((100svh - var(--hdr-h) - 120px) * 2 / 3)) minmax(0, 1fr); }
}

/* ---------- Händlershop: Sortiment wie im bisherigen B2B-Shop, mit Filtern ----------
   Regeln aus ui-ux-pro-max: Zustand in der Adresse (state-preservation), Suche oben erreichbar (search-accessible),
   Filter-Chips umbrechen statt abschneiden (chip-collection-reflow), Trefferzahlen, leere Ergebnisse mit nächstem
   Schritt (empty-states), Tabelle wird auf dem Handy zu Karten (table-handling), Ziele ≥ 32–44 px. */
:root { --sale: #9e2a1e; }   /* Sonderpreis: 7:1 auf Weiß */
.b2b-content { max-width: none; }   /* volle Breite auch auf großen Monitoren (Wunsch Emmerling 8.11.2026) */

/* Seitenleiste: Sortimentsbaum */
.side .side-h { margin: 18px 24px 4px; font-size: var(--fs-12); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); }
.side-grp > summary { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 10px 24px; border-left: 3px solid transparent;
  color: #ddd8d0; cursor: pointer; list-style: none; font-size: var(--fs-16); }
.side-grp > summary::-webkit-details-marker { display: none; }
.side-grp > summary:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-grp > summary.aktiv { color: #fff; border-left-color: var(--gold-on-dark); }
.side-grp > summary .ic { color: var(--muted-on-dark); }
.side-grp > summary.aktiv .ic { color: var(--gold-on-dark); }
.side-grp > summary .chev { width: 16px; height: 16px; margin-left: auto; transition: transform .2s var(--ease); }
.side-grp[open] > summary .chev { transform: rotate(180deg); }
.side nav .side-grp > a { min-height: 38px; padding: 6px 24px 6px 61px; font-size: var(--fs-14); }

/* Suche in der Kopfleiste */
.b2b-suche { display: flex; flex: 1 1 280px; max-width: 460px; margin-left: 16px; }
.b2b-suche .input { min-height: 42px; padding: 8px 12px; border-right: 0; border-radius: 2px 0 0 2px; }
.b2b-suche .input::placeholder { color: var(--muted); opacity: 1; }
.b2b-suche .btn { min-height: 42px; padding: 0 14px; border-radius: 0 2px 2px 0; }
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; height: auto; padding-block: 10px; }
  .b2b-suche { order: 10; flex-basis: 100%; max-width: none; margin: 0; }
}

/* Unterkategorien als Schnellwahl */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line);
  background: #fff; text-decoration: none; font-size: var(--fs-14); font-weight: 500; }
.subnav a:hover { border-color: var(--graphite); }
.subnav .n, .opt .n { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Filter links, Treffer rechts */
.shop { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 24px; }
.filterbox > summary { display: none; }
.filterform { padding: 0 0 16px; }   /* scrollt mit der Seite – keine zweite Scrollleiste (ui-ux-pro-max: scroll-behavior) */
.facet { min-width: 0; margin: 0; padding: 14px 0 16px; border: 0; border-top: 1px solid var(--line); }
.facet:first-child { padding-top: 0; border-top: 0; }
.facet legend { padding: 0 0 8px; font-size: var(--fs-14); font-weight: 600; }
.opts { display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: var(--fs-14); cursor: pointer; }
.opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--graphite); cursor: pointer; }
.opt .lbl { flex: 1; }
.opt.leer { color: var(--muted); cursor: default; }
.opt .swatch { margin-right: 0; }
.facet-groesse .opts { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.facet-groesse .opt { position: relative; justify-content: center; min-height: 38px; padding: 4px 6px; border: 1px solid var(--field); font-variant-numeric: tabular-nums; }
.facet-groesse .opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.facet-groesse .opt .lbl { flex: 0 1 auto; min-width: 0; text-align: center; line-height: 1.15; }   /* „12XXL-152XXL“ bricht nach dem Bindestrich um */
.facet-groesse .opt .n { display: none; }
.facet-groesse .opt:has(input:checked) { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.facet-groesse .opt:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.facet-groesse .opt.leer { border-style: dashed; }
.pill-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--graphite); color: #fff; font-size: 12px; font-weight: 500; }

.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.toolbar .count { margin: 0 auto 12px 0; padding: 0; font-size: var(--fs-16); color: var(--text-2); }
.sortwahl { min-width: 220px; }
.ansicht { display: flex; border: 1px solid var(--field); }
.ansicht a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: var(--muted); }
.ansicht a + a { border-left: 1px solid var(--field); }
.ansicht a.an { background: var(--graphite); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px 4px 12px; border: 1px solid var(--line);
  background: var(--pearl); text-decoration: none; font-size: var(--fs-14); }
.chips a:hover { border-color: var(--graphite); }
.chips a .ic { width: 14px; height: 14px; }
.chips .reset { border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; }

/* Karten: Bild ganz zeigen (auch Querformat-Fotos der Brautmode), Preisspanne, Sale */
.b2bgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 20px; margin-top: 24px; }
.b2bcard .media { background: #f6f5f2; margin-bottom: 12px; }
.b2bcard .media img.produkt, .mini-bild img.produkt { object-fit: contain; object-position: 50% 50%; }
.b2bcard .badges { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; gap: 6px; }
.b2bcard .badges .badge { position: static; }
.badge.sale, .flag.sale { background: var(--sale); color: #fff; }
.b2bcard .card-title-wrap { margin: 0; font-size: inherit; font-weight: inherit; }
.b2bcard .card-title { font-size: var(--fs-18); }
.b2bcard .card-sub { margin: 2px 0 4px; }
.b2bcard .colorline { margin-bottom: 8px; }
.b2bcard .prices { gap: 2px 10px; }
.b2bcard .card-bestellen { align-self: flex-start; margin-top: 12px; }
s.alt { color: var(--muted); font-size: var(--fs-14); }
.sale { color: var(--sale); }
.flag { display: inline-block; padding: 1px 8px; background: var(--graphite); color: #fff; font-size: 12px; font-weight: 500; }
.flags { display: flex; gap: 4px; margin-top: 4px; }

/* Listenansicht */
.artikelliste { margin-top: 20px; }
.artikelliste td.bild { width: 76px; padding-block: 8px; }
.mini-bild { display: block; width: 52px; aspect-ratio: 2 / 3; }
.artikelliste .artikel-name { display: block; font-weight: 500; }
.artikelliste .artikel-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.artikelliste .num s.alt { display: block; }

/* Seiten, leere Ergebnisse, Rückweg */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px 0 8px; }
.pager a, .pager .gap { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line); background: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--graphite); }
.pager a[aria-current="page"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.pager .gap { border: 0; background: none; }
.empty-state { margin-top: 32px; padding: 48px 24px; border: 1px solid var(--line); background: #fff; text-align: center; }
.reihe.mitte { justify-content: center; gap: 12px; }
.zurueck { margin: 0 0 8px; }
.zurueck .link { display: inline-flex; align-items: center; gap: 4px; }
.zurueck .ic { width: 16px; height: 16px; }
.matrix .num { padding-right: 16px; text-align: right; }

@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .filterbox > summary { display: inline-flex; gap: 8px; list-style: none; }
  .filterbox > summary::-webkit-details-marker { display: none; }
  .filterform { margin-top: 12px; padding: 16px; border: 1px solid var(--line); background: #fff; }
  .toolbar .count { width: 100%; margin-bottom: 0; }
  .sortwahl { flex: 1; min-width: 0; }
}
@media (max-width: 700px) {
  .b2bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .b2bcard .card-bestellen { align-self: stretch; }
}

/* Feinschliff Sortiment */
.facet legend { float: left; width: 100%; }          /* keine Rahmenlinie neben der Überschrift */
.facet .opts { clear: both; }
.artikelliste th.num, .artikelliste td.num { white-space: normal; }
.artikelliste td.preis b, .artikelliste td.preis s.alt { display: block; }
.uvp-klein { display: block; margin-top: 2px; font-size: var(--fs-14); color: var(--muted); }
.artikelliste .small { display: block; }
.artikelliste .farbe-zeile { margin-top: 2px; }
.artikelliste td.preis { min-width: 196px; }
.artikelliste td:nth-child(3) { min-width: 104px; }
.artikelliste td.preis b, .artikelliste .uvp-klein { white-space: nowrap; }
.artikelliste td.aktion { text-align: right; white-space: nowrap; }
@media (max-width: 700px) { .tbl.resp td.aktion { justify-content: flex-start; padding-top: 10px; } .tbl.resp td.aktion::before { display: none; } }
@media (max-width: 1100px) { .artikelliste td.bild, .artikelliste thead th:first-child { display: none; } }
@media (max-width: 700px) { .artikelliste td.preis b, .artikelliste td.preis s.alt, .uvp-klein { display: inline; margin-left: 6px; } }

/* ---------- Händlershop: Seitenleiste einklappbar ---------- */
.nav-umschalter { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 42px; padding: 8px 24px; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1); background: none; color: var(--muted-on-dark); font-size: var(--fs-14);
  text-align: left; cursor: pointer; }
.nav-umschalter:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-umschalter .ic { transition: transform .2s var(--ease); }
.side .logo .mono { display: none; }
@media (min-width: 901px) {
  .b2b { transition: grid-template-columns .2s var(--ease); }
  .b2b.nav-klein { grid-template-columns: 76px minmax(0, 1fr); }
  .nav-klein .side .logo { padding: 22px 0 18px; }
  .nav-klein .side .logo b, .nav-klein .side .logo span { display: none; }
  .nav-klein .side .logo .mono { display: block; font-family: var(--display); font-size: 30px; font-style: normal; font-weight: 500; line-height: 1; }
  .nav-klein .nav-umschalter { justify-content: center; gap: 0; padding: 8px 0; }
  .nav-klein .nav-umschalter .ic { transform: rotate(180deg); }
  .nav-klein .side nav > a, .nav-klein .side .logout, .nav-klein .side-grp > summary { position: relative; justify-content: center; gap: 0; padding: 10px 0; }
  /* Texte nur für Screenreader – die Links behalten ihren Namen */
  .nav-klein .side nav > a > span:not(.pill), .nav-klein .side .logout > span, .nav-klein .side-grp > summary > span,
  .nav-klein .nav-umschalter .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-klein .side-grp > summary .chev, .nav-klein .side-grp > a, .nav-klein .side .foot { display: none; }
  .nav-klein .side .side-h { height: 1px; margin: 10px 18px; overflow: hidden; background: rgba(255, 255, 255, .14); font-size: 0; }
  .nav-klein .side nav > a .pill { position: absolute; top: 5px; right: 14px; margin: 0; padding: 0 5px; font-size: 11px; }
}
@media (max-width: 900px) { .nav-umschalter { display: none; } }
@media (min-width: 901px) { .side .foot .lang { display: none; } }   /* dort steht die Sprachwahl oben in der Kopfleiste */
@media (prefers-reduced-motion: reduce) { .b2b, .nav-umschalter .ic { transition: none; } }

/* Rechtstexte im Händlerbereich: von jeder Seite erreichbar, die Seitenleiste kann eingeklappt sein */
.b2b-recht { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0 32px 32px; font-size: var(--fs-14); }
.b2b-recht a { color: var(--muted); }
.b2b-recht a:hover { color: var(--graphite); }
@media (max-width: 900px) { .b2b-recht { padding: 0 16px 32px; } }

/* ---------- Händler-Dashboard: Reel – Produktfotos blenden weich über, Satz für Satz, Bild für Bild ----------
   Pause-Knopf, Anhalten bei Maus/Fokus, kein Lauf bei „Bewegung reduzieren“ (WCAG 2.2.2, ui-ux-pro-max reduced-motion). */
.reel { position: relative; margin: 24px 0 8px; overflow: hidden; border: 1px solid var(--line); }
.reel-buehne { position: relative; width: 100%; aspect-ratio: 3.1 / 1; min-height: 360px; max-height: 540px; }   /* Rahmen ≈ 2:3; width: sonst kürzt max-height über das Seitenverhältnis auch die Breite */
@media (min-width: 2000px) { .reel-buehne { max-height: 640px; } }   /* große Monitore: Fotos bleiben hochkant */
.reel .slide { display: grid; grid-template-columns: minmax(230px, 26%) minmax(0, 1fr); gap: 28px; padding: 28px 32px;
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1), visibility 1.4s; visibility: hidden; }
.reel .slide.on { visibility: visible; }
.reel-emm { background: var(--pearl); }
.reel-amo { background: var(--graphite); color: #fff; }
.reel-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding-bottom: 56px; }
/* Text: alter schnell aus, neuer verzögert ein – keine übereinanderliegenden Überschriften */
.reel .slide .reel-text { opacity: 0; transition: opacity .35s ease-out; }
.reel .slide.on .reel-text { opacity: 1; transition: opacity .8s ease-in .55s; }
.reel-kicker { font-size: var(--fs-14); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.reel-amo .reel-kicker { color: var(--muted-on-dark); }
.reel-titel { margin: 0 0 10px; font-family: var(--display); font-size: clamp(1.6rem, 2.3vw, 2.25rem); font-weight: 500; line-height: 1.15; }
.reel-bilder { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 16px; min-height: 0; }
.reel-bild { display: flex; flex-direction: column; min-width: 0; min-height: 0; color: inherit; text-decoration: none;
  opacity: 0; transform: translateY(10px); transition: opacity 1s cubic-bezier(.4, 0, .2, 1), transform 1s cubic-bezier(.4, 0, .2, 1); }
.reel .slide.on .reel-bild { opacity: 1; transform: none; }
.reel .slide.on .reel-bild:nth-child(2) { transition-delay: .15s; }
.reel .slide.on .reel-bild:nth-child(3) { transition-delay: .3s; }
.reel .slide.on .reel-bild:nth-child(4) { transition-delay: .45s; }
.reel-rahmen { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.reel-amo .reel-rahmen { background: var(--graphite-2); }
.reel-rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  transform: scale(1.06); transition: transform 7s cubic-bezier(.2, .7, .2, 1); }   /* Blickfang: Rahmen füllen, sanft zurückzoomen */
.reel .slide.on .reel-rahmen img { transform: scale(1); }
.reel-cap { display: flex; flex-direction: column; padding-top: 8px; line-height: 1.35; }
.reel-cap b { overflow: hidden; font-size: var(--fs-14); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.reel-cap small { font-size: var(--fs-12); color: var(--muted); }
.reel-amo .reel-cap small { color: var(--muted-on-dark); }
.reel-bild:hover .reel-cap b, .reel-bild:focus-visible .reel-cap b { text-decoration: underline; text-underline-offset: 3px; }
.reel-tafel { display: flex; align-items: center; justify-content: center; gap: 40px; color: #d9cfc2; }
.reel-emm .reel-tafel { color: var(--muted); }
.reel-tafel .ph-gown { width: 120px; max-width: none; height: auto; }
.reel-logo { width: min(320px, 50%); }
@media (max-width: 1400px) { .reel-bild:nth-child(n+4) { display: none; } .reel-buehne { aspect-ratio: 2.45 / 1; } }
@media (max-width: 1100px) { .reel-bild:nth-child(n+3) { display: none; } .reel-buehne { aspect-ratio: 1.75 / 1; } }
@media (max-width: 700px) {
  .reel-buehne { aspect-ratio: auto; height: 560px; max-height: none; }
  .reel .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 20px 16px 72px; }
  .reel-text { padding-bottom: 0; gap: 6px; }
  .reel-titel { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel .slide, .reel-bild, .reel-rahmen img, .reel .slide .reel-text, .reel .slide.on .reel-text { transition: none; }
  .reel-rahmen img { transform: none; }
}

/* ---------- Slider-Bedienung: Fortschrittslinien statt Knöpfen ---------- */
[data-slider] { touch-action: pan-y pinch-zoom; }   /* waagerecht wischt der Slider, senkrecht scrollt die Seite */
/* Immer eine Zeile: bei vielen Bildern werden die Linien schmaler statt umzubrechen (bis 8 Bilder in der schmalsten
   Reel-Textspalte noch 20 px je Linie, Abstand 6 px) */
.fortschritt { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
.segment { position: relative; flex: 0 1 44px; min-width: 0; height: 24px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.segment::before, .segment span { content: ''; position: absolute; left: 0; top: 11px; height: 2px; border-radius: 1px; background: currentColor; }
.segment::before { right: 0; opacity: .22; transition: opacity .2s; }
.segment:hover::before { opacity: .5; }
/* Die Linie füllt site.js per Web Animations im Takt der eigenen Uhr (anhalten und weiterlaufen auf denselben Stand).
   Nur transform: läuft auf dem Compositor und bleibt flüssig, auch während der Browser die Seite aufbaut. */
.segment span { right: 0; transform: scaleX(0); transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .segment[aria-current="true"] span { transform: none; } }   /* aktuelles Bild markiert */
.segment:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.slider-pause { margin-left: 8px; padding: 2px 4px; border: 0; background: none; color: inherit; font-size: var(--fs-14);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.slider-pause:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .fortschritt { margin-top: 48px; color: var(--graphite); }
/* Nur so breit wie die Textspalte des Reels (.reel .slide: minmax(230px, 26%) bei 32 px Rand) – nie in die Bilder */
.reel .fortschritt { position: absolute; left: 32px; bottom: 26px; width: max(230px, calc((100% - 64px) * .26)); z-index: 5; color: var(--graphite); transition: color .6s; }
/* Händler-Dashboard: Stopp-Taste immer da, aber dezent – ein kleines Pause-/Play-Zeichen in der Farbe der Linien.
   Der Text bleibt für Screenreader (font-size 0), das Zeichen malt ::before. Auf der Startseite bleibt sie verborgen. */
.reel .slider-pause, .reel .slider-pause:not(:focus) { position: relative; flex: none; width: 24px; height: 24px; margin-left: 2px;
  padding: 0; overflow: visible; clip: auto; font-size: 0; text-decoration: none; opacity: .5; transition: opacity .2s; }
.reel .slider-pause:hover, .reel .slider-pause:focus-visible { opacity: 1; }
.reel .slider-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.reel .slider-pause::before { content: ''; position: absolute; left: 8px; top: 7px; width: 2px; height: 10px;
  background: currentColor; box-shadow: 6px 0 0 currentColor; }
.reel .slider-pause[aria-pressed="true"]::before { left: 9px; width: 0; height: 0; background: none; box-shadow: none;
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.reel.dunkel .fortschritt { color: #fff; }
@media (max-width: 700px) { .reel .fortschritt { left: 16px; bottom: 16px; width: calc(100% - 32px); } }   /* nach der Grundregel */
@media (max-width: 900px) { .hero .fortschritt { margin-top: 32px; } }

/* ---------- Modelle: Farbfelder, Variantenwahl, Jahrgänge ---------- */
.swatches { display: inline-flex; gap: 3px; margin-right: 7px; vertical-align: -1px; }
.swatches .swatch { margin: 0; }
.varwahl { display: grid; gap: 18px; margin: 22px 0 6px; }
.varwahl-titel { margin: 0 0 8px; font-size: var(--fs-14); color: var(--muted); }
.varwahl-titel b { font-weight: 500; color: var(--graphite); }
.varwahl-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.var-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line);
  background: #fff; color: var(--graphite); font-size: var(--fs-14); line-height: 1.2; text-decoration: none; transition: border-color .15s; }
.var-opt:hover { border-color: var(--graphite); }
.var-opt.an { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); font-weight: 500; }
.var-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.var-opt .swatch { margin: 0; }
.jahrgang + .jahrgang { margin-top: 48px; }
.jahr-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.jahr-kopf h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.jahr-kopf .count { font-size: var(--fs-14); color: var(--muted); white-space: nowrap; }

/* Kasse: Vorbestellung. Ohne JavaScript steht der Block in der Seite, sonst ist er ein Popup vor dem Absenden. */
dialog.vor-dialog { display: block; position: static; width: auto; max-width: none; color: inherit; }
dialog.vor-dialog.modal-bereit:not([open]) { display: none; }
dialog.vor-dialog.modal-bereit[open] { position: fixed; inset: 0; width: min(680px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); margin: auto; overflow-y: auto; }
dialog.vor-dialog::backdrop, dialog.ab-dialog::backdrop { background: rgba(14, 15, 17, .6); }
dialog.ab-dialog { width: min(560px, calc(100vw - 32px)); color: inherit; }
dialog.ab-dialog h2:focus { outline: none; }
dialog.vor-dialog h2:focus { outline: none; }
.vor-termin { font-size: var(--fs-18); font-weight: 500; margin: 0 0 16px; }
.vor-dialog .mini-lines { margin: 8px 0 16px; max-height: 180px; }
.vor-dialog .vor-ok { margin-top: 18px; }
.vor-aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 22px; }
dialog.vor-dialog:not(.modal-bereit) .vor-aktionen { display: none; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; }
.kal-monat { font-size: var(--fs-18); font-weight: 500; }
.kal-pfeil { width: 44px; height: 44px; border: 1px solid var(--field); background: #fff; color: var(--graphite); font-size: var(--fs-24); line-height: 1; cursor: pointer; }
.kal-pfeil:hover:not(:disabled) { background: var(--pearl); }
.kal-pfeil:disabled { opacity: .35; cursor: default; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kal-raster > span:not(.kal-wt) { height: 44px; }
.kal-wt { padding: 4px 0; font-size: var(--fs-14); text-align: center; color: var(--muted); }
.kal-tag { height: 44px; border: 0; background: var(--pearl); color: var(--graphite); font: inherit; font-size: var(--fs-16); cursor: pointer; }
.kal-tag:hover:not(:disabled) { background: var(--line); }
.kal-tag[aria-pressed="true"], .kal-tag[aria-pressed="true"]:hover:not(:disabled) { background: var(--gold); color: #fff; }
.kal-tag:disabled { background: none; color: var(--field); cursor: default; }
.kal-tag:focus-visible, .kal-pfeil:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.kal-auswahl { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 10px 0 0; }
.kal[hidden] + .kal-auswahl { display: none; }
.kal:not([hidden]) + .kal-auswahl[hidden] { visibility: hidden; }   /* Platz bleibt frei: Das Popup springt nicht beim Wählen */
@media (min-width: 900px) {
  dialog.vor-dialog.modal-bereit[open] { width: min(980px, calc(100vw - 64px)); padding: 40px; }
  .vor-dialog.modal-bereit .vor-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .vor-dialog.modal-bereit .h-ui { font-size: var(--fs-24); }
  .vor-dialog.modal-bereit .vor-termin { font-size: var(--fs-21); }
  .vor-dialog.modal-bereit .small, .vor-dialog.modal-bereit .mini-lines, .vor-dialog.modal-bereit .fhint { font-size: var(--fs-16); }
}

/* Datumsfeld: iOS Safari gibt ihm eine eigene Mindestbreite, ohne das ragt es rechts über die Box hinaus */
.input[type="date"] { display: block; min-width: 0; max-width: 100%; }
@supports (-webkit-touch-callout: none) {
  .input[type="date"] { -webkit-appearance: none; appearance: none; }
  .input[type="date"]::-webkit-date-and-time-value { text-align: left; }
}

/* ---------- Zeitleiste auf Inhaltsseiten (Über uns: „Gestern und heute“) ----------
   Regeln aus ui-ux-pro-max: echte Liste in Lesereihenfolge (keyboard-nav/voiceover-sr), Überschriften h1 › h2,
   line-length 65–75 Zeichen, tabellarische Ziffern (number-tabular), mobil einspaltig ohne Querscrollen,
   keine Scroll-Animation (motion-meaning, reduced-motion). Linie und Punkte sind Dekoration aus ::before/::after. */
:root { --linie-gold: #c9b597; }   /* dekorativ, trägt keine Information */
/* Text und Zeitleiste: schmal untereinander, die Zeitleiste als Band in Perlmutt bis an den Rand (wie ein eigener
   Abschnitt); ab 1200 px nebeneinander, links der Text (Zeilenlänge bleibt), rechts die Zeitleiste als Fläche. */
.ueber-raster > .richtext { min-width: 0; }
.chronik-block { background: var(--pearl); margin: -96px calc(-1 * var(--gutter)) -96px; padding: 80px var(--gutter) 96px; }
.richtext + .chronik-block { margin-top: 56px; }
.chronik-block h2 { margin: 0 0 48px; }
@media (max-width: 700px) {
  .chronik-block { margin-block: -64px; padding: 56px var(--gutter) 64px; }
  .richtext + .chronik-block { margin-top: 48px; }
}
.chronik { list-style: none; margin: 0; padding: 0; max-width: 880px; }
.chronik li { position: relative; display: grid; gap: 6px; padding: 0 0 36px 36px; }
.chronik li::before { content: ""; position: absolute; left: 5px; top: 15px; bottom: -15px; width: 1px; background: var(--linie-gold); }
.chronik li::after { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; box-sizing: border-box;
  border: 2px solid var(--gold); border-radius: 50%; background: var(--pearl); }
.chronik li:last-child { padding-bottom: 0; }
.chronik li:last-child::before { display: none; }
.chronik li:last-child::after { background: var(--gold); }
.chronik-jahr { font-family: var(--display); font-weight: 500; font-size: var(--fs-24); line-height: 1.25; color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums; }
.chronik-text { margin: 0; max-width: 62ch; font-size: var(--fs-18); line-height: 1.6; color: var(--text-2); }
@media (min-width: 768px) {
  .chronik li { grid-template-columns: 8.5rem 64px minmax(0, 1fr); gap: 0; padding: 0 0 44px; }
  .chronik li::before { left: calc(8.5rem + 32px); }
  .chronik li::after { left: calc(8.5rem + 32px - 5px); }
  .chronik-jahr { grid-column: 1; font-size: var(--fs-30); line-height: 1; text-align: right; }
  .chronik-text { grid-column: 3; }
}
@media (min-width: 75em) {
  .ueber-raster { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .chronik-block, .richtext + .chronik-block { margin: 0; padding: 40px 44px 44px; }
  .chronik-block h2 { margin-bottom: 36px; font-size: var(--fs-30); }
  .chronik-block .chronik li { grid-template-columns: 4.75rem 48px minmax(0, 1fr); padding-bottom: 30px; }
  .chronik-block .chronik li:last-child { padding-bottom: 0; }
  .chronik-block .chronik li::before { left: calc(4.75rem + 24px); top: 14px; bottom: -14px; }
  .chronik-block .chronik li::after { left: calc(4.75rem + 24px - 5px); top: 8px; }
  .chronik-block .chronik-jahr { font-size: 1.5rem; line-height: 1.1; }
  .chronik-block .chronik-text { font-size: var(--fs-16); }
}
