/* Schubica Shop – Design aus dem Design-System „Schubica“ */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --surface: #ffffff; --surface-alt: #f4f3f1;
  --ink: #1c1c1c; --ink-muted: #5f5f5f;
  --line: #e3e1dd; --line-strong: #8a8a8a;
  --action: #1c1c1c; --on-action: #ffffff; --focus: #0057c8;
  --danger: #b3261e; --success: #1d6f37;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --breite: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.6; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-muted); }
h1, h2, h3 { font-weight: 500; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--action); color: var(--on-action); padding: 10px 16px; }
.sprung:focus { top: 16px; color: var(--on-action); }

/* Buttons */
.btn { font: inherit; font-size: 15px; font-weight: 500; min-height: 48px; padding: 0 32px; border: 1px solid transparent; border-radius: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background-color .15s, border-color .15s; }
.btn-primaer { background: var(--action); color: var(--on-action); border-color: var(--action); }
.btn-primaer:hover { background: var(--ink-muted); border-color: var(--ink-muted); color: var(--on-action); }
.btn-primaer:disabled { background: var(--surface-alt); border-color: var(--surface-alt); color: var(--ink-muted); cursor: wait; }
.btn-block { width: 100%; }
.pfeil { flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; }
.pfeil:hover { border-color: var(--ink); }
.pfeil-hell { width: 64px; height: 112px; border: 0; background: none; color: #555; }
.pfeil-hell:hover { background: none; color: #111; }

/* Kopf */
.kopf { background: rgb(248, 248, 248); position: relative; z-index: 5; }
.kopf-ueber { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; }
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 60px; width: auto; filter: brightness(.55); }
.menue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.menue a { text-decoration: none; }
.menue-warenkorb { position: relative; display: inline-flex; align-items: center; }
.wk-zahl { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.wk-zahl[hidden] { display: none; }
@media (max-width: 760px) { .menue { gap: 6px 18px; font-size: 14px; } .logo img { height: 48px; } }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1200px; overflow: hidden; display: flex; align-items: center; background: var(--surface-alt); }
.hero-spur { position: absolute; inset: 0; display: flex; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero-folie { flex: 0 0 100%; min-width: 0; height: 100%; }
.hero-folie img { width: 100%; height: 100%; object-fit: cover; }
.hero-verlauf { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.3) 0, rgba(0,0,0,0) 140px), linear-gradient(180deg, rgba(255,255,255,.3) 0, rgba(255,255,255,0) 160px), linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 38%, rgba(255,255,255,0) 68%); }
.hero-inhalt { position: relative; padding-top: 120px; padding-bottom: 96px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 520px; }
.hero-text[hidden] { display: none; }
.zeile { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.hero-titel { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
.hero-beschreibung { font-size: 17px; line-height: 28px; color: var(--ink-muted); min-height: 56px; }
.hero-pfeile { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 16px; pointer-events: none; z-index: 2; }
.hero-pfeile .pfeil { pointer-events: auto; }
.hero-zeitleiste { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; gap: 8px; z-index: 2; }
.hero-balken { flex: 1; height: 4px; background: rgba(255,255,255,.45); position: relative; overflow: hidden; }
.hero-balken span { position: absolute; inset: 0 auto 0 0; width: 0; background: #ffffff; }
.hero-balken.ist-fertig span { width: 100%; }
.hero-balken.ist-aktiv span { animation: hero-lauf 6s linear forwards; }
.hero.ist-pausiert .hero-balken.ist-aktiv span { animation-play-state: paused; }
@keyframes hero-lauf { from { width: 0; } to { width: 100%; } }
@media (max-width: 760px) {
  .hero-verlauf { background: linear-gradient(0deg, rgba(0,0,0,.3) 0, rgba(0,0,0,0) 140px), linear-gradient(90deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.25) 100%); }
  .hero-pfeile { top: auto; bottom: 48px; transform: none; }
  .hero-inhalt { padding-bottom: 120px; }
  .hero-titel { min-height: calc(2 * 1.05em); }
  .hero-beschreibung { min-height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-spur { transition: none; }
  .hero-balken.ist-aktiv span { animation: none; width: 100%; }
}

/* Kategorien und Karten */
.kategorie { padding: 64px 0 32px; }
.kategorie:has(+ .faq) { padding-bottom: 96px; }
.kategorie h2 { font-size: 24px; line-height: 32px; letter-spacing: -.01em; margin-bottom: 32px; }
.raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
@media (max-width: 1099px) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 8px; } }
.karte { display: flex; flex-direction: column; gap: 12px; padding-bottom: 45px; background: rgb(248, 248, 248); border-radius: 16px; overflow: hidden; text-decoration: none; }
.karte-bild { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; margin-bottom: 25px; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .3s; }
.karte:hover .karte-bild img { transform: scale(1.03); }
.karte-name { text-align: center; font-weight: 800; letter-spacing: .14em; margin-bottom: -6px; }
.karte-preis { text-align: center; font-variant-numeric: tabular-nums; }

/* Produktseite */
.produkt { padding-top: 32px; padding-bottom: 96px; }
.brotkrumen { font-size: 14px; color: var(--ink-muted); margin-bottom: 32px; }
.brotkrumen a { color: var(--ink-muted); }
.produkt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 64px; align-items: start; }
.galerie { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.galerie-haupt { aspect-ratio: 1 / 1; background: #ffffff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.galerie-haupt { overflow: hidden; }
.galerie-haupt img { width: 100%; height: 100%; object-fit: cover; }
.galerie-leiste { display: flex; align-items: center; gap: 8px; }
.galerie-thumbs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumb { aspect-ratio: 1 / 1; padding: 0; display: grid; place-items: center; background: #ffffff; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.thumb { overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.galerie-leiste .pfeil { border: 0; background: none; }
.galerie-leiste .pfeil:hover { color: var(--ink-muted); }
.thumb[aria-current="true"] { outline: 1px solid var(--ink); outline-offset: 3px; }
.produkt-info { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.produkt-titel { font-size: 32px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; line-height: 1.1; }
.produkt-preis { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.produkt-kurz { color: var(--ink-muted); }
.kauf { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
.wahl { border: 0; margin: 0; padding: 0; }
.wahl legend { font-size: 14px; color: var(--ink-muted); padding: 0; margin-bottom: 12px; }
.wahl legend b, .wahl-fest b { color: var(--ink); font-weight: 500; }
.wahl-fest { font-size: 14px; color: var(--ink-muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; width: 36px; height: 36px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch-farbe { display: block; width: 100%; height: 100%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatch-bunt { background: conic-gradient(#c8150a 0 25%, #f5cd2f 0 50%, #0057c8 0 75%, #00913d 0); }
.swatch input:checked + .swatch-farbe { outline: 1px solid var(--ink); outline-offset: 3px; }
.swatch input:focus-visible + .swatch-farbe { outline: 2px solid var(--focus); outline-offset: 3px; }
.menge-feld { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.menge { display: inline-flex; align-self: flex-start; border: 1px solid var(--line-strong); }
.menge button { width: 44px; height: 44px; border: 0; background: var(--surface); font: inherit; font-size: 18px; cursor: pointer; color: var(--ink); }
.menge input { width: 52px; height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; color: var(--ink); -moz-appearance: textfield; }
.menge input::-webkit-outer-spin-button, .menge input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kauf-meldung { min-height: 24px; font-size: 14px; }
.kauf-meldung a { font-weight: 500; }
.hinweis { font-size: 13px; color: var(--ink-muted); }

/* Warenkorb */
.seite-schmal { max-width: 880px; padding-top: 48px; padding-bottom: 96px; }
.seite-schmal h1 { font-size: 32px; margin-bottom: 32px; }
.wk-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wk-zeile { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.wk-bild { width: 96px; aspect-ratio: 1 / 1; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.wk-bild img { width: 88%; height: 88%; object-fit: contain; }
.wk-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-name { font-weight: 500; text-decoration: none; }
.wk-varianten, .wk-einzel { font-size: 14px; color: var(--ink-muted); }
.wk-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.wk-entfernen { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; }
.wk-summe { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-gesamt { margin-top: 32px; margin-left: auto; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.wk-gesamt div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.wk-gesamt .wk-total { font-size: 18px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.wk-gesamt .btn { margin-top: 16px; }
.wk-fehler { color: var(--danger); font-size: 14px; }
.wk-leer { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
@media (max-width: 559px) {
  .wk-zeile { grid-template-columns: 72px minmax(0, 1fr); }
  .wk-bild { width: 72px; }
  .wk-summe { grid-column: 2; }
}

/* Textseiten */
.text p { max-width: 65ch; margin-bottom: 16px; }
.platzhalter { padding: 16px; background: var(--surface-alt); border: 1px dashed var(--line-strong); }

/* Beschreibung (Produktseite) */
.beschreibung { background: rgb(248, 248, 248); padding: 72px 0; }
.beschreibung-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px 64px; align-items: start; }
.beschreibung h2 { font-size: 24px; line-height: 32px; letter-spacing: -.01em; margin-bottom: 20px; }
.beschreibung h3 { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 32px 0 12px; }
.beschreibung-text p { color: var(--ink-muted); max-width: 65ch; margin-bottom: 14px; }
.beschreibung-text ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.beschreibung-text li { position: relative; padding-left: 20px; color: var(--ink-muted); }
.beschreibung-text li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--ink); }
.beschreibung-daten { background: #ffffff; border-radius: 16px; padding: 8px 24px 16px; }
.beschreibung-daten h3 { margin-top: 20px; }
.beschreibung-daten dl { margin: 0; }
.beschreibung-daten dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.beschreibung-daten dt { color: var(--ink-muted); }
.beschreibung-daten dd { margin: 0; text-align: right; font-weight: 500; }

/* FAQ */
.faq { background: rgb(248, 248, 248); padding: 72px 0; }
.faq h2 { margin-bottom: 32px; }
.faq-liste { max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: #ffffff; border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 20px; color: var(--ink-muted); max-width: 65ch; }

/* Vorteile */
.vorteile-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; padding-top: 56px; padding-bottom: 56px; }
.vorteil { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.vorteil h2 { font-size: 17px; line-height: 24px; }
.vorteil p { color: var(--ink-muted); }

/* Fuß */
.fuss { background: rgb(248, 248, 248); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.fuss-innen img { height: 42px; width: auto; }
.fuss nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; }
.fuss nav a { color: var(--ink-muted); text-decoration: none; }
.fuss nav a:hover { color: var(--ink); }
.fuss-unten { padding-bottom: 32px; font-size: 13px; color: var(--ink-muted); }
