/* =====================================================================
   T2Sign – t2sign.de
   Schriften lokal (SIL Open Font License), keine externen Ressourcen.
   ===================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marke: Tinte der T2Sign-App, Akzent wie Halama-IT */
  --indigo-950: #0a0f3a;
  --indigo-900: #111862;
  --indigo-800: #1a237e;
  --indigo-700: #283593;
  --indigo-600: #3949ab;
  --indigo-500: #3f51b5;
  --indigo-200: #c5cae9;
  --indigo-100: #e8eaf6;
  --indigo-50: #f3f4fb;
  --cyan-600: #0097a7;
  --cyan-500: #00bcd4;
  --cyan-300: #7fe6f2;
  --green-600: #128a5c;
  --green-500: #16a36d;
  --green-50: #e7f7ef;

  --ink: #0e1236;
  --text: #2b3049;
  --muted: #5c6280;
  --line: #e2e5f1;
  --line-soft: #edf0f7;
  --surface: #ffffff;
  --surface-2: #f6f7fc;

  --grad-brand: linear-gradient(135deg, #283593 0%, #1a237e 45%, #0b7fa6 100%);
  --grad-text: linear-gradient(100deg, #1a237e 0%, #3949ab 45%, #0097a7 100%);
  --grad-dark: radial-gradient(1200px 600px at 85% -10%, rgba(0, 188, 212, .22), transparent 60%),
               radial-gradient(900px 500px at -10% 110%, rgba(63, 81, 181, .35), transparent 60%),
               linear-gradient(160deg, #0a0f3a 0%, #111862 55%, #0b2a52 100%);

  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-sm: .9375rem;
  --fs-base: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .4vw, 1.3125rem);
  --fs-h4: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.8rem, 1.45rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 18, 54, .06), 0 4px 12px -4px rgba(14, 18, 54, .08);
  --shadow: 0 2px 4px rgba(14, 18, 54, .04), 0 18px 40px -18px rgba(26, 35, 126, .28);
  --shadow-lg: 0 40px 80px -30px rgba(26, 35, 126, .45), 0 20px 40px -24px rgba(14, 18, 54, .35);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--indigo-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-500); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--indigo-100); color: var(--indigo-900); }
:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--indigo-800); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--soft { background: var(--surface-2); }
.section--dark { background: var(--grad-dark); color: #d7dbf5; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { font-size: var(--fs-lead); color: var(--muted); margin: 0; }
.section--dark .section-head p { color: #b9bfe6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo-600); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-text); }
.section--dark .eyebrow { color: var(--cyan-300); }
.section--dark .eyebrow::before { background: var(--cyan-300); }

.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Schaltflächen ---------- */
.btn {
  --btn-bg: var(--indigo-800);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-size: .98rem; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 35, 126, .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(26, 35, 126, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--indigo-800); border-color: var(--indigo-200); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: var(--indigo-900); border-color: var(--indigo-500); background: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--indigo-800); }
.btn--light:hover { color: var(--indigo-900); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(14, 18, 54, .35); background: rgba(255, 255, 255, .9); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 10px rgba(26, 35, 126, .3)); }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.42rem; letter-spacing: -.035em; line-height: 1; }
.brand__name span { color: var(--cyan-600); }
.brand__by { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-size: .9rem; font-weight: 600; color: var(--text); text-decoration: none;
  padding: 10px 12px; border-radius: 10px; transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--indigo-800); background: var(--indigo-50); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(14, 18, 54, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 92% 18%, rgba(0, 188, 212, .16), transparent 65%),
    radial-gradient(760px 520px at 70% 90%, rgba(63, 81, 181, .16), transparent 65%),
    radial-gradient(600px 400px at 0% 0%, rgba(197, 202, 233, .55), transparent 70%),
    linear-gradient(180deg, #f7f8fd 0%, #ffffff 100%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(26, 35, 126, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 35, 126, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 600; color: var(--indigo-800); margin-bottom: 24px;
}
.hero__badge b { font-family: var(--font-head); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad-brand); padding: 4px 9px; border-radius: 999px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .text-grad { display: inline-block; padding-bottom: .06em; }
.hero__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.hero__checks svg { width: 20px; height: 20px; color: var(--green-500); flex: none; }

/* Tablet-Abbildung */
.device-stage { position: relative; perspective: 1800px; padding: 28px 8px 36px; }
.device {
  position: relative; border-radius: 34px; padding: 16px;
  background: linear-gradient(145deg, #2a2f4a, #11142a 60%, #1c2040);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transform: rotateY(-9deg) rotateX(5deg) rotateZ(.5deg); transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.device-stage:hover .device { transform: rotateY(-4deg) rotateX(2deg); }
.device::before { content: ''; position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3f5c; }
.device__screen { border-radius: 20px; overflow: hidden; background: #fff; display: flex; flex-direction: column; font-family: var(--font-body); }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #fafbff; border-bottom: 1px solid var(--line); }
.app-bar strong { font-size: .86rem; color: var(--ink); display: block; line-height: 1.2; }
.app-bar small { font-size: .66rem; color: var(--muted); }
.app-bar .zoom { font-family: var(--font-head); font-size: .72rem; font-weight: 700; color: var(--indigo-800); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; background: #fff; }
.doc { flex: 1; padding: 14px 22px 12px; display: flex; flex-direction: column; gap: 7px; background: linear-gradient(180deg, #fff, #fbfcff); min-height: 0; }
.doc__practice { font-size: .62rem; color: var(--muted); letter-spacing: .02em; }
.doc__title { font-family: var(--font-head); font-size: .98rem; font-weight: 800; color: var(--ink); margin: 0 0 2px; letter-spacing: -.01em; }
.doc__row { display: grid; grid-template-columns: 92px 1fr; align-items: end; gap: 10px; font-size: .7rem; }
.doc__row span { color: var(--muted); }
.doc__row b { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.doc__row--input b { border: 1.5px solid var(--indigo-500); border-radius: 5px; padding: 2px 6px; background: var(--indigo-50); color: var(--indigo-800); }
.doc__row--input b.is-typing::after { content: ''; display: inline-block; width: 1px; height: .9em; margin-left: 1px; vertical-align: -1px; background: var(--indigo-800); animation: caret 1s steps(1) infinite; }
.doc__check { display: flex; align-items: center; gap: 7px; font-size: .64rem; color: var(--text); margin-top: 2px; }
.doc__check i { width: 12px; height: 12px; border-radius: 3px; background: var(--indigo-800); position: relative; flex: none; }
.doc__check i::after { content: ''; position: absolute; left: 3.5px; top: 1.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.doc__sign { margin-top: 10px; padding-bottom: 14px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.sign-box { position: relative; height: 62px; border-bottom: 1.5px solid var(--ink); }
.sign-box svg { position: absolute; left: 4px; bottom: 4px; width: 190px; height: 58px; overflow: visible; }
.sign-box small { position: absolute; left: 0; top: calc(100% + 3px); font-size: .58rem; color: var(--muted); }
/* Ohne JavaScript steht die Unterschrift einfach da; mit JavaScript schreibt sie sich nach dem Ausfüllen */
.signature path { fill: none; stroke: var(--indigo-800); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .signature path { stroke-dashoffset: 1; }
.js .is-signing .signature path { animation: draw .6s cubic-bezier(.55, .1, .35, 1) forwards; }
.js .is-signing .signature path:nth-child(2) { animation-delay: .65s; animation-duration: .1s; }
.js .is-signing .signature path:nth-child(3) { animation-delay: .8s; animation-duration: 1.2s; }
.js .is-signing .signature path:nth-child(4) { animation-delay: 2.05s; animation-duration: .45s; }
.js .float-card--sealed { opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.js .is-sealed .float-card--sealed { opacity: 1; transform: none; }
.doc__btn { font-family: var(--font-head); font-size: .66rem; font-weight: 700; color: #fff; background: var(--indigo-800); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow);
  font-size: .86rem; line-height: 1.3; color: var(--ink);
}
.float-card strong { display: block; font-family: var(--font-head); font-size: .84rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-card__icon svg { width: 20px; height: 20px; }
.float-card--tablet { top: -22px; left: 28px; animation: float 7s ease-in-out infinite; }
.float-card--tablet .float-card__icon { background: var(--indigo-50); color: var(--indigo-800); }
.float-card--sealed { bottom: 6px; right: -10px; }
.float-card--sealed > * { animation: float 7s ease-in-out -3.5s infinite; }
.float-card--sealed .float-card__icon { background: var(--green-50); color: var(--green-600); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(22, 163, 109, .18); margin-right: 6px; vertical-align: 1px; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__checks { justify-content: center; }
  .hero__badge { margin-inline: auto; }
  .device-stage { max-width: 620px; width: 100%; margin: 8px auto 0; }
}
@media (max-width: 560px) {
  .device { padding: 10px; border-radius: 24px; transform: none; }
  .device-stage:hover .device { transform: none; }
  .device__screen { border-radius: 14px; }
  .doc { padding: 10px 14px; gap: 5px; }
  .doc__row { grid-template-columns: 74px 1fr; font-size: .62rem; }
  .doc__practice, .doc__check { display: none; }
  .sign-box { height: 46px; }
  .sign-box svg { width: 140px; height: 44px; }
  .float-card { padding: 9px 12px; font-size: .78rem; }
  .float-card small { display: none; }
  .float-card__icon { width: 30px; height: 30px; }
  .float-card--tablet { left: 10px; top: -12px; }
  .float-card--sealed { right: -4px; bottom: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Leiste mit Kernaussagen ---------- */
.proof { border-block: 1px solid var(--line); background: #fff; }
.proof .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.proof__item + .proof__item { border-left: 1px solid var(--line); }
.proof__item svg { width: 28px; height: 28px; color: var(--indigo-600); flex: none; }
.proof__item strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); line-height: 1.25; }
.proof__item span { font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) {
  .proof .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__item:nth-child(3) { border-left: 0; }
  .proof__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .proof .container { grid-template-columns: 1fr; }
  .proof__item { padding: 18px 4px; }
  .proof__item + .proof__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Karten: Vorteile ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--indigo-100); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.icon-tile {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad-brand); color: #fff; box-shadow: 0 12px 22px -12px rgba(26, 35, 126, .7);
}
.icon-tile svg { width: 26px; height: 26px; }
.before-after { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.before-after span { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.before-after span.is-new { background: var(--green-50); color: var(--green-600); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }

/* ---------- Ablauf ---------- */
.steps { display: grid; gap: clamp(56px, 7vw, 96px); counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.step:nth-child(even) .step__media { order: -1; }
.step__num {
  counter-increment: step; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--indigo-800); background: var(--indigo-100);
}
.step__num::before { content: counter(step); }
.step h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.step p { color: var(--muted); font-size: 1.06rem; }
.step__list { display: grid; gap: 10px; margin-top: 18px; }
.step__list li { display: flex; gap: 10px; align-items: flex-start; }
.step__list svg { width: 20px; height: 20px; color: var(--green-500); flex: none; margin-top: 3px; }
.step__media { position: relative; }
.step__media::before {
  content: ''; position: absolute; inset: 8% -4% -6% 8%; border-radius: 32px; z-index: -1;
  background: linear-gradient(135deg, rgba(57, 73, 171, .18), rgba(0, 188, 212, .16));
  filter: blur(2px);
}
.shot { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.shot img { width: 100%; }
.shot--window { border-radius: 14px; max-width: 500px; margin-inline: auto; }
/* Formular groß, Unterschrift darüber versetzt */
.shot--pair { position: relative; padding-bottom: 16%; }
.shot--pair .shot:first-child { width: 88%; }
.shot--pair .shot:last-child { position: absolute; right: 0; bottom: 0; width: 56%; border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.shot__caption { margin-top: 14px; font-size: .86rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__media { order: 0; }
}

/* ---------- Video ---------- */
.video-wrap { max-width: 980px; margin: 0 auto; }
.video-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #0a0f3a;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #0a0f3a; }
.video-play { display: none; }
.js .video-play {
  /* Knopf unter dem Titel des Vorschaubilds, nicht darauf */
  position: absolute; inset: 0; display: grid; place-items: end center; border: 0; padding: 0 0 7.5%; cursor: pointer;
  background: linear-gradient(180deg, rgba(10, 15, 58, 0) 40%, rgba(10, 15, 58, .55) 100%);
  color: #fff; font: inherit;
}
.video-play__btn {
  width: clamp(72px, 10vw, 104px); height: clamp(72px, 10vw, 104px); border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: 0 0 0 10px rgba(255, 255, 255, .16), 0 20px 40px -10px rgba(0, 0, 0, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-play__btn svg { width: 38%; height: 38%; margin-left: 6%; }
.video-play:hover .video-play__btn { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 255, 255, .14), 0 20px 40px -10px rgba(0, 0, 0, .5); }
.video-play__label { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 10px; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.video-play__label span { font-family: var(--font-body); font-weight: 600; font-size: .82rem; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.video-frame.is-playing .video-play { display: none; }
.video-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 28px; color: #b9bfe6; font-size: .95rem; }
.video-notes li { display: inline-flex; align-items: center; gap: 8px; }
.video-notes svg { width: 18px; height: 18px; color: var(--cyan-300); }

.transcript { max-width: 760px; margin: 28px auto 0; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.transcript summary { list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 20px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: #fff; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: ''; width: 8px; height: 8px; border: solid var(--cyan-300); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.transcript[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.transcript > div { padding: 0 24px 20px; color: #c3c8ee; font-size: .98rem; }
.transcript > div p:last-child { margin-bottom: 0; }

/* ---------- Funktionen ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--indigo-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--indigo-50); color: var(--indigo-700); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 4px; font-size: 1.04rem; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.feature__new { display: inline-block; margin-left: 6px; font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-600); background: var(--green-50); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ---------- Sicherheit ---------- */
.security { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.security__intro p { color: #c3c8ee; font-size: var(--fs-lead); }
.seal {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; padding: 16px 22px 16px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.seal__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #16a36d, #0b7f5a); color: #fff; box-shadow: 0 10px 20px -10px rgba(22, 163, 109, .8); }
.seal__icon svg { width: 28px; height: 28px; }
.seal strong { display: block; color: #fff; font-family: var(--font-head); }
.seal span { font-size: .9rem; color: #b9bfe6; }
.security__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sec-item { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .25s ease, border-color .25s ease; }
.sec-item:hover { background: rgba(255, 255, 255, .08); border-color: rgba(127, 230, 242, .35); }
.sec-item svg { width: 26px; height: 26px; color: var(--cyan-300); margin-bottom: 14px; }
.sec-item h3 { margin-bottom: 6px; font-size: var(--fs-h4); letter-spacing: -.01em; }
.sec-item p { margin: 0; color: #b9bfe6; font-size: .97rem; line-height: 1.5; }
@media (max-width: 960px) { .security { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .security__grid { grid-template-columns: 1fr; } }

/* ---------- Einsatzbereiche ---------- */
.usecases { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 960px; margin: 0 auto; }
.usecases li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink);
}
.usecases svg { width: 20px; height: 20px; color: var(--indigo-600); }
.usecases li.is-own { background: var(--indigo-800); color: #fff; border-color: var(--indigo-800); }
.usecases li.is-own svg { color: var(--cyan-300); }
@media (max-width: 560px) { .usecases li { border-radius: 14px; padding: 10px 16px; font-size: .97rem; } }

/* ---------- Einführung ---------- */
.rollout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.panel { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel h3 svg { width: 28px; height: 28px; color: var(--indigo-600); }
.req { display: grid; gap: 16px; }
.req li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.req__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-700); }
.req__icon svg { width: 20px; height: 20px; }
.req strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .98rem; }
.req span { color: var(--muted); font-size: .96rem; }
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--indigo-200), var(--cyan-300)); }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.timeline b { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--indigo-500); color: var(--indigo-800); font-family: var(--font-head); font-size: .95rem; }
.timeline strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .98rem; margin-top: 8px; }
.timeline span { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .rollout { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--indigo-200); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo-50) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a237e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact__card { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--grad-dark); color: #c9cef2; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.contact__card h3 { color: #fff; margin-bottom: 8px; }
.contact__card > p { color: #b9bfe6; }
.contact__company { margin: 26px 0 22px; padding: 18px 0; border-block: 1px solid rgba(255, 255, 255, .12); }
.contact__company strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.contact__company span { font-size: .95rem; }
.contact__list { display: grid; gap: 14px; }
.contact__list a, .contact__list div { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--cyan-300); }
.contact__list i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--cyan-300); flex: none; }
.contact__list svg { width: 20px; height: 20px; }
.contact__list small { display: block; font-weight: 400; color: #a9b0de; font-size: .85rem; }
.contact__card .btn { margin-top: 28px; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form h3 { margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .84rem; font-weight: 600; color: var(--ink); }
.field label em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background: var(--surface-2) no-repeat right 14px center / 16px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--indigo-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo-500); background-color: #fff; box-shadow: 0 0 0 4px rgba(63, 81, 181, .14); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 4px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--indigo-800); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.form__hint { font-size: .85rem; color: var(--muted); }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status.is-ok { display: block; background: var(--green-50); color: var(--green-600); }
.form-status.is-error { display: block; background: #fdecec; color: #b42323; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form__actions .btn { width: 100%; } }

/* ---------- Abschluss-Band ---------- */
.cta-band { padding-block: clamp(56px, 7vw, 88px); background: var(--grad-brand); color: #e3e6fb; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(127, 230, 242, .35), transparent 65%); }
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); }
.cta-band p { margin: 0; font-size: var(--fs-lead); }
.cta-band .container > div:first-child { flex: 1 1 440px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--indigo-950); color: #a9b0de; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .brand { color: #fff; }
.site-footer .brand__by { color: #a9b0de; }
.site-footer p { margin: 18px 0 0; max-width: 320px; }
.site-footer .footer__title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; max-width: none; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #c9cef2; text-decoration: none; }
.site-footer a:hover { color: var(--cyan-300); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: .85rem; color: #8f96c6; }
.site-footer--slim { padding: 4px 0 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, #f3f4fb, #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: var(--fs-lead); margin: 0; }
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); margin-top: 2.2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.12rem; margin-top: 1.6em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .35em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .note { padding: 18px 20px; border-radius: var(--radius); background: var(--indigo-50); border: 1px solid var(--indigo-100); }
.legal .note ul { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.back-link svg { width: 18px; height: 18px; }

/* ---------- Fehlerseite ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; margin-bottom: 12px; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .signature path { stroke-dashoffset: 0; }
  .device { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav, .video-frame, .form, .cta-band, .site-footer { display: none !important; }
  body { color: #000; }
}
