/* Othman Haustechnik: Marken-Tokens (aus dem freigegebenen Entwurf) und Shop-Bausteine.
   Lädt nach assets/system.css. Katalog, Produkt und Formulare folgen den Tokens, nicht den Marketing-Regeln. */
:root {
  --p-bg: #1f262c; --p-surface: #2a333a; --p-ink: #f2f5f6; --p-muted: #b3bdc4;
  --p-accent: #72be3e; --p-accent-ink: #14191d; --p-action: #72be3e; --p-action-ink: #14191d;
  --p-inv-bg: #171c21; --p-inv-surface: #232b31; --p-inv-ink: #ffffff; --p-inv-muted: #c3cbd1;
  --p-inv-accent: #72be3e; --p-inv-accent-ink: #14191d; --p-inv-action: #72be3e; --p-inv-action-ink: #14191d;
  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-text: "Red Hat Text", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  /* Kopf: Leiste plus Suchzeile */
  --nav-bar: 72px; --nav-such: 60px;
  --nav: calc(var(--nav-bar) + var(--nav-such));
  --ok: #8ed66a; --fehler: #ff9f94; color-scheme: dark;
  --link: #f2f5f6;
}
@media (max-width: 639px) { :root { --nav-bar: 56px; --nav-such: 56px; } }

.skip:focus { position: fixed; left: 16px; top: 8px; z-index: 60; width: auto; height: auto; clip: auto; padding: 8px 12px; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r-sm); }

/* Kopf */
.nav.shop-nav { height: var(--nav); }
.shop-nav .nav__bar { height: var(--nav-bar); }
.shop-such { height: var(--nav-such); border-top: 1px solid var(--line); background: var(--surface); }
.shop-such__bar { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.shop-such__form { flex: 1 1 auto; display: flex; gap: var(--s-2); min-width: 0; max-width: 760px; }
.shop-such__form input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
}
.shop-such__form input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent; }
.shop-such__form .btn { height: 40px; gap: var(--s-2); }
.shop-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.shop-preise { margin-left: auto; display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.shop-preise button { height: 38px; padding: 0 var(--s-3); border: 0; background: var(--bg); color: var(--muted); font: 500 14px/1 var(--font-text); cursor: pointer; }
.shop-preise button + button { border-left: 1px solid var(--line-strong); }
.shop-preise button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.shop-preise button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.shop-preise button:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
@media (max-width: 639px) {
  .shop-such__wort { display: none; }
  .shop-such__form .btn { width: 44px; padding: 0; justify-content: center; }
  .shop-preise button { padding: 0 var(--s-2); font-size: 13px; }
  .nav__logo .long { display: none; }
}
.shop-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-5) var(--gutter); max-height: calc(100vh - var(--nav) - 48px); overflow-y: auto; }
.shop-menu .menu-col a { padding: 2px 0; font-weight: 400; font-size: var(--t-small); }
.shop-menu .menu-col a.shop-menu__kapitel { font-weight: 600; color: var(--ink); font-size: var(--t-label); margin-bottom: var(--s-1); }

/* Seitenrahmen */
.shop-main { padding-top: calc(var(--nav) + var(--s-6)); padding-bottom: var(--s-9, 96px); min-height: 70vh; }
.start .hero { --nav-total: var(--nav); }
.shop-seite { display: grid; gap: var(--s-6); }
.shop-kopf { display: grid; gap: var(--s-2); max-width: 860px; }
.shop-kopf h1 { font-size: var(--t-h2); }
.shop-krumen ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; padding: 0; font-size: var(--t-small); color: var(--muted); }
.shop-krumen li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.shop-krumen a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.shop-krumen [aria-current] { color: var(--ink); }
.shop-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.shop-chips .pill { border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.shop-chips .pill:hover { border-color: var(--ink); background: var(--surface); }
.shop-meldung { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: color-mix(in oklab, var(--p-accent) 14%, var(--bg)); border: 1px solid color-mix(in oklab, var(--p-accent) 45%, transparent); }
.shop-meldung--ok { background: color-mix(in oklab, var(--ok) 10%, var(--bg)); border-color: color-mix(in oklab, var(--ok) 40%, transparent); }
.shop-meldung--fehler { background: color-mix(in oklab, var(--fehler) 14%, var(--bg)); border-color: color-mix(in oklab, var(--fehler) 45%, transparent); }
.shop-meldung ul { margin: var(--s-2) 0 0 var(--s-5); }
/* Shop geschlossen (Admin > Einstellungen): Band unter dem Kopf, Vorschau für Personal, Hinweisseite */
.shop-band { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: color-mix(in oklab, var(--p-accent) 14%, var(--bg)); border: 1px solid color-mix(in oklab, var(--p-accent) 45%, transparent); }
.shop-band--vorschau { background: #fff1c2; color: #6b4b00; border-color: #e6c968; }
.shop-geschlossen { max-width: 46rem; padding: var(--s-6) 0; }
.shop-fehler { color: var(--fehler); font-size: var(--t-small); }
.shop-leer { padding: var(--s-7) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }
mark.shop-fehlt { background: #fff1c2; color: #6b4b00; padding: 0 4px; border-radius: 4px; font-weight: 500; }
.badge { background: var(--surface); border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* Preise */
.shop-preis { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.shop-preis small { font-size: .8em; font-weight: 500; color: var(--muted); }
.shop-preis--gross { font: 600 var(--t-h3)/1.1 var(--font-display); letter-spacing: -0.01em; }
.shop-preisblock { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); }
.shop-preis__liste { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-rabatt { align-self: center; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1.4 var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zahl .shop-rabatt, .shop-kachel__fuss .shop-rabatt { align-self: auto; }
.zahl .shop-preisblock, .shop-kachel__fuss .shop-preisblock { flex-direction: column; gap: 0; }
.zahl .shop-preisblock { align-items: flex-end; }
.shop-kachel__fuss .shop-preisblock { align-items: flex-start; }

/* Bereich: Kapitelübersicht */
.shop-kapitel { columns: 3 300px; column-gap: var(--gutter); }
.shop-kapitel__karte { break-inside: avoid; margin-bottom: var(--gutter); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.shop-kapitel__karte h2 { font-size: 20px; margin-bottom: var(--s-3); }
.shop-kapitel__karte h2 a:hover { color: var(--action); }
.shop-kapitel__karte ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.shop-kapitel__karte li { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-small); padding: 4px 0; border-bottom: 1px solid var(--line); }
.shop-kapitel__karte li:last-child { border-bottom: 0; }
.shop-kapitel__karte li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Kategorie: Filter links, Kacheln rechts */
.shop-liste { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.shop-filter { position: sticky; top: calc(var(--nav) + var(--s-4)); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); background: var(--bg); max-height: calc(100vh - var(--nav) - 32px); overflow-y: auto; }
.shop-filter summary { font-weight: 600; cursor: pointer; list-style: none; }
.shop-filter summary::-webkit-details-marker { display: none; }
.shop-filter form { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.shop-filter__gruppe { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.shop-filter__gruppe legend { font-size: var(--t-small); font-weight: 600; margin-bottom: var(--s-2); }
.shop-filter__werte { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; }
.shop-check { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); cursor: pointer; padding: 2px 0; }
.shop-check input { width: 16px; height: 16px; accent-color: var(--p-ink); flex: none; }
.shop-check .muted { margin-left: auto; font-size: 12px; }
@media (min-width: 1024px) { .shop-filter > summary { pointer-events: none; } } /* auf dem Desktop immer offen */
@media (max-width: 1023px) {
  .shop-liste { grid-template-columns: minmax(0, 1fr); }
  .shop-filter { position: static; max-height: none; }
  .shop-filter summary::after { content: "+"; float: right; color: var(--muted); }
  .shop-filter[open] summary::after { content: "–"; }
}

/* Produktkacheln */
.shop-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gutter); }
.shop-kachel {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.shop-kachel:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 6px 20px -12px rgb(0 0 0 / .6); }
.shop-kachel:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.shop-kachel__bild { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.shop-kachel__bild img { width: 100%; height: 100%; object-fit: contain; padding: var(--s-2); transition: transform 300ms var(--ease); }
.shop-kachel:hover .shop-kachel__bild img { transform: scale(1.03); }
.shop-kachel__ohne { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface); }
.shop-kachel__ohne .mark { width: 28px; height: 28px; opacity: .25; }
.shop-kachel__name { font-weight: 500; line-height: 1.3; font-size: 15px; }
.shop-kachel__fuss { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); font-size: var(--t-small); }
.shop-kachel__fuss .muted { font-size: 12px; text-align: right; }
@media (max-width: 639px) { .shop-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } .shop-kachel { padding: var(--s-3); } }

/* Seitenzahlen */
.shop-seiten { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-7); flex-wrap: wrap; }
.shop-seiten ol { display: flex; gap: var(--s-1); list-style: none; padding: 0; flex-wrap: wrap; }
.shop-seiten ol a, .shop-seiten ol span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 var(--s-2); border-radius: var(--r-sm); font-size: var(--t-small); }
.shop-seiten ol a:hover { background: var(--surface); }
.shop-seiten [aria-current] { background: var(--ink); color: var(--bg); }
.shop-seiten [aria-disabled] { opacity: .45; pointer-events: none; }

/* Produktseite */
.shop-produkt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8, 48px); align-items: start; }
.shop-produkt__bild { margin: 0; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.shop-produkt__bild img { width: 100%; height: 100%; object-fit: contain; padding: var(--s-6); }
.shop-produkt__bild--leer .mark { width: 48px; height: 48px; opacity: .2; }
.shop-produkt__daumen { display: flex; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; }
.shop-produkt__daumen button { width: 72px; height: 72px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.shop-produkt__daumen button[aria-pressed="true"] { border-color: var(--ink); }
.shop-produkt__daumen img { width: 100%; height: 100%; object-fit: contain; }
.shop-produkt__preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); }
.shop-fakten { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; color: var(--muted); font-size: var(--t-small); }
.shop-beschreibung { max-width: 68ch; line-height: 1.6; }
@media (max-width: 1023px) { .shop-produkt { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } .shop-produkt__bild { max-width: 420px; } }

/* Tabellen */
.shop-varianten { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.shop-varianten__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-3); }
.shop-tabellenfilter input { height: 40px; width: min(320px, 100%); padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 15px; background: var(--bg); color: var(--ink); }
.shop-tabelle-rahmen { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.shop-tabelle-rahmen:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.shop-tabelle { width: 100%; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.shop-tabelle th, .shop-tabelle td { padding: 10px var(--s-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.shop-tabelle thead th { position: sticky; top: 0; background: var(--surface); font-weight: 600; font-size: 13px; white-space: nowrap; }
.shop-tabelle tbody th { font-weight: 600; white-space: nowrap; }
.shop-tabelle tbody tr:hover { background: color-mix(in oklab, var(--surface) 60%, transparent); }
.shop-tabelle tr:target { background: color-mix(in oklab, var(--p-accent) 16%, var(--bg)); scroll-margin-top: calc(var(--nav) + 80px); }
.shop-tabelle .zahl { text-align: right; white-space: nowrap; }
.shop-tabelle__gruppe th { background: var(--bg); font-weight: 600; padding-top: var(--s-4); color: var(--ink); }
.shop-tabelle__fehlt { color: var(--fehler); }
.shop-tabelle tfoot th, .shop-tabelle tfoot td { border-bottom: 0; background: var(--surface); }
.shop-tabelle .badge { margin-left: var(--s-2); }
.mono { font-family: var(--font-mono); font-size: 13px; }
.shop-lager { white-space: nowrap; color: var(--muted); }
.shop-lager--ja { color: var(--ok); font-weight: 500; }
.shop-lager--ja::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; }

/* Schnellbestellung, Leistungen, Kontakt, Texte */
.shop-schnell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: start; }
.shop-schnell textarea { font-family: var(--font-mono); font-size: 14px; }
.shop-schnell__ergebnis { display: grid; gap: var(--s-4); }
@media (max-width: 1023px) { .shop-schnell { grid-template-columns: minmax(0, 1fr); } }
.shop-leistungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gutter); }
.shop-leistung-karte { display: grid; gap: var(--s-2); padding: var(--s-5); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.shop-leistung-karte:hover { transform: translateY(-2px); }
.shop-leistung-karte h2 { font-size: 20px; }
.shop-zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8, 48px); align-items: start; margin-top: var(--s-4); }
@media (max-width: 1023px) { .shop-zweispaltig { grid-template-columns: minmax(0, 1fr); } }
.shop-anfrage { background: var(--surface); display: grid; gap: var(--s-4); }
.shop-anfrage input[type="file"] { height: auto; padding: var(--s-2); }
.shop-falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shop-adresse { font-style: normal; font: var(--display-weight) var(--t-h3)/1.35 var(--font-display); }
.shop-text { max-width: 72ch; display: grid; gap: var(--s-4); line-height: 1.65; }
.shop-text h2 { font-size: 20px; margin-top: var(--s-4); }
.shop-text ul { padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.shop-a { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.shop-a:hover { text-decoration-color: currentColor; }

/* Fuß */
.shop-footer { margin-top: 0; }
@media (max-width: 639px) { .shop-footer .grid > * { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .shop-footer .grid > .span-4 { grid-column: 1 / -1; } .shop-footer .grid > .span-2 { grid-column: span 6; } }

/* Sprungmarken unter dem festen Kopf */
html { scroll-padding-top: calc(var(--nav) + 16px); }

/* Tabellen als Karten auf dem Handy: Nummer und Preis oben, Merkmale darunter mit Beschriftung */
@media (max-width: 639px) {
  .shop-tabelle-rahmen:has(.shop-tabelle--karten) { overflow: visible; }
  .shop-tabelle--karten thead { display: none; }
  .shop-tabelle--karten tbody tr:not(.shop-tabelle__gruppe) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s-3); padding: var(--s-3); border-bottom: 1px solid var(--line); }
  .shop-tabelle--karten tbody :is(th, td) { padding: 0; border: 0; text-align: left; white-space: normal; }
  .shop-tabelle--karten tbody tr > th[scope="row"] { grid-column: 1; grid-row: 1; }
  .shop-tabelle--karten tbody td.haupt { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
  .shop-tabelle--karten tbody td:not(.haupt) { grid-column: 1 / -1; }
  .shop-tabelle--karten tbody td:empty { display: none; }
  .shop-tabelle--karten td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .shop-tabelle--karten .shop-tabelle__gruppe { display: block; }
  .shop-tabelle--karten .shop-tabelle__gruppe th { display: block; padding: var(--s-3); }
  .shop-tabelle--karten tfoot tr { display: flex; justify-content: space-between; gap: var(--s-3); }
  .shop-tabelle--karten tfoot :is(th, td) { padding: var(--s-3); }
}

/* Konto und Warenkorb im Kopf */
.shop-symbole { display: flex; align-items: center; gap: var(--s-1); flex: none; margin-left: auto; }   /* rechts, auch ohne Suche (Shop geschlossen) */
.shop-symbole a { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); height: 38px; padding: 0 var(--s-3); border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink); }
.shop-symbole a:hover, .shop-symbole a[aria-current] { background: var(--bg); }
.shop-symbole .shop-ic { width: 18px; height: 18px; }
.shop-symbole .shop-zahl { position: absolute; top: 2px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--p-accent); color: var(--p-accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.shop-preise { margin-left: auto; }
@media (max-width: 1023px) { .shop-symbole span:not(.shop-zahl) { display: none; } .shop-symbole a { padding: 0 var(--s-2); } }
@media (max-width: 639px) { .shop-such__bar { gap: var(--s-2); } .shop-symbole a { width: 36px; justify-content: center; } }

/* Formulare und Kontobereich */
.shop-formular { display: grid; gap: var(--s-5); max-width: 520px; margin-inline: auto; width: 100%; }
.shop-formular--breit { max-width: 760px; }
.shop-formular .card, .shop-konto .card { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.shop-wahl { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.shop-wahl legend { margin-bottom: var(--s-2); font-weight: 500; }
.shop-firma { padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface); }
.shop-firma[hidden] { display: none; }
.shop-konto { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8, 48px); align-items: start; }
.shop-konto__nav { position: sticky; top: calc(var(--nav) + var(--s-4)); display: grid; gap: var(--s-3); }
.shop-konto__nav ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.shop-konto__nav a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
.shop-konto__nav a:hover { background: var(--surface); }
.shop-konto__nav a[aria-current] { background: var(--surface); font-weight: 600; }
.shop-konto .rows--spec li { align-items: baseline; }
.shop-adressen { display: grid; gap: var(--gutter); }
.shop-inline { display: inline-block; margin-left: var(--s-3); }
.shop-gefahr summary { cursor: pointer; font-weight: 600; color: var(--fehler); }
.shop-gefahr[open] summary { margin-bottom: var(--s-4); }
@media (max-width: 1023px) { .shop-konto { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } .shop-konto__nav { position: static; } .shop-konto__nav ul { display: flex; flex-wrap: wrap; gap: var(--s-1); } }
@media (max-width: 639px) { .shop-formular .card, .shop-konto .card { padding: var(--s-4); } .form { grid-template-columns: minmax(0, 1fr); } .form > * { grid-column: 1 / -1; } }

/* Warenkorb, Mengen, Merkliste (Phase 4c) */
.shop-menge-zelle { white-space: nowrap; }
.shop-menge { width: 84px; height: 38px; padding: 0 var(--s-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 15px/1 var(--font-text); text-align: right; font-variant-numeric: tabular-nums; vertical-align: middle; }
.shop-menge:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.shop-merken { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: var(--s-1); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--muted); cursor: pointer; vertical-align: middle; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.shop-merken:hover { color: var(--ink); border-color: var(--ink); }
.shop-merken[aria-pressed="true"] { color: var(--p-accent); border-color: currentColor; }
.shop-merken[aria-pressed="true"] .shop-ic { fill: currentColor; }
.shop-merken:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.shop-bestellen { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); padding: var(--s-3) 0; background: var(--bg); border-top: 1px solid var(--line); }
.shop-warenkorb__fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-top: var(--s-4); }
.shop-warenkorb__summe { display: grid; gap: var(--s-2); justify-items: end; text-align: right; }
.shop-warenkorb__summe strong { font: 600 var(--t-h3)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.shop-hinweis { display: block; margin-top: var(--s-1); font-size: var(--t-small); color: var(--muted); }
.shop-hinweis--fehler { color: var(--fehler); }
.shop-knopf-link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--t-small); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shop-knopf-link:hover { color: var(--ink); }
@media (max-width: 639px) {
  .shop-tabelle--karten td.shop-menge-zelle { display: flex; align-items: center; gap: var(--s-2); }
  .shop-bestellen .btn, .shop-warenkorb__fuss .btn { width: 100%; justify-content: center; }
  .shop-warenkorb__summe { justify-items: stretch; text-align: left; width: 100%; }
}

/* Versandarten (Phase 4d) */
.shop-versandinfo { margin-top: var(--s-8, 48px); max-width: 720px; display: grid; gap: var(--s-3); }
.shop-versandarten { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.shop-versandarten li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); }
.shop-versandarten li .shop-hinweis { grid-column: 1 / -1; }
.shop-versandarten li.ist-aus { color: var(--muted); background: var(--surface); }
.shop-versandarten .zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Kasse und Bestellung (Phase 4e) */
.kasse-schritte { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-small); color: var(--muted); }
.kasse-schritte li[aria-current] { color: var(--ink); font-weight: 600; }
.kasse { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); align-items: start; }
.kasse__seite { position: sticky; top: calc(var(--nav) + var(--s-4)); }
.kasse .card, .kasse-pruefen .card, .kasse-abschluss { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.kasse-wahl { margin: 0; display: grid; gap: var(--s-2); }
.kasse-wahl legend { float: left; width: 100%; margin-bottom: var(--s-3); }
.kasse-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; }
.kasse-option:has(input:checked) { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.kasse-option.ist-aus { cursor: not-allowed; color: var(--muted); background: var(--surface); border-color: var(--line); }
.kasse-option input { margin-top: 4px; accent-color: var(--action); }
.kasse-option__text { display: grid; gap: 2px; }
.kasse-option__preis { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.kasse-check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-small); }
.kasse-check input { margin-top: 3px; accent-color: var(--action); flex: none; }
.kasse-lieferung:has(input[name="abweichend"]:not(:checked)) .kasse-lieferadresse { display: none; }
.kasse-kurz { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: var(--t-small); }
.kasse-kurz li, .kasse-kurz__summe { display: flex; justify-content: space-between; gap: var(--s-3); }
.kasse-kurz .zahl { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kasse-kurz__summe { padding-top: var(--s-3); border-top: 1px solid var(--line); margin: 0; }
.kasse-pruefen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.kasse-adresse { font-style: normal; line-height: 1.5; }
.kasse-summen { display: grid; gap: var(--s-2); margin: 0; max-width: 420px; margin-left: auto; }
.kasse-summen div { display: flex; justify-content: space-between; gap: var(--s-4); }
.kasse-summen dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kasse-summen__gesamt { padding-top: var(--s-2); border-top: 1px solid var(--line); font: 600 var(--t-h3)/1.2 var(--font-display); }
.kasse-abschluss { margin-top: var(--s-6); max-width: 720px; margin-left: auto; }
.kasse-karte { margin-top: var(--s-6); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.kasse-karte [hidden] { display: none; }
.kasse-karte__rahmen { height: clamp(260px, 38vw, 420px); overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); }
.kasse-karte__rahmen iframe { display: block; width: 100%; height: 100%; border: 0; }
.kasse-karte__aus { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
@media (max-width: 639px) { .kasse-karte { padding: var(--s-4); } }
.kasse-abschluss__knopf { justify-self: end; }
.kasse-bank { display: grid; gap: var(--s-2); margin: 0; }
.kasse-bank div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-3); }
.kasse-bank dt { color: var(--muted); }
.kasse-bank dd { margin: 0; }
@media (max-width: 1023px) { .kasse { grid-template-columns: minmax(0, 1fr); } .kasse__seite { position: static; order: -1; } .kasse-pruefen { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .kasse .card, .kasse-pruefen .card, .kasse-abschluss { padding: var(--s-4); } .kasse-abschluss__knopf { width: 100%; justify-content: center; } .kasse-bank div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Widerruf (Phase 4f) */
.shop-footer .shop-widerruf-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.shop-muster { margin-top: var(--s-8, 48px); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); }
.shop-muster ul { padding-left: var(--s-5); }

/* Kopf auf schmalen Handys: Suchknopf nie stauchen, Merkliste nur im Kontomenü (Tour 4, 375 px) */
.shop-such__form .btn { flex: none; }
@media (max-width: 479px) {
  .shop-such__bar { gap: 6px; }
  .shop-preise button { padding: 0 6px; font-size: 12px; }
  .shop-symbole a { width: 34px; }
  .shop-symbole .shop-symbol--merkliste { display: none; }
}
/* Konto-Übersicht: lange Werte (Adresse, Zahlung, E-Mail) umbrechen statt die Seite zu verbreitern */
.shop-konto .rows > li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.shop-konto .rows__value { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .shop-konto .rows > li { grid-template-columns: minmax(0, 1fr); }
  .shop-konto .rows__value { grid-column: 1; grid-row: auto; text-align: left; }
}

/* Dunkles Design. Auf Grün steht immer dunkler Text (Kontrast); Liniensymbole in <img> sind schwarz und werden umgekehrt. */
img.ic[src*="/ui-"] { filter: invert(1); }
:focus-visible { outline-color: var(--ink); }
.shop-such__form input:focus-visible, .shop-preise button:focus-visible { outline-color: var(--ink); }
.nav__logo.shop-logo { gap: 12px; }
.nav__logo.shop-logo img { width: auto; }
.nav__logo.shop-logo .shop-logo__marke { height: 42px; }
.nav__logo.shop-logo .shop-logo__name { height: 15px; }
.shop-footer__logo { display: inline-block; }
.shop-footer__logo img { width: 230px; height: auto; display: block; }
.mark[data-mark="haus"] { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='173 70 243 110'%3E%3Cpath d='M256.6 70.5H310.4L226.5 179.5H173.2ZM323.5 81L415.3 179.5H356.3L296.5 115.2Z'/%3E%3C/svg%3E"); background: var(--ink); }
@media (max-width: 639px) {
  .nav__logo.shop-logo { gap: 8px; }
  .nav__logo.shop-logo .shop-logo__marke { height: clamp(26px, 9vw, 34px); }
  .nav__logo.shop-logo .shop-logo__name { height: clamp(9px, 3.2vw, 12px); }
}

/* Handy: Konto und Warenkorb stehen in der Logozeile neben dem Menü, damit die Suche die zweite Zeile bekommt.
   Die Höhe des Namens folgt aus dem Platz: Breite minus Rand (48), Menü (44), Symbole (72), Abstände (14) und Marke (62). */
@media (max-width: 639px) {
  .shop-symbole { position: absolute; top: 0; right: calc(var(--gut) + 48px); height: var(--nav-bar); }
  .shop-symbole a { width: 36px; height: 44px; }
  /* Shop geschlossen: ohne Suche bleibt die zweite Zeile leer, Konto steht schon in der Logozeile */
  .shop--zu { --nav-such: 0px; --nav: var(--nav-bar); }
  .shop--zu .shop-such { border-top: 0; }
  .nav__logo.shop-logo { gap: 6px; min-width: 0; }
  .nav__logo.shop-logo .shop-logo__marke { height: 28px; }
  .nav__logo.shop-logo .shop-logo__name { height: min(12px, calc((100vw - 240px) / 14.35)); }
  .shop-such__form input { padding: 0 var(--s-3); }
  /* iOS zoomt beim Antippen in jedes Feld unter 16 px */
  input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea { font-size: 16px; }
  .shop-main :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }
}
@media (max-width: 359px) { .nav__logo.shop-logo .shop-logo__name { display: none; } .shop-main h1 { font-size: 25px; } }
/* Volle Menüleiste auf kleinen Laptops: für die Telefonnummer ist kein Platz, sie steht im Fußbereich und auf der Startseite */
@media (min-width: 1024px) and (max-width: 1199px) { .shop-nav .nav__actions { display: none; } .shop-nav .nav__bar { gap: var(--s-5); } }
/* Lange Wörter und Preise dürfen Kachel und Textspalte nicht verbreitern */
.shop-seite, .shop-kopf, .shop-text, .shop-kachel { grid-template-columns: minmax(0, 1fr); }
.shop-kachel__fuss { flex-wrap: wrap; }

/* App installieren */
.shop-app[hidden] { display: none !important; }
.nav__item.shop-app .nav__link { border: 0; background: none; color: inherit; font: inherit; font-weight: 500; cursor: pointer; text-align: left; width: 100%; }
.nav.is-open .nav__item.shop-app .nav__link { font-size: 20px; }
@media (min-width: 1024px) { .nav__item.shop-app { display: none; } }
.shop-footer__app { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-2); }
.shop-app-hilfe { width: min(100% - 32px, 420px); padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); }
.shop-app-hilfe::backdrop { background: rgb(0 0 0 / .6); }
.shop-app-hilfe h2 { font-size: var(--t-h3, 22px); margin-bottom: var(--s-3); }
.shop-app-hilfe ol { list-style: decimal; padding-left: var(--s-5); display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.shop-app-hilfe ol[hidden] { display: none; }

/* Vermietung (/mieten) */
.miete-form { display: grid; gap: var(--s-7, 40px); }
.miete-kachel { grid-template-rows: auto auto 1fr auto; }
.miete-kachel a.shop-kachel__name:hover { text-decoration: underline; }
.miete-kachel .shop-kachel__name { overflow-wrap: anywhere; hyphens: auto; }
.miete-preis { font-size: var(--t-small); line-height: 1.4; }
.miete-menge { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.miete-menge input { width: 76px; height: 40px; padding: 0 var(--s-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); text-align: center; font: inherit; }
.miete-anfrage { max-width: 860px; }
.miete-uebergabe { border: 0; padding: 0; }
.miete-uebergabe legend { font-size: var(--t-small); font-weight: 500; margin-bottom: var(--s-2); }
.miete-hinweis { padding: var(--s-3) var(--s-4); border-left: 3px solid var(--action); background: var(--bg); font-size: var(--t-small); }
.miete-foto { width: 100%; max-height: 480px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.miete-foto--ohne { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface); }
.miete-foto--ohne .mark { width: 40px; height: 40px; opacity: .25; }
.miete-preise { width: 100%; border-collapse: collapse; }
.miete-preise th, .miete-preise td { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.miete-preise td { text-align: right; font-weight: 600; white-space: nowrap; }
