/* ==========================================================================
   Bardehle Technical Services — Design System
   "Metallic Tech" — dark glass, high-gloss chrome-blue accents
   ========================================================================== */

/* Schriften lokal gehostet (keine Verbindung zu Google-Servern) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-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: 'Sora'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../fonts/sora-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: 'Exo 2'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../fonts/exo-2-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: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/jetbrains-mono-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; }

:root {
  color-scheme: dark;
  --void: #050b14;
  --void-2: #081426;
  --void-3: #0b1c33;

  --surface: rgba(255,255,255,.045);
  --border: rgba(148,197,232,.16);
  --border-strong: rgba(124,200,242,.4);

  --text: #eef6fc;
  --text-muted: #9fb7cc;
  --text-soft: #8ba4b9;

  --metal-1: #071c33;
  --metal-2: #0f3a63;
  --metal-3: #1f6fb8;
  --metal-4: #58b4f0;
  --metal-5: #d8f2ff;
  --metal-gradient: linear-gradient(120deg,
    var(--metal-1) 0%, var(--metal-2) 22%, var(--metal-3) 40%,
    var(--metal-4) 49%, var(--metal-5) 53%, var(--metal-4) 57%,
    var(--metal-3) 68%, var(--metal-2) 84%, var(--metal-1) 100%);
  --glow: rgba(88,180,240,.5);

  /* legacy aliases (kept so any inline var() references still resolve) */
  --blue-600: var(--metal-3);
  --blue-700: var(--metal-2);
  --sky-100: rgba(88,180,240,.12);
  --sky-200: rgba(88,180,240,.3);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 10px 24px rgba(0,0,0,.35);
  --shadow-md: 0 20px 48px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55);

  --container: 1200px;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-brand: 'Exo 2', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(31,111,184,.32), transparent 60%),
    radial-gradient(760px 520px at 105% 8%, rgba(88,180,240,.16), transparent 55%),
    linear-gradient(rgba(124,200,242,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,200,242,.05) 1px, transparent 1px),
    var(--void);
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
a, button, input, select, textarea, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(88,180,240,.18); }
:focus-visible { outline: 3px solid #8fd0f5; outline-offset: 3px; }
main:focus { outline: none; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 12px 18px; border-radius: 10px;
  background: #fff; color: #050b14; font-weight: 600;
}
.skip-link:focus { top: 12px; }
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: #fff;
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--metal-4);
  background: rgba(88,180,240,.08);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow svg { width: 15px; height: 15px; }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: rgba(255,255,255,.018); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.dark {
  background: radial-gradient(1100px 480px at 18% 0%, rgba(31,111,184,.34), transparent 60%), linear-gradient(180deg, var(--void-3), var(--void));
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
}
.section.dark .section-head p { color: var(--text-muted); }

.grid { display: grid; gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  max-width: 100%;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--metal-gradient);
  background-size: 240% 240%;
  background-position: 0% 50%;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px rgba(2,8,16,.55), 0 0 30px rgba(88,180,240,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .6s ease;
}
.btn-primary svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 12% 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 16px 40px rgba(2,8,16,.6), 0 0 48px rgba(88,180,240,.55);
}
.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--metal-4); color: #fff; background: rgba(88,180,240,.09); box-shadow: 0 0 26px rgba(88,180,240,.22); }
.btn-light {
  background: linear-gradient(135deg, #eef8ff, #ffffff);
  color: var(--metal-1);
  box-shadow: var(--shadow-md), 0 0 30px rgba(255,255,255,.16);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 42px rgba(255,255,255,.26); }
.btn-block { width: 100%; }
.btn:active, .btn-primary:active, .btn-light:active { transform: translateY(0) scale(.97); transition-duration: .1s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* Der Weichzeichner liegt auf einem eigenen Hintergrund. Direkt am Header würde er das feste mobile Menü an den Header binden. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 11, 20, .88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(88,180,240,.5));
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-brand); font-size: 21px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #d8f2ff 45%, #8fd0f5 100%);
  -webkit-background-clip: text; background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-text strong { color: transparent; }
}
.brand-text span {
  font-family: var(--font-brand); font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: #9cc4e6;
  margin-top: 4px; padding-top: 5px;
  background: linear-gradient(90deg, rgba(124,200,242,.6), rgba(124,200,242,0)) top left / 100% 1px no-repeat;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: background .2s, color .2s;
}
.nav-links > li > a:hover, .nav-links > li > button.nav-link:hover,
.nav-links > li > a.active, .nav-links > li > button.nav-link.active, .has-dropdown:hover > button.nav-link {
  background: rgba(88,180,240,.1);
  color: #fff;
}
.nav-links svg.chev { width: 14px; height: 14px; transition: transform .2s; }
.has-dropdown:hover svg.chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: rgba(8, 18, 32, .97);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(88,180,240,.1);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.has-dropdown.dd-closed .dropdown { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px); }
/* unsichtbare Brücke, damit das Menü beim Überfahren der Lücke nicht zugeht */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  transition: background .18s;
}
.dropdown a:hover, .dropdown a.active { background: rgba(88,180,240,.1); }
.dropdown a.dd-all { justify-content: center; align-items: center; margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--metal-4); }
.dropdown a .dd-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--metal-gradient); background-size: 200% 200%;
  color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.dropdown a .dd-icon svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.dropdown a strong { display: block; font-size: 14.5px; color: #fff; font-family: var(--font-head); }
.dropdown a small { color: var(--text-soft); font-size: 12.5px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
/* Mobile nav */
@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: rgba(4,9,16,.98); backdrop-filter: blur(20px); flex-direction: column;
    align-items: stretch; padding: 18px; gap: 4px; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid var(--border);
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
  .nav-links.open { transform: translateX(0); visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  .nav-links > li > a, .nav-links > li > button.nav-link { width: 100%; justify-content: space-between; padding: 15px 16px; font-size: 16px; }
  /* Die Hover- und Fokus-Regeln der Desktop-Ansicht schieben das Untermenü sonst um die halbe Breite nach links, sobald man es antippt. */
  .dropdown, .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.dd-closed .dropdown {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent;
    display: none; padding-left: 8px; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}
.icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #030810 0%, #071626 40%, #0d2c4d 75%, #123f6e 100%);
  color: #fff;
  padding: 110px 0 130px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(88,180,240,.5), transparent 70%);
  top: -220px; right: -160px;
  animation: floatGlow 10s ease-in-out infinite alternate;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 60% 40%, rgba(31,111,184,.55), transparent 70%);
  bottom: -220px; left: -140px;
  opacity: .55;
  animation: floatGlow 12s ease-in-out infinite alternate-reverse;
}
@keyframes floatGlow { from { transform: translateY(0) scale(1); } to { transform: translateY(24px) scale(1.06); } }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(88,180,240,.1);
  border: 1px solid rgba(88,180,240,.4);
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  margin-bottom: 22px;
  color: #dff2ff;
  box-shadow: 0 0 24px rgba(88,180,240,.16);
}
.hero-eyebrow svg { width: 16px; height: 16px; color: var(--metal-4); }
.nowrap { white-space: nowrap; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); max-width: 640px; }
.hero .lead { font-size: 18.5px; color: #a9c4da; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 22px 34px; flex-wrap: wrap; }
.hero-stats div { border-left: 2px solid rgba(88,180,240,.45); padding-left: 14px; }
.hero-stats div span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fadc7; margin-bottom: 3px; }
.hero-stats div strong { display: block; font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: #fff; text-shadow: 0 0 20px rgba(88,180,240,.5); }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(88,180,240,.28);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(88,180,240,.12);
}
.hero-card .partner-badge {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.partner-badge .pb-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--metal-gradient); background-size: 200% 200%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 20px rgba(88,180,240,.35);
}
.partner-badge .pb-icon svg { width: 25px; height: 25px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.partner-badge strong { display: block; font-family: var(--font-head); font-size: 15px; color: #fff; }
.partner-badge span { font-size: 12.5px; color: var(--text-muted); }
.hero-card ul.check-list li { color: #dcecf7; font-size: 14.5px; padding: 7px 0; display: flex; gap: 10px; align-items: flex-start; }
.hero-card ul.check-list svg { width: 18px; height: 18px; color: var(--metal-4); flex-shrink: 0; margin-top: 1px; filter: drop-shadow(0 0 6px rgba(88,180,240,.6)); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--metal-gradient); background-size: 200% 100%; opacity: .75;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,-20%), rgba(88,180,240,.15), transparent 60%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.card:hover::after { opacity: 1; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), 0 0 0 1px rgba(88,180,240,.28); border-color: var(--border-strong); }
a.card:active { transform: translateY(-2px) scale(.99); transition-duration: .1s; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--metal-gradient); background-size: 200% 200%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 22px rgba(88,180,240,.32);
}
.card-icon svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.card h3 { font-size: 19px; color: #fff; }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--metal-4); font-weight: 600; font-size: 14.5px; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

.service-card { display: flex; flex-direction: column; height: 100%; }

/* Leistungen auf der Startseite: Bento mit genau vier Zellen (4+2 / 2+4) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.bento > :nth-child(1), .bento > :nth-child(4) { grid-column: span 4; }
.bento > :nth-child(2), .bento > :nth-child(3) { grid-column: span 2; }
.bento .service-card p { max-width: 48ch; }
.bento > .service-card:nth-child(1) {
  background: radial-gradient(520px 260px at 100% 0%, rgba(88,180,240,.2), transparent 70%), var(--surface);
}
.bento > .service-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(15,58,99,.85), rgba(11,28,51,.92));
}

/* "So arbeiten wir": Zeilen statt drei gleicher Karten */
.principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.principles > .section-head { position: sticky; top: 112px; margin: 0; }
.principle { display: grid; grid-template-columns: 52px 1fr; column-gap: 22px; padding: 32px 0; border-top: 1px solid var(--border); }
.principle:first-child { border-top: 0; padding-top: 0; }
.principle .card-icon { grid-row: span 2; margin: 0; }
.principle h3 { font-size: 19px; margin: 0 0 .4em; }
.principle p { color: var(--text-muted); font-size: 15.5px; margin: 0; max-width: 60ch; }

/* Feature row */
.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.feature-item .fi-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--metal-gradient); background-size: 200% 200%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(88,180,240,.32);
}
.feature-item .fi-icon svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.feature-item strong { display: block; font-family: var(--font-head); font-size: 15.5px; margin-bottom: 3px; color: #fff; }
.feature-item p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img, .split .visual-block { border-radius: var(--radius-lg); }
.visual-block {
  aspect-ratio: 4/3.1;
  background: linear-gradient(150deg, var(--void-3), var(--metal-2) 65%, var(--metal-3) 130%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(88,180,240,.16);
}
.visual-block svg { width: 46%; height: 46%; color: rgba(255,255,255,.92); position: relative; z-index: 2; filter: drop-shadow(0 0 20px rgba(88,180,240,.5)); }
.visual-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.16), transparent 55%);
}
.visual-block .dots {
  position: absolute; inset: 0; opacity: .3;
  background-image: radial-gradient(rgba(255,255,255,.75) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ---------- Effekte (three.js, assets/js/fx) ----------
   Ohne JavaScript, ohne WebGL oder bei reduzierter Datennutzung bleibt der
   bisherige Hintergrund stehen. Die Canvas-Elemente blenden erst ein, wenn
   der erste Frame gerendert ist. */
.fx-canvas {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .9s var(--ease);
}
.is-ready > .fx-canvas { opacity: 1; }

/* Globus */
.fx-globe { isolation: isolate; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fx-globe.is-dragging { cursor: grabbing; }
.fx-globe::after {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 50%;
  width: calc(var(--globe-d, 66%) * 1.55); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(88,180,240,.30) 0%, rgba(88,180,240,.12) 36%, rgba(88,180,240,0) 62%);
  pointer-events: none;
}
.fx-globe > svg, .fx-globe > .dots { transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.fx-globe.is-ready > svg, .fx-globe.is-ready > .dots { opacity: 0; visibility: hidden; }
.fx-label {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: #dff2ff; background: rgba(8,20,38,.8);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 12px;
  opacity: 0; transition: opacity .35s var(--ease); will-change: transform;
}
.fx-label.is-front { opacity: 1; }

/* Knopf zum Anhalten der Animation */
.fx-pause {
  position: absolute; z-index: 3; right: 16px; bottom: 16px;
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border-strong);
  background: rgba(8,20,38,.72); color: #dff2ff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.fx-pause[hidden] { display: none; }
.fx-pause svg { width: 18px; height: 18px; }
.fx-pause:hover { border-color: var(--metal-4); background: rgba(88,180,240,.16); }
.fx-pause:active { transform: scale(.94); }
.hero > .fx-pause { right: max(24px, calc((100% - var(--container)) / 2 + 24px)); bottom: 28px; }

/* Partikel-Schwarm als Hintergrund im Hero */
.fx-swarm {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
}
/* dunkler Schleier links, damit der Text lesbar bleibt */
.fx-swarm::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(3,8,16,.7) 0%, rgba(3,8,16,.38) 36%, rgba(3,8,16,0) 62%);
}

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 22px 0 28px; }
.check-grid li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.check-grid svg { width: 19px; height: 19px; color: var(--metal-4); flex-shrink: 0; margin-top: 2px; filter: drop-shadow(0 0 6px rgba(88,180,240,.5)); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step .step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--metal-gradient); background-size: 200% 200%;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 22px rgba(88,180,240,.36);
}
.step h3 { font-size: 17px; color: #fff; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* Values / why-us */
.value-card { text-align: left; }

/* Quote / highlight panel */
.highlight-panel {
  background: rgba(88,180,240,.05);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(14px);
}

/* Partner spotlight */
.partner-spot { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.partner-spot .card-icon { margin-bottom: 24px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(88,180,240,.1);
  border: 1px solid var(--border-strong);
  padding: 9px 15px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: #dff2ff;
}
.pill svg { width: 16px; height: 16px; color: var(--metal-4); }

/* CTA banner */
.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--metal-1) 0%, var(--metal-2) 45%, var(--metal-3) 100%);
  border: 1px solid var(--border-strong);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  color: #fff;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(88,180,240,.3);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.6px, transparent 1.6px);
  background-size: 26px 26px; opacity: .4;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 6px; font-size: clamp(24px, 2.6vw, 32px); text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.cta-banner p { color: #eaf6ff; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, #030810, #0a1e36 45%, #123f6e 130%);
  color: #fff;
  padding: 74px 0 88px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-strong);
}
.page-hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(88,180,240,.5), transparent 70%);
  opacity: .5; top: -220px; right: -80px; filter: blur(6px);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: #8fadc7; margin-bottom: 20px; font-family: var(--font-mono); }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb a { color: inherit; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.page-hero .page-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--metal-gradient); background-size: 200% 200%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 30px rgba(88,180,240,.4);
}
.page-hero .page-icon svg { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); max-width: 700px; }
.page-hero .lead { color: #a9c4da; font-size: 17.5px; max-width: 620px; margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); backdrop-filter: blur(14px);
}
.contact-info-card + .contact-info-card { margin-top: 20px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .fi-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--metal-gradient); background-size: 200% 200%; color: #fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow: 0 0 16px rgba(88,180,240,.32); }
.info-row .fi-icon svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.info-row strong { display: block; font-family: var(--font-head); font-size: 15px; color: #fff; }
.info-row a, .info-row span.value { color: var(--text-muted); font-size: 14.5px; }
.info-row a:hover { color: var(--metal-4); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); backdrop-filter: blur(14px); }
.form-card h2 { color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  border: 1.5px solid rgba(148,197,232,.55);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  background: rgba(255,255,255,.03);
  color: #fff;
  transition: border-color .2s, background .2s;
  width: 100%;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); }
.field select option { background: #0a1830; color: #fff; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid #8fd0f5; outline-offset: 2px; border-color: var(--metal-4); background: rgba(88,180,240,.07);
}
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-muted); }
.field-check input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; accent-color: #58b4f0; }
.field [aria-invalid="true"], .field-check [aria-invalid="true"] { border-color: #ff9b9b; outline-color: #ff9b9b; }
.field-error { margin: 0; font-size: 13.5px; font-weight: 600; color: #ffb4b4; }
.field-error[hidden] { display: none; }
.form-hint { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 14px; }
.form-note a { color: var(--metal-4); text-decoration: underline; text-underline-offset: 3px; }
.opt { font-weight: 400; color: var(--text-soft); font-size: 13px; }
.field-help { margin: 0; font-size: 13px; color: var(--text-soft); }
/* Zusatzangaben, standardmäßig eingeklappt, damit das Formular kurz bleibt */
.form-more { margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 16px; background: rgba(255,255,255,.02); }
.form-more summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--text); }
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary::after { content: "+"; flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--metal-4); }
.form-more[open] summary::after { content: "\2013"; }
.form-more[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.form-more summary:focus-visible { outline: 3px solid #8fd0f5; outline-offset: 2px; border-radius: 6px; }
.form-more .opt { display: block; font-weight: 400; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm), 0 0 30px rgba(88,180,240,.16); }
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; }
.map-consent { min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 32px; background: radial-gradient(500px 240px at 50% 0%, rgba(31,111,184,.25), transparent 70%), var(--surface); }
.map-link { margin: 12px 0 0; font-size: 14px; color: var(--text-muted); }
.map-link a { color: var(--metal-4); text-decoration: underline; text-underline-offset: 3px; }
.map-consent p { color: var(--text-muted); font-size: 14.5px; max-width: 360px; margin: 0; }

.form-status {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 16px 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: rgba(88,180,240,.1); color: #dff2ff; font-weight: 600; font-size: 14.5px;
}
.form-status:empty { margin: 0; padding: 0; border: 0; min-height: 0; }
.form-status.is-error { background: rgba(255,120,120,.1); border-color: #ff9b9b; color: #ffdede; }
.form-status::before { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 700; background: var(--metal-3); color: #fff; }
.form-status:empty::before { content: none; }
.form-status.is-success::before { content: "\2713"; content: "\2713" / ""; }
.form-status.is-error::before { content: "!"; content: "!" / ""; background: #c0392b; }
.form-status.is-info::before { content: "i"; content: "i" / ""; }

/* Footer */
.site-footer { background: linear-gradient(180deg, var(--void-2), #030810); color: #9fb7cc; padding: 72px 0 0; border-top: 1px solid var(--border-strong); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: #84a0b8; font-size: 14.5px; margin: 16px 0 20px; max-width: 300px; }
.footer-col .footer-title { display: block; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px; margin: 0 0 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: #84a0b8; font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--metal-4); }
.footer-col .info-row { border: none; padding: 0 0 14px; }
.footer-col .info-row .fi-icon { background: var(--metal-gradient); background-size: 200% 200%; color: #fff; }
.footer-col .info-row a, .footer-col .info-row span.value { color: #84a0b8; }
.footer-col .info-row strong { color: #e3eefb; }
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.footer-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(88,180,240,.08); border: 1px solid var(--border-strong); padding: 10px 14px; border-radius: 12px; }
.footer-badge svg { width: 20px; height: 20px; color: var(--metal-4); filter: drop-shadow(0 0 8px rgba(88,180,240,.5)); }
.footer-badge span { font-size: 12px; font-weight: 600; color: #e3eefb; font-family: var(--font-mono); }
a.footer-badge:hover { border-color: var(--metal-4); }
.footer-note { max-width: 760px; margin: 0; padding: 22px 0 0; font-size: 13px; color: #8ba4b9; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8ba4b9; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 28px; backdrop-filter: blur(14px); transition: border-color .25s var(--ease); }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item h3 { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; color: #fff; margin-bottom: 10px; }
.faq-item h3 svg { width: 20px; height: 20px; color: var(--metal-4); flex-shrink: 0; margin-top: 2px; filter: drop-shadow(0 0 6px rgba(88,180,240,.5)); }
.faq-item p { color: var(--text-muted); font-size: 15px; margin: 0; padding-left: 32px; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* Legal pages — light "paper" panel floating on the dark theme */
.legal-content {
  max-width: 780px;
  background: #f4f8fc;
  color: #16283c;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(88,180,240,.16);
  border: 1px solid rgba(255,255,255,.6);
}
.legal-content h1, .legal-content h2, .legal-content h3 { color: #0a2f5c; font-size: 21px; margin-top: 40px; }
.legal-content h1:first-child, .legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: #3c5468; font-size: 15.5px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content a { color: #1370d6; text-decoration: underline; }
.legal-content :focus-visible { outline-color: #0a2f5c; }

/* Anchor offset for sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .visual-block { order: -1; }
  .partner-spot { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fx-swarm { top: 36%; bottom: auto; height: min(52%, 640px); }
  .fx-swarm::after { background: linear-gradient(180deg, rgba(3,8,16,.55), rgba(3,8,16,.1) 70%); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > :nth-child(n) { grid-column: auto; }
  .principles { grid-template-columns: 1fr; gap: 36px; }
  .principles > .section-head { position: static; }
}
@media (max-width: 940px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 780px) {
  /* Weichzeichner hinter Flächen kostet auf Handys bei jedem Scrollschritt Rechenzeit. Die Flächen sind schon halbdurchsichtig genug. */
  .card, .hero-card, .form-card, .faq-item, .contact-info-card, .highlight-panel, .btn-ghost, .fx-pause { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header::before { background: rgba(5, 11, 20, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cookie-banner { backdrop-filter: none; -webkit-backdrop-filter: none; background: #08121f; }
  /* Beim Wischen soll der Inhalt da sein, bevor man ihn liest: kürzer und mit weniger Weg einblenden. */
  .js .reveal { transform: translateY(8px); transition-duration: .3s; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px; flex-direction: column; text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .legal-content { padding: 28px; }
  .footer-col ul li { margin-bottom: 0; }
  .footer-col a { display: inline-block; padding: 13px 0; }
  .footer-bottom a { display: inline-block; padding: 13px 0; }
}
@media (max-width: 520px) {
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text strong { font-size: 16px; letter-spacing: .1em; }
  .brand-text span { font-size: 8.5px; letter-spacing: .2em; margin-top: 3px; padding-top: 4px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 14px; }
}
/* Auf dem Handy bleibt der Anfrage-Knopf in der Kopfzeile, nur kürzer. Die schriftliche Anfrage ist der bevorzugte Weg. */
@media (max-width: 560px) {
  .nav-more { display: none; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  .nav-cta .btn-primary svg { display: none; }
  .nav-cta .btn-primary { padding: 10px 12px; }
}
@media (max-width: 340px) {
  .site-header .container { padding: 0 16px; }
  .nav { gap: 8px; }
  .brand { gap: 6px; }
  .brand-text span { letter-spacing: .1em; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-primary { padding: 10px 10px; }
}
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 520px) {
  .eyebrow, .hero-eyebrow { max-width: 100%; border-radius: 18px; line-height: 1.4; letter-spacing: .04em; }
}
.hero-grid > *, .split > *, .partner-spot > *, .contact-grid > * { min-width: 0; }
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; row-gap: 14px; }
  .principle .card-icon { grid-row: auto; }
  .hero { padding: 90px 0 100px; }
  .hero-stats { gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Referenzen (Startseite) ---------- */
.refs { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: stretch; }
.ref-main { background: linear-gradient(135deg, rgba(15,58,99,.85), rgba(11,28,51,.92)); }
.ref-main p, .ref-side p { max-width: 56ch; }
.ref-links { margin-top: 24px; }
.ref-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: #fff;
  transition: color .2s;
}
.ref-links a:hover { color: var(--metal-4); }
.ref-domain { flex-shrink: 0; white-space: nowrap; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--text-soft); text-align: right; }
@media (max-width: 1080px) { .refs { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ref-links a { flex-direction: column; gap: 2px; }
  .ref-domain { text-align: left; }
}

/* ---------- Cookie-Banner (assets/js/consent.js) ---------- */
.cookie-banner {
  position: fixed; z-index: 250;
  left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 26px;
  background: rgba(8,20,38,.96);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(88,180,240,.14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: cookieIn .45s var(--ease) both;
}
.cookie-banner[hidden], .cookie-banner [hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.cookie-title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; }
.cookie-text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.cookie-text a { color: var(--metal-4); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 0; min-width: 0; padding: 12px 18px; font-size: 14.5px; }
.cookie-actions .cookie-wide { flex-basis: 100%; }
.cookie-option { padding: 14px 0; border-top: 1px solid var(--border); }
.cookie-option p { margin: 6px 0 0 36px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.cookie-check { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #fff; cursor: pointer; }
.cookie-check input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; accent-color: #58b4f0; }
.cookie-check input:disabled { cursor: not-allowed; opacity: .8; }
.cookie-note { margin: 4px 0 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: color .2s; }
.footer-bottom .link-btn:hover { color: #fff; }
@media (max-width: 780px) {
  .footer-bottom .link-btn { display: inline-block; padding: 13px 0; }
}
@media (max-width: 480px) {
  .cookie-banner { padding: 20px; }
  .cookie-actions .btn { flex-basis: 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  .cookie-banner { backdrop-filter: none; -webkit-backdrop-filter: none; background: #08121f; }
}
@media (forced-colors: active) {
  .cookie-banner { border: 1px solid CanvasText; }
}

/* ---------- Nutzereinstellungen ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: #050b14; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card, .hero-card, .form-card, .faq-item, .contact-info-card, .highlight-panel, .btn-ghost { backdrop-filter: none; background: #0b1424; }
  .dropdown, .nav-links { backdrop-filter: none; background: #08121f; }
}
@media (prefers-contrast: more) {
  :root { --text-muted: #c9dcec; --text-soft: #b5cadb; --border: rgba(148,197,232,.7); --border-strong: rgba(180,220,245,.9); }
}
@media (forced-colors: active) {
  .btn, .card, .form-card, .hero-card, .contact-info-card, .faq-item { border: 1px solid CanvasText; }
}
