/* ===== Design-Tokens (Farben aus dem Logo) ===== */
:root {
  --blau:      #1c4fa3;   /* Firmenname */
  --blau-tief: #163d80;
  --tuerkis:   #21bcd1;   /* Wassertropfen / Claim */
  --orange:    #f7941e;   /* Sonne – NUR Logo & Solar-Kachel, nicht in der Bedienung */
  --gruen:     #74bf3f;   /* Blatt */
  --gruen-tief:#5aa82f;

  /* Leit-Verlauf (Aktion & Akzent) – wie die Fahrzeug-Lackierung */
  --grad:        linear-gradient(120deg, var(--blau) 0%, #1f8fa8 55%, var(--gruen) 100%);
  --grad-hover:  linear-gradient(120deg, var(--blau-tief) 0%, #17788f 55%, var(--gruen-tief) 100%);

  --text:      #1d2733;
  --muted:     #5a6b7b;
  --line:      #e4e9f0;
  --bg:        #ffffff;
  --bg-alt:    #f5f8fc;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(20, 50, 100, .08);
  --shadow-lg: 0 20px 50px rgba(20, 50, 100, .14);
  --maxw:      1140px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--blau-tief); }
p { margin: 0 0 1em; }
a { color: var(--blau); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-family: var(--font-head);
  font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-ic { width: 1.08em; height: 1.08em; flex: none; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(28,79,163,.28); }
.btn--primary:hover { background: var(--grad-hover); }
.btn--ghost { background: transparent; color: var(--blau); border-color: var(--blau); }
.btn--ghost:hover { background: var(--blau); color: #fff; }
.btn--soft { background: var(--bg-alt); color: var(--blau); border-color: var(--line); }
.btn--soft:hover { background: #eaf1fb; }
.btn--white { background: #fff; color: var(--blau-tief); }
.btn--phone { background: var(--blau); color: #fff; padding: .6em 1.1em; }
.btn--phone:hover { background: var(--blau-tief); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: url('assets/lowpoly.svg') center / cover; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { height: 56px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--blau); letter-spacing: -.01em; }
.brand__tag { font-size: .72rem; font-weight: 600; color: var(--gruen-tief); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-family: var(--font-head); color: var(--text); font-size: .98rem; }
.nav a:hover { color: var(--blau); }
.nav .btn--phone { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--blau-tief); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% -10%, rgba(33,188,209,.18), transparent 45%),
    radial-gradient(circle at 5% 110%, rgba(116,191,63,.16), transparent 40%),
    linear-gradient(180deg, #fff, var(--bg-alt));
  padding: 72px 0 124px;
}
/* Low-Poly-Band wie auf dem Fahrzeug, nach oben ausgeblendet – sitzt unter dem Inhalt */
.hero__deco {
  position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: url('assets/lowpoly.svg') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 34%, transparent 100%);
          mask-image: linear-gradient(to top, #000 34%, transparent 100%);
  opacity: .9; z-index: 0; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--blau); font-size: .82rem; margin-bottom: 14px; }
.hero__title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero__badges li { color: var(--blau-tief); }

.hero__card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); border-top: 5px solid; border-image: linear-gradient(90deg, var(--blau), var(--gruen)) 1; }
.hero__card h3 { margin-bottom: 8px; }
.hero__card p { color: var(--muted); font-size: .98rem; }
.hero__card .btn { margin-top: 10px; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--blau); font-size: .82rem; margin-bottom: 10px; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* ===== Cards (Leistungen) ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon { width: 76px; height: 76px; margin-bottom: 16px; }
.card__icon img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .2s ease; }
.card:hover .card__icon img { transform: scale(1.06); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ===== Notdienst ===== */
.notdienst { background: linear-gradient(135deg, var(--blau), var(--blau-tief)); color: #fff; }
.notdienst__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 24px; flex-wrap: wrap; }
.notdienst h2 { color: #fff; margin-bottom: 4px; }
.notdienst p { color: #cdddf5; margin: 0; }

/* ===== Two-Column ===== */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.two-col--contact { align-items: stretch; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gruen); font-weight: 700; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--blau); }
.stat__label { color: var(--muted); font-size: .9rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; }

/* ===== Formular ===== */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--blau-tief); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-weight: 400; color: var(--text); background: #fbfdff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(28,79,163,.15); }
.form__hint { font-size: .8rem; color: var(--muted); font-weight: 400; margin: 12px 0 0; }

/* Honeypot – für Menschen unsichtbar, fängt Spam-Bots ab */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rückmeldung nach dem Absenden */
.form__status { margin-bottom: 18px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; border: 1px solid var(--line); }
.form__status--ok { color: var(--gruen-tief); background: rgba(116,191,63,.12); border-color: rgba(116,191,63,.45); }
.form__status--fehler { color: #b3261e; background: rgba(179,38,30,.08); border-color: rgba(179,38,30,.4); }

/* ===== Kontakt-Box ===== */
.contact-box { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-box__owner { color: var(--muted); margin-top: -8px; }
.contact-list { margin: 18px 0; }
.contact-list li { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.ci {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
}
.ci svg { width: 19px; height: 19px; display: block; }

/* ===== Footer ===== */
.footer { position: relative; background: var(--blau-tief); color: #c4d6f0; padding: 48px 0 28px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: url('assets/lowpoly.svg') center / cover; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand--footer .brand__mark { height: 52px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: #9cd6e2; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: #fff; font-weight: 500; font-size: .95rem; }
.footer__copy { margin: 0; font-size: .9rem; }
/* ===== Rechtstext / Impressum ===== */
.legal { max-width: 760px; }
.legal__back { display: inline-block; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 6px; }
.legal h2 { font-family: var(--font-head); font-size: 1.12rem; color: var(--blau-tief); margin: 30px 0 6px; }
.legal p { color: var(--text); margin: 0 0 5px; line-height: 1.7; }
.legal .muted { color: var(--muted); font-size: .9rem; }
.todo { background: #fff3cd; color: #7a5b00; padding: 1px 8px; border-radius: 5px; font-weight: 600; font-size: .92em; border: 1px dashed #e0b400; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner, .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav--open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn--phone { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: flex; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .brand__name { font-size: 1rem; }
  .brand__tag { display: none; }
  .brand__mark { height: 42px; }
}

/* ===== Einblende-Effekt beim Scrollen =====
   Nur aktiv, wenn JS die Klasse .js-reveal an <html> setzt – ohne JS
   bleiben alle Inhalte sofort sichtbar. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  /* Kein Hochschieben, aber weiches Ein-/Ausblenden bleibt erhalten */
  .js-reveal .reveal { transform: none; transition: opacity .7s ease; }
}
