/*
 * Emmerling Fashion – Demo · Designsystem v2
 * Grundlage:
 *  - ui-ux-pro-max: Stil "Exaggerated Minimalism" (Mode/Luxus), Schriftpaar "Luxury Minimalist"
 *    (Bodoni Moda + Jost), Weiß/Graphit + genau ein Akzent, alle Textfarben auf WCAG-Kontrast geprüft.
 *  - frontend-design: keine Template-Defaults (keine Versal-Labels über jeder Überschrift,
 *    keine "A · B"-Metazeilen, keine Pfeile an Links), ein mutiges Element: der Hero.
 */

:root {
  /* Farben (Kontrast auf Weiß in Klammern) */
  --white: #ffffff;        /* Tüll – Grund */
  --pearl: #f3f1ed;        /* Perlmutt – Flächen EMMERLING */
  --powder: #f4e9e6;       /* Puder – Flächen AMO & LUV */
  --graphite: #24272b;     /* Graphit – Text, dunkle Flächen (15:1) */
  --graphite-2: #33373c;
  --gold: #8c6a3d;         /* Altgold – einziger Akzent (4,95:1) */
  --gold-dark: #6f532e;
  --gold-on-dark: #c9a874; /* Akzent auf Graphit (6,7:1) */
  --muted: #67615a;        /* Sekundärtext (6,1:1) */
  --muted-on-dark: #b3aca3;
  --line: #e4dfd8;         /* dekorative Linien */
  --field: #8f877d;        /* Feld- und Bedienrahmen (3,5:1) */
  --ok: #2f7a4b;
  --low: #a37400;
  --later: #b85c1b;
  --none: #8f877d;
  --err: #a3372a;
  --pm: #1d6a73;           /* Demo-Label ProMode */
  --cms: #7b4f80;          /* Demo-Label CMS */

  /* Schrift */
  --display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --sans: 'Jost', Futura, 'Helvetica Neue', Arial, sans-serif;
  --fs-12: .75rem;
  --fs-14: .875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-21: 1.3125rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;

  /* Raster & Ebenen */
  --wrap: 1280px;
  --gutter: 32px;
  --hdr-h: 80px;
  --z-header: 50;
  --z-drawer: 90;
  --z-modal: 100;
  --z-toast: 120;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--graphite);
  font: 400 var(--fs-16)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, select, label, summary { touch-action: manipulation; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--graphite); color: #fff; padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-14); }
.tnum, .num { font-variant-numeric: tabular-nums; }
.num { text-align: right; white-space: nowrap; }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Typografie ---------- */
.d1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.005em; }
.d2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.875rem, 3vw, 2.75rem); line-height: 1.12; }
.d3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-24); line-height: 1.2; }
.h-ui { font-size: var(--fs-18); font-weight: 500; line-height: 1.3; }
.lead { font-size: var(--fs-18); line-height: 1.6; color: var(--muted); max-width: 36em; }
.kicker { display: block; font-size: var(--fs-14); color: var(--muted); margin-bottom: 8px; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border: 1px solid transparent; border-radius: 0;
  font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--graphite-2); }
.btn-line { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-line:hover { background: var(--graphite); color: #fff; }
.btn-light { background: #fff; color: var(--graphite); border-color: #fff; }
.btn-light:hover { background: var(--pearl); border-color: var(--pearl); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .75rem; letter-spacing: .08em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.tlink { color: var(--gold); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tlink:hover { color: var(--graphite); }
.link { background: none; border: 0; padding: 4px 0; min-height: 32px; cursor: pointer; color: var(--graphite); font-size: var(--fs-14); text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--gold); }

/* ---------- Demo-Leiste ---------- */

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 32px; height: var(--hdr-h); }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; flex: none; }
.logo b { font-family: var(--display); font-weight: 500; font-size: 25px; letter-spacing: .16em; padding-left: .16em; }
.logo span { font-size: 11px; letter-spacing: .62em; padding-left: .62em; margin-top: 7px; color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; padding: 12px 0; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold); }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: var(--fs-14); }
.lang button { min-width: 32px; min-height: 32px; padding: 4px; border: 0; background: none; cursor: pointer; color: var(--muted); letter-spacing: .06em; }
.lang button[aria-pressed="true"] { color: var(--graphite); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; cursor: pointer; }
.burger .ic { width: 24px; height: 24px; }
.mnav { position: fixed; inset: 0; z-index: var(--z-drawer); display: flex; flex-direction: column; padding: 16px; background: var(--white); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
body.nav-open .mnav { transform: none; visibility: visible; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mnav-top button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mnav nav { display: flex; flex-direction: column; padding: 8px 0; }
.mnav nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.mnav nav a[aria-current="page"] { color: var(--gold); }
.mnav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }

/* ---------- Medien & Platzhalter ---------- */
.media { position: relative; display: block; overflow: hidden; background: var(--pearl); }
.media > picture, .media > img, .slide > picture { position: absolute; inset: 0; }
.media picture img, .media > img, .slide picture img { width: 100%; height: 100%; object-fit: cover; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; overflow: hidden; }
/* Tüll-Netz als Struktur – das Material von Kommunion- und Brautkleidern */
.ph::before { content: ''; position: absolute; inset: 0; opacity: .5; background-image: repeating-linear-gradient(60deg, currentColor 0 .5px, transparent .5px 9px), repeating-linear-gradient(-60deg, currentColor 0 .5px, transparent .5px 9px); mask-image: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); }
.ph-v1 { background: linear-gradient(170deg, #f8f6f2, #ebe5dc); color: #7a6a57; }
.ph-v2 { background: linear-gradient(170deg, #f8efec, #ead9d3); color: #80605a; }
.ph-v3 { background: linear-gradient(170deg, #3a3e43, #24272b); color: #d9cfc2; }
.ph-v4 { background: linear-gradient(170deg, #fdfcfa, #f0ebe4); color: #85735d; }
.ph-e { background: linear-gradient(170deg, #f8f7f4, #ebe7e0); color: var(--muted); gap: 14px; }
.ph-e .ph-logo { width: 58%; max-width: 230px; opacity: .45; }
.ph-gown { position: relative; width: 30%; max-width: 160px; height: auto; fill: none; stroke: currentColor; stroke-width: 1; }
.ph-logo { position: relative; width: 46%; max-width: 220px; }
.ph-v1 .ph-logo, .ph-v2 .ph-logo, .ph-v4 .ph-logo { filter: invert(1) brightness(.3); opacity: .8; }
.ph-note { position: relative; padding: 0 16px; font-size: var(--fs-12); text-align: center; }
.slide .ph-logo, .chapter .ph-logo, .tile .ph-logo, .cimg .ph-logo, .thumbs .ph-logo { display: none; }
.cimg .ph-note, .thumbs .ph-note { display: none; }
.slide .ph-gown, .chapter .ph-gown { width: 34%; max-width: 220px; }

/* ---------- Datenquellen (Demo) ---------- */
.src { display: none; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .02em; line-height: 1.35; color: #fff; background: var(--pm); padding: 3px 7px; border-radius: 2px; vertical-align: middle; white-space: nowrap; }
.src.cms { background: var(--cms); }

/* ---------- Hero (das eine mutige Element) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(calc(100svh - var(--hdr-h) - 36px), 860px); }
.hero-text { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; padding: 56px 48px 40px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
/* Wortmarke füllt die Textspalte exakt – Größe hängt an der Spaltenbreite, nicht am Viewport */
/* text-indent: Bodoni lässt vor dem „E“ rund 0,09 em Luft – so steht EMMERLING bündig über FASHION und den Knöpfen */
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 13.6cqi, 5.5rem); line-height: .92; letter-spacing: .02em; text-indent: -.09em; }
.hero h1 span { display: block; margin-top: 20px; text-indent: 0; font-family: var(--sans); font-weight: 400; font-size: clamp(.875rem, 1.05vw, 1rem); letter-spacing: .64em; color: var(--muted); }
.hero .sub { margin: 32px 0 40px; font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; }
.hero .ctas { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 320px; }
.hero-media { position: relative; overflow: hidden; background: var(--pearl); min-height: 480px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.slide.on { opacity: 1; }

/* ---------- Abschnitte ---------- */
.sec { padding: 96px 0; }
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }

/* Markenkapitel */
.chapter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 640px; }
.chapter.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter.flip .chapter-media { order: 2; }
.chapter-media { position: relative; min-height: 480px; overflow: hidden; }
.chapter-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px clamp(24px, 5vw, 80px); }
.chapter-e { background: var(--pearl); }
.chapter-a { background: var(--graphite); color: #fff; }
.chapter-a .lead { color: var(--muted-on-dark); }
.chapter-a .ph { background: linear-gradient(170deg, #f8efec, #e8d6cf); color: #80605a; }
.chapter-logo { width: min(340px, 82%); margin-bottom: 36px; }
.chapter h2 { margin-bottom: 16px; }
.chapter .slogan { margin: -6px 0 16px; font-family: var(--display); font-style: italic; font-size: var(--fs-24); color: var(--gold-on-dark); }
.chapter .ctas { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 16px; }
.chapter-a .tlink { color: var(--gold-on-dark); }
.chapter-a .tlink:hover { color: #fff; }

/* Fotoserie unter dem Markenbereich: eigenes Karussell, durch Linie und Abstand vom Einleitungsbereich getrennt.
   ui-ux-pro-max: image-dimension (Breite/Höhe stehen fest), lazy loading,
   Motion Sensitivity (kein Scroll-Jacking: senkrechtes Scrollen bleibt der Seite); nichts bewegt sich von selbst. */
.serie { --serie-h: clamp(320px, 58vh, 600px); --rand: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-bottom: 72px; display: none; }
.js .serie { display: block; }   /* die Bilder lädt site.js – ohne JavaScript keine leeren Rahmen */
.serie-a { background: var(--graphite); color: #fff; }
.serie-e { background: var(--pearl); }
.serie-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 56px; margin-bottom: 28px;
  border-top: 1px solid var(--line); }
.serie-a .serie-kopf { border-top-color: rgba(255, 255, 255, .16); }
.serie-marke { margin: 0 0 6px; font-size: var(--fs-12); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.serie-a .serie-marke { color: var(--gold-on-dark); }
.serie-titel { margin: 0; }
.serie-pfeile { display: none; gap: 10px; }
.js .serie-pfeile { display: flex; }
.serie-pfeil { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%;
  background: none; color: inherit; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
.serie-a .serie-pfeil { color: #fff; border-color: rgba(255, 255, 255, .4); }
.serie-pfeil:hover { background: var(--gold-on-dark); border-color: var(--gold-on-dark); color: var(--graphite); }
.serie-pfeil:focus-visible { outline: 2px solid var(--gold-on-dark); outline-offset: 3px; }
.serie-band { display: flex; gap: 12px; margin: 0; padding: 0 var(--rand); list-style: none; overflow-x: auto;
  overscroll-behavior-x: contain;   /* Wischen am Ende blättert nicht versehentlich im Browserverlauf zurück */
  position: relative; scrollbar-width: none; }   /* kein Einrasten: verträgt sich nicht mit dem Endlos-Versatz */
.serie-band::-webkit-scrollbar { display: none; }
.serie-band:focus-visible { outline: 2px solid var(--gold-on-dark); outline-offset: 4px; }
.serie-band li { flex: none; }
.serie-band picture, .serie-band img { display: block; }
.serie-band img { width: auto; height: var(--serie-h); max-width: 82vw; object-fit: cover;   /* das nächste Bild schaut immer herein */
  background: rgba(255, 255, 255, .06); }

/* Kollektionskacheln */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tiles.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.n2 .media { aspect-ratio: 4 / 3; }
.tile { display: block; text-decoration: none; }
.tile .media { aspect-ratio: 3 / 4; }
.tile-cap { padding-top: 14px; }
.tile-cap small { display: block; font-size: var(--fs-14); color: var(--muted); }
.tile-cap span { font-family: var(--display); font-size: var(--fs-24); line-height: 1.25; }
.tile:hover .tile-cap span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* Kategorie-Kacheln über der Produktliste (Kategoriebild mit eingebranntem Namen) */
.cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding-top: 32px; }
.cattile .tile-cap { padding-top: 10px; }
.cattile .tile-cap small { display: none; }
.cattile .tile-cap span { font-size: var(--fs-18); }
.cattile[aria-current="true"] .media { outline: 2px solid var(--gold); outline-offset: 3px; }
.cattile[aria-current="true"] .tile-cap span { color: var(--gold); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Produktkarten */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.card .media { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.card-title { font-family: var(--display); font-size: var(--fs-21); line-height: 1.25; text-decoration: none; }
.card-sub { margin: 2px 0 12px; font-size: var(--fs-14); color: var(--muted); }
.card > .tlink { margin-top: auto; align-self: flex-start; }
a.card:hover .card-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 3px 10px; background: #fff; color: var(--graphite); font-size: var(--fs-12); font-weight: 500; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--field); background: var(--c, #fff); vertical-align: -1px; margin-right: 7px; }
.colorline { font-size: var(--fs-14); color: var(--muted); margin-bottom: 10px; }
.prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.ek { font-size: var(--fs-18); font-weight: 500; }
.uvp { font-size: var(--fs-14); color: var(--muted); }
/* Verfügbarkeit: Punkt + Text; bricht der Text um, steht die zweite Zeile bündig unter dem Text (hängender Einzug) */
.av { display: inline-block; padding-left: 17px; text-indent: -17px; font-size: var(--fs-14); color: var(--graphite); line-height: 1.35; }
.av .tnum { white-space: nowrap; }
.av::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--none); vertical-align: middle; }
.av-gruen::before { background: var(--ok); }
.av-gelb::before { background: var(--low); }
.av-orange::before { background: var(--later); }

/* Aussage + Händlersuche */
.statement { background: var(--pearl); padding: 96px 0; }
.statement-text { max-width: 22em; margin: 0 0 48px; font-family: var(--display); font-size: clamp(1.75rem, 3.2vw, 2.875rem); line-height: 1.22; }
.finder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.finder .field { width: min(340px, 100%); }

/* Seitenkopf */
.pagehead { padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.pagehead .lead { margin: 14px 0 0; }
.crumbs { margin-bottom: 16px; font-size: var(--fs-14); color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--field); }
.crumbs a:hover { color: var(--graphite); }
.crumbs.pt { padding-top: 28px; margin-bottom: 0; }

/* Filter */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 24px 0; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.filters .field { min-width: 150px; }
.filters .count { margin-left: auto; padding-bottom: 12px; font-size: var(--fs-14); color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.tabs button { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; white-space: nowrap; font-size: var(--fs-16); color: var(--muted); }
.tabs button[aria-pressed="true"] { border-bottom-color: var(--gold); color: var(--graphite); font-weight: 500; }
.empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 16px; }

/* Produktdetail */
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 64px; align-items: start; padding: 28px 0 88px; }
.gallery { position: sticky; top: calc(var(--hdr-h) + 24px); }
.gallery .main { aspect-ratio: 4 / 5; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.thumbs button { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--graphite); }
.thumbs .media { position: absolute; inset: 0; }

/* Produktbild vom Hintergrund abheben: feine Linie und sehr weicher Schatten –
   helle Studio- oder Himmelflächen verschwimmen sonst mit dem cremefarbenen Grund */
.gallery .main { box-shadow: 0 0 0 1px var(--line), 0 14px 32px -16px rgba(36, 39, 43, .22); }

/* Artikelseite: Ist das Bildformat bekannt (Breite/Höhe von der Bridge), richtet sich der Rahmen nach dem Bild –
   Querformate werden nicht mehr in ein Hochformat geschnitten. Sehr hohe Bilder enden am Fensterrand. */
.gallery .main.natur { aspect-ratio: auto; }
.gallery .main.natur > img { position: static; display: block; width: 100%; height: auto;
  max-height: calc(100vh - 140px); object-fit: contain; }
/* Querformat: Bild oben über die volle Breite, darunter links Name und Preis, rechts Größen und Bestellung */
.pdp.quer { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.pdp.quer .gallery { position: static; width: calc(50% - 32px); margin-inline: auto; }   /* halbe Breite, mittig */
.pdp.quer .gallery .main.natur > img { max-height: none; }   /* immer volle Breite, keine Balken */
.pdp.quer .thumbs { grid-template-columns: repeat(auto-fit, 104px); justify-content: center; }
.pdp.quer .pinfo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
.pdp.quer .pkauf > .h4:first-child { margin-top: 0; }

/* Bild-Lupe (Artikelseite Händlershop): Klick vergrößert, dunkler Hintergrund, Zoom und Verschieben */
.lb-open { width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.lb-open:focus-visible, .thumbs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lb-lupe { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--graphite); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(14, 15, 17, .94); }
.lb-stage { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 92vw; max-height: 86vh; object-fit: contain; cursor: zoom-in; user-select: none;
  transform-origin: center; transition: transform .18s ease-out; will-change: transform; }
.lightbox.gezoomt .lb-stage img { cursor: grab; }
.lightbox.zieht .lb-stage img { cursor: grabbing; transition: none; }
.lb-leiste { position: fixed; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.lb-leiste button, .lb-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lb-leiste button:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-leiste button:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--gold-on-dark); outline-offset: 2px; }
.lb-zahl { margin-right: 8px; font-size: var(--fs-14, 14px); color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-zurueck { left: 16px; }
.lb-vor { right: 16px; }
.lb-tipp { position: fixed; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 13px; color: var(--muted-on-dark); pointer-events: none; }
.lightbox.gezoomt .lb-tipp { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lb-stage img { transition: none; } }
@media (max-width: 640px) { .lb-tipp { display: none; } .lb-nav { top: auto; bottom: 16px; transform: none; } }
.pinfo h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 3.4vw, 3rem); line-height: 1.1; }
.pinfo .sub { margin: 6px 0 24px; font-size: var(--fs-18); color: var(--muted); }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0 0 8px; padding: 20px 0; border-block: 1px solid var(--line); font-size: var(--fs-16); }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 10px; border: 1px solid var(--line); font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
.h4 { margin: 28px 0 8px; font-size: var(--fs-16); font-weight: 500; }
details.acc { border-bottom: 1px solid var(--line); }
details.acc summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 500; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--muted); }
details.acc[open] summary::after { content: '–'; }
details.acc .body { padding: 0 0 16px; color: var(--muted); }
.dealer-box { margin-top: 32px; padding: 32px; background: var(--pearl); }
.dealer-box h2 { margin-bottom: 8px; font-family: var(--display); font-size: var(--fs-24); }
.dealer-box p { color: var(--muted); }
.hint { margin-top: 20px; font-size: var(--fs-14); color: var(--muted); }
.related { padding-bottom: 96px; }

/* Formulare */
.form { display: flex; flex-direction: column; gap: 18px; }
/* Abstände über Ränder statt gap: Passwort-Manager (z. B. 1Password) hängen unsichtbare Elemente ins Feld,
   die mit gap eigenen Platz bekämen und das Feld gegenüber Knöpfen daneben verschieben würden. */
.field { display: flex; flex-direction: column; min-width: 0; }
.field > label, .lbl-s { font-size: var(--fs-14); font-weight: 500; margin-bottom: 6px; }
.field > .fhint { margin-top: 6px; }
.field > .ferr { margin-top: 8px; }
.req { color: var(--err); margin-left: 2px; }
.input, .sel select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--field); border-radius: 2px; background: #fff;
  font-size: var(--fs-16); line-height: 1.5; /* 24 + 2 × 11 + 2 = 48 px, so hoch wie .btn */
}
textarea.input { min-height: 104px; resize: vertical; line-height: 1.5; }
.sel select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2324272b' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center; }
.input:focus, .sel select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.input[aria-invalid="true"] { border-color: var(--err); border-width: 2px; padding: 10px 13px; }
.ferr { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 0; font-size: var(--fs-14); color: var(--err); }
.ferr:empty { display: none; }
.ferr .ic { width: 16px; height: 16px; margin-top: 3px; }
.fhint { font-size: var(--fs-14); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-16); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.err-summary { padding: 18px 20px; margin-bottom: 24px; border: 2px solid var(--err); background: #fff; }
.err-summary:focus { outline: 2px solid var(--err); outline-offset: 2px; }
.err-summary h2 { margin-bottom: 8px; font-size: var(--fs-18); font-weight: 500; color: var(--err); }
.err-summary ul { margin: 0; padding-left: 20px; }
.err-summary a { color: var(--err); }
.note { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: #fff; color: var(--graphite); }
.note.ok { border-left-color: var(--ok); }
.note.warn { border-left-color: var(--later); }
.note ul { margin: 8px 0 0; padding-left: 18px; }

/* Händlersuche */
.dsearch { display: grid; grid-template-columns: .9fr 1.3fr 1fr .8fr 1fr auto; gap: 14px; align-items: end; margin: 32px 0 20px; }
.dinfo { margin: 0 0 16px; color: var(--muted); }
.dres { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding-bottom: 96px; }
#map { min-height: 620px; background: var(--pearl); border: 1px solid var(--line); z-index: 1; }
.mapoff { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 300px; padding: 24px; text-align: center; color: var(--muted); }
.dlist { display: flex; flex-direction: column; gap: 12px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.dcard { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.dcard:hover { border-color: var(--field); }
.dcard[aria-current="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.dcard h3 { font-family: var(--display); font-size: var(--fs-21); line-height: 1.25; }
.dcard .dist { padding-top: 4px; font-size: var(--fs-14); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dcard address { grid-column: 1 / -1; font-style: normal; font-size: var(--fs-14); color: var(--muted); line-height: 1.55; }
.dcard .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { padding: 1px 8px; border: 1px solid var(--line); font-size: var(--fs-12); color: var(--muted); }
.dcard .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: var(--fs-14); }
.dcard .links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; text-decoration: none; overflow-wrap: anywhere; }
.dcard .links a:hover { text-decoration: underline; }
.dcard .links .ic { width: 16px; height: 16px; color: var(--gold); }
.dcard .src { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.pin { display: block; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; background: var(--gold); border: 2px solid #fff; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pin.on { background: var(--graphite); }

/* Login & Antrag */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--hdr-h) - 36px); }
.auth .visual { position: relative; overflow: hidden; }
.auth .visual .media { position: absolute; inset: 0; }
.auth .panel-in { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { margin-bottom: 8px; }
.auth-card .intro { margin-bottom: 28px; color: var(--muted); }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: var(--muted); }
.or { display: flex; align-items: center; gap: 14px; font-size: var(--fs-14); color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.auth-foot p { margin-bottom: 12px; color: var(--muted); }
.otp { text-align: center; font-size: var(--fs-24); letter-spacing: .4em; padding-left: calc(14px + .4em); font-variant-numeric: tabular-nums; }
.steps-v { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.steps-v li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; color: var(--muted); }
.steps-v .dot { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--field); border-radius: 50%; font-size: var(--fs-14); }
.steps-v li.done, .steps-v li.cur { color: var(--graphite); }
.steps-v li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps-v li.cur .dot { border-color: var(--gold); color: var(--gold); }
.steps-v small { display: block; font-size: var(--fs-14); color: var(--muted); }

/* ---------- B2B ---------- */
.b2b { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100svh - 36px); }
/* Leiste immer bildschirmhoch und mit eigenem Scrollen: dvh wächst mit, wenn Safari (iPad, iPhone) beim Scrollen seine
   Leisten ausblendet – mit svh blieb unten ein weißer Streifen; contain: am Ende der Leiste scrollt nicht die Seite weiter */
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow-y: auto;
  overscroll-behavior: contain; background: var(--graphite); color: #ebe7e1; }
.side .logo { padding: 28px 0 24px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); align-self: stretch; }
.side .logo b { font-size: 22px; }
.side .logo span { color: var(--muted-on-dark); }
.side nav { display: flex; flex-direction: column; padding: 12px 0; }
.side nav a, .side .logout { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 10px 24px; border: 0; border-left: 3px solid transparent; background: none; color: #ddd8d0; text-align: left; text-decoration: none; cursor: pointer; font-size: var(--fs-16); }
.side nav a:hover, .side .logout:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side nav a[aria-current="page"] { background: var(--graphite-2); color: #fff; border-left-color: var(--gold-on-dark); }
.side nav a .ic, .side .logout .ic { color: var(--muted-on-dark); }
.side nav a[aria-current="page"] .ic { color: var(--gold-on-dark); }
.pill { margin-left: auto; padding: 0 8px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.side .bottom { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px 0 0; }
.side .foot { padding: 12px 24px 22px; font-size: var(--fs-12); color: var(--muted-on-dark); line-height: 1.5; }
.side .foot .lang button { color: var(--muted-on-dark); }
.side .foot .lang button[aria-pressed="true"] { color: #fff; }
.scrim { display: none; }
.b2b-main { min-width: 0; background: #f7f6f3; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .burger { display: none; }
.who { min-width: 0; line-height: 1.3; }
.who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: var(--fs-14); color: var(--muted); }
.topbar .sp { flex: 1; }
.topbar .tolink { font-size: var(--fs-14); white-space: nowrap; }
.cartbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--field); text-decoration: none; font-size: var(--fs-14); white-space: nowrap; }
.cartbtn .n { min-width: 22px; padding: 0 6px; border-radius: 10px; background: var(--graphite); color: #fff; font-size: var(--fs-12); text-align: center; font-variant-numeric: tabular-nums; }
.b2b-content { max-width: 1400px; padding: 32px; }
.b2b-content > .crumbs { margin-bottom: 8px; }
.b2b-content h1.d1 { font-size: clamp(2rem, 3vw, 2.75rem); }
.panel { background: #fff; border: 1px solid var(--line); padding: 28px; }
.panel + .panel, .stack > .panel + .panel { margin-top: 18px; }
.panel.nopad { padding: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.sync { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: var(--fs-14); color: var(--muted); }
.sync .ic { width: 16px; height: 16px; color: var(--ok); }
.status-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 28px 0; background: #fff; border: 1px solid var(--line); }   /* so viele Spalten wie Kacheln */
.status-strip > div { position: relative; padding: 18px 22px; border-left: 1px solid var(--line); }
/* Kachel als Ganzes klickbar: der Link im Titel spannt sich über die Kachel (Name des Links = Titel) */
.status-strip .kachel-link { color: inherit; text-decoration: none; }
.status-strip .kachel-link::after { content: ''; position: absolute; inset: 0; }
.status-strip > div:has(.kachel-link) { transition: background .15s; }
.status-strip > div:has(.kachel-link):hover { background: #f7f6f3; }
.status-strip > div:has(.kachel-link):hover dt { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.status-strip .kachel-link:focus-visible { outline: none; }
.status-strip .kachel-link:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.status-strip > div:first-child { border-left: 0; }
.status-strip dt { font-size: var(--fs-14); color: var(--muted); }
.status-strip dd { margin: 4px 0 0; font-size: var(--fs-24); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.25; }
.status-strip dd small { display: block; font-size: var(--fs-14); font-weight: 400; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.quick a { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.quick a:hover { border-color: var(--field); }
.quick .ic { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.25; }
.quick b { display: block; font-weight: 500; }
.quick span { font-size: var(--fs-14); color: var(--muted); }
.b2b-content .grid { gap: 32px 20px; }
.b2bpdp { padding-top: 12px; }
.b2bpdp .gallery { top: 96px; }
.pricebox { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pricebox small { display: block; font-size: var(--fs-14); color: var(--muted); }
.pricebox b { display: block; font-family: var(--display); font-size: 2.125rem; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pricebox span { font-size: var(--fs-14); color: var(--muted); }
.pricebox .uvpv { color: var(--muted); }
.matrix { width: 100%; border-collapse: collapse; margin: 4px 0 6px; }
.matrix caption { text-align: left; }
.matrix th { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-14); font-weight: 500; color: var(--muted); }
.matrix td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.matrix th:last-child, .matrix td:last-child { text-align: right; }
.matrix td:first-child { width: 96px; font-weight: 500; font-variant-numeric: tabular-nums; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--field); background: #fff; }
.step button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; }
.step button:hover { background: var(--pearl); }
.step input { width: 50px; height: 42px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-size: var(--fs-16); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; background: #fff; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step input.has { font-weight: 600; background: #f8f3eb; }
.step.disabled { opacity: .4; }
.step.disabled button, .step.disabled input { cursor: not-allowed; }
.addbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 6px; }
.addbar b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mini { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.mini td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Warenkorb & Kasse */
.two { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.two > .panel + .panel { margin-top: 0; } /* Abstand macht das Raster, sonst steht die zweite Box tiefer */
.two.gleich { align-items: stretch; }  /* nebeneinander gleich hoch */
.cart-two { grid-template-columns: minmax(0, 1fr); }
.cart-two > aside { justify-self: end; width: 100%; max-width: 440px; }
.sticky { position: sticky; top: 96px; }
.cline { display: grid; grid-template-columns: 64px minmax(0, 1fr) 96px 64px 140px 104px 108px 44px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.chead { padding-block: 12px; background: #fbfaf8; font-size: var(--fs-14); font-weight: 500; color: var(--muted); }
.cimg { width: 64px; height: 80px; }
.cinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cinfo a { text-decoration: none; font-weight: 500; }
.cinfo a:hover { text-decoration: underline; }
.cinfo small { font-size: var(--fs-14); color: var(--muted); }
.cinfo .mob { display: none; }
.crm { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: var(--muted); }
.crm:hover { color: var(--err); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 10px 0; margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.totals .num { padding-left: 20px; }
.totals .grand { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-18); font-weight: 500; }
.totals-note { margin: -8px 0 20px; font-size: var(--fs-14); color: var(--muted); }
.costeps { display: flex; list-style: none; padding: 0; margin: 24px 0 28px; }
.costeps li { flex: 1; padding-top: 12px; border-top: 2px solid var(--line); color: var(--muted); font-size: var(--fs-14); }
.costeps li + li { margin-left: 4px; }
.costeps li b { margin-right: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.costeps li.done { border-top-color: var(--graphite); color: var(--graphite); }
.costeps li.cur { border-top-color: var(--gold); color: var(--graphite); font-weight: 500; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.addr-opt { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--field); cursor: pointer; line-height: 1.5; }
.addr-opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.addr-opt:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: #fdfbf8; }
address { font-style: normal; line-height: 1.6; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 20px; max-height: 260px; overflow-y: auto; font-size: var(--fs-14); }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mini-lines small { display: block; color: var(--muted); }
.stack > .panel .field + .field { margin-top: 18px; }

/* Tabellen */
.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfaf8; text-align: left; font-size: var(--fs-14); font-weight: 500; color: var(--muted); }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fcfbf9; }
.tbl .acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tbl a { text-decoration: none; }
.status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: var(--fs-14); white-space: nowrap; }
.st-in_bearbeitung { background: #f8eed6; color: #6e4f0c; }
.st-versendet { background: #e1edf5; color: #1f4f6e; }
.st-abgeschlossen { background: #e2efe6; color: #245a37; }
.st-wartet { background: #fbe4d7; color: #874015; }
.st-teilgeliefert { background: #e1edf5; color: #1f4f6e; }
.st-storniert { background: #ececec; color: #4a4a4a; }
.st-pruefung { background: #fbe4d7; color: #874015; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.order-head .status { margin-top: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.dl { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); }
.dl .ty { font-size: var(--fs-14); color: var(--gold); }
.dl h3 { font-size: var(--fs-16); font-weight: 500; line-height: 1.4; }
.dl small { font-size: var(--fs-14); color: var(--muted); }
.dl .btn { margin-top: 10px; align-self: flex-start; }

/* Über uns / Kontakt */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.split .media { aspect-ratio: 4 / 5; }
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news article { padding: 28px; border: 1px solid var(--line); }
.news time { font-size: var(--fs-14); color: var(--muted); }
.news h3 { margin: 8px 0 8px; font-family: var(--display); font-size: var(--fs-24); line-height: 1.25; }
.news p { margin: 0; color: var(--muted); }

/* Footer */
.ftr { background: var(--graphite); color: #ddd8d0; padding: 72px 0 28px; font-size: var(--fs-14); }
.ftr .cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.ftr .logo { align-items: flex-start; color: #fff; }
.ftr .logo b { padding-left: 0; }
.ftr .logo span { padding-left: 0; color: var(--muted-on-dark); }
.ftr h2 { margin-bottom: 14px; font-size: var(--fs-16); font-weight: 500; color: #fff; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li a { display: inline-block; padding: 4px 0; color: #ddd8d0; text-decoration: none; }
.ftr li a:hover { color: #fff; text-decoration: underline; }
.ftr address { margin-top: 24px; }
.ftr address a { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { border-color: #fff; }
.ftr .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-12); color: var(--muted-on-dark); }

/* Modal & Toast */
.bigcheck { width: 64px; height: 64px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ok); color: #fff; }
.bigcheck .ic { width: 32px; height: 32px; stroke-width: 2; }
.bigcheck.warn { background: var(--later); }
.center { text-align: center; }

/* Belegvorschau */
.doc { position: relative; font-size: var(--fs-14); }
.doc h2 { margin: 18px 0 4px; font-family: var(--display); font-size: var(--fs-30); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-variant-numeric: tabular-nums; }
.doc th, .doc td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.doc th { font-weight: 500; color: var(--muted); }
.doc .r { text-align: right; }

/* ---------- Responsive (Breakpoints 1240 / 1100 / 900 / 700) ---------- */
@media (max-width: 1240px) {
  .nav { gap: 18px; }
  .nav a { font-size: .75rem; letter-spacing: .06em; }
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cline { grid-template-columns: 64px minmax(0, 1fr) 84px 56px 140px 108px 44px; }
  .cline > .unit { display: none; }
}
@media (max-width: 1100px) {
  .nav, .hdr-right .lang { display: none; }
  .burger { display: flex; }
  .hdr .wrap { justify-content: space-between; }
  .grid, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles, .tiles.n5, .tiles.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-strip > div:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* drei Kacheln: die letzte über die ganze Breite */
  .status-strip > div:nth-child(3) { border-left: 0; }
  .status-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dsearch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dsearch .btn { grid-column: span 3; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .ftr .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero, .chapter, .chapter.flip, .split, .pdp, .dres, .auth, .news { grid-template-columns: minmax(0, 1fr); }
  /* volle Breite: greift die Höhengrenze (große Handys, Querformat), wird oben und unten etwas angeschnitten –
     ohne width würde der Rahmen schmaler und rechts bliebe ein Rand */
  .hero-media { order: -1; width: 100%; min-height: 0; aspect-ratio: 4 / 5; max-height: 80svh; }
  .hero-text { padding: 32px var(--gutter) 48px; }
  .hero .ctas { max-width: none; }
  .chapter { min-height: 0; }
  .chapter.flip .chapter-media { order: 0; }
  .chapter-media { width: 100%; min-height: 0; aspect-ratio: 4 / 5; max-height: 80svh; }
  .chapter-text { padding: 48px var(--gutter); }
  .serie { --serie-h: clamp(300px, 62vh, 460px); padding-bottom: 48px; }
  .serie-kopf { padding-top: 40px; margin-bottom: 20px; }
  .serie-band { gap: 8px; }
  .pdp { gap: 32px; padding-top: 16px; }
  .gallery, .b2bpdp .gallery { position: static; }
  .pdp.quer .pinfo { display: block; }
  .pdp.quer .gallery { width: auto; }
  .pdp.quer .pkauf > .h4:first-child { margin-top: 28px; }
  .auth .visual { display: none; }
  #map { min-height: 380px; }
  .dlist { max-height: none; overflow: visible; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .b2b { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 288px; height: auto; z-index: var(--z-drawer); transform: translateX(-100%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s; }
  body.side-open .side { transform: none; visibility: visible; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(36, 39, 43, .45); }
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar .burger { display: flex; }
  .topbar .tolink, .topbar .lang { display: none; }
  .b2b-content { padding: 20px 16px 48px; }
  .cline { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img step sum"; gap: 10px 14px; padding: 16px; }
  .cline.chead { display: none; }
  .cline > .cimg { grid-area: img; }
  .cline > .cinfo { grid-area: info; }
  .cline > .crm { grid-area: rm; }
  .cline > .cstep { grid-area: step; }
  .cline > .csum { grid-area: sum; align-self: center; }
  .cline > .ccol { display: none; }
  .cinfo .mob { display: block; }
  .cart-two > aside { max-width: none; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; --hdr-h: 68px; }
  .hdr .wrap { gap: 12px; }
  .logo b { font-size: 20px; }
  .logo span { font-size: 10px; }
  .hdr-right .btn { padding: 8px 12px; }
  .sec, .statement { padding: 64px 0; }
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .card-title { font-size: var(--fs-18); }
  .tiles, .tiles.n5, .tiles.n3, .tiles.n2 { gap: 20px 12px; }
  .tiles.n2 { grid-template-columns: minmax(0, 1fr); }
  .tile-cap span { font-size: var(--fs-21); }
  .cattiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 24px; }
  .cattile .tile-cap span { font-size: var(--fs-14); }
  .filters { gap: 12px; }
  .filters .field { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .filters .count { width: 100%; margin-left: 0; padding-bottom: 0; }
  .dsearch { grid-template-columns: 1fr 1fr; }
  .dsearch .field:nth-child(2) { grid-column: span 2; order: -1; }
  .dsearch .btn { grid-column: span 2; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .finder .field, .finder .btn { width: 100%; }
  .status-strip dd { font-size: var(--fs-21); }
  .panel { padding: 20px; }
  .pricebox { gap: 16px 32px; }
  .pricebox b { font-size: 1.75rem; }
  .step button { width: 44px; height: 44px; }
  .step input { width: 40px; height: 44px; }
  .addbar { position: sticky; bottom: 0; z-index: 6; margin: 0 -16px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(0, 0, 0, .05); }
  .addbar .btn { padding-inline: 16px; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  .who small { display: none; }
  .cartbtn .lbl { display: none; }
  /* Größentabelle: je Größe zwei Zeilen (Größe + Preis, darunter Verfügbarkeit), Menge rechts daneben */
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix, .matrix tbody { display: block; }
  .matrix tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "gr pr st" "av av st"; align-items: center; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .matrix td { padding: 0; border: 0; }
  .matrix td:first-child { grid-area: gr; width: auto; }
  .matrix td:nth-child(2) { grid-area: pr; text-align: left; }
  .matrix td:nth-child(3) { grid-area: av; }
  .matrix td:last-child { grid-area: st; }
  /* lange deutsche Wörter in Überschriften trennen statt über den Rand laufen */
  h1, h2, .d1, .d2 { hyphens: auto; overflow-wrap: break-word; }
  .tbl.resp thead { display: none; }
  .tbl.resp, .tbl.resp tbody, .tbl.resp tr, .tbl.resp td { display: block; width: 100%; }
  .tbl.resp tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl.resp tr:last-child { border-bottom: 0; }
  .tbl.resp td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border: 0; text-align: right; }
  .tbl.resp td::before { content: attr(data-l); font-size: var(--fs-14); color: var(--muted); text-align: left; }
  .tbl.resp td.acts { justify-content: flex-start; padding-top: 10px; }
  .tbl.resp td.acts::before { display: none; }
  .costeps li { font-size: var(--fs-12); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
