:root {
  --paper: #FFFFFF;
  --ink: #17191E;
  --navy: #163553;
  --navy-deep: #0E2438;
  --muted: #57616D;
  --line: #E4E9EF;
  --wash: #F7F9FB;
  --maxw: 1120px;
  --font: "Futura", "Jost", "Century Gothic", "Trebuchet MS", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

button, input, textarea, select { font-family: var(--font); }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font); font-weight: 500; }

a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

section { scroll-margin-top: 100px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}

/* ---------- Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 64px; width: auto; }

nav.menu { display: flex; gap: 32px; }
nav.menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
nav.menu a:hover { color: var(--navy); border-bottom-color: var(--navy); }
nav.menu a.active { color: var(--navy); border-bottom-color: var(--navy); }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav { height: 72px; }
  .brand img { height: 50px; }
  .nav-burger { display: flex; }
  nav.menu {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 16px;
    display: none;
  }
  nav.menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  nav.menu a:last-child { border-bottom: none; }
  .nav-toggle:checked ~ nav.menu { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 84px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.18;
  font-weight: 500;
  margin-bottom: 26px;
}
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 58ch; margin-bottom: 38px; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 4px;
}
.hero-figure::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--navy);
  border-radius: 0 0 4px 4px;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.link-quiet { font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-quiet:hover { border-bottom-color: var(--navy); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure img { aspect-ratio: 16 / 10; }
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3vw, 35px); line-height: 1.22; margin-bottom: 24px; max-width: 28ch; }
.section .intro { color: var(--muted); max-width: 68ch; }

/* Intro mit Bild */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: start;
}
.split figure img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 4px;
}
.split figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split figure img { aspect-ratio: 16 / 10; }
}

/* Vier Säulen */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.pillar { border-top: 2px solid var(--navy); padding-top: 22px; }
.pillar .num { font-size: 20px; color: var(--navy); margin-bottom: 12px; font-weight: 500; }
.pillar h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; }
.pillar p { font-size: 15px; color: var(--muted); }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Vorteile */
.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-top: 52px;
}
.advantage h3 { font-size: 19px; margin-bottom: 8px; }
.advantage p { color: var(--muted); font-size: 16px; }
@media (max-width: 720px) { .advantages { grid-template-columns: 1fr; } }

/* Profil */
blockquote {
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.5;
  color: var(--navy);
  border-left: 2px solid var(--navy);
  padding-left: 28px;
  margin: 40px 0 44px;
  max-width: 34em;
  font-weight: 500;
}
.profil-text p { max-width: 72ch; margin-bottom: 20px; }

.timeline { margin-top: 52px; border-top: 1px solid var(--line); }
.timeline-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-row .year { font-size: 20px; color: var(--navy); font-weight: 500; }
.timeline-row .what { font-weight: 500; }
.timeline-row .what small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; font-size: 15px; }
@media (max-width: 560px) { .timeline-row { grid-template-columns: 1fr; gap: 4px; } }

/* Leistungen */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-of-type { border-bottom: none; padding-bottom: 12px; }
.service--flip { grid-template-columns: 380px minmax(0, 1fr); }
.service--flip > div { order: 2; }
.service--flip > figure { order: 1; }
.service figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.service h3 { font-size: 23px; margin-bottom: 14px; }
.service > div > p { color: var(--muted); max-width: 68ch; margin-bottom: 26px; }

.service dl { display: grid; gap: 18px; }
.service dt { font-weight: 600; }
.service dd { color: var(--muted); font-size: 16px; max-width: 70ch; }
@media (max-width: 860px) {
  .service, .service--flip { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .service--flip > figure { order: 0; }
  .service--flip > div { order: 1; }
}

/* Kunden */
.clients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 52px;
}
.client {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 34px 30px;
}
.client h3 { font-size: 20px; margin-bottom: 10px; }
.client p { color: var(--muted); font-size: 16px; }
@media (max-width: 720px) { .clients { grid-template-columns: 1fr; } }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  margin-top: 52px;
}
.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-info .item .label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-info .item .value { font-size: 18px; font-weight: 500; }
.contact-info .item .value a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-info .item .value a:hover { color: var(--navy); border-bottom-color: var(--navy); }

form { display: grid; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid #C9D2DC;
  border-radius: 3px;
  background: var(--paper);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
form .btn { justify-self: start; cursor: pointer; }
.form-note { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Unterseiten (Impressum, Datenschutz, Danke) ---------- */
.subpage { padding: 72px 0 96px; }
.subpage .inner { max-width: 800px; }
.subpage h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.subpage .sub { color: var(--muted); margin-bottom: 44px; }
.subpage h2 { font-size: 22px; margin: 44px 0 14px; }
.subpage h3 { font-size: 18px; margin: 28px 0 8px; }
.subpage p { margin-bottom: 14px; max-width: 76ch; }
.subpage ul { margin: 0 0 14px 22px; }
.subpage li { margin-bottom: 8px; }
.subpage .card {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 16px 0 24px;
}
.subpage .card p { margin-bottom: 4px; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #B9C6D4; padding: 64px 0 40px; margin-top: 40px; }
footer .wrap { display: grid; gap: 36px; }
.foot-top { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
footer .name { font-size: 21px; color: #fff; margin-bottom: 6px; font-weight: 500; }
footer p { font-size: 14px; line-height: 1.7; max-width: 74ch; }
footer a { color: #E4ECF4; }
.foot-links { display: flex; gap: 26px; font-size: 14px; }
.foot-links a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 2px; }
.foot-links a:hover { border-bottom-color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr; } }
