/* EYVEL — base styles
   Warm paper aesthetic. Inter everywhere. Single accent: signal cyan.
   Dark mode via [data-theme="dark"] on root. */

:root {
  --bg:        oklch(0.97 0.005 80);
  --bg-soft:   oklch(0.94 0.006 80);
  --bg-card:   oklch(0.99 0.003 80);
  --fg:        oklch(0.18 0.01  60);
  --fg-soft:   oklch(0.40 0.01  60);
  --fg-mute:   oklch(0.58 0.008 60);
  --line:      oklch(0.88 0.006 80);
  --line-soft: oklch(0.92 0.005 80);
  --accent:    oklch(0.62 0.13 215);
  --accent-fg: oklch(0.99 0    0);
  --accent-soft: oklch(0.95 0.04 215);
  --good:      oklch(0.62 0.13 155);
  --warn:      oklch(0.72 0.15  60);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(20,18,12,.04), 0 1px 1px rgba(20,18,12,.03);
  --shadow-md: 0 8px 24px rgba(20,18,12,.06), 0 2px 6px rgba(20,18,12,.04);
  --shadow-lg: 0 24px 60px rgba(20,18,12,.10), 0 6px 16px rgba(20,18,12,.05);
}
[data-theme="dark"] {
  --bg:        oklch(0.14 0.008 60);
  --bg-soft:   oklch(0.18 0.008 60);
  --bg-card:   oklch(0.20 0.008 60);
  --fg:        oklch(0.96 0.005 80);
  --fg-soft:   oklch(0.78 0.008 60);
  --fg-mute:   oklch(0.58 0.008 60);
  --line:      oklch(0.28 0.008 60);
  --line-soft: oklch(0.24 0.008 60);
  --accent:    oklch(0.78 0.14 200);
  --accent-fg: oklch(0.14 0.008 60);
  --accent-soft: oklch(0.26 0.04 215);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5), 0 6px 16px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.5 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
.tabnums { font-variant-numeric: tabular-nums; }
.mono { font-family: 'JetBrains Mono','SF Mono', ui-monospace, monospace; }

h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.display-1 { font-size: clamp(48px, 7.5vw, 96px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.display-2 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; }
.display-3 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.005em;
  background: var(--fg); color: var(--bg);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-soft { background: var(--bg-soft); color: var(--fg); }
.btn-danger { background: oklch(0.55 0.18 25); color: #fff; }
.btn-danger:hover { background: oklch(0.50 0.20 25); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }

/* ===== cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ===== chips / pills ===== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 12px; color: var(--fg-soft);
  white-space: nowrap;
}
.pill-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill-cash {
  background: color-mix(in oklab, var(--good) 18%, var(--bg));
  color: oklch(0.45 0.13 155);
  border-color: transparent;
  font-weight: 500;
}
.pill-dot::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--good) 25%, transparent);
}

/* ===== Provider-Badge ===== */
.provider-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-weight: 700; letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.provider-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.provider-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.provider-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer;
  font-size: 13px; color: var(--fg-soft);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.provider-chip:hover { border-color: var(--fg-mute); color: var(--fg); }
.provider-chip.is-on { background: var(--bg-soft); border-color: var(--fg); color: var(--fg); }
.provider-chip.is-static { cursor: default; pointer-events: none; }

/* ===== Plan-Card (Vergleichs-Stil) ===== */
.plan-card {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 380px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan-card.is-best { border-color: var(--fg); border-width: 1.5px; }
.plan-card.is-selected { background: var(--accent-soft); border-color: var(--accent); }
.plan-best-pill { position: absolute; top: -13px; left: 24px; }

/* Plan-Card Header — wraps wenn nötig, Pill ragt nie aus der Box */
.plan-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.plan-card-id {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 160px;
  min-width: 0;
}
.plan-card-name {
  font-weight: 600; font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}
.plan-card-bonus { flex-shrink: 0; align-self: flex-start; }

.plan-perks {
  list-style: none; padding: 0; margin: 18px 0 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.plan-perks li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-soft);
}

/* ===== Vergleichs-Toolbar (Plans/DSL) ===== */
.compare-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1.4fr) minmax(160px, 1fr) auto;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  align-items: end;
}
.compare-toolbar input[type="range"] { width: 100%; }
.compare-toolbar select { width: 100%; }

/* DSL-Verfügbarkeit-Teaser */
.dsl-availability { padding: 16px 20px; background: var(--bg-soft); margin-bottom: 20px; }
.dsl-avail-row { flex-wrap: wrap; gap: 16px; }
.dsl-avail-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  flex-shrink: 0;
}
.dsl-avail-text { flex: 1 1 200px; min-width: 0; }
.dsl-avail-fields {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  flex: 1 1 420px;
  min-width: 0;
}
.dsl-avail-fields > * { min-width: 0; }
.dsl-avail-fields .input { height: 40px; width: 100%; }
.dsl-avail-fields .btn   { height: 40px; }
.dsl-avail-result {
  margin-top: 12px; padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.dsl-avail-result.is-ok  { background: var(--accent-soft); color: var(--accent); }
.dsl-avail-result.is-err { background: color-mix(in oklab, oklch(0.55 0.18 25) 18%, var(--bg)); color: oklch(0.55 0.18 25); }

/* PLZ-Autocomplete */
.plz-wrap { position: relative; }
.plz-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  list-style: none; margin: 0; padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  max-height: 360px; overflow-y: auto;
  overscroll-behavior: contain;
}
.plz-suggest li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-size: 13px;
}
.plz-suggest li:hover { background: var(--bg-soft); }
.plz-suggest li.plz-loading {
  cursor: default; padding: 10px 12px;
  display: block; text-align: center;
}
.plz-suggest li.plz-loading:hover { background: transparent; }

/* Plan-Detailseite */
.plan-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.plan-detail-side {
  padding: 24px;
  position: sticky; top: 88px;
}

/* Legal-Pages */
.legal-blocks { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.legal-block { padding: 0; }
.legal-h2 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.legal-p  { font-size: 14px; color: var(--fg-soft); margin: 0 0 6px; line-height: 1.6; }

/* ===== Toast ===== */
.toast-host {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483644;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--fg); color: var(--bg);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 500;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: auto;
  animation: toast-in .25s ease, toast-out .35s ease 2.4s both;
}
.toast-success { background: oklch(0.42 0.13 155); color: #fff; }
.toast-error   { background: oklch(0.55 0.18 25);  color: #fff; }
.toast-info    { background: var(--fg);            color: var(--bg); }
@keyframes toast-in  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) {
  .toast-host { left: 8px; right: 8px; bottom: 8px; }
  .toast { max-width: 100%; justify-content: center; }
}

/* ===== Confirm-Dialog (wiederverwendbar) ===== */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 2147483641;
  background: rgba(20,18,12,0.36);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: confirm-in .15s ease;
}
@keyframes confirm-in { from { opacity: 0; } to { opacity: 1; } }
.confirm-card {
  width: min(440px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: confirm-pop .2s ease;
}
@keyframes confirm-pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.confirm-icon.is-danger {
  background: color-mix(in oklab, oklch(0.55 0.18 25) 16%, var(--bg));
  color: oklch(0.55 0.18 25);
}
.confirm-title { font-size: 18px; margin: 0 0 8px; line-height: 1.25; }
.confirm-message { font-size: 14px; color: var(--fg-soft); margin: 0 0 20px; line-height: 1.55; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .confirm-actions { flex-direction: column-reverse; align-items: stretch; }
  .confirm-actions > .btn { width: 100%; }
}

/* ===== Toggle-Switch ===== */
.toggle-switch {
  position: relative;
  width: 44px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}
.toggle-switch.is-on { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20,18,12,0.18);
  transition: transform .2s ease;
}
.toggle-switch.is-on .toggle-thumb { transform: translateX(18px); }

/* ===== Account-Sections ===== */
.account-section { padding: 24px; }
.account-section-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap;
}
.account-section-title { font-size: 16px; margin: 0; }
.account-section-sub   { font-size: 13px; color: var(--fg-soft); margin: 4px 0 0; }
.account-danger { border-color: color-mix(in oklab, oklch(0.55 0.18 25) 30%, var(--line)); }

/* ===== Globale Suche (Spotlight-Style) ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 2147483640;
  background: rgba(20,18,12,0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 10vh 16px;
  animation: search-in .15s ease;
}
@keyframes search-in { from { opacity: 0; } to { opacity: 1; } }
.search-panel {
  width: min(640px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 20vh - 32px);
}
.search-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-soft);
}
.search-input {
  flex: 1; height: 28px;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--fg);
}
.search-input::placeholder { color: var(--fg-mute); }
.search-esc {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; padding: 2px 6px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 6px; color: var(--fg-mute);
}
.search-body { overflow-y: auto; padding: 8px; }
.search-section { padding: 8px 4px; }
.search-section-h {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute); padding: 4px 12px 8px;
}
.search-result {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px;
  background: transparent; border: 0; border-radius: 10px;
  text-align: left; cursor: pointer;
  color: var(--fg);
}
.search-result:hover, .search-result:focus-visible {
  background: var(--bg-soft);
  outline: none;
}
.search-result-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-soft); color: var(--fg-soft);
  flex-shrink: 0;
}
.search-result-text {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.search-empty {
  text-align: center; padding: 32px 16px;
  font-size: 14px; color: var(--fg-mute);
}
.search-foot {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--fg-mute);
}
.search-foot kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; padding: 1px 5px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 4px;
}
@media (max-width: 600px) {
  .search-overlay { padding: 6vh 8px; }
  .search-panel { max-height: calc(100vh - 6vh - 16px); }
  .search-foot { font-size: 11px; gap: 12px; }
}

/* Cookie-Banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 2147483645;
  display: flex; justify-content: center;
  pointer-events: none;
  animation: cookie-in .25s ease;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-card {
  pointer-events: auto;
  width: min(640px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
}
.cookie-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--fg); }
.cookie-text { font-size: 13.5px; color: var(--fg-soft); margin: 0 0 14px; line-height: 1.55; }
.cookie-details { display: flex; flex-direction: column; gap: 12px; padding: 12px; background: var(--bg-soft); border-radius: var(--r-md); margin-bottom: 14px; }
.cookie-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 1024px) {
  .compare-toolbar { grid-template-columns: 1fr 1fr; }
  .plan-detail-grid { grid-template-columns: 1fr 320px; gap: 24px; }
}
@media (max-width: 880px) {
  .compare-toolbar { grid-template-columns: 1fr 1fr; }
  .dsl-avail-fields { grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .dsl-avail-fields .btn { grid-column: 1 / -1; }
  .plan-detail-grid { grid-template-columns: 1fr; }
  .plan-detail-side { position: static; order: -1; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions > .btn { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .compare-toolbar { grid-template-columns: 1fr; padding: 14px; }
  .plan-card { min-height: auto; padding: 20px; }
  .dsl-avail-fields { grid-template-columns: 1fr; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-card { padding: 16px; }
}

/* divider lines */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* placeholder visual stripes */
.placeholder-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in oklab, var(--fg) 6%, transparent) 0 1px,
    transparent 1px 8px
  );
}

/* utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.center { display: flex; align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }

/* focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* page-level scroll inside the prototype */
.eyvel-shell {
  background: var(--bg);
  color: var(--fg);
  min-height: 100%;
}

img, svg, video { max-width: 100%; height: auto; }
input, select, textarea, button { font-family: inherit; }

/* nav */
:root { --nav-h: 62px; }
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px;
  color: var(--fg-soft); transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.nav-link:hover { background: var(--bg-soft); color: var(--fg); }
.nav-link.is-active { color: var(--fg); background: var(--bg-soft); }
.nav-actions { flex-shrink: 0; }
.nav-burger { display: none; }

/* Mobile-Drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 49;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  animation: drawer-in .2s ease;
}
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-drawer-inner {
  display: flex; flex-direction: column;
  padding: 12px 20px max(32px, env(safe-area-inset-bottom));
  max-width: 1280px; margin: 0 auto;
}
.nav-drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-soft);
  text-align: left; font-size: 16px; color: var(--fg);
  cursor: pointer;
  min-height: 48px;
}
.nav-drawer-link:active { background: var(--bg-soft); }
.nav-drawer-link.is-active { color: var(--accent); }
.nav-drawer-link:last-child { border-bottom: 0; }

/* logo mark */
.logo-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; letter-spacing: 0.14em; font-size: 14px;
}
.logo-glyph {
  width: 22px; height: 22px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

/* section */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* tag/badge on phones */
.badge-new {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(20,18,12,.18);
  white-space: nowrap;
}

/* product card */
.phone-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  min-height: 320px;
}
.phone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-soft);
}
.phone-card .phone-art-wrap {
  height: 220px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

/* form fields */
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card); color: var(--fg);
  font: inherit; outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--fg); }

.checkbox {
  width: 18px; height: 18px; border: 1px solid var(--line);
  border-radius: 5px; background: var(--bg-card);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.checkbox.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* segmented control */
.seg {
  display: inline-flex; padding: 3px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
}
.seg button {
  border: 0; background: transparent; padding: 8px 16px;
  border-radius: 999px; font: inherit; font-size: 13px; color: var(--fg-soft);
  transition: background .15s ease, color .15s ease;
}
.seg button.is-on { background: var(--bg-card); color: var(--fg); box-shadow: var(--shadow-sm); }

/* progress dots */
.steps { display: flex; align-items: center; gap: 12px; }
.step-dot {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
}
.step-dot.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.step-dot.is-done { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.step-line { flex: 1; height: 1px; background: var(--line); }
.step-line.is-done { background: var(--accent); }

/* table */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--fg-soft); }
.kv .v { font-variant-numeric: tabular-nums; }

/* sticky bundle bar */
.bundle-sticky {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

/* fade-in on mount (tiny) */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fade-up .5s ease both; }

/* scrollbar (subtle) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--fg) 18%, transparent); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* hero variants */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero-3d-stage {
  position: relative;
  width: 100%; height: clamp(320px, 48vw, 560px);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 50% 30%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(60% 80% at 50% 100%, color-mix(in oklab, var(--fg) 8%, transparent), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-3d-stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--fg) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--fg) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 80% at 50% 60%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero-phone-3d {
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: rotateY(-12deg) rotateX(6deg) translateY(0); }
  50%     { transform: rotateY(-8deg)  rotateX(8deg) translateY(-12px); }
}
.hero-split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center;
}
@media (max-width: 880px) { .hero-split-grid { grid-template-columns: 1fr; } }

/* ===== scroll showcase ===== */
.showcase-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  --p: 0;
  --bg-x1: 20%; --bg-y1: 30%;
  --bg-x2: 80%; --bg-y2: 70%;
  --accent-mix: 10%;
}
.showcase-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at var(--bg-x1) var(--bg-y1),
      color-mix(in oklab, var(--accent) var(--accent-mix), transparent), transparent 70%),
    radial-gradient(40% 60% at var(--bg-x2) var(--bg-y2),
      color-mix(in oklab, var(--fg) 6%, transparent), transparent 70%);
}
.showcase-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  color-mix(in oklab, var(--fg) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--fg) 5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 80%);
          mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 80%);
  opacity: 0.7;
}
.showcase-phone {
  transform-style: preserve-3d;
  filter: drop-shadow(0 50px 60px rgba(0,0,0,0.28));
  will-change: transform;
}
@media (max-width: 600px) {
  .showcase-phone svg { width: 200px; height: auto; }
}
@media (max-width: 380px) {
  .showcase-phone svg { width: 170px; }
}
.showcase-hint {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
  transition: opacity .3s ease;
}
.showcase-hint-bar {
  width: 1px; height: 24px; background: var(--fg-mute); opacity: 0.5;
  animation: scroll-hint 1.6s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0.2); transform-origin: top; opacity: 0.2; }
  50%  { transform: scaleY(1);   transform-origin: top; opacity: 0.8; }
  51%  { transform: scaleY(1);   transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-phone { transform: none !important; }
  .hero-phone-3d { animation: none; }
  .showcase-hint-bar { animation: none; }
}

/* ===== Layout-Helfer ===== */
.section-head { margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.bundle-head, .checkout-head, .account-head, .catalog-head { margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }

/* fluid Grids — wenige Treffer dehnen Karten nicht mehr in volle Breite/Höhe */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-content: start;
  align-items: start;
}
.grid-3 > * { max-width: 360px; align-self: stretch; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
  align-items: start;
}
.grid-4 > * { max-width: 320px; align-self: stretch; }
.plans-grid { align-content: start; align-items: start; }
/* Plan-Grid: fluid statt starr — passt Karten an verfügbare Breite an */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Hero 3D */
.hero-3d-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-flat-row { margin-top: 64px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: end; }
.hero-flat-tile {
  background: var(--bg-soft); border-radius: var(--r-lg);
  padding: 24px; display: flex; justify-content: center;
  border: 1px solid var(--line);
}

/* Featured */
.featured-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.featured-hero { padding: 0; position: relative; overflow: hidden; min-height: 460px; display: flex; }
.featured-hero-art { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); }

/* CTA */
.cta-card {
  padding: 64px;
  background: var(--fg); color: var(--bg);
  border-color: transparent;
  border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.cta-summary { background: rgba(255,255,255,0.06); padding: 24px; border-radius: var(--r-lg); }

/* Bundle */
.bundle-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.bundle-step-head { margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.bundle-phone-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-height: 520px; overflow-y: auto; padding: 4px;
}
.bundle-configure-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.bundle-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bundle-summary { padding: 24px; position: sticky; top: 88px; align-self: start; height: fit-content; }
.bundle-preview-card { padding: 32px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* Catalog */
.catalog-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.catalog-filters {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 88px; align-self: start; height: fit-content;
}
.catalog-toolbar { flex-wrap: wrap; gap: 12px; }
.catalog-filter-btn { display: none; }

/* PDP */
.pdp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.specs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.spec-cell {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.spec-cell:nth-child(4n) { border-right: 0; }

/* Plans-Vergleich Tabelle */
.plans-compare-wrap { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plans-compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.plans-compare th, .plans-compare td { padding: 14px 18px; text-align: left; }
.plans-compare thead tr { background: var(--bg-soft); }
.plans-compare th { font-weight: 600; }
.plans-compare tbody tr { border-top: 1px solid var(--line); }

/* Cart / Checkout */
.cart-grid     { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-summary  { padding: 24px; position: sticky; top: 88px; align-self: start; height: fit-content; }

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-zip  { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 12px; }

/* Account */
.account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.account-tabs {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 88px; align-self: start;
}
.account-contract-grid { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.account-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--fg-mute); flex-wrap: wrap; gap: 12px;
}

/* iOS-Tap-Highlight aus, no font-size autoscale */
* { -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: 16px; } /* iOS-Zoom-Fix */
@media (min-width: 768px) {
  input, textarea, select { font-size: 14px; }
}

/* ===========================================================
   Breakpoint: ≤ 1024 (kleines Notebook / großes Tablet)
   =========================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .featured-grid { grid-template-columns: 1.2fr 1fr; }
  .featured-grid > .col:last-child { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > .col:first-child { grid-column: 1 / -1; }
  .hero-3d-grid { gap: 32px; }
  .bundle-grid    { grid-template-columns: 1fr 320px; gap: 24px; }
  .cart-grid      { grid-template-columns: 1fr 320px; gap: 24px; }
  .checkout-grid  { grid-template-columns: 1fr 340px; gap: 24px; }
  .specs-grid     { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .spec-cell:nth-child(2n) { border-right: 0; }
}

/* ===========================================================
   Breakpoint: ≤ 880 (Tablet hochkant)
   =========================================================== */
@media (max-width: 880px) {
  :root { --nav-h: 58px; }
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-icon { display: none; }
  .nav-burger { display: inline-flex; }

  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }

  .hero { padding: 32px 0 56px; }
  .hero-3d-grid    { grid-template-columns: 1fr; gap: 24px; }
  .hero-3d-stage   { height: clamp(320px, 70vw, 460px) !important; }
  .hero-flat-row   { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-flat-row > *:nth-child(n+4) { display: none; }

  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-hero { flex-direction: column; min-height: auto; }
  .featured-hero-art { min-height: 280px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-card {
    padding: 40px 28px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Bundle */
  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-summary { position: static; order: -1; }
  .bundle-phone-grid { grid-template-columns: repeat(3, 1fr); max-height: none; }
  .bundle-configure-grid { grid-template-columns: 1fr; }
  .bundle-preview-card { grid-template-columns: 1fr; padding: 24px; gap: 20px; }

  /* Catalog */
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-filter-btn { display: inline-flex; }
  .catalog-filters {
    position: static;
    display: none;
    background: var(--bg-soft);
    padding: 20px;
    border-radius: var(--r-lg);
    margin-bottom: 16px;
  }
  .catalog-filters.is-open { display: flex; }

  /* PDP */
  .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
  .pdp-cta-row { flex-wrap: wrap; }
  .pdp-cta-row > .btn { flex: 1 1 auto; }

  /* Cart / Checkout */
  .cart-grid     { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-summary  { position: static; order: -1; }

  .form-zip { grid-template-columns: 1fr 1fr; }
  .form-zip > *:last-child { grid-column: 1 / -1; }

  /* Account */
  .account-grid { grid-template-columns: 1fr; }
  .account-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .account-tabs > button { flex-shrink: 0; }
  .account-contract-grid { grid-template-columns: 100px 1fr; gap: 16px; }
  .account-2col { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .col:first-child { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; }

  /* Bundle sticky bar — kompakter */
  .bundle-sticky { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }

  /* Steps (Bundle, Checkout) — Labels evtl. ausblenden */
  .steps { width: auto !important; gap: 8px; }
  .step-line { min-width: 16px; }

  /* Plans-Vergleich-Tabelle scrollt */
  .plans-compare-wrap { padding: 0; }
}

/* ===========================================================
   Breakpoint: ≤ 600 (Smartphone)
   =========================================================== */
@media (max-width: 600px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 16px; }
  .section   { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .nav-drawer-inner { padding: 8px 16px max(24px, env(safe-area-inset-bottom)); }
  .nav-drawer-link { font-size: 15.5px; padding: 12px 4px; }

  .display-1 { font-size: clamp(34px, 9vw, 52px); }
  .display-2 { font-size: clamp(28px, 7vw, 42px); }
  .display-3 { font-size: clamp(22px, 6vw, 32px); }

  .btn       { height: 42px; padding: 0 18px; font-size: 14px; }
  .btn-lg    { height: 48px; padding: 0 22px; font-size: 14.5px; }
  .btn-sm    { height: 32px; padding: 0 12px; font-size: 12.5px; }

  .grid-3    { grid-template-columns: 1fr; }
  .grid-4    { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; }

  .hero-flat-row { grid-template-columns: repeat(2, 1fr); }
  .hero-flat-row > *:nth-child(n+3) { display: none; }
  .hero-flat-tile { transform: none !important; padding: 16px; }

  .featured-hero-art { min-height: 220px; padding: 16px; }
  .phone-card { min-height: auto; padding: 16px; }
  .phone-card .phone-art-wrap { height: 200px; }

  .cta-card { padding: 28px 20px; }
  .cta-card .display-2 { font-size: 28px; }

  .bundle-phone-grid { grid-template-columns: repeat(2, 1fr); }
  .bundle-review-grid { grid-template-columns: 1fr; }

  .form-2col { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-3d-stage { height: clamp(280px, 80vw, 380px) !important; }

  /* Step-Indikatoren: nur Punkte, Labels weg */
  .steps span:nth-child(2),
  .steps > .row > span:not(.step-dot) { display: none; }
  .step-line { flex: 0 1 14px; min-width: 8px; }

  /* Order-Row enger */
  .order-row { flex-wrap: wrap; gap: 12px; }
  .order-row > .row { width: 100%; justify-content: space-between; }

  /* Account-Tabs scrollbar verstecken */
  .account-tabs::-webkit-scrollbar { display: none; }

  /* Tweaks-Panel breiter wegnehmen */
  .twk-panel { width: calc(100vw - 24px) !important; right: 12px !important; bottom: 12px !important; }

  /* Showcase auf Mobile: 1 Spalte (Phone Mitte), Callouts ausblenden */
  .showcase-row { grid-template-columns: 1fr !important; }
  .showcase-sticky .col[style*="padding-right"],
  .showcase-sticky .col[style*="padding-left"] { display: none; }
}

/* ===========================================================
   Breakpoint: ≤ 380 (kleinere Smartphones)
   =========================================================== */
@media (max-width: 380px) {
  :root { --nav-h: 52px; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav { padding: 10px 12px; gap: 6px; }
  .nav-actions { gap: 4px !important; }
  .logo-mark { font-size: 13px; gap: 6px; }
}

/* ===========================================================
   Public Coming-Soon (Wartungsmodus)
   =========================================================== */
.eyvel-shell.maintenance { background: var(--bg); min-height: 100vh; }

.public-cs {
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.public-cs-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 50;
}
/* Schmaler als .container (1280) → klar zentriert im Viewport */
.public-cs-main.container {
  max-width: 1080px;
  flex: 1;
  padding-top: 8px;
  padding-bottom: 48px;
}

.public-cs-hero {
  position: relative;
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
  text-align: center;
}
.public-cs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 50% 0%,   color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, color-mix(in oklab, var(--good)   8%,  transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.public-cs-hero-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}
.public-cs-title {
  letter-spacing: -0.02em; margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600; line-height: 1.05;
  text-wrap: balance;
}
.public-cs-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-soft); line-height: 1.6;
  max-width: 640px;
  margin: 0;
}
.public-cs-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 4px;
}
.public-cs-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

/* Hero-3D — interaktiver model-viewer */
.hero-3d {
  margin: clamp(28px, 4vw, 48px) auto 0;
  max-width: 640px;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.hero-3d .hero-3d-stage {
  position: relative;
  width: 100%;
  height: clamp(360px, 52vh, 520px) !important;
  aspect-ratio: auto;
  min-height: 0;
  max-height: 60vh;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 20%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  cursor: grab;
}
.hero-3d .hero-3d-stage::before { content: none; }
.hero-3d .hero-3d-stage:active { cursor: grabbing; }
.hero-3d .hero-3d-stage model-viewer {
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
  --progress-bar-height: 2px;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-3d-skeleton {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  color: var(--fg-mute);
  font-size: 13px;
  pointer-events: none;
  opacity: 0.6;
  animation: hero3d-pulse 1.6s ease-in-out infinite;
}
@keyframes hero3d-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.75; }
}
.hero-3d-caption {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-soft);
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.hero-3d-hint { color: var(--fg-mute); }
@media (max-width: 600px) {
  .hero-3d .hero-3d-stage { height: clamp(320px, 60vh, 440px) !important; }
  .hero-3d-hint { display: none; }
}

/* ===== Review-Prompt: Sterne + Feedback-Fragebogen ===== */
.review-prompt {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.review-prompt-head {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
}
.review-prompt-title {
  font-size: 18px; font-weight: 600;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}
.review-prompt-sub {
  font-size: 13.5px; color: var(--fg-soft);
  margin: 0; max-width: 420px; line-height: 1.5;
}
.review-stars {
  display: inline-flex; gap: 2px;
  margin: 4px 0;
}
.review-star {
  background: none; border: 0;
  padding: 6px;
  font-size: 32px; line-height: 1;
  color: color-mix(in oklab, var(--fg) 18%, transparent);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
}
.review-star:hover { transform: scale(1.08); }
.review-star:active { transform: scale(0.94); }
.review-star.is-on { color: #f5b400; }
.review-stars-static {
  display: inline-flex; gap: 2px;
  font-size: 22px; line-height: 1;
  color: #f5b400;
}
.review-stars-static .muted {
  color: color-mix(in oklab, var(--fg) 15%, transparent);
}
.review-fb-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: 100%; margin-top: 4px;
}
.review-fb-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; font-size: 13px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-card); color: var(--fg);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.review-fb-chip:hover { border-color: color-mix(in oklab, var(--fg) 30%, transparent); }
.review-fb-chip.is-on {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--bg-card));
}
.review-fb-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid color-mix(in oklab, var(--fg) 25%, transparent);
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.review-fb-chip.is-on .review-fb-check {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}
@media (max-width: 600px) {
  .review-fb-grid { grid-template-columns: 1fr; }
  .review-star { font-size: 28px; padding: 4px; }
}

/* "Bald online" pill — subtile gelbe Pulsation auf dem Uhr-Icon */
.pill-soon-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: #d4a017;
  animation: pill-soon-pulse 2.4s ease-in-out infinite;
}
@keyframes pill-soon-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .pill-soon-icon { animation: none; opacity: 0.85; }
}

.public-cs-section-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 720px;
}
.public-cs-h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.public-cs-lead-2 {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--fg-soft); line-height: 1.6;
  max-width: 620px;
  margin: 4px 0 0;
}

.public-cs-shops   { padding: clamp(40px, 5vw, 64px) 0; }
.public-cs-promise {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

/* Partner-Marquee */
.public-cs-partners {
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.public-cs-partners-head {
  text-align: center;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.public-cs-partners-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
  color: var(--fg);
}
.partner-marquee {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  /* Edge-Fade — die Logos faden links/rechts sanft aus dem Sichtfeld */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partner-track {
  display: flex; align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
  flex-shrink: 0;
  animation: partner-scroll 28s linear infinite;
}
.partner-marquee:hover .partner-track { animation-play-state: paused; }
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - clamp(20px, 2.5vw, 36px))); }
}
.partner-item {
  flex: 0 0 auto;
  width: clamp(140px, 16vw, 200px);
  height: clamp(56px, 7vw, 80px);
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(0.2);
  opacity: 0.85;
  transition: opacity .2s ease, filter .2s ease;
}
.partner-item:hover { opacity: 1; filter: grayscale(0); }
.partner-item img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  display: block;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; }
  .partner-marquee { overflow-x: auto; }
}
.public-cs-promise-grid {
  gap: 20px;
  max-width: 920px;
  margin-left: auto; margin-right: auto;
  justify-content: center;
}

.public-cs-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 16px;
  margin-top: 56px;
}

@media (max-width: 880px) {
  .public-cs-promise-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .public-cs-main { padding-bottom: 56px; }
  .public-cs-hero { padding: 48px 0 56px; }
  .public-cs-section-head { margin-bottom: 28px; }
}

/* ===========================================================
   Shops + Coming-Soon
   =========================================================== */
.shop-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--good) 22%, transparent);
  margin-right: 6px;
  vertical-align: middle;
  animation: shop-pulse 2.4s ease-in-out infinite;
}
@keyframes shop-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--good) 22%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--good) 8%,  transparent); }
}

.shop-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  max-width: 980px;
  margin-left: auto; margin-right: auto;
}
.shop-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  height: 100%;
  min-height: 460px;
  padding: 28px 24px !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.shop-card:hover { border-color: var(--fg); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.shop-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  flex-shrink: 0;
}

.shop-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid;
}
.shop-status-dot {
  width: 9px; height: 9px; border-radius: 999px;
  flex-shrink: 0;
}

/* Geöffnet → grün */
.shop-status.is-open {
  background: color-mix(in oklab, #1e9d5b 12%, var(--bg-card));
  border-color: color-mix(in oklab, #1e9d5b 40%, transparent);
  color: #1e7e48;
}
.shop-status.is-open .shop-status-dot {
  background: #1e9d5b;
  animation: shop-pulse-green 2.4s ease-in-out infinite;
}

/* Schließt bald (≤60 Min) → gelb */
.shop-status.is-closing {
  background: color-mix(in oklab, #e6a82a 14%, var(--bg-card));
  border-color: color-mix(in oklab, #e6a82a 45%, transparent);
  color: #a07815;
}
.shop-status.is-closing .shop-status-dot {
  background: #e6a82a;
  animation: shop-pulse-amber 1.6s ease-in-out infinite;
}

/* Öffnet bald (≤120 Min) → gelb */
.shop-status.is-opening {
  background: color-mix(in oklab, #e6a82a 14%, var(--bg-card));
  border-color: color-mix(in oklab, #e6a82a 45%, transparent);
  color: #a07815;
}
.shop-status.is-opening .shop-status-dot {
  background: #e6a82a;
  animation: shop-pulse-amber 2.2s ease-in-out infinite;
}

/* Geschlossen → rot, langsamer Pulse */
.shop-status.is-closed {
  background: color-mix(in oklab, #d14b3a 12%, var(--bg-card));
  border-color: color-mix(in oklab, #d14b3a 38%, transparent);
  color: #b03a2c;
}
.shop-status.is-closed .shop-status-dot {
  background: #d14b3a;
  animation: shop-pulse-red 2.8s ease-in-out infinite;
}

@keyframes shop-pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, #1e9d5b 55%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, #1e9d5b 0%, transparent); }
}
@keyframes shop-pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, #e6a82a 55%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, #e6a82a 0%, transparent); }
}
@keyframes shop-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, #d14b3a 55%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in oklab, #d14b3a 0%, transparent); }
}

.shop-name {
  font-weight: 600; font-size: 18px; margin: 16px 0 0; letter-spacing: -0.01em;
  line-height: 1.3;
  min-height: calc(18px * 1.3 * 2);  /* zwei Zeilen reservieren, damit Karten bündig bleiben */
}
.shop-region {
  font-size: 12.5px; color: var(--fg-mute); margin-top: 6px;
  min-height: 36px; line-height: 1.4;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
}
.shop-address {
  font-style: normal; font-size: 14.5px; color: var(--fg-soft);
  margin-top: 16px; line-height: 1.55;
}

.shop-hours {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  font-size: 13.5px;
}
.shop-hours-row {
  display: flex; align-items: baseline; justify-content: center;
  gap: 14px;
}
.shop-hours-day  { color: var(--fg-mute); min-width: 44px; text-align: right; }
.shop-hours-time { color: var(--fg); min-width: 88px; text-align: left; }

.shop-actions { width: 100%; margin-top: auto; padding-top: 22px; }

/* Promise / Was-dich-erwartet Karten — komplett zentriert */
.promise-card {
  padding: clamp(24px, 3.5vw, 36px) !important;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 14px;
}
.promise-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  flex-shrink: 0;
}
.promise-title {
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  text-wrap: balance;
}
.promise-text {
  color: var(--fg-soft); font-size: 14.5px; line-height: 1.6;
  margin: 0; max-width: 280px;
}

.coming-soon-hero { padding: 16px 0 8px; }
.coming-soon-shops {}

/* ===========================================================
   Booking Dialog
   =========================================================== */
.booking-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 1000;
  background: rgba(15, 17, 22, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  overflow-y: auto;
  animation: booking-fade .2s ease;
}
@keyframes booking-fade { from { opacity: 0; } to { opacity: 1; } }
.booking-modal {
  width: min(720px, 100%);
  max-width: 720px;
  margin: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  animation: booking-slide .25s ease;
}
@keyframes booking-slide { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.booking-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--bg-soft); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg);
  transition: background .15s ease;
}
.booking-close:hover { background: var(--line); }

.booking-section { margin-top: 32px; }
.booking-section .lbl { display: block; margin-bottom: 14px; }

.booking-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.booking-topic {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.booking-topic:hover { border-color: var(--fg); }
.booking-topic.is-on { border-color: var(--fg); border-width: 1.5px; background: var(--bg-soft); }
.booking-topic-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
}
.booking-topic-label { font-weight: 600; font-size: 15px; margin-top: 2px; }
.booking-topic-desc  { font-size: 13px; color: var(--fg-soft); line-height: 1.5; }

/* Datum-Streifen */
.booking-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.booking-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 6px; min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.booking-day:hover:not(:disabled) { border-color: var(--fg); }
.booking-day.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.booking-day.is-closed { opacity: 0.4; cursor: not-allowed; }
.booking-day-name { font-size: 11px; color: var(--fg-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.booking-day.is-on .booking-day-name { color: color-mix(in oklab, var(--bg) 80%, transparent); }
.booking-day-date { font-size: 15px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.booking-day-zu { font-size: 9px; color: var(--fg-mute); margin-top: 2px; letter-spacing: 0.05em; }

/* Slots */
.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.booking-slot {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  font: inherit; font-size: 13.5px; font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.booking-slot:hover:not(:disabled) { border-color: var(--fg); }
.booking-slot.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.booking-slot.is-booked {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.booking-empty {
  font-size: 13px; color: var(--fg-mute);
  padding: 14px; border: 1px dashed var(--line);
  border-radius: var(--r-md);
}

.booking-footer {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.booking-summary { font-size: 14px; font-weight: 500; }

.booking-required {
  font-size: 11px; font-weight: 500;
  color: var(--fg-mute); letter-spacing: 0;
  text-transform: none;
  margin-left: 6px;
}
.booking-err {
  font-size: 12.5px; color: #d14b3a;
  line-height: 1.4;
}
.booking-hint {
  font-size: 12px; color: var(--fg-mute);
}
.input.is-invalid, .textarea.is-invalid {
  border-color: #d14b3a;
  background: color-mix(in oklab, #d14b3a 5%, var(--bg-card));
}
.input.is-invalid:focus { border-color: #d14b3a; box-shadow: 0 0 0 3px color-mix(in oklab, #d14b3a 18%, transparent); }

.booking-consent {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13.5px; line-height: 1.55;
  transition: border-color .15s ease, background .15s ease;
}
.booking-consent:hover { background: var(--bg-soft); }
.booking-consent.is-invalid {
  border-color: #d14b3a;
  background: color-mix(in oklab, #d14b3a 6%, var(--bg-card));
}
.booking-consent input[type="checkbox"] {
  accent-color: var(--fg);
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px;
}
.booking-consent a {
  color: var(--fg); text-decoration: underline; cursor: pointer;
}

.booking-confirmed {
  text-align: center;
  padding: 24px 12px;
  display: flex; flex-direction: column; align-items: center;
}
.booking-confirmed-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--good); color: var(--bg);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--good) 18%, transparent);
}

@media (max-width: 600px) {
  .booking-overlay { padding: 0; align-items: flex-end; }
  .booking-modal {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    width: 100%;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }
  .booking-days {
    grid-template-columns: repeat(14, 64px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .booking-day { min-height: 60px; padding: 8px 4px; }
  .booking-topic-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr; gap: 14px; }
  .shop-card { min-height: 0; padding: 24px 20px !important; }
}

/* ===========================================================
   Catalog mode bar + Trade-In banner + PhoneCard hint
   =========================================================== */
.catalog-sub {
  color: var(--fg-soft); font-size: 15px; max-width: 560px;
  margin: 12px 0 0; line-height: 1.5;
}

.catalog-mode-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin: 24px 0 16px;
}
.catalog-mode-seg.seg button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
}
.catalog-mode-seg .catalog-mode-pill {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 500; letter-spacing: .02em;
}
.catalog-mode-seg button.is-on .catalog-mode-pill {
  background: var(--bg); color: var(--accent);
}
.catalog-mode-note { font-size: 12.5px; color: var(--fg-mute); }

.catalog-tradein-banner {
  padding: 18px 22px; cursor: pointer;
  border: 1px solid var(--line);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 6%, var(--bg-card)) 0%,
    var(--bg-card) 60%);
  margin-bottom: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.catalog-tradein-banner:hover {
  border-color: var(--fg);
}
.catalog-tradein-banner:focus-visible {
  outline: 2px solid var(--fg); outline-offset: 2px;
}
.catalog-tradein-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  flex-shrink: 0;
}
.catalog-tradein-cta {
  flex-shrink: 0; font-weight: 500; font-size: 14px;
  color: var(--fg);
}

.phone-tradein-hint {
  font-size: 12px;
  color: var(--good);
  background: color-mix(in oklab, var(--good) 8%, transparent);
  padding: 4px 8px; border-radius: 6px;
  align-self: flex-start;
  margin-top: 4px;
}

/* PDP price + trade-in widget */
.pdp-price-block { margin-top: 4px; }
.pdp-price-strike {
  font-size: 18px; color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.pdp-tradein {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: border-color .15s ease;
}
.pdp-tradein.is-on { border-color: var(--good); }
.pdp-tradein-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 16px; min-height: 56px;
  background: transparent; border: 0; cursor: pointer;
  text-align: left; color: var(--fg);
  gap: 16px;
}
.pdp-tradein-toggle:hover { background: var(--bg-soft); }
.pdp-tradein-checkbox {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.pdp-tradein-checkbox.is-on {
  background: var(--good); border-color: var(--good); color: var(--bg);
}
.pdp-tradein-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.pdp-tradein-seg.seg {
  flex-wrap: wrap; width: 100%;
}
.pdp-tradein-seg.seg button { flex: 1 1 auto; min-width: 100px; }

@media (max-width: 600px) {
  .catalog-tradein-row { flex-wrap: wrap; }
  .catalog-tradein-cta { width: 100%; justify-content: flex-end; }
  .catalog-mode-seg.seg button { padding: 6px 10px; font-size: 12.5px; }
  .catalog-mode-seg .catalog-mode-pill { display: none; }
  .pdp-tradein-toggle { padding: 12px 14px; }
  .pdp-tradein-body { padding: 12px 14px 14px; }
}

/* ===========================================================
   Trade-In page
   =========================================================== */
.tradein-hero {
  padding: 24px 0 32px;
}
.tradein-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.tradein-summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.tradein-condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.tradein-condition { transition: border-color .15s ease, background .15s ease; }
.tradein-condition:hover { border-color: var(--fg) !important; }

.lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-mute); font-weight: 500;
}

.checkbox-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card);
  font-size: 13.5px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.checkbox-pill:hover { background: var(--bg-soft); }
.checkbox-pill input { accent-color: var(--fg); width: 14px; height: 14px; }

.tradein-confirm {
  border: 1px solid var(--good);
  background: color-mix(in oklab, var(--good) 8%, var(--bg-card));
}
.tradein-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--good); color: var(--bg);
}

.tradein-stepnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-weight: 600; font-size: 14px;
}
.tradein-stepicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--bg-soft); color: var(--fg);
}
.tradein-trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
}

.tradein-trust .grid-4 { gap: 24px; }

.tradein-faq-item { border: 1px solid var(--line); }
.tradein-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 20px; min-height: 56px;
  background: transparent; border: 0; text-align: left;
  cursor: pointer; color: var(--fg);
  gap: 16px;
}
.tradein-faq-q:hover { background: var(--bg-soft); }
.tradein-faq-chev { transition: transform .2s ease; color: var(--fg-mute); display: inline-flex; }
.tradein-faq-a {
  padding: 0 20px 18px;
  font-size: 14px; color: var(--fg-soft); line-height: 1.6;
}
.tradein-cta { padding: clamp(28px, 5vw, 56px); }

@media (max-width: 1024px) {
  .tradein-grid { grid-template-columns: 1fr 340px; gap: 20px; }
}
@media (max-width: 880px) {
  .tradein-grid { grid-template-columns: 1fr; }
  .tradein-summary { position: static; }
  .tradein-condition-grid { grid-template-columns: 1fr 1fr; }
  .tradein-trust .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tradein-condition-grid { grid-template-columns: 1fr; }
  .tradein-trust .grid-4 { grid-template-columns: 1fr; }
  .tradein-faq-q { padding: 14px 16px; font-size: 14px; }
  .tradein-faq-a { padding: 0 16px 16px; }
  .tradein-cta { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .tradein-cta .display-2 { font-size: 28px; }
}
