/* ==========================================================================
   Diktiermanufaktur – Stylesheet
   Gestaltung nach dem Digimanufaktur-Designsystem (Archivo Variable,
   Farben wie kimanufaktur.org (Lila #7c3aed)). Keine externen Ressourcen.
   ========================================================================== */

/* ---------- Schrift (lokal, SIL Open Font License) ---------- */

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations'),
       url('../fonts/archivo-latin-ext-wdth-normal.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: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'),
       url('../fonts/archivo-latin-wdth-normal.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;
}

/* ---------- Tokens ---------- */

:root {
  /* Farbwerte wie kimanufaktur.org (Digimanufaktur-Familie) */
  --black: #000;
  --white: #fff;
  --bg: #08080b;
  --bg-soft: #0e0e14;
  --panel: #101018;
  --acc: #7c3aed;                       /* Haupt-Lila: Buttons, Akzente, Ecken-Motiv, Wellenform */
  --acc-2: #8b5cf6;                     /* helleres Lila: Hover, lila Text auf dunklem Grund */
  --acc-soft: rgba(124, 58, 237, .14);  /* lila Flächen und Glows */
  --acc-line: rgba(124, 58, 237, .6);

  --fg: #f2f2f5;                        /* --txt */
  --fg-2: #a3a3ad;                      /* --txt-dim */
  --fg-3: rgba(242, 242, 245, .52);     /* kleine Nebentexte, AA-Kontrast auf --bg */
  --fg-4: #6e6e78;                      /* --txt-faint: nur Dekoratives */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --surface: var(--bg-soft);
  --surface-2: var(--panel);

  --f: 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(20px, 3.4vw, 56px);
  --max: 1280px;
  --radius: 22px;
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);

  color-scheme: dark;
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--acc); color: var(--white); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
kbd { font-family: var(--f); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--acc); color: var(--white); border-radius: 999px; font-size: 14px; font-weight: 500; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 13vw, 190px); }
.section--tight { padding-block: clamp(72px, 9vw, 130px); }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Typografie ---------- */

.t-display { font-stretch: 116%; font-weight: 500; letter-spacing: -.035em; line-height: .95; font-size: clamp(40px, 8vw, 124px); }
.t-xl { font-stretch: 114%; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-size: clamp(34px, 5.2vw, 76px); }
.t-l { font-stretch: 110%; font-weight: 500; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(26px, 3vw, 42px); }
.t-m { font-stretch: 106%; font-weight: 500; letter-spacing: -.01em; line-height: 1.22; font-size: clamp(19px, 1.5vw, 22px); }
.t-lead { color: var(--fg-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 40ch; }
.t-body { color: var(--fg-2); font-size: 16.5px; line-height: 1.6; }
.t-small { color: var(--fg-3); font-size: 13.5px; line-height: 1.5; }
.accent { color: var(--acc-2); }
.muted { color: var(--fg-3); }
.nowrap { white-space: nowrap; }

/* Kleine Überschrift (Monospace, Lila) mit lila Ecke – Motiv aus der Bildmarke */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--acc-2);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ''; width: 10px; height: 10px; flex: none;
  border-top: 2px solid var(--acc); border-right: 2px solid var(--acc);
}

.section__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section__head .t-lead { justify-self: end; }
@media (max-width: 860px) {
  .section__head { grid-template-columns: 1fr; }
  .section__head .t-lead { justify-self: start; }
}

/* Lila Ecke als Element (rechts oben) – Motiv aus der Bildmarke */
.corner { position: relative; }
.corner::after {
  content: ''; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px;
  border-top: 2px solid var(--acc); border-right: 2px solid var(--acc);
  border-top-right-radius: inherit; pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 6px 0 22px; border-radius: 999px;
  background: var(--fg); color: var(--black);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .3s, box-shadow .3s;
}
.btn--lg { height: 58px; padding: 0 8px 0 26px; font-size: 16.5px; }
.btn--sm { height: 40px; padding: 0 5px 0 16px; font-size: 14px; gap: 10px; }
.btn--accent { background: var(--acc); color: var(--white); }
.btn--accent:hover { background: var(--acc-2); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn--block { width: 100%; justify-content: space-between; }
.btn__text { position: relative; display: block; overflow: hidden; line-height: 1.3; }
.btn__text > span { display: block; transition: transform .55s var(--ease-out); }
.btn__text > span + span { position: absolute; inset: 0; transform: translateY(105%); }
.btn:hover .btn__text > span:first-child { transform: translateY(-105%); }
.btn:hover .btn__text > span + span { transform: translateY(0); }
.btn__icon {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--black); color: var(--white);
}
.btn--accent .btn__icon { color: var(--white); }
.btn--lg .btn__icon { width: 44px; height: 44px; }
.btn--sm .btn__icon { width: 30px; height: 30px; }
.btn--ghost .btn__icon { background: var(--white); color: var(--black); }
.btn__icon svg { width: 13px; height: 13px; grid-area: 1 / 1; transition: transform .55s var(--ease-out); }
.btn__icon svg + svg { transform: translate(-30px, 30px); }
.btn:hover .btn__icon svg:first-child { transform: translate(30px, -30px); }
.btn:hover .btn__icon svg + svg { transform: translate(0, 0); }
.btn--down .btn__icon svg { transform: rotate(135deg); }
.btn--down .btn__icon svg + svg { transform: translateY(-34px) rotate(135deg); }
.btn--down:hover .btn__icon svg:first-child { transform: translateY(34px) rotate(135deg); }
.btn--down:hover .btn__icon svg + svg { transform: rotate(135deg); }
.btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

.textlink { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.textlink:hover { text-decoration-color: var(--acc); }

/* ---------- Kopfzeile ---------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: var(--gutter);
  transition: transform .7s var(--ease-out), background .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(8, 8, 11, .85); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-stretch: 112%; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav__links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.nav__link { display: block; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color .3s, background .3s; }
.nav__link:hover { color: var(--fg); background: rgba(255, 255, 255, .08); }
@media (max-width: 900px) { .nav__links { display: none; } }
@media (max-width: 420px) {
  .brand span { display: none; }
}

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

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

.hero { position: relative; padding-top: clamp(140px, 17vw, 210px); padding-bottom: clamp(40px, 5vw, 70px); overflow: hidden; }
.hero__corner {
  position: absolute; top: 112px; right: var(--gutter); width: clamp(80px, 14vw, 210px); height: clamp(80px, 14vw, 210px);
  border-top: 3px solid var(--acc); border-right: 3px solid var(--acc);
  pointer-events: none;
}
.js .hero__corner { clip-path: inset(0 0 100% 100%); animation: draw 1.6s .35s var(--ease-inout) forwards; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
.hero__glow {
  position: absolute; top: -42vmax; left: 50%; width: 110vmax; height: 70vmax; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, .26), rgba(124, 58, 237, 0));
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__icon { width: 76px; height: 76px; margin-bottom: 34px; border-radius: 17px; }
.hero__title { max-width: none; }
.hero__title .line { display: block; }
.hero__sub { margin-top: 34px; max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; font-size: 14px; color: var(--fg-3); }
.hero__meta svg { width: 16px; height: 16px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Zeilen-Einblendung beim Laden */
.js .hero [data-in] { opacity: 0; transform: translateY(30px); animation: rise 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Live-Demo ---------- */

.demo { padding-top: clamp(30px, 4vw, 60px); }
.demo__stage {
  position: relative; overflow: hidden;
  border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line);
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  min-height: clamp(520px, 52vw, 640px);
  padding: clamp(28px, 4vw, 56px) clamp(14px, 4vw, 56px) 120px;
  display: flex; flex-direction: column; align-items: center;
}
.demo__stage::before {
  content: ''; position: absolute; left: 50%; bottom: -40%; width: 80%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, .14), rgba(124, 58, 237, 0)); pointer-events: none;
}
.demo__tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: clamp(22px, 3vw, 34px); }
.demo__tab { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg-3); transition: color .4s, background .4s; }
.demo__tab.is-active { color: var(--black); background: var(--white); }
.demo__tab:hover:not(.is-active) { color: var(--fg); }

.win {
  position: relative; width: min(100%, 680px);
  border-radius: 16px; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.win__bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.win__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.win__title { flex: 1; text-align: center; margin-right: 54px; font-size: 13px; font-weight: 500; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__body { position: relative; height: clamp(280px, 30vw, 330px); }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }
.view.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out), visibility 0s; }

/* Chat */
.chat__log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px; overflow: hidden; }
.bubble { max-width: 78%; padding: 10px 15px; border-radius: 19px; font-size: 15px; line-height: 1.4; }
.bubble--in { align-self: flex-start; background: rgba(255, 255, 255, .1); border-bottom-left-radius: 6px; }
.bubble--out { align-self: flex-end; background: var(--acc); color: var(--white); border-bottom-right-radius: 6px; }
.bubble--new { transform-origin: bottom right; animation: pop .5s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.chat__meta { align-self: center; font-size: 12px; color: var(--fg-3); margin-bottom: 4px; }
.chat__input { display: flex; align-items: flex-start; gap: 10px; margin: 0 16px 16px; padding: 10px 16px; min-height: 46px; border-radius: 23px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; line-height: 1.45; }

/* Mail */
.mail__fields { border-bottom: 1px solid var(--line); }
.mail__field { display: flex; gap: 10px; padding: 10px 20px; font-size: 14px; border-bottom: 1px solid var(--line); }
.mail__field:last-child { border-bottom: 0; }
.mail__field dt { color: var(--fg-3); width: 64px; flex: none; }
.mail__field dd { color: var(--fg); }
.mail__body { flex: 1; padding: 18px 20px; font-size: 15px; line-height: 1.55; overflow: hidden; }

/* Text, der diktiert wird */
.dict { position: relative; flex: 1; min-width: 0; }
.dict__ph { color: var(--fg-3); }
.dict__raw { display: inline; }
.dict__final { display: block; }
.dict__raw + .dict__final { margin-top: 14px; }
.dict__raw { color: rgba(255, 255, 255, .62); }
.dict__raw .w { display: inline; transition: color .4s, opacity .4s, text-decoration-color .4s; text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 2px; }
.dict__raw .w.is-cut { color: rgba(255, 255, 255, .35); text-decoration-color: var(--acc); }
.dict__raw.is-leaving { opacity: 0; filter: blur(4px); transition: opacity .45s, filter .45s; }
.dict__final { white-space: pre-line; }
.dict__final.is-entering { animation: settle .7s var(--ease-out); }
@keyframes settle { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--acc); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Schwebende Pille – Nachbau des App-Overlays */
.pill {
  position: absolute; left: 50%; bottom: 34px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate(-50%, 16px) scale(.96); opacity: 0;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out);
  max-width: calc(100% - 28px);
}
.pill.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pill__lead { position: relative; width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.pill__lead > * { grid-area: 1 / 1; transition: opacity .25s, transform .3s var(--ease-out); opacity: 0; transform: scale(.7); }
.pill[data-phase='rec'] .pill__mic, .pill[data-phase='work'] .pill__spin, .pill[data-phase='done'] .pill__check { opacity: 1; transform: none; }
.pill__mic { width: 30px; height: 30px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-2); display: grid; place-items: center; }
.pill__mic svg { width: 14px; height: 14px; }
.pill__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); border-top-color: var(--white); animation: spin .8s linear infinite; }
.pill__check svg { width: 24px; height: 24px; color: var(--acc-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.pill__text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pill__head { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; }
.pill__sub { font-size: 12px; color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 2px; width: 84px; height: 26px; flex: none; transition: width .3s var(--ease-out), opacity .3s; }
.pill:not([data-phase='rec']) .wave { width: 0; opacity: 0; }
.wave i { display: block; width: 2.5px; height: 3px; border-radius: 2px; background: var(--acc); transition: height .09s linear; }

/* Taste im Demo-Bild */
.demo__key { position: absolute; left: clamp(16px, 3vw, 34px); bottom: 34px; z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--fg-3); }
.keycap {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 10px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(255, 255, 255, .12);
  font-size: 19px; font-weight: 500; color: var(--fg);
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.keycap.is-down { transform: translateY(3px); background: var(--acc); color: var(--white); box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 26px rgba(124, 58, 237, .55); }
.demo__toggle {
  position: absolute; right: clamp(16px, 3vw, 34px); bottom: 34px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); transition: color .3s, box-shadow .3s;
}
.demo__toggle:hover { color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.demo__toggle svg { width: 14px; height: 14px; }
.demo__toggle .i-play { display: none; }
.demo__toggle[aria-pressed='true'] .i-play { display: block; }
.demo__toggle[aria-pressed='true'] .i-pause { display: none; }
.demo__stage.is-paused * { animation-play-state: paused !important; }
.demo__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 22px; }

@media (max-width: 700px) {
  .demo__stage { padding-bottom: 170px; border-radius: 20px; min-height: 0; }
  .pill { bottom: 84px; }
  .demo__key { bottom: 22px; }
  .demo__toggle { bottom: 24px; }
  .win__title { margin-right: 0; }
  .win__body { height: 300px; }
  .wave { width: 56px; }
  .pill__sub { max-width: 44vw; }
}
@media (max-width: 400px) {
  .pill { gap: 10px; padding: 10px 13px; }
  .wave { width: 40px; overflow: hidden; }
  .bubble { max-width: 88%; }
}

/* ---------- So funktioniert's ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.step__visual { height: 120px; display: flex; align-items: center; margin: 22px 0 26px; }
.step h3 { margin-bottom: 10px; }
.step__arrow { position: absolute; top: 50%; right: -13px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--acc-2); transform: translateY(-50%); }
.step__arrow svg { width: 11px; height: 11px; }
.keyrow { display: flex; gap: 8px; align-items: flex-end; }
.keyrow .keycap { height: 56px; min-width: 56px; font-size: 22px; }
.keyrow .keycap--wide { min-width: 128px; }
.keyrow .keycap small { display: block; font-size: 11px; color: inherit; opacity: .7; margin-top: -4px; }
.keyrow .keycap.is-down small { opacity: .8; }
.keyrow .keycap--stack { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.bars { display: flex; align-items: center; gap: 4px; height: 70px; }
.bars i { width: 4px; border-radius: 3px; background: var(--acc); height: 20%; }
.js .bars.is-live i { animation: eq 1.1s var(--ease-inout) infinite alternate; animation-delay: calc(var(--i) * -0.13s); }
@keyframes eq { 0% { height: 14%; } 50% { height: var(--h, 70%); } 100% { height: 30%; } }
.field-demo { width: 100%; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; line-height: 1.45; }
.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.shortcut { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg-2); font-size: 15px; }
.shortcut kbd { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); font-size: 14px; font-weight: 500; }
.shortcut b { color: var(--fg); font-weight: 500; }
@media (max-width: 960px) {
  .steps, .shortcuts { grid-template-columns: 1fr; }
  .step__arrow { top: auto; bottom: -13px; right: 50%; transform: translateX(50%) rotate(90deg); }
}

/* ---------- Funktionen ---------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s;
}
.feature:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.feature::after {
  content: ''; position: absolute; top: 0; right: 0; width: 22px; height: 22px;
  border-top: 2px solid var(--acc); border-right: 2px solid var(--acc); border-top-right-radius: var(--radius);
  opacity: 0; transition: opacity .4s;
}
.feature:hover::after { opacity: 1; }
.feature--wide { grid-column: span 2; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--acc-2); margin-bottom: 10px; }
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-stretch: 106%; font-weight: 500; font-size: 21px; letter-spacing: -.01em; line-height: 1.2; }
.feature p { color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }
.feature__extra { margin-top: auto; padding-top: 18px; }
.ba { display: grid; gap: 10px; }
.ba__row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 15px; line-height: 1.45; }
.ba__row span:first-child { font-size: 12px; color: var(--fg-3); }
.ba__row s { color: var(--fg-3); text-decoration-color: var(--acc); text-decoration-thickness: 2px; }
.ba__row--after { box-shadow: inset 0 0 0 1px var(--acc-line); }
.styles-map { display: grid; gap: 8px; }
.styles-map li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 15px; }
.styles-map li span:first-child { color: var(--fg-2); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); white-space: nowrap; }
.tag--accent { box-shadow: inset 0 0 0 1px var(--acc-line); color: var(--white); background: var(--acc-soft); }
.apps { display: flex; flex-wrap: wrap; gap: 8px; }
.apps .tag { color: var(--fg-2); }
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .ba__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Datenschutz ---------- */

.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.privacy__list { display: grid; gap: 0; margin-top: 44px; }
.privacy__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.privacy__item:last-child { border-bottom: 1px solid var(--line); }
.privacy__item svg { width: 22px; height: 22px; color: var(--acc-2); margin-top: 2px; }
.privacy__item h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.privacy__item p { color: var(--fg-2); font-size: 15.5px; }

.flow { position: relative; display: grid; gap: 14px; }
.flow__zone { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-2); }
.flow__zone--mac { box-shadow: inset 0 0 0 1px var(--acc-line); background: rgba(124, 58, 237, .07); }
.flow__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.flow__label .tag { height: 24px; font-size: 12px; }
.flow__steps { display: grid; gap: 8px; }
.flow__step { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.flow__step svg { width: 18px; height: 18px; flex: none; color: var(--fg-2); }
.flow__step small { margin-left: auto; color: var(--fg-3); font-size: 12.5px; text-align: right; }
.flow__link { display: flex; align-items: center; gap: 12px; padding-left: 24px; font-size: 13px; color: var(--fg-3); }
.flow__link::before { content: ''; width: 1px; height: 30px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 4px, transparent 4px 8px); }
.flow__note { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.flow__note h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.flow__note p { color: var(--fg-2); font-size: 15.5px; }
@media (max-width: 960px) { .privacy__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .flow__step small { display: none; } }

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

.billing { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 28px; }
.billing button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--fg-2); transition: background .3s, color .3s; }
.billing button[aria-pressed='true'] { background: var(--white); color: var(--black); }
.billing .save { font-size: 12px; color: var(--acc-2); }
.billing button[aria-pressed='true'] .save { color: var(--black); opacity: .7; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan--featured { background: rgba(124, 58, 237, .08); box-shadow: inset 0 0 0 1px var(--acc-line); }
.plan--featured::after { content: ''; position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-top: 2px solid var(--acc); border-right: 2px solid var(--acc); border-top-right-radius: var(--radius); }
.plan__badge { position: absolute; top: -13px; left: 26px; height: 26px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--acc); color: var(--white); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.plan__name { font-stretch: 110%; font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.plan__desc { margin-top: 6px; color: var(--fg-2); font-size: 14.5px; min-height: 3em; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 22px; }
.plan__amount { font-stretch: 112%; font-weight: 500; font-size: clamp(38px, 3.4vw, 48px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--fg-2); font-size: 15px; }
.plan__note { margin-top: 8px; min-height: 1.5em; color: var(--fg-3); font-size: 13.5px; }
.plan__trial { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--acc-soft); color: var(--white); font-size: 13.5px; font-weight: 500; }
.plan__list { display: grid; gap: 10px; margin: 24px 0 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.plan__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--fg-2); }
.plan__list li::before { content: ''; width: 10px; height: 6px; margin-top: 7px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.plan__list b { color: var(--fg); font-weight: 500; }
.plan .btn { margin-top: auto; }
.pricing__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.pricing__box { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg-2); font-size: 15px; }
.pricing__box svg { width: 20px; height: 20px; flex: none; color: var(--acc-2); margin-top: 2px; }
.pricing__box b { color: var(--fg); font-weight: 500; }
.pricing__legal { margin-top: 26px; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 680px) {
  .plans, .pricing__foot { grid-template-columns: 1fr; }
  .plan__desc { min-height: 0; }
}

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

.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 100px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-stretch: 106%; font-weight: 500; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, box-shadow .3s; }
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--fg); transition: transform .4s var(--ease-out), background .3s; }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--acc); box-shadow: none; }
.faq__item[open] .faq__plus::before, .faq__item[open] .faq__plus::after { background: var(--white); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__item summary:hover .faq__plus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.faq__answer { padding: 0 56px 26px 0; color: var(--fg-2); font-size: 16px; line-height: 1.65; }
.faq__answer p + p { margin-top: .8em; }
.faq__answer ol { margin: .8em 0; padding-left: 1.4em; display: grid; gap: .45em; list-style: decimal; }
.faq__answer ol li::marker { color: var(--acc-2, #8b5cf6); font-weight: 600; }
.faq__answer ol + p { margin-top: .8em; }
.faq__answer b { color: var(--fg); font-weight: 600; }
.faq__item[open] .faq__answer { animation: fadein .5s var(--ease-out); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__answer { padding-right: 0; } }

/* ---------- Abschluss-CTA ---------- */

.cta { text-align: center; overflow: hidden; }
.cta__icon { width: 96px; height: 96px; margin: 0 auto 40px; border-radius: 22px; }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { margin: 26px auto 0; max-width: 40ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cta__glow { position: absolute; left: 50%; top: 55%; width: min(1100px, 120vw); height: 70%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, .16), rgba(124, 58, 237, 0)); pointer-events: none; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__maker { display: flex; flex-direction: column; gap: 14px; }
.footer__maker img { width: 168px; height: auto; }
.footer__maker span { font-size: 13.5px; color: var(--fg-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--fg-2); }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--fg); }
.footer__links a[aria-current='page'] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }

/* ---------- Unterseiten (Kauf, Danke, Rechtstexte) ---------- */

.page { padding-top: clamp(130px, 14vw, 180px); padding-bottom: clamp(80px, 10vw, 140px); min-height: 70vh; }
.page__narrow { max-width: 820px; }
.page h1 { margin-bottom: 26px; }
.draft {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 40px; padding: 18px 22px; border-radius: 14px;
  background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); color: var(--fg); font-size: 15px;
}
.draft svg { width: 20px; height: 20px; flex: none; color: var(--acc-2); margin-top: 1px; }
.draft b { color: var(--white); font-weight: 600; }
.legal { color: var(--fg-2); font-size: 16px; line-height: 1.7; }
.legal h2 { color: var(--fg); font-stretch: 108%; font-weight: 500; font-size: 22px; letter-spacing: -.01em; line-height: 1.25; margin: 52px 0 14px; }
.legal h3 { color: var(--fg); font-weight: 500; font-size: 17px; margin: 30px 0 8px; }
.legal p + p { margin-top: .9em; }
.legal ul, .legal ol { list-style: disc; padding-left: 1.2em; margin: .7em 0; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: .35em; }
.legal a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--acc); }
.legal strong { color: var(--fg); font-weight: 500; }
.legal address { font-style: normal; }
.legal .box { margin: 18px 0; padding: 20px 22px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.legal .stand { margin-top: 48px; font-size: 14px; color: var(--fg-3); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 90px); align-items: start; }
.checkout__card { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); font-size: 15px; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--acc-2); margin-top: 2px; }
.notice b { color: var(--fg); font-weight: 500; }
.notice--accent { background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); color: var(--fg); }
.planpick { display: grid; gap: 10px; margin-top: 18px; }
.planpick a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.planpick a:hover { box-shadow: inset 0 0 0 1px var(--acc-line); }
.planpick span:last-child { color: var(--fg-2); white-space: nowrap; }
.checkout__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }

.thanks { text-align: center; }
.thanks__icon { width: 96px; height: 96px; margin: 0 auto 36px; border-radius: 22px; }
.thanks p { margin: 22px auto 0; max-width: 46ch; }
.thanks .checkout__actions { justify-content: center; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero [data-in] { opacity: 1; transform: none; animation: none; }
  .js .hero__corner { clip-path: none; animation: none; }
  .caret { animation: none; }
}

/* ---------- Kündigungsformular (§ 312k BGB) ---------- */
.cancel { display: grid; gap: 22px; margin-top: 28px; }
.cancel__field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.cancel__field label, .cancel__field legend { color: var(--fg); font-weight: 500; font-size: 15px; }
.cancel__field legend { margin-bottom: 8px; }
.cancel input:not([type="radio"]), .cancel select, .cancel textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; font: inherit; font-size: 16px;
  color: var(--fg); background: var(--panel, #101018); box-shadow: inset 0 0 0 1px var(--line-2);
}
.cancel input[type="date"] { width: auto; padding: 8px 10px; margin-left: 6px; color-scheme: dark; }
.cancel input:focus-visible, .cancel select:focus-visible, .cancel textarea:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; }
.cancel small { color: var(--fg-3); font-size: 13px; }
.cancel__choice { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 400 !important; color: var(--fg-2) !important; }
.cancel__choice + .cancel__choice { margin-top: 6px; }
.cancel__choice input { accent-color: var(--acc); width: 18px; height: 18px; }
.cancel__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cancel__error { color: var(--white); background: rgba(124, 58, 237, .18); padding: 12px 14px; border-radius: 12px; }
.cancel__note { font-size: 14px; color: var(--fg-3); }
.cancel button:disabled { opacity: .6; cursor: wait; }
.cancel__summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.cancel__summary dt { color: var(--fg-3); }
.cancel__summary dd { color: var(--fg); margin: 0; word-break: break-word; }
@media (max-width: 560px) { .cancel__summary { grid-template-columns: 1fr; } .cancel__summary dd { margin-bottom: 8px; } }
@media print {
  .header, .footer, .cancel, .eyebrow, #d-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .cancel__done, .cancel__done * { color: #000 !important; box-shadow: none !important; }
}
.footer__links .footer__cancel { color: var(--fg); font-weight: 500; }
