/* =========================================================
   Mustermann Sicherheitstechnik – Demo 5 „CI modernisiert“
   Nachtblau #0C1248 · Signalgrün #A5BA01 · Teko + Open Sans
   ========================================================= */

/* ---------- Tokens + Bootstrap-Variablen ---------- */
:root {
  color-scheme: light;

  --navy: #0C1248;
  --navy-2: #151C5C;
  --navy-3: #1A2370;
  --lime: #A5BA01;
  --lime-hover: #B5CC0E;
  --lime-text: #5A6600;   /* Grün als Textfarbe auf Hell (6,3 : 1) */
  --white: #FFFFFF;
  --surface: #F5F7FB;
  --ink: #0C1248;
  --muted: #4A5078;
  --on-navy: #C9CDE3;
  --on-navy-2: #9EA4C6;
  --line: #E4E8F2;
  --line-strong: #8A91B4;

  --radius-lg: 1.5rem;
  --radius-md: 1.25rem;
  --shadow-card: 0 24px 50px -24px rgba(12, 18, 72, .35);
  --shadow-float: 0 30px 60px -28px rgba(12, 18, 72, .3);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 84px;

  --font-head: "Teko", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: var(--muted);
  --bs-body-bg: var(--white);
  --bs-primary: #0C1248;
  --bs-primary-rgb: 12, 18, 72;
  --bs-link-color: var(--navy);
  --bs-link-color-rgb: 12, 18, 72;
  --bs-link-hover-color: var(--navy-3);
  --bs-link-hover-color-rgb: 26, 35, 112;
  --bs-border-color: var(--line);
  --bs-heading-color: var(--navy);
  --bs-emphasis-color: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { color: var(--navy); }

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.6rem, 1.55rem + 3.2vw, 4.4rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

h3 { text-wrap: balance; }

.hl {
  background: linear-gradient(transparent 60%, rgba(165, 186, 1, .45) 60% 86%, transparent 86%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime-text);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
}
.eyebrow-on-dark { color: var(--lime); }

.lead-text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

/* ---------- Icons ---------- */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Fokus & Skip-Link ---------- */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-focus-box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { transition: transform .25s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.btn-signal {
  background: var(--lime);
  border: 0;
  color: var(--navy);
}
.btn-signal:hover,
.btn-signal:focus-visible {
  background: var(--lime-hover);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(165, 186, 1, .75);
}
.btn-signal:focus-visible { outline-color: var(--navy); }
.btn-signal:active { background: var(--lime) !important; color: var(--navy) !important; }

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: var(--white);
}
.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  border: 0;
  color: var(--white);
}
.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-3);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(12, 18, 72, .7);
}

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover,
.btn-outline-navy:focus-visible {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-navy:hover .icon { transform: translate(2px, -2px); }

.btn-sm-pill { padding: .72rem 1.3rem; font-size: .78rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
  transition: text-decoration-color .25s, color .25s;
}
.link-arrow .icon { transition: transform .25s var(--ease-out); }
.link-arrow:hover { color: var(--navy); text-decoration-color: var(--lime); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background-color .3s;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); }
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -12px rgba(12, 18, 72, .18);
}

.site-header .navbar {
  min-height: var(--header-h);
  padding-block: .75rem;
  padding-top: max(.75rem, env(safe-area-inset-top));
}
.navbar-brand { padding: 0; margin-right: 2rem; }
.brand-logo { display: block; height: 46px; width: auto; }

.site-header .nav-link {
  position: relative;
  padding: .55rem .85rem !important;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  transition: color .2s;
}
.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .15rem;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after,
.site-header .nav-link.show::after { transform: scaleX(1); }
.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .nav-link.show { color: var(--navy); }
.site-header .dropdown-toggle::after {
  /* Bootstrap-Pfeil ersetzen: eigener Chevron über ::before */
  display: none;
}
.site-header .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.site-header .dropdown-toggle::before {
  content: "";
  order: 2;
  width: .45rem;
  height: .45rem;
  margin-top: -.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ease-out), margin .25s;
}
.site-header .dropdown-toggle.show::before { transform: rotate(-135deg); margin-top: .25rem; }
/* Unterstrich bei Dropdown-Buttons über eigenes Element nicht nötig – Hover-Farbe reicht */
.site-header .dropdown-toggle { padding-right: .85rem !important; }

.dropdown-menu {
  --bs-dropdown-min-width: 15rem;
  --bs-dropdown-padding-y: .5rem;
  --bs-dropdown-padding-x: .5rem;
  --bs-dropdown-border-width: 0;
  --bs-dropdown-border-radius: 1rem;
  --bs-dropdown-box-shadow: 0 24px 50px -18px rgba(12, 18, 72, .35);
  --bs-dropdown-link-color: var(--navy);
  --bs-dropdown-link-hover-color: var(--navy);
  --bs-dropdown-link-hover-bg: var(--surface);
  --bs-dropdown-link-active-color: var(--navy);
  --bs-dropdown-link-active-bg: rgba(165, 186, 1, .25);
  --bs-dropdown-item-padding-x: .9rem;
  --bs-dropdown-item-padding-y: .6rem;
  box-shadow: var(--bs-dropdown-box-shadow);
}
.dropdown-item {
  border-radius: .65rem;
  font-weight: 600;
  font-size: .95rem;
  transition: background-color .2s, padding .2s;
}
.dropdown-item:hover { padding-left: 1.15rem; }

@media (min-width: 1200px) {
  .site-header .dropdown-menu {
    margin-top: .75rem !important;
    animation: drop-in .25s var(--ease-out);
  }
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.navbar-toggler {
  border: 0;
  padding: .6rem;
  border-radius: .75rem;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bars { display: grid; gap: 5px; width: 28px; }
.toggler-bars span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .site-header .navbar-collapse {
    margin-top: .75rem;
    padding-block: .75rem 1.25rem;
    border-top: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-header .nav-link { padding: .8rem .25rem !important; font-size: 1.05rem; }
  .site-header .nav-link::after { left: .25rem; right: auto; width: 2rem; bottom: .45rem; }
  .site-header .dropdown-menu { box-shadow: none; background: var(--surface); margin-bottom: .5rem; }
  .site-header .btn-signal { margin-top: 1rem; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
}

.hero-media {
  background: var(--lime);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
}

.hero-inner { position: relative; z-index: 2; }

.hero-copy {
  padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(5.5rem, 10vw, 9rem);
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(3.6rem, 1.6rem + 6vw, 7.25rem);
  line-height: .84;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title span { display: block; color: var(--lime); }

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.7;
  color: var(--on-navy);
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-phone {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 2.25rem 0 0;
  font-size: .95rem;
  color: var(--on-navy);
}
.hero-phone .icon { color: var(--lime); }
.hero-phone a {
  color: var(--white);
  font-weight: 700;
  text-decoration-color: var(--lime);
  text-underline-offset: .25em;
}

/* Desktop: Bild rechts mit schrägem Anschnitt wie in der Vorlage */
@media (min-width: 992px) {
  .hero { min-height: clamp(600px, 86vh, 860px); display: flex; align-items: center; }
  .hero-inner { width: 100%; }
  .hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 52%;
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero-media img { clip-path: polygon(18.2% 0, 100% 0, 100% 100%, 1.2% 100%); }
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 18, 72, .45) 0%, rgba(12, 18, 72, 0) 38%);
    pointer-events: none;
  }
}
@media (min-width: 1200px) {
  .hero-media { width: 58%; }
}

/* Mobil/Tablet: Bild unter dem Text, schräge Oberkante */
@media (max-width: 991.98px) {
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; }
  .hero-copy { padding-bottom: 2.5rem; }
  .hero-media {
    order: 2;
    position: relative;
    aspect-ratio: 4 / 3;
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  }
  .hero-media img { clip-path: polygon(0 15.6%, 100% 1.6%, 100% 100%, 0 100%); }
}

/* ---------- Vertrauensleiste ---------- */
.trust-wrap {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
}
.trust-card {
  list-style: none;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}
.trust-item { display: flex; align-items: flex-start; gap: .9rem; }
.trust-item strong { display: block; color: var(--navy); font-weight: 700; line-height: 1.3; margin-bottom: .2rem; }
.trust-item small { display: block; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.trust-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lime) 22%, var(--white));
  color: var(--navy);
}
.trust-icon .icon { width: 1.35rem; height: 1.35rem; }

@media (max-width: 991.98px) {
  .trust-wrap { margin-top: -2rem; }
  .trust-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .trust-card { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.section-surface { background: var(--surface); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head > div { flex: 1 1 26rem; min-width: 0; }
.section-head > .section-intro { flex: 0 1 32rem; }
.section-head > .link-arrow { flex: 0 0 auto; }
.section-head h2 { margin-bottom: 0; }
.section-head-center { justify-content: center; text-align: center; }
.section-intro {
  max-width: 34rem;
  margin: 0;
  font-size: 1.075rem;
  color: var(--muted);
}

/* ---------- Leistungen ---------- */
.service-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}
.service-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.06); }

.service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1.6rem 1.6rem;
}
.service-body p { flex: 1; margin-bottom: 1.1rem; }
.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-top: -1.875rem;
  margin-bottom: 1rem;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  transition: transform .4s var(--ease-out);
}
.service-icon .icon { width: 1.55rem; height: 1.55rem; stroke-width: 1.9; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-body h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: .55rem;
}

/* ---------- Ihr starker Partner ---------- */
.partner-media { position: relative; margin: 0; }
.partner-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--line);
}
.partner-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 19rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1rem;
  background: var(--navy);
  color: var(--on-navy);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 20px 40px -18px rgba(12, 18, 72, .6);
}
.partner-badge-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 3.6rem;
  line-height: .8;
  color: var(--lime);
  padding-top: .35rem;
}
@media (min-width: 1200px) {
  .partner-badge { left: -1.5rem; bottom: 2.5rem; }
}

.check-list {
  list-style: none;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1.5rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.check-list .icon {
  width: 1.6rem;
  height: 1.6rem;
  padding: .32rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  stroke-width: 2.6;
}
@media (max-width: 575.98px) {
  .check-list { grid-template-columns: 1fr; }
}

/* ---------- Schwerpunkte ---------- */
.focus-row + .focus-row { margin-top: clamp(3.5rem, 8vw, 7rem); }

.focus-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.focus-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.focus-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}

.focus-index {
  margin-bottom: .2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--navy);
}
.focus-index span { color: var(--muted); }
.focus-title {
  margin-bottom: .35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.8rem);
  line-height: .9;
  text-transform: uppercase;
}
.focus-sub {
  margin-bottom: 1.25rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-text);
}

.benefit-grid {
  list-style: none;
  margin: 1.75rem 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.75rem;
}
.benefit-grid li { padding-left: 1rem; border-left: 3px solid var(--lime); }
.benefit-grid strong { display: block; margin-bottom: .2rem; color: var(--navy); font-weight: 700; line-height: 1.3; }
.benefit-grid span { display: block; font-size: .93rem; line-height: 1.55; }
@media (max-width: 575.98px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ---------- Ablauf ---------- */
.process-media {
  margin-top: 2rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--line);
}
.process-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 992px) {
  .process-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.process-step:hover { transform: translateX(6px); border-color: transparent; box-shadow: var(--shadow-card); }
.process-num {
  min-width: 3.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(3.4rem, 2.6rem + 2.4vw, 4.6rem);
  line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.process-step:hover .process-num { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.process-step h3 {
  margin-bottom: .4rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.95rem;
  line-height: 1;
  text-transform: uppercase;
}
.process-step p { margin: 0; }

/* ---------- Anwendungsfälle (Bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(230px, 21vw, 300px);
  gap: 1rem;
}
.bento-tile-lg { grid-column: span 2; grid-row: span 2; }

.bento-tile {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.bento-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.bento-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 18, 72, 0) 30%, rgba(12, 18, 72, .9) 100%);
  transition: opacity .4s;
}
.bento-text {
  position: absolute;
  left: 1.4rem;
  right: 4.75rem;
  bottom: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.bento-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}
.bento-tile-lg .bento-title { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); }
.bento-sub { font-size: .92rem; line-height: 1.45; color: #E1E4F2; }
.bento-arrow {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  transition: transform .35s var(--ease-out), background-color .25s;
}
.bento-arrow .icon { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
.bento-tile:hover img,
.bento-tile:focus-visible img { transform: scale(1.06); }
.bento-tile:hover .bento-arrow,
.bento-tile:focus-visible .bento-arrow { transform: rotate(45deg); background: var(--lime-hover); }
.bento-tile:hover,
.bento-tile:focus-visible { color: var(--white); }
.bento-tile:focus-visible { outline-offset: 4px; }

@media (max-width: 991.98px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .bento-tile-lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 575.98px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bento-tile-lg { grid-column: auto; }
}

/* ---------- Beratung (CTA-Band) ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(80deg, #000 0%, transparent 50%);
  mask-image: linear-gradient(80deg, #000 0%, transparent 50%);
}
.cta-media { background: var(--lime); overflow: hidden; }
.cta-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cta-copy { position: relative; z-index: 2; padding-block: clamp(4rem, 8vw, 7rem); }
.cta-copy h2 { color: var(--white); }
.cta-copy h2 span { display: block; color: var(--lime); }
.cta-copy p:not(.eyebrow) { max-width: 32rem; font-size: 1.1rem; color: var(--on-navy); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
}
.cta-phone small {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-navy);
}
.cta-phone .icon {
  width: 3rem;
  height: 3rem;
  padding: .8rem;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: var(--lime);
  transition: background-color .25s, color .25s, border-color .25s;
}
.cta-phone:hover { color: var(--white); }
.cta-phone:hover .icon { background: var(--lime); border-color: var(--lime); color: var(--navy); }

@media (min-width: 992px) {
  .cta-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 48%;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  }
  .cta-media img { clip-path: polygon(17.3% 0, 100% 0, 100% 100%, 1.3% 100%); }
}
@media (max-width: 991.98px) {
  .cta-media { aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .cta-media img { clip-path: polygon(0 0, 100% 0, 100% 84.4%, 0 98.4%); }
  .cta-copy { padding-top: 2.5rem; }
}

/* ---------- News ---------- */
.news-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.news-card:hover,
.news-card:focus-within { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-card); }
.news-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem 1.6rem 1.6rem; }
.news-body p:not(.news-date) { flex: 1; font-size: .96rem; }
.news-date {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .7rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lime-text);
}
.news-body h3 {
  margin-bottom: .7rem;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Jobs ---------- */
.jobs-media {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: -18px 18px 0 0 var(--lime);
  margin: 0 0 18px 18px;
}
.jobs-media img { width: 100%; height: 100%; object-fit: cover; }

.perk-list {
  list-style: none;
  margin: 1.5rem 0 2.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.perk-list li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}
.perk-list .icon { color: var(--lime-text); }

.jobs-list-title {
  margin-bottom: .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.job-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem .25rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: padding .3s var(--ease-out), background-color .3s;
}
.job-list small { font-weight: 400; color: var(--muted); }
.job-list .icon {
  width: 2.2rem;
  height: 2.2rem;
  padding: .55rem;
  border-radius: 50%;
  background: var(--surface);
  transition: background-color .25s, transform .3s var(--ease-out);
}
.job-list a:hover { padding-inline: .9rem; background: var(--surface); }
.job-list a:hover .icon { background: var(--lime); transform: translateX(3px); }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; margin: 2rem 0 2.25rem; padding: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.contact-list li:first-child { padding-top: 0; }
.contact-list strong { display: block; color: var(--navy); font-weight: 700; }
.contact-list a { color: var(--navy); text-underline-offset: .2em; }
.contact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
}
.contact-icon .icon { width: 1.3rem; height: 1.3rem; }

.contact-form {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.form-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 2.3rem;
  line-height: 1;
  text-transform: uppercase;
}
.form-label { margin-bottom: .35rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.form-label .opt { font-weight: 400; color: var(--muted); }
.form-control,
.form-select {
  padding: .8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: .8rem;
  color: var(--navy);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 .25rem rgba(165, 186, 1, .4);
}
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: .3em;
  border: 1.5px solid var(--line-strong);
}
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(165, 186, 1, .4); }
.form-check-label { font-size: .92rem; line-height: 1.55; }
.form-check-label a { color: var(--navy); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok {
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--lime);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--navy);
}
.form-status.is-error { color: #A32D2D; }

.team-block { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.team-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.8rem);
  line-height: .95;
  text-transform: uppercase;
}
.person-card {
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.person-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.person-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.person-body { padding: 1.25rem 1.4rem 1.4rem; }
.person-body h4 { margin-bottom: .15rem; font-size: 1.12rem; font-weight: 700; }
.person-role {
  margin-bottom: .85rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-text);
}
.person-body a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-block: .2rem;
  font-size: .92rem;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.person-body a .icon { color: var(--lime-text); }
.person-body a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: .2em; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--on-navy);
  font-size: .97rem;
}
.footer-brand { display: inline-block; margin-bottom: 1.5rem; }
.footer-brand img { display: block; height: 54px; width: auto; }
.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding-block: .22rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; transition: color .2s; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--lime); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }

.entwurf-hinweis {
  margin: 1.5rem 0 0;
  font-size: .8rem;
  font-weight: 400;
  text-align: center;
  color: var(--on-navy-2);
}
.site-footer .entwurf-hinweis a { color: inherit; text-decoration: none; }
.site-footer .entwurf-hinweis a:hover,
.site-footer .entwurf-hinweis a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* ---------- Nach-oben-Button ---------- */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  box-shadow: 0 12px 30px -10px rgba(12, 18, 72, .6);
  transition: opacity .3s, transform .3s var(--ease-out), background-color .2s;
}
.to-top .icon { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
.to-top:hover { background: var(--navy-3); color: var(--lime); }
.js .to-top:not(.is-visible) { opacity: 0; transform: translateY(1rem); pointer-events: none; }

/* =========================================================
   Animationen (nur transform + opacity)
   data-animate="stagger"      → Hero: gestaffelter Einstieg beim Laden
   data-animate="fade-up"      → Leistungen: Karten blenden beim Scrollen ein
   data-animate="reveal-image" → Schwerpunkte: Bilder decken sich auf
   data-animate="rise"         → Beratungs-Band: weicher Aufbau
   ========================================================= */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.75rem); }
  to { opacity: 1; transform: none; }
}
@keyframes media-in {
  from { transform: translateX(4%) scale(1.06); }
  to { transform: none; }
}
@keyframes trust-in {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(2.5rem); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(2rem) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes cover-away {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes img-settle {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero – gestaffelter Einstieg */
  [data-animate="stagger"] [data-stagger] {
    animation: rise-in .85s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 110ms + 120ms);
  }
  [data-animate="stagger"] .hero-media img {
    animation: media-in 1.6s var(--ease-out) both;
  }
  [data-animate="stagger"] + .trust-wrap .trust-card {
    animation: trust-in .9s var(--ease-out) .65s both;
  }

  /* Scroll-getrieben, wo unterstützt */
  @supports (animation-timeline: view()) {
    [data-animate="fade-up"] [data-reveal] {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i, 0) * 6%) entry calc(75% + var(--i, 0) * 6%);
    }
    [data-animate="reveal-image"] .focus-media { view-timeline: --focus block; }
    [data-animate="reveal-image"] .focus-media::after {
      animation: cover-away linear both;
      animation-timeline: --focus;
      animation-range: entry 20% cover 45%;
    }
    [data-animate="reveal-image"] .focus-media img {
      animation: img-settle linear both;
      animation-timeline: --focus;
      animation-range: entry 0% cover 55%;
    }
    [data-animate="rise"] [data-reveal] {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }
    [data-animate="rise"] .cta-media img {
      animation: img-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }

  /* Rückfallebene per IntersectionObserver (Klasse .io-anim setzt main.js) */
  .io-anim [data-animate="fade-up"] [data-reveal] {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
  }
  .io-anim [data-animate="fade-up"] [data-reveal].is-visible { opacity: 1; transform: none; }

  .io-anim [data-animate="reveal-image"] .focus-media::after {
    transform: scaleX(1);
    transition: transform 1s var(--ease-in-out) .1s;
  }
  .io-anim [data-animate="reveal-image"] .focus-media img {
    transform: scale(1.14);
    transition: transform 1.5s var(--ease-out);
  }
  .io-anim [data-animate="reveal-image"] .focus-media.is-visible::after { transform: scaleX(0); }
  .io-anim [data-animate="reveal-image"] .focus-media.is-visible img { transform: none; }

  .io-anim [data-animate="rise"] [data-reveal] {
    opacity: 0;
    transform: translateY(2rem) scale(.97);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  }
  .io-anim [data-animate="rise"] [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
