/* Shop-Baukasten: Grundgestaltung. Farben, Schriften und Rundungen kommen aus /thema.css (Designvorlage). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--schrift); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--farbe); }
h1, h2, h3 { font-family: var(--titel-schrift); font-weight: var(--titel-gewicht); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .2em 0 .5em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 1.4em 0 .6em; }
p { text-wrap: pretty; }
.huelle { width: min(1200px, 100%); margin: 0 auto; padding: 0 16px; }
.schmal { max-width: 760px; }
.abschnitt { padding-top: 24px; padding-bottom: 32px; }
.leise { color: var(--leise); }
.klein { font-size: .88rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.pflicht { color: #c0262d; }

/* Kopf */
.leiste { background: var(--akzent); color: var(--auf-akzent); text-align: center; padding: 8px 16px; font-weight: 600; font-size: .92rem; }
.kopf { background: var(--kopf-bg, var(--bg)); color: var(--kopf-text, var(--text)); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; text-decoration: none; color: inherit; margin-right: auto; }
.logo-bild { height: var(--logo-h); width: auto; }
.logo-text { font: var(--titel-gewicht) 1.4rem var(--titel-schrift); }
.suche-klein input { width: 180px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: var(--rund); background: var(--flaeche); color: var(--text); font: inherit; }
.warenkorb-link { position: relative; color: inherit; display: inline-flex; padding: 8px; }
.warenkorb-zahl { position: absolute; top: 0; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--akzent); color: var(--auf-akzent); font-size: .75rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.menue { display: flex; gap: 4px 20px; flex-wrap: wrap; padding-bottom: 10px; font-weight: 600; }
.menue a { color: inherit; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.menue a:hover, .menue a[aria-current] { border-color: var(--farbe); }
@media (max-width: 640px) {
  .suche-klein { display: none; }
  .menue { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .menue a { white-space: nowrap; }
}

/* Knöpfe und Formulare */
.knopf { display: inline-block; background: var(--farbe); color: var(--auf-farbe); border: 0; border-radius: var(--rund); padding: 11px 22px; font: 700 1rem var(--schrift); text-decoration: none; cursor: pointer; }
.knopf:hover { filter: brightness(1.08); }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf-gross { padding: 14px 28px; font-size: 1.05rem; }
.knopf-voll { width: 100%; }
.knopf-zart { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); }
.feld { display: block; margin: 0 0 14px; font-weight: 600; border: 0; padding: 0; }
.feld small { display: block; font-weight: 400; }
.feld input:not([type=radio]):not([type=checkbox]), .feld select, .feld textarea, .suche-gross input {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--rund);
  background: var(--bg); color: var(--text); font: 400 1rem var(--schrift);
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--farbe); outline-offset: 1px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.haken { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.haken input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.meldung { min-height: 1.4em; font-weight: 600; }
.meldung.fehler, .meldung[data-art=fehler] { color: #c0262d; }
.meldung[data-art=ok] { color: #15803d; }
.hinweis { background: var(--flaeche); border-left: 4px solid var(--akzent); padding: 10px 14px; border-radius: 4px; }
.vorschau-hinweis { background: #fde68a; color: #111; text-align: center; padding: 8px; margin: 0; font-weight: 600; }

/* Startseite */
.banner { position: relative; }
.banner-spur { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.banner-spur::-webkit-scrollbar { display: none; }
.banner-folie { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: var(--banner-h, clamp(280px, 48vw, 520px)); display: flex; align-items: flex-end; background: var(--flaeche); overflow: hidden; }
.banner-folie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-folie:not(.ohne-bild)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,var(--banner-dunkel, .6))); }
.banner-text { position: relative; z-index: 1; padding-top: 32px; padding-bottom: 40px; }
.banner-folie:not(.ohne-bild) .banner-text { color: #fff; }
.banner-text h1, .banner-text h2 { margin: 0 0 .3em; font-size: clamp(1.8rem, 5vw, 3.2rem); max-width: 18ch; }
.banner-text p { font-size: 1.15rem; max-width: 50ch; margin: 0 0 1em; }
.banner-punkte { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.banner-punkte a { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.banner-punkte a[aria-current] { background: #fff; }
.held { padding: 48px 16px 24px; }
.gross { font-size: 1.2rem; color: var(--leise); }
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding-top: 20px; }
.vorteil { background: var(--flaeche); border-radius: var(--rund); padding: 14px 16px; display: flex; flex-direction: column; }
.vorteil span { color: var(--leise); font-size: .92rem; }
.kategorien { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.kategorie-kachel { position: relative; aspect-ratio: 1; border-radius: var(--rund); overflow: hidden; background: var(--flaeche); text-decoration: none; display: flex; align-items: flex-end; }
.kategorie-kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kategorie-kachel:hover img { transform: scale(1.04); }
.kategorie-kachel span { position: relative; width: 100%; padding: 28px 12px 10px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.kategorie-kachel:not(:has(img)) span { color: var(--text); background: none; }
.ueber.mit-bild { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.ueber img { border-radius: var(--rund); }
@media (max-width: 760px) { .ueber.mit-bild { grid-template-columns: 1fr; } }

/* Kacheln */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 16px; }
@media (max-width: 480px) { .raster { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }
.kachel { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.kachel-bild { position: relative; aspect-ratio: var(--kachel-format, 1 / 1); border-radius: var(--rund); overflow: hidden; background: var(--flaeche); display: block; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel-zweit { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.kachel:hover .kachel-zweit { opacity: 1; }
.kachel-ohne-bild { display: block; width: 100%; height: 100%; aspect-ratio: var(--kachel-format, 1 / 1); background: var(--flaeche); }
.kachel-name { font-weight: 600; line-height: 1.35; }
.marke { position: absolute; top: 8px; left: 8px; background: var(--text); color: var(--bg); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.preis { font-weight: 700; }
.streich { color: var(--leise); font-weight: 400; }
.krumen { font-size: .88rem; color: var(--leise); margin-bottom: 4px; }
.krumen a { color: var(--leise); }
.sortierung { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; font-size: .92rem; }
.sortierung a { color: var(--leise); }
.sortierung a[aria-current] { color: var(--text); font-weight: 700; }

/* Produkt */
.produkt-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .produkt-raster { grid-template-columns: 1fr; gap: 20px; } }
.galerie-gross { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--rund); background: var(--flaeche); scrollbar-width: none; }
.galerie-gross img { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; object-fit: contain; }
.galerie-mini { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.galerie-mini a { flex: 0 0 68px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.galerie-mini a[aria-current] { border-color: var(--farbe); }
.galerie-mini img { aspect-ratio: 1; object-fit: cover; }
.produkt-preis { font-size: 1.6rem; margin: 0; }
.kurz { font-size: 1.05rem; }
.wahl { margin-bottom: 16px; }
.wahl legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.gewaehlt { font-weight: 400; color: var(--leise); }
.wahl-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl-wert { position: relative; cursor: pointer; }
.wahl-wert input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wahl-wert span:not(.unsichtbar) { display: inline-block; padding: 8px 14px; border: 1px solid var(--linie); border-radius: var(--rund); font-weight: 500; background: var(--bg); }
.wahl-wert input:checked + span { border-color: var(--farbe); box-shadow: 0 0 0 1px var(--farbe); }
.wahl-wert input:focus-visible + span { outline: 2px solid var(--farbe); outline-offset: 2px; }
.wahl-wert.farbe .tupfer { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--linie); }
.wahl-wert.farbe input:checked + .tupfer { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--farbe); }
.wahl-wert.nicht-da span { opacity: .35; text-decoration: line-through; }
.kauf-zeile { display: flex; gap: 12px; align-items: flex-end; margin-top: 8px; }
.menge { font-weight: 600; font-size: .9rem; }
.menge input { display: block; width: 76px; padding: 12px 10px; border: 1px solid var(--linie); border-radius: var(--rund); font: inherit; background: var(--bg); color: var(--text); }
.kauf-zeile .knopf { flex: 1; }
.upload-status { display: block; font-weight: 400; font-size: .88rem; margin-top: 4px; }
.produkt-text { max-width: 800px; }
.beschreibung table, .rechtstext table, .tabelle { border-collapse: collapse; width: 100%; }
.beschreibung td, .beschreibung th, .rechtstext td, .rechtstext th, .tabelle td, .tabelle th { border: 1px solid var(--linie); padding: 6px 10px; text-align: left; vertical-align: top; }
.anfrage-form { background: var(--flaeche); border-radius: var(--rund); padding: 18px; }
.anfrage-form h2 { margin-top: 0; }

/* Warenkorb und Kasse */
.wk-liste, .positionen { list-style: none; padding: 0; margin: 0 0 16px; }
.wk-liste li, .positionen li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.positionen li { grid-template-columns: 64px 1fr auto; }
.positionen li:not(:has(img)) { grid-template-columns: 1fr auto; }
.wk-liste img, .positionen img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--flaeche); }
.wk-titel { font-weight: 700; color: var(--text); text-decoration: none; }
.wk-optionen { font-size: .88rem; color: var(--leise); }
.wk-aktionen { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.wk-aktionen input { width: 64px; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 8px; font: inherit; background: var(--bg); color: var(--text); }
.link-knopf { background: none; border: 0; color: var(--leise); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
.wk-problem { color: #c0262d; font-size: .9rem; font-weight: 600; }
.summen { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0 0 6px; }
.summen dt { color: var(--leise); }
.summen dd { margin: 0; text-align: right; font-weight: 600; }
.summen .gesamt { font-size: 1.2rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--linie); padding-top: 6px; }
.wk-fuss { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.wk-frei { background: var(--flaeche); border-radius: var(--rund); padding: 8px 12px; font-size: .92rem; }
.kasse-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.kasse-uebersicht { background: var(--flaeche); border-radius: var(--rund); padding: 18px; position: sticky; top: 90px; }
.kasse-uebersicht h2, .kasse-adresse h2 { margin-top: 0; }
@media (max-width: 860px) { .kasse-raster { grid-template-columns: 1fr; } .kasse-uebersicht { position: static; } }
.zusammenfassung { white-space: pre-wrap; background: var(--flaeche); padding: 14px; border-radius: var(--rund); font: .95rem/1.6 var(--schrift); }
.suche-gross { display: flex; gap: 8px; max-width: 560px; margin-bottom: 16px; }
.suche-gross input { margin: 0; }
.gewaehr img { border: 1px solid var(--linie); border-radius: 8px; max-height: 80vh; width: auto; }
.seiten-bild { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--rund); margin-bottom: 16px; }
.eigene-seite, .rechtstext { max-width: 860px; }
.formular { max-width: 560px; }

/* Fuß */
.fuss { margin-top: 48px; background: var(--flaeche); border-top: 1px solid var(--linie); padding: 32px 0 20px; font-size: .94rem; }
.fuss-spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .fuss-spalten { grid-template-columns: 1fr 1fr; } .fuss-spalten > div:first-child { grid-column: 1 / -1; } }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin: 4px 0; }
.fuss a { color: var(--text); }
.fuss-name, .fuss-titel { font-weight: 800; margin: 0 0 8px; }
.fuss-social { display: flex; gap: 12px; flex-wrap: wrap; }
.fuss-hinweis { color: var(--leise); font-size: .85rem; margin-top: 20px; }
.leer { padding: 64px 16px; text-align: center; }

/* „Bald geöffnet“ */
.wartung { min-height: 100vh; display: flex; flex-direction: column; background: var(--flaeche); }
.wartung-box { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; max-width: 640px; margin: 0 auto; }
.wartung-logo { max-height: 120px; width: auto; margin-bottom: 24px; }
.wartung-box p { font-size: 1.15rem; color: var(--leise); }
.wartung-fuss { text-align: center; padding: 16px; font-size: .9rem; }
.wartung-fuss a { color: var(--leise); }

/* Feinschliff aus der Verwaltung (Klassen am body, Werte aus /thema.css) */
.kopf-dunkel .kopf, .kopf-farbe .kopf { border-bottom-color: transparent; }
.kopf-dunkel .suche-klein input, .kopf-farbe .suche-klein input { background: rgba(255,255,255,.14); border-color: transparent; color: var(--kopf-text); }
.kopf-dunkel .suche-klein input::placeholder, .kopf-farbe .suche-klein input::placeholder { color: var(--kopf-text); opacity: .7; }
.kopf-dunkel .menue a:hover, .kopf-dunkel .menue a[aria-current], .kopf-farbe .menue a:hover, .kopf-farbe .menue a[aria-current] { border-color: var(--kopf-text); }
.logo-mitte .kopf-innen { display: grid; grid-template-columns: 1fr auto 1fr; }
.logo-mitte .logo { grid-column: 2; grid-row: 1; margin: 0; justify-self: center; }
.logo-mitte .suche-klein { grid-column: 1; grid-row: 1; }
.logo-mitte .warenkorb-link { grid-column: 3; grid-row: 1; justify-self: end; }
.logo-mitte .menue { justify-content: center; }
.knopf-pille .knopf { border-radius: 999px; }
.knopf-umrandet .knopf:not(.knopf-zart) { background: transparent; color: var(--farbe); box-shadow: inset 0 0 0 2px var(--farbe); }
.knopf-umrandet .knopf:not(.knopf-zart):hover { background: var(--farbe); color: var(--auf-farbe); filter: none; }
.knopf-umrandet .banner-folie:not(.ohne-bild) .knopf { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.knopf-umrandet .banner-folie:not(.ohne-bild) .knopf:hover { background: #fff; color: #111; }
.banner-folie:not(.ohne-bild) .banner-text { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.banner-text-mitte .banner-folie { align-items: center; justify-content: center; }
.banner-text-mitte .banner-text { text-align: center; }
.banner-text-mitte .banner-text h1, .banner-text-mitte .banner-text h2, .banner-text-mitte .banner-text p { margin-left: auto; margin-right: auto; }
.kachel-rahmen .kachel { border: 1px solid var(--linie); border-radius: var(--rund); padding: 10px 10px 12px; }
.kachel-rahmen .kachel-bild { border-radius: calc(var(--rund) * .6); }
.kachel-schatten .kachel { background: var(--bg); border-radius: var(--rund); padding: 10px 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07); transition: transform .15s, box-shadow .15s; }
.kachel-schatten .kachel:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.kachel-schatten .kachel-bild { border-radius: calc(var(--rund) * .6); }
@media (min-width: 900px) {
  .spalten-2 .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spalten-3 .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spalten-4 .raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .kachel-schatten .kachel, .kategorie-kachel img { transition: none; } }
