/* ============================================================
   CON Sicherheit & Service GmbH, Designsystem "Dark Premium"
   Farben und Schriften gemaess Markenwelt (07_Marketing, 24.07.2026)
   Keine externen Requests: Schriften und Bilder liegen lokal.
   ============================================================ */

/* ---------- Schriften (lokal, DSGVO-sauber) ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --bg: #08192a;
  --bg-2: #0a2032;
  --panel: #0d2740;
  --line: rgba(159, 180, 198, 0.16);
  --line-strong: rgba(159, 180, 198, 0.3);
  --text: #eef4f9;
  --muted: #9fb4c6;
  --blue: #2aa9e0;
  --blue-strong: #1c9ad6;
  --radius: 2px;
  --nav-h: 60px;
  --w: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sanfter Uebergang zwischen den Seiten (View Transitions, progressive) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
  animation-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01s;
  }
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--text);
}
h1,
h2,
h3 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
.muted {
  color: var(--muted);
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection {
  background: var(--blue);
  color: var(--bg);
}

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 104px 0;
}
section.tight {
  padding: 72px 0;
}
.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}
.section-head p {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Buttons ---------- */
/* Formregel der Seite: Interaktives ist rund (Pill), Flaechen sind scharf. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.32s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.32s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.btn-primary {
  background: var(--blue);
  color: #06141f;
  box-shadow: 0 0 0 0 rgba(42, 169, 224, 0);
}
.btn-primary:hover {
  background: var(--blue-strong);
  color: #06141f;
  box-shadow: 0 6px 24px -8px rgba(42, 169, 224, 0.45);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(8, 25, 42, 0.82);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 244, 249, 0.14), transparent);
}
@supports (backdrop-filter: blur(12px)) {
  .nav {
    background: rgba(8, 25, 42, 0.42);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
}
.nav[data-scrolled] {
  background: rgba(8, 25, 42, 0.72);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.55);
}
.nav-logo img {
  transition: transform 0.3s var(--ease);
  transform-origin: left center;
}
.nav[data-scrolled] .nav-logo img {
  transform: scale(0.88);
}
.nav-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-links a:not(.btn) {
  font-size: 0.92rem;
}
.nav-links .btn {
  padding: 9px 18px;
  font-size: 0.88rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}
.nav-links .btn {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span {
  top: 21px;
}
.nav-toggle span::before {
  left: 0;
  top: -6px;
}
.nav-toggle span::after {
  left: 0;
  top: 6px;
}
.nav.open .nav-toggle span {
  background: transparent;
}
.nav.open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav.open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(8, 25, 42, 0.96) 0%,
      rgba(8, 25, 42, 0.88) 34%,
      rgba(8, 25, 42, 0.55) 62%,
      rgba(8, 25, 42, 0.35) 100%
    ),
    linear-gradient(to top, rgba(8, 25, 42, 0.9) 0%, transparent 35%);
}
.hero-content {
  max-width: 640px;
}
.hero-content h1 {
  margin-bottom: 0.5em;
}
.hero-content .lead {
  margin-bottom: 2em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Unterseiten-Kopf ---------- */
.page-head {
  padding: calc(var(--nav-h) + 88px) 0 64px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--bg-2), var(--bg));
  text-align: center;
}
.page-head h1 {
  letter-spacing: -0.028em;
}
.page-head .lead {
  margin: 0 auto;
}

/* ---------- Leistungs-Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  background: var(--panel);
}
.tile-7 {
  grid-column: span 7;
  min-height: 420px;
}
.tile-5 {
  grid-column: span 5;
  min-height: 420px;
}
.tile-4 {
  grid-column: span 4;
}
.tile {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.tile:active {
  transform: translateY(-1px) scale(0.995);
  transition-duration: 0.1s;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile:hover img {
  transform: scale(1.045);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 28, 0.92) 0%, rgba(6, 17, 28, 0.25) 45%, transparent 70%);
}
.tile-body {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.tile-body h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44ch;
}
.tile-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.more-services {
  margin-top: 0;
  padding: 40px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: baseline;
  justify-content: center;
  background: var(--bg);
}
.more-services span {
  color: var(--muted);
  font-size: 0.95rem;
}
.more-services a {
  font-weight: 500;
  color: var(--text);
}
.more-services a:hover {
  color: var(--blue);
}

/* ---------- Vertrauensanker ---------- */
.anchors {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.anchors-intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.anchor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.anchor-list li {
  padding: 26px 0 26px 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.anchor-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  width: 10px;
  height: 2px;
  background: var(--blue);
}
.anchor-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.anchor-list h3 {
  margin: 0 0 4px;
}
.anchor-list p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Einheitliche Bildsprache (Grading) ---------- */
.hero-bg img,
.tile img,
.split-media img,
.service-band > img {
  filter: saturate(0.82) contrast(1.06) brightness(0.97);
}

/* ---------- Split-Sektionen (Text + Bild) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.flip > .split-media {
  order: -1;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 25, 42, 0.16), rgba(8, 25, 42, 0.04));
  pointer-events: none;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.split-body h2 {
  margin-bottom: 0.5em;
}
.split-body p {
  color: var(--muted);
}
.split-body .btn {
  margin-top: 12px;
}
.check-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- Statement-Band ---------- */
.statement {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement .wrap {
  max-width: 900px;
  text-align: center;
}
.statement p.big {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}
.statement p.big em {
  font-style: normal;
  color: var(--blue);
}
.statement .sub {
  margin: 18px 0 0;
  color: var(--muted);
}

/* ---------- CTA-Band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  background: linear-gradient(120deg, var(--bg-2) 0%, var(--bg) 70%);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.cta-grid h2 {
  margin-bottom: 0.35em;
}
.cta-grid p {
  margin: 0;
  color: var(--muted);
}
.cta-contact {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.cta-contact a.line {
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
}
.cta-contact a.line:hover {
  color: var(--blue);
}
.cta-contact .hint {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Leistungsseite ---------- */
.service {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-of-type {
  border-bottom: none;
}
.service .split {
  gap: 64px;
}
.service h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.service .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.service .tags span {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.service-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.service-duo article {
  border-top: 2px solid var(--blue);
  padding-top: 28px;
}
.service-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
}
.service-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 28, 0.94) 0%, rgba(6, 17, 28, 0.4) 50%, rgba(6, 17, 28, 0.1) 80%);
}
.service-band .band-body {
  position: relative;
  z-index: 1;
  padding: 40px;
  max-width: 640px;
}
.service-band h2 {
  margin-bottom: 0.4em;
}
.service-band p {
  color: var(--muted);
  margin: 0;
}
@media (max-width: 768px) {
  .service-band .band-body {
    padding: 24px;
  }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 72px;
  align-items: start;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 36px;
  margin-bottom: 20px;
}
.contact-card h3 {
  margin-bottom: 8px;
}
.contact-card p {
  margin: 0 0 4px;
  color: var(--muted);
}
.contact-card a.line {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 10px 0 2px;
}
.contact-card a.line:hover {
  color: var(--blue);
}
address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Formular ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(8, 25, 42, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(159, 180, 198, 0.55);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 169, 224, 0.25);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
  flex: none;
}
.form-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 6px 0 0;
}
.form-status {
  border: 1px solid var(--blue);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(42, 169, 224, 0.08);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.form-status.fehler {
  border-color: #e2a65a;
  background: rgba(226, 166, 90, 0.08);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Logo (Vektor-Fassung) ---------- */
.logo-svg {
  display: block;
  color: var(--text);
}
.nav-logo .logo-svg {
  height: 46px;
  width: auto;
  transition: transform 0.3s var(--ease);
  transform-origin: left center;
}
.nav[data-scrolled] .nav-logo .logo-svg {
  transform: scale(0.9);
}
.foot-grid .logo-svg {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

/* ---------- Prosa (Impressum, Datenschutz) ---------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose strong {
  color: var(--text);
}
.prose ul {
  padding-left: 1.2em;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  gap: 48px;
  align-items: start;
}
.foot-grid img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}
.foot-grid p,
.foot-grid address {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 6px;
}
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.foot-links a {
  color: var(--muted);
  display: inline-block;
  padding: 6px 0;
  min-height: 32px;
}
.foot-links a:hover {
  color: var(--text);
}
@media (pointer: coarse) {
  .foot-links a {
    padding: 10px 0;
  }
}
.foot-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-base p {
  margin: 0;
}

/* ---------- Buehnen (zentrierte Vollbild-Abschnitte) ---------- */
.stage {
  padding: 112px 0 0;
  text-align: center;
  overflow: hidden;
}
.stage .wrap {
  max-width: 820px;
}
.stage h1,
.stage h2 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin-bottom: 0.25em;
}
.stage .sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 auto 1.4em;
  line-height: 1.45;
}
.stage-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.stage-media {
  max-width: 1400px;
  margin: 0 auto;
}
.stage-media img {
  width: 100%;
  display: block;
}
.stage.dark {
  background: var(--bg);
}
.stage.dark .stage-media {
  position: relative;
}
.stage.dark .stage-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg), transparent);
}
.stage.light {
  background: #eef2f6;
}
.stage.light h1,
.stage.light h2 {
  color: #0a1c2e;
}
.stage.light .sub {
  color: #51667a;
}
.stage.light .btn-ghost {
  border-color: rgba(10, 28, 46, 0.3);
  color: #0a1c2e;
}
.stage.light .btn-ghost:hover {
  border-color: var(--blue-strong);
  color: var(--blue-strong);
}

/* Kachelraster unter den Buehnen */
.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  max-width: 1428px;
  margin: 0 auto;
  background: var(--bg);
}
.stage-cell {
  text-align: center;
  padding: 72px 24px 0;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.stage-cell.dark {
  background: var(--bg-2);
}
.stage-cell.light {
  background: #eef2f6;
}
.stage-cell h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
}
.stage-cell.light h3 {
  color: #0a1c2e;
}
.stage-cell p {
  color: var(--muted);
  max-width: 40ch;
  margin: 0 auto 1.2em;
}
.stage-cell.light p {
  color: #51667a;
}
.stage-cell .cell-links {
  margin-bottom: 40px;
}
.stage-cell .cell-media {
  margin-top: auto;
}
.stage-cell .cell-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.arrow-link {
  font-weight: 600;
  color: var(--blue);
}
.arrow-link::after {
  content: " \203A";
}
.arrow-link:hover {
  text-decoration: underline;
  color: var(--blue);
}

/* Ruhige zentrierte Punkte-Sektion */
.quiet-points {
  background: #eef2f6;
  color: #0a1c2e;
  text-align: center;
  padding: 112px 0;
}
.quiet-points h2 {
  color: #0a1c2e;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.024em;
  margin-bottom: 1.2em;
}
.points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.points-grid h3 {
  color: #0a1c2e;
  margin-bottom: 4px;
}
.points-grid p {
  color: #51667a;
  margin: 0;
}

@media (max-width: 900px) {
  .stage-grid {
    grid-template-columns: 1fr;
  }
  .points-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .stage-cell {
    min-height: 480px;
  }
}

/* Heller Footer */
footer.light {
  background: #eef2f6;
  border-top: 1px solid rgba(10, 28, 46, 0.12);
}
footer.light .foot-grid p,
footer.light address,
footer.light .foot-links a,
footer.light .foot-base {
  color: #51667a;
}
footer.light .foot-links a:hover,
footer.light a:hover {
  color: #0a1c2e;
}
footer.light .foot-base {
  border-top-color: rgba(10, 28, 46, 0.12);
}
footer.light a {
  color: #2a7fb0;
}

/* ---------- Filmkorn ueber dunklen Flaechen (fein, fixiert) ---------- */
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* ---------- Zahlen-Band (belegte Werte, zaehlt beim Scrollen hoch) ---------- */
.stat-band {
  background: var(--bg);
  padding: 88px 0;
  text-align: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-grid .num {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.stat-grid .num em {
  font-style: normal;
  color: var(--blue);
}
.stat-grid .label {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.98rem;
}
@media (max-width: 700px) {
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Dezente Glut an Schluesselstellen ---------- */
.cta-band {
  position: relative;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 220px at 78% 50%, rgba(42, 169, 224, 0.12), transparent 70%);
}
.statement p.big em {
  text-shadow: 0 0 24px rgba(42, 169, 224, 0.45);
}

/* ---------- Leitsatz: Wort-fuer-Wort-Einblendung ---------- */
.statement .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.statement .wrap.in .w {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .statement .w {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.992);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.reveal.d1 {
  transition-delay: 0.07s;
}
.reveal.d2 {
  transition-delay: 0.14s;
}
.reveal.d3 {
  transition-delay: 0.21s;
}

/* Hero-Bild driftet sanft mit dem Scrollen (nur wo unterstuetzt) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg img {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120vh;
    }
    @keyframes hero-drift {
      from {
        transform: translateY(0) scale(1.06);
      }
      to {
        transform: translateY(9%) scale(1.06);
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tile img,
  .btn,
  .nav,
  .nav-logo img,
  .nav-links {
    transition: none;
  }
}

/* Weniger Transparenz gewuenscht: Chrome wird frostig-solide */
@media (prefers-reduced-transparency: reduce) {
  .nav,
  .nav[data-scrolled] {
    background: var(--bg-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    background: var(--bg-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Mehr Kontrast gewuenscht: kraeftigere Linien und hellerer Nebentext */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(159, 180, 198, 0.4);
    --line-strong: rgba(159, 180, 198, 0.65);
    --muted: #c3d2df;
  }
  .nav {
    background: var(--bg-2);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tile-7,
  .tile-5 {
    grid-column: span 6;
  }
  .tile-4 {
    grid-column: span 6;
  }
  .tile-4:last-of-type {
    grid-column: span 12;
    min-height: 260px;
  }
  .anchors {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .anchors-intro {
    position: static;
  }
  .split,
  .service .split,
  .contact-grid,
  .service-duo {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.flip > .split-media {
    order: 0;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(9, 27, 44, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0s linear 0.26s;
  }
  .nav.open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
  }
  .nav-links li {
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }
  .nav-links .btn {
    margin-left: 0;
    justify-content: center;
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    min-height: auto;
    padding-bottom: 88px;
  }
  .hero-bg img {
    object-position: 70% 40%;
  }
  .tile-7,
  .tile-5,
  .tile-4,
  .tile-4:last-of-type {
    grid-column: span 12;
    min-height: 300px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-card {
    padding: 28px;
  }
}
