/* YT Commerce – Shopseite. Akzentfarbe und Schrift kommen aus /auftritt.css (Einstellungen je Shop → Auftritt). */
:root { --akzent: #3d6274; --schrift: system-ui, sans-serif; --text: #1d1d1b; --leise: #56626a; --linie: #d5dde1; --flaeche: #f1f5f7; --dunkel: #1c2b34; --weiss: #fff; --fehler: #a4161a; --gut: #17663a; --aktion: #b3261e; --breite: 78rem; --rund: .5rem; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--schrift); color: var(--text); background: var(--weiss); line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--akzent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
h1 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.5rem 0 1rem; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--akzent); text-decoration: underline; }
small, .leise { color: var(--leise); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: -999rem; background: var(--weiss); padding: .5rem 1rem; z-index: 30; }
.sprung:focus { left: 1rem; top: 1rem; }

/* Kopf */
.leiste { background: var(--dunkel); color: #e6edf0; font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .45rem max(1.25rem, calc((100vw - var(--breite)) / 2 + 1.25rem)); }
.leiste p { margin: 0; }
.leiste nav { display: flex; gap: 1.25rem; }
.leiste a { color: #e6edf0; text-decoration: none; }
.leiste a:hover { text-decoration: underline; }
.kopf { border-bottom: 1px solid var(--linie); background: var(--weiss); position: relative; z-index: 20; }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: .9rem 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; }
.marke { display: inline-flex; align-items: center; font-size: 1.4rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.marke img { display: block; height: 3.4rem; width: auto; }
.suche { flex: 1 1 18rem; display: flex; gap: .4rem; max-width: 34rem; }
.suche input { flex: 1; min-width: 0; }
.kopf-links { display: flex; gap: 1.5rem; margin-left: auto; }
.kopf-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.kopf-links a:hover { text-decoration: underline; }
.zahl-marke { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 1em; background: var(--akzent); color: var(--weiss); font-size: .8rem; text-align: center; }

.menue { background: var(--dunkel); }
.menue-liste { list-style: none; margin: 0 auto; padding: 0 1.25rem; max-width: var(--breite); display: flex; flex-wrap: wrap; }
.menue-gruppe { position: static; }
.menue-gruppe > a { display: block; padding: .8rem 1.1rem; color: var(--weiss); text-decoration: none; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .875rem; }
.menue-gruppe > a:hover, .menue-gruppe:focus-within > a, .menue-gruppe:hover > a { background: var(--akzent); }
.menue-feld { display: none; position: absolute; left: 0; right: 0; background: var(--weiss); border-bottom: 1px solid var(--linie); box-shadow: 0 .8rem 1.5rem rgb(28 43 52 / .12); }
.menue-gruppe.hat-kinder:hover .menue-feld, .menue-gruppe.hat-kinder:focus-within .menue-feld { display: block; }
.menue-feld > ul { list-style: none; margin: 0 auto; padding: 1.25rem; max-width: var(--breite); columns: 14rem 4; column-gap: 2rem; }
.menue-feld li { break-inside: avoid; padding: .2rem 0; }
.menue-feld > ul > li > a { font-weight: 600; color: var(--text); text-decoration: none; }
.menue-feld ul ul { list-style: none; margin: .1rem 0 .5rem; padding: 0 0 0 .75rem; border-left: 2px solid var(--linie); }
.menue-feld ul ul a { color: var(--leise); text-decoration: none; font-size: .95rem; }
.menue-feld a:hover { color: var(--akzent); text-decoration: underline; }
.menue-mobil { display: none; background: var(--dunkel); color: var(--weiss); }
.menue-mobil > summary { padding: .8rem 1.25rem; font-weight: 600; cursor: pointer; }
.menue-mobil ul { list-style: none; margin: 0; padding: 0 1.25rem .75rem; }
.menue-mobil li { border-top: 1px solid rgb(255 255 255 / .15); }
.menue-mobil a, .menue-mobil details > summary { display: block; padding: .65rem 0; color: var(--weiss); text-decoration: none; cursor: pointer; }
.menue-mobil details ul { padding: 0 0 .5rem 1rem; }

.fachkreis-hinweis { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: .7rem 1.25rem; text-align: center; font-size: .95rem; }
.inhalt { max-width: var(--breite); margin: 0 auto; padding: 2rem 1.25rem 3.5rem; min-height: 55vh; }

/* Fuß */
.fuss { background: var(--dunkel); color: #d9e2e6; font-size: .95rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2.5rem; }
.fuss h2 { font-size: 1rem; margin: 0 0 .6rem; color: var(--weiss); letter-spacing: .04em; text-transform: uppercase; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fuss a { color: #d9e2e6; text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss-zeile { margin: 0; padding: 1rem 1.25rem 1.5rem; text-align: center; font-size: .85rem; color: #b7c4ca; border-top: 1px solid rgb(255 255 255 / .12); }

/* Formulare und Knöpfe */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], select, textarea { padding: .6rem .7rem; border: 1px solid #84929a; border-radius: .35rem; background: var(--weiss); width: 100%; }
.knopf, button { display: inline-block; padding: .65rem 1.25rem; border: 2px solid var(--akzent); border-radius: .35rem; background: var(--akzent); color: var(--weiss); font-weight: 600; text-decoration: none; cursor: pointer; }
.knopf:hover, button:hover { filter: brightness(1.12); }
.knopf.zweit, button.zweit { background: var(--weiss); color: var(--akzent); }
.knopf.klein { padding: .3rem .6rem; font-size: .9rem; }
.knopf.gross { font-size: 1.1rem; padding: .85rem 1.6rem; }
button:disabled { opacity: .6; cursor: progress; }
.formular { display: grid; gap: 1rem; max-width: 36rem; }
.feld { display: grid; gap: .3rem; }
.feld > span { font-weight: 600; font-size: .95rem; }
.feld.schmal { max-width: 12rem; }
.feldreihe { display: flex; gap: 1rem; }
.feldreihe .feld { flex: 1; }
fieldset { border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem 1.1rem 1.2rem; margin: 0; display: grid; gap: .9rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.haken, .wahl { display: flex; gap: .6rem; align-items: flex-start; }
.haken input, .wahl input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--akzent); }
.fehler { color: var(--fehler); border-left: 4px solid var(--fehler); padding: .6rem .9rem; background: #fdf1f1; }
.hinweis { border-left: 4px solid var(--akzent); padding: .6rem .9rem; background: var(--flaeche); }

/* Startseite und Listen */
.buehne { background: linear-gradient(135deg, var(--dunkel), var(--akzent)); color: var(--weiss); border-radius: .9rem; padding: clamp(1.5rem, 4vw, 3.25rem); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: center; }
.buehne p { max-width: 40rem; font-size: 1.1rem; }
.buehne .knopf { background: var(--weiss); border-color: var(--weiss); color: var(--dunkel); }
.buehne .knopf.zweit { background: transparent; color: var(--weiss); }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 0; }
.vorteile { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.vorteile li { padding: .8rem 1rem; border: 1px solid rgb(255 255 255 / .3); border-radius: var(--rund); background: rgb(255 255 255 / .08); }
.vorteile strong { display: block; }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 1rem; font-size: .9rem; color: var(--leise); }
.brotkrumen li + li::before { content: "›"; margin-right: .5rem; }
.brotkrumen a { color: var(--leise); }
.kacheln, .raster, .adressen { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.kacheln { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.kacheln a { display: block; height: 100%; padding: .9rem 1.1rem; border: 1px solid var(--linie); border-radius: var(--rund); font-weight: 600; text-decoration: none; background: var(--weiss); }
.kacheln a:hover { border-color: var(--akzent); background: var(--flaeche); }
.kacheln small { display: block; font-weight: 400; }
.unterkategorien { margin-bottom: 1.5rem; }
.raster { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.25rem; }
.karte { border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem; display: flex; flex-direction: column; gap: .35rem; background: var(--weiss); }
.karte:hover { border-color: var(--akzent); box-shadow: 0 .4rem 1rem rgb(28 43 52 / .08); }
.karte a { text-decoration: none; color: var(--text); display: grid; gap: .25rem; }
.karte-marke { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin: 0; }
.karte-name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.karte a:hover .karte-name { color: var(--akzent); text-decoration: underline; }
.karte-preis { margin: auto 0 0; padding-top: .6rem; font-weight: 700; font-size: 1.15rem; }
.karte-preis small { font-weight: 400; }
.karte-bestand { margin: 0; font-size: .9rem; }
.karte-bestand.da { color: var(--gut); }
.karte-bestand.weg { color: var(--leise); }
.seiten { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.seiten a { padding: .35rem .8rem; border: 1px solid var(--linie); border-radius: .35rem; text-decoration: none; }
.seiten a[aria-current] { background: var(--akzent); border-color: var(--akzent); color: var(--weiss); }
.kategorietext { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }

/* Produkt */
.produkt-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
.kaufen { border: 1px solid var(--linie); border-radius: .6rem; padding: 1.4rem; position: sticky; top: 1rem; display: grid; gap: .6rem; background: var(--weiss); }
.kaufen p { margin: 0; }
.preis { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.text { max-width: 48rem; }
.text table { border-collapse: collapse; }
.text td, .text th { border: 1px solid var(--linie); padding: .3rem .6rem; }
.kurz { font-size: 1.1rem; }
.lesebreite { max-width: 44rem; }
.schmal-seite { max-width: 36rem; }

/* Bilder, Streichpreis */
.karte-bild { display: block; aspect-ratio: 4 / 5; background: var(--weiss); border-radius: .35rem; overflow: hidden; margin-bottom: .5rem; }
.karte-bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.karte-bild.ohne-bild { background: var(--flaeche) linear-gradient(135deg, transparent 49.6%, var(--linie) 49.6%, var(--linie) 50.4%, transparent 50.4%); }
.karte { position: relative; }
.karte .spar-marke { position: absolute; top: .75rem; left: .75rem; z-index: 1; }
.produkt-oben { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); gap: 2.5rem; align-items: start; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .6rem; max-width: 36rem; }
.galerie a { display: block; border: 1px solid var(--linie); border-radius: .4rem; overflow: hidden; background: var(--weiss); }
.galerie a:hover { border-color: var(--akzent); }
.galerie .galerie-haupt { grid-column: 1 / -1; }
.galerie img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: contain; }
.galerie-leer { aspect-ratio: 4 / 3; max-width: 36rem; border-radius: var(--rund); background: var(--flaeche) linear-gradient(135deg, transparent 49.8%, var(--linie) 49.8%, var(--linie) 50.2%, transparent 50.2%); }
.streichpreis { color: var(--leise); font-weight: 400; font-size: .95em; text-decoration-thickness: 1px; }
.ersparnis { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.spar-marke { background: var(--aktion); color: var(--weiss); border-radius: .3rem; padding: .1rem .5rem; font-size: .85rem; font-weight: 600; }
.vertrauen { list-style: none; margin: .5rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--linie); display: grid; gap: .3rem; font-size: .92rem; color: var(--leise); }
.vertrauen li::before { content: "✓ "; color: var(--gut); font-weight: 700; }
.produkt-text { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }

/* Konto, Warenkorb, Kasse */
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.5rem; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: 0 0 1rem; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; overflow-wrap: anywhere; }
address { font-style: normal; }
.adressen { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-bottom: 1rem; }
.adressen li { border: 1px solid var(--linie); border-radius: var(--rund); padding: .9rem 1rem; }
.aufklapp summary { cursor: pointer; font-weight: 600; color: var(--akzent); margin-bottom: 1rem; }
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { font-size: .9rem; color: var(--leise); font-weight: 600; }
.rechts { text-align: right; white-space: nowrap; }
tfoot th { font-weight: 400; text-align: right; }
tfoot .gesamt th, tfoot .gesamt td { font-weight: 700; font-size: 1.15rem; border-bottom: 0; border-top: 2px solid var(--text); }
.mengenform { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mengenform input[type=number] { width: 5rem; }
.codeform { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin: 1.5rem 0; }
.schritte { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0 0 1.5rem; counter-reset: schritt; color: var(--leise); }
.schritte li { counter-increment: schritt; }
.schritte li::before { content: counter(schritt) ". "; }
.schritte [aria-current] { color: var(--text); font-weight: 700; }
.neu-anschrift { display: grid; gap: .9rem; padding: .25rem 0 0 1.7rem; }

@media (max-width: 56rem) {
  .menue { display: none; }
  .menue-mobil { display: block; }
  .leiste p { display: none; }
  .buehne { grid-template-columns: 1fr; }
  .kopf-links { margin-left: 0; }
}
@media (max-width: 46rem) {
  .produkt-spalten, .produkt-oben { grid-template-columns: 1fr; gap: 1.5rem; }
  .kaufen { position: static; }
  .feldreihe { flex-direction: column; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .karte { padding: .75rem; }
  .korb thead { display: none; }
  .korb tr { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
  .korb td, .korb tfoot th { border: 0; padding: .2rem 0; }
  .korb tfoot tr { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: no-preference) { .knopf, .karte, .kacheln a { transition: border-color .15s, filter .15s, box-shadow .15s; } }
@media print { .leiste, .menue, .menue-mobil, .suche, .kopf-links, .fuss, .fachkreis-hinweis { display: none; } }
