/* Hausherz – Landingpage. Farben und Schrift wie in der App (Champagner auf Nachtblau, dünne Ziffern,
   gesperrte Versalien als Abschnittstitel). Keine fremden Schriften oder Dienste: Die Seite lädt nichts nach. */

:root {
  --bg: #050608;
  --bg-raised: #0c0f17;
  --ink: #f5f2ec;
  --ink-2: #a2a2a9;
  --ink-3: #6f6f77;
  --accent: #e8c58a;
  --hair: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.045);
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(110px, 16vh, 190px);
  --nav: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav);
}

body {
  margin: 0;
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Typografie ---------- */

.eyebrow {
  font: 600 13px/1.2 var(--font);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  font: 600 clamp(40px, 6.2vw, 80px)/1.04 var(--font-display);
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.headline .soft { color: var(--ink-3); }

.lead {
  font: 600 clamp(19px, 1.9vw, 24px)/1.32 var(--font-display);
  letter-spacing: 0.002em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body-copy { color: var(--ink-2); max-width: 34em; }

.numeral {
  font: 200 clamp(64px, 8.4vw, 116px)/0.95 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 18px;
}
.section-head .lead { max-width: 30em; }

/* ---------- Knöpfe ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: var(--accent); color: #17120a; font-weight: 500;
  transition: background-color 0.2s;
}
.pill:hover { background: #f0d6a4; }
.pill--small { height: 28px; padding: 0 13px; font-size: 12px; letter-spacing: -0.01em; }

/* Apples Badge „Laden im App Store“, unverändert von Apples Marketing-Seite: nicht einfärben, nicht bewegen, kein
   Hover. Schwarz, eins pro Seite, mindestens 40 px hoch, ringsum frei mindestens ein Viertel der Höhe. Der Radius
   lässt den Fokus-Rahmen den Ecken des Badges folgen. */
.store-badge { border-radius: 12px; }
.store-badge img { width: auto; height: 50px; }

.more-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-size: 19px;
}
.more-link::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Lokale Navigation ---------- */

.localnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav);
  background: rgba(8, 9, 12, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.localnav.is-scrolled { box-shadow: 0 1px 0 var(--hair); }
/* Über dem hellen Himmel von „Draußen“ (Morgen, Tag, Abend) */
.localnav.is-light { background: rgba(250, 250, 252, 0.72); color: #15181f; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.localnav.is-light .localnav__links a { color: rgba(21, 24, 31, 0.72); }
.localnav.is-light .localnav__links a:hover { color: #15181f; }
.localnav__inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.localnav__title {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 21px/1 var(--font-display); letter-spacing: 0.01em; text-decoration: none; margin-right: auto;
}
/* Zeichen aus dem App-Icon (Tools/AppIcon.swift --svg), leuchtet wie dort; auf hellem Himmel dunkles Gold */
.localnav__mark {
  width: 30px; height: 28px; flex: none;
  color: var(--accent); stroke-width: 40;
  filter: drop-shadow(0 0 3px rgba(232, 197, 138, 0.4));
  transition: color 0.5s var(--ease), filter 0.5s var(--ease);
}
.localnav.is-light .localnav__mark { color: #805208; filter: none; }
.localnav__links { display: flex; gap: 26px; font-size: 12px; letter-spacing: -0.01em; }
.localnav__links a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.localnav__links a:hover { color: var(--ink); }

/* ---------- iPad ---------- */

.ipad {
  position: relative;
  padding: 2.3%;
  border-radius: 3.9% / 5.12%;
  background: #08080a;
  box-shadow:
    0 0 0 1px #46464c,
    0 0 0 2.5px #18181b,
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 60px 120px -50px rgba(0, 0, 0, 0.95),
    0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.ipad::before {
  content: ""; position: absolute; top: 0.95%; left: 50%;
  width: 0.62%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #2e3d52, #07080a 70%);
}
.ipad__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  border-radius: 1.9% / 2.53%;
  background: #08090c;
}
.ipad__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
[data-screens] img, [data-style-screens] img { opacity: 0; }
[data-screens] img:first-child, [data-style-screens] img.is-active { opacity: 1; }
[data-style-screens] img { transition: opacity 0.6s var(--ease); }

/* ---------- Hero ---------- */

.hero { position: relative; height: 230vh; }
.hero__sticky {
  position: sticky; top: var(--nav);
  height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav));
  display: grid; grid-template-rows: auto 1fr; justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 1000px at 0% 0%, rgba(23, 38, 82, 0.85), transparent 70%),
    radial-gradient(650px 650px at 82% 0%, rgba(232, 197, 138, 0.07), transparent 70%),
    radial-gradient(760px 760px at 100% 100%, rgba(10, 61, 66, 0.3), transparent 70%),
    var(--bg);
}
.hero__copy {
  --p: 0;
  padding: clamp(28px, 7vh, 72px) var(--gutter) 0;
  text-align: center; display: grid; gap: 14px; justify-items: center;
  opacity: calc(1 - var(--p) * 2.4);
  transform: translate3d(0, calc(var(--p) * -6vh), 0) scale(calc(1 - var(--p) * 0.08));
  will-change: opacity, transform;
}
.hero__title {
  font: 600 clamp(72px, 13vw, 176px)/0.92 var(--font-display);
  letter-spacing: -0.035em;
  padding-bottom: 0.06em;
  background: linear-gradient(180deg, #fff6e4 0%, #f0d6a4 45%, #c79c5b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font: 600 clamp(22px, 2.6vw, 34px)/1.15 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }

.hero__stage {
  --p: 0;
  position: relative; width: 100%; display: grid; place-items: start center;
  padding: clamp(24px, 5vh, 56px) var(--gutter) 0;
}
.hero__device {
  width: min(1040px, 88vw, (100svh - var(--nav) - 140px) * 1.31);
  transform: translate3d(0, calc((1 - var(--p)) * 16vh + var(--p) * -24vh), 0) scale(calc(0.9 + var(--p) * 0.1));
  transform-origin: 50% 0%;
  will-change: transform;
}
.ipad__sleep {
  position: absolute; inset: 0; background: #000; pointer-events: none;
  opacity: calc(0.78 - var(--p) * 1.4);
}
.hero__glow {
  position: absolute; left: 50%; top: 22%; width: min(1300px, 120vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, calc((1 - var(--p)) * 16vh));
  background: radial-gradient(closest-side, rgba(232, 197, 138, 0.22), rgba(232, 197, 138, 0.05) 60%, transparent);
  opacity: calc(0.25 + var(--p) * 0.75);
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- Aussage ---------- */

.statement { position: relative; height: 210vh; }
.statement__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; padding: 0 var(--gutter);
}
.statement__text {
  max-width: 980px;
  font: 600 clamp(30px, 4.4vw, 60px)/1.14 var(--font-display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.statement__text .w { color: var(--ink); opacity: 0.18; transition: opacity 0.12s linear; }

/* ---------- Der Tag (Stil „Draußen“) ---------- */

.day { position: relative; height: 640vh; }
.day__sticky {
  --ink-day: #f5f2ec; --ink-day-2: rgba(245, 242, 236, 0.66); --accent-day: #e8c58a;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  color: var(--ink-day);
}
.day__sky, .sky, .sky__stars { position: absolute; inset: 0; }
.sky { opacity: 0; will-change: opacity; }
.sky--dawn {
  opacity: 1;
  background:
    radial-gradient(900px 600px at 85% 105%, rgba(224, 122, 95, 0.32), transparent 70%),
    radial-gradient(1200px 900px at 0% 0%, rgba(74, 38, 92, 0.85), transparent 70%),
    linear-gradient(180deg, #24182c 0%, #150f1c 60%, #0b090f 100%);
}
.sky--morning {
  background:
    radial-gradient(900px 700px at 92% 0%, rgba(255, 214, 140, 0.75), transparent 70%),
    radial-gradient(1100px 900px at 0% 0%, rgba(176, 208, 240, 0.7), transparent 70%),
    linear-gradient(180deg, #e6e4dc 0%, #ebeae6 55%, #e6ebf0 100%);
}
.sky--day {
  background:
    radial-gradient(800px 600px at 90% 0%, rgba(255, 228, 160, 0.55), transparent 70%),
    radial-gradient(1200px 900px at 0% 0%, rgba(148, 199, 255, 0.6), transparent 70%),
    linear-gradient(180deg, #d4e3f3 0%, #e2e9f1 55%, #e6eef9 100%);
}
.sky--evening {
  background:
    radial-gradient(1000px 700px at 85% 100%, rgba(255, 163, 92, 0.6), transparent 70%),
    radial-gradient(1100px 900px at 0% 0%, rgba(190, 196, 228, 0.6), transparent 70%),
    linear-gradient(180deg, #dcdfe6 0%, #e7e1de 55%, #eadfd8 100%);
}
.sky--dusk {
  background:
    radial-gradient(900px 500px at 85% 105%, rgba(240, 138, 93, 0.28), transparent 70%),
    radial-gradient(1200px 900px at 0% 0%, rgba(92, 38, 96, 0.8), transparent 70%),
    linear-gradient(180deg, #2a1530 0%, #170d1a 60%, #0b080d 100%);
}
.sky--night {
  background:
    radial-gradient(1200px 900px at 0% 0%, rgba(24, 40, 92, 0.85), transparent 70%),
    radial-gradient(800px 700px at 100% 100%, rgba(12, 52, 70, 0.4), transparent 70%),
    linear-gradient(180deg, #0b1025 0%, #080b17 55%, #050711 100%);
}
.sky__stars {
  opacity: 0.6;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 26% 42%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 12%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 52% 30%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.3px 1.3px at 64% 8%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1px 1px at 72% 36%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 16%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 92% 44%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.1px 1.1px at 8% 64%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 46% 58%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 58% 76%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 96% 70%, rgba(255, 255, 255, 0.5), transparent 60%);
}

.day__grid {
  position: relative; height: 100%;
  max-width: 1320px; margin: 0 auto; padding: calc(var(--nav) + 4vh) var(--gutter) 6vh;
  display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.5fr);
  align-items: center; gap: clamp(28px, 5vw, 80px);
}
.day__copy { display: grid; gap: 18px; align-content: center; }
.day__eyebrow { color: var(--accent-day); }
.day__lead { color: var(--ink-day-2); max-width: 22em; }
.day .headline { font-size: clamp(40px, 5.2vw, 72px); }

.day__clock { display: grid; gap: 10px; margin-top: 8px; }
/* Uhrzeiten rollen wie ein Zählwerk durch ein maskiertes Fenster */
.day__times {
  position: relative; height: clamp(84px, 9.5vw, 136px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.day__time {
  position: absolute; left: 0; top: 0;
  font: 100 clamp(84px, 9.5vw, 136px)/1 var(--font-display);
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
  opacity: 0; will-change: opacity, transform;
}
.day__notes { position: relative; min-height: 3.2em; }
.day__note {
  position: absolute; left: 0; top: 0; right: 0;
  color: var(--ink-day-2); font-size: 17px; max-width: 24em; opacity: 0;
}
.day__time:first-child, .day__note:first-child { opacity: 1; }
.day__note strong { color: var(--ink-day); font-weight: 600; }

.day__rail { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-day-2); }
.day__rail li { opacity: 0.55; transition: opacity 0.3s, color 0.3s; }
.day__rail li.is-active { opacity: 1; color: var(--ink-day); }

.day__device { width: 100%; max-width: 860px; justify-self: end; }

/* ---------- Funktionen ---------- */

.features { padding-top: var(--section); }
.features__track { position: relative; height: 700vh; margin-top: 40px; }
.features__sticky {
  position: sticky; top: var(--nav);
  height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav));
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.5fr);
  grid-template-rows: 1fr auto;
  align-items: center; column-gap: clamp(28px, 5vw, 80px);
}
.features__copy { position: relative; align-self: center; min-height: 300px; }
.step {
  position: absolute; inset: 0; display: grid; align-content: center; gap: 16px;
  opacity: 0; will-change: opacity, transform;
}
.step:first-child { opacity: 1; }
.step__title { font: 600 clamp(32px, 3.6vw, 52px)/1.06 var(--font-display); letter-spacing: -0.014em; text-wrap: balance; }
.step p:not(.eyebrow) { color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 26em; }
.step sup a { color: var(--ink-3); text-decoration: none; font-size: 0.7em; }

.features__device { width: 100%; max-width: 900px; justify-self: end; }

.features__rail {
  grid-column: 1 / -1; display: flex; justify-content: center; gap: clamp(14px, 2.4vw, 32px);
  padding: 18px 0 clamp(18px, 4vh, 36px); font-size: 13px; color: var(--ink-3);
}
.features__rail li { position: relative; padding-top: 12px; transition: color 0.3s; }
.features__rail li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--hair);
}
.features__rail li::after {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; border-radius: 2px;
  width: calc(var(--fill, 0) * 100%); background: var(--accent);
}
.features__rail li.is-active { color: var(--ink); }

/* ---------- Klingel ---------- */

.bell { padding: var(--section) var(--gutter) 0; }
.bell__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr minmax(0, 0.9fr); align-items: center; gap: clamp(32px, 6vw, 96px);
}
.bell__copy { display: grid; gap: 22px; }

/* Kamera-Widget wie in der App: groß die Haustür (klingelt, live), klein Garten und Einfahrt (Standbild). Fehlt ein
   Foto, bleibt der Platzhalter der App (Kamera-Symbol auf dunklem Verlauf) stehen. */
.cams {
  justify-self: center; width: min(100%, 560px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 18px 18px 12px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--hair), 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.cams__label {
  grid-column: 1 / -1; padding: 0 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2);
}
.cam {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 20px;
  background: linear-gradient(160deg, #1a212d, #0b0e14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cam::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 34px; height: 24px; transform: translate(-50%, -50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='22' height='18' rx='4'/%3E%3Cpath d='M23 10l9-5v14l-9-5z'/%3E%3C/svg%3E");
}
.cam img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.cam::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0) 55%);
}
.cam--door { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.cam__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 12px 14px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.cam--door .cam__bar { padding: 16px 18px; }
.cam__info { display: grid; gap: 1px; color: rgba(255, 255, 255, 0.94); }
.cam__title { font: 600 16px/1.2 var(--font-display); }
.cam--door .cam__title { font-size: 22px; }
.cam__note { font-size: 12.5px; color: rgba(255, 255, 255, 0.74); }
.cam--door .cam__note { font-size: 14px; }
.cam__note--ring { color: var(--accent); font-weight: 600; }
.cam__badge {
  position: absolute; top: 12px; z-index: 3; height: 26px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.94); font-size: 12px; font-weight: 600;
}
.cam__badge--live { left: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.cam__badge--battery { right: 12px; }
.cam__badge svg { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.cam__badge svg .fill { fill: currentColor; stroke: none; }
.cam__dot { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; animation: live 1.6s ease-out infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.6); }
  100% { box-shadow: 0 0 0 8px rgba(255, 69, 58, 0); }
}
.cam__actions { display: flex; gap: 8px; }
.cam__action {
  height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94); font-size: 13px; font-weight: 600;
}
.cam__action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.cam__action--door svg { stroke: var(--accent); }
.cams__caption { grid-column: 1 / -1; text-align: right; padding: 0 4px; font-size: 11px; color: var(--ink-3); }
.cams__caption a { color: inherit; text-decoration: none; }

/* ---------- Noch mehr (Galerie) ---------- */

.more { padding-top: var(--section); }
.gallery { margin-top: 48px; }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 372px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start;
  display: grid; grid-template-rows: auto auto 1fr; gap: 10px;
  padding: 0 0 26px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px var(--hair);
}
.card__media {
  height: 300px; margin-bottom: 12px; overflow: hidden;
  display: grid; place-items: start center; padding: 22px 22px 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(232, 197, 138, 0.1), transparent 70%);
}
.card__media img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.card--glyph .card__media { place-items: center; padding: 0; }
.card__title { padding: 0 26px; font: 600 21px/1.2 var(--font-display); letter-spacing: 0.005em; }
.card p { padding: 0 26px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }

.glyph { position: relative; display: grid; place-items: center; width: 132px; aspect-ratio: 1; }
.glyph svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glyph--timer svg { transform: rotate(-90deg); }
.glyph--timer .ring-track { stroke: var(--hair); stroke-width: 3; }
.glyph--timer .ring-fill { stroke-width: 3; stroke-dasharray: 72 100; }
.glyph--timer span { position: absolute; font: 200 36px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.gallery__paddles {
  max-width: var(--max); margin: 4px auto 0; padding: 0 var(--gutter);
  display: flex; justify-content: flex-end; gap: 14px;
}
.paddle {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); display: grid; place-items: center;
  transition: background 0.2s, opacity 0.2s;
}
.paddle:hover { background: rgba(255, 255, 255, 0.2); }
.paddle:disabled { opacity: 0.35; cursor: default; }
.paddle svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.works {
  max-width: var(--max); margin: clamp(72px, 10vh, 110px) auto 0; padding: 0 var(--gutter);
  display: grid; gap: 18px; justify-items: center; text-align: center;
}
.works__label { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.works__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.works__list li {
  padding: 9px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--hair); background: var(--glass);
}

/* ---------- Stile ---------- */

.styles { padding-top: var(--section); text-align: center; }
.styles .section-head { justify-items: center; }
.styles .section-head .lead { max-width: 28em; }
.styles__device { width: min(980px, 88vw); margin: 56px auto 0; }

.swatches {
  margin: 40px auto 0; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 48px;
}
.swatches__group { display: grid; gap: 12px; justify-items: center; }
.swatches__label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.swatches__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.swatch {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 50% 50%, var(--ac) 0 34%, var(--bg) 36%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.swatch--sky { background: linear-gradient(160deg, #e6c48c 0%, #cfe2f6 40%, #2a1530 75%, #0b1025 100%); }
.styles__caption { margin-top: 22px; color: var(--ink-2); font-size: 17px; min-height: 1.5em; }
.styles__caption strong { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ---------- Datenschutz ---------- */

.values { padding: var(--section) var(--gutter) 0; }
.values__inner {
  max-width: 980px; margin: 0 auto; text-align: center;
  display: grid; gap: 22px; justify-items: center;
}
.values .lead { max-width: 30em; }
.zeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; margin: 36px 0 12px; }
.zeros li { display: grid; gap: 6px; justify-items: center; color: var(--ink-2); font-size: 19px; }
.zeros .numeral { color: var(--accent); }

/* ---------- Für die Wand ---------- */

.wall { padding-top: var(--section); }

/* Wand-Szene: Rendering der Wandhalterung (3:2, tools/wall_render.py) deckt die Ansicht – unten nachts, darüber am Tag.
   Auf dem Display liegt das scharfe Bildschirmfoto (--sx/--sy/--sw/--sh = Lage des Displays im Bild, aus
   media/wand-display.json). Erst groß und nachts, beim Scrollen zurück, die Sonne kommt an die Wand (site.js). */
.wall__scene { position: relative; height: 300vh; margin-bottom: var(--section); }
.wall__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.wall__frame, .article__frame { --sx: 37.53%; --sy: 31.22%; --sw: 24.94%; --sh: 26.16%; }
.wall__frame {
  position: absolute; left: 50%; top: 50%; aspect-ratio: 3 / 2;
  width: max(100vw, 150vh); width: max(100vw, 150svh);
  transform: translate(-50%, -50%); will-change: transform;
}
.wall__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall__screen {
  position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh);
  overflow: hidden; border-radius: 1.52% / 2.18%;   /* Displayecken des iPad Pro 11" (18 pt) */
}
.wall__screen img { display: block; width: 100%; height: 100%; }
.facts {
  max-width: var(--max); margin: 56px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
}
.fact { display: grid; gap: 16px; align-content: start; padding-top: 22px; box-shadow: inset 0 1px 0 var(--hair); }
.fact .numeral { font-size: clamp(54px, 6vw, 84px); }
.fact p { color: var(--ink-2); font-size: 17px; max-width: 20em; }

/* ---------- Fragen (Antworten aus content/faq-*.md, tools/build.py) ---------- */

.faq { padding-top: var(--section); }
.faq__list { max-width: var(--max); margin: 48px auto 0; padding: 0 var(--gutter); }   /* bündig mit dem Kopf */
.faq__item { box-shadow: inset 0 -1px 0 var(--hair); }
.faq__item:first-child { box-shadow: inset 0 1px 0 var(--hair), inset 0 -1px 0 var(--hair); }
.faq__q {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 clamp(19px, 1.9vw, 22px)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
/* „+“ wird beim Aufklappen zum „×“ */
.faq__q::after {
  content: "+"; flex: none; color: var(--accent); font-weight: 300; font-size: 1.5em; line-height: 0.8;
  transition: transform 0.3s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { max-width: 44em; padding-bottom: 24px; color: var(--ink-2); }
.faq__a a { color: var(--accent); }
.section-head .more-link { justify-self: start; }

/* ---------- Anleitung (content/ipad-an-der-wand.md, tools/build.py) ---------- */

.article__wall {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; margin: 0 0 40px;
  border-radius: 18px; background: var(--bg-raised); box-shadow: 0 0 0 1px var(--hair);
}
/* Dasselbe Wandbild wie auf der Startseite, ruhig und näher dran: die Mitte des Displays in der Bildmitte */
.article__frame {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 3 / 2;
  transform: translate(-50%, -44.3%);
}
.article h1 + p { color: var(--ink); font-size: 19px; }
.article__cta {
  margin-top: 48px; padding-top: 28px; box-shadow: inset 0 1px 0 var(--hair);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
}

/* ---------- Abschluss ---------- */

.cta { padding: var(--section) var(--gutter); }
.cta__inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  display: grid; justify-items: center; gap: 18px;
}
.cta__icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--hair); }
.cta__title {
  font: 600 clamp(48px, 7vw, 92px)/1 var(--font-display); letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff6e4 0%, #f0d6a4 45%, #c79c5b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em;
}
.cta .store-badge { margin-top: 10px; }
.fine { color: var(--ink-3); font-size: 14px; }
.cta__story a { color: var(--accent); text-decoration: none; }
.cta__story a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.footer { background: #0b0c10; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 36px; display: grid; gap: 12px; }
.footnotes { list-style: decimal; padding-left: 1.4em; }
.footer__note { max-width: 70em; }
.footer__bar {
  margin-top: 10px; padding-top: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
}
.footer__mark { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; }
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__bar a { text-decoration: none; color: var(--ink-2); }
.footer__bar a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Einblenden beim Scrollen ---------- */

.reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.facts .fact.reveal:nth-child(2) { transition-delay: 0.1s; }
.facts .fact.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 10vh, 96px) var(--gutter) var(--section); }
.legal h1 { font: 600 clamp(40px, 6vw, 64px)/1.05 var(--font-display); letter-spacing: -0.02em; margin-bottom: 28px; }
.legal h2 { font: 600 22px/1.25 var(--font-display); margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal a { color: var(--accent); }

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

@media (max-width: 1068px) {
  .localnav__links { gap: 18px; }
  .day__grid, .features__sticky { grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.4fr); }
}

@media (max-width: 834px) {
  .localnav__links { display: none; }

  .day__grid {
    grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start;
    padding-top: calc(var(--nav) + 3vh); gap: 18px;
  }
  .day__copy { gap: 10px; }
  .day .headline { font-size: clamp(32px, 7vw, 48px); }
  .day__lead { display: none; }
  .day__device { grid-row: 2; justify-self: center; max-width: 640px; }
  .day__times { height: clamp(64px, 14vw, 96px); }
  .day__time { font-size: clamp(64px, 14vw, 96px); }
  .day__note { font-size: 15px; }
  .day__rail { display: none; }

  .features__sticky {
    grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; align-content: start;
    padding-top: 3vh;
  }
  .features__device { grid-row: 1; justify-self: center; max-width: 640px; }
  .features__copy { grid-row: 2; min-height: 230px; margin-top: 22px; }
  .step { align-content: start; gap: 10px; }
  .features__rail { grid-row: 4; gap: 12px; font-size: 11px; }

  .bell__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 12px; }
  .hero__device { width: 94vw; }
  .zeros { gap: 8px; }
  .zeros li { font-size: 16px; }
  .features__rail li { font-size: 0; padding-top: 0; width: 28px; }
  .features__rail { gap: 8px; }
  .card__media { height: 250px; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .wall__scene { height: auto; }
  .wall__sticky { position: relative; height: 70vh; }
  .hero__copy, .hero__device, .hero__glow { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cam__dot { animation: none; }
  .faq__q::after { transition: none; }
  [data-style-screens] img, .statement__text .w { transition: none; }
}
