/* ==========================================================================
   mein-it-spezialist.de - Stefan Raabe
   Design System & Stylesheet
   Reines CSS, keine externen Abhaengigkeiten (DSGVO-freundlich)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farbe - Light (Standard) */
  --bg:            #ffffff;
  --bg-subtle:     #f5f8fc;
  --bg-sunken:     #eef3f9;
  --surface:       #ffffff;
  --surface-2:     #f8fafd;
  --ink:           #0a1728;
  --ink-2:         #3c4d64;
  --ink-3:         #6a7b92;
  --line:          #e1e8f2;
  --line-strong:   #cdd8e8;

  --brand:         #1d5fd6;
  --brand-ink:     #14459b;
  --brand-soft:    #e8f0fe;
  --accent:        #6d4aff;
  --accent-soft:   #efeaff;

  --shadow-sm: 0 1px 2px rgba(10,23,40,.06), 0 1px 3px rgba(10,23,40,.05);
  --shadow-md: 0 4px 12px rgba(10,23,40,.07), 0 12px 28px rgba(10,23,40,.06);
  --shadow-lg: 0 12px 24px rgba(10,23,40,.09), 0 32px 64px rgba(10,23,40,.10);

  /* Dunkle Baender (Hero, CTA, Footer) - konstant in beiden Themes */
  --night:         #08101f;
  --night-2:       #0d1830;
  --night-ink:     #eaf1fb;
  --night-ink-2:   #a3b6d1;
  --night-ink-3:   #7488a6;
  --night-line:    rgba(255,255,255,.10);
  --night-surface: rgba(255,255,255,.045);

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: clamp(.82rem, .79rem + .12vw, .88rem);
  --step-0:  clamp(1rem, .96rem + .18vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.08rem + .34vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.25rem + .7vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.6rem + 2.7vw, 3.9rem);

  /* Raum & Form */
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(4rem, 9vw, 7.5rem);
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22,.75,.25,1);
  --header-h: 74px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:          #080f1c;
  --bg-subtle:   #0c1524;
  --bg-sunken:   #060c17;
  --surface:     #0f1a2c;
  --surface-2:   #131f34;
  --ink:         #e9f0fa;
  --ink-2:       #a9bbd4;
  --ink-3:       #7a8da8;
  --line:        rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);

  --brand:       #5b90f5;
  --brand-ink:   #8fb4fb;
  --brand-soft:  rgba(91,144,245,.14);
  --accent:      #9b82ff;
  --accent-soft: rgba(155,130,255,.14);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.55);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.021em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -.033em; }
h2 { font-size: var(--step-3); letter-spacing: -.028em; }
h3 { font-size: var(--step-1); letter-spacing: -.015em; }
h4 { font-size: var(--step-0); letter-spacing: -.01em; }
p  { text-wrap: pretty; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-ink); }

ul, ol { padding-left: 1.25em; }
li { margin-block: .3em; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--brand); color: #fff;
  padding: .75rem 1.4rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--subtle { background: var(--bg-subtle); }
.section--sunken { background: var(--bg-sunken); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

/* Section-Kopf */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.sec-head { max-width: 64ch; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head p { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-2); line-height: 1.6; }

.lead { font-size: var(--step-1); line-height: 1.65; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .97rem; letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .22s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,95,214,.28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(29,95,214,.38); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }

.btn--on-night {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.btn--on-night:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); color: #fff; }

.btn--lg { padding: 1.02rem 2rem; font-size: 1.03rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.txt-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--brand); }
.txt-link svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.txt-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; }

.site-header[data-mode="over-hero"] { background: transparent; }
.site-header[data-mode="over-hero"] .brand-name { color: #fff; }
.site-header[data-mode="over-hero"] .brand-role { color: rgba(255,255,255,.62); }
.site-header[data-mode="over-hero"] .nav > a { color: rgba(255,255,255,.85); }
.site-header[data-mode="over-hero"] .nav > a:hover,
.site-header[data-mode="over-hero"] .nav > a[aria-current="page"] { color: #fff; }
.site-header[data-mode="over-hero"] .icon-btn { border-color: rgba(255,255,255,.22); color: #fff; }
.site-header[data-mode="over-hero"] .icon-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.site-header[data-mode="over-hero"] .burger span { background: #fff; }

.site-header.is-stuck {
  background: var(--bg);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(10,23,40,.06);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-stuck {
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }
}

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--ink); }
.brand-role {
  font-family: var(--font-mono); font-size: .655rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav > a {
  position: relative; padding: .55rem .85rem; border-radius: var(--r-sm);
  font-size: .935rem; font-weight: 550; color: var(--ink-2);
}
.nav > a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > a:hover { color: var(--brand); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a[aria-current="page"] { color: var(--brand); }

.nav .btn { display: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span {
  position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .site-header[data-mode="over-hero"] .nav > a { color: var(--ink-2); }
  .nav > a { padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 1.25rem; }
  .header-actions .btn--primary { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  background-color: #08101f;
  color: var(--night-ink);
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(900px 620px at 12% 8%,  rgba(29,95,214,.34), transparent 62%),
    radial-gradient(760px 560px at 88% 92%, rgba(109,74,255,.30), transparent 62%),
    linear-gradient(160deg, #08101f 0%, #0b1730 42%, #0a1426 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  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: 58px 58px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}
#hero-canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  opacity: .5; pointer-events: none;
}

.hero h1 { color: #fff; }
.hero .hero-lead { color: var(--night-ink-2); font-size: var(--step-1); line-height: 1.65; max-width: 54ch; }

.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem 1rem .42rem .8rem;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.055);
  border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 550; color: var(--night-ink-2);
  margin-bottom: 1.6rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; position: relative; flex: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #34d399; animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .9 } 100% { transform: scale(1.9); opacity: 0 } }

.grad {
  background: linear-gradient(100deg, #7fb0ff 0%, #b49bff 52%, #6ee7d7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.9rem; list-style: none; padding: 0; }
.hero-roles li { margin: 0; }
.hero-roles span {
  display: inline-block; padding: .38rem .85rem;
  border: 1px solid var(--night-line); border-radius: var(--r-pill);
  background: var(--night-surface);
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .03em;
  color: var(--night-ink-2);
}
.hero .btn-row { margin-top: 2.4rem; }

.hero-meta {
  margin-top: 2.6rem; padding-top: 1.9rem;
  border-top: 1px solid var(--night-line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1.5rem;
}
.hero-meta dt {
  font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; color: #fff;
  letter-spacing: -.03em; line-height: 1.1;
}
.hero-meta dd {
  margin: .3rem 0 0; font-size: .78rem; color: var(--night-ink-3);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 550;
}

/* Portraet-Karte */
.hero-portrait { position: relative; justify-self: center; width: min(100%, 400px); }
.hero-portrait__frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  background: #0d1830;
}
.hero-portrait__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,16,31,.85) 0%, rgba(8,16,31,.15) 45%, transparent 70%);
}
.hero-portrait img { width: 100%; filter: saturate(.92) contrast(1.04); }
.hero-portrait__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.25rem 1.4rem; }
.hero-portrait__caption strong { display: block; color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.hero-portrait__caption span {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--night-ink-3);
}

.hero-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .95rem;
  background: rgba(13,24,48,.9);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap;
}
@supports (backdrop-filter: blur(1px)) { .hero-chip { background: rgba(13,24,48,.72); backdrop-filter: blur(14px); } }
.hero-chip svg { width: 16px; height: 16px; color: #7fb0ff; flex: none; }
.hero-chip--tl { top: 7%; left: -7%; animation: float 7s ease-in-out infinite; }
.hero-chip--br { bottom: 24%; right: -8%; animation: float 7s ease-in-out infinite 3.5s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@media (max-width: 620px) { .hero-chip--tl { left: 0; } .hero-chip--br { right: 0; } }

/* Branchenband */
.trustband { background: var(--night-2); border-top: 1px solid var(--night-line); padding-block: 1.9rem; }
.trustband p {
  font-family: var(--font-mono); font-size: .69rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--night-ink-3); text-align: center; margin-bottom: 1.1rem;
}
.trustband ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; }
.trustband li {
  margin: 0; color: var(--night-ink-2); font-weight: 650; font-size: .96rem;
  letter-spacing: -.01em; opacity: .78; transition: opacity .25s var(--ease), color .25s var(--ease);
}
.trustband li:hover { opacity: 1; color: #fff; }

/* --------------------------------------------------------------------------
   7. Karten
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .65rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--flat::before { display: none; }

.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--brand-soft); color: var(--brand);
  transition: transform .3s var(--ease);
}
.card:hover .card-icon { transform: scale(1.07) rotate(-4deg); }
.card-icon svg { width: 23px; height: 23px; }
.card-icon--accent { background: var(--accent-soft); color: var(--accent); }

.card-list { list-style: none; padding: 0; margin-top: 1.15rem; }
.card-list li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--ink-2); margin-block: .45rem; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.card-index {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; color: var(--ink-3);
  position: absolute; top: 1.5rem; right: 1.6rem;
}

/* Kennzahlen */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.stat { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.stat dt { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; color: var(--ink); letter-spacing: -.035em; line-height: 1; }
.stat dt .unit { color: var(--brand); }
.stat dd { margin: .6rem 0 0; font-size: .87rem; color: var(--ink-3); }

/* Split-Panel */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  align-items: center;
}
.split--top { align-items: start; }

.media-frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}

/* Check-Liste */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; margin-block: .85rem; font-size: .98rem; color: var(--ink-2); }
.checklist svg { width: 21px; height: 21px; flex: none; color: var(--brand); margin-top: .18em; }

/* --------------------------------------------------------------------------
   8. Dunkles Band (AI-Sektion, CTA)
   -------------------------------------------------------------------------- */
.band-night { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--night-ink-2); }
.band-night::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 520px at 82% 12%, rgba(109,74,255,.32), transparent 62%),
    radial-gradient(700px 500px at 10% 88%, rgba(29,95,214,.28), transparent 62%);
}
.band-night h2, .band-night h3, .band-night h4, .band-night strong { color: #fff; }
.band-night .eyebrow { color: #b49bff; }
.band-night .sec-head p, .band-night .lead { color: var(--night-ink-2); }
.band-night .card { background: var(--night-surface); border-color: var(--night-line); }
@supports (backdrop-filter: blur(1px)) { .band-night .card { backdrop-filter: blur(10px); } }
.band-night .card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.band-night .card p, .band-night .card-list li, .band-night .checklist li { color: var(--night-ink-2); }
.band-night .card-icon { background: rgba(180,155,255,.16); color: #c3b0ff; }
.band-night .checklist svg { color: #7fb0ff; }
.band-night .card-index { color: var(--night-ink-3); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-top: 1.5rem; }
.pill-row li { margin: 0; }
.pill {
  display: inline-block; padding: .38rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.band-night .pill { border-color: var(--night-line); background: var(--night-surface); color: var(--night-ink-2); }
.band-night .pill:hover { border-color: rgba(255,255,255,.35); color: #fff; }

/* Code-Fenster */
.code-window {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a1120; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  font-family: var(--font-mono); font-size: .8rem; line-height: 1.8;
}
.code-window__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem 1rem; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.code-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-window__bar span { margin-left: .6rem; font-size: .71rem; color: var(--night-ink-3); letter-spacing: .04em; }
.code-window pre { margin: 0; padding: 1.2rem 1.35rem; overflow-x: auto; color: #b6c7e0; }
.c-key { color: #b49bff; }
.c-str { color: #6ee7d7; }
.c-fn  { color: #7fb0ff; }
.c-com { color: #5b6f8c; font-style: italic; }
.c-num { color: #f0b37e; }

/* --------------------------------------------------------------------------
   9. Prozess / Timeline
   -------------------------------------------------------------------------- */
.process {
  display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  counter-reset: step;
}
.process-step { position: relative; padding-top: 2.5rem; }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; color: var(--brand);
}
.process-step::after {
  content: ""; position: absolute; top: .6rem; left: 2.6rem; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.process-step h3 { font-size: var(--step-0); margin-bottom: .5rem; }
.process-step p { font-size: .92rem; }

/* Timeline */
.timeline { position: relative; padding-left: clamp(1.6rem, 4vw, 2.6rem); }
.timeline::before {
  content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent) 55%, transparent);
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: clamp(2rem, 4vw, 3rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute;
  left: calc((clamp(1.6rem, 4vw, 2.6rem) + 5px) * -1);
  top: .55rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.tl-item--current::before { background: var(--brand); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .5rem; }
.tl-date { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--brand); }
.tl-badge {
  font-size: .67rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  padding: .18rem .6rem; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-ink);
}
.tl-item h3 { font-size: var(--step-1); margin-bottom: .15rem; }
.tl-role { font-weight: 600; color: var(--ink-2); font-size: .95rem; margin-bottom: .8rem; display: block; }
.tl-item ul { padding-left: 1.15rem; }
.tl-item li { font-size: .95rem; color: var(--ink-2); }
.tl-tech { margin-top: 1rem; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); line-height: 1.75; }
.tl-tech b { color: var(--ink-2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .69rem; }

/* --------------------------------------------------------------------------
   10. Skills / Zertifikate / Fakten
   -------------------------------------------------------------------------- */
.skill { margin-bottom: 1.5rem; }
.skill__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .55rem; gap: 1rem; }
.skill__name { font-weight: 620; color: var(--ink); font-size: .97rem; }
.skill__lvl { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); letter-spacing: .05em; }
.skill__bar { height: 7px; border-radius: 4px; background: var(--bg-sunken); overflow: hidden; }
:root[data-theme="dark"] .skill__bar { background: rgba(255,255,255,.07); }
.skill__fill {
  height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 1.3s var(--ease);
}

.techgroup { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.techgroup:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.techgroup h4 {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem;
}

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.cert {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cert:hover { border-color: var(--brand); transform: translateY(-3px); }
.cert svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: .1em; }
.cert strong { display: block; font-size: .95rem; color: var(--ink); line-height: 1.4; }
.cert span { font-size: .82rem; color: var(--ink-3); }

.factlist { border-top: 1px solid var(--line); }
.factlist > div {
  display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.factlist dt { font-size: .88rem; color: var(--ink-3); font-weight: 550; }
.factlist dd { margin: 0; font-size: .95rem; color: var(--ink); }
@media (max-width: 520px) { .factlist > div { grid-template-columns: 1fr; gap: .2rem; } }

/* --------------------------------------------------------------------------
   11. Formular
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--brand); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: .96rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .75; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #dc2626; }
.field-error { font-size: .8rem; color: #dc2626; min-height: 1.2em; }
:root[data-theme="dark"] .field-error { color: #fca5a5; }

.check { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; color: var(--ink-2); line-height: 1.6; }
.check input { width: 18px; height: 18px; flex: none; margin-top: .18em; accent-color: var(--brand); }

/* Honigtoepfe: fuer Menschen unsichtbar, fuer Ausfuellprogramme sichtbar.
   Bewusst nicht display:none, da manche Bots solche Felder ueberspringen. */
.hp-field {
  position: absolute !important; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Sicherheitsfrage nur zeigen, wenn der Rechennachweis nicht greift
   (kein JavaScript oder Berechnung fehlgeschlagen). */
:root.js .captcha-field { display: none; }
:root.js.captcha-required .captcha-field { display: flex; }
.captcha-field .form-note { margin-top: .1rem; }

.form-note { font-size: .82rem; color: var(--ink-3); }

.alert {
  display: none; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.15rem; border-radius: var(--r); font-size: .93rem;
  border: 1px solid; line-height: 1.6;
}
.alert.is-visible { display: flex; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: .15em; }
.alert--ok  { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
:root[data-theme="dark"] .alert--ok  { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.35); color: #6ee7b7; }
:root[data-theme="dark"] .alert--err { background: rgba(239,68,68,.10);  border-color: rgba(239,68,68,.35);  color: #fca5a5; }

.contact-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-tile:last-child { border-bottom: 0; }
.contact-tile__icon {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.contact-tile__icon svg { width: 19px; height: 19px; }
.contact-tile h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 600; margin-bottom: .2rem; }
.contact-tile a, .contact-tile p { font-size: 1rem; color: var(--ink); font-weight: 550; }
.contact-tile a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   12. CTA & Footer
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--night-ink-2); font-size: var(--step-1); max-width: 58ch; margin: 1.15rem auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 2.2rem; }
.cta-band__meta { margin-top: 1.75rem; font-size: .85rem; color: var(--night-ink-3); }

.site-footer { background: var(--night-2); color: var(--night-ink-3); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(min(100%, 240px), 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--night-line);
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-role { color: var(--night-ink-3); }
.footer-about { font-size: .92rem; color: var(--night-ink-3); margin-top: 1.1rem; max-width: 40ch; line-height: 1.75; }
.footer-col h4 {
  color: #fff; font-family: var(--font-mono); font-size: .71rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-block: .55rem; }
.footer-col a { color: var(--night-ink-3); font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem;
  align-items: center; justify-content: space-between; font-size: .85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a { color: var(--night-ink-3); }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   13. Seitenkopf & Rechtstexte
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--night); color: var(--night-ink-2);
  padding-top: calc(var(--header-h) + clamp(2.75rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative; isolation: isolate; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 480px at 18% 0%, rgba(29,95,214,.32), transparent 62%),
    radial-gradient(680px 420px at 88% 100%, rgba(109,74,255,.26), transparent 62%);
}
.page-head h1 { color: #fff; font-size: var(--step-3); }
.page-head p { color: var(--night-ink-2); margin-top: 1rem; font-size: var(--step-1); max-width: 62ch; }
.page-head .eyebrow { color: #b49bff; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .82rem; color: var(--night-ink-3); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--night-ink-3); }
.breadcrumb a:hover { color: #fff; }

.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; margin-bottom: .9rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.85rem; margin-bottom: .6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose address { font-style: normal; line-height: 1.9; }

.callout {
  border-left: 3px solid var(--brand);
  background: var(--bg-subtle);
  padding: 1.1rem 1.35rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .93rem; margin-block: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. Animation & Utilities
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.no-js .reveal { opacity: 1; transform: none; }

.scroll-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s var(--ease);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--brand-ink); }
.scroll-top svg { width: 19px; height: 19px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   15. Reduced Motion & Print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  #hero-canvas { display: none; }
}

@media print {
  .site-header, .scroll-top, .hero-chip, #hero-canvas, .cta-band, .burger, .trustband { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .band-night, .site-footer, .page-head { background: #fff !important; color: #000 !important; }
  .hero::before, .hero::after, .band-night::before, .page-head::before { display: none !important; }
  .hero h1, .band-night h2, .band-night h3, .page-head h1, .grad {
    color: #000 !important; -webkit-text-fill-color: #000 !important;
  }
  .card { break-inside: avoid; border: 1px solid #ccc; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
