/* BIM Lüftungsplanung Queck GmbH – Website-Stylesheet
   Farbwelt übernommen aus dem Firmenprofil (V1 "frische Optik"). */

:root {
  --petrol-900: #14232D;
  --petrol-700: #0E536B;
  --petrol-500: #3A8FA8;
  --petrol-100: #D7EAF0;
  --grey-600: #64737B;
  --grey-200: #D8E2E6;
  --grey-100: #EDF4F6;
  --grey-050: #F7F9FA;
  --blau-grau: #EFF4F7;
  --white: #FFFFFF;
  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(20, 35, 45, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--petrol-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--petrol-700); }

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

/* ---------- Kopfbereich ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--grey-200);
  backdrop-filter: saturate(140%) blur(6px);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand { font-weight: 700; color: var(--petrol-900); text-decoration: none; line-height: 1.3; }
.brand span { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol-500); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; }
.nav a { color: var(--grey-600); text-decoration: none; }
.nav a:hover { color: var(--petrol-700); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--petrol-900) 0%, var(--petrol-700) 100%);
  color: var(--white);
  padding-block: clamp(48px, 8vw, 96px);
}
.hero .kicker {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--petrol-100);
  margin-bottom: 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 40px;
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 18ch; }

.hero-figure {
  margin: 0;
  align-self: center;
}
.hero-figure img {
  display: block;
  width: 116%;
  max-width: none;
  height: auto;
  margin-left: -8%;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .38));
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}
.hero-figure:hover img { transform: scale(1.05); }
.hero-figure figcaption { margin-left: -8%; }

@media (max-width: 820px) {
  .hero-figure img,
  .hero-figure figcaption { width: 100%; margin-left: 0; }
}
.hero-figure figcaption {
  margin-top: 10px;
  font-size: .82rem;
  color: #A9C3CE;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #D9E6EC; max-width: 62ch; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.badges li {
  border: 1px solid rgba(215, 234, 240, .35);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: .87rem;
  color: var(--petrol-100);
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--petrol-500); color: var(--white); }
.btn-primary:hover { background: #4AA3BD; }
.btn-ghost { border-color: rgba(215, 234, 240, .5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Kennzahlen ---------- */

.facts { background: var(--grey-050); border-bottom: 1px solid var(--grey-200); }
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  padding-block: 34px;
}
.fact strong { display: block; font-size: 1.6rem; color: var(--petrol-700); }
.fact span { font-size: .92rem; color: var(--grey-600); }

/* ---------- Abschnitte ---------- */

section { padding-block: clamp(44px, 6vw, 76px); }
section.alt { background: var(--grey-050); }
.section-intro { max-width: 68ch; color: var(--grey-600); margin-bottom: 34px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--petrol-500);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  margin-bottom: 18px;
}
.card .num { font-size: .8rem; font-weight: 700; letter-spacing: .16em; color: var(--petrol-500); }
.card h3 { margin-top: 6px; color: var(--petrol-900); }
.card .sub { font-size: .92rem; color: var(--grey-600); margin-bottom: 14px; }
.card ul { margin: 0; padding-left: 18px; font-size: .95rem; color: var(--petrol-900); }
.card li { margin-bottom: 6px; }

.note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--petrol-100);
  border-left: 4px solid var(--petrol-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .96rem;
}
.tools { margin-top: 18px; font-size: .9rem; color: var(--grey-600); }

/* ---------- Modellband ---------- */

.band {
  background: linear-gradient(160deg, var(--petrol-900) 0%, var(--petrol-700) 140%);
  color: var(--white);
}
.band h2 { color: var(--white); }
.band .section-intro { color: #C3D6DE; }

.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
}
.band-grid figure { margin: 0; }
.band-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid rgba(215, 234, 240, .25);
}
.band-grid figcaption {
  margin-top: 10px;
  font-size: .85rem;
  color: #A9C3CE;
}

/* ---------- Person ---------- */

.person-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.person-head img {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--grey-100);
}
.person-head h2 { margin: 0 0 2px; }
.person-role { margin: 0; color: var(--grey-600); font-size: .97rem; }

/* ---------- Referenzen ---------- */

.highlight {
  background: var(--white);
  border: 1px solid var(--petrol-500);
  border-left: 5px solid var(--petrol-700);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 42px;
  box-shadow: var(--shadow);
}
.highlight .num { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--petrol-500); }
.highlight h3 { margin: 8px 0 8px; font-size: 1.3rem; }
.highlight .sub {
  margin: 0 0 12px;
  font-size: .92rem;
  color: var(--petrol-500);
  font-weight: 600;
}
.highlight ul {
  margin: 16px 0 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 38px;
  font-size: .95rem;
}
.highlight li { margin-bottom: 8px; break-inside: avoid; }

@media (max-width: 720px) {
  .highlight ul { columns: 1; }
}

.group-title {
  font-size: 1.15rem;
  color: var(--petrol-700);
  padding-bottom: 8px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--grey-200);
}
.group-title + .ref-columns { margin-bottom: 44px; }

.ref-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
.ref-group {
  break-inside: avoid;
  margin-bottom: 0;
  background: var(--blau-grau);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--petrol-500);
  border-radius: var(--radius);
  padding: 18px 22px 20px;
  box-shadow: var(--shadow);
}
.ref-group h4 {
  margin: 0 0 10px;
  color: var(--petrol-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ref-group ul { list-style: none; margin: 0; padding: 0; }
.ref-group li {
  font-size: .93rem;
  line-height: 1.4;
  padding: 7px 0;
  border-top: 1px solid rgba(14, 83, 107, .12);
  color: var(--petrol-900);
}
.ref-group li:first-child { border-top: none; padding-top: 0; }
.ref-group li:last-child { padding-bottom: 0; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px; }

/* ---------- Kontakt ---------- */

.contact-box {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-box dl { margin: 0; display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 10px 18px; font-size: .97rem; }
.contact-box dt { color: var(--grey-600); }
.contact-box dd { margin: 0; }

/* ---------- Fuß ---------- */

footer {
  background: var(--petrol-900);
  color: #A9BCC5;
  padding-block: 30px;
  font-size: .9rem;
}
footer a { color: var(--petrol-100); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; }
.legal h2 { margin-top: 1.8em; font-size: 1.2rem; }
.legal dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 18px; }
.legal dt { color: var(--grey-600); }
.legal dd { margin: 0; }

.todo {
  background: #FFF4D6;
  border-left: 4px solid #E0A800;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}

/* ==========================================================================
   Grafische Verfeinerung
   ========================================================================== */

/* ---------- Wortmarke mit Zeichen ---------- */

.brand { display: flex; align-items: center; gap: 11px; color: var(--petrol-700); }
.brand .marke { flex: none; }
.brand-text { color: var(--petrol-900); }

.topbar { transition: box-shadow .2s ease; }
.topbar.gescrollt { box-shadow: 0 2px 14px rgba(20, 35, 45, .09); }

/* ---------- Hero: feines Planraster ---------- */

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(215, 234, 240, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 234, 240, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 72% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 72% 35%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero .kicker { display: flex; align-items: center; gap: 13px; }
.hero .kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--petrol-500);
  flex: none;
}
.hero h1 { letter-spacing: -.02em; }

/* ---------- Kennzahlen mit Akzentlinie ---------- */

.facts .wrap { gap: 28px; }
.fact { border-top: 2px solid var(--petrol-500); padding-top: 13px; }
.fact strong { font-size: 1.75rem; letter-spacing: -.01em; }

/* ---------- Bildrahmen mit ruhigem Zoom ---------- */

.bild {
  display: block;
  overflow: hidden;
  border: 1px solid var(--grey-200);
  border-radius: 7px;
  margin-bottom: 18px;
  background: var(--white);
}
.bild img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}
.bild-dunkel {
  margin-bottom: 0;
  border-color: rgba(215, 234, 240, .25);
  border-radius: var(--radius);
  background: transparent;
}
.card:hover .bild img,
.band-grid figure:hover .bild img { transform: scale(1.045); }

/* ---------- Leistungskarten ---------- */

.card {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 35, 45, .13);
  border-top-color: var(--petrol-700);
}
.karte-nr {
  position: absolute;
  bottom: -14px;
  right: 14px;
  font-size: 5.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(58, 143, 168, .085);
  pointer-events: none;
  user-select: none;
}

/* ---------- Referenzkacheln ---------- */

.ref-group { transition: border-color .2s ease, box-shadow .2s ease; }
.ref-group:hover {
  border-color: var(--petrol-500);
  box-shadow: 0 8px 20px rgba(20, 35, 45, .10);
}

/* ---------- Kontakt als dunkler Abschluss ---------- */

.kontakt .contact-box {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(215, 234, 240, .28);
  box-shadow: none;
}
.kontakt .contact-box dt { color: #A9C3CE; }
.kontakt .contact-box dd { color: var(--white); }
.kontakt .contact-box a { color: var(--petrol-100); text-decoration: none; }
.kontakt .contact-box a:hover { text-decoration: underline; }
.kontakt .cta { margin-top: 26px; }

/* ---------- Bedienbarkeit ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--petrol-500);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn { transition: background-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }

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

/* ---------- Auftraggeber: drei gleich breite Kacheln nebeneinander ---------- */

.ref-partner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}
.partner-spalte { display: flex; flex-direction: column; gap: 20px; }
.ref-partner .ref-group { margin-bottom: 0; }

@media (min-width: 900px) {
  .ref-group.zweispaltig ul { columns: 2; column-gap: 26px; }
  .ref-group.zweispaltig li { break-inside: avoid; }
  .ref-group.zweispaltig li:first-child { border-top: 1px solid rgba(14, 83, 107, .12); padding-top: 7px; }
}

/* ---------- Auftraggeber: drei gleich breite Kacheln nebeneinander ---------- */

.ref-partner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}
.partner-spalte { display: flex; flex-direction: column; gap: 20px; }
.ref-partner .ref-group { margin-bottom: 0; }
