/* ============================================================
   Nexnor — Design-System „Papier und Marker“
   Leitidee: ein annotiertes Dokument. Warmes Papier, Tinte,
   genau eine Signalfarbe – der orange Textmarker aus der App.
   Tokens für hell (:root) und dunkel (.dark auf <html>).
   ============================================================ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #f5f1e8;          /* Seitenhintergrund */
  --paper-2: #ece6d8;        /* abgesetzte Flächen */
  --sheet: #fffdf8;          /* ein Blatt Papier */
  --ink: #1d1b17;
  --ink-2: #47423a;
  --muted: #7a7366;
  --rule: #ddd4c3;
  --rule-strong: #c7bca8;
  --marker: #ef8f3a;         /* Linien und Ränder, wie in der App */
  --marker-soft: rgba(255, 168, 82, 0.42);   /* Textmarker-Fläche */
  --marker-ink: #a5520c;     /* Marker-Farbe als lesbare Schrift */
  --link: #2a47a6;
  --select: rgba(52, 120, 246, 0.24);        /* iOS-Textauswahl */
  --check: #6d5bd0;          /* Abhak-Kreis der Aufgabenkarten */
  --device: #151515;
  --device-edge: #2b2926;
  --shadow-sheet: 0 1px 0 rgba(60, 45, 20, 0.05), 0 18px 40px -22px rgba(60, 45, 20, 0.35);
  --shadow-float: 0 10px 30px -12px rgba(60, 45, 20, 0.35);
  --radius: 8px;
  --container: 1180px;
  --header-h: 66px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Charter", Georgia, serif;
}

html.dark {
  color-scheme: dark;
  --paper: #171512;
  --paper-2: #1e1b17;
  --sheet: #25221d;
  --ink: #eee7da;
  --ink-2: #c9c0b1;
  --muted: #968d7e;
  --rule: #34302a;
  --rule-strong: #4a4339;
  --marker: #ffa24f;
  --marker-soft: rgba(255, 158, 64, 0.30);
  --marker-ink: #ffb778;
  --link: #a9bcff;
  --select: rgba(90, 150, 255, 0.30);
  --check: #a699ff;
  --device: #050505;
  --device-edge: #3d3831;
  --shadow-sheet: 0 1px 0 rgba(0, 0, 0, 0.3), 0 20px 44px -20px rgba(0, 0, 0, 0.8);
  --shadow-float: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--marker-soft); color: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
h1, h2 { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); font-weight: 500; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* Textmarker: wird beim Einblenden von links nach rechts „gezogen“. */
.mark {
  color: inherit; padding: 0 .08em; margin: 0 -.04em;
  background: linear-gradient(var(--marker-soft), var(--marker-soft)) 0 58% / 100% 72% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html.js .reveal .mark { background-size: 0% 72%; transition: background-size .9s cubic-bezier(.6, .1, .2, 1) .35s; }
html.js .reveal.is-visible .mark { background-size: 100% 72%; }

/* Kleine Randnotiz statt „Eyebrow“ */
.eyebrow, .margin-label {
  display: block; font-size: .82rem; font-weight: 500; letter-spacing: .01em; color: var(--muted); margin: 0 0 14px;
}
.margin-label b { font-family: var(--font-serif); font-weight: 600; color: var(--marker-ink); margin-right: .5em; font-size: .95rem; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 36em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 1rem/1 var(--font-sans); cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--marker)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-appstore { padding: 0 20px 0 12px; min-height: 56px; }
.btn-appstore .btn-appstore__icon { width: 32px; height: 32px; border-radius: 8px; }
.btn-appstore span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.05; }
.btn-appstore small { font-size: .72rem; font-weight: 500; opacity: .72; }
.btn-appstore strong { font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.text-link { font-weight: 600; color: var(--ink); text-decoration-color: var(--marker); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--marker-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 1.35rem/1 var(--font-serif); letter-spacing: -0.01em; text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.nav-primary { display: flex; gap: 22px; margin-left: 12px; }
.nav-primary a { color: var(--ink-2); font-size: .95rem; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--marker); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--rule-strong); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon, .theme-toggle .icon-system { display: none; }
html[data-theme-mode="light"] .theme-toggle .icon-sun,
html[data-theme-mode="dark"] .theme-toggle .icon-moon,
html[data-theme-mode="system"] .theme-toggle .icon-system { display: block; }

.lang-switcher { position: relative; }
.lang-toggle {
  height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  border-radius: var(--radius); border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  font: 600 .85rem/1 var(--font-sans); cursor: pointer;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--rule-strong); }
.flag { width: 22px; height: 15px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.1); overflow: hidden; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; list-style: none; margin: 0; padding: 6px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-float);
}
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink); font: 500 .95rem/1 var(--font-sans); cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu button[aria-current="true"] { background: var(--marker-soft); }
.menu-toggle { display: none; }
.header-cta { margin-left: 4px; }

.mobile-sheet {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; background: var(--paper);
  border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-float); padding: 8px 28px 24px;
}
.mobile-sheet nav { display: flex; flex-direction: column; }
.mobile-sheet nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 500; font-size: 1.05rem; text-decoration: none; }
.mobile-sheet .btn { margin-top: 18px; width: 100%; }

/* ---------- Sektionen ----------
   Zweispaltiges Satzbild wie ein annotiertes Dokument:
   links die Randnotiz, rechts der Inhalt. */
section { position: relative; }
.section { padding: 104px 0; }
.section-soft { background: var(--paper-2); }
.section + .section:not(.section-soft) { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 40px; margin-bottom: 56px; }
.sec-head .margin-label { padding-top: .9em; }
.sec-head h2 { max-width: 17em; }
.sec-head .lead { margin-bottom: 0; }
.indent { margin-left: 240px; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.hero-meta { margin-top: 28px; font-size: .9rem; color: var(--muted); }

/* ---------- Die Demo: Textstelle → Aufgabe ----------
   Nachbau des Arbeitsbereichs: links das Blatt, rechts der Seitenrand
   mit Aufgabenkarten. Alle Größen in cqi, damit das Satzbild bei jeder
   Breite gleich bleibt. Grundzustand = Endzustand der Animation,
   so bleibt die Demo ohne Animation (reduced motion) vollständig. */
.demo { container-type: inline-size; position: relative; }
.demo-canvas {
  --margin-w: 28cqi; --gap: 4.5cqi;
  position: relative; padding: 5.5cqi calc(var(--margin-w) + var(--gap)) 5cqi 5.5cqi;
  font-size: 2cqi; line-height: 1.6; color: #2a2723;
}
.demo-canvas::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: calc(var(--margin-w) + var(--gap) - 3cqi);
  background: #fffefb; border-radius: 3px; box-shadow: var(--shadow-sheet); z-index: 0;
  border-top: .8cqi solid #3163d4;
}
.demo-canvas > * { position: relative; z-index: 1; margin: 0; padding-right: 3cqi; }
.demo-doc { font: 700 3.3cqi/1.1 var(--font-sans); letter-spacing: .01em; text-transform: uppercase; color: #1d1b17; margin-bottom: .6em !important; }
.demo-parties { font-size: .78em; color: #7b766d; padding-bottom: 1.2em; margin-bottom: 1.4em !important; border-bottom: 1px solid #aebde6; }
.demo-canvas h4 { font: 700 1.1em/1.3 var(--font-sans); color: #1d1b17; letter-spacing: 0; margin: 2.2em 0 .4em; }
.demo-line { display: flex; align-items: center; margin: .9em 0 !important; }
.demo-hl { position: relative; }
.demo-hl-text {
  padding: .1em .15em; margin-left: -.15em; border-radius: 2px;
  background: linear-gradient(rgba(255, 170, 90, 0.45), rgba(255, 170, 90, 0.45)) 0 0 / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.demo-tail { flex: 1 1 auto; min-width: 2cqi; height: 1.5px; background: #f29a4a; margin-right: -3cqi; transform-origin: left center; }
.demo-card {
  position: absolute; left: calc(100% + var(--gap)); top: 50%; translate: 0 -50%; width: var(--margin-w);
  display: grid; grid-template-columns: auto 1fr; gap: .15em .7em; align-items: start;
  padding: 1em 1.1em; background: #fffefb; border: 1.5px solid #f5b884; border-radius: 1.6cqi;
  box-shadow: 0 1.2cqi 3cqi -1.6cqi rgba(120, 70, 20, .35); font-size: 1.12em; line-height: 1.3;
}
.demo-card::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: var(--gap); height: 1.5px; background: #f29a4a;
  transform-origin: left center;
}
.demo-check { grid-row: span 2; width: 1.25em; height: 1.25em; border-radius: 50%; border: 1.5px solid #6d5bd0; margin-top: .05em; }
.demo-card strong { font-weight: 600; color: #1d1b17; }
.demo-card strong, .demo-card small { display: block; }
.demo-card small { font-size: .8em; color: #8a847a; }
.demo-menu {
  position: absolute; left: 12%; bottom: calc(100% + 1.2cqi); display: flex; z-index: 3;
  background: #2b2a28; color: #fff; border-radius: 1.4cqi; font-size: 1.05em; white-space: nowrap;
  box-shadow: 0 1.2cqi 3cqi -1cqi rgba(0,0,0,.45); opacity: 0; pointer-events: none;
}
.demo-menu > span { position: relative; padding: .55em .9em; }
.demo-menu > span:first-child { border-radius: 1.4cqi 0 0 1.4cqi; }
.demo-menu > span:last-child { border-radius: 0 1.4cqi 1.4cqi 0; border-left: 1px solid rgba(255,255,255,.18); }
.demo-menu::after { content: ""; position: absolute; left: 2.4em; top: 100%; border: .45em solid transparent; border-top-color: #2b2a28; }
.demo-cursor { position: absolute; left: 50%; top: 50%; width: 3.4cqi; height: 3.4cqi; margin: -1.7cqi 0 0 -1.7cqi; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 1.5px solid rgba(255,255,255,.8); opacity: 0; pointer-events: none; }
.demo-note {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .88rem; color: var(--muted);
}
.demo-replay { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.demo-replay:hover { color: var(--ink); text-decoration-color: var(--marker); }

/* Ablauf (ca. 4,5 s): auswählen → Menü → „Aufgabe erstellen“ → markieren → Linie → Karte */
.demo.is-playing .demo-new .demo-hl-text { animation: demo-select 4.6s linear both; }
.demo.is-playing .demo-new .demo-menu { animation: demo-menu 4.6s ease both; }
.demo.is-playing .demo-new .demo-menu .is-target { animation: demo-press 4.6s linear both; }
.demo.is-playing .demo-new .demo-tail { animation: demo-line 4.6s ease both; }
.demo.is-playing .demo-new .demo-card { animation: demo-card 4.6s cubic-bezier(.2, .8, .2, 1) both; }
.demo.is-playing .demo-new .demo-card::before { animation: demo-line 4.6s ease both; }
.demo.is-playing .demo-cursor { animation: demo-tap 4.6s ease both; }
@keyframes demo-select {
  0%, 8%   { background-color: transparent; background-size: 0% 100%; }
  12%, 50% { background-color: var(--select); background-size: 0% 100%; }
  51%      { background-color: transparent; background-size: 0% 100%; }
  64%, 100% { background-color: transparent; background-size: 100% 100%; }
}
@keyframes demo-menu {
  0%, 17% { opacity: 0; transform: translateY(6px) scale(.96); }
  22%, 45% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; transform: none; }
}
@keyframes demo-press { 0%, 38% { background: transparent; } 40%, 48% { background: rgba(255,255,255,.2); } 100% { background: transparent; } }
@keyframes demo-tap {
  0%, 33% { opacity: 0; transform: scale(1.4); }
  38% { opacity: 1; transform: scale(1); }
  44% { opacity: 1; transform: scale(.8); }
  50%, 100% { opacity: 0; transform: scale(.8); }
}
@keyframes demo-line { 0%, 62% { transform: scaleX(0); } 74%, 100% { transform: scaleX(1); } }
@keyframes demo-card { 0%, 72% { opacity: 0; transform: translateX(-12px); } 86%, 100% { opacity: 1; transform: none; } }

/* ---------- So geht’s ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-num { display: block; font: 500 3rem/1 var(--font-serif); color: var(--marker-ink); margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0; }
.shot-annotated { position: relative; margin: 80px 0 0; }
.shot-annotated figcaption {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; margin-top: 26px; color: var(--ink-2); font-size: .98rem;
}
.shot-annotated figcaption strong { font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.shot-annotated figcaption span:first-child { color: var(--muted); font-size: .85rem; padding-top: 3px; }
.annotation { position: absolute; pointer-events: none; overflow: visible; }
.annotation path, .annotation ellipse { fill: none; stroke: var(--marker); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
html.js .reveal .annotation path, html.js .reveal .annotation ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease .6s; }
html.js .reveal.is-visible .annotation path, html.js .reveal.is-visible .annotation ellipse { stroke-dashoffset: 0; }

/* ---------- Geräte-Rahmen ----------
   Der Rahmen ist ein Rand am Bild selbst, Stärke in cqw (relativ zur Gerätebreite). */
.device-ipad, .device-iphone { position: relative; container-type: inline-size; }
.device-ipad img, .device-iphone img {
  display: block; width: 100%; height: auto; background: var(--device);
  border-style: solid; border-color: var(--device);
  box-shadow: 0 0 0 1px var(--device-edge), var(--shadow-sheet);
}
.device-ipad img { border-width: 1.8cqw; border-radius: 3.6cqw; }
.device-iphone img { border-width: 3.6cqw; border-radius: 15cqw; }

/* ---------- Kapitel (Funktionen) ---------- */
.chapters { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { list-style: none; position: sticky; top: calc(var(--header-h) + 28px); counter-reset: toc; }
.toc button {
  width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: none; color: var(--ink-2); font: 500 1rem/1.3 var(--font-sans); text-align: left; cursor: pointer;
}
.toc li:first-child button { border-top: 1px solid var(--rule); }
.toc button::before { counter-increment: toc; content: counter(toc); font: 600 .95rem/1 var(--font-serif); color: var(--muted); min-width: 1em; }
.toc button:hover { color: var(--ink); }
.toc button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.toc button[aria-selected="true"]::before { color: var(--marker-ink); }
.toc button[aria-selected="true"] span { background: linear-gradient(var(--marker-soft), var(--marker-soft)) 0 60% / 100% 70% no-repeat; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.chapter-copy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; }
.chapter-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; }
.chapter-copy p { color: var(--ink-2); }
html.js .chapter[hidden] { display: none !important; }
html.js .chapter.is-active { animation: fade .35s ease; }
html:not(.js) .toc { display: none; }
html:not(.js) .chapter, html:not(.js) .chapter[hidden] { display: grid !important; margin-bottom: 64px; }
.dash-list { list-style: none; display: grid; gap: 10px; }
.dash-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .98rem; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--marker-ink); font-weight: 600; }

/* ---------- iPhone ---------- */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; max-width: 820px; }
.phones figure { margin: 0; }
.phones figcaption { margin-top: 16px; font: 600 1.05rem/1.2 var(--font-serif); color: var(--ink); }

/* ---------- Funktionen im Überblick (Register) ---------- */
.register { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.register article { border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.register h3 { font-size: 1.2rem; margin-bottom: 14px; }

/* ---------- Datenschutz ---------- */
.privacy-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: pv; }
.privacy-list li { padding: 18px 0 18px 40px; border-top: 1px solid var(--rule); color: var(--ink-2); position: relative; }
.privacy-list li::before { counter-increment: pv; content: counter(pv); position: absolute; left: 0; top: 16px; font: 600 1.05rem/1.4 var(--font-serif); color: var(--marker-ink); }

/* ---------- Für wen ---------- */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.persona { padding: 26px 0; border-top: 1px solid var(--rule-strong); }
.persona h3 { margin-bottom: 8px; }
.persona p { color: var(--ink-2); margin: 0; max-width: 30em; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.news-card {
  display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s ease;
}
.news-card:hover { border-color: var(--rule-strong); }
.news-card:hover h3 { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news-card__media { aspect-ratio: 16 / 10; background: var(--paper-2); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.news-card__media .device-ipad { width: 76%; }
.news-card__media .device-iphone { width: 25%; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__body h3 { margin: 0; font-size: 1.25rem; }
.news-card__body p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.news-card__more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: .78rem; font-weight: 600; background: var(--paper-2); color: var(--ink-2); }
.badge-tipp { background: var(--marker-soft); color: var(--ink); }
.badge-release { background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); }
.badge-version { background: transparent; border: 1px solid var(--rule-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--rule); background: transparent;
  color: var(--ink-2); font: 600 .9rem/1 var(--font-sans); cursor: pointer;
}
.chip:hover { border-color: var(--rule-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.news-empty, .news-error { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--rule-strong); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--sheet), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.news-card.is-skeleton .news-card__media { background: none; }
.news-teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.news-teaser-head .sec-head { margin-bottom: 0; }

/* News-Detail */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; }
.article-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 28px; }
.article h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 18px; }
.article .summary { font-size: 1.18rem; color: var(--ink-2); }
.article-body { margin-top: 28px; }
.article-body h2 { font-size: 1.6rem; margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--marker); font: 500 1.35rem/1.35 var(--font-serif); color: var(--ink); }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.slider { position: relative; }
.slider-track { position: relative; }
.slider-slide { display: none; }
.slider-slide.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--rule-strong); cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--marker); width: 22px; border-radius: 4px; }
.slider-aside-phone { max-width: 300px; margin: 0 auto; }

/* ---------- Abschluss ---------- */
.cta-sheet {
  position: relative; background: var(--sheet); border-radius: 4px; box-shadow: var(--shadow-sheet);
  padding: 72px 64px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 48px; align-items: center;
}
.cta-icon { width: 104px; height: 104px; border-radius: 24px; grid-row: span 3; }
.cta-sheet h2 { margin: 0; }
.cta-sheet p { color: var(--ink-2); max-width: 34em; margin: 0; font-size: 1.1rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; color: var(--muted); font-size: .92rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--marker); }

/* ---------- Rechtstexte ---------- */
.page-hero { padding: 72px 0 24px; }
.container.legal { max-width: var(--container); }
.legal > * { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal address { color: var(--ink-2); font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 40px; background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 500 .85rem/1.2 var(--font-sans); color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-tagline { color: var(--ink-2); margin-top: 14px; max-width: 26em; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .sec-head, .chapters, .shot-annotated figcaption { grid-template-columns: 1fr; gap: 0; }
  .sec-head .margin-label { padding-top: 0; }
  .indent { margin-left: 0; }
  .toc { position: static; display: flex; gap: 6px; overflow-x: auto; margin: 0 -28px 28px; padding: 0 28px 4px; scrollbar-width: none; }
  .toc li:first-child button, .toc button { border: 1px solid var(--rule); border-radius: var(--radius); white-space: nowrap; padding: 9px 12px; width: auto; }
  .toc button[aria-selected="true"] { border-color: var(--ink); }
  .chapter-copy { grid-template-columns: 1fr; gap: 8px; }
  .register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { grid-template-columns: 1fr; }
  .article-aside { position: static; max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-sheet { padding: 56px 40px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .toc { margin: 0 -16px 24px; padding: 0 16px 4px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 36px; }
  .header-cta { display: none; }
  .lang-toggle .lang-code { display: none; }
  .steps, .register, .privacy-list, .audience { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .phones { gap: 14px; }
  .phones figcaption { font-size: .9rem; }
  .shot-annotated { margin-top: 56px; }
  .cta-sheet { grid-template-columns: 1fr; padding: 40px 22px; }
  /* Demo: auf dem Handy liegt die Karte unter der Zeile statt am Rand */
  .demo-canvas { --margin-w: 0px; --gap: 0px; padding: 7cqi 5.5cqi 6cqi; font-size: 3.6cqi; }
  .demo-canvas::before { right: 0; }
  .demo-canvas > * { padding-right: 0; }
  .demo-doc { font-size: 5cqi; }
  .demo-line { flex-wrap: wrap; }
  .demo-hl { flex: 1 1 100%; }
  .demo-tail { display: none; }
  .demo-card {
    position: relative; left: auto; top: auto; translate: none; width: 80%;
    margin: 5cqi 0 1cqi auto; font-size: 1em; border-radius: 2.4cqi;
  }
  .demo-card::before { right: auto; left: 1.6em; top: auto; bottom: 100%; width: 1.5px; height: 5cqi; }
  .demo-menu { left: 4%; }
  .demo.is-playing .demo-new .demo-card::before { animation: none; }
  .cta-icon { width: 72px; height: 72px; border-radius: 17px; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html.js .reveal .mark { background-size: 100% 72%; }
  html.js .reveal .annotation path, html.js .reveal .annotation ellipse { stroke-dashoffset: 0; }
  .demo-replay { display: none; }
}
