/* =====================================================================
   Allinger Digital · Webseite
   Farben und Größen stehen in :root. Alle Größen in rem, dadurch wächst
   die Seite auf großen Bildschirmen (4K) mit.
   ===================================================================== */

:root {
  --ink: #1C232E;          /* Tinte: Logo, Text, dunkle Bereiche */
  --ink-deep: #141A23;
  --cobalt: #2E5BEA;       /* Kobalt: Akzent, Knöpfe */
  --cobalt-dark: #2349C7;
  --sky: #8EA8FF;          /* Hellblau: Akzent auf dunklem Grund */
  --slate: #5B6573;        /* Schiefer: Nebentext */
  --paper: #F4F6FA;
  --line: #E2E7EF;
  --white: #fff;
  --red: #E0484B;

  --radius: 1.25rem;
  --radius-sm: .75rem;
  --shadow: 0 1.25rem 3rem rgba(20, 26, 35, .10);
  --shadow-lg: 0 2rem 4.5rem rgba(20, 26, 35, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 4.75rem;
}

/* 4K: die ganze Seite wächst mit */
@media (min-width: 1920px) { html { font-size: 18px; } }
@media (min-width: 2560px) { html { font-size: 21px; } }
@media (min-width: 3400px) { html { font-size: 27px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: .35rem; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; border-radius: .6rem; background: var(--cobalt); color: #fff; }
.skip:focus { top: 1rem; }

/* Fortschrittsbalken oben */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cobalt), var(--sky)); }

/* ---------- Text-Bausteine ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.section-dark .eyebrow, .section-blue .eyebrow { color: var(--sky); }
.section-blue .eyebrow { color: rgba(255,255,255,.85); }

h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-top: .9rem; }
.section-lead { margin-top: 1.1rem; font-size: 1.1875rem; color: var(--slate); max-width: 40rem; }
.section-dark .section-lead { color: rgba(255,255,255,.72); }
.section-blue .section-lead { color: rgba(255,255,255,.88); }

/* Cursor-Block aus dem Logo-A */
.cursor { display: inline-block; width: .42em; height: .3em; margin-left: .1em; background: var(--cobalt); vertical-align: baseline; animation: blink 1.15s steps(1) infinite; }
.section-dark .cursor, .hero .cursor { background: var(--sky); }
.section-blue .cursor { background: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.5rem; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), translate .25s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; stroke-width: 2.4; transition: translate .25s var(--ease); }
.btn:hover svg { translate: .2rem 0; }
.btn:hover { translate: 0 -2px; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 .75rem 1.75rem rgba(46, 91, 234, .35); }
.btn-primary:hover { background: var(--cobalt-dark); box-shadow: 0 1rem 2.2rem rgba(46, 91, 234, .45); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-sm { padding: .7rem 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.link-btn { margin-top: 1.5rem; padding: 0; border: 0; background: none; color: var(--cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Kopfzeile ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.header.is-scrolled { background: rgba(20, 26, 35, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 1.9rem; width: auto; }
.nav { display: flex; gap: 1.9rem; }
.nav a { position: relative; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; font-size: .975rem; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.4rem; height: 2px; background: var(--sky); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.burger { display: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 50%; width: 1.2rem; height: 2px; background: #fff; translate: -50% 0; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 1.15rem; }
.burger span:last-child { top: 1.65rem; }
.burger[aria-expanded="true"] span:first-child { top: 1.4rem; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 1.4rem; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + 2rem) 1.5rem 2rem; background: rgba(20, 26, 35, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.menu nav { display: flex; flex-direction: column; gap: .4rem; }
.menu a:not(.btn) { color: #fff; text-decoration: none; font-size: 1.6rem; font-weight: 600; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.menu .btn { margin-top: 1.5rem; }
.menu:not([hidden]) { animation: menu-in .3s var(--ease); }
@keyframes menu-in { from { opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink-deep); padding: calc(var(--header-h) + 3.5rem) 0 3rem; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before { /* feines Raster */
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(142,168,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(142,168,255,.07) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(4rem); }
.glow-1 { width: 38rem; height: 38rem; right: -8rem; top: -6rem; background: radial-gradient(circle, rgba(46,91,234,.55), transparent 65%); }
.glow-2 { width: 30rem; height: 30rem; left: -10rem; bottom: -12rem; background: radial-gradient(circle, rgba(142,168,255,.22), transparent 65%); }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; min-height: min(46rem, calc(100vh - var(--header-h) - 8rem)); }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem .45rem .7rem; border-radius: 999px; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pill-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 .3rem rgba(61,220,151,.18); }
.hero h1 { margin-top: 1.4rem; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; }
.hero .hl { color: var(--sky); }
.lead { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.75); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2.2rem; font-size: .95rem; color: rgba(255,255,255,.72); }
.hero-checks li { display: flex; align-items: center; gap: .5rem; }
.hero-checks svg { width: 1.1rem; height: 1.1rem; color: var(--sky); stroke-width: 2.6; }

/* Handy mit Gespräch */
.hero-visual { position: relative; display: grid; justify-items: center; }
.phone {
  position: relative; width: 18.5rem; height: 38rem; padding: .7rem; border-radius: 3rem;
  background: linear-gradient(160deg, #2A3342, #0D1117 60%); box-shadow: 0 2.5rem 5rem rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(255,255,255,.12);
  transform-style: preserve-3d; will-change: transform;
}
.phone::before { content: ""; position: absolute; top: 1.35rem; left: 50%; translate: -50% 0; width: 5.2rem; height: 1.45rem; border-radius: 1rem; background: #0B0E13; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 2.35rem; overflow: hidden; background: linear-gradient(180deg, #F7F8FB, #EEF1F7); color: var(--ink); display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 1.05rem 1.6rem .4rem; font-size: .8rem; font-weight: 600; }
.ph-bars { display: flex; align-items: flex-end; gap: 2px; height: .7rem; }
.ph-bars i { width: 3px; background: var(--ink); border-radius: 1px; }
.ph-bars i:nth-child(1) { height: 35%; } .ph-bars i:nth-child(2) { height: 55%; } .ph-bars i:nth-child(3) { height: 78%; } .ph-bars i:nth-child(4) { height: 100%; }
.ph-head { display: flex; align-items: center; gap: .7rem; margin: .9rem .9rem .3rem; padding: .7rem .8rem; border-radius: 1rem; background: #fff; box-shadow: 0 .4rem 1.2rem rgba(20,26,35,.07); }
.ph-head strong { display: block; font-size: .9rem; line-height: 1.2; }
.ph-avatar { width: 2.4rem; height: 2.4rem; border-radius: .7rem; background: var(--cobalt); display: grid; place-items: center; flex: none; }
.ph-avatar svg { width: 1.5rem; height: 1.5rem; stroke: none; }
.ph-live { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--slate); }
.ph-live i { width: .45rem; height: .45rem; border-radius: 50%; background: #2BBF7E; animation: pulse 1.6s infinite; }
.ph-live.is-ended i { background: var(--slate); animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 .35rem rgba(43,191,126,.18); } }
.ph-chat { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: .8rem .9rem 1rem; overflow: hidden; }
.bubble { display: none; max-width: 86%; padding: .6rem .8rem; border-radius: 1rem; font-size: .8rem; line-height: 1.38; }
.bubble.is-shown { display: block; animation: bubble-in .45s var(--ease); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(.6rem) scale(.98); } }
.bubble-in { align-self: flex-start; background: #fff; border-bottom-left-radius: .3rem; box-shadow: 0 .3rem .9rem rgba(20,26,35,.06); }
.bubble-ai { align-self: flex-end; background: var(--cobalt); color: #fff; border-bottom-right-radius: .3rem; }
.typing { display: none; align-self: flex-start; gap: .25rem; padding: .7rem .85rem; border-radius: 1rem; background: #fff; }
.typing.is-ai { align-self: flex-end; background: var(--cobalt); }
.typing.is-shown { display: flex; }
.typing i { width: .38rem; height: .38rem; border-radius: 50%; background: #A6AFBD; animation: dot 1s infinite; }
.typing.is-ai i { background: rgba(255,255,255,.8); }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { transform: translateY(-.25rem); opacity: .6; } }
.ph-notify {
  position: absolute; left: .7rem; right: .7rem; top: 2.6rem; display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 1.1rem;
  background: rgba(28,35,46,.94); color: #fff; font-size: .75rem; line-height: 1.35; box-shadow: 0 1rem 2rem rgba(0,0,0,.25);
  opacity: 0; transform: translateY(-1.5rem); transition: opacity .5s var(--ease), transform .5s var(--ease); z-index: 4;
}
.ph-notify.is-shown { opacity: 1; transform: none; }
.ph-notify strong { display: block; font-size: .8rem; margin-bottom: .1rem; }
.ph-notify-icon { width: 2rem; height: 2rem; border-radius: .6rem; background: #2BBF7E; display: grid; place-items: center; flex: none; }
.ph-notify-icon svg { width: 1.1rem; height: 1.1rem; color: #fff; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 1rem; font-size: .875rem; font-weight: 500; white-space: nowrap;
  background: rgba(32, 40, 54, .96); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 1rem 2rem rgba(0,0,0,.35);
  animation: hover 6s ease-in-out infinite;
}
.float svg { width: 1.05rem; height: 1.05rem; color: #3DDC97; stroke-width: 2.8; }
.float-a { left: -2rem; top: -1.4rem; }
.float-b { right: -2.5rem; bottom: 4.5rem; animation-delay: -3s; }
@keyframes hover { 50% { translate: 0 -.6rem; } }
.hero-caption { margin-top: 1.4rem; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.startbar { margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: 1rem 1.25rem; border-radius: 1rem; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); color: rgba(255,255,255,.78); font-size: .975rem; }
.startbar-badge { padding: .35rem .8rem; border-radius: 999px; background: var(--cobalt); color: #fff; font-weight: 600; font-size: .875rem; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: #fff; }
.section-blue { background: radial-gradient(ellipse at 15% 0%, #4B74F2, transparent 55%), var(--cobalt); color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* Icons in Kacheln */
.icon { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; flex: none; background: rgba(46,91,234,.1); color: var(--cobalt); }
.icon svg { width: 1.45rem; height: 1.45rem; }
.icon-red { background: rgba(224,72,75,.1); color: var(--red); }
.icon-glass { background: rgba(255,255,255,.14); color: #fff; }

/* Probleme */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pain { padding: 1.9rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.pain h3 { margin-top: 1.3rem; font-size: 1.3rem; line-height: 1.25; }
.pain p { margin-top: .6rem; color: var(--slate); }
.bridge { margin-top: 2.75rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.35; max-width: 44rem; }
.bridge strong { color: var(--cobalt); font-weight: 600; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  position: relative; padding: 2rem; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .35s var(--ease), translate .35s var(--ease); overflow: hidden;
}
.service:hover { translate: 0 -.3rem; box-shadow: inset 0 0 0 1.5px rgba(46,91,234,.45), var(--shadow); }
.spot::before { /* Lichtfleck folgt der Maus */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgba(46,91,234,.09), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.service h3 { margin-top: 1.4rem; font-size: 1.4rem; }
.service p { margin-top: .65rem; color: var(--slate); }
.service-featured { background: linear-gradient(160deg, var(--ink), #24304A); color: #fff; box-shadow: var(--shadow-lg); }
.service-featured p { color: rgba(255,255,255,.75); }
.service-featured .icon { background: var(--cobalt); color: #fff; }
.service-featured .tags li { background: rgba(255,255,255,.1); color: #fff; }
.service-featured::before { background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgba(142,168,255,.18), transparent 45%); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }
.tags li { padding: .3rem .7rem; border-radius: 999px; background: var(--paper); font-size: .8125rem; font-weight: 500; color: var(--ink); }

/* Demos */
.demo { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(4rem, 8vw, 6rem); }
.demo-reverse .demo-media { order: 2; }
.demo-media { position: relative; padding: 0 2.5rem 2.5rem 0; will-change: transform; }
.browser { border-radius: 1rem; overflow: hidden; background: #222A36; box-shadow: 0 2rem 4rem rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.browser-bar { display: flex; align-items: center; gap: .4rem; height: 2.2rem; padding: 0 .9rem; background: #2B3442; }
.browser-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #4A5568; }
.browser-bar span { margin-left: .8rem; padding: .15rem .8rem; border-radius: .5rem; background: #1C232E; color: rgba(255,255,255,.55); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mini-phone { position: absolute; right: 0; bottom: 0; width: 28%; aspect-ratio: 9 / 19; padding: .35rem; border-radius: 1.4rem; background: #0D1117; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.14); }
.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 1.1rem; }
.demo-kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.demo-copy h3 { margin-top: .8rem; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.demo-copy > p:not(.demo-kicker) { margin-top: 1rem; color: rgba(255,255,255,.75); }
.feature-list { margin: 1.4rem 0 2rem; display: grid; gap: .65rem; }
.feature-list li { display: flex; gap: .7rem; color: rgba(255,255,255,.88); }
.feature-list li::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; border-radius: 50%; background: rgba(142,168,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238EA8FF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .75rem no-repeat; }
.demo-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius); background: linear-gradient(120deg, var(--cobalt), #4A72F0); box-shadow: 0 1.5rem 3rem rgba(46,91,234,.3); }
.demo-cta h3 { font-size: 1.6rem; }
.demo-cta p { margin-top: .4rem; color: rgba(255,255,255,.88); max-width: 38rem; }
.fineprint { margin-top: 1.5rem; font-size: .875rem; color: rgba(255,255,255,.5); }

/* Webseiten-Check */
.check-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.check-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.check-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.check-list { display: grid; gap: .6rem; }
.check-item {
  width: 100%; display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: .9rem; border: 0; text-align: left; cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px transparent; transition: background-color .25s, box-shadow .25s;
}
.check-item:hover { box-shadow: inset 0 0 0 1.5px rgba(46,91,234,.35); }
.check-item strong { display: block; font-weight: 600; line-height: 1.35; }
.check-item small { display: block; margin-top: .2rem; color: var(--slate); font-size: .9rem; }
.check-box { flex: none; width: 1.5rem; height: 1.5rem; margin-top: .05rem; border-radius: .45rem; box-shadow: inset 0 0 0 2px #B9C2D0; background: #fff center / 1rem no-repeat; transition: background-color .2s, box-shadow .2s; }
.check-item[aria-pressed="true"] { background: rgba(224,72,75,.07); box-shadow: inset 0 0 0 1.5px rgba(224,72,75,.4); }
.check-item[aria-pressed="true"] .check-box { background-color: var(--red); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.check-result { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; }
.meter { grid-column: 1 / -1; height: .6rem; border-radius: 999px; background: var(--paper); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: #2BBF7E; transition: width .6s var(--ease), background-color .6s; }
.check-score { font-weight: 700; font-size: 1.1rem; }
.check-text { grid-column: 1 / -1; color: var(--slate); }
.check-text strong { color: var(--ink); }
.check-result .btn { grid-column: 1 / -1; justify-self: start; }

/* Ablauf */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 1.5rem; left: 1.5rem; right: 1.5rem; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 1.5rem; left: 1.5rem; right: 1.5rem; height: 2px; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.step { position: relative; z-index: 1; }
.step-num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: var(--cobalt); font-weight: 700; font-size: 1.15rem; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 .5rem #fff; }
.step h3 { margin-top: 1.4rem; font-size: 1.3rem; }
.step p { margin-top: .5rem; color: var(--slate); }

/* Über mich */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-card {
  position: relative; padding: 2.5rem 2rem 2rem; border-radius: 1.75rem; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 80% 0%, rgba(46,91,234,.75), transparent 55%), linear-gradient(160deg, var(--ink), var(--ink-deep)); box-shadow: var(--shadow-lg);
}
.about-card::after { content: ""; position: absolute; right: -4rem; bottom: -5rem; width: 16rem; height: 16rem; border-radius: 50%; border: 1px solid rgba(142,168,255,.18); }
.about-icon { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 1.4rem; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.about-icon svg { width: 3.2rem; height: 3.2rem; stroke: none; }
.about-cursor { animation: blink 1.15s steps(1) infinite; }
.about-name { margin-top: 1.6rem; font-size: 1.6rem; font-weight: 700; }
.about-role { color: rgba(255,255,255,.7); }
.about-place { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .875rem; }
.about-place svg { width: 1rem; height: 1rem; color: var(--sky); }
.about-card blockquote { margin: 1.8rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: 1.2rem; font-style: italic; line-height: 1.45; color: rgba(255,255,255,.9); }
.values { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.values li { padding: 1.2rem 1.25rem; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.values strong { display: block; font-weight: 600; }
.values strong::before { content: ""; display: inline-block; width: .55rem; height: .4rem; margin-right: .55rem; background: var(--cobalt); vertical-align: .12em; }
.values span { display: block; margin-top: .3rem; color: var(--slate); font-size: .975rem; }

/* Fragen */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; font-size: 1.15rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 1.9rem; height: 1.9rem; margin-top: -.95rem; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5BEA' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 1rem no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(46,91,234,.12); }
.faq summary:hover { color: var(--cobalt); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--slate); }
.faq details[open] p { animation: fade-down .35s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-.4rem); } }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-ways { margin-top: 2rem; display: grid; gap: .8rem; }
.contact-ways a { display: inline-flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-ways a:hover span:last-child { text-decoration: underline; text-underline-offset: .2em; }
.contact-ways small { display: block; font-weight: 500; font-size: .8125rem; opacity: .75; }
.contact-note { margin-top: 2rem; padding: 1rem 1.2rem; border-radius: 1rem; background: rgba(255,255,255,.1); font-size: .975rem; color: rgba(255,255,255,.9); }

.form { padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: 1.5rem; background: #fff; color: var(--ink); box-shadow: 0 2rem 4rem rgba(16, 32, 90, .3); display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > span, .chips legend { font-size: .875rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: .8rem; border: 1.5px solid var(--line); background: var(--paper); font: inherit; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(46,91,234,.14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); background: #FFF6F6; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { margin-bottom: .5rem; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .5rem .9rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .9rem; font-weight: 500; transition: background-color .2s, color .2s, box-shadow .2s; }
.chips input:checked + span { background: var(--cobalt); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--slate); cursor: pointer; }
.consent input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--cobalt); }
.consent.is-invalid { color: var(--red); }
.form-status { min-height: 1.4em; font-size: .95rem; font-weight: 500; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: #1E9B63; }
.form.is-sent > :not(.form-done) { display: none; }
.form-done { display: none; text-align: center; padding: 2rem .5rem; }
.form.is-sent .form-done { display: block; animation: fade-down .4s var(--ease); }
.form-done .icon { margin: 0 auto 1.2rem; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(43,191,126,.14); color: #1E9B63; }
.form-done h3 { font-size: 1.6rem; }
.form-done p { margin-top: .6rem; color: var(--slate); }

/* Fußzeile */
.footer { background: var(--ink-deep); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid img { height: 1.8rem; width: auto; }
.footer-grid p { margin-top: 1rem; max-width: 22rem; }
.footer nav { display: grid; gap: .55rem; align-content: start; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; font-size: .875rem; color: rgba(255,255,255,.5); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: clamp(1.25rem, 4vw, 2.5rem); right: clamp(1.25rem, 4vw, 2.5rem); height: 1px; background: rgba(255,255,255,.08); }

/* Rechtstexte (Impressum, Datenschutz, 404) */
.page-header, .page-header.is-scrolled { position: sticky; top: 0; z-index: 50; background: var(--ink-deep); }
.legal .eyebrow { color: var(--cobalt); margin-top: 0; }
.page-header .header-bar { height: var(--header-h); }
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal article { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-top: .8rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; letter-spacing: -.01em; }
.legal p, .legal li { margin-top: .8rem; color: #39424F; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.todo { display: inline; padding: .1rem .35rem; border-radius: .3rem; background: #FFE8C2; color: #7A4A00; font-weight: 500; }
.not-found { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.not-found h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
.not-found p { margin: 1rem auto 2rem; color: var(--slate); max-width: 28rem; }

/* ---------- Einblenden beim Scrollen ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(1.75rem); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .float-a { left: -.5rem; } .float-b { right: -.5rem; }
}
.hero-visual { padding-top: 1.5rem; }
@media (max-width: 960px) {
  .hero-grid, .demo, .check-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 3rem; }
  .demo-reverse .demo-media { order: 0; }
  .check-intro, .faq-grid .section-head { position: static; }
  .pains, .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before, .steps::after { display: none; }
  .about-card { max-width: 26rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 4.25rem; }
  body { font-size: 1rem; }
  .header-cta { display: none; }
  .brand img { height: 1.6rem; }
  .hero { padding-top: calc(var(--header-h) + 2.2rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .phone { width: 16.5rem; height: 34rem; }
  .float { font-size: .78rem; padding: .55rem .8rem; }
  .float-a { left: -.25rem; top: 0; } .float-b { right: -.25rem; bottom: -.9rem; }
  .pains, .services, .values, .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .demo-media { padding: 0 1.25rem 1.75rem 0; }
  .demo-cta { flex-direction: column; align-items: flex-start; }
  .faq details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Weniger Bewegung, wenn im System eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .cursor, .about-cursor { animation: none; }
}
