/* ==========================================================================
   Cardan Solutions — Stylesheet
   1. Fonts & Tokens   2. Basis   3. Layout-Helfer   4. Header
   5. Hero   6. Geräte-Rahmen   7. Leistungen   8. Live-Demo (Bühne)
   9. Projekte   10. Ablauf & Prinzipien   11. FAQ   12. Kontakt   13. Footer
   14. Unterseiten (Impressum/Datenschutz)   15. Animationen
   ========================================================================== */

/* 1. Fonts & Tokens ------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212;
}

:root {
  color-scheme: light;
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --card: #fffdf9;
  --ink: #16151c;
  --ink-2: #33323c;
  --muted: #62616c;
  --line: rgba(22, 21, 28, 0.11);
  --line-strong: rgba(22, 21, 28, 0.2);
  --accent: #ff5b2e;
  --accent-ink: #c2360f;
  --accent-soft: #ffe3d8;
  --stage: #121118;
  --stage-2: #1b1a23;
  --stage-line: rgba(255, 255, 255, 0.1);
  --ok: #1f9d55;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22, 21, 28, 0.06), 0 2px 8px rgba(22, 21, 28, 0.05);
  --shadow: 0 2px 6px rgba(22, 21, 28, 0.06), 0 18px 40px -12px rgba(22, 21, 28, 0.22);
  --shadow-lg: 0 4px 10px rgba(22, 21, 28, 0.08), 0 40px 80px -24px rgba(22, 21, 28, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 16px;
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* 2. Basis ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; /* iOS: niente scorrimento laterale */ }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word; /* lange deutsche Wörter brechen um, statt abgeschnitten zu werden */
  overflow-x: clip; /* Fallback für ältere Safari: overflow-x am <html> */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Layout-Helfer ---------------------------------------------------------- */
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 144px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); }
.section-head p { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(22, 21, 28, 0.45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--ink); --b-bd: var(--accent); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn--ghost:hover { --b-bg: var(--card); box-shadow: var(--shadow-sm); }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: rgba(255, 255, 255, 0.55);
}

/* 4. Header ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(245, 242, 236, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; font-size: 19px; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo small { font-weight: 500; color: var(--muted); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: background-color 0.2s;
}
.nav__links a:hover { background: rgba(22, 21, 28, 0.06); }
.nav__links a.is-active { background: rgba(22, 21, 28, 0.07); color: var(--ink); }
.nav__cta { margin-left: 8px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; margin-left: 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.55); flex: none; }
.lang button {
  border: 0; background: transparent; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); transition: background-color 0.2s, color 0.2s;
}
.lang button:hover { background: rgba(22, 21, 28, 0.07); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav__burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--card); align-items: center; justify-content: center;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__burger { display: inline-flex; margin-left: 8px; }
  .nav__cta { display: none; }
  .lang { margin-left: auto; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px;
    background: rgba(245, 242, 236, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 30px -20px rgba(22, 21, 28, 0.3);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav.is-open { background: rgba(245, 242, 236, 0.97); }
  .nav__links a { font-size: 18px; padding: 14px 12px; }
  .nav__links .nav__mcta { display: flex; margin-top: 10px; }
}
.nav__mcta { display: none; }

/* 5. Hero ------------------------------------------------------------------ */
.hero { position: relative; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: -72px 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 82% 22%, rgba(255, 91, 46, 0.16), transparent 70%),
    radial-gradient(520px 360px at 8% 8%, rgba(122, 31, 110, 0.08), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero h1 { font-size: clamp(40px, 5.3vw, 74px); letter-spacing: -0.045em; line-height: 1.0; font-weight: 700; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.3em; overflow: visible; }
.hero h1 .hl path { stroke: var(--accent); stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s 0.5s var(--ease) forwards; }
.hero h1 .muted { color: var(--muted); display: block; margin-top: 0.1em; }
.hero__lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14.5px; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

.hero__visual { position: relative; aspect-ratio: 1 / 0.92; min-height: 0; }
.hero__visual .browser { position: absolute; left: 0; top: 6%; width: 88%; transform: rotate(-1.2deg); }
.hero__visual .phone { position: absolute; right: 0; bottom: 0; width: 34%; transform: rotate(3deg); }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 14px; line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 650; font-size: 14.5px; }
.float-card span { color: var(--muted); font-size: 13px; }
.float-card i {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-style: normal; font-size: 19px;
  background: var(--accent-soft);
}
.float-card--order { left: -4%; bottom: 14%; }
.float-card--resv { right: 24%; top: -2%; animation-delay: -3s; }
.float-card--resv i { background: #dcf3e5; }
.float-card .ping { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.float-card .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 440px) {
  .logo small { display: none; }
}
/* Schmale Handys (z. B. iPhone SE): Silbentrennung statt abgeschnittener Wörter */
@media (max-width: 640px) {
  h2, h3, p, li, summary, .tag, .btn, .seg button, .kpi small { -webkit-hyphens: auto; hyphens: auto; }
}
@media (max-width: 400px) {
  .nav__inner { gap: 10px; }
  .lang { margin-left: auto; }
  .lang button { min-width: 28px; padding: 0 4px; }
  .nav__burger { width: 42px; height: 42px; margin-left: 4px; }
  .kpi { padding: 8px; }
  .kpi small { font-size: 10.5px; line-height: 1.25; }
  .kpi b { font-size: 15px; }
  .kpi em { font-size: 10.5px; line-height: 1.25; display: block; }
}
@media (max-width: 560px) {
  .hero__visual { aspect-ratio: 1 / 1.02; }
  .float-card { padding: 9px 12px 9px 9px; gap: 9px; }
  .float-card i { width: 32px; height: 32px; font-size: 16px; }
  .float-card b { font-size: 13px; }
  .float-card span { font-size: 12px; }
  .float-card--order { left: 0; bottom: 8%; }
  .float-card--resv { right: 18%; top: -4%; }
}

/* Tech-Leiste */
.stack { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; }
.stack__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.stack__track span { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.stack__track span::after { content: "✦"; color: var(--accent); font-size: 11px; }
.stack:hover .stack__track { animation-play-state: paused; }

/* 6. Geräte-Rahmen ------------------------------------------------------------ */
.browser {
  background: var(--card); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #efebe3; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d0c5; flex: none; }
.browser__bar i:nth-child(1) { background: #ff6159; }
.browser__bar i:nth-child(2) { background: #ffbd2e; }
.browser__bar i:nth-child(3) { background: #28c941; }
.browser__url {
  margin-inline: auto; transform: translateX(-18px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, 0.8);
  padding: 3px 12px; border-radius: 6px;
}
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.appwin__bar { background: #f4f6f8; }
.appwin__bar .browser__url { background: transparent; font-family: var(--font); font-weight: 600; color: var(--ink-2); }

/* Handy-Rahmen: alle Maße in cqi (= Prozent der Handybreite), damit der Rand bei jeder Größe gleich schmal bleibt */
.phone { position: relative; container-type: inline-size; }
.phone__screen {
  position: relative; overflow: hidden; padding-top: 9cqi;
  border: 4cqi solid #0f0f13; border-radius: 15cqi;
  background: var(--sb, #fff); color: var(--sb-ink, #14141a);
  box-shadow: var(--shadow-lg), 0 0 0 1px #34343c;
}
.phone__screen.is-dark { --sb-ink: #f4f4f6; }
/* Statusleiste mit Uhrzeit und Dynamic Island über dem Screenshot: verdeckt nichts vom Inhalt */
.phone__screen::before {
  content: "9:41"; position: absolute; top: 2.2cqi; left: 9cqi;
  font-size: 3.6cqi; line-height: 5cqi; font-weight: 650; font-variant-numeric: tabular-nums;
}
.phone__screen::after {
  content: ""; position: absolute; top: 2.2cqi; left: 50%; width: 26cqi; height: 5cqi;
  transform: translateX(-50%); border-radius: 99px; background: #0b0b0e;
}
/* Screenshot immer vollständig, im Seitenverhältnis 500 × 1082: nichts wird abgeschnitten */
.phone__screen img { display: block; width: 100%; height: auto; aspect-ratio: 500 / 1082; }
@supports not (width: 1cqi) {
  .phone__screen { padding-top: 0; border: 7px solid #0f0f13; border-radius: 26px; }
  .phone__screen::before, .phone__screen::after { display: none; }
}

/* 7. Leistungen --------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  position: relative; display: grid; align-content: start; gap: 14px;
  padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 23px; letter-spacing: -0.025em; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { display: grid; gap: 7px; margin-top: 2px; }
.service li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.service li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.service__link {
  margin-top: 6px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
  color: var(--accent-ink);
}
.service__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service--hero { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); overflow: hidden; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: 28px; }
.service--hero > * { grid-column: 1; }
.service--hero p, .service--hero li { color: rgba(255, 255, 255, 0.74); }
.service--hero .service__icon { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.service--hero .service__link { color: #ffb49d; }
.service--hero .service__badge {
  justify-self: start; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: var(--ink); padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.service__art { grid-column: 2 !important; grid-row: 1 / span 6; align-self: center; position: relative; height: 100%; min-height: 260px; }
.mini-ticket {
  position: absolute; width: 78%; right: 0; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); font-size: 13.5px; line-height: 1.35;
}
.mini-ticket b { font-size: 15px; }
.mini-ticket small { display: block; color: var(--muted); font-size: 12.5px; }
.mini-ticket .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mini-ticket .pill { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #efe7f7; color: #5c1553; white-space: nowrap; }
.mini-ticket .pill--ok { background: #dcf3e5; color: #11663a; }
.mini-ticket:nth-child(1) { top: 4%; transform: rotate(-3deg); right: 12%; }
.mini-ticket:nth-child(2) { top: 36%; transform: rotate(2deg); z-index: 1; }
.mini-ticket:nth-child(3) { top: 68%; transform: rotate(-1deg); right: 8%; }

@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 7 kleine Karten im 2er-Raster: die letzte füllt die Zeile */
  .services > .service:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service--hero { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .service__art { grid-column: 1 !important; grid-row: auto; min-height: 250px; margin-top: 8px; }
  .service { padding: 24px; }
}

/* 8. Live-Demo ------------------------------------------------------------ */
.demo { background: var(--stage); color: #fff; position: relative; overflow: hidden; }
.demo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 12% 0%, color-mix(in srgb, var(--d-brand) 45%, transparent), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(255, 91, 46, 0.18), transparent 70%);
  transition: background 0.6s;
}
.demo .wrap { position: relative; }
.demo .eyebrow { color: rgba(255, 255, 255, 0.64); }
.demo .eyebrow::before { box-shadow: 0 0 0 4px rgba(255, 91, 46, 0.25); }
.demo .section-head p { color: rgba(255, 255, 255, 0.7); }

.demo__controls {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end;
  padding: 18px; margin-bottom: 22px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stage-line);
}
.ctrl { display: grid; gap: 8px; }
.ctrl__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); gap: 2px; }
.seg button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.75); min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; transition: background-color 0.2s, color 0.2s;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.name-input {
  min-height: 48px; width: 230px; max-width: 100%; padding: 0 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--stage-line); color: #fff; font-weight: 600;
}
.name-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.12); }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: transparent;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: #fff; }
.demo__controls .ctrl--grow { margin-left: auto; }
.viewswitch { display: none; }

.demo__stage { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.demo__col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.demo__caption { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.demo__caption b { color: #fff; font-weight: 600; }
.demo__caption .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: live 2s infinite; }

.steps { display: grid; gap: 8px; margin-top: 18px; }
.steps li {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px;
  color: rgba(255, 255, 255, 0.55); font-size: 14.5px; transition: background-color 0.3s, color 0.3s;
}
.steps li b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25); font-size: 12.5px; font-weight: 600;
}
.steps li.is-active { background: rgba(255, 255, 255, 0.07); color: #fff; }
.steps li.is-active b { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.steps li.is-done { color: rgba(255, 255, 255, 0.75); }
.steps li.is-done b { background: #3ddc84; border-color: #3ddc84; color: var(--ink); }
.steps li.is-done b::before { content: "✓"; }
.steps li.is-done b span { display: none; }

.demo__note { margin-top: 26px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); display: flex; gap: 10px; align-items: flex-start; }
.demo__note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.demo__features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.demo__features li { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stage-line); font-size: 14.5px; color: rgba(255, 255, 255, 0.7); }
.demo__features b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 4px; font-weight: 600; }
.demo__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: #fff; color: var(--ink); }
.demo__cta p { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.demo__cta p span { display: block; font-weight: 400; font-size: 15px; color: var(--muted); letter-spacing: 0; }

/* Demo-Paletten (wie im echten Produkt: Açaí / Kiwi / Papaya) */
[data-demo] { --d-brand: #7a1f6e; --d-strong: #5c1553; --d-soft: #f5e4f2; --d-tint: #fbf3fa; --d-cta: #d5f56a; --d-cta-ink: #1f2a07; }
[data-demo][data-palette="kiwi"] { --d-brand: #1f7a4d; --d-strong: #155c39; --d-soft: #e4f5ed; --d-tint: #f3fbf7; --d-cta: #ffd35c; --d-cta-ink: #3a2a00; }
[data-demo][data-palette="papaya"] { --d-brand: #c2410c; --d-strong: #9a3412; --d-soft: #ffe8d6; --d-tint: #fff6ee; --d-cta: #1c1917; --d-cta-ink: #fff; }

/* Demo-Handy */
.dphone {
  width: 100%; max-width: 360px; height: 720px; border-radius: 52px; padding: 11px; background: #0b0b0e;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1.5px #3a3a44, 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}
.dphone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 99px; background: #0b0b0e; z-index: 6; }
.dphone__screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--d-tint); color: #1d1b22;
  display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.4;
  -webkit-hyphens: auto; hyphens: auto; /* lange Wörter im Handy-Mockup trennen statt abschneiden */
}
.dphone__status { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px 0; height: 50px; font-size: 13.5px; font-weight: 650; flex: none; position: relative; z-index: 5; }
.dphone__status svg { height: 11px; width: auto; }
.dphone__body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; position: relative; }
.dphone__body::-webkit-scrollbar { display: none; }
.dphone__home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 9px; background: rgba(0, 0, 0, 0.8); z-index: 6; }

.p-screen { min-height: 100%; display: flex; flex-direction: column; }
.pb { padding: 0 18px 24px; }
.p-head { padding: 6px 18px 18px; }
.p-store { display: flex; align-items: center; gap: 10px; }
.p-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--d-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; transition: background-color 0.4s; }
.p-store b { display: block; font-size: 15.5px; letter-spacing: -0.02em; line-height: 1.2; }
.p-open { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #1f7a4d; font-weight: 600; }
.p-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-hero { margin-top: 16px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(145deg, var(--d-brand), var(--d-strong)); position: relative; overflow: hidden; transition: background 0.4s; }
.p-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.p-hero small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; font-weight: 600; }
.p-hero h4 { font-size: 24px; line-height: 1.05; margin-top: 6px; letter-spacing: -0.03em; font-weight: 700; }
.p-hero p { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.p-tabs { display: flex; gap: 6px; padding: 4px 18px 14px; position: sticky; top: 0; z-index: 3; background: linear-gradient(var(--d-tint) 80%, transparent); overflow-x: auto; scrollbar-width: none; }
.p-tabs button {
  border: 1px solid rgba(0, 0, 0, 0.08); background: #fff; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; white-space: nowrap; color: #3b3842;
}
.p-tabs button[aria-pressed="true"] { background: var(--d-brand); color: #fff; border-color: var(--d-brand); }
.p-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.p-prod {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left; width: 100%; transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.p-prod:not(:disabled):hover { box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.3); }
.p-prod:not(:disabled):active { transform: scale(0.98); }
.p-prod:disabled { opacity: 0.55; cursor: not-allowed; }
.p-thumb { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; flex: none; background: var(--d-soft); transition: background-color 0.4s; }
.p-prod__txt { flex: 1; min-width: 0; }
.p-prod__txt b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.p-prod__txt span { display: block; font-size: 12.5px; color: #6f6b78; line-height: 1.35; margin-top: 2px; }
.p-prod__txt em { display: block; font-style: normal; font-weight: 650; font-size: 13.5px; margin-top: 5px; }
.p-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 99px; background: #fff1d6; color: #8a5300; margin-left: 4px; vertical-align: 1px; }
.p-badge--out { background: #fde2e2; color: #a61b1b; }
.p-plus { width: 36px; height: 36px; border-radius: 50%; background: var(--d-brand); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 400; flex: none; line-height: 1; transition: background-color 0.4s; }
.p-plus.is-pulse { animation: pulseRing 1.8s infinite; }

.p-cartbar {
  position: sticky; bottom: 24px; margin: auto 12px 24px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 12px 18px; border-radius: 20px; background: #1d1b22; color: #fff; border: 0; text-align: left;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); animation: slideUp 0.4s var(--ease);
}
.p-cartbar small { display: block; font-size: 11.5px; opacity: 0.7; }
.p-cartbar b { font-size: 15px; }
.p-cartbar .go { background: var(--d-cta); color: var(--d-cta-ink); font-weight: 700; padding: 9px 14px; border-radius: 14px; font-size: 13.5px; white-space: nowrap; }
.p-cartbar.is-bump { animation: bump 0.45s var(--ease); }

.p-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; border-radius: 999px; min-height: 36px; padding: 0 14px 0 10px; font-weight: 600; font-size: 13.5px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); margin: 4px 18px 12px; }
.p-cfg-head { display: flex; gap: 14px; align-items: center; padding: 0 18px 16px; }
.p-cfg-head .p-thumb { width: 72px; height: 72px; font-size: 38px; border-radius: 20px; }
.p-cfg-head h4 { font-size: 21px; letter-spacing: -0.03em; }
.p-cfg-head p { font-size: 12.5px; color: #6f6b78; margin-top: 3px; }
.p-sec { padding: 0 18px 16px; }
.p-sec__t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.p-sec__t b { font-size: 15px; }
.p-sec__t span { font-size: 12px; color: #6f6b78; }
.p-co