/* AI4Bros Eigenshop – Gestaltung nach Markenblatt (Richtung A „Werkbank“), mobil zuerst.
   Farben und Kontraste: marke/farben-und-schriften.json. Schriften lokal (SIL OFL 1.1). */
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/schriften/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/schriften/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/schriften/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/schriften/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #14212B; --paper: #F7F9FC; --white: #FFFFFF; --slate: #4C5D6B; --teal: #006B5E; --lime: #CBF36A; --error: #B42318;
  --linie: rgba(20, 33, 43, .14); --flaeche: #EEF2F6;
  --ui: "Manrope", system-ui, sans-serif; --text: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 16px; --breite: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--text); }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--ui); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin-top: 1.4em; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fuss :focus-visible, .dunkel :focus-visible, .kopf .korb-zahl:focus-visible { outline-color: var(--lime); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprungmarke { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.sprungmarke:focus { top: 8px; color: var(--paper); }
.breite { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 760px; }
.klein { font-size: 14px; color: var(--slate); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.betrag, .preis, .summen dd { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* Kopf */
.kopf { background: var(--white); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.marke { display: inline-flex; color: var(--ink); padding: 8px 0; }
.wortmarke { width: 140px; height: auto; color: var(--ink); display: block; }
.wortmarke.hell { color: var(--paper); width: 150px; }
.hauptnav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hauptnav a { font-family: var(--ui); font-weight: 600; color: var(--ink); text-decoration: none; padding: 10px 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border-radius: 10px; }
.hauptnav a:hover { text-decoration: underline; text-underline-offset: 6px; color: var(--teal); }
.nur-breit { display: none; }
.icon { width: 22px; height: 22px; }
.korb-text { display: none; }
.korb-zahl { background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.sprachwahl { font-size: 14px; border: 1px solid var(--linie); }
@media (min-width: 720px) {
  .wortmarke { width: 176px; }
  .nur-breit { display: list-item; }
  .korb-text { display: inline; }
  .hauptnav ul { gap: 12px; }
}
.geschlossen-banner { background: var(--ink); color: var(--paper); text-align: center; padding: 10px 20px; font-family: var(--ui); font-weight: 600; }
body.geschlossen .geschlossen-banner { display: block; }

/* Knöpfe */
.knopf { font-family: var(--ui); font-weight: 600; font-size: 16px; line-height: 1.25; min-height: 48px; padding: 12px 22px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.knopf-haupt { background: var(--teal); color: var(--white); }
.knopf-haupt:hover { background: var(--ink); color: var(--white); }
.knopf-rand { background: var(--white); color: var(--ink); border-color: var(--slate); }
.knopf-rand:hover { background: var(--ink); color: var(--white); }
.knopf:disabled { background: var(--flaeche); color: var(--slate); border-color: var(--linie); cursor: not-allowed; }
.knopf-breit { width: 100%; }
.knopf-text { background: none; border: 0; color: var(--teal); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 8px 0; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) { .knopf:active:not(:disabled) { transform: scale(.97); transition: transform 120ms ease-out; } }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Start */
.held { background: var(--white); border-bottom: 1px solid var(--linie); padding: 48px 0 40px; }
.held h1 { max-width: 15ch; }
.lead { font-size: 18px; max-width: 62ch; color: var(--ink); }
.lead-klein { color: var(--slate); }
.hinweis-klein { font-size: 14px; color: var(--slate); margin-top: 16px; }
.abschnitt { margin: 40px auto; }
.karten4 { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .karten4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .karten4 { grid-template-columns: repeat(4, 1fr); } }
.karte { background: var(--white); border-radius: var(--radius); padding: 20px; }
.marker { display: block; width: 28px; height: 6px; border-radius: 3px; background: var(--teal); margin-bottom: 14px; }
.dunkel { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 28px; }
.dunkel h2 { margin-top: 0; }
.dunkel a { color: var(--lime); }
.dunkel a:hover { color: var(--white); }
.pille { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--linie); color: var(--ink); text-decoration: none; font-family: var(--ui); font-weight: 600; margin: 0 6px 8px 0; }
.pille:hover, .pille.aktiv { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Produktraster */
.raster { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .raster { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .raster { grid-template-columns: repeat(4, 1fr); } }
.produkt-karte { display: flex; flex-direction: column; gap: 4px; }
.karte-link { color: var(--ink); text-decoration: none; }
.karte-link:hover .produktname { text-decoration: underline; }
.karte-bild { background: var(--flaeche); border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; margin-bottom: 12px; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.produktname { font-family: var(--text); font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.preis { font-weight: 600; font-size: 22px; margin: 0; }
.preis-liste { font-size: 18px; }
.preis-ab { font-weight: 400; font-size: .8em; color: var(--slate); }
.frueher s { color: var(--slate); font-weight: 400; font-size: .8em; }
.preis-hinweis, .lieferzeit { font-size: 14px; color: var(--slate); margin: 0; }
.leer { background: var(--white); border-radius: var(--radius); padding: 24px; color: var(--slate); }

/* Brotkrumen */
.brot ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 16px; font-size: 14px; color: var(--slate); }
.brot li + li::before { content: "/"; margin-right: 6px; color: var(--slate); }

/* Produktseite */
.produkt-oben { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 900px) { .produkt-oben { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.galerie-gross { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.galerie-gross img { width: 100%; height: 100%; object-fit: cover; }
.galerie-leiste { list-style: none; display: flex; gap: 10px; padding: 0; margin: 12px 0 0; }
.galerie-leiste a { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--flaeche); }
.galerie-leiste a[aria-current="true"] { border-color: var(--ink); }
.galerie-leiste img { width: 100%; height: 100%; object-fit: cover; }
.kaufbox h1 { margin-top: 4px; }
.nutzen { margin: 20px 0; }
.nutzen ul { padding-left: 1.2em; }
.nutzen li { margin: 4px 0; }
.kaufen { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--linie); }
.kauf-zeile { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.kauf-zeile .knopf { flex: 1 1 200px; }
.feld-menge input { width: 88px; }
.lieferzeit-knopf { margin-top: 12px; color: var(--ink); font-weight: 600; }
.nicht-verfuegbar { color: var(--error); font-weight: 600; margin: 8px 0 0; }
.meldung { margin: 10px 0 0; min-height: 1.5em; }
.produkt-text { max-width: 820px; }
.produkt-text h2 { margin-top: 36px; }
.fakten { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; }
.fakten th, .fakten td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.fakten th { width: 38%; font-weight: 600; }
.fakten tr:last-child th, .fakten tr:last-child td { border-bottom: 0; }
.sicher { background: var(--white); border-radius: 12px; padding: 16px; margin: 0; }
.sicher dt { font-weight: 600; }
.sicher dd { margin: 0 0 12px; }
.frage { background: var(--white); border: 1px solid var(--linie); border-radius: 12px; margin: 8px 0; }
.frage summary { font-family: var(--ui); font-weight: 600; padding: 14px 16px; cursor: pointer; min-height: 48px; }
.frage p { padding: 0 16px 14px; margin: 0; }

/* Formulare */
.feld { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input:not([type]), select {
  font: inherit; min-height: 48px; padding: 10px 12px; border: 1px solid var(--slate); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
input[aria-invalid="true"] { border: 2px solid var(--error); }
.feld-hilfe { font-size: 14px; color: var(--slate); margin: 0; }
.feld-fehler { font-size: 14px; color: var(--error); margin: 0; font-weight: 600; }
.feld-fehler::before { content: "! "; }
.pflicht { color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-family: var(--ui); font-weight: 700; font-size: 20px; margin-bottom: 12px; padding: 0; }
.zwei { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .zwei { grid-template-columns: 1fr 1fr; } }
.feld-check { flex-direction: row; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.feld-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); }
.feld-check label { flex: 1; font-weight: 400; }
.feld-check .feld-fehler { flex-basis: 100%; }
.zahlarten { display: grid; gap: 10px; }
.zahlart { position: relative; }
.zahlart input { position: absolute; left: 16px; top: 20px; width: 20px; height: 20px; accent-color: var(--teal); }
.zahlart label { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 16px 48px; background: var(--white); border: 1px solid var(--linie); border-radius: 12px; cursor: pointer; }
.zahlart input:checked + label { border: 2px solid var(--teal); padding: 15px 15px 15px 47px; }
.zahlart input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.zahlart-name { font-family: var(--ui); font-weight: 700; }
.zahlart-text { font-weight: 400; font-size: 14px; color: var(--slate); }
.fehlerkasten { border: 2px solid var(--error); background: var(--white); color: var(--error); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.hinweis { background: var(--white); border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 8px; }

/* Warenkorb, Kasse, Bestellung */
.kasse-spalten { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .kasse-spalten { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .kasse-uebersicht { position: sticky; top: 16px; } }
.kasse-uebersicht { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--linie); }
.kasse-uebersicht h2 { margin-top: 0; font-size: 22px; }
.zusammenfassung { background: var(--white); border-radius: var(--radius); padding: 4px 0; }
.warenkorb .zusammenfassung { padding: 8px 20px 16px; border: 1px solid var(--linie); margin-bottom: 20px; }
.korb-liste { list-style: none; margin: 0; padding: 0; }
.korb-zeile { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linie); align-items: start; }
.korb-zeile img, .korb-bild-leer { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--flaeche); }
.korb-info p { margin: 2px 0; }
.korb-info .produktname { font-size: 16px; }
.korb-summe { font-weight: 600; margin: 0; }
.korb-steuerung { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.korb-steuerung label { font-size: 14px; }
.korb-steuerung input { width: 80px; min-height: 44px; }
.summen { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 14px 0 6px; }
.summen dd { margin: 0; text-align: right; }
.summen .gesamt { font-weight: 700; font-size: 19px; font-family: var(--ui); border-top: 1px solid var(--linie); padding-top: 10px; }
.eckdaten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; background: var(--white); border-radius: 12px; padding: 16px; }
.eckdaten dt { font-weight: 600; }
.eckdaten dd { margin: 0; }
.bankbox { margin: 20px 0; border: 2px solid var(--teal); border-radius: var(--radius); padding: 16px; background: var(--white); }
.bankbox .eckdaten { padding: 0; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.laedt { color: var(--slate); }

/* Rechtstexte */
.recht h2 { font-size: 22px; }

/* Demnächst */
.demnaechst-box { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; padding: 40px 20px; }
.demnaechst-box .wortmarke.gross { width: min(320px, 80vw); }
.demnaechst-box h1 { font-size: clamp(24px, 3vw, 34px); max-width: 22ch; }

/* Fuß */
.fuss { background: var(--ink); color: var(--paper); margin-top: 56px; padding: 36px 0 20px; }
.fuss a { color: var(--paper); text-decoration: underline; }
.fuss a:hover { color: var(--lime); }
.fuss-innen { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fuss-innen { grid-template-columns: 1.2fr 1fr 1fr; } }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fuss li a { display: inline-block; padding: 6px 0; }
.fuss-zeile { font-size: 14px; border-top: 1px solid rgba(247, 249, 252, .2); padding-top: 16px; margin-top: 24px; }
body.demnaechst .fuss { margin-top: 0; }
body.demnaechst .fuss-zeile { margin-top: 0; border-top: 0; padding-top: 0; }

/* Nachbesserungen nach Sichtprüfung 12.11.2026 */
.haupt { padding-top: 24px; }
.haupt-produkt, .haupt-shop { padding-top: 0; }
.haupt-start { padding-top: 0; }
.summen { column-gap: 0; }
.summen dd { padding-left: 16px; }
.knopf-text { text-align: left; }
.korb-steuerung { justify-content: flex-start; }
