/* =========================================================
   PaperSIM Produktwebsite
   Farben aus dem Logo: Navy #0e2135, Blau #65adef
   ========================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2"), url("../fonts/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0e2135;
  --navy-2: #142c46;
  --navy-3: #1c3a5c;
  --blue: #65adef;
  --blue-strong: #1d6fc4;
  --blue-soft: #e8f3fd;
  --ink: #0e2135;
  --text: #2b3b4f;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --paper: #f5f8fb;
  --white: #ffffff;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #f5b83d;
  --green: #2f9e6e;

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 33, 53, .06), 0 2px 8px rgba(14, 33, 53, .05);
  --shadow: 0 2px 6px rgba(14, 33, 53, .06), 0 18px 40px -12px rgba(14, 33, 53, .18);
  --shadow-paper: 0 1px 1px rgba(14, 33, 53, .08), 0 10px 24px -6px rgba(14, 33, 53, .25), 0 30px 60px -20px rgba(14, 33, 53, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blue); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #c9d6e6; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue-strong);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 8h10l2-3 2 3 2.5-6 3 11 2.5-5H33'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 8h10l2-3 2 3 2.5-6 3 11 2.5-5H33'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--blue); }

.h-display { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; }
.h-section { font-size: clamp(32px, 4.2vw, 52px); font-weight: 650; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 640px; }
.section--navy .lead { color: #a9bbd0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::before { display: none; }
.text-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 17px; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 18px -6px rgba(101, 173, 239, .7);
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(101, 173, 239, .85); }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--navy { --bg: var(--navy); --fg: var(--white); box-shadow: 0 8px 20px -8px rgba(14, 33, 53, .6); }
.btn--navy:hover { box-shadow: 0 12px 26px -10px rgba(14, 33, 53, .7); }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.btn--outline { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(14, 33, 53, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(14, 33, 53, .94); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .4); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -.01em; color: var(--white); line-height: 1; }
.brand-word span { color: var(--blue); }
.brand--dark .brand-word { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { white-space: nowrap; color: #d3dfec; text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 16px; margin-left: 10px; color: var(--navy); background: var(--blue); }
.nav .btn:hover { color: var(--navy); background: #7dbaf2; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 28px; background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .nav .btn { margin: 10px 0 0; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 600px at 85% 20%, rgba(101, 173, 239, .22), transparent 60%),
              radial-gradient(800px 500px at 0% 100%, rgba(101, 173, 239, .10), transparent 60%),
              var(--navy);
  color: #c9d6e6;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(110px, 13vw, 190px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after { content: ""; position: absolute; inset: 0; 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); color: var(--white); z-index: 1; }
.hl { position: relative; white-space: nowrap; }
.hl svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .32em; overflow: visible; }
.hl path { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s cubic-bezier(.6, .1, .2, 1) .7s forwards; opacity: .55; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .text-blue { display: inline; }
.hero .lead { color: #b3c4d8; margin-bottom: 36px; }
.hero-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: #94a9c1; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

.ecg-line { position: absolute; left: 0; right: 0; bottom: clamp(30px, 5vw, 70px); height: 140px; pointer-events: none; opacity: .45; }
.ecg-line path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: ecg 4.5s ease-out .4s forwards; }
@keyframes ecg { to { stroke-dashoffset: 0; } }

/* Dokumentenstapel */
.doc-stack { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 600px; justify-self: end; perspective: 1400px; }
.doc-stack .tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform .4s ease-out; }
.doc-stack::before { content: ""; position: absolute; left: 10%; right: 6%; top: 18%; bottom: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(101, 173, 239, .45), transparent); filter: blur(30px); }
.doc-stack .paper {
  position: absolute; background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-paper); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.doc-stack .paper img { width: 100%; height: auto; }
.doc-stack .p1 { width: 58%; left: 4%; top: 2%; transform: rotate(-7deg); }
.doc-stack .p2 { width: 58%; right: 2%; top: 6%; transform: rotate(5deg); }
.doc-stack .p3 { width: 92%; left: 4%; bottom: 4%; transform: rotate(-1.5deg); }
.doc-stack:hover .p1 { transform: rotate(-9deg) translate(-10px, -6px); }
.doc-stack:hover .p2 { transform: rotate(7deg) translate(10px, -6px); }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; transform: translateZ(60px);
  background: rgba(255, 255, 255, .96); color: var(--navy); border-radius: 14px;
  padding: 10px 14px; font-size: 14px; font-weight: 600; line-height: 1.25;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  animation: float 6s ease-in-out infinite;
}
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue-strong); }
.chip .dot svg { width: 18px; height: 18px; }
.chip--a { left: -4%; top: 40%; }
.chip--b { right: -2%; top: 44%; animation-delay: -2s; }
.chip--b .dot { background: #e8f7f0; color: var(--green); }
.chip--c { left: 18%; bottom: -3%; animation-delay: -4s; }
.chip--c .dot { background: var(--red-soft); color: var(--red); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .doc-stack { justify-self: center; max-width: 520px; margin-top: 16px; }
}
@media (max-width: 520px) {
  .chip { font-size: 12.5px; padding: 8px 10px; }
  .chip small { display: none; }
  .chip .dot { width: 28px; height: 28px; }
  .chip--a { left: 0; }
  .chip--b { right: 0; }
}

/* ---------- Problem / Vergleich ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.compare { display: grid; gap: 16px; }
.compare-card { border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--line); background: var(--white); }
.compare-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.compare-card h3 .tag { font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.compare-card--old { background: #fbfcfd; }
.compare-card--old .tag { background: #eef1f5; color: var(--muted); }
.compare-card--new { border-color: transparent; background: var(--navy); color: #c9d6e6; box-shadow: var(--shadow); }
.compare-card--new h3 { color: var(--white); }
.compare-card--new .tag { background: var(--blue); color: var(--navy); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check-list svg { width: 22px; height: 22px; margin-top: 2px; }
.compare-card--old svg { color: #a0acbb; }
.compare-card--new svg { color: var(--blue); }

/* ---------- Schritte (Timeline) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 44px; height: 2px;
  background: repeating-linear-gradient(90deg, #b9cfe6 0 8px, transparent 8px 16px);
}
.tstep { position: relative; text-align: center; padding: 0 10px; }
.tstep-ico {
  position: relative; width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--white); color: var(--navy); display: grid; place-items: center;
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px #d7e4f1, 0 18px 30px -12px rgba(14, 33, 53, .35);
}
.tstep-ico svg { width: 34px; height: 34px; }
.tstep:hover .tstep-ico { color: var(--blue-strong); }
.tstep-label { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tstep h3 { font-size: 24px; margin-bottom: 10px; }
.tstep p { color: var(--muted); margin: 0 auto; max-width: 320px; }
.tstep-time { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.tstep-time svg { width: 15px; height: 15px; color: var(--blue-strong); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 44px; }
  .timeline::before { left: 50%; right: auto; top: 44px; bottom: 44px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #b9cfe6 0 8px, transparent 8px 16px); }
  .tstep { background: var(--paper); }
}

/* ---------- Dokument-Showcase ---------- */
.showcase { display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.doc-tabs { display: grid; gap: 8px; }
.doc-tab {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left;
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s;
}
.doc-tab:hover { background: var(--white); border-color: var(--line); }
.doc-tab[aria-selected="true"] { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.doc-tab .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eaf0f6; color: var(--navy); transition: background .2s, color .2s; }
.doc-tab[aria-selected="true"] .ico { background: var(--navy); color: var(--blue); }
.doc-tab .ico svg { width: 22px; height: 22px; }
.doc-tab b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.doc-tab small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.doc-stage { position: relative; background: linear-gradient(160deg, #e9eef4, #dfe6ee); border-radius: 0 0 22px 22px; padding: clamp(20px, 4vw, 48px); min-height: 560px; display: grid; place-items: center; overflow: hidden; }
.doc-stage::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14, 33, 53, .07) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.doc-panel { position: relative; z-index: 1; width: 100%; display: grid; gap: 22px; justify-items: center; }
.doc-panel[hidden] { display: none; }
.doc-panel figure { margin: 0; width: 100%; display: grid; place-items: center; }
.doc-panel .paper-btn { display: block; padding: 0; border: 0; background: var(--white); cursor: zoom-in; border-radius: 3px; box-shadow: var(--shadow-paper); transition: transform .3s ease; animation: paperIn .5s cubic-bezier(.2, .7, .2, 1); }
.doc-panel .paper-btn:hover { transform: translateY(-4px) rotate(-.4deg); }
.doc-panel .paper-btn img { border-radius: 3px; }
.doc-panel .is-portrait { max-width: 430px; }
.doc-panel .is-landscape { max-width: 680px; }
.doc-panel .is-a6 { max-width: 560px; }
@keyframes paperIn { from { opacity: 0; transform: translateY(14px) rotate(1deg); } to { opacity: 1; transform: none; } }
.doc-caption { background: var(--white); border-radius: 14px; padding: 16px 20px; max-width: 680px; width: 100%; box-shadow: var(--shadow-sm); font-size: 15.5px; color: var(--text); }
.doc-caption b { color: var(--ink); }
.zoom-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.zoom-hint svg { width: 15px; height: 15px; }

@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
  .doc-tabs { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .doc-tab { scroll-snap-align: start; background: var(--white); border-color: var(--line); }
  .doc-stage { min-height: 0; }
}

.window { border-radius: 22px; background: var(--white); box-shadow: 0 2px 6px rgba(14, 33, 53, .06), 0 40px 80px -30px rgba(14, 33, 53, .35); border: 1px solid #d9e2ec; overflow: hidden; }
.window-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; background: var(--navy); color: #b3c4d8; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #2c4664; }
.window-dots i:first-child { background: #e5484d; } .window-dots i:nth-child(2) { background: #f5b83d; } .window-dots i:nth-child(3) { background: #2f9e6e; }
.window-title { justify-self: center; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .07); border-radius: 8px; padding: 5px 14px; font-size: 13.5px; color: #d3dfec; }
.window-title img { width: 18px; }
.window-actions { display: flex; gap: 6px; }
.window-actions span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: #d3dfec; }
.window-actions span:last-child { background: var(--blue); color: var(--navy); }
@media (max-width: 600px) { .window-actions { display: none; } .window-bar { grid-template-columns: auto 1fr; } }

/* ---------- Feature-Grid ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; grid-auto-flow: dense; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-strong); display: grid; place-items: center; margin-bottom: 20px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15.5px; color: var(--muted); margin: 0; }
.feature--big { grid-column: span 2; grid-row: span 2; background: var(--navy); color: #a9bbd0; border: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px; }
.feature--big::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(101, 173, 239, .35), transparent 65%); }
.feature--big h3 { color: var(--white); font-size: 26px; }
.feature--big p { color: #a9bbd0; font-size: 16.5px; max-width: 420px; }
.feature--big .ico { background: rgba(101, 173, 239, .16); color: var(--blue); }
.mini-stack { position: relative; flex: 1; min-height: 260px; margin-top: 26px; }
.mini-stack .mp { position: absolute; width: 38%; background: var(--white); border-radius: 3px; overflow: hidden; box-shadow: 0 18px 36px -10px rgba(0, 0, 0, .55); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mini-stack .mp img { width: 100%; }
.mini-stack .mp:nth-child(1) { left: 2%; top: 14%; transform: rotate(-8deg); }
.mini-stack .mp:nth-child(2) { left: 31%; top: 4%; transform: rotate(-1deg); z-index: 2; }
.mini-stack .mp:nth-child(3) { left: 60%; top: 16%; transform: rotate(7deg); }
.feature--big:hover .mp:nth-child(1) { transform: rotate(-11deg) translate(-8px, 4px); }
.feature--big:hover .mp:nth-child(3) { transform: rotate(10deg) translate(8px, 4px); }
.patient-pill { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 16px 8px 8px; font-weight: 600; font-size: 14.5px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.patient-pill .av { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.patient-pill small { font-weight: 500; color: var(--muted); }

.feature--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: center; overflow: hidden; position: relative; }
.med-crop { position: relative; height: 210px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.med-crop img { position: absolute; left: 0; top: 0; width: 250%; max-width: none; transform: translateY(-24%); }
.med-crop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #fff), linear-gradient(180deg, transparent 65%, #fff); }

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature--big { grid-row: span 1; }
}
@media (max-width: 760px) { .feature--wide { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .feature--big, .feature--wide { grid-column: auto; } .mini-stack { min-height: 210px; } }

/* ---------- Zusatzmodule mit KI ---------- */
.ki-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ki-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.ki-card-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ki-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-strong); display: grid; place-items: center; }
.ki-card .ico svg { width: 24px; height: 24px; }
.ki-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--navy); color: var(--blue); }
.ki-card h3 { font-size: 23px; margin-bottom: 10px; }
.ki-card > p { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.ki-demo { border-radius: 14px; padding: 16px 18px; background: var(--red-soft); color: #7d1f23; box-shadow: inset 0 0 0 1.5px #f4c7c9; margin-bottom: 22px; }
.ki-demo-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ki-demo-kopf svg { width: 18px; height: 18px; flex: none; }
.ki-demo-kopf b { flex: 1; font-size: 15.5px; min-width: 180px; }
.ki-demo-kopf span { padding: 3px 10px; border-radius: 999px; background: #d9822b; color: #fff; font-size: 12px; font-weight: 700; }
.ki-demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ki-demo-chips span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; }
.ki-demo p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; }
.ki-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.ki-bild { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--paper); box-shadow: var(--shadow-sm); }
.ki-bild img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.ki-bild:hover img { transform: scale(1.04); }
.ki-bild span { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px; background: rgba(14, 33, 53, .82); color: #fff; font-size: 12px; font-weight: 600; }
.ki-punkte { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.ki-punkte li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.ki-punkte svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }
.ki-hinweis { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--paper); color: var(--muted); font-size: 15px; }
.ki-hinweis svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--blue-strong); }
@media (max-width: 900px) { .ki-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ki-card { padding: 24px 20px; } .ki-bilder { grid-template-columns: 1fr; } }

/* ---------- Zielgruppen ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audience { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: background .25s, border-color .25s; }
.audience:hover { background: rgba(255, 255, 255, .07); border-color: rgba(101, 173, 239, .4); transform: translateY(-3px); }
.audience { transition: background .25s, border-color .25s, transform .25s; overflow: hidden; }
.audience::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(101, 173, 239, .18), transparent 65%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.audience:hover::after { opacity: 1; }
.section--navy { overflow: hidden; }
.section--navy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 100% 0%, rgba(101, 173, 239, .14), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(101, 173, 239, .08), transparent 60%); pointer-events: none; }
.section--navy::after { content: ""; position: absolute; inset: 0; 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }
.section--navy .container { position: relative; z-index: 1; }
.audience .ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(101, 173, 239, .14); color: var(--blue); display: grid; place-items: center; }
.audience .ico svg { width: 32px; height: 32px; }
.audience h3 { font-size: 22px; margin-bottom: 8px; }
.audience p { margin: 0 0 12px; color: #a9bbd0; }
.audience ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.audience li { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #d3dfec; }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; } .audience { grid-template-columns: 1fr; } }

/* ---------- Fallbeispiel ---------- */
.case { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.alarm {
  font-family: var(--font-mono); background: var(--navy); color: #d9e6f3; border-radius: 16px; padding: 22px 24px;
  box-shadow: var(--shadow); margin-bottom: 30px; position: relative; overflow: hidden; font-size: 14.5px; line-height: 1.7;
}
.alarm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.alarm-top b { color: var(--white); letter-spacing: .06em; }
.alarm .blink { display: inline-flex; align-items: center; gap: 8px; color: #ff8a8d; font-weight: 700; }
.alarm .blink::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 72, 77, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.alarm dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; }
.alarm dt { color: #7f95ae; }
.alarm dd { margin: 0; }

.findings { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.findings li > span:last-child { transition: filter .5s ease, opacity .5s ease; }
.case.is-closed .findings li > span:last-child { filter: blur(6px); opacity: .55; user-select: none; }
.case.is-closed .pin { transform: scale(0); }
.pin { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.case:not(.is-closed) .pin { animation: pinPulse 2.2s ease-out infinite; }
@keyframes pinPulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5), 0 8px 18px -6px rgba(0, 0, 0, .4); } 70% { box-shadow: 0 0 0 16px rgba(229, 72, 77, 0), 0 8px 18px -6px rgba(0, 0, 0, .4); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0), 0 8px 18px -6px rgba(0, 0, 0, .4); } }
.reveal-btn { margin-top: 22px; }
.case:not(.is-closed) .reveal-btn { display: none; }
.findings li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.findings .n { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.findings b { color: var(--ink); }

.case-visual { position: relative; aspect-ratio: 1 / .95; }
.case-visual .paper { position: absolute; background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-paper); }
.case-visual .paper img { width: 100%; height: auto; }
.case-visual::before { content: ""; position: absolute; inset: 8% 4% 0 8%; background: radial-gradient(closest-side, rgba(101, 173, 239, .3), transparent); filter: blur(24px); }
.case-visual .c1 { width: 60%; left: 0; top: 0; transform: rotate(-4deg); }
.case-visual .c2 { width: 82%; right: 0; bottom: 4%; transform: rotate(2.5deg); }
.case-visual .pin { position: absolute; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; box-shadow: 0 0 0 6px rgba(229, 72, 77, .22), 0 8px 18px -6px rgba(0, 0, 0, .4); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-visual { max-width: 560px; margin: 0 auto; width: 100%; } }

/* ---------- Hinweis / Vertrauen ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.trust-item .ico { width: 44px; height: 44px; border-radius: 12px; background: #e8f7f0; color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item h3 { font-size: 19px; }
.trust-item p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

.notice { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 24px; border-radius: 16px; background: #fff8e8; border: 1px solid #f6e0a8; color: #5b4a1f; font-size: 15.5px; margin-top: 28px; }
.notice .ico { width: 52px; height: 52px; border-radius: 14px; background: #fdeec6; color: #a3740e; display: grid; place-items: center; }
.notice .ico svg { width: 26px; height: 26px; }
.notice b { color: #3f3313; }
.notice p { margin: 0; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .faq { max-width: none; margin: 0; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.ask-card { margin-top: 28px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); padding: 22px 24px; }
.ask-card b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.ask-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.ask-card .btn { min-height: 46px; font-size: 15.5px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-side { position: static; } }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #cfd9e5; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 600; font-size: 18.5px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6fc4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA-Band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: var(--navy); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; color: #b3c4d8; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(101, 173, 239, .35), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 44px); }
.cta-band p { margin: 0; font-size: 18px; }
.cta-band .btn-row { justify-content: flex-start; margin-top: 28px; }
.cta-band { grid-template-columns: 1.2fr 1fr; min-height: 340px; }
.cta-docs { position: relative; align-self: stretch; min-height: 260px; }
.cta-docs .paper { position: absolute; width: 46%; background: var(--white); border-radius: 3px; overflow: hidden; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .6); }
.cta-docs .paper img { width: 100%; }
.cta-docs .paper:nth-child(1) { left: 6%; top: 10%; transform: rotate(-9deg); }
.cta-docs .paper:nth-child(2) { left: 30%; top: 0; transform: rotate(2deg); z-index: 2; }
.cta-docs .paper:nth-child(3) { left: 52%; top: 14%; transform: rotate(10deg); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-docs { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a1828; color: #8fa3ba; padding: 72px 0 32px; font-size: 15.5px; margin-top: clamp(72px, 10vw, 120px); }
.site-footer.no-gap { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-grid h4 { color: var(--white); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #b7c6d7; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-about p { margin: 16px 0 0; max-width: 340px; }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #6f849c; }
.footer-bottom a { color: #8fa3ba; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Unterseiten-Hero ---------- */
.page-hero {
  position: relative; overflow: hidden; background: radial-gradient(900px 500px at 80% 0%, rgba(101, 173, 239, .22), transparent 60%), var(--navy);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 88px); color: #b3c4d8;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5.2vw, 64px); font-weight: 700; letter-spacing: -.025em; max-width: 880px; }
.page-hero .lead { color: #b3c4d8; }
.page-hero--small h1 { font-size: clamp(34px, 4.4vw, 52px); }

/* ---------- Preisrechner ---------- */
.pricing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; margin-top: calc(-1 * clamp(40px, 5vw, 64px)); position: relative; z-index: 2; }
.calc, .quote { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.calc { padding: clamp(24px, 4vw, 44px); }
.calc h2 { font-size: 26px; margin-bottom: 6px; }
.calc > p { color: var(--muted); margin-bottom: 30px; }

.field { margin-bottom: 34px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.field-head label { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.field-help { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }
.num-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.num-input:focus-within { border-color: var(--blue); }
.num-input input { width: 76px; border: 0; padding: 8px 6px; text-align: center; font: 600 18px var(--font-display); color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.num-input input::-webkit-outer-spin-button, .num-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-input input:focus { outline: none; }
.num-input button { width: 38px; height: 40px; border: 0; background: var(--paper); color: var(--navy); font-size: 20px; cursor: pointer; }
.num-input button:hover { background: var(--blue-soft); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; --p: 20%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--p), #e6ecf3 var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: #e6ecf3; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); box-shadow: 0 4px 10px rgba(14, 33, 53, .25); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); box-shadow: 0 4px 10px rgba(14, 33, 53, .25); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.range-scale { display: flex; justify-content: space-between; font-size: 13px; color: #8a99ac; margin-top: 2px; }

.size-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.size-presets button { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.size-presets button:hover { border-color: var(--blue); }
.size-presets button.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.billing { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px; gap: 4px; }
.billing button { border: 0; background: transparent; border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.billing button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.billing .save { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--green); background: #e3f5ec; padding: 2px 8px; border-radius: 99px; }

.quote { position: sticky; top: calc(var(--header-h) + 20px); overflow: hidden; }
.quote-top { background: var(--navy); color: #b3c4d8; padding: 30px 32px 28px; position: relative; overflow: hidden; }
.quote-top::after { content: ""; position: absolute; right: -80px; top: -100px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(101, 173, 239, .35), transparent 65%); }
.quote-top > * { position: relative; z-index: 1; }
.plan-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; color: var(--white); }
.price b { font-family: var(--font-display); font-size: clamp(52px, 6vw, 68px); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-size: 17px; }
.price-sub { font-size: 14.5px; margin: 0; }
.price-sub strong { color: var(--white); font-weight: 600; }
.quote-body { padding: 26px 32px 32px; }
.breakdown { list-style: none; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px dashed var(--line); display: grid; gap: 8px; font-size: 15px; }
.breakdown li { display: flex; justify-content: space-between; gap: 16px; }
.breakdown li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; white-space: nowrap; }
.breakdown li.minus span:last-child { color: var(--green); }
.included { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.included li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.included svg { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.addons { margin: -6px 0 24px; padding: 16px 18px; border-radius: 14px; background: var(--blue-soft); }
.addons > b { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.addons > b span { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--blue-strong); }
.addons ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.addons li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.addons li b { display: block; color: var(--ink); font-size: 15px; }
.addons svg { width: 20px; height: 20px; color: var(--blue-strong); margin-top: 2px; }
.addons a { font-size: 14px; font-weight: 600; color: var(--blue-strong); }
.quote-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.big-school { display: none; background: var(--blue-soft); color: var(--navy); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 18px; }
.big-school.is-visible { display: block; }
@media (max-width: 980px) { .pricing { grid-template-columns: minmax(0, 1fr); } .quote { position: static; } }
.pricing > *, .split > *, .form-wrap > *, .case > *, .showcase > *, .hero .container > * { min-width: 0; }
@media (max-width: 520px) {
  .field-head { flex-wrap: wrap; }
  .billing { display: grid; width: 100%; }
  .billing button { padding: 10px 8px; }
  .billing .save { display: block; margin: 2px auto 0; width: max-content; }
  .quote-top, .quote-body { padding-left: 22px; padding-right: 22px; }
}

.compare-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--font-display); font-size: 16px; color: var(--ink); background: var(--paper); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td b { color: var(--ink); }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 34px; }
.type-card { position: relative; display: grid; gap: 10px; align-content: start; text-align: left; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.type-card:hover { border-color: #b9cfe6; transform: translateY(-2px); }
.type-card .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--paper); color: var(--navy); display: grid; place-items: center; transition: background .2s, color .2s; }
.type-card .ico svg { width: 22px; height: 22px; }
.type-card b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.25; }
.type-card[aria-checked="true"] { border-color: var(--navy); background: #f7fafd; box-shadow: 0 0 0 3px rgba(101, 173, 239, .25); }
.type-card[aria-checked="true"] .ico { background: var(--navy); color: var(--blue); }
.type-card[aria-checked="true"]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365adef' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 640px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .type-card { padding: 14px; } .type-card b { font-size: 14.5px; } }
.type-card { min-width: 0; }
.type-card b { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.step-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.step-label i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--navy); letter-spacing: 0; }
.amount { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 6px; }
.amount output { font-family: var(--font-display); font-weight: 700; font-size: 46px; color: var(--navy); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount span { color: var(--muted); font-weight: 500; }
.billing .save { color: var(--white); background: var(--green); }

/* Mobile Preisleiste */
.price-bar { display: none; }
@media (max-width: 980px) {
  .price-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--navy); color: #b3c4d8; border-radius: 18px; padding: 10px 10px 10px 18px;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5);
    transform: translateY(140%); transition: transform .3s ease;
  }
  .price-bar.is-visible { transform: none; }
  .price-bar b { display: block; color: var(--white); font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
  .price-bar small { font-size: 12.5px; }
  .price-bar .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
}

/* ---------- Formular ---------- */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 7px; }
.form-field label .opt { font-weight: 400; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(101, 173, 239, .2); }
.form-field input:user-invalid, .form-field select:user-invalid { border-color: var(--red); }
.config-box { background: var(--paper); border: 1px dashed #c9d5e2; border-radius: 14px; padding: 16px 18px; font-size: 15px; }
.config-box b { color: var(--ink); }
.config-box a { font-size: 14px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14.5px; color: var(--muted); align-items: start; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 18px; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.form-status.is-ok { display: block; background: #e3f5ec; color: #1e5e43; }
.form-status.is-err { display: block; background: var(--red-soft); color: #8a2125; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .ico { width: 72px; height: 72px; border-radius: 50%; background: #e3f5ec; color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .ico svg { width: 36px; height: 36px; }

.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-points .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-strong); display: grid; place-items: center; }
.contact-points .ico svg { width: 22px; height: 22px; }
.contact-points b { display: block; color: var(--ink); }
.contact-points span { font-size: 15px; color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 28px; margin-top: 2.2em; padding-top: .2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 20px; margin-top: 1.8em; }
.legal p, .legal li { color: var(--text); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal address { font-style: normal; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 0 1.2em; line-height: 1.7; }
.legal .toc { background: var(--paper); border-radius: 16px; padding: 22px 26px; margin-bottom: 40px; border: 1px solid var(--line); }
.legal .toc h2 { font-size: 18px; margin: 0 0 10px; }
.legal .toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.legal .stand { color: var(--muted); font-size: 15px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 18, 30, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: var(--white); }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.lightbox-close svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .lightbox-close { top: 8px; right: 8px; } }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ecg-line path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  .page-hero { padding-top: 24px; background: none; }
  .page-hero h1 { color: var(--ink); }
}

/* ---------- Dokumente: Bildgenerator und Blutgasanalyse (Coming soon) ---------- */
.doc-tab.is-bald { grid-template-columns: 44px 1fr auto; }
.doc-tab.is-bald .ico, .doc-tab.is-bald b, .doc-tab.is-bald small { opacity: .55; }
.bald-marke { align-self: start; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #eef1f5; color: var(--muted); white-space: nowrap; }
.doc-caption a { color: var(--blue-strong); font-weight: 600; }
.bga-vorschau { position: relative; margin: 0; display: grid; place-items: center; }
.bga-bon { width: min(300px, 80vw); padding: 26px 24px 34px; background: #fbfbf7; box-shadow: var(--shadow-paper); font: 500 14px/1.6 var(--font-mono); color: #2b2b2b; filter: blur(3.5px) grayscale(1); opacity: .75; user-select: none; }
.bga-bon > b { display: block; text-align: center; letter-spacing: .12em; }
.bga-bon > span { display: block; text-align: center; font-size: 12.5px; margin-bottom: 14px; }
.bga-bon dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin: 0; border-top: 1px dashed #999; padding-top: 12px; }
.bga-bon dt, .bga-bon dd { margin: 0; }
.bga-bald { position: absolute; padding: 10px 22px; border-radius: 999px; background: var(--navy); color: var(--white); font: 700 15px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow); }

/* ---------- Für Ihren Betrieb: Anpassung und PaperSIM Pad ---------- */
.extra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.extra-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.extra-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-strong); display: grid; place-items: center; }
.extra-card .ico svg { width: 24px; height: 24px; }
.extra-card h3 { font-size: 23px; margin-bottom: 10px; }
.extra-card > p { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.extra-card .ki-punkte { margin: 0 0 24px; }
.extra-knopf { align-self: flex-start; margin-top: auto; }
.extra-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-strong); text-decoration: none; }
.extra-link svg { width: 18px; height: 18px; }
.ki-tag--bald { background: #eef1f5; color: var(--muted); }
.pad-geraet { align-self: center; width: min(260px, 70%); aspect-ratio: 3 / 4; margin: 0 0 24px; padding: 14px 14px 26px; border-radius: 22px; background: linear-gradient(160deg, #3a3f46, #23272c); box-shadow: var(--shadow); }
.pad-bildschirm { width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: #ecebe4; }
.pad-bildschirm img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.15) brightness(.96); mix-blend-mode: multiply; }
@media (max-width: 900px) { .extra-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .extra-card { padding: 24px 20px; } }

/* Anfrageformular: weiteres Interesse */
.interesse { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.interesse legend { padding: 0; margin-bottom: 4px; font-weight: 600; font-size: 15px; color: var(--ink); }
.interesse label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.interesse input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }

/* ---------- Handy: kompaktere Karten und Tabelle als Liste ---------- */
@media (max-width: 600px) {
  /* kleine Funktionskarten: Symbol links, Text rechts, spart viel Höhe */
  .features .feature:not(.feature--big):not(.feature--wide) { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 18px; }
  .features .feature:not(.feature--big):not(.feature--wide) .ico { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .features .feature:not(.feature--big):not(.feature--wide) h3 { margin: 2px 0 2px; font-size: 17px; }
  .features .feature:not(.feature--big):not(.feature--wide) p { font-size: 15px; }
  /* Beispielrechnungen: jede Zeile als Karte, Spaltennamen davor */
  .compare-table-wrap { overflow: visible; border: 0; background: transparent; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; }
  .compare-table tr { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
  .compare-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .compare-table td:first-child { padding-bottom: 8px; font-size: 16.5px; text-align: left; }
  .compare-table td:nth-child(2)::before { content: "Umfang"; }
  .compare-table td:nth-child(3)::before { content: "monatlich"; }
  .compare-table td:nth-child(4)::before { content: "bei Jahreszahlung"; }
  .compare-table td:nth-child(5)::before { content: "Ersparnis pro Jahr"; }
  .compare-table td:not(:first-child)::before { color: var(--muted); text-align: left; font-variant-numeric: normal; }
}
@media (max-width: 380px) {
  .type-card { padding: 12px; }
  .type-card b { font-size: 14px; }
}
