/* ABM Gebäudeservice, Aachen — Design: „Authority Navy + Trust Gold"
   (Palette aus der Design-Bibliothek für Vertrauens-Dienstleistung; bewusst klar
   abgesetzt von der Abdo-Meemo-Demo in Petrol. Schrift: Plus Jakarta Sans, lokal,
   variabel 400–800.) */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("jakarta.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e3a8a;
  --navy-deep: #16296b;
  --navy-ink: #0f1e4d;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #dde3ee;
  --bg: #f8fafc;
  --card: #ffffff;
  --gold: #b45309;
  --gold-dark: #92400e;
  --gold-warm: #f59e0b;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; color: var(--navy-ink); }
h3 { font-size: 19px; }

.demo-banner { background: var(--navy-ink); color: #c7d2ec; text-align: center; font-size: 12.5px; padding: 7px 16px; letter-spacing: 0.02em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; color: var(--navy); text-decoration: none; line-height: 1.1; }
.brand span { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #3a445c; text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color 180ms ease; }
.nav-links a:hover { color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 0; font-family: var(--font); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.btn-primary { background: linear-gradient(120deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: 0 6px 18px rgb(180 83 9 / 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(180 83 9 / 0.4); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--navy-ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-warm); outline-offset: 2px; }
.btn-nav { white-space: nowrap; }
.nav-call { display: none; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; background: linear-gradient(150deg, var(--navy-ink), var(--navy) 55%, #274ba8); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("hero.jpg") center 35% / cover no-repeat; opacity: 0.22; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(15 30 77 / 0.92) 25%, rgb(15 30 77 / 0.55) 65%, rgb(180 83 9 / 0.25)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #fbbf77; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.02; margin-bottom: 18px; }
.hero .sub { font-size: 17.5px; color: #cdd8f2; max-width: 48ch; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero .btn-ghost { background: transparent; border-color: rgb(255 255 255 / 0.28); color: #e6ecfa; }
.hero .btn-ghost:hover { border-color: rgb(255 255 255 / 0.6); }
.hero-note { font-size: 13.5px; color: #9fb0d8; }
.stars-inline { color: var(--gold-warm); letter-spacing: 1px; }

/* WOW 1: Fenster leuchten nacheinander auf */
.house-wrap { justify-self: center; text-align: center; }
.house { width: min(300px, 62vw); height: auto; display: block; margin: 0 auto; }
.h-body { fill: rgb(255 255 255 / 0.08); stroke: rgb(255 255 255 / 0.28); stroke-width: 1.6; }
.h-roof, .h-ground { fill: rgb(255 255 255 / 0.22); }
.h-door { fill: rgb(255 255 255 / 0.2); }
.h-knob { fill: var(--gold-warm); }
.h-win { fill: rgb(255 255 255 / 0.1); stroke: rgb(255 255 255 / 0.25); stroke-width: 1.2; }
html.js .house-wrap.in .h-win { animation: window-on 0.7s ease forwards; }
html.js .house-wrap.in .w1 { animation-delay: 0.4s; } html.js .house-wrap.in .w2 { animation-delay: 0.7s; }
html.js .house-wrap.in .w3 { animation-delay: 1.0s; } html.js .house-wrap.in .w4 { animation-delay: 1.3s; }
html.js .house-wrap.in .w6 { animation-delay: 1.9s; }
html.js .house-wrap.in .w7 { animation-delay: 2.2s; } html.js .house-wrap.in .w8 { animation-delay: 2.5s; }
/* Ein Fenster „lebt": geht nach dem Einzug alle 14 s einmal kurz aus und wieder an */
html.js .house-wrap.in .w5 { animation: window-on 0.7s ease 1.6s forwards, window-blink 14s ease 9s infinite; }
@keyframes window-blink {
  0%, 92%, 100% { opacity: 1; }
  94%, 96% { opacity: 0.25; }
}
@keyframes window-on {
  0% { fill: rgb(255 255 255 / 0.1); }
  60% { fill: rgb(251 191 119 / 0.95); filter: drop-shadow(0 0 6px rgb(245 158 11 / 0.8)); }
  100% { fill: rgb(251 191 119 / 0.85); filter: drop-shadow(0 0 4px rgb(245 158 11 / 0.55)); }
}
.house-caption { margin-top: 14px; font-size: 13px; color: #9fb0d8; }

/* ── WOW 2: Schlüssel pendelt einmal aus ─────────────── */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 20px; }
.trust-item { display: flex; align-items: center; gap: 13px; justify-content: center; }
.trust-item strong { display: block; font-size: 15.5px; line-height: 1.3; color: var(--navy-ink); }
.trust-item span:last-child { font-size: 13px; color: var(--muted); }
.t-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff7ed; color: var(--gold); flex-shrink: 0; }
.key-svg { transform-origin: 50% 10%; }
html.js .trust-item.in .key-svg { animation: key-swing 1.6s cubic-bezier(0.36, 0, 0.3, 1) 0.3s 1; }
@keyframes key-swing {
  0% { transform: rotate(0); } 20% { transform: rotate(26deg); }
  45% { transform: rotate(-18deg); } 70% { transform: rotate(9deg); }
  88% { transform: rotate(-4deg); } 100% { transform: rotate(0); }
}

/* ── Sektionen ───────────────────────────────────────── */
.section { padding: 84px 0; }
.section.alt { background: #eef2f8; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
html.js .reveal.in { opacity: 1; transform: none; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgb(15 30 77 / 0.1); border-color: #c4cfe4; }
.card-ic { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: #eef2fb; color: var(--navy); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; color: var(--navy-ink); }
.card p { font-size: 14.5px; color: #46506a; }
html.js .cards .reveal:nth-child(2) { transition-delay: 90ms; }
html.js .cards .reveal:nth-child(3) { transition-delay: 180ms; }
html.js .cards .reveal:nth-child(4) { transition-delay: 270ms; }

/* WOW 3: Glühbirne geht an */
html.js .card-bulb.in .bulb-ic { animation: bulb-on 1.1s ease 0.5s forwards; }
@keyframes bulb-on {
  0% { background: #eef2fb; color: var(--navy); }
  55% { background: #eef2fb; color: var(--navy); }
  70% { background: #fef3c7; color: var(--gold-warm); box-shadow: 0 0 0 8px rgb(245 158 11 / 0.15); }
  82% { background: #eef2fb; color: var(--navy); box-shadow: none; }
  100% { background: #fef3c7; color: var(--gold-warm); box-shadow: 0 0 0 6px rgb(245 158 11 / 0.12); }
}

.cta-row { margin-top: 44px; text-align: center; }
.cta-row p { color: var(--muted); margin-bottom: 14px; }

/* ── WOW 4: Treppen-Divider zeichnet sich ────────────── */
.stairs { height: 70px; overflow: hidden; }
.stairs-svg { width: 100%; height: 100%; display: block; }
.stairs-path { fill: none; stroke: rgb(30 58 138 / 0.45); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
html.js .stairs.in .stairs-path { animation: stairs-draw 1.6s ease forwards; }
@keyframes stairs-draw { to { stroke-dashoffset: 0; } }

/* ── Ablauf / Checkliste (WOW 5) ─────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-copy p { margin-top: 14px; color: #38415c; }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; color: var(--navy-ink); }
.chk { width: 26px; height: 26px; flex-shrink: 0; }
.chk-ring { fill: #fff; stroke: var(--line); stroke-width: 1.6; }
.chk-tick { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
html.js .check-list li.in .chk-tick { animation: tick-draw 0.6s ease forwards; }
html.js .check-list li:nth-child(1).in .chk-tick { animation-delay: 0.2s; }
html.js .check-list li:nth-child(2).in .chk-tick { animation-delay: 0.45s; }
html.js .check-list li:nth-child(3).in .chk-tick { animation-delay: 0.7s; }
html.js .check-list li:nth-child(4).in .chk-tick { animation-delay: 0.95s; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.about-cta { margin-top: 26px; }
.about-photo img { border-radius: 18px; box-shadow: 0 18px 44px rgb(15 30 77 / 0.18); }
.about-photo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ── Bewertungen ─────────────────────────────────────── */
.rating-panel { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; background: linear-gradient(140deg, var(--navy-ink), var(--navy)); color: #fff; border-radius: 22px; padding: 48px 52px; }
.rating-big { text-align: center; }
.rating-big strong { font-size: 88px; font-weight: 800; line-height: 1; display: block; letter-spacing: -0.03em; }
.rating-stars { color: var(--gold-warm); font-size: 24px; letter-spacing: 4px; display: block; margin-top: 6px; }
.rating-sub { display: block; font-size: 13.5px; color: #9fb0d8; margin-top: 8px; }
.rating-copy h2 { color: #fff; }
.rating-copy p { color: #cdd8f2; margin: 12px 0 22px; max-width: 52ch; }
.rating-panel .btn-ghost { background: transparent; border-color: rgb(255 255 255 / 0.3); color: #e6ecfa; }
.rating-panel .btn-ghost:hover { border-color: #fff; }
.rating-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Kontakt & Formular ──────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; align-items: start; }
.contact-side { display: grid; gap: 20px; }
.contact-card, .contact-form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; }
.contact-card h3, .contact-form-wrap h3 { color: var(--navy-ink); margin-bottom: 10px; }
.contact-card p { font-size: 15px; color: #46506a; margin-bottom: 16px; }
.contact-form { display: grid; gap: 16px; margin-top: 6px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy-ink); }
.contact-form input[type="text"], .contact-form textarea { padding: 12px 14px; font-size: 16px; font-family: var(--font); border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(30 58 138 / 0.12); }
.contact-form button { justify-content: center; }
.form-note { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.form-note a { color: var(--navy); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--navy-ink); color: #9fb0d8; padding: 30px 0; font-size: 13.5px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: #cdd8f2; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: #fff; }
.made-by a { margin: 0; }

.sticky-call { display: none; }

/* ── Responsiv ───────────────────────────────────────── */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; padding-bottom: 60px; }
  .house-wrap { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .rating-panel { grid-template-columns: 1fr; gap: 28px; padding: 38px 30px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .nav-num { display: none; }
  .nav-call { display: inline; }
  .cards { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; gap: 14px; }
  .trust-item { justify-content: flex-start; }
  .section { padding: 60px 0; }
  .sticky-call { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 25; text-align: center; padding: 15px 18px; border-radius: 14px; background: linear-gradient(120deg, var(--gold), var(--gold-dark)); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgb(180 83 9 / 0.42); }
  body { padding-bottom: 76px; }
}

/* Reduzierte Bewegung: Animationen aus, Endzustände sofort */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .house-wrap.in .h-win, html.js .trust-item.in .key-svg,
  html.js .card-bulb.in .bulb-ic, html.js .stairs.in .stairs-path,
  html.js .check-list li.in .chk-tick, .btn, .card {
    animation: none !important;
    transition: none !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .h-win, html.js .h-win { fill: rgb(251 191 119 / 0.85); }
  .stairs-path { stroke-dashoffset: 0; }
  .chk-tick { stroke-dashoffset: 0; }
  html.js .card-bulb.in .bulb-ic, .bulb-ic { background: #fef3c7; color: var(--gold-warm); }
}
