@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  size-adjust: 103%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* Fallbacks mit ähnlicher Metrik, bis die lokalen Dateien da sind */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 104%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: #e8e0d2;
  --bg-2: #f3ece0;
  --bg-3: #ddd3c3;
  --text: #12151c;
  --muted: #333b47;
  --line: rgba(18, 21, 28, 0.22);
  --accent: #b42318;
  --accent-2: #8f1c14;
  --white: #f7f1e6;
  --radius: 18px;
  --max: 1120px;
  --font: "Source Serif 4", "Source Serif Fallback", Georgia, serif;
  --sans: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-synthesis: none;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(232, 224, 210, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.18em;
  font-size: 15px;
}
.logo-mark {
  width: 28px; height: 56px;
  border: 0;
  display: block;
  object-fit: contain;
  background: transparent;
}
.logo img.logo-mark { width: 28px; height: 56px; }
.logo { gap: 12px; }
nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
nav a { font-size: 14px; color: #2a313c; letter-spacing: 0.04em; font-weight: 500; }
nav a:hover, nav a.active { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fffdf8;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
}
.btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn:hover { filter: brightness(1.08); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; }

/* Hero */
.hero {
  padding: 110px 0 96px;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(12,16,22,.18) 0%, rgba(12,16,22,.12) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,16,22,.78) 0%, rgba(12,16,22,.55) 38%, rgba(12,16,22,.18) 68%, rgba(12,16,22,.08) 100%),
    url("../img/koeln-skyline.jpg") center 42% / cover no-repeat;
  color: #f7f4ef;
}
.hero .kicker { color: #ffe7b0; }
.hero h1 { color: #ffffff; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero .lede { color: #fff8ee; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .hero-meta strong { color: #ffe7b0; }
.hero .hero-meta span { color: #f4eee4; }
.hero .btn.ghost { color: #fffdf8; border-color: rgba(255,255,255,.35); }

.hero.hero-plain {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(201,163,106,.18), transparent 50%),
    linear-gradient(180deg, #d4cbb8, var(--bg));
}
.kicker {
  color: var(--accent); letter-spacing: 0.22em;
  font-size: 12px; text-transform: uppercase; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--font); font-weight: 600; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; margin-bottom: 22px; }
.lede { max-width: 48ch; color: var(--muted); font-size: 18px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 72px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.28);
}
.hero .hero-meta { border-top-color: rgba(255,255,255,.28); }
.hero-meta strong { display: block; font-size: 28px; font-family: var(--font); color: var(--accent-2); }
.hero-meta span { color: var(--muted); font-size: 13px; }

/* Sections */
section { padding: 88px 0; }
.section-head { margin-bottom: 40px; max-width: 46ch; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 24px; margin: 12px 0 10px; }
.num { color: var(--accent); font-size: 13px; letter-spacing: 0.16em; }
.muted { color: var(--muted); }
.split { background: var(--bg-2); }
.quote {
  font-family: var(--font);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
}

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  background: var(--bg-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.avatar {
  height: 180px;
  background:
    linear-gradient(160deg, #7a1a14, #3f0e0c);
  display: grid; place-items: center;
  font-family: var(--font);
  font-size: 42px;
  color: #fff8ee;
}
.person div { padding: 18px 20px 22px; }
.person h3 { font-size: 20px; margin-bottom: 4px; }
.role { color: var(--accent); font-size: 13px; }

/* Form */
form { display: grid; gap: 14px; }
label { font-size: 14px; color: var(--text); font-weight: 500; }
input, textarea, select {
  width: 100%; background: #faf6ef;
  border: 1px solid #4a4550;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder {
  color: #3a424e;
  opacity: 1;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.legal { margin-top: 28px; font-size: 13px; opacity: 1; color: var(--muted); }
.legal a { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.card p, .section-head p { color: var(--muted); }
footer strong { color: var(--text); }


@media (max-width: 860px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none; position: absolute; right: 24px; top: 76px;
    background: var(--bg-2); border: 1px solid var(--line);
    flex-direction: column; padding: 16px 20px; border-radius: 12px; gap: 14px;
  }
  nav ul.open { display: flex; }
  .grid-3, .grid-2, .team, .hero-meta, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
}

#cookieBanner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #f3ece0; border-top: 1px solid var(--line);
  padding: 16px 0;
}
.cookie-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
}
.cookie-inner p { color: var(--text); font-size: 14px; }
.cookie-inner a { color: var(--accent-2); text-decoration: underline; }
@media (max-width: 700px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
}
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text); line-height: 1.5;
}
.consent input { width: auto; margin-top: 4px; }

.badge-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #f3e0a8, #c9a036);
  color: #3a2a08;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}
.hero .badge-gold { margin-bottom: 16px; }
.certs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.shelly-badge {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 8px 0 18px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}
.hero .shelly-badge { width: min(200px, 64vw); }
.shelly-badge-sm { width: 160px; margin: 12px 0 0; }

.skyline-wrap {
  line-height: 0;
  background: var(--bg);
  overflow: hidden;
}
.skyline {
  display: block;
  width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.services-grid {
  align-items: stretch;
}
.services-grid .card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.services-grid .card .muted { flex: 1; }
.services-grid .card:last-child {
  grid-column: 2;
}
.services-grid .shelly-badge-sm {
  width: 120px;
  margin: 4px 0 10px;
}
@media (max-width: 860px) {
  .services-grid .card:last-child { grid-column: auto; }
}
