/* Schriften lokal eingebunden, es wird nichts von fremden Servern geladen. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }

/* Grundeinstellungen */
html { color-scheme: light; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: Hero mit Katze und Hund auf einem Podest, Produkte kreisen darum. Danach ein Laufband, der Ablauf als vier versetzte Farbkacheln mit gerenderten Bildern, der Set-Builder und ein dunkles Band mit Katze auf Karton. */
:root {
  --bg: #EDF1F7;
  --surface: #FFFFFF;
  --ink: #0F1730;
  --muted: #55607D;
  --line: #D3DAE8;
  --accent: #FF4D6D;
  --accent-soft: #FFD3DB;
  --accent-ink: #0F1730;
  --sun: #FFC83D;
  --stage: #DFE6F3;
  --good: #14935F;
  --t1: #FFD3DB; --t2: #FFE9A8; --t3: #C9F1DF; --t4: #D2DDFF;
  --tile-ink: #0F1730; --tile-muted: #3A4566;
  --band: #0F1730; --band-ink: #EEF1FA; --band-muted: #A3AECB; --band-line: #2A3558;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1224; --surface: #151D36; --ink: #EEF1FA; --muted: #9AA5C4; --line: #263154;
    --accent: #FF6B87; --accent-soft: #3A2234; --stage: #18213D; --good: #3ED79A;
    --band: #151D36; --band-line: #2C3760; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1224; --surface: #151D36; --ink: #EEF1FA; --muted: #9AA5C4; --line: #263154;
  --accent: #FF6B87; --accent-soft: #3A2234; --stage: #18213D; --good: #3ED79A;
  --band: #151D36; --band-line: #2C3760; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }
.mark svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding-block: 12px 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.7rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 44ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { font: 600 15px/1 var(--f-body); border: 0; border-radius: 999px; padding: 15px 24px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hero-stage { position: relative; height: clamp(380px, 54vw, 640px); min-width: 0; container-type: size; }
.hero-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(86%, 340px); width: min(86cqw, 86cqh, 560px); aspect-ratio: 1; transform: translate(-50%, -52%); border-radius: 50%; background: var(--accent-soft); }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: grab; touch-action: pan-y; }
.hero-stage canvas:active { cursor: grabbing; }
.sticker { position: absolute; top: 7%; right: 3%; z-index: 2; background: var(--sun); color: var(--tile-ink); font: 700 15px/1.15 var(--f-display); padding: 12px 18px; border-radius: 999px; transform: rotate(7deg); text-align: center; pointer-events: none; }
.hint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); pointer-events: none; }
.glfail { display: none; position: absolute; inset: 0; z-index: 2; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); }
.nogl .glfail { display: flex; }

/* Laufband */
.ticker { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 26px/1 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.ticker-track svg { width: 20px; height: 20px; flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Ablauf */
.section { padding-block: 64px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.head-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; max-width: 15ch; }
.head p.sub { color: var(--muted); font-size: 17px; max-width: 40ch; }
.flow { list-style: none; margin: 0; padding: 0 0 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { color: var(--tile-ink); border-radius: 30px; padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.tile:nth-child(even) { transform: translateY(34px); }
.tile.t1 { background: var(--t1); } .tile.t2 { background: var(--t2); } .tile.t3 { background: var(--t3); } .tile.t4 { background: var(--t4); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.tile .num { font: 800 15px/1 var(--f-mono); width: 34px; height: 34px; border-radius: 50%; background: var(--tile-ink); color: #fff; display: grid; place-items: center; position: absolute; top: 16px; left: 16px; }
.tile h3 { font-size: 24px; font-weight: 700; }
.tile p { color: var(--tile-muted); font-size: 15px; }

/* Builder */
.builder-sec { border-top: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pick-opt { cursor: pointer; position: relative; }
.pick-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 24px; padding: 10px 18px 10px 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.pick-opt input:checked + .pick-card { box-shadow: inset 0 0 0 2.5px var(--ink); }
.pick-opt input:focus-visible + .pick-card { outline: 3px solid var(--accent); outline-offset: 3px; }
.pick-face { width: 76px; height: 76px; border-radius: 50%; flex: none; overflow: hidden; }
.pick-opt:nth-child(1) .pick-face { background: var(--t1); } .pick-opt:nth-child(2) .pick-face { background: var(--t4); }
.pick-face img { width: 100%; height: 100%; object-fit: cover; }
.pick-txt { display: flex; flex-direction: column; min-width: 0; }
.pick-txt b { font: 700 22px/1.1 var(--f-display); }
.pick-txt small { font-size: 13px; color: var(--muted); }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.col-left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 16px; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; background: var(--surface); border-radius: 20px; padding: 8px 14px 8px 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.row.is-focus { box-shadow: inset 0 0 0 2px var(--ink); }
.row.has-qty .name::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.row-main { display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; min-width: 0; }
.swatch { width: 68px; height: 68px; border-radius: 16px; flex: none; overflow: hidden; }
.swatch img { width: 100%; height: 100%; object-fit: contain; }
.txt { display: flex; flex-direction: column; min-width: 0; }
.name { font-weight: 600; }
.desc { font-size: 13px; color: var(--muted); }
.row-side { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.price { font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
.step { display: inline-flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 999px; padding: 3px; }
.step button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 600; cursor: pointer; line-height: 1; }
.step button:hover { background: var(--ink); color: var(--bg); }
.step output { min-width: 28px; text-align: center; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 14px; }

.viewer { position: relative; height: clamp(320px, 38vw, 440px); background: var(--stage); border-radius: 30px; overflow: hidden; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.viewer canvas:active { cursor: grabbing; }
.viewer-cap { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.viewer-cap strong { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.viewer-cap span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.term { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-self: stretch; }
.term label { cursor: pointer; min-width: 0; }
.term input { position: absolute; opacity: 0; pointer-events: none; }
.term label > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; }
.term b { font-weight: 600; font-size: 14px; }
.term small { font-family: var(--f-mono); font-size: 13px; color: var(--good); font-weight: 500; }
.term input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.term input:checked + span small { color: inherit; }
.term input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.term-note { font-size: 13px; color: var(--muted); }
.sum { background: var(--surface); border-radius: 26px; padding: 22px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; gap: 18px; }
.sum-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sum-head h3 { font-size: 22px; font-weight: 700; }
.rhythm { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.line span:first-child { color: var(--muted); }
.line.save span:last-child { color: var(--good); font-weight: 600; }
.line.total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font: 700 22px/1.2 var(--f-display); }
.line.total span:first-child { color: var(--ink); }
.dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dates li { position: relative; padding-top: 18px; font-size: 13px; min-width: 0; }
.dates li::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.dates li::after { content: ""; position: absolute; left: 12px; right: -8px; top: 8px; height: 2px; background: var(--line); }
.dates li:last-child::after { display: none; }
.dates b { display: block; font-weight: 600; }
.dates span { color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.status { font-size: 14px; color: var(--muted); min-height: 1.5em; }

/* Warum Abo */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-block: 64px; }
.why-pic { position: relative; width: 100%; max-width: 440px; margin-inline: auto; }
.why-pic::before { content: ""; position: absolute; left: 50%; bottom: 4%; width: 78%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--sun); }
.why-pic img { position: relative; width: 100%; aspect-ratio: 1; object-fit: contain; }
.why-txt { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.why-txt h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: minmax(0, 11.5em) minmax(0, 1fr); gap: 6px 24px; padding-block: 18px; border-top: 1px solid var(--band-line); align-items: baseline; }
.why-list h3 { font-size: 22px; font-weight: 700; }
.why-list p { color: var(--band-muted); }

.foot { padding-block: 28px 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .col-right { position: static; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .tile:nth-child(even) { transform: none; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why-pic { order: 2; }
}
@media (max-width: 520px) {
  .section, .why { padding-block: 44px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .tile { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 18px 14px 12px; }
  .tile img { grid-row: 1 / span 2; }
  .tile h3 { align-self: end; font-size: 21px; }
  .tile p { align-self: start; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-side { justify-content: space-between; padding-left: 82px; }
  .pick-face { width: 56px; height: 56px; }
  .pick-card { padding-right: 12px; gap: 10px; }
  .pick-txt b { font-size: 19px; }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .term { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dates li:nth-child(2)::after { display: none; }
  .why-list li { grid-template-columns: minmax(0, 1fr); }
  .sticker { font-size: 13px; padding: 10px 14px; }
  .ticker-track span { font-size: 21px; }
}
