:root {
  --navy: #1c2b4d;
  --navy-deep: #121c35;
  --yellow: #f5c400;
  --ink: #1a1a1a;
  --muted: #5b6475;
  --bg: #f4f5f8;
  --line: #e1e4ec;
  --radius: 14px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow);
  padding: .3em .8em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--navy-deep); }
.btn-primary:hover { background: #ffd22e; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 600; color: var(--navy); font-size: .98rem; }
.nav a:not(.btn):hover { color: #8a6f00; }
.nav .btn { padding: .55em 1.2em; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { background: linear-gradient(160deg, #fff 55%, var(--bg)); padding: clamp(48px, 8vw, 110px) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 22px; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 50%;
  box-shadow: 0 30px 60px -20px rgba(28,43,77,.45);
}
.hero-media::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px;
  border: 3px solid var(--yellow); border-radius: 22px; z-index: -1;
}
.badge {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--navy); color: #fff;
  padding: 1rem 1.3rem; border-radius: var(--radius);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  line-height: 1.2;
}
.badge strong { display: block; font-size: 1.9rem; color: var(--yellow); }
.badge small { font-size: .85rem; opacity: .85; }

/* Facts */
.facts { background: var(--navy); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 1.5rem; color: var(--yellow); }
.fact span { font-size: .92rem; opacity: .85; }

/* Sections */
section { padding: clamp(60px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(28,43,77,.4); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; height: auto; }
.card .icon {
  height: 0;
}
.card-body { padding: 1.6rem; }
.card-body ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.card-body li { padding-left: 1.5em; position: relative; margin-bottom: .4em; color: var(--muted); font-size: .96rem; }
.card-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7em; height: .7em; border-radius: 2px; background: var(--yellow); }
.card-icon {
  aspect-ratio: 16/10; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), #2c4274);
}
.card-icon svg { width: 84px; height: 84px; stroke: var(--yellow); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Über uns */
.about { background: var(--bg); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 22px; box-shadow: 0 30px 60px -25px rgba(28,43,77,.45); }
.about-media img + img {
  position: absolute; width: 52%; right: -20px; bottom: -34px;
  border: 6px solid var(--bg);
}
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.checks li { padding-left: 2em; position: relative; margin-bottom: .7em; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4em; height: 1.4em; border-radius: 50%;
  background: var(--yellow); color: var(--navy-deep);
  font-weight: 800; font-size: .85em; display: grid; place-items: center; line-height: 1;
  margin-top: .22em;
}

/* Einsatzgebiet */
.regions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.regions span {
  padding: .55em 1.2em; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; color: var(--navy);
}
.regions span:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Kontakt */
.contact { background: var(--navy-deep); color: #fff; }
.contact h2, .contact h3 { color: #fff; }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.contact .section-head p { color: rgba(255,255,255,.75); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.contact-list .ci {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(245,196,0,.14);
  display: grid; place-items: center;
}
.contact-list svg { width: 22px; height: 22px; stroke: var(--yellow); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; opacity: .65; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--yellow); }

.form { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.form h3 { margin-bottom: 1.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; font: inherit; padding: .75em 1em;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.form .full { grid-column: 1 / -1; }
.form .consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form .consent input { margin-top: .35em; accent-color: var(--navy); }
.form .consent a { color: var(--navy); }
.form-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }

/* Footer */
.site-footer { background: #0b1226; color: rgba(255,255,255,.7); padding: 2.2rem 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { text-decoration: none; margin-left: 1.4rem; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .links a:first-child { margin-left: 0; }

/* Rechtstexte */
.legal { padding: 60px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal a { color: var(--navy); }
.legal .draft { background: #fff8d6; border-left: 4px solid var(--yellow); padding: .8rem 1rem; border-radius: 6px; font-size: .92rem; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-media { order: -1; }
  .badge { left: 12px; }
  .about-media img + img { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; justify-content: center; border-bottom: 2px solid transparent; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .logo img { height: 38px; }
}

/* Leistungsseiten */
.page-hero { background: linear-gradient(160deg, #fff 50%, var(--bg)); padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 56px); }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; color: var(--navy); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { padding-left: 1.5em; position: relative; margin-bottom: .5em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7em; height: .7em; border-radius: 2px; background: var(--yellow); }
.prose a { color: var(--navy); font-weight: 600; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.aside-card { background: var(--bg); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 96px; }
.aside-card h3 { margin-bottom: .6rem; }
.aside-card p { color: var(--muted); font-size: .96rem; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: .8rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: #8a6f00; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }
.cta-band { background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.cta-band p { margin: .3rem 0 0; opacity: .8; }
.card-link { display: inline-block; margin-top: 1.1rem; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.card-link:hover { background: var(--yellow); }
.card h3 a { text-decoration: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .aside-card { position: static; } }
.aside-card .aside-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 0 0 .4rem; }

/* Spruch */
.quote { background: var(--bg); padding: clamp(48px, 7vw, 84px) 0; }
.quote figure { margin: 0 auto; max-width: 820px; text-align: center; }
.quote blockquote { margin: 0; position: relative; }
.quote blockquote::before { content: "\201E"; display: block; font-size: 5rem; line-height: .6; color: var(--yellow); font-weight: 800; margin-bottom: .2em; }
.quote blockquote p { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; margin: 0; }
.quote figcaption { margin-top: 1.2rem; color: var(--muted); font-weight: 600; }
.quote figcaption::before { content: "— "; color: #8a6f00; }
.contact h3.sub, .contact .section-head + h3 { margin-top: 0; font-size: 1.1rem; }
.contact .form h3 { color: var(--navy); }

/* Einheitliches Menü mit Untermenü */
.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; margin-left: .35em; font-size: .75em; opacity: .7; }
.sub {
  display: none; position: absolute; top: 100%; left: -1rem; min-width: 250px; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(28,43,77,.35);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.sub a { display: block; padding: .6rem .9rem; border-radius: 8px; font-weight: 600; }
.sub a:hover { background: var(--bg); }
.nav a[aria-current="page"], .nav a.is-active { color: #8a6f00; box-shadow: inset 0 -3px 0 var(--yellow); }
.sub a[aria-current="page"] { box-shadow: none; background: var(--bg); }
@media (max-width: 900px) {
  .has-sub > a::after { display: none; }
  .has-sub::before { display: none; }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 .4rem 1rem; min-width: 0; }
  .sub a { padding: .55rem 0; font-weight: 500; font-size: .94rem; border-bottom: 0; }
  .nav a[aria-current="page"], .nav a.is-active { box-shadow: none; }
}

/* Vier Leistungskarten */
.cards { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card-body { padding: 1.3rem; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Seitenkopf mit Bild */
.page-hero.has-img { position: relative; min-height: 400px; display: flex; align-items: center; padding: 72px 0; overflow: hidden; background: var(--navy-deep); color: #fff; }
.page-hero.has-img .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,28,53,.93) 0%, rgba(18,28,53,.78) 48%, rgba(18,28,53,.3) 100%); }
.page-hero.has-img .wrap { position: relative; z-index: 2; }
.page-hero.has-img h1 { color: #fff; }
.page-hero.has-img .lead { color: rgba(255,255,255,.88); }
.page-hero.has-img .crumbs, .page-hero.has-img .crumbs a { color: rgba(255,255,255,.85); }
.page-hero.has-img .btn-ghost { border-color: #fff; color: #fff; }
.page-hero.has-img .btn-ghost:hover { background: #fff; color: var(--navy); }
@media (max-width: 900px) {
  .page-hero.has-img { min-height: 0; padding: 48px 0; }
  .page-hero.has-img::after { background: rgba(18,28,53,.86); }
}
