/* =============================================================================
   Displayna — Marketing-Website Design-System
   DariaTech IT-Systemhaus · Memmingen
   Apple-inspiriert: viel Weißraum, große Typografie, dezente Tiefe,
   sanfte Scroll-Animationen. Reines CSS, kein Framework, kein Build.
   ========================================================================== */

:root {
  /* === Markenfarben (1:1 aus tailwind.config.js des Produkts) === */
  --brand-50:  rgb(239 246 255);
  --brand-100: rgb(219 234 254);
  --brand-200: rgb(191 219 254);
  --brand-300: rgb(147 197 253);
  --brand-400: rgb( 96 165 250);
  --brand-500: rgb( 37  99 235);  /* Primär, identisch zu .sd-toolbar-btn.primary */
  --brand-600: rgb( 29  78 216);  /* Hover */
  --brand-700: rgb( 30  64 175);
  --brand-800: rgb( 30  58 138);
  --brand-900: rgb( 23  37  84);

  --ink:       #0b0f1a;
  --ink-2:     #141a29;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --radius:    18px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow:    0 10px 30px -10px rgba(15,23,42,.18);
  --shadow-lg: 0 30px 60px -20px rgba(15,23,42,.30);

  /* Inter ist die echte Hausschrift des Produkts (tailwind.config.js).
     Wir laden sie selbst-gehostet ein (siehe Ende dieser Datei),
     damit keine Drittanbieter-CDN-Requests entstehen (DSGVO). */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1320px; }
.section { padding-block: clamp(64px, 10vw, 132px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.center { text-align: center; }

/* --------------------------------------------------------- Typografie */
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-500);
}
.eyebrow--light { color: var(--brand-400); }

h1, h2, h3, h4 { line-height: 1.07; letter-spacing: -.022em; font-weight: 700; color: var(--slate-900); }
.h-display { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -.03em; }
.h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--slate-600); font-weight: 400; }
.muted { color: var(--slate-500); }
.balance { text-wrap: balance; }
.maxch { max-width: 64ch; }
.maxch-sm { max-width: 48ch; }
.mx-auto { margin-inline: auto; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-6{margin-top:3rem}

/* gradient text */
.grad {
  background: linear-gradient(120deg, var(--brand-500), var(--brand-400) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: 1.02rem; line-height: 1;
  padding: .92em 1.5em; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--brand-500); color: #fff; box-shadow: 0 8px 24px -8px rgba(29,78,216,.6); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(29,78,216,.7); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--outline { border: 1.5px solid var(--slate-300); color: var(--slate-900); }
.btn--outline:hover { border-color: var(--brand-500); color: var(--brand-500); }
.btn--sm { font-size: .92rem; padding: .7em 1.1em; }
.btn--lg { font-size: 1.1rem; padding: 1.05em 1.9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { color: var(--brand-500); font-weight: 600; display: inline-flex; align-items: center; gap: .35em; }
.link-arrow::after { content: "›"; font-size: 1.2em; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------- Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(15,23,42,.07);
}
.nav__inner { max-width: 1320px; margin-inline: auto; padding: 0 var(--gutter);
  height: 60px; display: flex; align-items: center; gap: 28px; }
.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.nav__brand svg { width: 26px; height: 26px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link { padding: 8px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500; color: var(--slate-700); transition: background .2s, color .2s; }
.nav__link:hover { background: var(--slate-100); color: var(--slate-900); }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav__burger span { width: 20px; height: 2px; background: var(--slate-900); position: relative; transition: .3s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--slate-900); transition: .3s; }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

/* Dropdown (Funktionen / Branchen) */
.nav__group { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 300px; opacity: 0; visibility: hidden; transition: .22s var(--ease);
}
.nav__group:hover .nav__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__panel a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background .18s; }
.nav__panel a:hover { background: var(--slate-50); }
.nav__panel .t { font-weight: 600; font-size: .95rem; }
.nav__panel .d { font-size: .82rem; color: var(--slate-500); }
.nav__panel .ico { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--brand-50); display: grid; place-items: center; color: var(--brand-500); }

/* Mobile menu */
.mobile { position: fixed; inset: 60px 0 0; background: #fff; z-index: 99; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; padding: 20px var(--gutter) 60px; }
.mobile.open { transform: translateX(0); }
.mobile a { display: block; padding: 14px 4px; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--slate-100); }
.mobile .sub { font-size: .98rem; font-weight: 500; color: var(--slate-600); padding-left: 14px; }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(56,189,248,.20), transparent 60%),
    radial-gradient(55% 45% at 5% 0%, rgba(29,78,216,.14), transparent 60%);
}
.dark .hero__bg, .dark.hero__bg {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(56,189,248,.22), transparent 60%),
    radial-gradient(50% 40% at 0% 0%, rgba(29,78,216,.30), transparent 60%);
}

/* Dark sections (Apple-Stil schwarze Bühne) */
.dark { background: var(--ink); color: #e9eefb; }
.dark h1,.dark h2,.dark h3,.dark h4 { color: #fff; }
.dark .lead, .dark .muted { color: #aab6d4; }

/* --------------------------------------------------------- Cards / Grid */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr;} }

.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--slate-300); }
.card .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-50); color: var(--brand-500);
  display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--slate-600); font-size: .98rem; }
.dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.dark .card p { color: #9fb0d4; }
.dark .card .ico { background: rgba(56,189,248,.12); color: var(--brand-400); }

/* Feature split (Bild + Text nebeneinander) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; }

/* Pills / badges */
.pill { display: inline-flex; align-items: center; gap: .45em; padding: .42em .85em; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-600); font-size: .82rem; font-weight: 600; }
.dark .pill { background: rgba(56,189,248,.12); color: var(--brand-300); }
.badge { display:inline-block; padding:.3em .7em; border-radius:8px; font-size:.72rem; font-weight:700; letter-spacing:.03em; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width:760px){ .stats { grid-template-columns: repeat(2,1fr);} }
.stat .n { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.03em; }
.stat .l { color: var(--slate-500); font-size: .95rem; }
.dark .stat .l { color: #9fb0d4; }

/* Logos / trust strip */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: .55em 1em; border-radius: 999px; background: var(--slate-100); color: var(--slate-700); font-weight: 600; font-size: .9rem; }
.dark .chip { background: rgba(255,255,255,.06); color: #c7d2ea; }

/* ----------------------------------------------------------- Editor-Demo
   Lehnt sich eng an die echte Displayna-Editor-UI an:
   linke Widgets-Palette (sd-section-title-Stil), in der Mitte die
   Slide-Canvas mit Punktraster + Auflösungs-Tag, rechts der „Player"
   (Tablet / TV) und der echte Brand-500-Publish-Button. */
.demo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg,#0c1120,#0a0e1a); border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
}
.demo__bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.demo__dot { width: 11px; height: 11px; border-radius: 50%; }
.demo__title { color: #8ea0c8; font-size: .8rem; margin-left: 10px; font-weight: 500; }
/* Toolbar — wie die echte Designer-Toolbar (Auflösungs-Picker + Vorschau) */
.demo__toolbar { display:flex; align-items:center; gap:10px; padding:10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.015); }
.demo__tag { font-size:.72rem; padding:.32em .7em; border-radius:8px;
  background: rgba(255,255,255,.06); color:#cdd8f3; font-weight:600;
  display:inline-flex; align-items:center; gap:6px; }
.demo__tag svg { width:13px; height:13px; color:#9fb0d4; }
.demo__tag--res { background:#0e1424; border:1px solid rgba(255,255,255,.08); }

.demo__stage { display: grid; grid-template-columns: 156px 1fr 244px; min-height: 360px; }
@media (max-width: 820px){ .demo__stage { grid-template-columns: 112px 1fr; } .demo__player { display:none; } }

.demo__palette { border-right: 1px solid rgba(255,255,255,.07); padding: 14px 10px;
  display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.012); }
.demo__ptitle { font-size:.66rem; letter-spacing:.12em; text-transform:uppercase;
  color: #6c7a9d; padding: 4px 4px 6px; font-weight:600; }
.demo__tile {
  background: rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 8px 9px; color:#dde5fb; font-size:.78rem;
  font-weight:500; display:flex; align-items:center; gap:8px; cursor:grab;
  transition: background .2s, border-color .2s, transform .2s;
}
.demo__tile:hover { background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.4); }
.demo__tile svg { width:15px; height:15px; color: var(--brand-400); flex:none; }
/* Phase-getriebener Highlight-Effekt auf den Palette-Kacheln,
   während das Pendant gerade „aufs Canvas zieht" */
@keyframes paletteFlash {
  0%, 100% { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.07); }
  10%, 22% { background: rgba(96,165,250,.18); border-color: var(--brand-400); transform: translateX(2px); }
}
.demo.run .demo__tile.t1 { animation: paletteFlash 8s ease-in-out infinite; }
.demo.run .demo__tile.t2 { animation: paletteFlash 8s ease-in-out infinite; animation-delay: 1.3s; }
.demo.run .demo__tile.t3 { animation: paletteFlash 8s ease-in-out infinite; animation-delay: 2.6s; }
.demo.run .demo__tile.t4 { animation: paletteFlash 8s ease-in-out infinite; animation-delay: 3.9s; }

.demo__canvas { position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.055) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(120% 80% at 50% 0%, rgba(37,99,235,.10), transparent 60%),
    #0e1424; }
/* feiner Rahmen, der den 16:9-Slide andeutet */
.demo__slide-frame {
  position:absolute; left:6%; right:6%; top:8%; bottom:18%;
  border: 1px dashed rgba(255,255,255,.07); border-radius: 8px; pointer-events:none;
}

/* Cursor, der ein Widget zieht — bewegt sich von Palette in den Canvas */
.demo__cursor {
  position: absolute; width: 22px; height: 22px; z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.6));
  opacity: 0;
}
.demo__cursor svg { width: 100%; height: 100%; color: #fff; }
@keyframes cursorPath {
  /* startet links bei der Palette und steuert die jeweilige Ziel-Position an */
  0%   { opacity: 0; transform: translate(2%, 18%) scale(.9); }
  3%   { opacity: 1; }
  10%  { transform: translate(20%, 18%) scale(1); }    /* Drop „Willkommen" */
  12%  { transform: translate(20%, 18%) scale(.92); }
  16%  { transform: translate(70%, 18%) scale(1); }    /* zur Uhr */
  26%  { transform: translate(70%, 18%) scale(.92); }
  30%  { transform: translate(22%, 56%) scale(1); }    /* zum Bild */
  40%  { transform: translate(22%, 56%) scale(.92); }
  46%  { transform: translate(68%, 56%) scale(1); }    /* zum Wetter */
  56%  { transform: translate(68%, 56%) scale(.92); }
  62%  { transform: translate(86%, 90%) scale(1); }    /* zum Publish */
  68%  { opacity: 1; } 75%  { opacity: 0; }
  100% { opacity: 0; }
}
.demo.run .demo__cursor { animation: cursorPath 12s var(--ease) infinite; }

/* Die Widget-„Karten" landen aus der Palette gleitend an ihrer Position */
.fly { position: absolute; border-radius: 9px; opacity: 0;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:.82rem;
  border: 1px solid rgba(255,255,255,.08);
  letter-spacing:.01em;
}
.fly small { font-weight:500; opacity:.85; font-size:.66rem; display:block; margin-top:3px; letter-spacing:0; }
@keyframes flyInTo {
  0%   { opacity:0; transform: translate(-140px, 40px) scale(.55); }
  6%   { opacity:1; }
  18%, 100% { opacity:1; transform: translate(0,0) scale(1); }
}
.demo.run .fly { animation: flyInTo 12s var(--ease) infinite; }
.demo.run .fly.f1 { animation-delay: .4s; }
.demo.run .fly.f2 { animation-delay: 2.0s; }
.demo.run .fly.f3 { animation-delay: 3.6s; }
.demo.run .fly.f4 { animation-delay: 5.4s; }

/* Player-Spalte rechts */
.demo__player { border-left: 1px solid rgba(255,255,255,.07);
  padding: 18px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:14px; background: rgba(255,255,255,.012); }
.demo__player-label { color:#7e8db3; font-size:.66rem; letter-spacing:.12em;
  text-transform:uppercase; font-weight:600; align-self:flex-start; }

/* TV / Bildschirm — schwarzer Rahmen wie ein echtes Display */
.tv { width: 100%; aspect-ratio: 16/10; border-radius: 10px; background:#050912;
  border: 4px solid #131a2e; position: relative; overflow:hidden;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.6); }
.tv__screen { position:absolute; inset:0; opacity:0;
  background:
    radial-gradient(70% 80% at 20% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--brand-600), var(--brand-400) 70%);
  padding: 9px 11px; color:#fff;
  display:flex; flex-direction:column; justify-content:space-between;
}
.tv__screen .top { display:flex; justify-content:space-between; align-items:flex-start; }
.tv__screen .title { font-weight:700; font-size:.78rem; }
.tv__screen .clock { font-weight:700; font-size:.86rem; background:rgba(0,0,0,.25); padding:2px 7px; border-radius:6px; }
.tv__screen .row { display:flex; gap:6px; align-items:flex-end; }
.tv__screen .img { width: 46%; aspect-ratio: 16/10; border-radius:5px;
  background: rgba(255,255,255,.18) url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 30%22><path d=%22M0 24l16-12 14 10 12-8 18 14H0z%22 fill=%22white%22 opacity=%22.45%22/><circle cx=%2245%22 cy=%229%22 r=%224%22 fill=%22white%22 opacity=%22.7%22/></svg>') center/cover no-repeat; }
.tv__screen .weather { width: 50%; background: rgba(255,255,255,.14); padding: 6px 8px; border-radius:5px; }
.tv__screen .weather .t { font-size:1.5rem; font-weight:800; line-height:1; }
.tv__screen .weather .d { font-size:.6rem; opacity:.85; }
@keyframes screenReveal {
  0%, 56%   { opacity: 0; transform: scale(.96); }
  62%       { opacity: 1; transform: scale(1.01); }
  66%, 100% { opacity: 1; transform: scale(1); }
}
.demo.run .tv__screen { animation: screenReveal 12s var(--ease) infinite; }
.tv__stand { width: 70px; height: 6px; background:#131a2e; border-radius:0 0 5px 5px; margin: 5px auto 0; }
.tv__base  { width: 38px; height: 5px; background:#131a2e; border-radius: 0 0 3px 3px; margin: 2px auto 0; }

/* Publish-Button — Brand-500 wie der echte sd-toolbar-btn.primary */
.publish { display:inline-flex; align-items:center; gap:7px;
  padding:.55em 1.05em; border-radius: 999px;
  background: var(--brand-500); color:#fff; font-weight:600; font-size:.82rem;
  border: 1px solid var(--brand-600);
  align-self:stretch; justify-content:center;
}
.publish svg { width:14px; height:14px; }
@keyframes pulsePublish {
  0%, 52% { box-shadow: 0 0 0 0 rgba(96,165,250,0); transform: scale(1); background: var(--brand-500); }
  56% { box-shadow: 0 0 0 4px rgba(96,165,250,.4); transform: scale(1.04); background: var(--brand-600); }
  64% { box-shadow: 0 0 0 18px rgba(96,165,250,0); transform: scale(1); background: var(--brand-500); }
  100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); }
}
.demo.run .publish { animation: pulsePublish 12s ease-out infinite; }

/* Schritt-Anzeige unten (wechselt mit der Animation) */
.demo__steps { position:absolute; left:50%; bottom: 14px; transform: translateX(-50%);
  display:flex; gap:6px; background: rgba(0,0,0,.4); padding: 6px 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.08); }
.demo__steps span { font-size:.72rem; color:#7e8db3; }
.demo__steps b { color:#cdd8f3; font-weight:600; }
.demo__step { position:absolute; left:0; top:0; opacity:0; white-space:nowrap;
  transition: opacity .4s var(--ease); }
.demo__step.is-active { opacity:1; position:relative; }
@keyframes stepCycle {
  0%, 24%  { opacity:1; position:relative; }
  25%, 49% { opacity:0; position:absolute; }
}
/* Vier Schritte, je 25 % der 12-Sekunden-Schleife */
.demo.run .demo__step.s1 { animation: stepCycle 12s linear infinite; }
.demo.run .demo__step.s2 { animation: stepCycle 12s linear infinite; animation-delay: 3s; }
.demo.run .demo__step.s3 { animation: stepCycle 12s linear infinite; animation-delay: 6s; }
.demo.run .demo__step.s4 { animation: stepCycle 12s linear infinite; animation-delay: 9s; }

@media (prefers-reduced-motion: reduce) {
  .demo.run .fly, .demo.run .publish, .demo.run .tv__screen,
  .demo.run .demo__cursor, .demo.run .demo__tile,
  .demo.run .demo__step { animation: none !important; opacity: 1 !important; transform: none !important; position: relative !important; }
  .demo .demo__step:not(.s1) { display:none; }
}

/* ----------------------------------------------------------- Accordion */
.acc { border-top: 1px solid var(--slate-200); }
.acc__item { border-bottom: 1px solid var(--slate-200); }
.acc__head { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 1.08rem; font-weight: 600; color: var(--slate-900); }
.acc__head .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--slate-300); display: grid; place-items: center; transition: .25s; position: relative; }
.acc__head .pm::before, .acc__head .pm::after { content:""; position:absolute; background: var(--slate-600); }
.acc__head .pm::before { width: 11px; height: 2px; }
.acc__head .pm::after { width: 2px; height: 11px; transition: transform .25s; }
.acc__item.open .pm { border-color: var(--brand-500); background: var(--brand-500); }
.acc__item.open .pm::before, .acc__item.open .pm::after { background:#fff; }
.acc__item.open .pm::after { transform: scaleY(0); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__body > div { padding: 0 4px 24px; color: var(--slate-600); max-width: 70ch; }

/* --------------------------------------------------------------- CTA */
.cta { border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 76px); text-align: center;
  background: linear-gradient(125deg, var(--brand-600), var(--brand-500) 55%, var(--brand-400));
  color: #fff; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta .lead { color: rgba(255,255,255,.85); }

/* ------------------------------------------------------------- Footer */
.footer { background: var(--ink); color: #aab6d4; padding-block: 64px 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer a { color: #aab6d4; font-size: .94rem; display: block; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__brand { display:flex; align-items:center; gap:9px; color:#fff; font-weight:700; font-size:1.15rem; margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .86rem; color: #8190b5; }
.footer__bottom a { display: inline; }

/* ------------------------------------------------------- Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin-inline: auto;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px 24px;
  transform: translateY(140%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s;
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie__head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom: 6px; }
.cookie h4 { font-size: 1.05rem; }
.cookie p { font-size: .9rem; color: var(--slate-600); }
.cookie p a { color: var(--brand-500); font-weight: 600; }
.cookie__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie__x {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate-500); font-size: 1.3rem; line-height: 1;
  background: transparent; border: 1px solid transparent; flex: none;
}
.cookie__x:hover { background: var(--slate-100); color: var(--slate-900); }
.cookie__cats { margin-top: 14px; border-top: 1px solid var(--slate-100); padding-top: 10px; }
.cookie__cat {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--slate-100);
}
.cookie__cat:last-child { border-bottom: 0; }
.cookie__cat strong { display:block; font-size: .92rem; color: var(--slate-900); }
.cookie__cat small { display:block; margin-top: 3px; color: var(--slate-500); font-size: .82rem; line-height: 1.5; }
.cookie__cat input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 38px; height: 22px; border-radius: 999px;
  background: var(--slate-300); position: relative; cursor: pointer; flex: none;
  transition: background .25s var(--ease);
}
.cookie__cat input[type="checkbox"]::after {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .25s var(--ease);
}
.cookie__cat input[type="checkbox"]:checked { background: var(--brand-500); }
.cookie__cat input[type="checkbox"]:checked::after { transform: translateX(16px); }
.cookie__cat input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; background: var(--brand-300); }

@media (max-width: 460px) {
  .cookie { padding: 18px 18px 22px; left: 10px; right: 10px; bottom: 10px; border-radius: 14px; }
}

/* --------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }

/* ----------------------------------------------------------- Utilities */
.tag-list { display:flex; flex-wrap:wrap; gap:8px; }
.tag-list span { background: var(--slate-100); color: var(--slate-700); padding:.4em .8em; border-radius:8px; font-size:.85rem; font-weight:500; }
.dark .tag-list span { background: rgba(255,255,255,.06); color:#c7d2ea; }
.check { display:flex; gap:11px; align-items:flex-start; padding:9px 0; color: var(--slate-700); }
.check svg { flex:none; width:21px; height:21px; color: var(--brand-500); margin-top:1px; }
.dark .check { color:#c7d2ea; } .dark .check svg { color: var(--brand-400); }
.hr { height:1px; background: var(--slate-200); border:0; }
.dark .hr { background: rgba(255,255,255,.1); }
.breadcrumb { font-size:.85rem; color: var(--slate-500); display:flex; gap:8px; flex-wrap:wrap; }
.breadcrumb a:hover { color: var(--brand-500); }

/* Preise */
.price-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; align-items:stretch; }
@media (max-width: 880px){ .price-grid { grid-template-columns:1fr; max-width:440px; margin-inline:auto;} }
.price { display:flex; flex-direction:column; border:1px solid var(--slate-200); border-radius: var(--radius); padding:30px; background:#fff; }
.price--hot { border-color: var(--brand-500); box-shadow: 0 20px 50px -20px rgba(29,78,216,.4); position:relative; }
.price__amt { font-size: 2.4rem; font-weight:700; letter-spacing:-.03em; margin:.2em 0; }
.price ul { margin:18px 0 24px; flex:1; }
.price li { padding:7px 0; color:var(--slate-600); display:flex; gap:9px; font-size:.95rem; }
.price li svg { flex:none; width:19px; height:19px; color:var(--brand-500); margin-top:2px; }

/* Prose (Rechtstexte) */
.prose { max-width: 760px; color: var(--slate-700); }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
.prose p, .prose li { font-size: 1rem; line-height: 1.7; margin-bottom: .8em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose a { color: var(--brand-500); text-decoration: underline; }
.prose strong { color: var(--slate-900); }

/* ===========================================================================
   MOBILE-FIRST-FEINSCHLIFF — alles, was unter ≤900 px geradezurücken ist.
   Wir konsolidieren hier, um an einer Stelle nachjustieren zu können.
   ========================================================================== */

/* ---------- Touch-Targets: alle Buttons +Links mind. 44 px Tap-Höhe -------- */
@media (max-width: 900px) {
  .btn, .btn--sm { min-height: 44px; }
  .nav__link { min-height: 44px; }
}

/* ---------- Navigation: Burger sichtbar machen, Desktop-Menü ausblenden ---- */
@media (max-width: 880px) {
  .nav__inner { gap: 12px; }
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }       /* „Demo anfragen" rutscht ins Burger-Menü */
  .nav__burger { display: inline-flex; }
}

/* ---------- Demo-Block: auf Smartphones komplett neu stapeln --------------- */
@media (max-width: 720px) {
  /* Stapel-Layout statt Drei-Spalten-Grid */
  .demo__stage { grid-template-columns: 1fr; min-height: auto; }
  .demo__toolbar { gap: 6px; padding: 8px 12px; flex-wrap: wrap; }
  .demo__toolbar .demo__tag { font-size: .68rem; padding: .26em .55em; }
  .demo__title { font-size: .72rem; }

  /* Palette wird horizontaler, scrollbarer Streifen */
  .demo__palette {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .demo__palette::-webkit-scrollbar { display: none; }
  .demo__ptitle { display: none; }
  .demo__tile { flex: none; }

  /* Canvas auf 16:9 zwingen, damit nichts überläuft */
  .demo__canvas { aspect-ratio: 16/9; min-height: 200px; }
  .demo__cursor { display: none; }    /* Cursor-Pfad ist auf Desktop kalibriert */

  /* Player wieder einblenden — als Block unter dem Canvas */
  .demo__player {
    display: flex; border-left: 0;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 14px; gap: 12px;
    flex-direction: row; align-items: center;
  }
  .demo__player > div:first-child + div { flex: 1; max-width: 200px; }   /* TV-Block */
  .publish { align-self: center; }
  .demo__player-label { display: none; }

  /* Schritt-Anzeige etwas kleiner + Position innen am Rand */
  .demo__steps { padding: 5px 10px; }
  .demo__step { font-size: .66rem; }
  .demo__step b { font-weight: 600; }
}

/* ---------- Sektionen + Container: weniger Polster, weniger Schrift -------- */
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .section { padding-block: clamp(48px, 12vw, 80px); }
  .section--tight { padding-block: clamp(36px, 8vw, 60px); }
  .h-display { font-size: clamp(2.1rem, 9vw, 3.2rem); letter-spacing: -.025em; }
  .h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .lead { font-size: 1.02rem; }
  /* Stat-Karten kompakter */
  .stats .stat .n { font-size: clamp(1.7rem, 7vw, 2.4rem); }
}

/* ---------- CTA-Box: Padding war 0 wegen min(40px,6vw) — auf Mobile fix ---- */
@media (max-width: 540px) {
  .cta { padding: 32px 22px; border-radius: 18px; }
  .cta .btn-row { flex-direction: column; }
  .cta .btn-row .btn { width: 100%; justify-content: center; }
}

/* ---------- Cookie-Banner: Buttons untereinander auf Schmal-Display ------- */
@media (max-width: 460px) {
  .cookie p { font-size: .88rem; }
  .cookie__row { flex-direction: column; }
  .cookie__row .btn { width: 100%; justify-content: center; }
}

/* ---------- Preise-Karten: Schatten-„HOT"-Karte zentriert sichtbar -------- */
@media (max-width: 880px) {
  .price--hot { margin-top: 14px; }    /* Platz für absoluten „Beliebt"-Badge */
}

/* ---------- Erste-Hero-Bilder: nicht über die Container-Polster hinaus ---- */
@media (max-width: 720px) {
  .hero .split__media { margin-inline: -6px; }
  .split__media img { width: 100%; height: auto; }
}

/* ---------- Breadcrumbs in Hero-Sections nicht überlaufen ---------------- */
.breadcrumb { word-break: break-word; }

/* ===========================================================================
   PERFORMANCE: GPU-freundliche Animationen, Layer-Hints,
   Skript-/Style-Strenge-Hinweise.
   ========================================================================== */
.fly, .demo__cursor, .publish, .tv__screen, .reveal {
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* Bilder reservieren ihren Platz (verhindert CLS) */
img[width][height] { height: auto; }

/* Sprachschalter in der Navigation — kleiner, dezenter Button im
   Apple-Stil. Auf Mobile rutscht er ins Burger-Menü mit. */
.nav__lang {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 32px; border-radius: 8px;
  border: 1px solid var(--slate-200); background: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--slate-700); transition: background .2s, border-color .2s, color .2s;
}
.nav__lang:hover { background: var(--slate-50); border-color: var(--slate-300); color: var(--slate-900); }
@media (max-width: 880px) {
  .nav__lang { display: none; }   /* erscheint im Mobile-Menü als Button-Variante */
}
