/* =========================================================
   Zimmermann-Bau GmbH – Stylesheet
   CI: Bau-Gelb + Anthrazit
   Stil: bodenständig, seriös, handwerklich, modern
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Markenfarben */
  --yellow: #fbee01;          /* Bau-Gelb gemäß Logo-CI */
  --yellow-strong: #b39d00;   /* dunkler Akzent (für Texte/Icons auf Weiß) */
  --yellow-soft: #fffadd;     /* heller Bereich-Hintergrund */

  --black: #111111;
  --anthracite: #1d1d1f;
  --gray-900: #1a1a1a;
  --gray-700: #3a3a3a;
  --gray-500: #6b6b6b;
  --gray-300: #d6d6d6;
  --gray-200: #e9e9e9;
  --gray-100: #f4f4f4;
  --gray-50:  #fafafa;
  --white: #ffffff;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Typo */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.05);
  --shadow-md: 0 6px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.14);

  /* Transition */
  --t: .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  line-height: 1.15;
  color: var(--black);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--gray-700); }

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

/* ---------- Utility ---------- */
.accent { color: var(--yellow-strong); }
.section-eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow-strong);
  margin-bottom: 14px;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-lead { font-size: 1.1rem; color: var(--gray-700); }

/* Fade-In */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 6px 16px rgba(251,238,1,.45);
}
.btn-primary:hover {
  background: var(--yellow-strong);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--yellow);
  color: var(--black);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--gray-900);
  transition: background var(--t), color var(--t);
}
.main-nav a:hover { background: var(--gray-100); }
.main-nav .nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  margin-left: 6px;
}
.main-nav .nav-cta:hover {
  background: var(--yellow);
  color: var(--black);
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  /* Fallback bei fehlendem Bild */
  background-color: #2a2a2a;
}
/* Wenn kein hero.jpg: schöner Verlauf als Fallback */
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,.55) 60%, rgba(20,20,20,.85) 100%),
    repeating-linear-gradient(45deg, rgba(251,238,1,.06) 0 20px, transparent 20px 40px);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero h1 .accent { color: var(--yellow); }
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,.92);
  max-width: 680px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   TRUST ROW
   ============================================================ */
.trust {
  background: var(--white);
  padding: 80px 0 30px;
  position: relative;
  margin-top: -60px;
  z-index: 3;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}
.trust-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow-strong);
  line-height: 1;
  margin-bottom: 8px;
}
/* Trust-Karte mit animiertem Ring (erste Karte auf der Homepage) –
   wirkt wie eine Stat-Karte, behält aber den Trust-Karten-Rahmen. */
.trust-card.has-stat {
  text-align: center;
}
.trust-card.has-stat .stat-visual {
  margin: 0 auto 20px;
}
.trust-card.has-stat h3,
.trust-card.has-stat p {
  text-align: center;
}
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: var(--yellow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.trust-icon svg { width: 30px; height: 30px; }
.trust-card h3 { margin-bottom: 8px; }
.trust-card p { margin: 0; color: var(--gray-700); }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about {
  padding: 110px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p { font-size: 1.02rem; }
.about-text .btn { margin-top: 14px; }

.about-visual {
  position: relative;
}
.about-image {
  aspect-ratio: 4 / 5;
  background-image: url('../images/about.jpg');
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.25));
}
.about-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.about-badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge-text {
  display: block;
  font-weight: 600;
  margin-top: 6px;
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.services {
  padding: 110px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { margin: 0; font-size: .98rem; }

/* ============================================================
   REFERENZEN
   ============================================================ */
.references { padding: 110px 0; }

.ref-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.ref-filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-weight: 500;
  font-size: .95rem;
  transition: all var(--t);
}
.ref-filter-btn:hover {
  border-color: var(--black);
  color: var(--black);
}
.ref-filter-btn.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.ref-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-200);
  transition: transform var(--t), box-shadow var(--t);
}
.ref-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ref-tall { grid-row: span 2; }
.ref-wide { grid-column: span 2; }

.ref-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
  background-image:
    linear-gradient(135deg, rgba(40,40,40,.6), rgba(20,20,20,.85)),
    repeating-linear-gradient(45deg, rgba(251,238,1,.08) 0 16px, transparent 16px 32px);
  transition: transform .5s ease;
}
.ref-item:hover .ref-img { transform: scale(1.04); }

.ref-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  color: var(--white);
}
.ref-meta span {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.ref-meta strong { display: block; font-size: 1rem; }

.ref-item.is-hidden { display: none; }

/* ============================================================
   CTA-BAND
   ============================================================ */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 70px 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 6px;
}
.cta-band p {
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact {
  padding: 110px 0;
  background: var(--gray-50);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-lead { font-size: 1.05rem; }
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px;
}
.contact-list li {
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-list li:first-child { display: block; line-height: 1.7; }
.contact-list a {
  font-weight: 600;
  color: var(--black);
  border-bottom: 2px solid var(--yellow);
}
.contact-label {
  display: inline-block;
  min-width: 80px;
  font-weight: 600;
  color: var(--gray-500);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact-map {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  padding: 38px;
}
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.form-row { margin-bottom: 18px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label,
.form-row > div > label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font: inherit;
  font-size: .98rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--yellow-strong);
  box-shadow: 0 0 0 4px rgba(251,238,1,.25);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 22px;
  font-size: .92rem;
  color: var(--gray-700);
}
.form-check input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--yellow-strong); }
.form-check a { color: var(--black); border-bottom: 1px solid var(--yellow); }

.form-status {
  margin: 16px 0 0;
  font-size: .95rem;
  font-weight: 500;
}
.form-status.is-success { color: #1b7a3a; }
.form-status.is-error { color: #b3261e; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,.78);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-meta {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: 10px;
  line-height: 1.6;
}
/* Kontakt-Zeilen sollen nicht umbrechen */
.footer-contact { white-space: nowrap; }
/* Wrapper hinterlegt das transparente Logo mit der CI-Gelb-Fläche,
   damit es auf dem dunklen Footer sichtbar bleibt. */
.footer-logo-wrap {
  display: inline-block;
  background: var(--yellow);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}
.footer-tag {
  color: rgba(255,255,255,.65);
  margin: 0;
  font-size: .95rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.site-footer p { color: rgba(255,255,255,.78); margin: 0; line-height: 1.8; }
.site-footer a {
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.site-footer a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  font-size: .88rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,.55); margin: 0; }
.footer-credit {
  font-size: .82rem;
  letter-spacing: .02em;
}
.footer-credit a {
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.footer-credit a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}
@media (max-width: 600px) {
  .footer-bottom-inner { justify-content: flex-start; }
}

/* ============================================================
   GLOBAL WATERMARK – Eigentum von Makronomo
   Ein einzelner, dezent transparenter, diagonaler Schriftzug
   mittig im Viewport. Voller Satz immer sichtbar.
   ============================================================ */
.watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.watermark-text {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 7.5vw, 6.5rem);
  font-weight: 800;
  color: rgba(220, 38, 38, 0.06);
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-22deg);
  user-select: none;
}

/* ============================================================
   PAGE-HERO (für Unterseiten)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #161616 0%, #2a2a2a 100%);
  color: var(--white);
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(251,238,1,.05) 0 22px, transparent 22px 44px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: var(--white); margin-bottom: 18px; }
.page-hero h1 .accent { color: var(--yellow); }
.page-hero p {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  margin: 0;
}

/* ============================================================
   STATS / ANIMIERTE COUNTER (mit SVG-Ringen)
   ============================================================ */
.stats {
  padding: 90px 0;
  background: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  /* Sehr dezente Gelb-Aura beim Hover */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(251,238,1,.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}
.stat-card:hover::before { opacity: 1; }

/* Visueller Container: SVG-Ring + Zahl in der Mitte */
.stat-visual {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
}
.stat-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.stat-ring circle {
  fill: none;
  stroke-width: 5;
  cx: 50; cy: 50; r: 45;
}
.stat-ring-bg { stroke: var(--gray-200); }
.stat-ring-fg {
  stroke: var(--yellow);
  stroke-linecap: round;
  stroke-dasharray: 282.74; /* 2*PI*45 */
  stroke-dashoffset: 282.74;
  filter: drop-shadow(0 0 6px rgba(251,238,1,0));
  transition: stroke-dashoffset 1.8s cubic-bezier(.5,.05,.2,1),
              filter .4s ease;
}
/* generisch: jede Karte mit Klasse is-counted (egal ob stat-card oder trust-card) */
.is-counted .stat-ring-fg {
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(251,238,1,.55));
}

.stat-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* etwas kleiner + tighter, damit auch "50.000 m²" sicher in den Ring passt */
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 0 10px;
}
.stat-num .stat-suffix {
  color: var(--yellow-strong);
  margin-left: 1px;
}
.is-counted .stat-num {
  animation: statPulse .6s ease;
}
@keyframes statPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.stat-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 1rem;
  margin-top: 4px;
}
.stat-sub {
  display: block;
  font-size: .78rem;
  color: var(--gray-500);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- Konfetti-Animation (25 Jahre Karte) ---------- */
.stat-visual { overflow: visible; } /* Partikel dürfen den Ring verlassen */
.confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  pointer-events: none;
  opacity: 0;
  border-radius: 2px;
  z-index: 5;
  will-change: transform, opacity;
}
.confetti.is-burst {
  animation: confettiBurst 1.4s cubic-bezier(.18,.7,.4,1) forwards;
}
@keyframes confettiBurst {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); }
}

/* ============================================================
   TIMELINE / BAUPROZESS
   ============================================================ */
.process {
  padding: 110px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}
/* horizontale Linie hinter den Schritten */
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8.33%;
  right: 8.33%;
  height: 3px;
  background: var(--gray-300);
  border-radius: 2px;
  z-index: 0;
}
.timeline::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 8.33%;
  height: 3px;
  width: var(--progress, 0%);
  background: var(--yellow);
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(.5,.05,.2,1);
  z-index: 1;
}
.timeline.is-visible { --progress: 83.34%; }

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6px;
}
.step-dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray-500);
  transition: background .4s ease, border-color .4s ease, color .4s ease, transform .4s ease;
}
.timeline.is-visible .step-dot {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}
.timeline.is-visible .step:nth-child(1) .step-dot { transition-delay: .05s; }
.timeline.is-visible .step:nth-child(2) .step-dot { transition-delay: .25s; }
.timeline.is-visible .step:nth-child(3) .step-dot { transition-delay: .45s; }
.timeline.is-visible .step:nth-child(4) .step-dot { transition-delay: .65s; }
.timeline.is-visible .step:nth-child(5) .step-dot { transition-delay: .85s; }
.timeline.is-visible .step:nth-child(6) .step-dot { transition-delay: 1.05s; }

.step h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.step p {
  font-size: .92rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 110px 0;
  background: var(--white);
}
.faq-list {
  max-width: 820px;
  margin: 40px auto 0;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item.is-open {
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--t);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  padding: 0 24px;
}
.faq-item.is-open .faq-a {
  max-height: 600px;
  padding: 0 24px 22px;
}
.faq-a p {
  margin: 0;
  color: var(--gray-700);
  font-size: .98rem;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE für neue Komponenten
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before, .timeline::after { display: none; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-card { padding: 26px 14px 22px; }
  .stat-visual { width: 120px; height: 120px; }
  .timeline { grid-template-columns: 1fr; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: flex-start; }
  .step-dot { margin: 0; }
  .faq-q { padding: 18px 18px; font-size: 1rem; }
  .faq-item.is-open .faq-a { padding: 0 18px 20px; }
  /* Kontakt darf auf Mobil umbrechen, sonst überfließt es */
  .footer-contact { white-space: normal; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--white);
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t);
}
.lightbox-close { top: 24px; right: 24px; font-size: 2rem; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  h2 { font-size: 1.7rem; }

  .header-inner { padding: 12px 18px; }
  .logo img { height: 38px; }
  /* Sehr schmale Geräte: Logo etwas kleiner, damit Burger immer Platz hat */
  @media (max-width: 380px) {
    .logo img { height: 32px; }
  }

  /* Mobile-Menü */
  .burger { display: flex; }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 16px 20px 24px;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .main-nav .nav-cta {
    text-align: center;
    margin: 8px 0 0;
    border-radius: 999px;
  }

  .hero { padding: 120px 0 80px; min-height: 80vh; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1.05rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .trust { padding: 60px 0 20px; margin-top: 0; }
  .trust-grid { grid-template-columns: 1fr; }

  .about, .services, .references, .contact { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .ref-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .ref-tall, .ref-wide { grid-row: auto; grid-column: auto; }

  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 50px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 30px; }

  .about-badge { left: 0; bottom: -24px; padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
