/* ---------- Farben und Schriften (Dunkel = Standard, Hell über data-theme="light") ---------- */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #1f1f1f;
  --ink-rgb: 31, 31, 31;
  --ink-raised: #292929;
  --ink-high: #333333;
  --paper: #ffffff;
  --muted: #a1a1a1;
  --line: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.1);
  --star-off: rgba(255, 255, 255, 0.2);
  --bar-bg: rgba(41, 41, 41, 0.7);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --danger: #ff9b9b;
  --toast-error: #ffb4b4;
  --logo-bg: transparent;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f5f5f7;
  --ink-rgb: 245, 245, 247;
  --ink-raised: #ffffff;
  --ink-high: #e8e8ed;
  --paper: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --hover: rgba(0, 0, 0, 0.06);
  --star-off: rgba(0, 0, 0, 0.18);
  --bar-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --danger: #c62828;
  --toast-error: #ffb4b4;
  --logo-bg: #1f1f1f; /* das Chrom-Logo braucht einen dunklen Untergrund */
}

:root {
  --font-display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-pill: 999px;
  --gutter: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Kopfzeile: schwebende Leiste, bleibt beim Scrollen oben ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px clamp(12px, 2vw, 28px) 0;
  pointer-events: none; /* nur die Leiste selbst fängt Klicks ab */
}

.bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bar-bg);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--logo-bg);
  padding: 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
}

.nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav a {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font: 500 1.02rem var(--font-display);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--paper); background: var(--hover); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }

.bar-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.lang-switch button {
  padding: 6px 11px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: 600 0.8rem var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover { color: var(--paper); }
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.icon-btn,
.login-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn:hover,
.login-icon:hover { background: var(--hover); }
.icon-btn svg, .login-icon svg { display: block; }

.wishlist-link { position: relative; }
.wishlist-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  padding: 1px 4px;
  border-radius: var(--radius-pill);
  background: #ff5c7a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

/* ---------- Konto ---------- */

.account { display: flex; align-items: center; gap: 8px; }
.account-menu-wrap { position: relative; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 12px 3px 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  font: 500 0.95rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

button.chip:hover, button.chip[aria-expanded="true"] { background: var(--hover); border-color: var(--paper); }
.chip-caret { transition: transform 0.2s; opacity: 0.7; }
.chip[aria-expanded="true"] .chip-caret { transform: rotate(180deg); }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink-high); }

/* Konto-Menü: öffnet sich unter dem eigenen Namen/Profilbild - bündelt Rabatt, Meine Bestellungen usw. */
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-raised);
  box-shadow: var(--shadow);
}

/* "display: grid" oben gilt für jedes Element mit dieser Klasse - auch für eines mit dem
   hidden-Attribut, das sich sonst dagegen nicht durchsetzt. Deshalb hier ausdrücklich verstecken. */
.account-menu[hidden] { display: none; }

.account-menu a, .account-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  font: 500 0.95rem var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.account-menu a:hover, .account-menu button:hover { background: var(--hover); }
.account-menu a[aria-current="page"] { color: var(--muted); pointer-events: none; }
.account-menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s;
}

button.btn { border: 0; font-family: var(--font-body); cursor: pointer; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: scale(1.04); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--paper); background: var(--hover); }
.btn-outline { border: 1px solid var(--line); color: var(--paper); }
.btn-outline:hover { background: var(--hover); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
button.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Startseite ---------- */

/* Das Banner ist der Hintergrund des Hero-Bereichs über die volle Breite und löst sich unten in
   die Seitenfarbe auf. Die Überschrift steht darunter, damit sie das Logo nicht verdeckt.
   40vw ist das Seitenverhältnis des Banners (1983:793), bei sehr breiten Fenstern begrenzt. */

.hero {
  --hero-h: min(40vw, 700px);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  margin-top: -76px; /* das Banner reicht hinter die schwebende Kopfzeile */
  padding: calc(var(--hero-h) + 28px) max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(40px, 7vw, 88px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--hero-h);
}

.hero::before {
  z-index: -2;
  background: url("assets/banner.webp") center / cover no-repeat, #000;
  animation: hero-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero::after {
  z-index: -1;
  background: linear-gradient(to bottom, rgba(var(--ink-rgb), 0) 50%, var(--ink) 100%);
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 22ch;
  text-wrap: balance;
}

.lead {
  margin: 24px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 10vw, 120px);
}

.area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 230px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--ink-raised);
  border: 1px solid var(--line);
  transition: transform 0.25s, background 0.25s;
}

.area:hover { transform: translateY(-4px); background: var(--ink-high); }
.area h2 { font-size: 1.8rem; }
.area p { margin: 0; max-width: 30ch; color: var(--muted); }

/* ---------- Unterseiten ---------- */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(72px, 10vw, 120px);
  min-height: 60vh;
}

.page h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.muted { color: var(--muted); margin: 12px 0 0; }

/* Kleidung */

.shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.shop-search {
  flex: 1 1 240px;
  max-width: 360px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--ink-raised);
  color: var(--paper);
  font: inherit;
  line-height: 42px;
}
.shop-search::placeholder { color: var(--muted); }

.shop-sort {
  flex: none;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--ink-raised);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.table-search {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 14px 0 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--ink-raised);
  color: var(--paper);
  font: inherit;
}
.table-search::placeholder { color: var(--muted); }
.chip-btn-fav[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.fav-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(var(--ink-rgb), 0.55);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn[aria-pressed="true"] { color: #ff5c7a; border-color: #ff5c7a; }
.fav-toggle[aria-pressed="true"] { color: #ff5c7a; border-color: #ff5c7a; }

.shop-filter { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: 500 0.9rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.chip-btn:hover { color: var(--paper); }
.chip-btn[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.chip-count { font-size: 0.8em; opacity: 0.6; font-variant-numeric: tabular-nums; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.item {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.item[hidden] { display: none; }

.media {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--hover), rgba(0, 0, 0, 0) 55%),
    var(--ink-high);
}

.meta { display: grid; gap: 4px; padding: 16px 20px 18px; }
.meta h3 { font-size: 1.1rem; }
.meta .price { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.meta .note-line { color: var(--muted); font-size: 0.9rem; }
.meta-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.media-btn { position: absolute; left: 14px; bottom: 14px; z-index: 1; }
.media-open { cursor: pointer; }
.media-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

.stage-empty {
  display: grid;
  place-items: center;
  margin-top: 40px;
  min-height: 360px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

/* Bewertungen */

.reviews-top { display: grid; gap: 4px; margin-top: 36px; }
.reviews-average { margin: 0; font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.reviews-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; }

.stars { display: inline-flex; gap: 2px; white-space: nowrap; }
.star { color: var(--star-off); }
.star.on { color: var(--paper); }
.avg { font-variant-numeric: tabular-nums; }

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  border-radius: var(--radius-md);
}

.review p { margin: 0; }
.review-top, .featured-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-top { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.review-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.featured-top .review-name { font-size: 1.2rem; }
.review-stars { font-size: 1.15rem; }
.review-text { flex: 1; font-size: 1.05rem; overflow-wrap: anywhere; }
.review-author { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  flex-wrap: wrap;
}

.tab {
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: 500 0.9rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab:hover { color: var(--paper); }
.tab[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* Rechtliche Seiten */

.legal { max-width: 760px; }
.legal h2 { margin-top: 44px; font-size: 1.4rem; }
.legal p, .legal li { color: var(--muted); max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal .rule-points { margin-top: 8px; }
.legal .note {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-raised);
  color: var(--muted);
}

/* Fakten-Listen (Impressum, Admin) */

.facts { max-width: 560px; margin: 40px 0 0; }

.facts div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.facts-wide { max-width: 720px; }
.facts-wide div { grid-template-columns: 1fr auto; }
.facts-wide dd { font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
}

.footer-brand p { margin: 16px 0 0; max-width: 28ch; }

.footer-col h2 { margin-bottom: 18px; font-size: 0.95rem; font-weight: 600; color: var(--paper); letter-spacing: 0; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.footer-links a:hover, .legal-links a:hover { color: var(--paper); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Admin ---------- */

.subnav {
  display: flex;
  gap: 4px;
  margin: 32px 0 8px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.subnav[hidden] { display: none; }

.subnav a {
  flex: none;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.subnav a:hover { color: var(--paper); }
.subnav a[aria-current="page"] { background: var(--paper); color: var(--ink); }

.admin #admin-root { margin-top: 32px; display: grid; gap: 40px; justify-items: start; }
.admin #admin-root > * { max-width: 100%; }

.state {
  display: grid;
  justify-items: start;
  gap: 20px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 1.1rem;
}

.admin .state { margin-top: 0; }
.state p { margin: 0; max-width: 46ch; }

.block { width: 100%; }
.block h2, .catalog h2 { font-size: 1.35rem; margin-bottom: 4px; }
.block .facts-wide { margin-top: 12px; }

.table-wrap { width: 100%; overflow-x: auto; margin-top: 12px; }

.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.table th, .table td {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th { color: var(--muted); font-weight: 500; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.table .id { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.th-sort:hover { color: var(--paper); }
.num .th-sort { flex-direction: row-reverse; }
.sort-arrow { font-size: 0.7em; opacity: 0.4; }
th[aria-sort="ascending"] .th-sort,
th[aria-sort="descending"] .th-sort { color: var(--paper); }
th[aria-sort="ascending"] .sort-arrow,
th[aria-sort="descending"] .sort-arrow { opacity: 1; }

.bars { display: grid; gap: 10px; margin-top: 16px; max-width: 720px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 14px; }
.bar-label { color: var(--muted); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }

.bar-track {
  display: block;
  min-width: 80px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--ink-high);
  overflow: hidden;
}

.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--paper); }

/* Formulare */

.split { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; width: 100%; }
.forms { display: grid; gap: 36px; }
.form { display: grid; gap: 16px; }
.form h3, .cat h3 { font-size: 1.1rem; }
.form .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 0.9rem; }

input, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-raised);
  color: var(--paper);
  font: inherit;
}

input::placeholder { color: var(--muted); }
select option { background: var(--ink-raised); color: var(--paper); }
.form-error { margin: 0; min-height: 1.4em; color: var(--danger); font-size: 0.92rem; }

.catalog { display: grid; gap: 28px; }
.cat { display: grid; gap: 4px; }

.prod {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.prod-price { font-variant-numeric: tabular-nums; color: var(--muted); }
.prod-actions { display: flex; gap: 6px; }
.prod input { padding: 8px 12px; }
.prod > .form-error { grid-column: 1 / -1; min-height: 0; }

/* Admin: Bewertungen */

.reviews-list { display: grid; margin-top: 12px; }
.review-row { padding: 16px 0; border-top: 1px solid var(--line); }
.review-row p { margin: 0; }
.review-head { color: var(--muted); font-size: 0.92rem; }
.review-body { margin-top: 6px; max-width: 70ch; }

.tag {
  margin-left: 10px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
}

/* Admin: Logs */

.log-controls, .log-list { width: 100%; }
.log-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.log-filters select, .log-filters input { width: auto; min-width: 190px; }
.log-filters input[type="date"] { min-width: 0; }
.log-filters .btn { align-self: end; margin-bottom: 4px; }
.inline-field { display: grid; gap: 4px; color: var(--muted); font-size: 0.85rem; }
.log-list { display: grid; margin-top: 8px; }

.log-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.log-meta { display: grid; gap: 8px; justify-items: start; align-content: start; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tag-plain { margin-left: 0; }
.tag-paid { margin-left: 0; border-color: rgba(61, 220, 132, 0.4); color: #3ddc84; }
.tag-pending { margin-left: 0; color: var(--muted); }
.tag-cancelled { margin-left: 0; border-color: var(--danger); color: var(--danger); }

/* Ankündigungen */
.announce-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.announce-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink-raised); }
.announce-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.announce-avatar { width: 28px; height: 28px; border-radius: 50%; }
.announce-author { font-weight: 600; }
.announce-time { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.announce-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.log-title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.log-text { margin: 6px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.log-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; margin: 12px 0 0; }
.log-fields div { display: grid; gap: 2px; }
.log-fields dt { color: var(--muted); font-size: 0.8rem; }
.log-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 3D-Ansicht (öffentlich und Admin-Vorschau) */

.viewer-card {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  overflow: hidden;
}

.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.viewer-head h2 { font-size: 1.25rem; }
.viewer-actions { display: flex; gap: 8px; }

.viewer-stage {
  position: relative;
  height: clamp(360px, 62vh, 640px);
  background: radial-gradient(ellipse at 50% 40%, var(--hover), rgba(0, 0, 0, 0) 65%); /* durchsichtig: der Hintergrund scheint durch */
}

.viewer-stage-small { height: 380px; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.viewer-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer-canvas:active { cursor: grabbing; }

.viewer-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.viewer-status[hidden] { display: none; }
.viewer-main { min-width: 0; }
.viewer-panel { display: grid; align-content: start; gap: 22px; padding: 22px; min-width: 0; }
.viewer-group h3 { margin-bottom: 10px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.viewer-details { margin: 0; max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.viewer-hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.viewer-holder { min-width: 0; }

.viewer-info { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.viewer-info div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); }
.viewer-info div:first-child { border-top: 0; }
.viewer-info dt { color: var(--muted); }
.viewer-info dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Layout "side": Ansicht links, Details und Schaltflächen rechts daneben */
.viewer-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
.viewer-side .viewer-panel { border-left: 1px solid var(--line); }
.viewer-side .viewer-main { display: flex; flex-direction: column; }
.viewer-side .viewer-stage { flex: 1; height: auto; min-height: clamp(360px, 62vh, 640px); }

/* Layout "stacked" (Vorschau-Fenster bei Kleidung): Angaben unter der Ansicht */
.viewer-stacked { margin-top: 0; border: 0; background: transparent; border-radius: 0; }
.viewer-stacked .viewer-stage { height: clamp(300px, 52vh, 520px); }
.viewer-stacked .viewer-panel { padding: 18px 4px 4px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .viewer-side { grid-template-columns: 1fr; }
  .viewer-side .viewer-panel { border-left: 0; border-top: 1px solid var(--line); }
  .viewer-stage { height: clamp(300px, 55vh, 480px); }
}

.dialog.dialog-wide { width: min(980px, calc(100vw - 32px)); max-width: none; }
.dialog-wide .viewer-head { padding: 0 0 14px; }

/* Admin: 3D-Assets */

.asset-list { display: grid; gap: 6px; margin-top: 10px; }

.asset-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: 500 0.95rem var(--font-body);
  text-align: left;
  cursor: pointer;
}

.asset-pick:hover { color: var(--paper); }
.asset-pick[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.asset-pick .tag { margin-left: 0; color: inherit; }
.asset-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.asset-model-textures { padding-top: 8px; }
.asset-model-textures h4 { margin: 8px 0 2px; font-size: 0.95rem; }

.asset-editor { display: grid; gap: 40px; min-width: 0; }
.asset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.asset-row input[type="text"] { width: auto; flex: 1 1 200px; }
.asset-label { min-width: 120px; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.form .row-actions { margin-left: 0; }
.muted-inline { color: var(--muted); font-size: 0.9rem; }
.asset-variant { margin-top: 14px; padding: 6px 18px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.asset-variant .asset-row:first-child { border-top: 0; }
.tex-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-raised);
  color: var(--paper);
  font: inherit;
  resize: vertical;
}

/* Bewertungen: Kopfbereich, wechselnde Vorschau und durchlaufendes Band */

.reviews-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.reviews-hero-copy { text-align: center; }
.reviews-hero-copy h1 { max-width: none; margin-inline: auto; text-wrap: balance; }
.reviews-hero-copy .lead { margin-inline: auto; }

.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 0; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat { display: grid; flex: 1 1 0; gap: 4px; align-content: start; justify-items: center; padding: 0 28px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 0.95rem; }
.live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px var(--hover); }
.reviews-hero-copy .bars { margin-top: 28px; }

/* Die Vorschau-Karte steht leicht gedreht vor zwei weiteren Karten, die dahinter gestapelt sind.
   Ein Klick auf eine der hinteren Karten holt die nächste Bewertung nach vorn. */
.reviews-hero-side { perspective: 1600px; }

.featured-stack {
  --step: 9px;
  position: relative;
  margin: 0 calc(var(--step) * var(--n, 2) + 16px) calc(var(--step) * var(--n, 2) + 16px) 0;
  transform: rotateY(-9deg) rotateX(3deg);
  transform-style: preserve-3d;
}

.featured {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  box-shadow: var(--shadow);
}

.featured-layer {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}

.featured-layer {
  --shift: calc(var(--d) * var(--step));
  transform: translate3d(var(--shift), var(--shift), calc(var(--d) * -22px));
  opacity: calc(1 - var(--d) * 0.1);
}
.featured-layer:hover { transform: translate3d(calc(var(--shift) + 8px), calc(var(--shift) + 8px), calc(var(--d) * -22px)); border-color: var(--paper); }

.featured-body { display: flex; flex: 1; flex-direction: column; gap: 18px; transition: opacity 0.35s; }
.featured-body.fading { opacity: 0; }
.featured-body p { margin: 0; }
.featured-stars { font-size: 1.3rem; }
.featured-text { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; overflow-wrap: anywhere; }
.featured-meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.featured-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--star-off); cursor: pointer; }
.dot[aria-current="true"] { background: var(--paper); }

.marquee-section { margin-top: clamp(56px, 8vw, 96px); }

.marquee {
  margin-top: 20px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y; /* waagerechtes Wischen übernimmt die Seite selbst (Ziehen), senkrecht scrollt die Seite */
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.marquee.dragging { cursor: grabbing; }
.marquee-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.marquee .review { flex: none; width: 360px; min-height: 210px; }
.marquee .review-text { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.marquee .review-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .reviews-hero { grid-template-columns: 1fr; }
  .featured-stack { --step: 5px; transform: rotateY(-5deg) rotateX(2deg); }
  .marquee .review { width: 300px; }
  .stat { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-body { transition: none; }
}

/* Bestätigungsdialog und Hinweise */

.dialog {
  max-width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-raised);
  color: var(--paper);
}

.dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog h2 { font-size: 1.3rem; margin-bottom: 8px; }
.dialog p { margin: 0; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow);
}

.toast[hidden] { display: none; }
.toast-error { background: var(--toast-error); color: #1f1f1f; }

.notice {
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-raised);
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 1080px) {
  /* Die Navigation wandert in eine zweite Zeile der Leiste */
  .bar { flex-wrap: wrap; border-radius: 28px; row-gap: 6px; }
  .bar-tools { margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .hero { margin-top: 12px; } /* zweizeilige Leiste: das Banner beginnt darunter, nichts wird verdeckt */
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 90px 1fr 36px; }
  .areas { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .chip-name { display: none; }
  .chip { padding-right: 3px; }
  .facts div { grid-template-columns: 100px 1fr; }
  .log-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .btn, .nav a, .area, body { transition: none; }
}

.publish-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink-raised); }
.publish-bar p { margin: 0; color: var(--muted); }
.publish-bar.is-live { border-color: var(--paper); }
.publish-bar.is-live p { color: var(--paper); }
.tex-thumb-wide { width: 96px; height: 72px; }
.admin-hint { margin: 20px 0 0; }

/* Freebies */

.gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-raised);
}

.gate h2 { font-size: 1.15rem; }
.gate p { margin: 6px 0 0; max-width: 60ch; color: var(--muted); }

.media-photo { object-fit: cover; }
.freebie .meta { align-content: start; gap: 10px; }
.freebie-details { margin: 0; color: var(--muted); font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.file-name { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; font-size: 0.95rem; }
.file-size { margin-right: auto; }
.file-size { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-disabled { opacity: 0.5; cursor: not-allowed; }

/* 3D-Ansicht im Layout "side": Titel und Schaltflächen stehen im rechten Bereich */
.viewer-panel .viewer-head { flex-wrap: wrap; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.viewer-panel .viewer-actions { flex-wrap: wrap; }

/* Große Vorschau im Fenster: links die Ansicht, rechts alle Angaben */
.dialog.dialog-wide { width: min(1180px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.dialog-wide .viewer-card { margin: 0; border: 0; border-radius: 0; background: transparent; }
.dialog-wide .viewer-side { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.dialog-wide .viewer-stage { height: min(74vh, 660px); }
.dialog-wide .viewer-panel { max-height: min(74vh, 660px); overflow-y: auto; }
@media (max-width: 860px) {
  .dialog-wide .viewer-side { grid-template-columns: 1fr; }
  .dialog-wide .viewer-stage { height: 50vh; }
  .dialog-wide .viewer-panel { max-height: none; }
  .dialog.dialog-wide { max-height: calc(100vh - 24px); overflow-y: auto; }
}

/* Admin: Winkel des Vorschaubilds, Maps am Modell */
.angle-row { display: flex; align-items: center; gap: 14px; }
.angle-row input[type="range"] { flex: 1; accent-color: var(--paper); }
.angle-row output { min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.thumb-preview { display: block; width: 240px; max-width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink-high); }
.asset-model { padding-bottom: 6px; }
.asset-model-maps { margin: 0 0 8px 18px; padding-left: 14px; border-left: 2px solid var(--line); }

/* Bewertungen: Name oben, Text, darunter Trennstrich mit Sternen und Datum */
.review-name { font-size: 1.2rem; }
.featured-top .review-name, .review-top .review-name { font-size: 1.3rem; }
.review-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.review-foot .stars { color: var(--paper); font-size: 1.1rem; }
.review-foot .sep { opacity: 0.6; }
.review-top { padding-bottom: 0; border-bottom: 0; }

/* "Live": Punkt links neben dem Wort, das Wort selbst steht mittig */
.stat-value { position: relative; }
.live-dot { position: absolute; left: -20px; top: 50%; margin: 0; transform: translateY(-50%); }
.stat-value:has(.live-dot) { display: inline-block; }

/* Ladebalken oben (weiß) und dezentes Einblenden neuer Inhalte */
.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: var(--paper);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.35s ease-out, opacity 0.3s;
  pointer-events: none;
}

:root[data-theme="light"] .top-progress { box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.shop-grid .item,
.admin #admin-root.enter > * { animation: rise-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.shop-grid .item { animation-delay: calc(var(--i, 0) * 45ms); }

@media (prefers-reduced-motion: reduce) {
  .shop-grid .item, .admin #admin-root.enter > * { animation: none; }
  .top-progress { transition: opacity 0.2s; }
}

/* Bewertungen: Vertrauensbox und Einladung ganz unten */
.trust { margin-top: clamp(56px, 8vw, 96px); }

.trust-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--paper);
  border-radius: var(--radius-md);
  background: var(--ink-raised);
}

.trust-box h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: 1.15rem; }
.trust-box p { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.trust-box .check { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 0.7rem; font-weight: 700; }

.trust-cta { display: grid; justify-items: center; gap: 6px; margin-top: clamp(48px, 7vw, 88px); text-align: center; }
.trust-cta h2 { max-width: 20ch; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.trust-cta .lead { margin: 14px auto 0; }
.trust-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.trust-actions .btn { padding: 12px 26px; }

@media (max-width: 820px) {
  .trust-box { grid-template-columns: 1fr; padding: 24px; }
}

/* Schalter "Drehung" in der 3D-Ansicht: weiß = an, schwarz = aus */
.spin-btn { border: 1px solid var(--line); cursor: pointer; font-family: var(--font-body); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.spin-btn[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.spin-btn[aria-pressed="false"] { background: transparent; color: var(--muted); }
.spin-btn[aria-pressed="false"]:hover { color: var(--paper); background: var(--hover); }

/* Trennstrich unter dem Namen in den Bewertungskarten */
.featured-top, .review-top { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* 3D-Assets: größere Kacheln */
.asset-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.asset-card .meta { gap: 8px; padding: 20px 22px 22px; }
.asset-card h3 { font-size: 1.25rem; }
.asset-blurb { margin: 0; color: var(--muted); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.asset-card .media { transition: filter 0.25s; }
.asset-card:hover .media { filter: brightness(1.08); }

/* Startseite: alle Bereiche untereinander */
.home-section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.home-section + .home-section { border-top: 1px solid var(--line); }
.home-title { font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; }
.home-section .reviews-hero-copy h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; }

/* Rabatt */
.discount-steps { display: grid; gap: 10px; margin: 28px 0 0; padding-left: 1.4em; color: var(--muted); max-width: 62ch; }
.discount-steps li::marker { color: var(--paper); font-weight: 600; }
.code-card { display: grid; gap: 12px; justify-items: start; margin-top: 28px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink-raised); }
.code-card p { margin: 0; }
.code-label { color: var(--muted); font-size: 0.9rem; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.code-value { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: 0.06em; user-select: all; }
.discount-error { color: var(--danger); }
.discount-note { max-width: 62ch; font-size: 0.9rem; }

.referral-banner { max-width: 62ch; margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink-raised); }
.referral-card h3 { font-size: 1.1rem; }
.code-value-sm { font-size: 1rem; letter-spacing: 0; word-break: break-all; }
.bonus-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.bonus-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
