@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1122;
  --ink-2: #131c36;
  --blue: #1f4bff;
  --blue-dark: #1236d6;
  --blue-soft: #e8edff;
  --text: #141a2b;
  --muted: #5a6275;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --line: #e3e7f0;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --header-h: 76px;
  --shadow-lg: 0 2px 6px rgba(11, 17, 34, .06), 0 24px 48px rgba(11, 17, 34, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.12; color: var(--ink); margin: 0 0 .55em; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }
.section--flush { padding-top: 0; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px;
}
.skip:focus { left: 10px; top: 10px; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 24px; flex-wrap: wrap; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px;
}
.logo { display: block; flex: none; transition: transform .3s var(--ease); }
.logo:hover { transform: scale(1.03); }
.logo img { width: 190px; height: auto; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 9px 16px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--blue); }
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .nav-cta {
  margin-left: 8px; background: var(--ink); color: #fff; padding: 10px 20px;
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] {
  background: var(--blue); color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 75, 255, .35);
}

/* Schatten unter der Kopfzeile, sobald gescrollt wird (reines CSS) */
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-shadow linear both; animation-timeline: scroll(); animation-range: 0 120px; }
  @keyframes header-shadow {
    to { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 17, 34, .06); }
  }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; padding-top: 12px; padding-bottom: 12px; }
  .logo img { width: 170px; }
  .nav { width: 100%; }
  .nav ul { justify-content: center; gap: 6px; }
  .nav a { padding: 7px 13px; font-size: .92rem; background: var(--bg-alt); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav a[aria-current="page"]:not(.nav-cta) { background: var(--blue-soft); }
  .nav .nav-cta { margin-left: 0; padding: 7px 15px; }
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0;
  background: var(--blue); color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 75, 255, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(31, 75, 255, .36); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn--light:hover { background: #fff; color: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--glass {
  background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .26); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ Hero (Startseite)
   Randlos über die volle Breite. Ist das Fenster flacher als 16:9, wird oben am
   Himmel beschnitten, nicht an Gebäude und Autos (Fokus je Foto per
   object-position). Auf schmalen Bildschirmen steht der Titel unter dem Foto. */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.hero-slides picture, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img {
  object-fit: cover; object-position: 50% 75%;
  /* Langsamer Zoom, Ursprung im Fokus der Fotos */
  transform-origin: 50% 80%; animation: kenburns 21s ease-in-out infinite alternate;
}
.hero-slides picture:nth-child(3) img { object-position: 50% 82%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
/* Bild 1 bleibt stehen, 2 und 3 werden nacheinander darüber eingeblendet. */
.hero-slides picture:nth-child(2) { opacity: 0; animation: hero-2 21s infinite; }
.hero-slides picture:nth-child(3) { opacity: 0; animation: hero-3 21s infinite; }
@keyframes hero-2 { 0%, 28% { opacity: 0; } 33%, 61% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes hero-3 { 0%, 61% { opacity: 0; } 66%, 94% { opacity: 1; } 100% { opacity: 0; } }

.hero-content { text-align: center; padding: 28px 0 40px; }
.hero h1 { color: #fff; margin: 0 0 .5em; font-size: 2.1rem; }
.hero .btn-row { justify-content: center; }

@media (min-width: 761px) {
  .hero-slides {
    aspect-ratio: auto;
    height: calc(100vh - var(--header-h));
    height: clamp(460px, calc(100svh - var(--header-h)), 56.25vw);
  }
  .hero-slides::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(to bottom, rgba(11, 17, 34, .72) 0%, rgba(11, 17, 34, .28) 24%, rgba(11, 17, 34, 0) 42%),
      linear-gradient(to top, rgba(11, 17, 34, .35) 0%, rgba(11, 17, 34, 0) 18%);
  }
  .hero-content {
    position: absolute; top: 0; left: 0; right: 0; z-index: 1;
    padding: clamp(24px, 3.2vw, 48px) 0 0;
  }
  .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin-bottom: .4em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
}

/* Einblenden beim Laden */
.fade-up { animation: fade-up .9s var(--ease) both; }
.fade-up.d1 { animation-delay: .15s; }
.fade-up.d2 { animation-delay: .3s; }
@keyframes fade-up { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: none; } }

/* Scroll-Hinweis */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 1; margin-left: -13px;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .8);
  display: none;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 761px) { .scroll-cue { display: block; } }

/* ------------------------------------------------------------------ Seitentitel (Unterseiten) */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
}
.page-head::before, .page-head::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px);
}
.page-head::before {
  width: 520px; height: 520px; right: -120px; top: -220px;
  background: radial-gradient(circle, rgba(31, 75, 255, .75), rgba(31, 75, 255, 0) 70%);
  animation: glow 12s ease-in-out infinite alternate;
}
.page-head::after {
  width: 420px; height: 420px; left: -160px; bottom: -260px;
  background: radial-gradient(circle, rgba(96, 165, 250, .45), rgba(96, 165, 250, 0) 70%);
  animation: glow 14s ease-in-out infinite alternate-reverse;
}
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { margin: .8em 0 0; color: #c3cbe0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; }
.page-head .eyebrow { color: #8fa6ff; }

/* ------------------------------------------------------------------ Startseite */
.about { display: grid; gap: clamp(24px, 5vw, 72px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; }
.about h2 { margin: 0; }
.about p { margin-bottom: 1.6em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.services { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; margin: 0; padding: 0; }
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px; font-weight: 700; font-size: 1.08rem; line-height: 1.35; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: var(--blue-soft); color: var(--blue);
  transition: background-color .35s, color .35s, transform .35s var(--ease);
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .icon, .card:hover .icon { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }
.services > li:has(> .service--more) { display: flex; }
.service--more { flex: 1; background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; }
.service--more:hover { color: #fff; }
.service--more .icon { background: rgba(255, 255, 255, .12); color: #fff; }
.service--more:hover .icon { background: var(--blue); transform: translateX(4px); }
@media (max-width: 560px) {
  .services { gap: 12px; }
  .service { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; font-size: 1rem; }
  .icon { width: 46px; height: 46px; border-radius: 12px; }
}

.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 55%, #4f7bff 100%);
  color: #fff; padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta::before {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%);
  animation: glow 10s ease-in-out infinite alternate;
}
.cta h2 { color: #fff; margin: 0; max-width: 640px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

/* ------------------------------------------------------------------ Karten allgemein */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon { margin-bottom: 20px; }
.card p:last-child { margin-bottom: 0; }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ------------------------------------------------------------------ Leistungen */
.feature { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.photo-frame { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; transition: transform 1.2s var(--ease); }
.photo-frame:hover img { transform: scale(1.04); }
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.features .card { position: relative; }
.card .num {
  position: absolute; top: 24px; right: 28px; font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--line); letter-spacing: -.04em; transition: color .35s;
}
.card:hover .num { color: var(--blue-soft); }

.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.dark-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #c3cbe0; border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 64px);
  display: grid; gap: 24px 48px; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center;
}
.dark-panel h2 { color: #fff; }
.dark-panel p { margin: 0; }
.dark-panel::before {
  content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; left: -140px; bottom: -300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(31, 75, 255, .6), rgba(31, 75, 255, 0) 70%);
  animation: glow 12s ease-in-out infinite alternate;
}
@media (max-width: 760px) { .dark-panel { grid-template-columns: 1fr; } }
.partner {
  background: var(--ink); border-radius: calc(var(--radius) + 4px);
  padding: clamp(36px, 6vw, 64px); display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.partner-logo { max-width: 380px; width: 100%; }

/* ------------------------------------------------------------------ Team */
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.member-photo { position: relative; aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-body { padding: 24px 26px 28px; }
.member h2, .member-slim h2 { font-size: 1.35rem; margin-bottom: .3em; }
.member .role, .member-slim .role { font-weight: 700; color: var(--blue); margin-bottom: .5em; font-size: .98rem; line-height: 1.5; }
.member p, .member-slim p { color: var(--muted); margin-bottom: 0; }
.member p + p { margin-top: .5em; }
/* Teammitglieder ohne Foto: schlanke Karte */
.team-more { display: grid; gap: 16px; margin-top: 24px; }
.team-more:empty { display: none; }
.member-slim {
  position: relative; overflow: hidden;
  background: var(--bg-alt); border-radius: var(--radius); padding: 22px 28px 22px 32px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px;
}
.member-slim::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--blue), #60a5fa); }
.member-slim h2, .member-slim .role { margin: 0; }
@media (max-width: 760px) {
  .team, .team-more { max-width: 440px; margin-left: auto; margin-right: auto; }
}

/* ------------------------------------------------------------------ Kontakt */
.contact-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.contact-side { display: grid; gap: 24px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a {
  display: flex; gap: 14px; align-items: center; color: var(--text); text-decoration: none; font-weight: 600;
  padding: 10px; margin: -10px; border-radius: var(--radius-sm); transition: background-color .25s, color .25s;
}
.contact-list a:hover { background: var(--bg-alt); color: var(--blue); }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .icon svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.contact-list a:hover .icon { background: var(--blue); color: #fff; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 700; padding-right: 16px; color: var(--ink); }
.hours td { color: var(--muted); }

/* Kontaktformular */
.contact-form { display: grid; gap: 18px; margin-top: 12px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-alt);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 13px 16px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 75, 255, .14);
}
.field textarea { resize: vertical; min-height: 160px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.6em; font-size: 1.12rem; }
.legal p, .legal li { overflow-wrap: anywhere; color: #2d3446; }
.legal address { font-style: normal; margin-bottom: 1em; }

/* ------------------------------------------------------------------ Footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #aab3c8; padding: clamp(56px, 8vw, 88px) 0 32px; font-size: .96rem; }
.site-footer::before {
  content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; top: -380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(31, 75, 255, .35), rgba(31, 75, 255, 0) 70%);
}
.site-footer a { color: #fff; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #8fa6ff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 48px; }
.site-footer h2 { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 .5em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }

/* ------------------------------------------------------------------ Scroll-Animationen
   Rein per CSS (scroll-driven animations). Browser ohne Unterstützung zeigen
   alles sofort an. Animiert werden translate/scale statt transform, damit die
   Hover-Effekte (transform) nicht überschrieben werden. */
@supports (animation-timeline: view()) {
  .reveal, .reveal-stagger > * {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .reveal-zoom {
    animation: reveal-zoom linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
  @keyframes reveal { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: none; } }
  @keyframes reveal-zoom { from { opacity: 0; scale: .92; } to { opacity: 1; scale: none; } }
}

/* ------------------------------------------------------------------ Seitenwechsel
   Weiche Übergänge zwischen den Seiten (cross-document view transitions).
   Die Kopfzeile bleibt stehen, der Inhalt blendet über. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: header; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; translate: 0 -16px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 24px; } }

/* ------------------------------------------------------------------ Überschriften wortweise */
.words .w { display: inline-block; animation: word-in 1s var(--ease) both; animation-delay: .05s; }
.words .w:nth-child(2) { animation-delay: .15s; }
.words .w:nth-child(3) { animation-delay: .25s; }
.words .w:nth-child(4) { animation-delay: .35s; }
.words .w:nth-child(5) { animation-delay: .45s; }
.words .w:nth-child(n+6) { animation-delay: .55s; }
@keyframes word-in {
  from { opacity: 0; translate: 0 .55em; rotate: 4deg; filter: blur(10px); }
  to { opacity: 1; translate: none; rotate: none; filter: none; }
}

/* Punkteraster in den Seitenköpfen, wandert langsam */
.page-head {
  background:
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.5px) 0 0 / 26px 26px,
    var(--ink);
  animation: dots 18s linear infinite;
}
@keyframes dots { to { background-position: 26px 52px, 0 0; } }

/* ------------------------------------------------------------------ Buttons: Lichtreflex */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -75%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn--light::before, .btn--ghost::before { background: linear-gradient(100deg, transparent, rgba(31, 75, 255, .18), transparent); }
.btn:hover::before { left: 130%; transition: left .8s var(--ease); }

/* ------------------------------------------------------------------ Karten */
/* Leistungs-Icons: Linien werden beim Hover neu gezeichnet */
.icon--draw svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.service:hover .icon--draw svg *, .card:hover .icon--draw svg * { animation: draw .9s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Umlaufender Farbverlauf als Rahmen beim Hover */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.features .card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--blue), #60a5fa, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s; animation: spin 3.5s linear infinite paused;
}
.features .card:hover::before { opacity: 1; animation-play-state: running; }
@keyframes spin { to { --angle: 360deg; } }

/* Kontakt-Kasten: Farbverlauf wandert */
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue), #4f7bff, #60a5fa, var(--blue));
  background-size: 300% 300%; animation: gradient-shift 12s ease-in-out infinite alternate;
}
@keyframes gradient-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ------------------------------------------------------------------ Scroll-Effekte (Teil 2) */
@supports (animation-timeline: scroll()) {
  /* Lesefortschritt oben am Fensterrand */
  body::before {
    content: ""; position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), #60a5fa); transform-origin: left; pointer-events: none;
    animation: progress linear both; animation-timeline: scroll(root);
  }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* Startbild: Parallaxe, Titel verabschiedet sich nach oben */
  @media (min-width: 761px) {
    .hero-slides { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hero-parallax { to { translate: 0 28vh; } }
    .hero-content, .scroll-cue { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
    @keyframes hero-out { to { opacity: 0; translate: 0 -48px; } }
  }
}

@supports (animation-timeline: view()) {
  /* Leistungs-Icons zeichnen sich beim Hereinscrollen */
  /* Zeitleiste am Icon selbst, SVG-Formen haben keine eigene CSS-Box */
  .icon--draw { view-timeline: --icon; }
  .icon--draw svg * { animation: draw linear both; animation-timeline: --icon; animation-range: entry 30% cover 45%; }
  .service:hover .icon--draw svg *, .card:hover .icon--draw svg * { animation: draw .9s var(--ease) both; }

  /* Karten in einer Reihe nacheinander */
  .reveal-stagger > :nth-child(4n+2) { animation-range: entry 10% entry 70%; }
  .reveal-stagger > :nth-child(4n+3) { animation-range: entry 20% entry 80%; }
  .reveal-stagger > :nth-child(4n+4) { animation-range: entry 30% entry 90%; }

  /* Fotos: Parallaxe im Rahmen, Teamfotos wischen auf */
  .photo-frame img { animation: parallax linear both; animation-timeline: view(); }
  @keyframes parallax { from { scale: 1.14; translate: 0 -5%; } to { scale: 1.14; translate: 0 5%; } }
  .member-photo { animation: wipe linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  .member-photo img { animation: settle linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
  @keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  @keyframes settle { from { scale: 1.25; } to { scale: 1; } }

  /* Fußzeile */
  .footer-grid > * { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .footer-grid > :nth-child(2) { animation-range: entry 10% entry 90%; }
  .footer-grid > :nth-child(3) { animation-range: entry 20% entry 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-slides picture:not(:first-child) { display: none; }
  body::before { display: none; }
  html { scroll-behavior: auto; }
}
