/* ==========================================================================
   Cargofield Shop — Design-Hülle im Stil von cargofield.ch
   Hell, Apple-Stil, Orange. Tokens 1:1 aus cargofield-site/src/styles.css.
   ========================================================================== */

:root {
  --orange: #ff6a00;
  --orange-soft: #ff6a003d;
  --ink: #0b0b0d;
  --ink-2: #15161a;
  --ink-3: #1f2127;
  --line: #e7e8ec;
  --line-dark: #2a2c33;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #eef0f3;
  --text: #14161b;
  --muted: #6b7280;
  --muted-light: #aeb5bd;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(16, 18, 24, .04), 0 12px 40px rgba(16, 18, 24, .07);
  --shadow-lg: 0 30px 80px rgba(16, 18, 24, .16);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --danger: #d33;
  --ok: #177a3e;
  /* Aliase, damit konto.html und admin.html unverändert weiterlaufen */
  --accent: var(--orange);
  --accent-ink: #fff;
  --bg: var(--paper);
  --card: var(--paper);
}

/* ── Dunkelmodus (identisch zur Hauptseite, Schlüssel: cf-theme) ── */
[data-theme='dark'] {
  --paper: #0f1013; --paper-2: #16181d; --paper-3: #22242b;
  --text: #e8e9ec; --muted: #9aa1ab; --muted-light: #6b7280;
  --line: #2a2c33;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px; line-height: 1.55;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.15; }
svg { flex: none; }
::selection { background: var(--orange-soft); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hidden { display: none; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 100px; font-size: 14px; font-weight: 600;
}
.skip:focus { left: 16px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 100px;
  background: var(--orange); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.dark, .btn-dark { background: var(--ink); color: #fff; }
.btn.line { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn.line:hover { border-color: var(--orange); color: var(--orange); }
.btn.ghost, .btn-ghost { background: var(--paper-3); color: var(--text); }
.btn.ghost:hover, .btn-ghost:hover { background: #e3e6ea; }
.btn.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Leiste „Teil von cargofield.ch" ---------- */
.sitebar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.sitebar-in { display: flex; align-items: center; gap: 22px; height: 38px; overflow-x: auto; scrollbar-width: none; }
.sitebar-in::-webkit-scrollbar { display: none; }
.sb-back {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.sb-back svg { width: 15px; height: 15px; color: var(--orange); }
.sb-back:hover { color: var(--orange); }
.sb-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.sb-nav a { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s; }
.sb-nav a:hover { color: var(--orange); }

/* ---------- Kopfzeile ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--text); }
.brand .logo { height: 30px; width: auto; display: block; }
.brand-tag {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px;
}

/* Suchfeld (Pill wie die Hero-Suche der Hauptseite) */
.header-search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  max-width: 620px; min-width: 180px; margin: 0 auto;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.header-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); background: var(--paper); }
.header-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 14.5px; color: var(--text); padding: 8px 6px 8px 15px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.header-search .btn { flex: none; }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.hicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--text); transition: border-color .15s, background .15s, color .15s;
}
.hicon svg { width: 20px; height: 20px; }
.hicon:hover { border-color: var(--orange); color: var(--orange); background: var(--paper-2); }

.cart-pill {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 16px; border-radius: 100px; background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 600; transition: transform .2s ease;
}
.cart-pill:hover { transform: translateY(-1px); }
.cart-pill svg { width: 19px; height: 19px; }
.cart-pill .count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px; background: var(--orange);
  color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* ⋮-Menü mit Dunkelmodus und MwSt-Schalter */
.dots-wrap { position: relative; display: inline-flex; }
.dots-btn {
  border: 1px solid var(--line); border-radius: 12px; width: 38px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; color: var(--orange);
  transition: border-color .15s, background .15s;
}
.dots-btn:hover { border-color: var(--orange); background: var(--paper-2); }
.dots-drop {
  position: absolute; top: calc(100% + 8px); right: 0; width: 296px; max-width: calc(100vw - 24px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 70;
}
.dots-drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text); }
.dots-drop a:hover { background: var(--paper-2); color: var(--orange); }
.dots-drop .dd-ico { flex: none; width: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--orange); }
.dots-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dd-label { padding: 6px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.dd-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; }
.dd-row-label { font-size: 13.5px; font-weight: 600; }

.switch {
  width: 42px; height: 24px; border-radius: 100px; background: var(--paper-3); border: 1px solid var(--line);
  position: relative; padding: 0; flex: none; transition: background .15s, border-color .15s;
}
.switch .switch-knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s;
}
.switch.on { background: var(--orange); border-color: var(--orange); }
.switch.on .switch-knob { left: 20px; }
/* Zustand folgt zusätzlich dem Thema, damit der Schalter schon vor dem Skript stimmt */
[data-theme='dark'] #themeBtn.switch { background: var(--orange); border-color: var(--orange); }
[data-theme='dark'] #themeBtn.switch .switch-knob { left: 20px; }

.vseg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex: none; }
.vseg-btn {
  font: inherit; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--text); flex: none;
  transition: border-color .15s, background .15s, color .15s;
}
.vseg-btn:hover { border-color: var(--orange); color: var(--orange); }
.vseg-btn.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Kategorie-Navigation ---------- */
.catbar { border-top: 1px solid var(--line); }
#catNav { display: flex; align-items: center; gap: 4px; height: 46px; overflow-x: auto; scrollbar-width: none; }
#catNav::-webkit-scrollbar { display: none; }
#catNav a {
  padding: 8px 14px; border-radius: 100px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); white-space: nowrap; transition: background .15s, color .15s;
}
#catNav a:hover { background: var(--paper-2); color: var(--text); }
#catNav a.active { background: var(--ink); color: #fff; font-weight: 600; }

/* ---------- Startbereich (aus app.js) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 52px 44px; margin: 28px 0 8px;
  box-shadow: var(--shadow);
}
.hero::after {
  content: ''; position: absolute; z-index: 0; width: 460px; height: 460px; border-radius: 50%;
  filter: blur(120px); background: var(--orange); opacity: .2; top: -220px; right: -140px;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { color: rgba(255, 255, 255, .74); margin-top: 14px; max-width: 60ch; font-size: 16px; }
.hero .btn { margin-top: 24px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-btns .btn { margin-top: 0; }
/* Zweiter Knopf auf dunklem Grund: als Umriss statt in Tintenfarbe */
.hero .btn.dark {
  background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); color: #fff;
}
.hero .btn.dark:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }

/* ---------- Abschnitte und Raster ---------- */
.section-t { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 18px; }
.section-t h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.section-t small { color: var(--muted); font-size: 13.5px; }
.section-t small a { color: var(--orange); font-weight: 600; }
.section-t small a:hover { text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }

/* ---------- Produktkarte ---------- */
.pcard {
  display: flex; flex-direction: column; cursor: pointer; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pimg {
  position: relative;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 14px;
}
.pimg img { max-width: 86%; max-height: 86%; object-fit: contain; }
.ph { font-size: 44px; opacity: .22; line-height: 1; }
.pbody { display: flex; flex-direction: column; gap: 7px; flex: 1; padding: 16px 18px 18px; }
.pcat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pname {
  font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px;
}
.prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.price.anfrage { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.add {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff;
  font-size: 21px; font-weight: 600; line-height: 1; transition: transform .15s ease, box-shadow .15s ease;
}
.add:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(255, 106, 0, .35); }
.add.ghost {
  width: auto; height: 34px; padding: 0 14px; border-radius: 100px;
  background: var(--paper-3); color: var(--text); font-size: 13px; font-weight: 700;
}
.add.ghost:hover { background: var(--orange); color: #fff; transform: none; box-shadow: none; }

/* ---------- Sortiment-Umschalter und Fahrzeugeinrichtungs-Hinweise ---------- */
.sortiment-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 4px; }
.sortiment-tabs button {
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.sortiment-tabs button:hover { border-color: var(--orange); color: var(--orange); }
.sortiment-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Kleines oranges Label auf Artikeln der Fahrzeugeinrichtung */
.teil-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; align-self: flex-start;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; box-shadow: 0 2px 8px rgba(255, 106, 0, .3);
}
.konf-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--orange);
}
.konf-link:hover { text-decoration: underline; }
/* Hinweisblock auf der Detailseite */
.konf-hinweis {
  background: rgba(255, 106, 0, .07); border: 1px solid var(--orange-soft); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 4px 0 22px; font-size: 13.5px; line-height: 1.6; color: var(--text);
}
.konf-hinweis .konf-link { font-size: 13.5px; margin-top: 4px; }
/* Kategorien der Fahrzeugeinrichtung in der Navigationszeile markieren */
#catNav a.nav-teil { color: var(--text); font-weight: 600; }
#catNav a.nav-teil::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); margin-right: 7px; vertical-align: 1px;
}
#catNav a.nav-teil.active { color: #fff; }

/* ---------- Produktdetail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 26px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.back:hover { color: var(--orange); }

.detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin: 18px 0 44px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.dimgs .main {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px;
}
.dimgs .main img { max-width: 92%; max-height: 92%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumbs img {
  width: 60px; height: 60px; object-fit: contain; padding: 5px; cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.thumbs img:hover { border-color: var(--muted-light); }
.thumbs img.on { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.dinfo h1 { font-size: clamp(22px, 2.6vw, 29px); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; margin: 8px 0 6px; }
.dsku { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.dprice { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin: 16px 0 2px; }
.dvat { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.dbuy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 26px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; background: var(--paper-2); overflow: hidden; }
.qty button { width: 42px; height: 48px; font-size: 18px; font-weight: 600; color: var(--text); transition: background .15s, color .15s; }
.qty button:hover { background: var(--paper-3); color: var(--orange); }
.qty input { width: 44px; height: 48px; text-align: center; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); }
.specs { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.specs h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.specs table { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.specs td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 42%; }
.desc { margin-top: 18px; color: var(--text); font-size: 14.5px; line-height: 1.65; white-space: pre-line; }

/* ---------- Warenkorb ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 11, 13, .45); backdrop-filter: blur(2px); z-index: 80; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 90;
  display: flex; flex-direction: column; background: var(--paper);
  box-shadow: -10px 0 60px rgba(11, 13, 18, .28);
}
/* .hidden steht weiter oben im Stylesheet und würde von display:flex überstimmt —
   deshalb hier ausdrücklich (sonst steht der Warenkorb dauerhaft offen). */
.cart-panel.hidden { display: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.cart-head button {
  width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.cart-head button:hover { background: var(--paper-2); color: var(--text); }
#cartBody { flex: 1; overflow-y: auto; padding: 16px 22px 22px; display: flex; flex-direction: column; }
.citem { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.citem img, .ci-ph {
  width: 56px; height: 56px; flex: none; object-fit: contain; padding: 5px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
}
.ci-ph { display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: .3; }
.ci-n { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ci-n small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.ci-q { display: flex; align-items: center; gap: 6px; flex: none; }
.ci-q > span { min-width: 20px; text-align: center; font-size: 13.5px; font-weight: 700; }
.ci-q button {
  width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  font-size: 14px; line-height: 1; color: var(--text); transition: border-color .15s, color .15s;
}
.ci-q button:hover { border-color: var(--orange); color: var(--orange); }
.ci-del, .ci-q .ci-del { color: var(--danger); font-size: 13px; margin-left: 4px; border-color: transparent; }
.ci-q .ci-del:hover { color: var(--danger); border-color: var(--danger); }
.cart-sum { margin-top: auto; padding-top: 18px; }
.cart-sum .row, .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.cart-sum .row.total, .row.total { font-size: 17px; font-weight: 800; letter-spacing: -.02em; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cart-sum .btn { width: 100%; margin-top: 16px; }
.cempty { color: var(--muted); text-align: center; margin: auto 0; padding: 40px 0; font-size: 14px; }

/* ---------- Kasse ---------- */
.checkout {
  max-width: 640px; margin: 34px auto 60px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.checkout h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.checkout label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.checkout input, .checkout textarea {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper-2);
  font-family: inherit; font-size: 14.5px; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s;
}
.checkout textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.checkout input:focus, .checkout textarea:focus {
  outline: none; border-color: var(--orange); background: var(--paper); box-shadow: 0 0 0 4px var(--orange-soft);
}
.co-sum { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; font-size: 14px; }
.co-sum .row { padding: 4px 0; }
.co-sum .row.total { font-weight: 800; font-size: 16px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.fehler { color: var(--danger); font-size: 13.5px; margin-top: 12px; min-height: 18px; }
.done { text-align: center; padding: 80px 20px 100px; }
.done .big { font-size: 54px; line-height: 1; }
.done h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin: 16px 0 10px; }
.done p { color: var(--muted); font-size: 15px; }

/* ---------- Hinweis-Blase ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
}

/* ---------- Fusszeile ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 60px 0 34px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-top p { font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer h5 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(255, 255, 255, .66); transition: color .15s; }
.footer ul a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-dark);
  font-size: 13px; color: var(--muted-light);
}

/* ---------- Dunkelmodus-Feinschliff ---------- */
[data-theme='dark'] .header { background: rgba(15, 16, 19, .8); }
[data-theme='dark'] .pcard,
[data-theme='dark'] .detail,
[data-theme='dark'] .checkout,
[data-theme='dark'] .cart-panel,
[data-theme='dark'] .dots-drop,
[data-theme='dark'] .sortiment-tabs button { background: #16181d; }
[data-theme='dark'] .pimg,
[data-theme='dark'] .dimgs .main,
[data-theme='dark'] .thumbs img,
[data-theme='dark'] .citem img,
[data-theme='dark'] .ci-ph,
[data-theme='dark'] .co-sum { background: #1c1e24; }
[data-theme='dark'] .ci-q button { background: #22242b; }
[data-theme='dark'] .sortiment-tabs button.on { background: var(--paper-3); border-color: var(--paper-3); color: #fff; }
[data-theme='dark'] #catNav a.active { background: var(--paper-3); color: #fff; }
[data-theme='dark'] .cart-pill { background: var(--paper-3); }
[data-theme='dark'] .btn.dark, [data-theme='dark'] .btn-dark { background: var(--paper-3); color: var(--text); }
[data-theme='dark'] .hero .btn.dark { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; }
[data-theme='dark'] .checkout input:focus, [data-theme='dark'] .checkout textarea:focus { background: var(--paper-3); }
[data-theme='dark'] .add.ghost:hover { color: #fff; }
[data-theme='dark'] .toast { background: var(--paper-3); }
[data-theme='dark'] .overlay { background: rgba(0, 0, 0, .6); }

/* ---------- Altbestand: Kopfzeile von konto.html und admin.html ---------- */
.hdr { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.hdr-in { display: flex; align-items: center; gap: 14px; height: 62px; }
.hdr .brand { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.hdr .brand span { color: var(--orange); }
.hdr a:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .brand .logo { height: 27px; }
  .brand-tag { display: none; }
  .cp-txt { display: none; }
  .cart-pill { padding: 0 14px; }
  .s-txt { display: none; }
  .header-search .btn.btn-sm { padding: 0 14px; }
  .hero { padding: 38px 26px; }
  .detail { grid-template-columns: 1fr; gap: 26px; padding: 22px; }
  .sb-nav a:nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wrap { padding: 0 18px; }
  .checkout { padding: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .section-t { margin: 30px 0 14px; }
  .section-t h2 { font-size: 20px; }
}
@media (max-width: 620px) {
  /* Suchfeld bekommt eine eigene Zeile, sobald es in der Kopfzeile eng wird */
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 9px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; padding: 4px; }
  .header-search input { padding: 7px 6px 7px 13px; font-size: 14px; }
  .header-search .btn.btn-sm { height: 36px; }
  #catNav { height: 40px; }
  .cart-panel { width: 100vw; }
  .hero { padding: 30px 22px; }
  .hero p { font-size: 15px; }
  .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
  .dots-drop { position: fixed; top: auto; right: 12px; left: 12px; width: auto; max-width: none; }
}
@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .pimg { aspect-ratio: 4 / 3; }
}
