/* Schrift lokal eingebunden (kein Google-Server → DSGVO-freundlich) */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #1b4f9c;
  --blue-2: #2a66c2;
  --blue-dark: #0f2f5e;
  --orange: #f28c1b;
  --text: #1d2430;
  --muted: #5b6676;
  --line: #e3e7ee;
  --bg-soft: #f3f6fa;
  --max: 1120px;
  --shadow-sm: 0 1px 2px rgba(15,47,94,.05), 0 2px 6px rgba(15,47,94,.05);
  --shadow: 0 2px 4px rgba(15,47,94,.05), 0 12px 28px -8px rgba(15,47,94,.16);
  --hi: inset 0 1px 0 rgba(255,255,255,.9);
  --r: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px -10px rgba(15,47,94,.25);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo img { height: 48px; width: auto; display: block; }
.nav { display: flex; gap: 6px; list-style: none; }
.nav a {
  display: block; color: var(--text); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: background .2s, color .2s;
}
.nav a:hover { color: var(--blue); background: rgba(27,79,156,.07); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--text); }
.header-link { font-size: 15px; font-weight: 500; color: var(--text); }

/* Hero */
.hero {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(80,140,230,.25), transparent 60%),
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 112px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--orange);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
  font-weight: 600; color: var(--orange); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 700; max-width: 780px; letter-spacing: -.02em; }
.hero p { font-size: 19px; max-width: 620px; margin-top: 22px; color: rgba(255,255,255,.85); }
.btns { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Buttons mit Tiefe */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ffa53d 0%, #ee840f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(150,70,0,.3), 0 8px 18px -8px rgba(242,140,27,.8);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 4px rgba(150,70,0,.3), 0 12px 24px -8px rgba(242,140,27,.9); }
.btn-primary:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.4); color: #fff;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Sections */
section { padding: 96px 0; }
section.soft {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 22%, var(--bg-soft) 78%, #fff 100%);
}
#kontakt.soft { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 30%, var(--bg-soft) 100%); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--orange); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; color: var(--blue-dark); letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* Leistungen */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: var(--hi), var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: #d3dcea; box-shadow: var(--hi), var(--shadow); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 20px; color: #fff;
  background: linear-gradient(145deg, var(--blue-2), var(--blue-dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px -6px rgba(27,79,156,.6);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; color: var(--blue-dark); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Über uns */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.split p + p { margin-top: 16px; }
.split .text p { color: var(--muted); }
.facts { list-style: none; display: grid; gap: 12px; }
.facts li {
  display: flex; gap: 16px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--hi), var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.facts li:hover { transform: translateX(4px); box-shadow: var(--hi), var(--shadow); }
.facts li::before {
  content: ""; flex: 0 0 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242,140,27,.15);
}
.facts strong { display: block; color: var(--blue-dark); }
.facts span { color: var(--muted); font-size: 15.5px; }

/* Branchen */
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  padding: 12px 22px; border: 1px solid var(--line); border-radius: 40px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  font-weight: 500; font-size: 15.5px; color: var(--blue-dark);
  box-shadow: var(--hi), var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.tag:hover { transform: translateY(-2px); box-shadow: var(--hi), var(--shadow); }

/* Kontakt */
.contact-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--hi), var(--shadow);
  overflow: hidden;
}
.contact-list { list-style: none; padding: 16px 40px; }
.contact-list li { display: flex; align-items: center; gap: 18px; padding: 22px 0; }
.contact-list li + li { border-top: 1px solid var(--line); }
.c-icon {
  flex: 0 0 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--blue-2), var(--blue-dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px -6px rgba(27,79,156,.6);
}
.c-icon svg { width: 20px; height: 20px; }
.contact-list .label { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.contact-list .value { display: block; font-size: 17.5px; color: var(--blue-dark); font-weight: 500; }
.contact-cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 44px 44px;
  background: linear-gradient(160deg, #f7f9fd 0%, #eaf0f9 100%);
  border-left: 1px solid var(--line);
}
.contact-cta h3 { font-size: 22px; color: var(--blue-dark); letter-spacing: -.01em; margin-bottom: 10px; }
.contact-cta p { color: var(--muted); margin-bottom: 26px; max-width: 360px; }

/* Footer */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.7); padding: 40px 0; font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer nav { display: flex; gap: 24px; }

/* Rechtstexte */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: 36px; color: var(--blue-dark); margin-bottom: 32px; letter-spacing: -.02em; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: #3a4452; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal p + p { margin-top: 12px; }

/* Platzhalter: vor Veröffentlichung ersetzen */
.ph { background: #fff3cd; color: #7a5300; padding: 0 4px; border-radius: 3px; }

/* Animation: Kopfbereich baut sich beim Laden auf */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.js .hero .eyebrow, .js .hero h1, .js .hero p, .js .hero .btns {
  animation: fadeUp .9s cubic-bezier(.2,.7,.3,1) both;
}
.js .hero .eyebrow { animation-delay: .1s; }
.js .hero h1       { animation-delay: .22s; }
.js .hero p        { animation-delay: .36s; }
.js .hero .btns    { animation-delay: .5s; }

/* Animation: Elemente reihen sich beim Scrollen nacheinander ein */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-cta { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgba(15,47,94,.3);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-radius: 0; border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 80px 0 72px; }
  .logo img { height: 40px; }
  .contact-list { padding: 8px 22px; }
  .contact-cta { padding: 32px 22px; }
  .contact-list .value { font-size: 16px; }
}

/* Leistungen: 6 gleich große Karten */
.card { display: flex; flex-direction: column; }
@media (min-width: 901px) {
  .grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 20px; }
  .grid > .card { padding: 28px 26px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
}

/* Kästen bei Über mich: alle gleich hoch */
.facts { grid-auto-rows: 1fr; }
.facts li { align-items: center; }
.facts li::before { margin-top: 0; align-self: center; }
.split { align-items: center; }

/* Typografie: ausgewogene Zeilenumbrüche */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.hero p { max-width: 640px; }
.split .text p { max-width: 520px; }
