/* =========================================================================
   HMF Address – Website
   Ruhig, warm, gut lesbar: für Jung und Alt.
   Schriften lokal (Nunito für Überschriften, Inter für Text), keine Dienste Dritter.
   ========================================================================= */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-vf-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-vf-latin-ext.woff2") format("woff2"); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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+2000-206F, U+2074, 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-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ Tokens */
:root {
  --bg: #FBF8F4;
  --bg-soft: #F5F0FA;
  --surface: #FFFFFF;
  --surface-2: #F7F3FC;
  --line: #E8E1F0;
  --line-strong: #D4CAE2;
  --text: #1B1830;
  --text-2: #464160;
  --text-3: #5F5A77;
  --brand: #6443F0;
  --brand-hover: #5533E0;
  --brand-ink: #FFFFFF;
  --brand-soft: #EFEAFF;
  --brand-text: #5433DE;
  --teal: #0F7C6C;
  --teal-bg: #2AC7B0;
  --teal-soft: #E1F7F3;
  --peach: #FFE3D3;
  --ok: #157A43;
  --ok-soft: #DDF5E6;
  --warn: #8A4B00;
  --warn-soft: #FFF1D6;
  --err: #C0262D;
  --err-soft: #FDE4E4;
  --shadow-sm: 0 1px 2px rgba(35, 24, 80, .06), 0 2px 8px -2px rgba(35, 24, 80, .06);
  --shadow: 0 1px 2px rgba(35, 24, 80, .05), 0 14px 36px -14px rgba(35, 24, 80, .22);
  --shadow-lg: 0 2px 4px rgba(35, 24, 80, .05), 0 30px 70px -24px rgba(35, 24, 80, .32);
  --glow-1: rgba(122, 92, 255, .22);
  --glow-2: rgba(42, 199, 176, .18);
  --glow-3: rgba(255, 180, 140, .22);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font-text: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-head: "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}
html[data-scheme="dark"] {
  --bg: #14121E;
  --bg-soft: #1A1727;
  --surface: #1E1B2D;
  --surface-2: #252137;
  --line: #332E48;
  --line-strong: #463F60;
  --text: #F4F1FC;
  --text-2: #CFC9E3;
  --text-3: #ADA6C6;
  --brand: #9B85FF;
  --brand-hover: #B09FFF;
  --brand-ink: #150F33;
  --brand-soft: #2B2452;
  --brand-text: #B4A5FF;
  --teal: #5FE3CE;
  --teal-bg: #3FD9C1;
  --teal-soft: #173B38;
  --peach: #3A2A2A;
  --ok: #6FE3A0;
  --ok-soft: #173826;
  --warn: #FFC56B;
  --warn-soft: #3A2E15;
  --err: #FF8A8A;
  --err-soft: #3F1D22;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 34px 80px -26px rgba(0, 0, 0, .75);
  --glow-1: rgba(122, 92, 255, .26);
  --glow-2: rgba(42, 199, 176, .14);
  --glow-3: rgba(255, 140, 110, .08);
  color-scheme: dark;
}

/* Schriftgröße: Normal / Groß / Sehr groß (Kopfleiste oder Fußzeile) */
html { font-size: 112.5%; }
html[data-size="l"] { font-size: 125%; }
html[data-size="xl"] { font-size: 140%; }

/* ------------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-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-text);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.35rem, 4.6vw + .6rem, 3.9rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 2.2vw + .8rem, 2.5rem); }
h3 { font-size: 1.22rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--text); }
kbd {
  display: inline-block; min-width: 1.7em; padding: .05em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 7px; background: var(--surface); font: 600 .82em/1.5 var(--font-text); text-align: center; color: var(--text);
}
.keys { white-space: nowrap; }
.kbd-plus { margin: 0 .2em; color: var(--text-3); }
code { font: .88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.icon-sm { width: 1.05em; height: 1.05em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: .6em 1em; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-3); }
.small { font-size: .9rem; }
.center { text-align: center; }
.fineprint { font-size: .8rem; color: var(--text-3); }

html[data-scheme="dark"] .only-light, html:not([data-scheme="dark"]) .only-dark { display: none !important; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container-wide { width: min(1320px, 100% - 40px); }
.container-narrow { width: min(820px, 100% - 40px); }

/* ------------------------------------------------------------------ Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .55em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 22px -10px rgba(100, 67, 240, .7); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); box-shadow: 0 12px 26px -10px rgba(100, 67, 240, .75); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--brand); background: var(--surface); }
.btn-sm { min-height: 42px; padding: .4em 1.05em; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: .7em 1.7em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.danger { color: var(--err); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(35, 24, 80, .4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand-logo { width: 40px; height: 40px; filter: drop-shadow(0 6px 12px rgba(100, 67, 240, .28)); }
.brand-word { font: 800 1.28rem/1 var(--font-head); letter-spacing: -.01em; }
.brand-hmf { color: var(--brand-text); }
.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.nav-toggle, .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-cta { margin-left: 6px; }
[data-theme-toggle] .icon-moon { display: none; }
html[data-scheme="dark"] [data-theme-toggle] .icon-sun { display: none; }
html[data-scheme="dark"] [data-theme-toggle] .icon-moon { display: block; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { order: 3; margin-left: 0; }
  .header-actions { margin-left: auto; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; padding: 16px 20px 24px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav-menu.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { width: 100%; min-height: 52px; font-size: 1.08rem; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 12px; }
  .header-cta { display: none; }
}
@media (max-width: 420px) { .brand-word { font-size: 1.1rem; } .brand-logo { width: 34px; height: 34px; } }

/* ------------------------------------------------------------------ Abschnitte */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(24px, 4vw, 48px) 0; }
.section-soft { background: linear-gradient(180deg, var(--bg-soft), var(--bg) 90%); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .45em; margin: 0 0 .9em;
  font: 800 .82rem/1 var(--font-text); letter-spacing: .09em; text-transform: uppercase; color: var(--teal);
}

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 130%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 45% at 78% 30%, var(--glow-1), transparent 70%),
    radial-gradient(35% 40% at 92% 75%, var(--glow-2), transparent 70%),
    radial-gradient(30% 35% at 12% 10%, var(--glow-3), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.4em; padding: .45em 1em .45em .8em;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 600; color: var(--text-2);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-bg); box-shadow: 0 0 0 4px var(--teal-soft); }
.hero h1 { margin-bottom: .45em; }
.hl { background: linear-gradient(100deg, var(--brand) 10%, #B06CFF 55%, var(--teal-bg) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, .6vw + .95rem, 1.3rem); color: var(--text-2); max-width: 34em; margin-bottom: 1.8em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 1.8em 0 0; padding: 0; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: .4em; }
.trust .icon { color: var(--teal); }

.hero-visual { position: relative; }
.window-frame {
  margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.hero-visual .window-frame { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; transition: transform .8s var(--ease); }
.hero-visual:hover .window-frame { transform: perspective(1800px) rotateY(-3deg) rotateX(1deg); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.25;
  animation: schweben 7s ease-in-out infinite;
}
.float-chip strong { display: block; font-weight: 700; }
.float-chip small { color: var(--text-3); font-size: .82rem; }
.float-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--peach); color: #B4501E; }
.float-icon-ok { background: var(--ok-soft); color: var(--ok); }
.float-birthday { left: -28px; bottom: 14%; }
.float-saved { right: -14px; top: -18px; animation-delay: -3s; }
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual .window-frame { transform: none; }
  .float-birthday { left: 8px; bottom: -22px; }
  .float-saved { right: 8px; top: -22px; }
}
@media (max-width: 560px) { .float-chip { display: none; } }

/* ------------------------------------------------------------------ Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps strong { display: block; font: 800 1.1rem/1.3 var(--font-head); margin-bottom: .25em; }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font: 900 1.1rem/1 var(--font-head); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Kacheln */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.tile, .card {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile h3, .card h3 { margin-bottom: .4em; }
.tile p, .card p { margin: 0; color: var(--text-2); }
.tile-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); }
.tile-icon .icon { width: 26px; height: 26px; }
.tiles li:nth-child(3n+2) .tile-icon { background: var(--teal-soft); color: var(--teal); }
.tiles li:nth-child(3n) .tile-icon { background: var(--peach); color: #B4501E; }
html[data-scheme="dark"] .tiles li:nth-child(3n) .tile-icon { color: #FFB08A; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tiles, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles, .cards-3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Funktionen im Detail */
.feature-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-flip .feature-text { order: 2; }
.feature-text h2 { margin-bottom: .5em; }
.feature-text > p { color: var(--text-2); font-size: 1.07rem; }
.feature-media { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.checks { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: .6em; }
.checks li { display: flex; gap: .6em; align-items: flex-start; }
.checks .icon { color: var(--teal); margin-top: .18em; }
.feature-stack { position: relative; border: 0; box-shadow: none; background: none; overflow: visible; min-height: 420px; }
.feature-stack .zoom { position: absolute; width: 64%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.stack-back { left: 0; top: 0; transform: rotate(-4deg); }
.stack-front { right: 0; bottom: 0; transform: rotate(3deg); }
.feature-qr { display: grid; place-items: center; padding: 36px; background: radial-gradient(60% 60% at 50% 40%, var(--brand-soft), var(--surface)); }
.qr-shot { width: min(300px, 100%); border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .feature-stack { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-stack .zoom { position: static; width: auto; transform: none; }
}

.zoom { cursor: zoom-in; }

/* ------------------------------------------------------------------ Farbwelten */
.worlds-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-bottom: 28px; }
.world-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.world-btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: 0 18px 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font: 700 .98rem/1 var(--font-text); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.world-btn:hover { transform: translateY(-1px); }
.world-btn[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.world-dots { display: inline-flex; }
.world-dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--w1); border: 2px solid var(--surface); }
.world-dots i + i { background: var(--w2); margin-left: -7px; }
.worlds-frame { max-width: 1080px; margin: 0 auto; }
.world-img { transition: opacity .35s var(--ease); }
.world-img.is-fading { opacity: .25; }

/* ------------------------------------------------------------------ Segmente, Schalter */
.segmented { display: inline-flex; gap: 4px; padding: 4px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.segmented legend { float: left; padding: 0 10px 0 12px; align-self: center; font-size: .88rem; color: var(--text-3); font-weight: 600; line-height: 42px; }
.segmented label, .segmented button {
  display: inline-flex; align-items: center; gap: .4em; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0;
  background: transparent; color: var(--text-2); font: 600 .92rem/1 var(--font-text); cursor: pointer; position: relative;
}
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked), .segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.switch-label { display: inline-flex; align-items: center; gap: .7em; cursor: pointer; font-weight: 600; color: var(--text-2); position: relative; min-height: 44px; }
.switch-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch-label input:checked + .switch { background: var(--brand); }
.switch-label input:checked + .switch::after { transform: translateX(18px); }
.switch-label input:focus-visible + .switch { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ------------------------------------------------------------------ Preise */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.price-card.is-featured {
  border: 2px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--brand), #B06CFF 50%, var(--teal-bg)) border-box;
}
@media (min-width: 901px) { .price-card.is-featured { transform: translateY(-10px); } }
.price-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%); margin: 0; padding: .35em 1em; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: .8rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: .15em; }
.price-for { color: var(--text-3); margin-bottom: 1.1em; }
.price-amount { margin: 0; font-family: var(--font-head); line-height: 1; }
.price-num { font-size: 3rem; font-weight: 900; letter-spacing: -.02em; }
.price-cur { font-size: 1.6rem; font-weight: 800; }
.price-note { margin: .4em 0 1.2em; color: var(--text-3); font-size: .9rem; }
.price-card .checks { margin: 0 0 1.6em; flex: 1; }
.price-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5em; margin: 36px 0 0; color: var(--text-2); text-align: center; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 460px; } }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; margin-bottom: 32px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer;
  font: 700 1.08rem/1.35 var(--font-head); list-style: none; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--text-3); transition: transform .25s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--text-2); }

/* ------------------------------------------------------------------ Schluss */
.final { padding-top: 0; }
.final-inner {
  text-align: center; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 36px; position: relative; overflow: hidden;
  background: radial-gradient(60% 80% at 20% 0%, var(--glow-1), transparent 70%), radial-gradient(50% 70% at 90% 100%, var(--glow-2), transparent 70%), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.final-logo { width: 72px; height: 72px; margin: 0 auto 18px; filter: drop-shadow(0 12px 22px rgba(100, 67, 240, .35)); }
.final p { color: var(--text-2); font-size: 1.1rem; }

/* ------------------------------------------------------------------ Unterseiten */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 180%; z-index: -1; pointer-events: none;
  background: radial-gradient(35% 50% at 85% 20%, var(--glow-1), transparent 70%), radial-gradient(30% 40% at 5% 0%, var(--glow-3), transparent 70%);
}
.page-hero h1 { font-size: clamp(2rem, 3.4vw + .7rem, 3.1rem); }
.page-hero p { color: var(--text-2); font-size: 1.12rem; max-width: 42em; margin-bottom: 0; }
.page-section { padding-bottom: clamp(56px, 8vw, 104px); }

.prose { max-width: 820px; padding-bottom: clamp(56px, 8vw, 104px); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
tbody th { font-weight: 700; white-space: nowrap; }

.note { padding: 16px 20px; margin: 1.2em 0; border-radius: var(--radius-sm); background: var(--brand-soft); border-left: 4px solid var(--brand); color: var(--text); }
.note p:last-child { margin-bottom: 0; }
.note-warn { background: var(--warn-soft); border-left-color: var(--warn); }
.note-ok { background: var(--ok-soft); border-left-color: var(--ok); }
.note-err { background: var(--err-soft); border-left-color: var(--err); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 14px; }
.card-icon .icon { width: 24px; height: 24px; }

/* Download */
.dl-card { display: flex; flex-direction: column; gap: .6em; }
.dl-card h2 { margin: 0; }
.dl-meta { display: grid; gap: .2em; font-size: .88rem; color: var(--text-3); margin: .2em 0 .6em; }
.dl-meta code { font-size: .78rem; }
.dl-card .btn { align-self: flex-start; }
.num-list { counter-reset: n; list-style: none; padding: 0 !important; }
.num-list li { counter-increment: n; position: relative; padding-left: 3em; margin-bottom: 1.1em; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: -.1em; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font: 900 1rem/1 var(--font-head); }

/* ------------------------------------------------------------------ Formulare */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field-label { font-weight: 700; }
.req { color: var(--err); }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font-text); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.hint { margin: 0; font-size: .88rem; color: var(--text-3); }
.field-error { margin: 0; font-size: .9rem; color: var(--err); font-weight: 600; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400 !important; }
.check input { flex: none; width: 24px; height: 24px; margin: .15em 0 0; accent-color: var(--brand); cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.err { background: var(--err-soft); color: var(--err); }

/* ------------------------------------------------------------------ Kaufen */
.buy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .buy { grid-template-columns: 1fr; } }
.edition-list { display: grid; gap: 12px; border: 0; margin: 0 0 8px; padding: 0; }
.edition-list legend { font: 800 1.2rem/1.3 var(--font-head); margin-bottom: 12px; padding: 0; }
.edition {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; padding: 18px 20px;
  border-radius: 18px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.edition:hover { border-color: var(--brand); }
.edition input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); grid-row: span 2; }
.edition strong { font: 800 1.1rem/1.3 var(--font-head); }
.edition .ed-sub { grid-column: 2; color: var(--text-3); font-size: .92rem; }
.edition .ed-price { grid-row: span 2; font: 900 1.4rem/1 var(--font-head); white-space: nowrap; }
.edition:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.buy-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-of-type { border-bottom: 0; }
.sum-total { font: 900 1.5rem/1.2 var(--font-head); }
.consent { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin: 18px 0; font-size: .92rem; display: grid; gap: 12px; }
.paypal-box { min-height: 60px; position: relative; }
.paypal-box.is-locked { opacity: .5; filter: grayscale(.4); }
.buy-state { text-align: center; padding: 8px 0; }
.license-key {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; padding: 18px; border-radius: 16px;
  background: var(--brand-soft); font: 700 1.25rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; color: var(--text); word-break: break-all;
}
.secure-line { display: flex; align-items: center; gap: .5em; justify-content: center; font-size: .88rem; color: var(--text-3); margin: 14px 0 0; }

/* ------------------------------------------------------------------ Hilfe */
.help-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.help-aside-inner { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-right: 6px; }
.help-search { position: relative; }
.help-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.help-search input { padding-left: 44px; }
.help-toc summary { display: none; }
.help-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.help-toc a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: .94rem; line-height: 1.35; }
.help-toc a:hover { background: var(--surface-2); color: var(--text); }
.help-toc a.is-active { background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.help-content { max-width: 800px; }
.help-section { padding-bottom: 12px; }
.help-section + .help-section { border-top: 1px solid var(--line); padding-top: 12px; }
.help-section h2 { font-size: 1.7rem; margin-top: 1.2em; position: relative; }
.help-section h3 { font-size: 1.2rem; margin-top: 1.6em; }
.anchor { position: absolute; left: -1.1em; opacity: 0; text-decoration: none; color: var(--text-3); }
.help-section h2:hover .anchor { opacity: 1; }
.help-content ul, .help-content ol { padding-left: 1.3em; }
.help-content li { margin-bottom: .45em; }
.help-content .sub { margin-top: .4em; }
.help-figure { margin: 1.4em 0 1.8em; }
.help-shot, .help-detail { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.help-detail { max-width: min(100%, 560px); }
.help-section.is-hidden { display: none; }
.help-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.help-feedback p { margin: 0 auto 0 0; font-weight: 700; }
mark { background: color-mix(in srgb, var(--teal-bg) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
@media (max-width: 960px) {
  .help-layout { grid-template-columns: 1fr; gap: 20px; }
  .help-aside-inner { position: static; max-height: none; }
  .help-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; margin-top: 12px; }
}

/* ------------------------------------------------------------------ Fußzeile */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 32px; margin-top: 24px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--text-2); margin-top: 14px; font-size: .95rem; }
.footer-title { font: 800 .82rem/1 var(--font-text); text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); margin: 8px 0 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-nav a { color: var(--text-2); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 40px 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-bottom { display: grid; gap: 6px; color: var(--text-3); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } .segmented { flex-wrap: wrap; border-radius: 22px; } }

/* ------------------------------------------------------------------ Dialoge, Toast */
.dialog { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); max-width: min(92vw, 560px); }
.dialog::backdrop { background: rgba(15, 10, 35, .55); backdrop-filter: blur(3px); }
.dialog-lightbox { max-width: 96vw; max-height: 94vh; background: transparent; box-shadow: none; overflow: visible; }
.dialog-lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 14px; box-shadow: var(--shadow-lg); background: var(--surface); }
.lightbox-close { position: fixed; top: 16px; right: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 20px; border-radius: 16px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600; animation: rein .3s var(--ease); }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="allow"]) *, html:not([data-motion="allow"]) *::before, html:not([data-motion="allow"]) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html:not([data-motion="allow"]) .js .reveal, .js .reveal { opacity: 1; transform: none; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] .reveal { opacity: 1 !important; transform: none !important; }
html[data-motion="reduce"] .hero-visual .window-frame { transform: none; }

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

/* ------------------------------------------------------------------ Status-Seiten (gesendet, Fehler, 404) */
.status-page { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.status-page .lead { margin-inline: auto; }
.status-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; background: var(--brand-soft); color: var(--brand-text); }
.status-icon .icon { width: 34px; height: 34px; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-err { background: var(--err-soft); color: var(--err); }
