/* Manrope (SIL OFL 1.1), self-hosted so visitors load nothing from third parties. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Command Mail · Richtung "Morgenlicht"
   Tiefe und Milchglas, nah an der App: Verlaufsnetz, schwebende Glasebenen,
   Salbeigrün als Akzent. Eine Schrift (Manrope), drei Schattenebenen. */

@view-transition { navigation: auto; }

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

:root {
  /* Farben */
  --ink: #17231c;
  --ink-2: #2a3830;
  --muted: #4a5a50;
  --faint: #5f6d64;
  --sage: #3f6e54;
  --sage-deep: #2f5741;
  --sage-soft: #dde9e0;
  --sage-tint: #eef4ef;
  --amber: #9a520f;
  --amber-soft: #f6e6d3;
  --risk: #b3261e;
  --risk-soft: #f8dedb;
  --violet: #5b4a9a;
  --violet-soft: #e9e5f5;
  --sky-ink: #1f4f7a;
  --sky-soft: #dbe8f5;

  /* Verlaufsnetz */
  --mesh-sage: #cfe0d3;
  --mesh-mist: #e6efe8;
  --mesh-peach: #f7e3d3;
  --mesh-sky: #dbe6f4;
  --mesh-lav: #e7e3f3;

  /* Glas */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-solid: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(255, 255, 255, 0.78);
  --hair: rgba(23, 35, 28, 0.09);
  --hair-2: rgba(23, 35, 28, 0.14);
  --inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.35);

  /* Schattenebenen: nah, schwebend, fern */
  --shadow-1: 0 1px 2px rgba(31, 52, 40, 0.06), 0 4px 12px rgba(31, 52, 40, 0.06);
  --shadow-2: 0 2px 4px rgba(31, 52, 40, 0.05), 0 12px 32px rgba(31, 52, 40, 0.1), 0 32px 64px -24px rgba(31, 52, 40, 0.16);
  --shadow-3: 0 4px 8px rgba(31, 52, 40, 0.05), 0 24px 60px rgba(31, 52, 40, 0.14), 0 60px 120px -40px rgba(31, 52, 40, 0.28);

  /* Radien */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Typo */
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --t-display: clamp(2.45rem, 1.1rem + 4.4vw, 4.7rem);
  --t-h2: clamp(2rem, 1.1rem + 3.2vw, 3.6rem);
  --t-h3: clamp(1.12rem, 1rem + 0.35vw, 1.3rem);
  --t-lead: clamp(1.08rem, 0.98rem + 0.45vw, 1.32rem);

  --gutter: max(1rem, 4vw);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  background: var(--mesh-mist);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mesh-mist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: 'ss01', 'cv11';
}

img, svg { display: block; max-width: 100%; }
a { color: var(--sage-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: 0.9em; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- Himmel: Verlaufsnetz mit wandernden Farbflächen ---------- */

body { position: relative; isolation: isolate; }
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(52vw 40vw at 6% 1.5%, rgba(247, 222, 204, 0.95), transparent 70%),
    radial-gradient(48vw 38vw at 96% 4%, rgba(210, 225, 245, 0.95), transparent 70%),
    radial-gradient(60vw 42vw at 88% 18%, rgba(231, 225, 245, 0.85), transparent 70%),
    radial-gradient(56vw 44vw at 4% 30%, rgba(200, 222, 207, 0.95), transparent 70%),
    radial-gradient(50vw 40vw at 98% 44%, rgba(247, 226, 208, 0.9), transparent 70%),
    radial-gradient(60vw 44vw at 10% 58%, rgba(214, 228, 246, 0.9), transparent 70%),
    radial-gradient(52vw 40vw at 92% 72%, rgba(200, 222, 207, 0.95), transparent 70%),
    radial-gradient(56vw 42vw at 6% 86%, rgba(236, 228, 246, 0.9), transparent 70%),
    radial-gradient(60vw 40vw at 80% 99%, rgba(247, 226, 208, 0.9), transparent 70%),
    linear-gradient(180deg, #f3f5f0 0%, var(--mesh-mist) 40%, #eef2ee 100%);
}
.sky__blob {
  position: absolute;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  opacity: 0.7;
  will-change: transform;
}
.sky__blob--a { top: -30vw; left: -22vw; background: radial-gradient(closest-side, rgba(247, 222, 200, 0.85), transparent); animation: drift-a 38s ease-in-out infinite alternate; }
.sky__blob--b { top: -18vw; right: -28vw; background: radial-gradient(closest-side, rgba(200, 218, 242, 0.85), transparent); animation: drift-b 44s ease-in-out infinite alternate; }
.sky__blob--c { top: 20vw; left: 18vw; background: radial-gradient(closest-side, rgba(193, 219, 201, 0.9), transparent); animation: drift-c 52s ease-in-out infinite alternate; }
.sky__grain {
  position: absolute; inset: 0;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift-a { to { transform: translate3d(14vw, 10vw, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-12vw, 14vw, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(-16vw, -8vw, 0) scale(1.08); } }

/* ---------- Bausteine ---------- */

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(880px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46));
  border: 1px solid var(--glass-line);
  box-shadow: var(--inner-light), var(--shadow-2);
  border-radius: var(--r-lg);
}
.glass--blur {
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
}
.glass--solid { background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.eyebrow::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(63, 110, 84, 0.16);
}
.eyebrow--amber { color: var(--amber); }
.eyebrow--amber::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(154, 82, 15, 0.14); }

.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--muted); font-weight: 500; }

.btn {
  --bh: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--bh);
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #4a7b60, var(--sage) 55%, var(--sage-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(31, 60, 44, 0.25), 0 10px 24px -8px rgba(47, 87, 65, 0.6);
}
.btn--primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(31, 60, 44, 0.25), 0 16px 32px -10px rgba(47, 87, 65, 0.7); }
.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--inner-light), var(--shadow-1);
}
.btn--glass:hover { color: var(--ink); background: rgba(255, 255, 255, 0.86); }
.btn--sm { --bh: 2.5rem; padding: 0 1rem; font-size: 0.92rem; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }

.g-icon { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff; padding: 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--sage { background: var(--sage-soft); border-color: transparent; color: var(--sage-deep); }
.chip--amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.chip--risk { background: var(--risk-soft); border-color: transparent; color: var(--risk); }
.chip--violet { background: var(--violet-soft); border-color: transparent; color: var(--violet); }
.chip--sky { background: var(--sky-soft); border-color: transparent; color: var(--sky-ink); }
.chip--dot::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }

.code {
  position: relative;
  margin: 0;
  padding: 1.05rem 1.2rem;
  padding-right: 6.4rem;
  border-radius: var(--r-sm);
  background: rgba(247, 250, 247, 0.9);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 #fff;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.code--block { padding-right: 1.2rem; }
.code .c-k { color: var(--sage-deep); font-weight: 700; }
.code .c-s { color: #7a4a12; }
.code .c-m { color: #5f6d64; }
.code .c-n { color: #1f4f7a; }
.code-wrap { position: relative; }
.copy-btn {
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.copy-btn:hover { background: var(--sage-tint); }
.copy-btn[data-done] { background: var(--sage); color: #fff; border-color: var(--sage); }
.copy-btn svg { width: 0.9rem; height: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0.9rem;
  z-index: 50;
  margin: 0.9rem auto 0;
  width: min(1180px, 100% - 2 * var(--gutter));
  view-transition-name: site-header;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.55rem 0.5rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--inner-light), 0 8px 30px rgba(31, 52, 40, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  view-transition-name: brand;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 2.1rem; height: 2.1rem;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 52, 40, 0.14), inset 0 0 0 1px rgba(23, 35, 28, 0.06);
  padding: 0.18rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 auto;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.nav__links a[aria-current='page'] { background: rgba(255, 255, 255, 0.9); color: var(--ink); box-shadow: var(--shadow-1); }
.nav__cta { flex: none; }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 1.05rem; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__panel { display: contents; }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; border-radius: 28px; padding: 0.45rem 0.45rem 0.45rem 0.8rem; }
  .nav__toggle { display: inline-flex; }
  .nav__panel { display: none; width: 100%; flex-direction: column; gap: 0.6rem; padding: 0.4rem 0.35rem 0.5rem; }
  .nav__panel.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav__links a { padding: 0.8rem 1rem; font-size: 1.05rem; }
  .nav__cta { width: 100%; }
  html:not(.js) .nav__panel { display: flex; }
  html:not(.js) .nav__toggle { display: none; }
}

/* ---------- Abschnitte ---------- */

section { position: relative; }
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); }
.section-head { max-width: 46rem; display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: var(--t-h2); }
.section-head .lead { max-width: 38rem; }
.accent { color: var(--sage); }
.accent-grad {
  background: linear-gradient(100deg, var(--sage-deep) 0%, #4f8266 45%, #6b8f7a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

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

.hero { padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem); overflow-x: clip; }
.hero__copy { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 650; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--inner-light), var(--shadow-1);
  text-decoration: none;
}
.hero__badge strong { white-space: nowrap; padding: 0.18rem 0.6rem; border-radius: 999px; background: var(--sage); color: #fff; font-size: 0.78rem; letter-spacing: 0.02em; }
.hero h1 { font-size: var(--t-display); max-width: 100%; letter-spacing: -0.045em; line-height: 1.0; font-weight: 780; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 43rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.4rem; }
.hero__note { font-size: 0.88rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__note svg { width: 1rem; height: 1rem; color: var(--sage); flex: none; }

/* Bühne mit 3D-Neigung */
.hero__stage {
  position: relative;
  margin: clamp(3rem, 2rem + 4vw, 5.5rem) auto 0;
  width: min(1180px, 100% - 2 * var(--gutter));
  container-type: inline-size;
  --mx: 0; --my: 0;
  --tilt: 24deg;
}
.stage { position: relative; margin: 0; aspect-ratio: 1180 / 700; perspective: 2200px; perspective-origin: 50% 0%; }
.stage__tilt {
  position: absolute; inset: 0;
  transform-origin: 50% 0%;
  transform:
    rotateX(calc((1 - var(--p)) * var(--tilt) + var(--my) * -2.4deg))
    rotateY(calc(var(--mx) * 3deg))
    translateY(calc((1 - var(--p)) * 2.5%))
    scale(calc(0.9 + var(--p) * 0.1));
  will-change: transform;
}
.stage__glow {
  position: absolute; left: 8%; right: 8%; top: 18%; bottom: -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 110, 84, 0.28), transparent);
  filter: blur(40px);
  transform: translateY(calc((1 - var(--p)) * 40px));
  z-index: -1;
}

/* Nachgebaute App: alle Maße in em, Schriftgröße folgt der Bühnenbreite */
.app {
  position: absolute; inset: 0;
  font-size: calc(100cqw / 73.75);
  display: grid;
  grid-template-columns: 15.5em 25em 1fr;
  gap: 0.55em;
  padding: 0.55em;
  border-radius: 1.6em;
  background: linear-gradient(155deg, rgba(233, 240, 234, 0.9), rgba(244, 238, 230, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--inner-light), var(--shadow-3);
  overflow: hidden;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.app__side { padding: 0.9em 0.7em; display: flex; flex-direction: column; gap: 0.25em; }
.app__select { display: flex; justify-content: space-between; align-items: center; padding: 0.6em 0.8em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8); font-size: 0.85em; }
.app__write { margin: 0.8em 0 1em; padding: 0.7em; border-radius: 0.7em; text-align: center; color: #fff; font-weight: 700; font-size: 0.9em; background: linear-gradient(180deg, #7ea58d, #6a957c); box-shadow: 0 0.3em 0.8em -0.3em rgba(47, 87, 65, 0.5); }
.app__label { font-size: 0.72em; color: var(--faint); margin: 0.8em 0.4em 0.3em; }
.app__item { display: flex; align-items: center; gap: 0.65em; padding: 0.5em 0.6em; border-radius: 0.6em; font-size: 0.86em; color: var(--ink-2); }
.app__item svg { width: 1.05em; height: 1.05em; opacity: 0.7; flex: none; }
.app__item b { margin-left: auto; font-weight: 600; font-size: 0.9em; color: var(--muted); }
.app__item--on { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0.1em 0.4em rgba(31, 52, 40, 0.08); color: var(--ink); font-weight: 700; }
.app__item--sub { padding-left: 1.9em; font-size: 0.8em; }
.app__user { margin-top: auto; display: flex; gap: 0.6em; align-items: center; font-size: 0.8em; padding: 0.4em; }
.app__user span:first-child { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.8); font-weight: 700; font-size: 0.85em; }

.app__list { border-radius: 1.1em; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); padding: 0.8em 0.8em 0; overflow: hidden; }
.app__search { display: flex; gap: 0.5em; align-items: center; }
.app__search div:first-child { flex: 1; padding: 0.55em 0.8em; border-radius: 0.7em; background: rgba(23, 35, 28, 0.04); font-size: 0.82em; color: var(--faint); display: flex; justify-content: space-between; }
.app__search kbd { font-family: var(--font); font-size: 0.85em; padding: 0 0.4em; border-radius: 0.3em; background: #fff; color: var(--muted); }
.app__tabs { display: flex; gap: 1.1em; margin: 0.9em 0.2em 0.5em; font-size: 0.82em; color: var(--muted); border-bottom: 1px solid var(--hair); padding-bottom: 0.55em; white-space: nowrap; overflow: hidden; }
.app__tabs span:first-child { color: var(--ink); font-weight: 700; }
.app__tabs em { font-style: normal; padding: 0 0.4em; border-radius: 0.5em; background: var(--sage-soft); color: var(--sage-deep); font-size: 0.9em; }
.app__row { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 0.2em 0.7em; padding: 0.75em 0.4em; border-bottom: 1px solid rgba(23, 35, 28, 0.06); }
.app__row--on { background: rgba(221, 233, 224, 0.55); border-radius: 0.8em; border-color: transparent; }
.app__av { grid-row: span 3; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; font-size: 0.72em; font-weight: 800; color: var(--sage-deep); background: #e3eee6; }
.app__av--b { background: #f3e7d7; color: #8a5a1c; }
.app__av--c { background: #f6dfdc; color: var(--risk); }
.app__av--d { background: #e5e7f3; color: #4a4a8a; }
.app__from { font-weight: 800; font-size: 0.86em; }
.app__time { font-size: 0.72em; color: var(--faint); }
.app__subj { grid-column: 2 / 4; font-size: 0.82em; }
.app__tags { grid-column: 2 / 4; display: flex; gap: 0.35em; flex-wrap: wrap; }
.app__tags span { font-size: 0.66em; font-weight: 700; padding: 0.15em 0.55em; border-radius: 0.5em; background: rgba(23, 35, 28, 0.05); color: var(--ink-2); }
.app__tags .t-sage { background: var(--sage-soft); color: var(--sage-deep); }
.app__tags .t-amber { background: var(--amber-soft); color: var(--amber); }
.app__tags .t-risk { background: var(--risk-soft); color: var(--risk); }
.app__tags .t-sky { background: var(--sky-soft); color: var(--sky-ink); }

.app__today { border-radius: 1.1em; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.95); padding: 1.6em 2em; overflow: hidden; }
.app__date { font-size: 0.72em; color: var(--faint); }
.app__h { font-size: 1.55em; font-weight: 800; letter-spacing: -0.03em; margin: 0.1em 0 0.9em; display: flex; justify-content: space-between; align-items: baseline; }
.app__h small { font-size: 0.42em; font-weight: 600; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.app__group { font-size: 0.7em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 0.6em; margin: 1.1em 0 0.6em; }
.app__group::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--sage); }
.app__group--amber::before { background: #e07b2a; }
.app__group--violet::before { background: #6c63d9; }
.app__task { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 0.55em 0; border-bottom: 1px solid rgba(23, 35, 28, 0.05); }
.app__task div { min-width: 0; }
.app__task strong { display: block; font-size: 0.84em; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__task span { display: block; font-size: 0.72em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__btn { flex: none; font-size: 0.72em; font-weight: 700; padding: 0.35em 0.8em; border-radius: 0.6em; background: #fff; border: 1px solid var(--hair-2); }
.app__btn--sage, .app__task .app__btn--sage { background: #3f6e54; color: #fff; border-color: transparent; }
.app__due { display: grid; grid-template-columns: 9em 1fr; gap: 1em; padding: 0.45em 0; font-size: 0.8em; }
.app__due b { color: #b4521a; font-weight: 700; font-size: 0.95em; }
.app__due span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Schwebende Glaskarten */
.float {
  position: absolute;
  z-index: 3;
  transform:
    translate3d(
      calc(var(--mx) * var(--d, 1) * 18px + (1 - var(--p)) * var(--fx, 0px)),
      calc(var(--my) * var(--d, 1) * 12px + (1 - var(--p)) * var(--fy, 0px)),
      0)
    rotate(calc((1 - var(--p)) * var(--fr, 0deg)));
  will-change: transform;
}
.float__bob { animation: bob 7s ease-in-out infinite; }
.float--risk .float__bob { animation-delay: -2s; }
.float--brief .float__bob { animation-delay: -4.5s; animation-duration: 8s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.card-f {
  border-radius: 22px;
  padding: 1rem 1.1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--inner-light), var(--shadow-3);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: left;
}
.card-f__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.55rem; }
.card-f__k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card-f__t { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.015em; }
.card-f p { color: var(--muted); font-size: 0.82rem; }

.float--risk { left: -2.5%; top: 34%; width: min(300px, 27cqw); --d: 1.4; --fx: -40px; --fy: 50px; --fr: -5deg; }
.float--draft { right: -2.5%; top: 52%; width: min(330px, 30cqw); --d: 1.9; --fx: 50px; --fy: 70px; --fr: 4deg; }
.float--brief { right: 5%; top: -5%; width: min(330px, 29cqw); --d: 1.1; --fx: 30px; --fy: -30px; --fr: 3deg; }

.meter { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.meter__row { display: grid; grid-template-columns: 4.8rem 1fr 2.6rem; align-items: center; gap: 0.55rem; font-size: 0.78rem; font-weight: 700; }
.meter__bar { height: 0.42rem; border-radius: 99px; background: rgba(23, 35, 28, 0.08); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #e08a73, var(--risk)); transform-origin: left; }
.meter__row--mid .meter__bar i { background: linear-gradient(90deg, #e9b26b, #c0661b); }
.meter__row--low .meter__bar i { background: linear-gradient(90deg, #b7cdbf, #7ea58d); }
.meter__row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.draft-lines { margin: 0.5rem 0 0.75rem; padding: 0.7rem 0.8rem; border-radius: 14px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--hair); font-size: 0.82rem; color: var(--ink-2); line-height: 1.5; }
.card-f__actions { display: flex; gap: 0.45rem; align-items: center; }
.mini-btn { font-size: 0.76rem; font-weight: 750; padding: 0.38rem 0.8rem; border-radius: 999px; background: #fff; border: 1px solid var(--hair-2); color: var(--ink-2); }
.mini-btn--sage { background: var(--sage); border-color: var(--sage); color: #fff; }
.brief-stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0.4rem; margin-top: 0.35rem; }
.brief-stats div { padding: 0.5rem 0.55rem; border-radius: 12px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); }
.brief-stats b { display: block; font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1.1; }
.brief-stats span { display: block; font-size: 0.68rem; font-weight: 700; color: var(--muted); line-height: 1.25; hyphens: auto; }

@media (max-width: 760px) {
  .hero__stage { --tilt: 16deg; }
  .stage { aspect-ratio: 390 / 640; }
  .app { font-size: calc(100cqw / 25); grid-template-columns: 1fr; border-radius: 1.3em; inset: 10% 3% 20% 3%; }
  .app__side, .app__today { display: none; }
  .float--brief { left: 0; right: auto; top: 0; width: 88cqw; --fx: 0px; --fy: -10px; --fr: -2deg; }
  .float--risk { left: auto; right: 0; top: 44%; width: 62cqw; --fx: 0px; --fy: 20px; --fr: 3deg; }
  .float--draft { left: 0; right: auto; top: auto; bottom: 0; width: 84cqw; --fx: 0px; --fy: 20px; --fr: -2deg; }
  .card-f { padding: 0.75rem 0.85rem; font-size: 0.8rem; border-radius: 18px; }
  .card-f__t { font-size: 0.86rem; }
  .meter__row { grid-template-columns: 4.2rem 1fr 2.4rem; font-size: 0.72rem; }
  .hero__badge { font-size: 0.82rem; }
}

/* ---------- Funktionen: Bento aus Glas ---------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.tile { grid-column: span 4; padding: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 19rem; position: relative; overflow: hidden; }
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }
.tile h3 { font-size: var(--t-h3); }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile__num { font-size: 0.78rem; font-weight: 800; color: var(--faint); letter-spacing: 0.06em; }
.tile__visual { margin-top: auto; padding-top: 1rem; }
@media (max-width: 1020px) {
  .tile, .tile--wide, .tile--half { grid-column: span 6; }
}
@media (max-width: 680px) {
  .bento { gap: 0.85rem; }
  .tile, .tile--wide, .tile--half { grid-column: 1 / -1; min-height: 0; padding: 1.35rem; }
}

/* Einzelne Visuals */
.merge { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.2rem; }
.merge__addrs { display: grid; gap: 0.5rem; }
.merge__addrs span { font-size: 0.8rem; font-weight: 700; padding: 0.4rem 0.75rem; border-radius: 12px; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-1); white-space: nowrap; }
.merge svg { width: 100%; height: 7.5rem; overflow: visible; }
.merge svg path { fill: none; stroke: url(#flow); stroke-width: 2; stroke-linecap: round; }
.merge svg .flow-dot { fill: var(--sage); }
.merge__inbox { display: grid; place-items: center; gap: 0.2rem; text-align: center; padding: 0.9rem 1rem; border-radius: 18px; background: var(--sage); color: #fff; box-shadow: 0 12px 30px -10px rgba(47, 87, 65, 0.6); font-weight: 800; font-size: 0.85rem; }
.merge__inbox svg { width: 1.5rem; height: 1.5rem; }
@media (max-width: 520px) {
  .merge { grid-template-columns: 1fr; gap: 0.7rem; justify-items: start; }
  .merge svg { display: none; }
  .merge__inbox { justify-self: stretch; }
}

.cats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cats .chip { font-size: 0.78rem; }
.cats--tabs { gap: 0.3rem; padding: 0.3rem; border-radius: 999px; background: rgba(23, 35, 28, 0.04); width: fit-content; max-width: 100%; margin-bottom: 0.7rem; flex-wrap: wrap; }
.cats--tabs span { font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px; color: var(--muted); }
.cats--tabs span:first-child { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

.risk-demo { display: grid; gap: 0.7rem; padding: 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); }
.risk-demo__subj { font-weight: 800; font-size: 0.9rem; }
.risk-demo__from { font-size: 0.78rem; color: var(--muted); }
.risk-demo .meter__row { grid-template-columns: 4.6rem 1fr 2.8rem; }
.risk-demo__note { display: flex; gap: 0.45rem; align-items: center; font-size: 0.78rem; font-weight: 700; color: var(--sage-deep); }
.risk-demo__note svg { width: 0.95rem; height: 0.95rem; }

.log { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45rem; }
.log__row { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: 14px; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.95); font-size: 0.84rem; }
.log__row div { min-width: 0; }
.log__row strong { display: block; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log__row span { font-size: 0.74rem; color: var(--muted); }
.log__undo { flex: none; font-size: 0.76rem; font-weight: 750; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--hair-2); background: #fff; cursor: pointer; }
.log__undo:hover { background: var(--sage-tint); }
.log__row.is-undone { opacity: 0.6; }
.log__row.is-undone strong { text-decoration: line-through; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.opts span { font-size: 0.8rem; font-weight: 700; padding: 0.55rem 0.7rem; border-radius: 12px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95); }
.opts span:first-child { border-color: var(--sage); background: var(--sage-tint); color: var(--sage-deep); }

.extras { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; justify-content: center; }
.extras .chip { padding: 0.5rem 0.95rem; font-size: 0.86rem; box-shadow: var(--shadow-1); white-space: normal; }
.extras svg { width: 1rem; height: 1rem; color: var(--sage); }

/* ---------- Echte Oberfläche ---------- */

.viewer { padding: clamp(0.6rem, 0.4rem + 1vw, 1rem); border-radius: var(--r-xl); }
.viewer__tabs { display: flex; gap: 0.35rem; padding: 0.35rem; margin: 0 auto 1rem; width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--inner-light); overflow-x: auto; }
.viewer__tab { border: 0; background: transparent; padding: 0.55rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.viewer__tab[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.viewer__frame { position: relative; border-radius: calc(var(--r-xl) - 0.6rem); overflow: hidden; aspect-ratio: 1600 / 1000; background: #eef2ee; box-shadow: 0 0 0 1px var(--hair); }
.viewer__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); transform: scale(1.015); }
.viewer__frame img.is-on { opacity: 1; transform: none; }
html:not(.js) .viewer__frame img:first-child { opacity: 1; }
.viewer__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1rem 0.6rem 0.3rem; font-size: 0.9rem; color: var(--muted); }
.viewer__cap strong { color: var(--ink); }

/* ---------- Morgen: Tageszeit-Verlauf ---------- */

.morning {
  --dawn-a: #e5dcef; --dawn-b: #f6d9c6;
  --day-a: #dde9f5;  --day-b: #e3efe5;
  position: relative;
  overflow: clip;
  border-radius: var(--r-xl);
  margin-inline: auto;
  width: min(1320px, 100% - 2 * var(--gutter));
  padding: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(1.1rem, 0.5rem + 4vw, 5rem);
  background:
    radial-gradient(60% 70% at 78% calc(110% - var(--day) * 70%), rgba(255, 236, 200, calc(0.45 + var(--day) * 0.35)), transparent 70%),
    linear-gradient(180deg,
      color-mix(in oklab, var(--dawn-a) calc((1 - var(--day)) * 100%), var(--day-a)),
      color-mix(in oklab, var(--dawn-b) calc((1 - var(--day)) * 100%), var(--day-b)));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--inner-light), var(--shadow-2);
  animation: daybreak linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 55%;
}
@keyframes daybreak { from { --day: 0; } to { --day: 1; } }
.morning__sun {
  position: absolute;
  right: 12%;
  top: calc(78% - var(--day) * 58%);
  width: clamp(7rem, 5rem + 8vw, 13rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff9ec, #ffd9a8 55%, rgba(255, 196, 140, 0.0) 72%);
  opacity: calc(0.55 + var(--day) * 0.45);
  pointer-events: none;
}
.morning__horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35)); pointer-events: none; }
.morning__grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.morning__copy { display: grid; gap: 1.2rem; }
.morning__copy h2 { font-size: var(--t-h2); }
.morning__time { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }
.morning__time svg { width: 1.1rem; height: 1.1rem; color: #b06a1c; }
.morning__points { list-style: none; display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.morning__points li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-2); }
.morning__points li::before { content: ''; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sage); transform: translateY(-0.1rem); }

.brief { padding: clamp(1.1rem, 0.8rem + 1.4vw, 2rem); border-radius: var(--r-lg); }
.brief__meta { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.brief__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.2rem 0 0.2rem; }
.brief__sum { color: var(--muted); font-size: 0.92rem; }
.brief__group { margin-top: 1.2rem; }
.brief__gh { display: flex; align-items: center; gap: 0.55rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.5rem; }
.brief__gh b { color: var(--muted); }
.brief__item { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; align-items: center; padding: 0.7rem 0.85rem; border-radius: 14px; background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.95); margin-bottom: 0.4rem; box-shadow: 0 1px 2px rgba(31, 52, 40, 0.05); }
.brief__item .chip { grid-row: span 2; font-size: 0.72rem; padding: 0.2rem 0.55rem; }
.brief__item strong { font-size: 0.9rem; font-weight: 750; line-height: 1.35; }
.brief__item span { font-size: 0.78rem; color: var(--muted); }
.brief__more { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.week-toggle { border: 1px solid var(--hair-2); background: #fff; border-radius: 999px; padding: 0.5rem 0.95rem; font-weight: 750; font-size: 0.85rem; cursor: pointer; }
.week-toggle:hover { background: var(--sage-tint); }
.brief__week { display: none; }
.brief.is-week .brief__week { display: block; }

@media (max-width: 900px) {
  .morning__grid { grid-template-columns: minmax(0, 1fr); }
  .morning__sun { right: -10%; }
}

/* ---------- Composer ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.split__copy { display: grid; gap: 1.2rem; }
.split__copy h2 { font-size: var(--t-h2); }
.checks { list-style: none; display: grid; gap: 0.8rem; margin-top: 0.6rem; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.7rem; align-items: start; color: var(--ink-2); }
.checks svg { width: 1.6rem; height: 1.6rem; padding: 0.3rem; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.composer { padding: 1.2rem; border-radius: var(--r-lg); position: relative; }
.composer__head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--hair); }
.composer__icon { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-deep); flex: none; }
.composer__icon svg { width: 1.2rem; height: 1.2rem; }
.composer__head strong { display: block; font-size: 1rem; }
.composer__head span { font-size: 0.82rem; color: var(--muted); }
.composer__head .chip { margin-left: auto; }
.composer__q { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 1rem; margin: 1rem 0 0.6rem; font-weight: 800; font-size: 0.95rem; }
.composer__q small { font-weight: 600; font-size: 0.78rem; color: var(--muted); }
.composer__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.opt {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1.5px solid rgba(23, 35, 28, 0.1);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.opt:hover { border-color: rgba(63, 110, 84, 0.5); }
.opt strong { display: block; font-size: 0.9rem; }
.opt span { font-size: 0.78rem; color: var(--muted); }
.opt[aria-pressed='true'] { border-color: var(--sage); background: var(--sage-tint); }
.composer__draft { margin-top: 0.9rem; padding: 0.95rem 1rem; min-height: 6.6rem; border-radius: 14px; background: #fff; border: 1px solid var(--hair); font-size: 0.93rem; line-height: 1.55; color: var(--ink); white-space: pre-line; }
.composer__draft .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--sage); vertical-align: text-bottom; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.composer__foot { margin-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.composer__state { font-size: 0.84rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.45rem; }
.composer__note { margin-top: 0.8rem; font-size: 0.78rem; color: var(--muted); text-align: right; }
.composer__demo { position: absolute; top: -0.8rem; left: 1.2rem; }

/* ---------- Schritte ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 3.2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(63, 110, 84, 0.35), rgba(63, 110, 84, 0.35), transparent);
}
.step { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; position: relative; }
.step__n { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(160deg, #5a8a6e, var(--sage-deep)); box-shadow: 0 10px 24px -8px rgba(47, 87, 65, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); font-size: 0.97rem; }
.step .code-wrap { margin-top: auto; }
.step .code { font-size: 0.78rem; padding: 0.8rem 0.9rem; padding-right: 0.9rem; }
.step .copy-btn { position: static; margin-top: 0.5rem; }
.fwd { margin-top: auto; display: grid; gap: 0.45rem; }
.fwd div { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: 12px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--hair); font-size: 0.8rem; font-weight: 700; min-width: 0; }
.fwd div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwd div span:last-child { flex: none; color: var(--sage-deep); font-size: 0.74rem; }
.clients { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.consent { margin-top: auto; padding: 0.9rem; border-radius: 16px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--hair); display: grid; gap: 0.5rem; font-size: 0.82rem; }
.consent__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.consent__row code { font-size: 0.78rem; font-weight: 600; }
.toggle { width: 2.1rem; height: 1.2rem; border-radius: 99px; background: var(--sage); position: relative; flex: none; }
.toggle::after { content: ''; position: absolute; top: 0.15rem; right: 0.15rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: #fff; }
.toggle--off { background: rgba(23, 35, 28, 0.18); }
.toggle--off::after { right: auto; left: 0.15rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps::before { left: 2.6rem; right: auto; top: 3rem; bottom: 3rem; width: 2px; height: auto; background: linear-gradient(180deg, transparent, rgba(63, 110, 84, 0.35), transparent); }
}

/* ---------- Sicherheit: Glasringe ---------- */

.secure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.rings { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; isolation: isolate; }
.ring {
  position: absolute;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 60%);
  box-shadow: var(--inner-light), 0 20px 50px -20px rgba(31, 52, 40, 0.25);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.6s var(--ease);
}
.ring span {
  margin-top: clamp(0.6rem, 2.2%, 1.1rem);
  height: fit-content;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: clamp(0.72rem, 0.66rem + 0.25vw, 0.86rem);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
  white-space: nowrap;
  position: relative;
  z-index: 3;
}
.ring--4 { inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255, 240, 226, 0.75), rgba(247, 226, 208, 0.25) 62%); }
.ring--3 { inset: 12%; background: radial-gradient(circle at 50% 0%, rgba(236, 243, 252, 0.8), rgba(210, 225, 245, 0.3) 62%); }
.ring--2 { inset: 24%; background: radial-gradient(circle at 50% 0%, rgba(240, 247, 242, 0.85), rgba(200, 222, 207, 0.4) 62%); }
.rings__orbit { position: absolute; inset: 6%; border-radius: 50%; animation: orbit 18s linear infinite; pointer-events: none; z-index: 1; transform: rotate(140deg); }
.rings__orbit::before { content: ''; position: absolute; left: 50%; top: -0.55rem; width: 1.1rem; height: 1.1rem; margin-left: -0.55rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9dbfaa 60%, var(--sage)); box-shadow: 0 0 0 5px rgba(63, 110, 84, 0.14), 0 6px 14px rgba(47, 87, 65, 0.4); }
.rings__orbit--b { inset: 18%; animation-duration: 26s; animation-direction: reverse; transform: rotate(-120deg); }
.rings__orbit--b::before { background: radial-gradient(circle at 35% 35%, #fff, #e9b26b 60%, #c0661b); box-shadow: 0 0 0 5px rgba(192, 102, 27, 0.14), 0 6px 14px rgba(154, 82, 15, 0.35); }
@keyframes orbit { from { transform: rotate(140deg); } to { transform: rotate(500deg); } }
.ring--1 {
  inset: 36%;
  align-items: center;
  background: radial-gradient(circle at 50% 30%, #5f9077, var(--sage-deep));
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 50px -12px rgba(47, 87, 65, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ring--1 span { margin: 0; background: transparent; box-shadow: none; color: #fff; text-align: center; white-space: normal; font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1rem); line-height: 1.2; }
.ring.is-hot { box-shadow: var(--inner-light), 0 0 0 3px rgba(63, 110, 84, 0.45), 0 20px 50px -20px rgba(31, 52, 40, 0.3); background-color: rgba(221, 233, 224, 0.4); }
.ring--1.is-hot { transform: scale(1.04); }
.rings__pulse { position: absolute; inset: 36%; border-radius: 50%; border: 2px solid rgba(63, 110, 84, 0.4); animation: pulse 3.6s ease-out infinite; pointer-events: none; }
@keyframes pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.7); opacity: 0; } }

.guards { list-style: none; display: grid; gap: 0.6rem; }
.guard {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.2rem 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease);
}
.guard[tabindex]:hover, .guard[tabindex]:focus-visible, .guard.is-hot { background: rgba(255, 255, 255, 0.88); box-shadow: var(--shadow-2); transform: translateX(4px); }
.guard__i { grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-deep); }
.guard__i svg { width: 1.2rem; height: 1.2rem; }
.guard strong { font-size: 1rem; }
.guard p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.guard code { font-size: 0.82em; padding: 0.05rem 0.35rem; border-radius: 6px; background: rgba(23, 35, 28, 0.06); }
.more-guards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.more-guards div { padding: 1.1rem 1.2rem; border-radius: var(--r-md); }
.more-guards strong { display: block; font-size: 0.98rem; margin-bottom: 0.25rem; }
.more-guards p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 960px) { .secure { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Preise ---------- */

.early {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem 2rem;
  align-items: center;
  padding: clamp(1.3rem, 1rem + 1.5vw, 2rem) clamp(1.3rem, 1rem + 2vw, 2.4rem);
  border-radius: var(--r-lg);
  margin-bottom: 1.1rem;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 244, 226, 0.9), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
}
.early__big { font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--sage-deep); }
.early h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); }
.early p { color: var(--muted); }
@media (max-width: 760px) { .early { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.plan { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; position: relative; }
.plan h3 { font-size: 1.15rem; }
.plan__price { display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap; }
.plan__price b { font-size: clamp(2.3rem, 2rem + 1vw, 2.9rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.plan__price b.is-text { font-size: clamp(1.7rem, 1.5rem + 0.6vw, 2.05rem); letter-spacing: -0.035em; }
.plan__price span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.plan ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.93rem; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.55rem; }
.plan li svg { width: 1.1rem; height: 1.1rem; color: var(--sage); margin-top: 0.2rem; }
.plan li.is-planned { color: var(--muted); }
.plan li.is-planned svg { color: var(--faint); }
.plan--pro { background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(236, 244, 238, 0.8)); box-shadow: var(--inner-light), 0 0 0 1.5px rgba(63, 110, 84, 0.45), var(--shadow-3); }
.plan__tag { position: absolute; top: 1.3rem; right: 1.3rem; }
.prelim { display: grid; justify-items: center; gap: 0.35rem; margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.prelim strong { color: var(--amber); }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.65rem; }
.faq details { border-radius: var(--r-md); background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--inner-light), var(--shadow-1); transition: background-color 0.3s; }
.faq details[open] { background: rgba(255, 255, 255, 0.85); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 750; font-size: 1.04rem; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: rgba(23, 35, 28, 0.05) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317231c' stroke-width='2' stroke-linecap='round'><path d='M12 6v12M6 12h12'/></svg>") center / 0.95rem no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); max-width: 60rem; }
.faq code { font-size: 0.86em; padding: 0.05rem 0.35rem; border-radius: 6px; background: rgba(23, 35, 28, 0.06); color: var(--ink); }

/* ---------- Abschluss und Footer ---------- */

.final { text-align: center; padding: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.2rem, 1rem + 3vw, 4rem); border-radius: var(--r-xl); display: grid; justify-items: center; gap: 1.3rem; position: relative; overflow: hidden; }
.final h2 { font-size: var(--t-h2); max-width: 18ch; }
.final::before { content: ''; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(255, 226, 190, 0.55), transparent); pointer-events: none; }
.final > * { position: relative; }

.site-footer { padding: 4rem 0 2.5rem; margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg); }
.footer__grid p { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; max-width: 22rem; }
.footer__h { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.8rem; }
.footer__grid ul { list-style: none; display: grid; gap: 0.45rem; }
.footer__grid a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer__grid a:hover { color: var(--sage-deep); text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1.3rem; padding-inline: 0.4rem; font-size: 0.86rem; color: var(--muted); }
.footer__base a { color: var(--muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Einblendungen ---------- */

html.js [data-reveal] { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Scroll-getriebenes Aufrichten: CSS, wo unterstützt; sonst setzt JS --p */
@supports (animation-timeline: scroll()) {
  .hero__stage {
    animation: stage-rise linear both;
    animation-timeline: scroll(root);
    animation-range: 0 70vh;
  }
}
@keyframes stage-rise { from { --p: 0; } to { --p: 1; } }

/* ---------- Unterseiten ---------- */

.page-hero { padding-top: clamp(3.5rem, 2rem + 5vw, 6.5rem); padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.page-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.8rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.page-hero__copy { display: grid; gap: 1.3rem; }
@media (max-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); } }

.url-pill { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.5rem 0.5rem 1.1rem; border-radius: 999px; width: fit-content; max-width: 100%; }
.url-pill code { font-size: clamp(0.88rem, 0.8rem + 0.4vw, 1.05rem); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.url-pill .copy-btn { position: static; flex: none; }
.url-pill__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #3fae72; box-shadow: 0 0 0 4px rgba(63, 174, 114, 0.18); flex: none; }

.llms { padding: 0; overflow: hidden; border-radius: var(--r-lg); }
.llms__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--hair); background: rgba(255, 255, 255, 0.6); font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.llms__bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(23, 35, 28, 0.12); }
.llms__bar span { margin-left: 0.5rem; font-family: var(--mono); font-weight: 600; }
.llms pre { margin: 0; padding: 1.2rem 1.3rem 1.4rem; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--ink); background: rgba(250, 252, 250, 0.85); }
.llms .h { color: var(--sage-deep); font-weight: 800; }
.llms .q { color: var(--muted); }
.llms .u { color: var(--sky-ink); }

.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.tbl th { text-align: left; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--hair-2); }
.tbl td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { white-space: nowrap; }
.tbl code { font-size: 0.88em; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 8px; background: var(--sage-soft); color: var(--sage-deep); }
@media (max-width: 640px) {
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: grid; padding: 0.85rem 1rem; border-bottom: 1px solid var(--hair); }
  .tbl--stack tr:last-child { border-bottom: 0; }
  .tbl--stack td { padding: 0.15rem 0; border: 0; }
  .tbl--stack td:first-child { margin-bottom: 0.3rem; white-space: normal; }
}

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 860px) { .cards-2 { grid-template-columns: 1fr; } }
.panel { padding: clamp(1.3rem, 1rem + 1vw, 2rem); display: grid; gap: 1rem; align-content: start; }
.panel h3 { font-size: 1.25rem; }
.panel p { color: var(--muted); }

/* Autonomie-Stufen */
.levels { padding: clamp(1rem, 0.8rem + 1vw, 1.6rem); border-radius: var(--r-lg); }
.levels__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; padding: 0.4rem; border-radius: 999px; background: rgba(23, 35, 28, 0.05); }
.levels__btn { position: relative; z-index: 1; border: 0; background: transparent; padding: 0.75rem 0.5rem; border-radius: 999px; font-family: var(--mono); font-weight: 700; font-size: 0.95rem; color: var(--muted); cursor: pointer; transition: color 0.3s; }
.levels__btn[aria-selected='true'] { color: #fff; }
.levels__thumb { position: absolute; z-index: 0; top: 0.4rem; bottom: 0.4rem; left: 0.4rem; width: calc((100% - 0.8rem - 1.2rem) / 4); border-radius: 999px; background: linear-gradient(160deg, #5a8a6e, var(--sage-deep)); box-shadow: 0 8px 20px -8px rgba(47, 87, 65, 0.7); transform: translateX(calc(var(--i, 0) * (100% + 0.4rem))); transition: transform 0.5s var(--ease); }
.levels__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; margin-top: 1.3rem; align-items: start; }
.levels__body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.levels__body p { color: var(--muted); }
.levels__panel[hidden] { display: none; }
@media (max-width: 760px) { .levels__body { grid-template-columns: 1fr; } .levels__btn { font-size: 0.8rem; padding: 0.7rem 0.2rem; } }

/* Arbeitsschleife */
.loop { list-style: none; display: grid; gap: 0.6rem; counter-reset: loop; position: relative; }
.loop::before { content: ''; position: absolute; left: 1.45rem; top: 1.5rem; bottom: 1.5rem; width: 2px; background: linear-gradient(180deg, rgba(63, 110, 84, 0.5), rgba(63, 110, 84, 0.08)); }
.loop li { counter-increment: loop; position: relative; display: grid; grid-template-columns: 2.9rem 1fr; gap: 1rem; align-items: start; padding: 0.95rem 1.1rem 0.95rem 0; }
.loop li::before { content: counter(loop, decimal-leading-zero); width: 2.9rem; height: 2.9rem; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: var(--sage-deep); background: linear-gradient(160deg, #fff, var(--sage-tint)); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-1); position: relative; z-index: 1; }
.loop code { font-weight: 800; font-size: 0.92rem; color: var(--ink); }
.loop p { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.loop__body { padding: 0.85rem 1.1rem; border-radius: 18px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--inner-light); }

.limits { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.8rem; }
.limits li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; padding: 1.1rem; border-radius: var(--r-md); }
.limits svg { width: 2.2rem; height: 2.2rem; padding: 0.5rem; border-radius: 12px; background: var(--risk-soft); color: var(--risk); }
.limits p { font-size: 0.95rem; color: var(--ink-2); }
.limits code { font-size: 0.86em; padding: 0.05rem 0.35rem; border-radius: 6px; background: rgba(23, 35, 28, 0.06); }

/* ---------- Doku ---------- */

.docs { display: grid; grid-template-columns: 17rem minmax(0, 1fr) 14rem; gap: clamp(1.5rem, 1rem + 2vw, 3rem); width: min(1360px, 100% - 2 * var(--gutter)); margin: 2rem auto 0; align-items: start; }
.docs__side { position: sticky; top: 6.2rem; max-height: calc(100vh - 7.2rem); overflow: auto; padding: 1rem; border-radius: var(--r-lg); }
.search { position: relative; margin-bottom: 1rem; }
.search input { width: 100%; padding: 0.7rem 3.2rem 0.7rem 2.4rem; border-radius: 14px; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, 0.85); font: inherit; font-size: 0.93rem; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search input:focus-visible { outline: 3px solid var(--sage); outline-offset: 1px; }
.search svg { position: absolute; left: 0.8rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--faint); }
.search kbd { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); font-family: var(--font); font-size: 0.74rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 7px; background: rgba(23, 35, 28, 0.06); color: var(--muted); }
.docnav { display: grid; gap: 1rem; }
.docnav__h { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.35rem 0.6rem; }
.docnav ul { list-style: none; display: grid; gap: 0.1rem; }
.docnav a { display: block; padding: 0.42rem 0.6rem; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.docnav a:hover { background: rgba(255, 255, 255, 0.8); }
.docnav a.is-active { background: #fff; color: var(--sage-deep); box-shadow: var(--shadow-1); }
.docnav a.is-hidden, .docnav__group.is-hidden { display: none; }
.docnav mark { background: var(--amber-soft); color: inherit; border-radius: 4px; padding: 0 0.1rem; }
.docnav__empty { font-size: 0.88rem; color: var(--muted); padding: 0.4rem 0.6rem; }
.docs__main { min-width: 0; }
.doc-sec { padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); border-radius: var(--r-lg); margin-bottom: 1.2rem; display: grid; gap: 1rem; scroll-margin-top: 6.5rem; }
.doc-sec h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); display: flex; align-items: center; gap: 0.7rem; }
.doc-sec h2 .num { font-size: 0.8rem; font-weight: 800; color: var(--sage-deep); padding: 0.25rem 0.55rem; border-radius: 8px; background: var(--sage-soft); letter-spacing: 0; }
.doc-sec h3 { font-size: 1.1rem; margin-top: 0.6rem; }
.doc-sec p, .doc-sec li { color: var(--ink-2); }
.doc-sec ol, .doc-sec ul.list { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.doc-sec :not(pre) > code { font-size: 0.86em; padding: 0.08rem 0.4rem; border-radius: 7px; background: rgba(23, 35, 28, 0.06); color: var(--ink); }
.callout { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.8rem; padding: 0.95rem 1.1rem; border-radius: 16px; background: var(--sage-tint); border: 1px solid rgba(63, 110, 84, 0.2); font-size: 0.95rem; color: var(--ink-2); }
.callout svg { width: 1.4rem; height: 1.4rem; color: var(--sage-deep); }
.callout--amber { background: #fbf1e5; border-color: rgba(154, 82, 15, 0.2); }
.callout--amber svg { color: var(--amber); }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.client--wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .client-grid { grid-template-columns: minmax(0, 1fr); } }
.client { padding: 1.1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-1); display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.client h3 { margin: 0; font-size: 1.02rem; }
.client p { font-size: 0.9rem; color: var(--muted); }
.client .code { font-size: 0.8rem; padding: 0.8rem 0.9rem; }
.docs__toc { position: sticky; top: 6.2rem; font-size: 0.86rem; }
.docs__toc p { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.docs__toc ul { list-style: none; display: grid; gap: 0.1rem; border-left: 2px solid var(--hair); }
.docs__toc a { display: block; padding: 0.3rem 0.8rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 600; }
.docs__toc a:hover { color: var(--ink); }
.docs__toc a.is-active { color: var(--sage-deep); border-left-color: var(--sage); }
.docs__mobile-toggle { display: none; }
@media (max-width: 1260px) {
  .docs { grid-template-columns: 16rem minmax(0, 1fr); }
  .docs__toc { display: none; }
}
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); margin-top: 1.2rem; }
  .docs__side { position: static; max-height: none; }
  .docs__mobile-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: transparent; font-weight: 800; font-size: 1rem; padding: 0.2rem 0.3rem 0.7rem; cursor: pointer; }
  .docs__mobile-toggle svg { width: 1.1rem; height: 1.1rem; transition: transform 0.3s; }
  .docs__mobile-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
  html.js .docnav.is-collapsed { display: none; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .sky__blob, .float__bob, .rings__pulse, .rings__orbit { animation: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .hero__stage { animation: none !important; --p: 0.72; }
  .morning { animation: none !important; --day: 1; }
  .composer__draft .caret { display: none; }
}

/* Inline-Code in Fließtext */
.panel code, .split__copy code, .hero__note code, .client p code, .levels__body p code, .lead code, .step p code {
  font-size: 0.88em;
  padding: 0.06rem 0.38rem;
  border-radius: 7px;
  background: rgba(23, 35, 28, 0.06);
  color: var(--ink);
  font-weight: 600;
}
.panel h3 code { font-size: 0.85em; }
.split__copy h2 code { background: none; padding: 0; font-weight: 700; letter-spacing: -0.02em; }

/* Arbeitsschleife als Raster auf breiten Schirmen */
.loop-head { max-width: 46rem; }
@media (min-width: 901px) {
  .loop--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.1rem; }
  .loop--grid::before { display: none; }
  .loop--grid li { padding-right: 0; }
}

/* Überlauf-Schutz: Codeblöcke scrollen in sich, Abschnitte schneiden seitlich ab */
section { overflow-x: clip; }
.code-wrap, .code, .client, .panel { min-width: 0; }
.doc-sec { grid-template-columns: minmax(0, 1fr); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.loop { padding: 0; margin: 0; }
@media (min-width: 901px) { .loop--grid li { padding-block: 0.35rem; } }
.nowrap { white-space: nowrap; }

@media (max-width: 520px) {
  .viewer__tabs { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .viewer__tab { padding: 0.45rem 0.75rem; font-size: 0.86rem; }
  .step .code { font-size: 0.7rem; }
  .composer { padding: 1rem; }
  .composer__opts { gap: 0.4rem; }
  .opt { padding: 0.65rem 0.7rem; }
  .brief__item { grid-template-columns: minmax(0, 1fr); }
  .brief__item .chip { grid-row: auto; width: fit-content; }
}
@media (max-width: 640px) {
  .code { padding-right: 1rem; }
  .code-wrap .copy-btn { position: static; margin-top: 0.5rem; }
  .url-pill code { font-size: 0.8rem; }
  .url-pill { padding-left: 0.85rem; gap: 0.45rem; }
  .llms pre { font-size: 0.76rem; padding: 1rem; }
}
.hero__note span code { font-size: 0.86em; }

/* Hero: gestaffelter Auftritt beim Laden */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes stage-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
html.js .hero__copy > * { animation: rise 0.9s var(--ease) both; }
html.js .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
html.js .hero__copy > :nth-child(3) { animation-delay: 0.14s; }
html.js .hero__copy > :nth-child(4) { animation-delay: 0.22s; }
html.js .hero__copy > :nth-child(5) { animation-delay: 0.3s; }
html.js .stage { animation: stage-in 1.2s var(--ease) 0.25s both; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero__copy > *, html.js .stage { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- Finale Richtung: Logo, Headless, Autonomie, Kontext ---------- */
.brand__mark { background: none; padding: 0; border-radius: 0.6rem; box-shadow: 0 1px 2px rgba(31, 52, 40, 0.18), 0 6px 14px -6px rgba(47, 87, 65, 0.55); }

.works { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) 0 0; }
.works__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem 1.4rem; }
.works__label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.works__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.works__list li { padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--glass-strong); box-shadow: var(--shadow-1), var(--inner-light); font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
.works__list .works__any { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); font-weight: 600; color: var(--muted); }

.term { margin: 0; padding: 0; overflow: hidden; border-radius: var(--r-lg); }
.term__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--hair); }
.term__bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--hair-2); }
.term__bar span { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: var(--faint); }
.term__body { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 0.9rem; line-height: 1.65; padding: 1.2rem 1.3rem 1.4rem; white-space: pre; overflow-x: auto; }

.modes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.mode { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mode h3 { font-size: 1.35rem; }
.mode p { color: var(--muted); font-size: 0.98rem; }
.mode__n { width: 2.6rem; height: 2.6rem; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: var(--sage-deep); background: var(--sage-soft); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.mode__tech { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--hair); font-size: 0.86rem !important; color: var(--faint) !important; }
.mode--auto { background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(221, 233, 224, 0.82)); box-shadow: var(--shadow-3), var(--inner-light); }
.mode--auto .mode__n { color: #fff; background: linear-gradient(160deg, #5a8a6e, var(--sage-deep)); box-shadow: 0 10px 24px -8px rgba(47, 87, 65, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
@media (max-width: 900px) { .modes { grid-template-columns: minmax(0, 1fr); } }

.split--flip > :first-child { order: 2; }
@media (max-width: 900px) { .split--flip > :first-child { order: 0; } }
.muted-note { color: var(--faint); font-size: 0.95rem; max-width: 34rem; }

.memory { margin: 0; padding: 1.3rem; display: grid; gap: 0.8rem; border-radius: var(--r-lg); }
.memory__k { display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.35rem; }
.memory__in, .memory__ctx, .memory__out { border-radius: var(--r-md); padding: 1rem 1.1rem; }
.memory__in { background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: 0.2rem; }
.memory__in strong { font-size: 1.05rem; }
.memory__in > span:last-child { color: var(--muted); font-size: 0.92rem; }
.memory__ctx { background: var(--violet-soft); }
.memory__ctx .memory__k { color: var(--violet); }
.memory__ctx ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; color: var(--ink-2); font-size: 0.95rem; }
.memory__out { background: var(--sage-tint); box-shadow: inset 0 0 0 1px rgba(63, 110, 84, 0.18); display: grid; gap: 0.8rem; }
.memory__out p { margin: 0; color: var(--ink); line-height: 1.6; }
.memory__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.memory__note { font-size: 0.8rem; color: var(--faint); }


/* ---------- Morgen: Sonnenaufgang ---------- */
.morning__sun {
  right: 10%;
  top: calc(82% - var(--day) * 62%);
  width: clamp(8rem, 5rem + 9vw, 15rem);
  background: none;
  opacity: 1;
  --warm: color-mix(in oklab, #ff8f5a calc((1 - var(--day)) * 100%), #ffcf86);
}
.sun__core {
  position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffdf7 0%, #fff0cc 32%, var(--warm) 78%, color-mix(in oklab, var(--warm) 80%, #e8744a) 100%);
  box-shadow: 0 0 36px 8px color-mix(in oklab, var(--warm) 70%, transparent), 0 0 120px 44px rgba(255, 200, 130, calc(0.18 + var(--day) * 0.22));
}
.sun__corona {
  position: absolute; inset: -35%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 186, 0.8) 0%, rgba(255, 208, 146, 0.32) 34%, transparent 66%);
  animation: sun-breathe 7s ease-in-out infinite;
}
.sun__rays {
  position: absolute; inset: -110%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 160, 0) 0deg 7deg, rgba(255, 220, 160, 0.42) 7deg 9.5deg);
  -webkit-mask: radial-gradient(circle, #000 14%, rgba(0, 0, 0, 0.35) 34%, transparent 58%);
          mask: radial-gradient(circle, #000 14%, rgba(0, 0, 0, 0.35) 34%, transparent 58%);
  opacity: calc(0.15 + var(--day) * 0.7);
  animation: sun-spin 90s linear infinite;
}
.sun__rays--b {
  background: repeating-conic-gradient(from 4deg, rgba(255, 238, 205, 0) 0deg 11deg, rgba(255, 238, 205, 0.35) 11deg 13deg);
  animation-duration: 140s; animation-direction: reverse;
}
@keyframes sun-spin { to { rotate: 360deg; } }
@keyframes sun-breathe { 0%, 100% { scale: 1; opacity: 0.85; } 50% { scale: 1.08; opacity: 1; } }

.morning__beams {
  position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(from 205deg at 80% calc(82% - var(--day) * 62% + 7%),
    transparent 0deg, rgba(255, 228, 182, 0.4) 6deg, transparent 13deg,
    transparent 22deg, rgba(255, 228, 182, 0.28) 28deg, transparent 36deg,
    transparent 48deg, rgba(255, 228, 182, 0.22) 53deg, transparent 60deg,
    transparent 360deg);
  filter: blur(8px);
  opacity: calc(var(--day) * 0.85);
  mix-blend-mode: screen;
}

.cloud {
  position: absolute; pointer-events: none;
  height: 2.6rem; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -14px rgba(122, 88, 56, 0.35);
  animation: cloud-drift 26s ease-in-out infinite alternate;
}
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; box-shadow: inset 0 1px 0 #fff; }
.cloud::before { width: 42%; aspect-ratio: 1; left: 16%; bottom: 40%; }
.cloud::after { width: 30%; aspect-ratio: 1; left: 48%; bottom: 30%; }
.cloud--a { width: clamp(7rem, 5rem + 5vw, 11rem); right: 3%; top: 26%; }
.cloud--b { width: clamp(5rem, 4rem + 3vw, 8rem); right: 27%; top: 46%; height: 2rem; animation-duration: 34s; animation-delay: -12s; opacity: 0.85; }
.cloud--c { width: clamp(4rem, 3rem + 2vw, 6rem); right: 18%; top: 12%; height: 1.6rem; animation-duration: 42s; animation-delay: -20s; opacity: 0.7; }
@keyframes cloud-drift { from { translate: 0 0; } to { translate: -3.5rem 0.3rem; } }

.morning__horizon { height: 32%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 70%, rgba(255, 255, 255, 0.7)); }
.morning__horizon::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 20%, rgba(255, 198, 140, 0.95) 78%, transparent);
  box-shadow: 0 0 28px 8px rgba(255, 206, 150, 0.4);
  opacity: calc(1 - var(--day) * 0.7);
}
.morning__clock {
  margin-left: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 0.82rem; color: #8a4a12;
  background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(176, 106, 28, 0.2);
}
.morning__grid { z-index: 1; }
@media (max-width: 900px) { .morning__sun { right: -6%; top: calc(40% - var(--day) * 34%); } .cloud--b { display: none; } }
@media (prefers-reduced-motion: reduce) { .sun__rays, .sun__corona, .cloud { animation: none !important; } }


/* Sonne: Weg hinter der Milchglaskarte, Aufgang über deren Ecke */
.morning__sun { right: 11%; top: calc(88% - var(--day) * 80%); width: clamp(10rem, 6rem + 11vw, 18rem); }
.morning__beams {
  background: conic-gradient(from 205deg at 79% calc(88% - var(--day) * 80% + 16%),
    transparent 0deg, rgba(255, 228, 182, 0.4) 6deg, transparent 13deg,
    transparent 22deg, rgba(255, 228, 182, 0.28) 28deg, transparent 36deg,
    transparent 48deg, rgba(255, 228, 182, 0.22) 53deg, transparent 60deg,
    transparent 360deg);
}
.morning .brief {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.46));
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
          backdrop-filter: blur(22px) saturate(1.35);
}
@media (max-width: 900px) { .morning__sun { right: -8%; top: calc(46% - var(--day) * 40%); width: clamp(8rem, 30vw, 11rem); } }


/* ---------- Preise: Abrechnung und Stufen ---------- */
.billing { display: flex; justify-content: center; margin: -0.5rem 0 1.6rem; }
.billing__switch { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--glass-strong); box-shadow: var(--shadow-1), var(--inner-light); }
.billing__btn { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--muted); padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.billing__btn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.billing__btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.billing__save { font-size: 0.74rem; font-weight: 800; color: var(--sage-deep); background: var(--sage-soft); padding: 0.15rem 0.5rem; border-radius: 999px; }
.plan__cta { margin-top: auto; justify-content: center; }
.plan--free { background: linear-gradient(165deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5)); }
.plan__price b { transition: opacity 0.2s var(--ease); }
@media (max-width: 480px) { .billing__btn { padding: 0.5rem 0.8rem; font-size: 0.86rem; } .billing__save { display: none; } }

