:root {
  --ink: #0b1f3a;
  --muted: #4c5d72;
  --blue: #0b61d8;
  --blue-2: #3b73ae;
  --navy: #001f3f;
  --navy-2: #00315f;
  --soft: #f4f7fb;
  --line: #dfe7f2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(6, 30, 60, .12);
  --radius: 8px;
  --control-radius: 6px;
  --container: 1180px;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: var(--control-radius); z-index: 100; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 31, 58, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 24px; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; font-weight: 700; font-size: 15px; }
.site-nav a { position: relative; color: var(--ink); }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 13px 20px; border-radius: var(--control-radius); box-shadow: 0 8px 20px rgba(0,31,63,.18); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }

section.hero { position: relative; padding: 0; color: #fff; overflow: hidden; background: linear-gradient(105deg, #001a36 0%, #002b57 48%, #003b73 100%); }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(0, 18, 39, .96) 0%, rgba(0, 28, 58, .78) 46%, rgba(0, 54, 105, .28) 78%), url("assets/hero-network.svg"); background-size: cover; background-position: center right; opacity: 1; }
.hero-grid { position: relative; display: grid; align-items: center; }
.hero-content { max-width: 620px; padding: 64px 0 76px; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .14em; color: #9cc5ff; font-size: 13px; font-weight: 800; }
.hero h1 { margin: 0; max-width: 650px; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
.hero-message { width: 100%; min-width: 0; max-width: 580px; margin-top: 26px; }
.hero-problems { display: grid; min-width: 0; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-problem { color: rgba(255,255,255,.96); font-size: clamp(17px, 1.6vw, 19px); font-weight: 750; line-height: 1.4; }
.hero-keyword { color: #b8d8ff; font-weight: 850; }
.hero-problem-flow { position: relative; justify-self: start; width: max-content; min-width: 0; max-width: 100%; min-height: 1.4em; overflow: hidden; white-space: nowrap; }
.hero-flow-sizer { display: block; padding-right: 4ch; visibility: hidden; }
.hero-flow-track { position: absolute; top: 0; left: 0; display: inline-flex; gap: 4ch; width: max-content; }
.hero-flow-copy { flex: none; }
.hero-flow-copy[aria-hidden="true"] { display: none; }
.hero-problem-puzzle { display: flex; flex-wrap: wrap; column-gap: .3em; }
.hero-puzzle-word { display: inline-block; }
.hero-solution { margin-top: 20px; padding-left: 16px; border-left: 2px solid #78b7ff; color: rgba(255,255,255,.88); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--control-radius); font-weight: 800; font-size: 15px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(11,97,216,.26); }
.button-primary::after { content: "›"; font-size: 24px; line-height: 0; }
.button-secondary { border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.button-secondary::after { content: "›"; font-size: 24px; line-height: 0; }
.full { width: 100%; }

@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-problem-flow {
  from { transform: translateX(calc(-50% - 2ch)); }
  to { transform: translateX(0); }
}

@keyframes hero-problem-steps {
  0%, 12% { transform: translateX(0); }
  20%, 30% { transform: translateX(4px); }
  38%, 48% { transform: translateX(8px); }
  56%, 66% { transform: translateX(12px); }
  74%, 84% { transform: translateX(16px); }
  100% { transform: translateX(0); }
}

@keyframes hero-puzzle-order {
  from {
    opacity: .35;
    transform: translate(var(--puzzle-x), var(--puzzle-y)) rotate(var(--puzzle-rotate));
  }
  to { opacity: 1; transform: translate(0, 0) rotate(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content.is-animation-ready .hero-solution,
  .hero-content.is-animation-ready .hero-actions { opacity: 0; transform: translateY(8px); }
  .hero-problem[data-problem-motion="flow"].is-motion-active .hero-flow-copy[aria-hidden="true"] { display: inline-block; }
  .hero-problem[data-problem-motion="flow"].is-motion-active .hero-flow-track { animation: hero-problem-flow 3.6s linear both; }
  .hero-problem[data-problem-motion="steps"].is-motion-active { animation: hero-problem-steps 2.35s ease-in-out both; }
  .hero-problem[data-problem-motion="puzzle"].is-motion-active .hero-puzzle-word { animation: hero-puzzle-order .82s cubic-bezier(.22, 1, .36, 1) both; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(1) { --puzzle-x: 38px; --puzzle-y: 9px; --puzzle-rotate: 2deg; animation-delay: .08s; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(2) { --puzzle-x: -18px; --puzzle-y: -7px; --puzzle-rotate: -3deg; animation-delay: .25s; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(3) { --puzzle-x: -46px; --puzzle-y: 8px; --puzzle-rotate: -2deg; animation-delay: .14s; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(4) { --puzzle-x: 24px; --puzzle-y: -8px; --puzzle-rotate: 3deg; animation-delay: .34s; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(5) { --puzzle-x: -22px; --puzzle-y: 7px; --puzzle-rotate: -2deg; animation-delay: .42s; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(6) { --puzzle-x: 30px; --puzzle-y: -6px; --puzzle-rotate: 2deg; animation-delay: .5s; }
  .hero-content.is-animation-ready.is-solution-visible .hero-solution,
  .hero-content.is-animation-ready.is-actions-visible .hero-actions { animation: hero-reveal .55s cubic-bezier(.22, 1, .36, 1) both; }
}

section { padding: 82px 0; }
#leistungen, #arbeitsweise, #ueber-boviit, #kontakt { scroll-margin-top: 24px; }
.section-light { background: linear-gradient(180deg, #f7faff, #fff); }
.section-title { margin: 0 0 44px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.03em; }
.centered { text-align: center; }
.section-kicker { margin-bottom: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); font-size: 13px; font-weight: 900; text-align: center; }
.principles .section-title { margin-bottom: 18px; }
.section-intro { max-width: 780px; margin: 0 auto 44px; color: var(--muted); font-size: clamp(17px, 1.8vw, 19px); line-height: 1.6; text-align: center; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.principle-card { display: grid; grid-template-columns: 70px 1fr; gap: 22px; align-items: start; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.icon-bubble, .service-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: var(--blue); }
.icon-bubble svg, .service-icon svg { width: 34px; height: 34px; fill: currentColor; }
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.principle-card p, .service-card p, .about p { color: var(--muted); }

.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { position: relative; padding: 34px 34px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.service-icon { margin-bottom: 24px; }
.service-card ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; color: #20354f; }
.service-card li { position: relative; padding-left: 28px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--blue); background: radial-gradient(circle at center, var(--blue) 2px, transparent 3px); }

.working { position: relative; color: #fff; background: linear-gradient(105deg, rgba(0,22,46,.96), rgba(0,49,95,.92)), url("assets/working-bg.svg"); background-size: cover; background-position: center; }
.section-photo { aspect-ratio: 16 / 6; margin-block: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #001a36; }
.section-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.invert { color: #fff; }
.working-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; text-align: center; }
.working-grid article { padding: 16px 34px; }
.working-grid article + article { border-left: 1px solid rgba(255,255,255,.28); }
.line-icon { width: 68px; height: 68px; margin: 0 auto 20px; color: #85c2ff; }
.line-icon svg { width: 100%; height: 100%; fill: currentColor; }
.working p { color: rgba(255,255,255,.82); }

.fit { background: #fff; }
.fit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.fit-grid article { padding: 12px 14px; }
.fit-grid article + article { border-left: 1px solid var(--line); }
.mini-icon { display: block; margin-bottom: 16px; color: var(--blue); font-size: 48px; line-height: 1; font-weight: 300; }
.fit p { color: #263b55; font-weight: 650; }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.about h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.about .section-kicker { text-align: left; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.fact-grid div { border-left: 2px solid var(--blue); padding-left: 14px; }
.fact-grid strong { display: block; font-size: 22px; color: var(--blue); }
.fact-grid span { display: block; color: var(--muted); font-size: 14px; }
.about-visual { min-height: 360px; border-radius: 12px; box-shadow: var(--shadow); background-image: linear-gradient(140deg, rgba(0,31,63,.08), rgba(11,97,216,.16)), url("assets/about-visual.svg"); background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.7); }

.contact-cta { color: #fff; background: linear-gradient(105deg, #00162f 0%, #00315f 70%, #0b61d8 100%); padding-bottom: 42px; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: stretch; }
.contact-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -.03em; }
.contact-copy p:not(.eyebrow) { font-size: 18px; color: rgba(255,255,255,.88); max-width: 640px; }
.invert-eyebrow { color: #9cc5ff; }
.ai-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); }
.ai-card h3 { color: #fff; }
.ai-card > h3 { margin-bottom: 22px; font-size: clamp(17px, 4.8vw, 21px); text-align: left; white-space: nowrap; }
.ai-card p { color: rgba(255,255,255,.83); margin-bottom: 20px; }
.ai-assistant-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; margin-bottom: 24px; }
.ai-assistant-copy { display: flex; flex-direction: column; align-items: stretch; }
.ai-assistant-copy > p:first-child { margin: 0 0 20px; }
.ai-assistant-copy .button { margin-top: auto; }
.ai-assistant-layout > img { width: 100%; height: 100%; min-height: 280px; max-height: 320px; object-fit: cover; object-position: center 28%; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
.phone { margin: 12px 0 0 !important; text-align: center; font-weight: 800; color: #fff !important; }
.contact-alternatives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: center; margin-top: 8px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.contact-alternatives-label { margin: 0 !important; color: #fff !important; font-size: 18px; font-weight: 750; }
.contact-alternatives .button-secondary { width: min(100%, 220px); min-width: 0; justify-self: center; border-color: rgba(255,255,255,.52); }
.trust-note { margin-top: 30px; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }

/* Rechtliche Dokumentseiten */
.legal-page { padding: clamp(56px, 8vw, 88px) 0; }
.legal-document { max-width: 820px; }
.legal-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-header .section-kicker { margin-bottom: 12px; text-align: left; }
.legal-header h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.legal-header p:not(.section-kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.legal-document .legal-section { padding: 0; }
.legal-section + .legal-section, .legal-toc + .legal-section { margin-top: 56px; }
.legal-document h2 { margin: 0 0 18px; font-size: clamp(28px, 4vw, 36px); line-height: 1.18; letter-spacing: -.025em; }
.legal-document h3 { margin: 36px 0 12px; font-size: 22px; }
.legal-document h4 { margin: 26px 0 10px; font-size: 17px; line-height: 1.4; }
.legal-document p { color: var(--muted); }
.legal-document p + p { margin-top: 16px; }
.legal-document strong { color: var(--ink); }
.legal-document ul, .legal-document ol { margin: 16px 0 0; padding-left: 24px; color: var(--muted); }
.legal-document li + li { margin-top: 8px; }
.legal-document a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-document a:hover { text-decoration-thickness: 2px; }
.legal-toc { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 20px; padding: 0; list-style: none; }
.legal-toc li, .legal-toc li + li { margin: 0; border-top: 1px solid var(--line); }
.legal-toc a { display: block; padding: 12px 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--blue); text-decoration: none; }
.legal-block { scroll-margin-top: 110px; }
.legal-block + .legal-block { margin-top: 42px; }
.legal-meta { margin-top: 32px !important; font-size: 14px; }

.site-footer { background: #001224; color: rgba(255,255,255,.74); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand img { height: 40px; width: auto; }
.footer-inner nav { display: flex; gap: 28px; }
.footer-inner a:hover { color: #fff; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: var(--header-height); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 12px 24px rgba(6,30,60,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 0; padding: 13px 0; border-radius: 0; background: transparent; color: var(--blue) !important; box-shadow: none; text-align: left; }
  .principle-grid, .service-grid, .working-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .working-grid article + article, .fit-grid article + article { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid article + article { border-top-color: var(--line); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-toc ul { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-height: 72px; }
  .container { width: min(100% - 32px, var(--container)); }
  .site-nav { padding-inline: 16px; }
  .hero-content { padding: 24px 0 60px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero-message { margin-top: 22px; }
  .hero-problem { font-size: 16px; }
  .hero-problem-puzzle { column-gap: .26em; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(1) { --puzzle-x: 18px; --puzzle-y: 6px; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(2) { --puzzle-x: -9px; --puzzle-y: -5px; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(3) { --puzzle-x: -20px; --puzzle-y: 6px; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(4) { --puzzle-x: 12px; --puzzle-y: -5px; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(5) { --puzzle-x: -11px; --puzzle-y: 5px; }
  .hero-problem[data-problem-motion="puzzle"] .hero-puzzle-word:nth-child(6) { --puzzle-x: 14px; --puzzle-y: -4px; }
  .hero-solution { margin-top: 18px; padding-left: 14px; font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section-photo { aspect-ratio: 4 / 3; }
  section { padding: 62px 0; }
  .section-intro { margin-bottom: 36px; text-align: left; }
  .principle-card { grid-template-columns: 1fr; }
  .fit-grid, .fact-grid { grid-template-columns: 1fr; }
  .ai-assistant-layout { grid-template-columns: 1fr; }
  .ai-assistant-layout > img { height: auto; min-height: 0; max-height: none; aspect-ratio: 1; }
  .contact-alternatives { grid-template-columns: 1fr; }
  .contact-alternatives .button-secondary { width: 100%; min-width: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { display: none; }
}
