/* Stetiq-Website. Farben, Schrift und Bausteine folgen Stetiq/Design.swift der App:
   hell die Palette „Stufen“, dunkel die Palette „Chronograph“. */

@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F7F3EB;
  --dial-face: #FCFAF5;
  --field: #EEE7DA;
  --hairline: #E2D9C8;
  --hairline-soft: #EAE2D4;
  --tick: #D2C6B0;
  --ink: #121210;
  --ink-muted: #5E5646;
  --ink-faint: #7D7361;
  --ink-dim: #A89B82;
  --accent: #856E45;
  --primary-fill: #121210;
  --on-primary: #E4D1AD;
  --arc-1: #DDC89E;
  --arc-2: #9C8D70;
  --arc-3: #5E5646;
  --arc-4: #121210;
  --bezel: #121210;
  --gutter: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0F0F0E;
    --dial-face: #151513;
    --field: #1A1A18;
    --hairline: #2A2A27;
    --hairline-soft: #24241F;
    --tick: #3A3935;
    --ink: #ECEAE4;
    --ink-muted: #8C8A83;
    --ink-faint: #6E6C66;
    --ink-dim: #5A5852;
    --accent: #DDC89E;
    --primary-fill: #DDC89E;
    --on-primary: #0F0F0E;
    --arc-1: #DDC89E;
    --arc-2: #DDC89E;
    --arc-3: #DDC89E;
    --arc-4: #DDC89E;
    --bezel: #2A2A27;
  }
}

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 400; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: var(--primary-fill); color: var(--on-primary); border-radius: 999px; z-index: 10; }
.skip:focus { left: var(--gutter); }

/* Abschnittslabel: 10 pt Versalien mit 0,2 em Laufweite, wie SectionLabel in der App. */
.label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label.is-accent { color: var(--accent); }

.footnote { font-size: 12px; line-height: 1.6; color: var(--ink-faint); }

mark.todo { background: none; color: #A8352E; font-weight: 400; }

/* ---------- Kopf ---------- */

.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-header nav a { color: var(--ink-muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); text-decoration: none; }
.nav-wide { display: none; }

.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.lockup:hover { text-decoration: none; }
.lockup .mark { height: 26px; width: auto; }
.lockup span { font-size: 24px; font-weight: 300; letter-spacing: -0.01em; line-height: 1; }

.mark .s0 { fill: color-mix(in srgb, var(--mark, var(--accent)) 33%, var(--mark-ground, var(--bg))); }
.mark .s1 { fill: color-mix(in srgb, var(--mark, var(--accent)) 63%, var(--mark-ground, var(--bg))); }
.mark .s2 { fill: var(--mark, var(--accent)); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; white-space: nowrap; font-weight: 400; line-height: 1;
  transition: opacity 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.78; }
.btn-primary { height: 52px; padding-inline: 30px; font-size: 15px; background: var(--primary-fill); color: var(--on-primary); }
.btn-outline { height: 46px; padding-inline: 22px; font-size: 13px; border: 1px solid var(--accent); color: var(--accent); }
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { opacity: 1; }

/* ---------- Lünette ---------- */

.dial { position: relative; width: var(--size, 312px); max-width: 100%; aspect-ratio: 1; flex: none; }
.dial > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-ticks { fill: none; stroke: var(--tick); stroke-width: 10; stroke-dasharray: 2 13.708; }
.dial-face { fill: var(--dial-face); stroke: var(--hairline-soft); stroke-width: 3; }
.dial.is-open .dial-face { fill: none; stroke: none; }
.dial-arc {
  position: absolute; inset: 7.692%; border-radius: 50%;
  background: conic-gradient(
    var(--arc-1) 0,
    var(--arc-2) calc(var(--p) * 33.3%),
    var(--arc-3) calc(var(--p) * 66.6%),
    var(--arc-4) calc(var(--p) * 100%),
    transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 96.7%, #000 97.1%);
  mask: radial-gradient(farthest-side, transparent 96.7%, #000 97.1%);
}
.dial-content { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .dial { animation: dial-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes dial-in { from { --p: 0; } }
}

.stacked { display: grid; justify-items: center; gap: 12px; color: var(--ink); }
.stacked .mark { height: 56px; width: auto; }
.stacked span { font-size: 23px; font-weight: 300; letter-spacing: 0.02em; line-height: 1; }

/* ---------- Start: Hero ---------- */

.hero { padding-block: 34px 70px; overflow-x: clip; }
.hero-grid { display: grid; gap: 54px; align-items: center; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 9.4vw, 68px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero .lead { margin-top: 22px; max-width: 30em; font-size: 17px; color: var(--ink-muted); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero .footnote { margin-top: 18px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-visual .dial { position: absolute; --size: 480px; max-width: none; }

.phone {
  position: relative;
  width: 264px;
  padding: 8px;
  border-radius: 46px;
  background: var(--bezel);
  box-shadow: 0 34px 60px -34px rgba(18, 18, 16, 0.45);
}
.phone img { width: 100%; height: auto; border-radius: 38px; }

/* ---------- Start: Abschnitte ---------- */

.section { padding-block: 64px; border-top: 1px solid var(--hairline); }
.section-head { max-width: 640px; }
.section-head h2 { margin-top: 14px; font-size: clamp(28px, 5.4vw, 40px); font-weight: 200; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--ink-muted); }

/* Kennzahlen: große Zahl in ExtraLight, Einheit daneben, wie die Hero-Zahlen der App. */
.stats { display: grid; }
.stat { padding-block: 30px; border-bottom: 1px solid var(--hairline); }
.stat:last-child { border-bottom: 0; }
.stat .value { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.stat .value b { font-size: clamp(50px, 12vw, 64px); font-weight: 200; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.stat .value span { font-size: 16px; color: var(--ink-muted); }
.stat p:last-child { margin-top: 14px; font-size: 14px; color: var(--ink-muted); max-width: 26em; }

/* Haarlinien-Listen: ChronoSection + ChronoRow. */
.chrono-grid { margin-top: 44px; display: grid; gap: 44px 56px; }
.rows { margin-top: 12px; border-top: 1px solid var(--hairline); }
.row { display: flex; gap: 14px; align-items: flex-start; min-height: 54px; padding-block: 15px; border-bottom: 1px solid var(--hairline); }
.row .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ink-muted); }
.row strong { display: block; font-size: 15px; line-height: 1.45; color: var(--ink); }
.row span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.row.is-accent .icon { color: var(--accent); }

.split { display: grid; gap: 40px; }

/* Fragen und Antworten: aufklappbar wie „Hilfe und FAQ“ in der App. */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; gap: 14px; justify-content: space-between; align-items: flex-start;
  padding-block: 17px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: 5px 4px 0 0;
  border-right: 1.4px solid var(--ink-dim); border-bottom: 1.4px solid var(--ink-dim);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; border-color: var(--accent); }
.faq details > div { padding: 0 26px 18px 0; font-size: 14px; line-height: 1.75; color: var(--ink-muted); }
.faq details > div p + p, .faq details > div ol { margin-top: 10px; }

.closing { text-align: center; }
.closing .dial { margin-inline: auto; --size: 220px; }
.closing h2 { margin-top: 34px; font-size: clamp(28px, 5.4vw, 40px); font-weight: 200; letter-spacing: -0.025em; line-height: 1.15; }
.closing p { margin: 14px auto 0; max-width: 30em; color: var(--ink-muted); }
.closing .btn { margin-top: 30px; }

/* ---------- Textseiten ---------- */

.page { padding-block: 26px 80px; }
.page-head { max-width: 720px; }
.page-head h1 { margin-top: 14px; font-size: clamp(32px, 7vw, 46px); font-weight: 200; line-height: 1.12; letter-spacing: -0.03em; }
.page-head p { margin-top: 16px; color: var(--ink-muted); }

.prose { max-width: 720px; margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--ink-muted); }
.prose h2 {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--hairline);
  font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted);
}
.prose h3 { margin-top: 26px; font-size: 16px; font-weight: 400; color: var(--ink); }
.prose p { margin-top: 14px; }
.prose h2 + p, .prose h3 + p, .prose .first { color: var(--ink); }
.prose ul, .prose ol { margin-top: 12px; padding-left: 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 6px; padding-left: 4px; }
.prose li::marker { color: var(--ink-dim); }
.prose address { font-style: normal; margin-top: 14px; color: var(--ink); }
.prose .rows { margin-top: 18px; padding-left: 0; list-style: none; }
.prose .row { margin-top: 0; padding-left: 0; }
.prose .faq { margin-top: 18px; }

.steps { counter-reset: step; margin-top: 12px; padding: 0 !important; list-style: none !important; border-top: 1px solid var(--hairline); }
.steps li { counter-increment: step; display: flex; gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); }
.steps li::before { content: counter(step); flex: none; width: 22px; font-weight: 200; font-size: 22px; line-height: 1.2; color: var(--accent); }

.notfound { text-align: center; padding-block: 60px 100px; }
.notfound .dial { margin-inline: auto; --size: 260px; }
.notfound .dial b { font-size: 64px; font-weight: 200; letter-spacing: -0.04em; line-height: 1; }
.notfound h1 { margin-top: 34px; font-size: 28px; font-weight: 300; }
.notfound p { margin-top: 12px; color: var(--ink-muted); }
.notfound .btn { margin-top: 28px; }

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

.site-footer { border-top: 1px solid var(--hairline); padding-block: 48px 40px; }
.footer-grid { display: grid; gap: 36px; }
.footer-grid p:not(.label) { margin-top: 14px; max-width: 24em; font-size: 14px; color: var(--ink-muted); }
.footer-grid nav { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer-grid nav .label { margin-bottom: 4px; }
.footer-grid nav a { color: var(--ink); }
.footer-grid nav a[aria-current] { color: var(--accent); }
.site-footer > .wrap > .footnote { margin-top: 44px; }

/* ---------- Breiter ---------- */

@media (min-width: 640px) {
  :root { --gutter: 40px; }
  .nav-wide { display: inline; }
  .stats { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .stat { border-bottom: 0; padding-block: 8px; }
  .stat .value b { font-size: clamp(34px, 4.7vw, 60px); }
  .stat + .stat { border-left: 1px solid var(--hairline); padding-left: 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding-block: 40px 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero-visual { min-height: 640px; }
  .hero-visual .dial { --size: 600px; }
  .phone { width: 290px; }
  .section { padding-block: 92px; }
  .chrono-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}
