/* =========================================================================
   ChillPlay – Website
   Mobile first · Hell/Dunkel über [data-scheme] · WCAG 2.2 AA
   ========================================================================= */

/* ---------- Schriften (selbst gehostet, SIL OFL) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-vf-latin.woff2") format("woff2");
  font-weight: 200 800; 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: "Bricolage";
  src: url("../fonts/bricolage-vf-latin-ext.woff2") format("woff2");
  font-weight: 200 800; 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: "Inter";
  src: url("../fonts/inter-vf-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: "Inter";
  src: url("../fonts/inter-vf-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;
}

/* ---------- Farben (exakt aus der App) ---------- */
:root {
  --bg: #F4F5F7;
  --bg-alt: #EBEDF1;
  --surface: #FFFFFF;
  --surface-hi: #F1F3F6;
  --border: #DCE0E6;
  --border-hi: #C3C9D2;
  --text: #14171C;
  --text-dim: #4A5260;
  --text-muted: #5F6776;
  --accent: #EE5230;
  --accent-text: #C93A1A;
  --accent-soft: rgba(238, 82, 48, .12);
  --primary: #D93A18;
  --primary-hover: #C4300F;
  --success: #059669;
  --warning-bg: #FEF3C7;
  --warning-text: #7A4A00;
  --shadow: 0 1px 2px rgba(20, 23, 28, .06), 0 8px 24px rgba(20, 23, 28, .08);
  --shadow-lg: 0 2px 6px rgba(20, 23, 28, .06), 0 24px 60px rgba(20, 23, 28, .14);
  --glow: rgba(238, 82, 48, .20);
  --grain-opacity: .035;
  --header-bg: rgba(244, 245, 247, .78);

  --font-display: "Bricolage", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: light;
}

:root[data-scheme="dark"] {
  --bg: #0E1014;
  --bg-alt: #13161B;
  --surface: #1A1E25;
  --surface-hi: #242A34;
  --border: #2A303B;
  --border-hi: #3A424F;
  --text: #F3F5F8;
  --text-dim: #A0A9B5;
  --text-muted: #8A94A3;
  --accent: #FF5A36;
  --accent-text: #FF7A5A;
  --accent-soft: rgba(255, 90, 54, .14);
  --success: #34D399;
  --warning-bg: #3A2E0B;
  --warning-text: #FCD34D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .55);
  --glow: rgba(255, 90, 54, .28);
  --grain-opacity: .05;
  --header-bg: rgba(14, 16, 20, .72);
  color-scheme: dark;
}

/* ohne JavaScript: Systemeinstellung per Media Query */
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) {
    --bg: #0E1014; --bg-alt: #13161B; --surface: #1A1E25; --surface-hi: #242A34;
    --border: #2A303B; --border-hi: #3A424F; --text: #F3F5F8; --text-dim: #A0A9B5; --text-muted: #8A94A3;
    --accent: #FF5A36; --accent-text: #FF7A5A; --accent-soft: rgba(255, 90, 54, .14); --success: #34D399;
    --warning-bg: #3A2E0B; --warning-text: #FCD34D; --header-bg: rgba(14, 16, 20, .72);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 30px 70px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
/* feines Korn für die "Sofa-Abend"-Stimmung */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; height: auto; }
img { border-radius: inherit; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 5.2vw, 5.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.3em; }
strong { font-weight: 650; }
code, kbd, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }
code { background: var(--surface-hi); border: 1px solid var(--border); padding: .08em .35em; border-radius: 6px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 1rem 1.2rem; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
kbd {
  display: inline-block; min-width: 1.6em; padding: .1em .45em; text-align: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-hi);
  border-bottom-width: 3px; border-radius: 7px; font-size: .82em; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.keys { white-space: nowrap; }
.kbd-plus { margin: 0 .15em; color: var(--text-muted); }
mark { background: var(--warning-bg); color: var(--warning-text); padding: 0 .2em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000; transform: translateY(-160%);
  background: var(--primary); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-s); font-weight: 650; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.small { font-size: .9rem; }
.fineprint { font-size: .8rem; color: var(--text-muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon.flip { transform: scaleX(-1); }

/* Bilder passend zum Farbmodus */
:root[data-scheme="dark"] .only-light, :root:not([data-scheme="dark"]) .only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) .only-light { display: none !important; }
  :root:not([data-scheme]) .only-dark { display: block !important; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-hi);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em;
  font: 650 1rem/1.2 var(--font-body); letter-spacing: -.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-border); border-radius: 14px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .25s var(--ease), border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-border: var(--primary); box-shadow: 0 6px 20px -6px var(--glow); }
.btn-primary:hover { --btn-bg: var(--primary-hover); --btn-border: var(--primary-hover); box-shadow: 0 10px 30px -8px var(--glow); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface); --btn-border: var(--accent); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.06rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--text-dim); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--text); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font: 750 1.35rem/1 var(--font-display); letter-spacing: -.03em; }
.brand-logo { width: 34px; height: 34px; transition: transform .4s var(--ease-bounce); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
.brand-word span { color: var(--accent-text); }
.main-nav { margin-left: auto; order: 3; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: none; }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle-bars span { height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem var(--gutter) 2rem;
  background: var(--bg); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.nav-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.nav-list a {
  display: block; padding: .8rem .2rem; font: 700 clamp(1.6rem, 7vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -.02em;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent-text); }
.nav-cta-mobile { align-self: flex-start; }
html.nav-open { overflow: hidden; }

/* Hell/Dunkel-Schalter */
.theme-toggle { position: relative; padding: 0; background: none; border: 0; cursor: pointer; border-radius: 999px; }
.theme-toggle-track {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 64px; height: 36px; padding: 0 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}
.theme-toggle-track .icon { width: 17px; height: 17px; position: relative; z-index: 1; transition: color .3s; }
.theme-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 2px 8px var(--glow);
  transition: transform .45s var(--ease-bounce);
}
:root[data-scheme="dark"] .theme-toggle-thumb { transform: translateX(28px); }
:root:not([data-scheme="dark"]) .theme-toggle .icon-sun, :root[data-scheme="dark"] .theme-toggle .icon-moon { color: #fff; }

@media (min-width: 1024px) {
  .nav-toggle, .nav-cta-mobile { display: none; }
  .main-nav { order: 0; margin-left: 2rem; }
  .nav-menu { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; padding: 0; background: none; overflow: visible; transition: none; }
  .nav-list { display: flex; gap: .2rem; }
  .nav-list a { font: 550 .97rem/1 var(--font-body); letter-spacing: 0; padding: .6rem .8rem; border: 0; border-radius: 10px; color: var(--text-dim); }
  .nav-list a:hover { color: var(--text); background: var(--surface); }
  .header-cta { display: inline-flex; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--text-dim); font-size: 1.1rem; margin: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; text-align: left; }
.section-head-row h2 { margin: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: .9rem;
  font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.hl { position: relative; color: var(--accent-text); white-space: nowrap; isolation: isolate; }
.hl::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .02em; height: .18em; z-index: -1;
  background: var(--accent-soft); border-radius: 4px;
}

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-dim); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-text);
}
.card-icon .icon { width: 24px; height: 24px; }
.card:hover .card-icon { animation: wiggle .5s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(6deg); } }

.note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: .9rem 1.1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 0 0 1.25rem; }
.note-warn { background: var(--warning-bg); color: var(--warning-text); border-left-color: #D97706; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 45% at 78% 35%, var(--glow), transparent 70%),
    radial-gradient(30% 35% at 10% 10%, rgba(167, 139, 250, .14), transparent 70%),
    radial-gradient(30% 30% at 40% 90%, rgba(251, 191, 36, .10), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; padding: .45em .9em .45em .7em; margin-bottom: 1.4rem;
  font-size: .88rem; font-weight: 600; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { margin-bottom: .35em; font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.6rem); }
.hl-strike { color: var(--accent-text); background: linear-gradient(currentColor, currentColor) no-repeat 0 60% / 0% .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: strike .8s .6s var(--ease) forwards; }
.hl-strike-unused {
  content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: .09em; border-radius: 99px;
  background: currentColor; transform: rotate(-3deg) scaleX(0); transform-origin: left;
  animation: strike .7s .6s var(--ease) forwards;
}
@keyframes strike { to { background-size: 100% .08em; } }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--text-dim); max-width: 38em; }
.lead strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0; }
.cta-row .btn { flex: 1 1 auto; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; color: var(--text-dim); font-size: .92rem; font-weight: 550; }
.badges li { display: inline-flex; align-items: center; gap: .4em; }
.badges .icon { color: var(--success); width: 1.1em; height: 1.1em; }

@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}

/* ---------- Interaktive Demo ---------- */
.demo { position: relative; display: grid; gap: 18px; padding-top: 66px; }
.demo-mascot { position: absolute; width: 64px; right: 18px; top: 0; z-index: 2; color: var(--text); }
.demo-window {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border-hi); box-shadow: var(--shadow-lg), 0 0 80px -20px var(--glow);
}
.demo-titlebar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; font-size: .78rem; font-weight: 600; color: var(--text-dim); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.demo-logo { width: 16px; height: 16px; }
.demo-winbtns { margin-left: auto; display: flex; gap: 14px; }
.demo-winbtns i { width: 10px; height: 10px; border: 1.5px solid var(--text-muted); border-radius: 2px; }
.demo-winbtns i:first-child { height: 0; border-width: 1px 0 0; align-self: center; }
.demo-app { display: grid; grid-template-columns: 1fr; min-height: 360px; }
.demo-side { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.demo-side-head { margin: 0 0 2px 6px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.demo-colls { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.demo-coll {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; white-space: nowrap;
  font: 550 .84rem/1.2 var(--font-body); color: var(--text-dim); text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s;
}
.demo-coll i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dot); }
.demo-coll span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.demo-coll b { min-width: 22px; padding: 1px 6px; border-radius: 99px; font-size: .72rem; text-align: center; background: var(--surface-hi); color: var(--text-dim); }
.demo-coll:hover { background: var(--surface); color: var(--text); }
.demo-coll[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
.demo-coll[aria-pressed="true"] b { background: var(--accent-soft); color: var(--accent-text); }
.demo-coll b.bump { animation: bump .5s var(--ease-bounce); }
@keyframes bump { 40% { transform: scale(1.45); } }
.demo-capture { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); }
.demo-switch { display: flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; font: 650 .84rem/1 var(--font-body); color: var(--text); cursor: pointer; min-height: 32px; }
.demo-switch-track { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--border-hi); transition: background .25s; }
.demo-switch-track span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-bounce); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.demo-switch[aria-checked="true"] .demo-switch-track { background: var(--primary); }
.demo-switch[aria-checked="true"] .demo-switch-track span { transform: translateX(16px); }
.demo-capture-state { font-size: .76rem; color: var(--success); font-weight: 600; }
.demo-capture.is-off { background: var(--surface-hi); }
.demo-capture.is-off .demo-capture-state { color: var(--text-muted); }
.demo-capture.nudge { animation: nudge .6s var(--ease); }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.demo-main { position: relative; padding: 14px; min-width: 0; }
.demo-main-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.demo-main-head strong { font: 750 1.15rem/1.2 var(--font-display); }
.demo-main-head span { font-size: .8rem; color: var(--text-muted); }
.demo-grid { list-style: none; margin: 0; padding: 0 0 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.demo-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: .78rem; transition: border-color .3s, box-shadow .3s; }
.demo-card.is-new { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.demo-card.is-watched .demo-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.demo-card button.demo-play { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; z-index: 1; border-radius: 12px; }
.demo-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-hi); overflow: hidden; }
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.demo-thumb-gen { display: grid; place-items: center; height: 100%; color: #fff; font: 700 .72rem/1 var(--font-body); background: linear-gradient(135deg, #FF7A5A, #A78BFA); }
.demo-thumb-gen .icon { width: 28px; height: 28px; }
.demo-card-title { display: block; padding: 7px 9px 0; font-weight: 650; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-card-sub { display: block; padding: 0 9px 8px; color: var(--text-muted); }
.demo-fav { position: absolute; top: 5px; right: 5px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.5); color: #fff; }
.demo-fav[aria-pressed="true"] { color: #FBBF24; }
.demo-fav .icon { width: 16px; height: 16px; }
.demo-empty { grid-column: 1 / -1; padding: 28px 12px; text-align: center; color: var(--text-muted); font-size: .85rem; border: 1.5px dashed var(--border-hi); border-radius: 12px; }

.demo-toast {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px;
  font-size: .8rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-hi); border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toast-in .35s var(--ease-bounce);
}
.demo-toast .ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.demo-toast .ok .icon { width: 14px; height: 14px; }
.demo-toast .msg { flex: 1 1 140px; font-weight: 550; }
.demo-toast button { min-height: 32px; padding: 4px 10px; font: 650 .76rem/1 var(--font-body); color: var(--text); background: var(--surface-hi); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.demo-toast button.undo { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.demo-toast button:hover { border-color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.demo-links-title { margin: 0 0 10px; font-weight: 650; }
.demo-link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.link-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 8px 6px 6px; text-align: left;
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
  transition: transform .18s var(--ease), border-color .2s, box-shadow .25s;
}
.link-chip:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.link-chip:active { transform: scale(.97); }
.link-chip img { width: 64px; height: 36px; object-fit: cover; border-radius: 8px; flex: none; }
.link-chip-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.link-chip-text strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-chip-text small { font-size: .76rem; color: var(--text-muted); font-family: ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-chip-action { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border-radius: 9px; font-size: .74rem; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); white-space: nowrap; }
.link-chip-action .icon { width: 15px; height: 15px; }
.link-chip.is-used { opacity: .55; }
.link-chip-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.demo-paste { margin-top: 12px; }
.demo-paste label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.hint { font-size: .8rem; color: var(--text-muted); margin: 6px 0 0; }
.fly-clone { position: fixed; z-index: 200; pointer-events: none; border-radius: 10px; box-shadow: var(--shadow-lg); object-fit: cover; }

@media (min-width: 640px) {
  .demo-app { grid-template-columns: 200px minmax(0, 1fr); }
  .demo-side { border-bottom: 0; border-right: 1px solid var(--border); }
  .demo-colls { flex-direction: column; overflow: visible; }
  .demo-capture { margin-top: auto; }
  .demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo { padding-top: 100px; } .demo-mascot { width: 96px; top: -6px; right: 64px; }
}
@media (min-width: 1100px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--border); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 2.2rem; width: max-content; animation: ticker 50s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font: 650 1.05rem/1 var(--font-display); color: var(--text-dim); }
.ticker i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Vorher/Nachher ---------- */
.compare {
  position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg); aspect-ratio: 1904 / 1101; background: var(--surface); isolation: isolate;
}
.compare-after img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 0; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.chaos-browser { display: flex; flex-direction: column; height: 100%; background: #E9EAEE; color: #20242B; font-family: var(--font-body); }
:root[data-scheme="dark"] .chaos-browser { background: #202329; color: #E6E8EC; }
.chaos-tabs { display: flex; gap: 1px; padding: 6px 6px 0; background: rgba(0,0,0,.08); }
.chaos-tab { flex: 1; height: clamp(10px, 2.2vw, 24px); background: rgba(0,0,0,.08); border-radius: 5px 5px 0 0; position: relative; }
.chaos-tab::before { content: ""; position: absolute; left: 20%; top: 35%; width: 45%; height: 30%; border-radius: 2px; background: rgba(0,0,0,.18); }
.chaos-tab[data-active] { background: #fff; }
:root[data-scheme="dark"] .chaos-tab[data-active] { background: #2E323A; }
.chaos-bar { padding: clamp(4px, 1vw, 8px); background: #fff; }
:root[data-scheme="dark"] .chaos-bar { background: #2E323A; }
.chaos-bar span { display: block; height: clamp(10px, 2.4vw, 26px); border-radius: 99px; background: rgba(0,0,0,.07); }
.chaos-page { position: relative; flex: 1; overflow: hidden; }
.chaos-q { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); margin: 0; font: 700 clamp(.9rem, 2.6vw, 2rem)/1.2 var(--font-display); opacity: .5; white-space: nowrap; }
.chaos-note {
  position: absolute; padding: clamp(4px, 1vw, 12px) clamp(6px, 1.4vw, 16px); max-width: 40%;
  font: 600 clamp(.6rem, 1.6vw, 1.05rem)/1.25 "Segoe Print", "Comic Sans MS", cursive; color: #3B2F00;
  background: #FDE68A; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.chaos-note.n1 { left: 6%; top: 10%; transform: rotate(-6deg); }
.chaos-note.n2 { right: 8%; top: 8%; transform: rotate(4deg); background: #FBCFE8; }
.chaos-note.n3 { left: 12%; bottom: 14%; transform: rotate(3deg); background: #BBF7D0; }
.chaos-note.n4 { right: 14%; bottom: 20%; transform: rotate(-4deg); background: #BFDBFE; }
.chaos-note.n5 { left: 40%; top: 64%; transform: rotate(-2deg); background: #FECACA; color: #7F1D1D; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.compare-handle span {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.compare-handle span::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.compare-handle .icon { width: 20px; height: 20px; }
.compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-range:focus-visible + .compare-handle, .compare:has(.compare-range:focus-visible) .compare-handle span { outline: 3px solid #fff; outline-offset: 3px; }
.compare-label { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); pointer-events: none; }
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; background: var(--primary); }

/* ---------- Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; display: flex; flex-direction: column; padding: 24px 22px 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px;
  font: 800 1.3rem/1 var(--font-display); color: #fff; background: var(--primary); box-shadow: 0 6px 18px -4px var(--glow);
}
.step p { color: var(--text-dim); }
.step-media { margin: auto -22px 0; padding: 18px 18px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.step-media img { width: 100%; border-radius: 12px 12px 0 0; box-shadow: var(--shadow); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(even) { transform: translateY(28px); }
}

/* ---------- Bento ---------- */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
.bento-media { margin: 1.2rem 0 1rem; }
.bento-media img { border-radius: 12px; box-shadow: var(--shadow); }
.bento-shot { margin-top: 1rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.bento-shot img { width: 100%; }
.viewswitch { display: inline-flex; gap: 4px; padding: 4px; margin: .5rem 0 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; }
.viewswitch button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text-dim); font: 600 .85rem/1 var(--font-body); cursor: pointer; }
.viewswitch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.viewswitch .icon { width: 18px; height: 18px; }
.views-stage { display: grid; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.views-shot { grid-area: 1 / 1; opacity: 0; transform: scale(1.03); transition: opacity .45s var(--ease), transform .6s var(--ease); visibility: hidden; }
.views-shot.is-active { opacity: 1; transform: none; visibility: visible; }
.views-shot img { width: 100%; }
.sync-art { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 1.2rem; color: var(--text-dim); }
.sync-pc, .sync-cloud { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-hi); border: 1px solid var(--border); }
.sync-cloud { width: 60px; height: 60px; color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.sync-pc .icon, .sync-cloud .icon { width: 26px; height: 26px; }
.sync-line { display: flex; gap: 5px; }
.sync-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .25; animation: dots 1.4s infinite; }
.sync-line i:nth-child(2) { animation-delay: .2s; } .sync-line i:nth-child(3) { animation-delay: .4s; }
.sync-line + .sync-cloud + .sync-line i { animation-direction: reverse; }
@keyframes dots { 40% { opacity: 1; transform: scale(1.3); } }
.dice-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 8px; margin: .6rem 0 .8rem;
  font: 650 .95rem/1 var(--font-body); color: var(--text); background: var(--surface-hi); border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
}
.dice-btn:hover { border-color: var(--accent); }
.dice { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; }
.dice .icon { width: 22px; height: 22px; }
.dice.rolling { animation: roll .7s var(--ease); }
@keyframes roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.2); } 100% { transform: rotate(360deg) scale(1); } }
.dice-out { min-height: 3.2em; font-weight: 600; color: var(--text) !important; }
.hello { display: inline-block; color: var(--accent-text); transition: opacity .3s, transform .3s var(--ease); }
.hello.swap { opacity: 0; transform: translateY(-8px); }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-capture, .bento-views { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-capture, .bento-views { grid-column: span 2; }
  .bento-sync, .bento-surprise { grid-column: span 2; }
}

/* ---------- Galerie ---------- */
.gallery {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 560px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; scrollbar-width: thin;
}
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.gallery a:hover { transform: translateY(-4px) rotate(-.4deg); }
.gallery img { width: 100%; aspect-ratio: 1904 / 1101; object-fit: cover; }
.gallery figcaption { margin-top: .7rem; font-size: .92rem; color: var(--text-dim); }
.gallery-nav { display: none; gap: 8px; }
@media (min-width: 700px) { .gallery-nav { display: flex; } }

/* ---------- Werte ---------- */
.values { display: grid; gap: 18px; }
@media (min-width: 800px) { .values { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.75em; color: var(--text-dim); }
.checklist .icon { position: absolute; left: 0; top: .28em; color: var(--success); width: 1.1em; height: 1.1em; }
.checklist strong { color: var(--text); }

/* ---------- Preise ---------- */
.demo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 20px 24px; margin-bottom: 24px; border-radius: var(--radius-l);
  background: var(--surface); border: 1.5px dashed var(--border-hi);
}
.demo-strip h3 { margin: 0 0 .2em; }
.demo-strip p { margin: 0; color: var(--text-dim); }
.pricing { display: grid; gap: 18px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card h3 { font-size: 1.5rem; margin: 0; }
.price-for { color: var(--text-dim); margin: .2rem 0 1rem; }
.price { display: flex; align-items: baseline; gap: .25rem; margin: 0; font-family: var(--font-display); }
.price-amount { font-size: clamp(2.8rem, 2.2rem + 2vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price-cur { font-size: 1.5rem; font-weight: 700; color: var(--text-dim); }
.price-once { font-size: .85rem; color: var(--text-muted); margin: .4rem 0 1.3rem; }
.price-card .checklist { margin-bottom: 1.6rem; flex: 1; }
.price-card-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg), 0 0 60px -20px var(--glow); }
.price-badge {
  position: absolute; top: -13px; left: 24px; margin: 0; padding: 5px 12px; border-radius: 99px;
  font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--primary);
}
.price-badge-alt { background: #14171C; color: #FBBF24; }
:root[data-scheme="dark"] .price-badge-alt { background: #FBBF24; color: #14171C; }
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .price-card-featured { transform: scale(1.03); }
  .price-card-featured:hover { transform: scale(1.03) translateY(-6px); }
}
.trust { list-style: none; padding: 0; margin: 36px 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.8rem; color: var(--text-dim); font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: .5rem; }
.trust .icon { color: var(--accent-text); }
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 12px; }
.pay-methods span { padding: 6px 12px; font-size: .8rem; font-weight: 700; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { padding: 14px 16px 4px; text-align: left; font: 700 1.1rem/1.3 var(--font-display); }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-hi); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.compare-table { margin-top: 36px; }
.compare-table td, .compare-table thead th:not(:first-child) { text-align: center; width: 22%; }
.compare-table .yes { color: var(--success); margin: 0 auto; }
.compare-table .no { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-bottom: 2rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 14px 18px;
  font: 650 1.05rem/1.35 var(--font-body); cursor: pointer; list-style: none; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); transition: transform .3s var(--ease); }
.faq-icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 18px 16px; color: var(--text-dim); }
.faq-body p { margin: 0; }

/* ---------- Finale ---------- */
.final-cta { padding: clamp(48px, 8vw, 96px) 0; }
.final-inner {
  display: grid; gap: 24px; align-items: center; justify-items: center; text-align: center;
  padding: clamp(32px, 6vw, 64px) var(--gutter); border-radius: 32px;
  background: radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.final-inner p { color: var(--text-dim); font-size: 1.1rem; }
.final-inner .cta-row { justify-content: center; margin-bottom: 0; }
.final-mascot { width: 120px; color: var(--text); }
@media (min-width: 800px) {
  .final-inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
  .final-inner .cta-row { justify-content: flex-start; }
  .final-mascot { width: 170px; }
}

/* ---------- Maskottchen ---------- */
.mascot { overflow: visible; }
.m-body { transform-origin: 60px 150px; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.025) translateY(-1px); } }
.m-lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: blink 5.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(0); } 96.5% { transform: scaleY(1); } }
.m-pupil { transition: transform .15s ease-out; }
.mascot-wave .m-arm { transform-origin: 110px 70px; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-8deg); } 90% { transform: rotate(10deg); } }
.mascot-party .m-body { animation: hop 1.8s var(--ease) infinite; }
@keyframes hop { 0%, 55%, 100% { transform: none; } 70% { transform: translateY(-10px) rotate(-3deg); } 85% { transform: translateY(0) scaleY(.96); } }
.m-confetti { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; background: var(--bg-alt); border-top: 1px solid var(--border); font-size: .95rem; }
.footer-top { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--text-dim); margin-top: 1rem; max-width: 30em; }
.footer-tabs { font-size: .88rem; }
.footer-title { font: 700 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-nav a { color: var(--text-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-nav li { min-height: 28px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 40px 0 24px; padding: 18px 0; border-block: 1px solid var(--border); }
.segmented { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.segmented legend { float: left; padding: 0 10px 0 6px; font-size: .85rem; font-weight: 650; color: var(--text-dim); }
.segmented label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--text-dim); }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--accent-soft); color: var(--accent-text); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch-label { position: relative; display: inline-flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 600; color: var(--text-dim); cursor: pointer; min-height: 44px; }
.switch-label input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--border-hi); transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-bounce); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch-label input:checked + .switch { background: var(--primary); }
.switch-label input:checked + .switch::after { transform: translateX(18px); }
.switch-label input:focus-visible + .switch { outline: 3px solid var(--accent); outline-offset: 3px; }
.footer-bottom { display: grid; gap: .6rem; color: var(--text-muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Toasts & Dialoge ---------- */
.toast-region { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 300; display: grid; gap: 8px; width: min(92vw, 460px); transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; pointer-events: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-hi); border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 550; animation: toast-in .35s var(--ease-bounce);
}
.toast.out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

.dialog {
  width: min(92vw, 560px); max-height: 88vh; padding: 0; overflow: auto;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-hi); border-radius: 22px; box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(8, 10, 14, .6); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialog-in .3s var(--ease-bounce); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 20px 0; }
.dialog-head h2 { font-size: 1.4rem; margin: 0; }
.dialog-body { padding: 14px 20px 22px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0 0; }
.shortcut-list { display: grid; gap: 2px; margin: 0 0 1rem; }
.shortcut-list div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.shortcut-list dt { font-weight: 600; }
.shortcut-list dd { margin: 0; color: var(--text-dim); font-size: .92rem; }
@media (min-width: 520px) { .shortcut-list div { grid-template-columns: 190px 1fr; align-items: center; } }
.dialog-lightbox { width: min(96vw, 1400px); max-height: 94vh; padding: 12px; background: var(--surface); }
.dialog-lightbox img { width: 100%; height: auto; max-height: calc(94vh - 90px); object-fit: contain; border-radius: 12px; }
.lightbox-close { position: sticky; top: 0; float: right; margin: 0 0 8px 8px; z-index: 1; }
.lightbox-caption { margin: 10px 4px 2px; color: var(--text-dim); font-size: .95rem; }
.confetti { position: fixed; inset: 0; z-index: 400; pointer-events: none; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
.field .req { color: var(--accent-text); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 500 1rem/1.4 var(--font-body); color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border-hi); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
[aria-invalid="true"] { border-color: #DC2626 !important; }
:root[data-scheme="dark"] [aria-invalid="true"] { border-color: #F87171 !important; }
.field-error { font-size: .88rem; font-weight: 600; color: #B91C1C; }
:root[data-scheme="dark"] .field-error { color: #FCA5A5; }
.field-error:empty { display: none; }
.field label.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; font-weight: 450; }
.check input { width: 22px; height: 22px; margin: .1em 0 0; accent-color: var(--primary); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--text); }
.form-status.err { background: #FEE2E2; color: #7F1D1D; }
:root[data-scheme="dark"] .form-status.err { background: #3B1414; color: #FCA5A5; }

/* ---------- Unterseiten ---------- */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.6vw, 4.2rem); }
.page-hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 40em; margin: 0 auto; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-dim); }
.prose strong { color: var(--text); }
.prose li { margin-bottom: .35em; }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.dl-card { display: flex; flex-direction: column; gap: .4rem; }
.dl-card .btn { margin-top: auto; align-self: flex-start; }
.dl-meta { display: grid; gap: .3rem; margin: .6rem 0 1.2rem; font-size: .9rem; color: var(--text-dim); }
.dl-meta code { word-break: break-all; }
.num-list { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 14px; }
.num-list li { counter-increment: n; position: relative; padding-left: 52px; min-height: 40px; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); font: 800 1.05rem/1 var(--font-display); }
.not-found { display: grid; justify-items: center; gap: 12px; padding: clamp(48px, 10vw, 120px) 0; text-align: center; }
.not-found .mascot { width: 180px; color: var(--text); }
.not-found h1 { font-size: clamp(4rem, 3rem + 6vw, 8rem); margin: 0; color: var(--accent-text); }
.changelog-entry { border-left: 3px solid var(--accent); padding-left: 20px; margin-bottom: 2.5rem; }
.changelog-entry h2 { margin-top: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); vertical-align: middle; margin-left: .4rem; }

/* ---------- Hilfe ---------- */
.help-layout { display: grid; gap: 32px; padding-bottom: clamp(56px, 8vw, 96px); }
.help-aside { position: relative; }
.help-search { position: relative; margin-bottom: 14px; }
.help-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.help-search input { padding-left: 44px; }
.help-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.help-toc summary { padding: 14px 16px; font-weight: 700; cursor: pointer; min-height: 48px; }
.help-toc ol { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.help-toc a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--text-dim); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.help-toc a:hover { background: var(--surface-hi); color: var(--text); }
.help-toc a.is-current { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.help-content { min-width: 0; }
.help-section { padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.help-section[hidden] { display: none; }
.help-content h2 { position: relative; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.help-content h3 { margin-top: 1.8em; font-size: 1.25rem; }
.help-content p, .help-content li { color: var(--text-dim); }
.help-content strong { color: var(--text); }
.anchor { position: absolute; left: -1.1em; color: var(--text-muted); text-decoration: none; opacity: 0; transition: opacity .2s; }
.help-content h2:hover .anchor, .anchor:focus { opacity: 1; }
.help-content .zoom { display: block; margin: 1.2rem 0 1.6rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.help-detail { margin: 1rem 0 1.4rem; border-radius: 12px; box-shadow: var(--shadow); max-width: min(100%, 520px); }
.table-images td { width: 33%; }
.table-images .zoom { margin: 0 0 .3rem; }
.table-images .help-detail { margin: 0; }
.help-content .table-wrap td, .help-content .table-wrap th { font-size: .93rem; }
.help-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.help-feedback p { margin: 0 auto 0 0; font-weight: 650; }
.help-lang-note { margin-bottom: 1.5rem; }
mark.hit { background: #FDE68A; color: #3B2F00; }
@media (min-width: 1024px) {
  .help-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; }
  .help-aside-inner { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
  .help-toc summary { display: none; }
}

.h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); letter-spacing: -.01em; }

/* Kreis-Übergang beim Umschalten Hell/Dunkel (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (min-width: 1100px) { .js .step.reveal:nth-child(even).is-in { transform: translateY(28px); } }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .m-lid { transform: scaleY(0); }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
}
:root[data-motion="reduce"] { scroll-behavior: auto; }
:root[data-motion="reduce"] .reveal { opacity: 1 !important; transform: none !important; }
:root[data-motion="reduce"] .ticker-track { animation: none; }
:root[data-motion="reduce"] .m-lid { transform: scaleY(0); }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .toast-region, .help-aside, .demo-links, .ticker, body::before { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Windows-Kontrastmodus */
@media (forced-colors: active) {
  .btn, .card, .demo-window, .price-card, .faq-item { border: 1px solid CanvasText; }
  .theme-toggle-thumb, .compare-handle span { forced-color-adjust: none; }
}
