/* hoofolio.app – Aufbau und Raster wie hufschlag.app (Owner 04.11.2026), Farben, Schriften und Formen aus dem
   Hoofolio-Designsystem (hoofolio/lib/src/theme/hoofolio_colors.dart, Stitch-Vorlage 04.11.2026). */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/YoungSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("/assets/fonts/YsabeauOffice-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("/assets/fonts/YsabeauOffice-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("/assets/fonts/YsabeauOffice-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("/assets/fonts/YsabeauOffice-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f6f0ec;          /* Leinen */
  --surface: #fffcfa;     /* Baumwolle */
  --surface2: #f0e3ec;    /* Heideblüte */
  --ink: #2e2133;         /* Brombeertinte */
  --muted: #6b5a6e;
  --border: #8e7c8a;
  --line: #e6dadb;
  --primary: #7a4a73;     /* Heide: einziger gefüllter Knopf */
  --on-primary: #ffffff;
  --accent: #4a5fa3;      /* Kornblume: Lesebändchen, Stempel, Links */
  --accent-soft: #e6eaf6;
  --done: #4b6b56;        /* Salbei: nur erledigt/gesichert */
  --done-soft: #e2ebe3;
  --decor: #d9875f;       /* Apricot: nur Deko */
  --night: #1c1820;       /* Nachtstall: Galerie */
  --night-card: #2b2431;
  --night-line: #3b3241;
  --night-ink: #f1e8ee;
  --night-muted: #bbaaba;
  --night-accent: #93a3de;
  --night-primary: #d3a8ca;
  --shadow: 0 10px 30px -18px rgba(46, 33, 51, 0.35);
  /* Ein Rahmen- und Schattensystem fuer alle Telefonansichten (Kimi-Review 04.11.2026): Rahmen, Radius und Schatten
     wachsen mit der Breite --pw, damit kleine und grosse Ansichten gleich tief wirken. */
  --phone-edge: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Ysabeau Office", "Segoe UI", system-ui, sans-serif;
  /* Fellfarben (nur Ring und Steppung, nie Text) */
  --c-fuchs: #b5643c; --c-brauner: #6b4a3a; --c-rappe: #2a2428; --c-schimmel: #cfcbc6; --c-palomino: #d9b36e; --c-schecke: #8e6b57;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1820; --surface: #2b2431; --surface2: #3f2f3f; --ink: #f1e8ee; --muted: #bbaaba; --border: #8a7888;
    --line: #3b3241; --primary: #d3a8ca; --on-primary: #24182a; --accent: #93a3de; --accent-soft: #2c3350;
    --done: #a3c2ad; --done-soft: #25302a; --night: #141117; --night-card: #231d28; --night-line: #342b3a;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
h2 { font-size: 60px; line-height: 1.08; overflow-wrap: break-word; }
p { line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.content-width { max-width: 960px; width: calc(100% - 80px); margin-inline: auto; }
.wide-width { max-width: 1088px; width: calc(100% - 80px); margin-inline: auto; }
.overline { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; margin-bottom: 22px; color: var(--muted); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Glasnavigation */
.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav-pill {
  pointer-events: auto; min-height: 64px; display: flex; align-items: center; gap: 25px; padding: 9px 14px 9px 24px;
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
.brand { display: flex; min-height: 44px; align-items: center; gap: 9px; font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-download {
  position: relative; display: flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 99px;
  background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-download::after { content: ""; position: absolute; inset: -6px 0; }
.nav-download:hover { text-decoration: none; filter: brightness(1.08); }
.lang-menu { position: relative; font-size: 14px; font-weight: 600; color: var(--muted); }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; cursor: pointer; padding-inline: 6px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: -10px; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 150px; }
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); }
.lang-menu a:hover { background: var(--surface2); text-decoration: none; }
.lang-menu a[aria-current] { font-weight: 700; }

/* Hero */
.hero { position: relative; overflow: clip; }
.hero-quilt {
  position: absolute; z-index: -1; inset: 0 0 auto; height: 620px;
  background-image:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--primary) 9%, transparent) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--primary) 9%, transparent) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(#000 0%, #0008 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #0008 45%, transparent 100%);
}
.hero-copy { position: relative; z-index: 3; text-align: center; padding: 142px 24px 0; }
.hero-icon { width: 92px; height: 92px; border-radius: 24px; margin: 0 auto 48px; box-shadow: 0 12px 30px -12px rgba(46, 33, 51, 0.45); }
.hero h1 { font-size: 66px; line-height: 1.06; max-width: 1100px; margin: auto; }
@media (min-width: 761px) { .hero h1 span { white-space: nowrap; } }
.hero-kicker { display: block; font-family: var(--sans); font-size: 20px; line-height: 1.2; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.hero h1 span:last-of-type { color: var(--primary); }
.hero-copy > p { font-size: 20px; line-height: 1.6; max-width: 620px; margin: 22px auto 26px; color: var(--ink); }
.platforms { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.platform {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; width: 236px; padding: 6px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; line-height: 1.2;
}
.platform small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
a.platform:hover { text-decoration: none; transform: translateY(-2px); }
.hero-art { margin: 64px 0 0; position: relative; }
.hero-stage {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0;
  width: min(100%, 1600px); margin: 0 auto; padding: 0 24px 56px;
}
.arch { display: block; overflow: hidden; border-radius: 200px 200px 24px 24px; background: var(--surface2); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); pointer-events: none; }
.arch-hero { width: clamp(300px, 36vw, 560px); aspect-ratio: 2 / 3; z-index: 1; }
.hero-stage .phone { --pw: clamp(190px, 17vw, 300px); z-index: 2; margin-bottom: 0; }
.hero-stage .phone-left { margin-right: calc(var(--pw) * -0.32); transform: rotate(-4deg); }
.hero-stage .phone-right { margin-left: calc(var(--pw) * -0.32); transform: rotate(4deg); margin-bottom: 72px; }

/* Das loest Hoofolio */
.why { padding: 150px 0 40px; }
.why-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.why-head h2 { margin-bottom: 22px; }
.why-head > p:last-child { font-size: 19px; color: var(--muted); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 0; }
/* Subgrid: Symbol, Problem, Lage und Hilfe stehen in allen Karten einer Reihe auf gleicher Hoehe. */
.why-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 14px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px 28px; box-shadow: var(--shadow); }
.why-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--surface2); color: var(--primary); }
.why-ic .ic { width: 34px; height: 34px; }
.why-card h3 { font-size: 25px; line-height: 1.22; margin-top: 4px; }
.why-situation { font-size: 16px; color: var(--muted); }
.why-fix { padding-top: 16px; border-top: 1px solid var(--line); display: grid; align-content: start; gap: 8px; }
.why-fix-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--done); }
.why-fix-label .ic { width: 18px; height: 18px; }
.why-fix p:not(.why-fix-label) { font-size: 16px; line-height: 1.55; }
.why-fix .why-plan { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--primary); }
.why-plan .plus-mark { background: var(--primary); color: var(--on-primary); }
.why-note { text-align: center; margin: 36px auto 0; max-width: 640px; }

/* Überblick */
.overview { padding: 170px 0 140px; }
.overview h2 { font-size: 58px; line-height: 1.1; margin-bottom: 64px; }
.overview h2 .soft { color: var(--muted); }
.nb { white-space: nowrap; }
.overview > .overline { margin-bottom: 20px; }
.coat-row { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.coat-row li { display: grid; justify-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.coat-ring { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--coat, var(--border)); }
.overview .small { max-width: 720px; margin-top: 8px; }
.key-facts { list-style: none; margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.key-facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 6px; color: var(--primary); }
.key-facts span { font-size: 15px; color: var(--muted); line-height: 1.45; display: block; }

.coat-fuchs { --coat: var(--c-fuchs); } .coat-brauner { --coat: var(--c-brauner); } .coat-rappe { --coat: var(--c-rappe); }
.coat-schimmel { --coat: var(--c-schimmel); } .coat-palomino { --coat: var(--c-palomino); } .coat-schecke { --coat: var(--c-schecke); }

/* Fristen (Lernen bei Hufschlag) */
.learn { position: relative; min-height: 900px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.learn-copy { position: relative; z-index: 3; padding-bottom: 40px; }
.learn-copy h2 { margin-bottom: 27px; font-size: 64px; }
.learn-copy > p:not(.overline) { font-size: 18px; color: var(--muted); max-width: 420px; }
.feature-points { list-style: none; margin: 30px 0 0; padding: 0; font-size: 16px; }
.feature-points li { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.feature-points .pt { color: var(--done); }
.detail-art { position: relative; margin: 0; height: 820px; }
.arch-detail { position: absolute; right: calc((100vw - min(1088px, 100vw - 80px)) / -2 + 40px); top: 0; width: clamp(380px, 38vw, 600px); aspect-ratio: 2 / 3; }
.detail-art .phone-detail { --pw: clamp(220px, 19vw, 300px); position: absolute; left: 0; bottom: 30px; transform: rotate(-3deg); z-index: 2; }

/* Probier es aus */
.try { padding: 130px 0 150px; text-align: center; }
.try h2 { margin-bottom: 44px; font-size: 56px; }
.demo { max-width: 520px; margin: 0 auto; }
.demo-card {
  position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 28px 24px; box-shadow: var(--shadow);
}
.ribbon { position: absolute; top: -8px; right: 36px; width: 22px; height: 64px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.demo-who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-style: italic; color: var(--muted); }
.demo-mini { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--coat); }
.demo-title { font-family: var(--serif); font-size: 32px; margin: 14px 0 8px; }
.demo-when { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; }
.demo-when.is-done { color: var(--done); }
.demo-last { color: var(--muted); font-size: 15px; margin-top: 4px; }
.demo-actions { display: grid; gap: 6px; margin-top: 24px; }
.btn-primary {
  min-height: 56px; border: 0; border-radius: 16px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 17px; padding: 0 20px;
}
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.btn-text { min-height: 48px; border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 16px; }
.demo-stamp {
  position: absolute; right: 26px; top: 86px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 22px; opacity: 0; transform: scale(1.15) rotate(-12deg);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 7px var(--accent);
}
.demo-stamp span { transform: translateY(1px); }
.demo.is-done .demo-stamp { opacity: 0.92; transform: scale(1) rotate(-12deg); transition: transform 220ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease-out; }
.demo-status { margin-top: 22px; min-height: 3.2em; color: var(--muted); }
.demo-source, .demo-noscript { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Nachtstall-Galerie */
.app-hub { background: var(--night); color: var(--night-ink); padding: 150px 0 130px; overflow: hidden; }
.hub-heading { text-align: center; margin: 0 auto 70px; width: calc(100% - 40px); }
.hub-heading h2 { font-size: 104px; line-height: 1.04; margin-bottom: 28px; }
.hub-heading > p:last-child { font-size: 19px; color: var(--night-muted); }
.app-hub .accent { color: var(--night-accent); }
.gallery-wrap { position: relative; }
.gallery-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(40px, calc((100vw - 1280px) / 2)); scroll-padding-inline: max(40px, calc((100vw - 1280px) / 2));
}
.gallery-track::-webkit-scrollbar { display: none; }
.screen-card { flex: 0 0 340px; scroll-snap-align: start; background: var(--night-card); border: 1px solid var(--night-line); border-radius: 28px; text-align: center; padding: 28px 32px 32px; }
.screen-card h3 { font-size: 26px; margin-bottom: 25px; }
.screen-card .phone { --pw: 235px; margin: auto; }
.screen-card > p { font-size: 15px; color: var(--night-muted); line-height: 1.6; margin-top: 25px; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 14px; max-width: 1280px; margin: 28px auto 0; padding-inline: 40px; }
.gallery-controls button { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; background: #3b3241; border: 0; color: var(--night-ink); border-radius: 50%; }
.gallery-controls button:hover:not([aria-disabled="true"]) { background: #4a3f52; }
.gallery-controls button[aria-disabled="true"] { color: #8a7888; background: #2a232f; cursor: default; }
.gallery-note { text-align: center; font-size: 13px; color: var(--night-muted); margin: 24px 20px 0; }

/* Vergleich */
.comparison { max-width: 800px; padding-top: 160px; text-align: center; }
.comparison h3 { font-size: 34px; margin-bottom: 16px; }
.comparison > p:not(.overline) { color: var(--night-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }
.comparison table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 50px 0 35px; text-align: left; font-size: 15px; background: var(--night-card); border: 1px solid var(--night-line); border-radius: 24px; overflow: hidden; }
.comparison tbody tr:last-child > * { border-bottom: 0; }
.comparison th, .comparison td { border-bottom: 1px solid var(--night-line); padding: 17px 14px; font-weight: 400; }
.comparison th:first-child { padding-left: 22px; }
.comparison thead th { vertical-align: bottom; padding-bottom: 24px; font-size: 17px; font-family: var(--serif); }
.comparison thead th:first-child { color: var(--night-muted); font-family: var(--sans); font-size: 15px; }
.comparison thead img, .comparison thead .plus-mark { margin: 0 auto 12px; border-radius: 9px; }
.plus-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--night-primary); color: #24182a; flex: none; }
.plus-mark .ic { width: 26px; height: 26px; }
.plus-mark-sm { width: 22px; height: 22px; border-radius: 6px; }
.plus-mark-sm .ic { width: 17px; height: 17px; }
.plus-mark-lg { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px; }
.plus-mark-lg .ic { width: 38px; height: 38px; }
.nav-plus { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; background: var(--primary); color: var(--on-primary); }
.nav-plus .ic { width: 17px; height: 17px; }
.cell-plan { display: none; }
.comparison thead span:not(.plus-mark) { display: block; font-size: 12px; font-family: var(--sans); color: var(--night-muted); margin-top: 6px; }
.comparison thead .plan-plus span:not(.plus-mark) { color: var(--night-primary); }
.comparison td, .comparison thead th:not(:first-child) { width: 24%; text-align: center; }
.comparison tbody th { color: #d9ccd6; }
.comparison tbody td { color: var(--night-ink); font-weight: 600; }
.comparison .plan-plus { background: color-mix(in srgb, var(--night-primary) 9%, transparent); }
.comparison .upgrade .plan-plus { color: var(--night-primary); }
.comparison .comparison-note { font-size: 14px; line-height: 1.8; }
.comparison a { color: var(--night-accent); text-decoration: underline; text-underline-offset: 2px; }

/* App-Ansichten in Telefonrahmen */
.phone {
  --pw: 235px; width: var(--pw); container-type: inline-size; overflow: hidden; background: var(--bg);
  border: calc(var(--pw) * 0.03) solid #2a2428; border-radius: calc(var(--pw) * 0.145);
  box-shadow: var(--phone-edge), 0 calc(var(--pw) * 0.1) calc(var(--pw) * 0.2) calc(var(--pw) * -0.08) rgba(28, 24, 32, 0.5),
    0 calc(var(--pw) * 0.025) calc(var(--pw) * 0.05) calc(var(--pw) * -0.02) rgba(28, 24, 32, 0.22);
}
.phone-screen { aspect-ratio: 390 / 844; overflow: hidden; }

.s {
  --p: calc(100cqw / 390); position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: calc(var(--p) * 15); line-height: 1.3; text-align: left;
}
.s b { font-weight: 600; }
.s .ic { width: calc(var(--p) * 22); height: calc(var(--p) * 22); }
.s-status-bar { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--p) * 14) calc(var(--p) * 28) calc(var(--p) * 6); font-weight: 700; font-size: calc(var(--p) * 15); }
.s-sys { display: flex; gap: calc(var(--p) * 4); }
.s-sys i { display: block; width: calc(var(--p) * 16); height: calc(var(--p) * 10); border-radius: calc(var(--p) * 2); background: currentColor; opacity: 0.85; }
.s-sys i:first-child { width: calc(var(--p) * 14); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.s-sys i:last-child { width: calc(var(--p) * 24); }
.s-body { flex: 1; padding: calc(var(--p) * 10) calc(var(--p) * 20) 0; display: flex; flex-direction: column; gap: calc(var(--p) * 12); overflow: hidden; }
.s-over { font-size: calc(var(--p) * 12); letter-spacing: 0.12em; font-weight: 600; color: var(--muted); }
.s-hello { font-family: var(--serif); font-size: calc(var(--p) * 30); color: var(--primary); margin-top: calc(var(--p) * -6); }
.s-h { font-family: var(--serif); font-size: calc(var(--p) * 32); margin-top: calc(var(--p) * -4); }
.s-saved, .s-when { display: flex; align-items: center; gap: calc(var(--p) * 6); font-size: calc(var(--p) * 14); color: var(--muted); }
.s-saved .ic { color: var(--done); width: calc(var(--p) * 18); height: calc(var(--p) * 18); }
.s-chips { display: flex; gap: calc(var(--p) * 8); }
.s-chip { display: inline-flex; align-items: center; gap: calc(var(--p) * 6); padding: calc(var(--p) * 6) calc(var(--p) * 12); border-radius: 999px; border: 1px solid var(--border); font-weight: 600; font-size: calc(var(--p) * 14); }
.s-chip.is-on { background: var(--surface2); border-color: transparent; }
.s-mini { width: calc(var(--p) * 24); height: calc(var(--p) * 24); border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 0 0 calc(var(--p) * 1.5) var(--surface), 0 0 0 calc(var(--p) * 3) var(--coat); }
.s-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--p) * 24); padding: calc(var(--p) * 16) calc(var(--p) * 18); }
.s-due { box-shadow: var(--shadow); padding-top: calc(var(--p) * 18); }
.s-ribbon { position: absolute; top: calc(var(--p) * -5); right: calc(var(--p) * 26); width: calc(var(--p) * 16); height: calc(var(--p) * 44); background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.s-who { display: flex; align-items: center; gap: calc(var(--p) * 8); font-style: italic; color: var(--muted); font-size: calc(var(--p) * 15); }
.s-head-who { margin-top: calc(var(--p) * 2); }
.s-title { font-family: var(--serif); font-size: calc(var(--p) * 26); margin: calc(var(--p) * 6) 0 calc(var(--p) * 4); }
.s-title-sm { font-size: calc(var(--p) * 21); }
.s-due .s-when { color: var(--ink); font-weight: 600; font-size: calc(var(--p) * 16); }
.s-last { font-size: calc(var(--p) * 13); color: var(--muted); margin-top: calc(var(--p) * 2); }
.s-btn { display: flex; justify-content: center; align-items: center; min-height: calc(var(--p) * 50); margin-top: calc(var(--p) * 12); border-radius: calc(var(--p) * 16); background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: calc(var(--p) * 16); }
.s-body > .s-btn { margin-top: auto; margin-bottom: calc(var(--p) * 10); }
.s-text-btn { display: block; text-align: center; color: var(--accent); font-weight: 700; margin-top: calc(var(--p) * 8); }
.s-section { font-size: calc(var(--p) * 12); letter-spacing: 0.12em; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-top: calc(var(--p) * 2); }
.s-rows, .s-cards, .s-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--p) * 10); }
.s-rows li, .s-cards li { display: flex; align-items: center; gap: calc(var(--p) * 12); }
.s-row-ic { color: var(--ink); }
.s-row-main { display: grid; flex: 1; min-width: 0; }
.s-row-main span { font-size: calc(var(--p) * 13); color: var(--muted); font-style: italic; }
.s-row-when { font-size: calc(var(--p) * 13); font-weight: 600; text-align: right; display: flex; align-items: center; gap: calc(var(--p) * 4); }
.s-row-when .ic { width: calc(var(--p) * 18); height: calc(var(--p) * 18); }
.s-here { display: flex; align-items: center; gap: calc(var(--p) * 10); font-size: calc(var(--p) * 14); font-weight: 600; padding: calc(var(--p) * 12) calc(var(--p) * 16); }
.s-nav { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: calc(var(--p) * 8) calc(var(--p) * 10) calc(var(--p) * 22); background: var(--surface); border-top: 1px solid var(--line); }
.s-nav-item, .s-nav-add { display: grid; justify-items: center; gap: calc(var(--p) * 4); font-size: calc(var(--p) * 11); color: var(--muted); }
.s-nav-item b, .s-nav-add b { font-weight: 600; }
.s-pill { display: grid; place-items: center; width: calc(var(--p) * 56); height: calc(var(--p) * 30); border-radius: 999px; }
.s-nav-item.is-active { color: var(--ink); }
.s-nav-item.is-active .s-pill { background: var(--surface2); }
.ic .tone { stroke: none; fill: none; }
.s-nav-item.is-active .ic .tone { fill: currentColor; fill-opacity: 0.22; }
.s-nav-add .ic { box-sizing: content-box; padding: calc(var(--p) * 12); border-radius: 50%; background: var(--primary); color: var(--on-primary); margin-top: calc(var(--p) * -18); }
.s-quilt {
  position: relative; display: grid; justify-items: center; text-align: center; padding: calc(var(--p) * 14) calc(var(--p) * 20) calc(var(--p) * 16);
  background-color: color-mix(in srgb, var(--coat) 10%, var(--bg));
  background-image:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--coat) 16%, transparent) 0 1px, transparent 1px calc(var(--p) * 22)),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--coat) 16%, transparent) 0 1px, transparent 1px calc(var(--p) * 22));
}
.s-portrait { width: calc(var(--p) * 104); height: calc(var(--p) * 104); border-radius: 50%; object-fit: cover; object-position: 50% 26%; box-shadow: 0 0 0 calc(var(--p) * 2) var(--surface), 0 0 0 calc(var(--p) * 5) var(--coat); }
.s-name { font-family: var(--serif); font-size: calc(var(--p) * 38); margin-top: calc(var(--p) * 10); line-height: 1.05; }
.s-meta { font-size: calc(var(--p) * 13); color: var(--muted); margin-top: calc(var(--p) * 4); }
.s-tabs { display: flex; gap: calc(var(--p) * 6); padding: calc(var(--p) * 10) calc(var(--p) * 16) 0; font-size: calc(var(--p) * 13); font-weight: 600; color: var(--muted); }
.s-tabs span { padding: calc(var(--p) * 6) calc(var(--p) * 10); border-radius: 999px; white-space: nowrap; }
.s-tabs .is-on { background: var(--surface2); color: var(--ink); }
.s-timeline { position: relative; gap: calc(var(--p) * 14); }
.s-timeline li { display: grid; grid-template-columns: calc(var(--p) * 40) calc(var(--p) * 14) 1fr; align-items: start; gap: calc(var(--p) * 6); position: relative; }
.s-timeline::before { content: ""; position: absolute; left: calc(var(--p) * 52); top: calc(var(--p) * 8); bottom: calc(var(--p) * 8); width: 1px; background: var(--line); }
.s-date { display: grid; justify-items: center; font-size: calc(var(--p) * 10); letter-spacing: 0.1em; font-weight: 600; color: var(--muted); }
.s-date b { font-family: var(--serif); font-weight: 400; font-size: calc(var(--p) * 22); letter-spacing: 0; color: var(--ink); line-height: 1; }
.s-dot { width: calc(var(--p) * 9); height: calc(var(--p) * 9); border-radius: 50%; background: var(--primary); margin: calc(var(--p) * 7) auto 0; position: relative; z-index: 1; }
.s-entry { display: grid; gap: calc(var(--p) * 2); }
.s-entry > span { font-size: calc(var(--p) * 13); color: var(--muted); }
.s-attach { display: inline-flex !important; width: max-content; align-items: center; gap: calc(var(--p) * 4); margin-top: calc(var(--p) * 4); padding: calc(var(--p) * 3) calc(var(--p) * 9); border-radius: 999px; background: var(--done-soft); color: var(--done) !important; font-weight: 600; }
.s-attach .ic { width: calc(var(--p) * 15); height: calc(var(--p) * 15); }
.s-stamp { position: absolute; right: 0; top: calc(var(--p) * -4); width: calc(var(--p) * 54); height: calc(var(--p) * 54); border-radius: 50%; border: calc(var(--p) * 2) solid var(--accent); transform: rotate(-12deg); opacity: 0.9; display: grid; place-items: center; }
.s-stamp span { width: calc(var(--p) * 26); height: calc(var(--p) * 13); border: calc(var(--p) * 3) solid var(--accent); border-top: 0; border-radius: 0 0 calc(var(--p) * 14) calc(var(--p) * 14); }
.s-cards { gap: calc(var(--p) * 10); }
.s-cards .s-card { padding: calc(var(--p) * 12) calc(var(--p) * 14); }
.s-tile { display: grid; place-items: center; width: calc(var(--p) * 42); height: calc(var(--p) * 42); border-radius: calc(var(--p) * 14); background: var(--surface2); flex: none; }
.s-log li { padding: calc(var(--p) * 2) 0; }
.s-log { margin: calc(var(--p) * 12) 0 calc(var(--p) * 10); }
.s-done-ic { display: grid; place-items: center; width: calc(var(--p) * 30); height: calc(var(--p) * 30); border-radius: 50%; background: var(--done-soft); color: var(--done); }
.s-done-ic .ic { width: calc(var(--p) * 18); height: calc(var(--p) * 18); }
.s table { width: 100%; border-collapse: collapse; font-size: calc(var(--p) * 14); margin: calc(var(--p) * 6) 0 calc(var(--p) * 10); }
.s th { text-align: left; font-weight: 600; padding: calc(var(--p) * 5) 0; }
.s td { color: var(--muted); padding: calc(var(--p) * 5) 0 calc(var(--p) * 5) calc(var(--p) * 8); }
.s tr + tr > * { border-top: 1px solid var(--line); }
.s-backup .s-cards .plus-mark-sm { margin-left: auto; width: calc(var(--p) * 24); height: calc(var(--p) * 24); border-radius: calc(var(--p) * 7); }
.s-backup .s-cards .plus-mark-sm .ic { width: calc(var(--p) * 18); height: calc(var(--p) * 18); }
.s-invite { display: flex; align-items: center; gap: calc(var(--p) * 14); }
.s-qr { display: grid; grid-template-columns: repeat(7, 1fr); width: calc(var(--p) * 64); height: calc(var(--p) * 64); flex: none; padding: calc(var(--p) * 4); background: #fff; border-radius: calc(var(--p) * 8); }
.s-qr i { display: block; }
.s-qr .q0, .s-qr .q2 { background: #2e2133; }

/* Immer dabei */
.everywhere { text-align: center; padding: 140px 0 120px; }
.everywhere h2 { font-size: 60px; }
.everywhere > p:not(.overline) { max-width: 640px; margin: 25px auto; font-size: 18px; color: var(--muted); }
.three-phones { display: flex; justify-content: center; align-items: center; margin: 85px auto 35px; padding: 20px; }
.three-phones .phone { --pw: clamp(173px, 20.3vw, 293px); flex: none; }
.three-phones .phone:first-child { margin-right: calc(var(--pw) * -0.48); }
.three-phones .phone:last-child { margin-left: calc(var(--pw) * -0.48); }
.three-phones .phone:nth-child(2) { --pw: clamp(194px, 23.8vw, 343px); z-index: 2; }
.everywhere > p.small { font-size: 14px; }

/* Bento */
.principles { background: color-mix(in srgb, var(--surface2) 55%, var(--bg)); padding: 125px 0; }
.principle-grid { display: grid; grid-template-columns: 1fr 0.6fr 0.6fr; grid-template-rows: auto auto; gap: 24px; }
.principle-grid article { background: var(--surface); padding: 32px; border-radius: 24px; border: 1px solid var(--line); }
.principle-grid .principle-main { grid-row: span 2; background: #2e2133; color: #f1e8ee; border-color: transparent; }
.principle-main h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); hyphens: auto; -webkit-hyphens: auto; margin-bottom: 28px; }
.principle-grid p:not(.overline) { font-size: 16px; color: var(--muted); line-height: 1.6; }
.principle-main p:not(.overline) { color: #d6c8d3; }
.principle-main .overline { color: #c7cff0; }
.principle-grid h3 { font-size: 30px; line-height: 1.12; margin-bottom: 15px; }
.principle-wide { grid-column: span 2; }
.principle-grid .principle-blue { background: var(--accent-soft); }
.principle-blue .overline, .principle-blue p:not(.overline) { color: var(--ink) !important; }
.principle-grid .overline { font-size: 11px; }
.principle-news ul { margin: 0; padding-left: 20px; font-size: 16px; color: var(--muted); line-height: 1.55; display: grid; gap: 8px; }
.principle-figure img { border-radius: 18px; margin-bottom: 20px; background: var(--surface2); width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Abschluss */
.download { text-align: center; padding: 145px 0 0; overflow: clip; }
.download-copy { position: relative; z-index: 2; width: calc(100% - 40px); margin: auto; }
.download h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
.download-copy > p { font-size: 19px; color: var(--muted); margin: 20px auto 28px; }
.download-art { margin: 70px 0 0; display: flex; justify-content: center; align-items: flex-end; padding: 0 20px; }
.download-art .arch { width: clamp(180px, 24vw, 340px); aspect-ratio: 2 / 3; flex: none; }
.download-art .arch-0 { transform: rotate(-7deg) translateY(30px); margin-right: -4vw; }
.download-art .arch-1 { z-index: 2; width: clamp(210px, 28vw, 400px); }
.download-art .arch-2 { transform: rotate(7deg) translateY(30px); margin-left: -4vw; }

/* FAQ */
.faq { max-width: 832px; width: calc(100% - 80px); margin: auto; padding: 145px 0 140px; }
.faq h2 { font-size: 68px; margin-bottom: 55px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 21px; font-weight: 600; min-height: 80px; padding: 16px 0; cursor: pointer; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 150ms ease-out; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details > p { font-size: 17px; color: var(--muted); padding: 0 30px 24px 0; line-height: 1.75; }

/* Fusszeile */
.footer { background: color-mix(in srgb, var(--surface2) 55%, var(--bg)); color: var(--muted); padding: 56px max(24px, calc((100vw - 960px) / 2)) 48px; font-size: 14px; display: grid; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer nav a, .footer nav button { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.footer nav button { background: none; border: 0; padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-langs a[aria-current] { font-weight: 700; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: 14px; max-width: 760px; }
.draft-notice { display: inline-block; justify-self: start; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--border); color: var(--ink); font-weight: 600; }
dialog { max-width: 540px; width: calc(100% - 40px); border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(28, 24, 32, 0.55); }
dialog h2 { font-size: 30px; margin-bottom: 16px; }
dialog p + p { margin-top: 12px; }
#credits-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface2); color: var(--ink); font-size: 22px; }

/* Dokumentseiten */
.doc-body .doc { padding: 150px 0 110px; max-width: 760px; }
.doc h1 { font-size: 48px; line-height: 1.1; margin-bottom: 12px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; }
.doc p { color: var(--ink); margin-top: 10px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-stand { color: var(--muted) !important; font-size: 15px; }
.doc-back { margin-top: 40px !important; }

/* Grosse Fenster */
@media (min-width: 1600px) {
  .hero h1 { font-size: 76px; }
  .arch-hero { width: clamp(300px, 32vw, 640px); }
}
/* Tablet */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hub-heading h2 { font-size: 84px; }
  .learn { grid-template-columns: 1fr; min-height: 0; padding-bottom: 40px; }
  .detail-art { height: 760px; }
  .arch-detail { right: 0; width: min(66%, 520px); }
  .detail-art .phone-detail { --pw: min(calc((100vw - 80px) * 0.4), 300px); }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid .principle-main { grid-row: auto; grid-column: span 2; }
  .principle-grid .principle-news { grid-column: span 2; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Telefon */
@media (max-width: 760px) {
  h2 { font-size: 40px; }
  .content-width, .wide-width, .faq { width: calc(100% - 40px); }
  .nav-pill { gap: 12px; padding: 6px 8px 6px 16px; min-height: 56px; }
  .brand span { display: none; }
  .hero-copy { padding-top: 116px; }
  .hero-icon { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 32px; }
  .hero h1 { font-size: 40px; max-width: 360px; }
  .hero h1 span { display: block; }
  .hero-kicker { font-size: 17px; }
  .hero-copy > p { font-size: 17px; max-width: 360px; }
  .platform { width: 100%; max-width: 320px; }
  .hero-art { margin-top: 44px; }
  .hero-stage { padding: 0 16px; }
  .arch-hero { width: 72vw; }
  .hero-stage .phone { --pw: 40vw; }
  .hero-stage { padding-bottom: 32px; }
  .hero-stage .phone-left { margin-right: -14vw; }
  .hero-stage .phone-right { display: none; }
  .hero-stage { justify-content: flex-start; padding-left: 6vw; }
  .overview { padding: 110px 0 90px; }
  .overview h2 { font-size: 30px; line-height: 1.16; margin-bottom: 38px; text-wrap: balance; }
  .overview h2 br { display: none; }
  .overview h2 .soft { display: block; }
  .coat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .coat-row li { font-size: 12px; }
  .coat-ring { width: 44px; height: 44px; }
  .key-facts { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 40px; }
  .key-facts strong { font-size: 22px; }
  .learn-copy h2 { font-size: 46px; }
  .learn-copy > p:not(.overline) { font-size: 17px; }
  .detail-art { height: 128vw; margin-top: 30px; }
  .arch-detail { width: 74vw; right: -20px; }
  .detail-art .phone-detail { --pw: 46vw; bottom: 0; }
  .try { padding: 90px 0 100px; }
  .try h2 { font-size: 36px; }
  .demo-card { padding: 24px 20px 20px; }
  .demo-title { font-size: 28px; }
  .demo-stamp { width: 84px; height: 84px; font-size: 18px; right: 16px; top: 80px; }
  .app-hub { padding: 90px 0 80px; }
  .hub-heading h2 { font-size: 56px; }
  .hub-heading > p:last-child { font-size: 16px; }
  .gallery-track { gap: 16px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .screen-card { flex-basis: 285px; padding: 24px; }
  .screen-card .phone { --pw: 210px; }
  .gallery-controls { padding-inline: 20px; }
  .why { padding: 100px 0 20px; }
  .why-head { margin-bottom: 40px; }
  .why-head > p:last-child { font-size: 17px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { margin-bottom: 16px; }
  .why-card { padding: 24px 22px; }
  .why-card h3 { font-size: 23px; }
  .comparison { padding-top: 100px; }
  .comparison h3 { font-size: 28px; }
  /* Telefon: eine Karte je Funktion, beide Umfaenge nebeneinander (Owner 04.11.2026) */
  .comparison table, .comparison thead, .comparison tbody, .comparison tr, .comparison th, .comparison td { display: block; }
  .comparison table { background: none; border: 0; border-radius: 0; overflow: visible; margin: 36px 0 28px; font-size: 16px; }
  .comparison thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .comparison thead th:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; }
  .comparison thead th:not(:first-child) { width: auto; padding: 16px 10px; border: 1px solid var(--night-line); border-radius: 18px; background: var(--night-card); font-size: 18px; }
  .comparison thead .plan-plus { background: color-mix(in srgb, var(--night-primary) 12%, var(--night-card)); }
  .comparison tbody { display: grid; gap: 12px; }
  .comparison tbody tr { display: grid; grid-template-columns: 1fr 1fr; background: var(--night-card); border: 1px solid var(--night-line); border-radius: 18px; overflow: hidden; }
  .comparison tbody th, .comparison tbody th:first-child { grid-column: 1 / -1; padding: 16px 18px 10px; border: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--night-ink); }
  .comparison tbody td { width: auto; display: grid; align-content: start; gap: 4px; padding: 10px 18px 16px; border: 0; text-align: left; font-size: 18px; }
  .comparison tbody td.plan-plus { border-left: 1px solid var(--night-line); }
  .comparison tbody tr:last-child > * { border-bottom: 0; }
  .cell-plan { display: flex; align-items: center; min-height: 22px; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }
  .plan-plus .cell-plan { color: var(--night-primary); }
  .everywhere { padding: 90px 0 70px; }
  .everywhere h2 { font-size: 40px; }
  .three-phones { margin-top: 50px; padding: 0; }
  .three-phones .phone { --pw: 30vw; }
  .three-phones .phone:first-child { margin-right: -10vw; }
  .three-phones .phone:last-child { margin-left: -10vw; }
  .three-phones .phone:nth-child(2) { --pw: 38vw; }
  .principles { padding: 80px 0; }
  .principle-grid { grid-template-columns: 1fr; gap: 16px; }
  .principle-grid .principle-main, .principle-grid .principle-news, .principle-wide { grid-column: auto; }
  .principle-main h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); hyphens: manual; -webkit-hyphens: manual; }
  .principle-grid article { padding: 26px; }
  .download { padding-top: 100px; }
  .download-art .arch { width: 32vw; }
  .download-art .arch-1 { width: 38vw; }
  .faq { padding: 100px 0 90px; }
  .faq h2 { font-size: 44px; }
  .faq summary { font-size: 18px; }
  .doc h1 { font-size: 36px; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 34px; }
  .nav-download { padding: 0 12px; font-size: 13px; }
  .key-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .header, .gallery-controls, .demo-actions { display: none; }
}
@media (prefers-color-scheme: dark) {
  .principle-grid .principle-main { background: #3f2f3f; }
}
