:root {
  --navy: #0b1b2b;
  --navy-2: #122a42;
  --steel: #5d7285;
  --text: #1b2530;
  --muted-text: #5b6670;
  --line: #d8e0e7;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --accent: #b88a3b;
  --accent-dark: #8c672b;
  --shadow: 0 22px 60px rgba(9, 27, 43, .12);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.12; font-weight: 750; letter-spacing: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.2rem; }

.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 820px; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--navy);
  color: white;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(216, 224, 231, .85);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: white;
  border: 1px solid rgba(255, 255, 255, .2);
  font-weight: 800;
  font-size: .9rem;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; color: var(--navy); }
.brand small { font-size: .78rem; color: var(--muted-text); }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  color: #2f3d4b;
  border-radius: 6px;
  font-size: .96rem;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--navy);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 12px;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 82px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(11,27,43,.78) 0%, rgba(11,27,43,.58) 46%, rgba(11,27,43,.24) 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(184,138,59,.16), transparent 28%),
    url("../images/hero-startseite.jpg") 68% center / cover no-repeat,
    linear-gradient(135deg, #1b3349, #647789);
}
.placeholder-image {
  background:
    linear-gradient(135deg, rgba(184,138,59,.24), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 45%),
    repeating-linear-gradient(155deg, rgba(255,255,255,.16) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #1b3349, #647789);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 6rem;
  color: white;
}
.hero-content.reveal {
  opacity: 1;
  transform: none;
}
.hero h1 { color: white; max-width: 780px; }
.hero-subtitle {
  margin-top: 1rem;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  color: #e8eef3;
}
.hero-text {
  max-width: 680px;
  margin-top: 1.2rem;
  color: #d7e0e8;
  font-size: 1.12rem;
}
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 800;
}
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(184, 138, 59, .45); outline-offset: 3px; }
.button.primary { background: var(--accent); color: #101820; }
.button.primary:hover { background: #c89a4b; }
.button.secondary { color: white; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.07); }
.button.secondary.dark { color: var(--navy); border-color: var(--line); background: white; margin-top: .9rem; }

.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.muted { background: var(--soft); }
.lead { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.35; color: var(--navy); }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  min-height: 280px;
  padding: 1.5rem;
  background: white;
}
.service-card .icon, .number {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 850;
}
.service-card p, .detail-block p, .profile p, .contact-note p, .legal p { color: var(--muted-text); }

.competence { background: var(--navy); color: white; }
.competence h2, .competence p { color: white; }
.competence-inner {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.metric span {
  display: block;
  color: var(--accent);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: .9;
  font-weight: 850;
}
.metric strong { display: block; margin-top: .5rem; font-size: 1.2rem; }
.competence p { font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.35; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.technical-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}
.technical-panel span {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: white;
  color: var(--navy);
  font-weight: 750;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.image-tile {
  position: relative;
  border: 0;
  cursor: pointer;
  color: white;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  padding: 0;
  text-align: left;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(9, 27, 43, .08);
}
.image-tile::after {
  content: none;
}
.image-tile img {
  position: static;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #e8eef3;
  transition: transform .2s ease;
}
.image-tile:hover img {
  transform: none;
}
.image-tile span {
  display: block;
  width: 100%;
  background: var(--navy);
  padding: .8rem .9rem;
  font-weight: 750;
}
.cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; }
.cta h2, .cta p { color: white; }
.cta-inner { max-width: 760px; }

.page-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgba(184,138,59,.11), transparent 30%),
    linear-gradient(180deg, #f7f9fb, white);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p:not(.eyebrow) { font-size: 1.15rem; color: var(--muted-text); }
.service-list { display: grid; gap: 1.2rem; }
.detail-block {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 36px rgba(9, 27, 43, .06);
}
.detail-block h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.service-copy {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}
.service-copy.with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.4rem;
  align-items: start;
}
.side-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(9, 27, 43, .08);
}
.side-image.tall { aspect-ratio: 4 / 5; }
.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
  padding: 0;
  margin: 1.3rem 0 0;
  list-style: none;
}
.topic-list li {
  padding: .75rem .85rem;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: #334252;
}
.profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.portrait { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 1.5rem;
}
.contact-note .side-image {
  margin-top: 1rem;
  aspect-ratio: 16 / 10;
}
.contact-image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.1rem;
}
.contact-image-stack .side-image { aspect-ratio: 1 / 1; }
.contact-card, .contact-note, .legal {
  border: 1px solid var(--line);
  padding: 2rem;
  background: white;
  box-shadow: 0 12px 36px rgba(9, 27, 43, .06);
}
dt { margin-top: 1.2rem; color: var(--navy); font-weight: 800; }
dd { margin: .2rem 0 0; color: var(--muted-text); }
dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.legal { max-width: 860px; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal h2:first-child { margin-top: 0; }
.notice {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.site-footer {
  padding: 2.5rem 0;
  color: #dce5ec;
  background: #071420;
}
.footer-inner {
  display: grid;
  gap: 1.4rem;
}
.site-footer strong, .site-footer span { display: block; }
.site-footer span, .site-footer small { color: #aebbc7; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; }
.site-footer a:hover, .site-footer a:focus-visible { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(3, 10, 17, .78);
}
.lightbox[hidden] { display: none; }
.lightbox button {
  position: absolute;
  right: 1.3rem;
  top: 1.3rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.08);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-frame {
  position: relative;
  width: min(920px, 92vw);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: end start;
  padding: 1.5rem;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  overflow: hidden;
  background: var(--navy);
}
.lightbox-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox-frame span {
  position: relative;
  z-index: 1;
  color: white;
  background: rgba(11,27,43,.86);
  padding: .7rem .9rem;
  border-radius: 5px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .card-grid, .image-grid { grid-template-columns: 1fr 1fr; }
  .split, .competence-inner, .profile, .contact-layout, .detail-block { grid-template-columns: 1fr; }
  .technical-panel { max-width: 520px; }
  .hero { min-height: 680px; }
}

@media (max-width: 720px) {
  :root { --container: min(100vw - 28px, 1120px); }
  body { font-size: 16px; }
  .header-inner { min-height: 70px; }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 14px 1.2rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: .9rem; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-subtitle { font-size: 1.28rem; }
  .hero-media {
    background:
      linear-gradient(135deg, rgba(184,138,59,.16), transparent 28%),
      url("../images/hero-startseite.jpg") 56% 24% / cover no-repeat,
      linear-gradient(135deg, #1b3349, #647789);
  }
  .hero-content { padding: 4.5rem 8px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,27,43,.66), rgba(11,27,43,.72)); }
  .button { width: 100%; }
  .card-grid, .image-grid, .topic-list { grid-template-columns: 1fr; }
  .image-tile { grid-template-rows: auto auto; }
  .image-tile img { height: auto; max-height: 320px; }
  .service-card { min-height: auto; }
  .detail-block, .contact-card, .contact-note, .legal { padding: 1.25rem; }
  .service-copy {
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .service-copy.with-image { grid-template-columns: 1fr; }
  .side-image { max-width: 360px; }
  .contact-image-stack { grid-template-columns: 1fr; }
  .technical-panel { grid-template-columns: 1fr; }
  .technical-panel span { min-height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
