/* flowNotes — Landingpage
   Basis: flowRename-Landingpage (gleiche Marken-Tokens der flowswitch-Apps).
   Dunkel ist Standard; hell folgt der Systemeinstellung, sofern der Schalter
   nicht <html data-theme="light|dark"> setzt. Keine externen Schriften oder Anfragen. */

:root {
  --bg: #070d18;
  --bg-elev: #0d1526;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.11);
  --text: #edf2f8;
  --text-dim: #b7c4d4;
  --text-faint: #8393a6;
  --teal: #4cc6ad;
  --teal-text: #4cc6ad;
  --teal-soft: rgba(76, 198, 173, 0.16);
  --blue: #4c8dff;
  --removed: #ff6b6b;
  --on-teal: #04211b;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* Light: chosen explicitly, or by the system when nothing was chosen. */
:root[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --surface: rgba(15, 26, 43, 0.035);
  --surface-strong: rgba(15, 26, 43, 0.07);
  --border: rgba(15, 26, 43, 0.12);
  --text: #0f1a2b;
  --text-dim: #4e5b6d;
  --text-faint: #7d8898;
  --teal-text: #128f78;
  --teal-soft: rgba(18, 143, 120, 0.12);
  --removed: #d64545;
  --shadow: 0 30px 70px -25px rgba(15, 26, 43, 0.35), 0 0 0 1px rgba(15, 26, 43, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f7fb;
    --bg-elev: #ffffff;
    --surface: rgba(15, 26, 43, 0.035);
    --surface-strong: rgba(15, 26, 43, 0.07);
    --border: rgba(15, 26, 43, 0.12);
    --text: #0f1a2b;
    --text-dim: #4e5b6d;
    --text-faint: #7d8898;
    --teal-text: #128f78;
    --teal-soft: rgba(18, 143, 120, 0.12);
    --removed: #d64545;
    --shadow: 0 30px 70px -25px rgba(15, 26, 43, 0.35), 0 0 0 1px rgba(15, 26, 43, 0.08);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  color: var(--text);
  white-space: nowrap;
}
kbd { font-family: var(--font); font-size: 0.82em; padding: 0.05em 0.4em; box-shadow: inset 0 -1px 0 var(--border); }
kbd + kbd { margin-left: 2px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--teal); color: var(--on-teal); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font: 600 0.78rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-text);
  margin: 0 0 1rem;
}
.eyebrow--center { text-align: center; }
.accent { color: var(--teal-text); }
.wordmark { font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.wordmark span { color: var(--teal-text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 650; font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn__icon { width: 20px; height: 20px; }
.btn--primary { background: var(--teal); color: var(--on-teal); box-shadow: 0 10px 30px -10px rgba(76, 198, 173, 0.55); }
.btn--primary:hover { background: #5ad4bb; }
.btn--ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--teal); }
.btn--small { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; background: var(--teal); color: var(--on-teal); }

/* "Coming soon": App Store link not set yet (see main.js). */
.btn.is-soon { cursor: default; }
.btn--primary.is-soon, .btn--small.is-soon {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn.is-soon:hover { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 24px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 340px at 30% 30%, rgba(76, 198, 173, 0.22), transparent 70%),
    radial-gradient(520px 320px at 75% 20%, rgba(76, 141, 255, 0.16), transparent 70%);
  filter: blur(10px);
}
.hero__inner { text-align: center; max-width: 860px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--text-dim); max-width: 680px; margin-inline: auto; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.hero__meta { font-size: 0.88rem; color: var(--text-faint); }
.shot--hero { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
/* Each shot exists in dark and light; show the one matching the active theme. */
.shot [data-shot="light"] { display: none; }
:root[data-theme="light"] .shot [data-shot="light"] { display: block; }
:root[data-theme="light"] .shot [data-shot="dark"] { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .shot [data-shot="light"] { display: block; }
  :root:not([data-theme="dark"]) .shot [data-shot="dark"] { display: none; }
}
.shot img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--bg-elev);
}

/* How-it-works video (has its own background and window shadow baked in) */
.shot--video { position: relative; max-width: 1040px; margin: clamp(40px, 5vw, 56px) auto 0; }
.shot video {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1200;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elev);
}
.video-toggle {
  position: absolute; right: 14px; bottom: 14px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  opacity: 0.75; transition: opacity 0.2s;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; }
.video-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.video-toggle .icon-pause, [data-video].is-playing .video-toggle .icon-play { display: none; }
[data-video].is-playing .video-toggle .icon-pause { display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0 0; }
[id] { scroll-margin-top: 72px; }   /* keep anchor targets clear of the sticky nav */
.section__title { text-align: center; max-width: 760px; margin: 0 auto 48px; }

.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps__num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--teal-soft); color: var(--teal-text);
  font: 700 1rem/1 var(--mono);
  margin-bottom: 16px;
}
.steps__list p { margin: 0; }

.showcase__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.showcase--flip .showcase__inner { grid-template-columns: 7fr 5fr; }
.showcase--flip .showcase__text { order: 2; }
.showcase__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-dim); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='%234cc6ad' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Template demo — mirrors the app's diff colours */
.template-demo {
  margin: 24px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.template-demo__input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.template-demo__label { color: var(--text-faint); font: 600 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.template-demo__input code { background: none; border: 0; padding: 0; font-size: 0.95rem; white-space: normal; }
.template-demo__input b { color: var(--teal-text); font-weight: 600; }
.template-demo__rows { list-style: none; margin: 0; padding: 8px 0; }
.template-demo__rows li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
  gap: 12px; align-items: center; padding: 7px 16px;
}
.template-demo__rows span { color: var(--teal-text); }
.template-demo__rows s, .template-demo__rows ins { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-demo__rows s { color: var(--removed); text-decoration-color: var(--removed); }
.template-demo__rows ins { text-decoration: none; color: var(--teal-text); background: var(--teal-soft); border-radius: 4px; padding: 1px 5px; justify-self: start; max-width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chips code { font-size: 0.78rem; }

/* Feature grid */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { transition: border-color 0.2s ease, transform 0.2s ease; }
.feature:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--border)); transform: translateY(-2px); }
.feature svg {
  width: 30px; height: 30px; margin-bottom: 14px;
  fill: none; stroke: var(--teal-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature p { margin: 0; font-size: 0.95rem; }

/* Privacy */
.privacy { display: flex; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px); background: linear-gradient(135deg, var(--teal-soft), var(--surface)); }
.privacy svg { flex: none; width: 64px; height: 64px; fill: none; stroke: var(--teal-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.privacy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.privacy p { margin: 0; max-width: 720px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq details[open] { border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 400 1.4rem/1 var(--font); color: var(--teal-text); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Final CTA */
.cta__inner { text-align: center; display: grid; justify-items: center; }
.cta__inner img { border-radius: 24px; margin-bottom: 24px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* Footer */
.footer { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--border); padding: 36px 0 48px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer p { margin: 0; font-size: 0.92rem; }
.footer__claim { color: var(--text-faint); font-style: italic; margin-top: 4px !important; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.92rem; color: var(--text-faint); }
.footer__links a { color: var(--text-dim); }

/* ---------- Toggles (language, theme) ---------- */
.nav__toggles { display: flex; align-items: center; gap: 8px; }
.nav__links + .nav__toggles { margin-left: 4px; }
.toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 30px 30px;
  align-items: center;
  height: 32px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-faint);
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.toggle:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--border)); }
.toggle__opt, .toggle__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 30px; height: 24px;
  transition: color 0.2s ease;
}
svg.toggle__icon { width: 30px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toggle__knob {
  position: absolute; top: 3px; left: 3px;
  width: 30px; height: 24px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Language toggle: knob sits on the page language; flips while switching. */
:root[lang="de"] .toggle--lang [data-opt="de"],
:root[lang="en"] .toggle--lang [data-opt="en"] { color: var(--on-teal); }
:root[lang="en"] .toggle--lang .toggle__knob,
:root[lang="de"] .toggle--lang.is-flipped .toggle__knob { transform: translateX(30px); }
:root[lang="en"] .toggle--lang.is-flipped .toggle__knob { transform: none; }
.toggle--lang.is-flipped [data-opt] { color: var(--text-faint); }

/* Theme toggle: sun (light) left, moon (dark) right. Dark is the default. */
.toggle--theme .toggle__knob { transform: translateX(30px); }
.toggle--theme .toggle__icon--moon { color: var(--on-teal); }
:root[data-theme="light"] .toggle--theme .toggle__knob { transform: none; }
:root[data-theme="light"] .toggle--theme .toggle__icon--sun { color: var(--on-teal); }
:root[data-theme="light"] .toggle--theme .toggle__icon--moon { color: var(--text-faint); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .toggle--theme .toggle__knob { transform: none; }
  :root:not([data-theme="dark"]) .toggle--theme .toggle__icon--sun { color: var(--on-teal); }
  :root:not([data-theme="dark"]) .toggle--theme .toggle__icon--moon { color: var(--text-faint); }
}

.lang-banner {
  background: var(--teal-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.lang-banner[hidden] { display: none; }
.lang-banner__inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.lang-banner span { color: var(--text-dim); }
.lang-banner a { font-weight: 600; }
.lang-banner__close {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--text-faint); font-size: 1.3rem; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.lang-banner__close:hover { color: var(--text); background: var(--surface-strong); }

/* ---------- Languages section ---------- */
.languages {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
}
.languages h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.languages__text p:last-child { margin: 0; }
.languages__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.languages__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.15em;
  line-height: 1;
}

/* ---------- Free & Pro ---------- */
.pro-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--teal-text) 70%, transparent);
  border-radius: 999px;
  color: var(--teal-text);
  font: 800 0.62rem/1.2 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan__price { font: 750 clamp(1.5rem, 2.6vw, 1.9rem)/1.2 var(--font-display); color: var(--text); margin: 0 0 16px; }
.plan__lead { margin: 0; color: var(--text-dim); }
.plan__alt { margin: -10px 0 16px; font-size: 0.95rem; color: var(--text-dim); }
.plan__alt strong { color: var(--text); }
.plan .checklist { margin-top: 14px; }
.plan__per { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--text-faint); margin-left: 4px; }
.plan__note { margin: auto 0 0; padding-top: 18px; font-size: 0.88rem; color: var(--text-faint); }
.plan--pro {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--border));
  background: linear-gradient(160deg, var(--teal-soft), var(--surface) 60%);
  box-shadow: 0 24px 60px -30px rgba(76, 198, 173, 0.45);
}

/* Feature comparison table */
.compare__title { text-align: center; font-size: 1.25rem; margin: clamp(48px, 6vw, 72px) 0 18px; }
.compare-wrap { max-width: 920px; margin: 0 auto; padding: 0; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 11px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare td { text-align: center; width: 22%; color: var(--text-dim); white-space: nowrap; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare thead th { font: 750 1rem/1.3 var(--font-display); color: var(--text); padding-top: 18px; padding-bottom: 14px; }
.compare thead th:not(:first-child) { text-align: center; }
.compare .compare__pro { background: var(--teal-soft); color: var(--text); }
.compare thead .compare__pro { color: var(--teal-text); }
.compare__group th {
  padding-top: 20px; padding-bottom: 8px;
  font: 700 0.72rem/1.2 var(--font); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); background: none;
}
.compare tbody:last-child tr:last-child > * { border-bottom: 0; }
.compare__yes { width: 20px; height: 20px; vertical-align: middle; fill: none; stroke: var(--teal-text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.compare__no { color: var(--text-faint); }
.compare code { font: 0.85em var(--mono); color: var(--text-dim); white-space: nowrap; }

/* ---------- Cookie / storage notice ---------- */
.cookie-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  width: min(520px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: notice-in 0.35s ease both;
}
.cookie-notice p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.cookie-notice .btn { flex: none; }
.cookie-notice .btn.btn--small { display: inline-flex; }
@keyframes notice-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase__inner, .showcase--flip .showcase__inner { grid-template-columns: 1fr; }
  .showcase--flip .showcase__text { order: 0; }
  .languages { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav .btn--small { display: none; }   /* the hero's download button sits right below */
  .compare { font-size: 0.86rem; }
  .compare th, .compare td { padding: 10px 10px; }
  .compare td { width: 21%; }
  .compare__example { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .steps__list, .features { grid-template-columns: 1fr; }
  .privacy { flex-direction: column; align-items: flex-start; }
  .template-demo__rows li { grid-template-columns: 1fr; gap: 2px; padding: 8px 16px; }
  .template-demo__rows span { display: none; }
}
@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-notice .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { animation: none; }
  .btn, .feature, .faq summary::after, .toggle__knob, .toggle__opt, .toggle__icon { transition: none; }
}

/* =====================================================================
   flowNotes: Oberflächen-Mockups (HTML/CSS statt Screenshots – scharf in
   jeder Auflösung und automatisch hell/dunkel). Die Inhalte sind Beispiele.
   ===================================================================== */
:root {
  --amber: #f5b942;
  --rose: #e0688a;
  --violet: #9b7bff;
  --dot-grid: rgba(255, 255, 255, 0.07);
}
:root[data-theme="light"] { --dot-grid: rgba(15, 26, 43, 0.09); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --dot-grid: rgba(15, 26, 43, 0.09); } }

/* ---------- App-Fenster (Hero) ---------- */
.app {
  margin-top: clamp(40px, 6vw, 72px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
.app__bar {
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.app__lights { display: flex; gap: 7px; }
.app__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.app__lights i:nth-child(2) { background: #febc2e; }
.app__lights i:nth-child(3) { background: #28c840; }
.app__crumb { font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__crumb b { color: var(--text); font-weight: 600; }
.app__status { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font: 600 11px/1.2 var(--mono); white-space: nowrap;
  color: var(--teal-text); background: var(--teal-soft);
}
.pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.avatars { display: flex; padding-left: 6px; }
.avatar {
  width: 26px; height: 26px; margin-left: -6px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 10px/1 var(--font); color: #fff;
  background: var(--c, var(--blue));
  border: 2px solid var(--bg-elev);
}
.app__body { display: grid; grid-template-columns: 196px 214px minmax(0, 1fr) 232px; min-height: 480px; }
.app__side, .app__pages { border-right: 1px solid var(--border); padding: 14px 10px; }
.app__side { background: var(--surface); }
.app__label { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin: 6px 8px 10px; }
.app__label + .app__label, .nb + .app__label, .sec + .app__label { margin-top: 18px; }
.nb { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.nb i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.nb .avatar { width: 18px; height: 18px; font-size: 8px; margin-left: auto; border-width: 1.5px; }
.sec { padding: 4px 8px 4px 27px; border-radius: 7px; font-size: 13px; color: var(--text-dim); }
.sec.is-active { background: var(--teal-soft); color: var(--teal-text); font-weight: 600; }
.pg { position: relative; padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.pg b { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg span { display: block; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg.is-active { background: var(--surface-strong); }
.pg .avatar { position: absolute; right: 8px; top: 9px; width: 18px; height: 18px; font-size: 8px; border-width: 1.5px; }
.pg--sub { padding-left: 22px; }

.app__page { padding: 30px clamp(20px, 3vw, 40px) 28px; min-width: 0; }
.app__page h4 { font: 750 25px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--text); margin: 0 0 4px; }
.app__meta { font-size: 12px; color: var(--text-faint); margin: 0 0 18px; }
.app__page p { font-size: 14px; margin: 0 0 14px; color: var(--text-dim); }
.app__page h5 { font: 650 14px/1.3 var(--font); color: var(--text); margin: 18px 0 8px; }
.todo { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 7px; }
.todo li { position: relative; padding-left: 25px; font-size: 14px; color: var(--text); }
.todo li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--text-faint);
}
.todo li.done { color: var(--text-faint); text-decoration: line-through; }
.todo li.done::before {
  border-color: var(--teal);
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%2304211b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.todo .due { margin-left: 6px; font: 600 10.5px/1 var(--mono); color: var(--rose); background: color-mix(in srgb, var(--rose) 14%, transparent); padding: 2px 6px; border-radius: 999px; }
.tag { color: var(--blue); font-weight: 600; }
mark.cmt { background: color-mix(in srgb, var(--amber) 26%, transparent); color: inherit; border-bottom: 2px solid var(--amber); border-radius: 2px; padding: 0 1px; }
.caret {
  position: relative; display: inline-block; width: 2px; height: 1.15em; margin: 0 1px;
  vertical-align: text-bottom; background: var(--c, var(--rose));
}
.caret::after {
  content: attr(data-name);
  position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
  padding: 2px 5px; border-radius: 4px;
  background: var(--c, var(--rose)); color: #fff;
  font: 700 10px/1.2 var(--font); white-space: nowrap;
}
.frame { margin: 16px 0 0; border: 1.5px solid color-mix(in srgb, var(--teal) 55%, var(--border)); border-radius: 10px; padding: 12px; background: var(--surface); }
.frame svg { display: block; width: 100%; height: auto; }

.app__notes { border-left: 1px solid var(--border); padding: 18px 14px; background: var(--surface); }
.note-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; font-size: 12.5px; }
.note-card + .note-card { margin-top: 10px; }
.note-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.note-card header .avatar { margin: 0; width: 22px; height: 22px; font-size: 9px; border: 0; }
.note-card header b { font-size: 12.5px; color: var(--text); }
.note-card header span:not(.avatar) { margin-left: auto; font-size: 11px; color: var(--text-faint); }
.note-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
.note-card--quote { border-left: 3px solid var(--amber); }
.note-card--reply { margin-left: 14px; }

/* Diagramm-Grafik (in Hero und Abschnitt) */
.dg-shape { fill: var(--bg-elev); stroke: var(--teal-text); stroke-width: 1.6; }
.dg-shape--blue { stroke: var(--blue); }
.dg-shape--amber { stroke: var(--amber); }
.dg-shape--soft { fill: var(--teal-soft); }
.dg-text { fill: var(--text); font: 600 12px var(--font); }
.dg-small { fill: var(--text-faint); font: 500 10.5px var(--font); }
.dg-line { fill: none; stroke: var(--text-faint); stroke-width: 1.6; }
.dg-head { fill: var(--text-faint); }
.dg-sel { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 4 3; }
.dg-handle { fill: var(--bg-elev); stroke: var(--blue); stroke-width: 1.4; }

/* ---------- Showcase-Demos ---------- */
.demo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  font: 600 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint);
}
.demo__bar .pill { margin-left: auto; text-transform: none; letter-spacing: 0; }

/* Verschlüsselung: was du siehst / was der Speicher sieht */
.cipher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cipher > div { padding: 18px 20px 20px; min-width: 0; }
.cipher > div + div { border-left: 1px solid var(--border); background: var(--surface); }
.cipher__head { font: 600 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin: 0 0 14px; }
.cipher h4 { font: 700 1.05rem/1.25 var(--font-display); color: var(--text); margin: 0 0 6px; }
.cipher p { font-size: 0.9rem; margin: 0 0 10px; }
.cipher .todo li { font-size: 0.9rem; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font: 0.78rem/1.4 var(--mono); }
.files li { min-width: 0; }
.files b { display: block; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files span { display: block; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Leinwand: frei platzierte Container, Lasso, Hilfslinie */
.canvas {
  position: relative;
  aspect-ratio: 16 / 10.5;
  background-color: var(--bg-elev);
  background-image: radial-gradient(var(--dot-grid) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  font-size: 13px;
}
.cbox {
  position: absolute;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.5);
  color: var(--text-dim);
  line-height: 1.45;
}
.cbox b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 4px; }
.cbox .todo li { font-size: 12.5px; padding-left: 21px; }
.cbox .todo li::before { width: 12px; height: 12px; }
.cbox .todo li.done::before { background-size: 9px; }
.cbox--img { padding: 0; overflow: hidden; }
.cbox--img i {
  display: block; height: 100%;
  background:
    radial-gradient(circle at 72% 30%, color-mix(in srgb, var(--amber) 70%, transparent) 0 9%, transparent 10%),
    linear-gradient(160deg, transparent 55%, color-mix(in srgb, var(--teal) 45%, transparent) 56%),
    linear-gradient(200deg, transparent 48%, color-mix(in srgb, var(--blue) 40%, transparent) 49%),
    var(--surface-strong);
}
.cbox.is-selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 8px 24px -14px rgba(0, 0, 0, 0.5); }
.lasso { position: absolute; border: 1.5px dashed var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); border-radius: 6px; }
.guide { position: absolute; border-left: 1.5px dashed var(--teal); }
.canvas__toolbar {
  position: absolute; display: flex; gap: 4px; padding: 4px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--bg-elev);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.55);
}
.canvas__toolbar span { display: grid; place-items: center; width: 26px; height: 24px; border-radius: 6px; color: var(--text-dim); }
.canvas__toolbar span.is-on { background: var(--teal-soft); color: var(--teal-text); }
.canvas__toolbar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Diagramm-Editor */
.dgedit { display: grid; grid-template-columns: 54px minmax(0, 1fr); }
.dgedit__palette { border-right: 1px solid var(--border); padding: 10px 8px; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.dgedit__palette svg { width: 36px; height: 30px; padding: 4px; border-radius: 7px; fill: none; stroke: var(--text-dim); stroke-width: 1.6; }
.dgedit__palette svg.is-on { background: var(--teal-soft); stroke: var(--teal-text); }
.dgedit__stage {
  background-color: var(--bg-elev);
  background-image: linear-gradient(var(--dot-grid) 1px, transparent 1px), linear-gradient(90deg, var(--dot-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 14px;
}
.dgedit__stage svg { display: block; width: 100%; height: auto; }

/* Zusammenarbeit */
.collab { padding: 22px; display: grid; gap: 14px; }
.collab__presence { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-dim); }
.collab__presence .avatars { padding-left: 6px; }
.collab__text { font-size: 0.98rem; line-height: 1.7; color: var(--text-dim); margin: 0; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.collab .note-card { font-size: 0.85rem; }
.collab .note-card p { font-size: 0.85rem; }

/* Import-Leiste */
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.sources li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev); color: var(--text); font-size: 0.92rem; font-weight: 500; }
.sources i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* ---------- Sicherung (unter der Verschlüsselungs-Demo) ---------- */
.backup-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}
.backup-strip > svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--teal-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.backup-strip b { display: block; font-size: 0.92rem; color: var(--text); }
.backup-strip span { display: block; font-size: 0.82rem; color: var(--text-faint); }
.backup-strip .pill { margin-left: auto; display: inline-flex; color: var(--teal-text); }

/* ---------- Seitenlayout-Umschalter ---------- */
.seg { display: inline-flex; margin-left: auto; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); text-transform: none; letter-spacing: 0; }
.seg button {
  border: 0; background: none; cursor: pointer;
  padding: 5px 11px; border-radius: 6px;
  font: 600 0.78rem/1 var(--font); color: var(--text-dim);
}
.seg button[aria-pressed="true"] { background: var(--teal); color: var(--on-teal); }
.seg button:focus-visible { outline-offset: 1px; }
[data-layout-demo] [data-layout] { display: none; }
[data-layout-demo][data-mode="flow"] [data-layout="flow"],
[data-layout-demo][data-mode="canvas"] [data-layout="canvas"] { display: block; }
.flow { padding: 26px clamp(20px, 3vw, 36px); aspect-ratio: 16 / 10.5; overflow: hidden; font-size: 13.5px; }
.flow h4 { font: 750 1.25rem/1.25 var(--font-display); color: var(--text); margin: 0 0 4px; letter-spacing: -0.02em; }
.flow h5 { font: 650 0.92rem/1.3 var(--font); color: var(--text); margin: 16px 0 6px; }
.flow p { font-size: 13.5px; margin: 0 0 10px; }
.flow .app__meta { margin-bottom: 14px; }
.flow table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.flow th, .flow td { border: 1px solid var(--border); padding: 6px 9px; text-align: left; color: var(--text-dim); }
.flow th { background: var(--surface-strong); color: var(--text); font-weight: 600; }

/* ---------- Suche ---------- */
.search { padding: 18px; display: grid; gap: 14px; }
.search__field {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--teal) 60%, var(--border));
  background: var(--surface); font-size: 0.95rem; color: var(--text);
}
.search__field svg { width: 18px; height: 18px; fill: none; stroke: var(--teal-text); stroke-width: 2; stroke-linecap: round; }
.search__field kbd { margin-left: auto; }
.search__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search__chips span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.78rem; color: var(--text-dim); }
.search__chips span.is-on { background: var(--teal-soft); color: var(--teal-text); border-color: transparent; font-weight: 600; }
.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hit { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); }
.hit__icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.hit__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hit b { display: block; font-size: 0.88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit p { margin: 1px 0 0; font-size: 0.83rem; line-height: 1.45; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit p mark { background: color-mix(in srgb, var(--amber) 32%, transparent); color: var(--text); border-radius: 3px; padding: 0 2px; }
.hit small { display: block; margin-top: 2px; font: 600 0.68rem/1.3 var(--mono); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Kanban-Board ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; background: var(--surface); }
.board__col { min-width: 0; }
.board__head { display: flex; align-items: center; gap: 7px; margin: 2px 4px 10px; font-size: 0.8rem; font-weight: 650; color: var(--text); }
.board__head i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.board__head span { margin-left: auto; font: 600 0.7rem/1 var(--mono); color: var(--text-faint); }
.kcard { padding: 9px 10px; margin-bottom: 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: 0 6px 16px -12px rgba(0, 0, 0, 0.5); }
.kcard b { display: block; font-size: 0.8rem; line-height: 1.35; color: var(--text); font-weight: 600; }
.kcard small { display: block; margin-top: 3px; font-size: 0.7rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .chips2 { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.chip2 { font: 600 0.64rem/1 var(--mono); padding: 3px 6px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.kcard.is-done b { color: var(--text-faint); text-decoration: line-through; }
.kcard.is-drag { transform: rotate(-2.5deg) translateY(-3px); border-color: var(--blue); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6); }

/* ---------- Import ---------- */
.import { padding: 18px; display: grid; gap: 14px; }
.import__sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.import__src { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); font-size: 0.88rem; color: var(--text); font-weight: 600; }
.import__src i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 800 0.8rem/1 var(--font); color: #fff; background: var(--c); font-style: normal; }
.import__src small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--text-faint); }
.import__src.is-on { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.tree { list-style: none; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); display: grid; gap: 6px; font-size: 0.86rem; }
.tree li { position: relative; padding-left: 24px; color: var(--text); }
.tree li.sub { margin-left: 22px; color: var(--text-dim); }
.tree li span { float: right; font: 500 0.75rem/1.6 var(--mono); color: var(--text-faint); }
.tree li::before { content: ""; position: absolute; left: 0; top: 0.22em; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--text-faint); }
.tree li.on::before { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%2304211b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.import__opt { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--text-dim); }
.switch { flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--teal); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.progress { display: grid; gap: 6px; font-size: 0.8rem; color: var(--text-faint); }
.progress__bar { height: 6px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.progress div:first-child { display: flex; justify-content: space-between; }

/* ---------- Souveränität ---------- */
.sovereign { padding: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, var(--teal-soft), var(--surface) 70%); }
.sovereign__head { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.sovereign__head svg { flex: none; width: 60px; height: 60px; fill: none; stroke: var(--teal-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sovereign__head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 6px; }
.sovereign__head p { margin: 0; max-width: 760px; }
.sovereign__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sovereign__grid li { padding: 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); }
.sovereign__grid h3 { font-size: 1rem; margin-bottom: 6px; }
.sovereign__grid p { margin: 0; font-size: 0.93rem; }

@media (max-width: 960px) {
  .sovereign__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board__col:nth-child(n+3) { display: none; }
  .import__sources { grid-template-columns: 1fr; }
  .flow { aspect-ratio: auto; }
  .backup-strip .pill { display: none; }
  .sovereign__head { flex-direction: column; align-items: flex-start; }
}

/* Platzhalter-Kennzeichnung (Entwurf) */
.todo-flag { font: 600 0.7rem/1 var(--mono); color: var(--amber); border: 1px dashed var(--amber); border-radius: 6px; padding: 3px 6px; vertical-align: middle; white-space: nowrap; }

@media (max-width: 1100px) {
  .app__body { grid-template-columns: 186px 200px minmax(0, 1fr); }
  .app__notes { display: none; }
}
@media (max-width: 860px) {
  .app__body { grid-template-columns: 180px minmax(0, 1fr); }
  .app__pages { display: none; }
}
@media (max-width: 620px) {
  .app__body { grid-template-columns: 1fr; min-height: 0; }
  .app__side, .app__crumb, .app .pill { display: none; }
  .cipher { grid-template-columns: 1fr; }
  .cipher > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .canvas { aspect-ratio: auto; height: 480px; }
  .canvas .cbox--img, .canvas__toolbar { display: none; }
}

/* ---------- Geräte: echte Screenshots in Geräterahmen ---------- */
/* Dunkel ist Standard; helle Screenshots, sobald die Seite hell ist */
.shot--light { display: none; }
:root[data-theme="light"] .shot--light { display: block; }
:root[data-theme="light"] .shot--dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .shot--light { display: block; }
  :root:not([data-theme="dark"]) .shot--dark { display: none; }
}

.section__lead { text-align: center; max-width: 680px; margin: -28px auto 48px; font-size: 1.08rem; }

.device { margin: 0; }
.device__frame {
  --bezel: 8px;
  --r: 22px;
  padding: var(--bezel);
  border-radius: var(--r);
  background: linear-gradient(160deg, #2a2f38, #0c0f15 55%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device__screen {
  aspect-ratio: var(--ar, 16 / 10);
  border-radius: calc(var(--r) - var(--bezel));
  overflow: hidden;
  background: #f2f2f5;
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.device--mac .device__frame { --bezel: 10px; --r: 16px; border-radius: 16px 16px 6px 6px; }
.device--mac .device__screen { --ar: 1440 / 900; border-radius: 6px 6px 2px 2px; }
.device__base {
  position: relative;
  height: 14px;
  margin: 0 -7%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#d9dde3, #a5acb6);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
}
.device__base::before {
  content: "";
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 16%; height: 5px; border-radius: 0 0 8px 8px;
  background: rgba(0, 0, 0, 0.18);
}
.device--ipad .device__frame { --bezel: 9px; --r: 24px; }
.device--ipad .device__screen { --ar: 834 / 1210; }
.device--ipad.device--landscape .device__screen { --ar: 1210 / 834; }
.device--iphone .device__frame { --bezel: 7px; --r: 34px; }
.device--iphone .device__screen { --ar: 402 / 874; }

/* Drei Geräte nebeneinander: Spaltenbreiten im Verhältnis der Bildschirme → gleiche Höhe */
.device-row {
  display: grid;
  grid-template-columns: 1.6fr 0.69fr 0.46fr;
  grid-template-rows: auto auto auto;
  column-gap: clamp(18px, 3.5vw, 48px);
  row-gap: 0;
  align-items: end;
}
.device-row .device { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.device-row .device__frame { grid-row: 1; }
.device-row .device__base { grid-row: 2; }
.device-row figcaption { grid-row: 3; align-self: start; padding-top: 26px; }
.device-row figcaption h3 { font-size: 1.15rem; margin-bottom: 8px; }
.device-row figcaption ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.device-row figcaption li { position: relative; padding-left: 18px; color: var(--text-dim); font-size: 0.93rem; line-height: 1.45; }
.device-row figcaption li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}

/* iPad quer mit iPhone davor */
.mobile-stage { position: relative; padding: 0 9% 12% 0; }
.mobile-stage .device--front { position: absolute; right: 0; bottom: 0; width: 25%; }
.mobile-stage .device--front .device__frame { --bezel: 5px; --r: 26px; }

@media (max-width: 960px) {
  .device-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto auto auto; row-gap: 0; }
  .device-row .device--mac { grid-column: 1 / -1; margin-bottom: 40px; }
  .device-row .device--ipad, .device-row .device--iphone { justify-self: center; width: min(100%, 300px); }
  .device-row .device--iphone { width: min(70%, 210px); }
}
@media (max-width: 560px) {
  .device--ipad .device__frame { --bezel: 6px; --r: 16px; }
  .device--iphone .device__frame { --bezel: 5px; --r: 24px; }
  .device-row figcaption li { font-size: 0.88rem; }
  .section__lead { margin-top: -24px; }
}
/* Dynamic Island (Simulator-Screenshots zeigen sie nicht) */
.device--iphone .device__screen { position: relative; }
.device--iphone .device__screen::after {
  content: "";
  position: absolute; left: 50%; top: 1.35%;
  transform: translateX(-50%);
  width: 30%; aspect-ratio: 3.4 / 1;
  border-radius: 999px;
  background: #000;
}
@media (max-width: 560px) { .device__base { margin: 0 -3%; height: 10px; } }
