/* Dachdeckerei Richard Züche GmbH — mobile-first, Palette Dachdecker:
   Grund Anthrazit #1a1d21 · Schiefer #3e4650/#aab4c0 · Kupfer #b87333 */

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}

:root {
  --grund: #0c0d0f;
  --grund-hell: #17191c;
  --schiefer: #2b2e33;
  --text: #f2f3f5;
  --text-dim: #a3aab2;
  --rot: #e20613;
  --rot-hell: #ff3b46;
  --display: 'Archivo Black', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }
body {
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body::after { /* Filmkorn */
  content: '';
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23k)'/%3E%3C/svg%3E");
  opacity: .035;
}
img { max-width: 100%; height: auto; display: block; }
h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 6.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  font-style: italic;
}
.rot { color: var(--rot-hell); }
h2 .rot, .hero-headline .rot, .hero-claim .rot { color: var(--rot); }
.mono { font-family: var(--mono); }
section { padding: 4.5rem 1.25rem; }

/* ---------- Kopf ---------- */
.kopf {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
}
.kopf-logo { width: 200px; height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
.kopf-tel {
  color: var(--text); text-decoration: none; font-size: .95rem;
  padding: .55rem .9rem; border: 1px solid rgba(232,234,237,.35); border-radius: 3px;
  background: rgba(26,29,33,.45); backdrop-filter: blur(4px);
  min-height: 44px; display: inline-flex; align-items: center;
}
.kopf-tel:hover { border-color: var(--rot); color: var(--rot-hell); }

/* ---------- Akt 1: Hero ---------- */
.hero { padding: 0; }
.hero-buehne {
  position: relative; height: 100svh; min-height: 480px;
  overflow: hidden; background: var(--grund);
}
.hero-standbild, .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-canvas { z-index: 2; }
.hero-schleier {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(rgba(12,13,15,.55), rgba(12,13,15,.08) 35%, rgba(12,13,15,.66) 92%);
}
.hero-text {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 14svh; z-index: 4;
}
.hero-eyebrow {
  color: var(--text-dim); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .8rem;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(3.1rem, 12vw, 8.5rem);
  line-height: .92; letter-spacing: -.015em;
  text-transform: uppercase; font-style: italic;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.hero-headline .zeile { display: block; }
.hero-claim {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  text-transform: uppercase; font-style: italic;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.hero-swoosh { display: block; width: min(440px, 72vw); height: auto; margin-top: .3rem; }
.hero-subline { margin-top: 1rem; max-width: 34ch; color: var(--text-dim); font-size: clamp(1rem, 2.5vw, 1.2rem); }
.hero-hinweis {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  z-index: 4; color: var(--text-dim); font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; display: flex; gap: .5rem; align-items: center;
}
.hero-pfeil { animation: pfeil 1.6s ease-in-out infinite; }
@keyframes pfeil { 50% { transform: translateY(5px); } }

/* ---------- Akt 2: Vertrauensband ---------- */
.vertrauen { border-top: 1px solid var(--schiefer); border-bottom: 1px solid var(--schiefer); padding: 2.5rem 1.25rem; }
.vertrauen-band { list-style: none; display: grid; gap: 1.6rem; }
.vertrauen-band li { display: grid; gap: .25rem; }
.vertrauen-label { color: var(--rot); font-size: 1.15rem; font-weight: 500; }
.vertrauen-band li span:last-child { color: var(--text-dim); font-size: .95rem; }

/* ---------- Akt 3: Leistungen ---------- */
.leistungen { padding-bottom: 2rem; }
.leistungen-kopf { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.leistungen-zaehler { color: var(--text-dim); font-size: .9rem; display: none; }
.leistungen-track { display: grid; gap: 3rem; }
.karte figure {
  overflow: hidden; border-radius: 4px; margin-bottom: 1.1rem;
  aspect-ratio: 4 / 3; background: var(--grund-hell);
}
.karte figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12); transition: filter .45s ease, scale .45s ease; }
.karte h3 { font-family: var(--display); font-size: 1.45rem; margin-bottom: .6rem; text-transform: uppercase; font-style: italic; }
.karte p { color: var(--text-dim); max-width: 60ch; }
.karte-detail {
  margin-top: .8rem; padding-left: .9rem; border-left: 2px solid var(--rot);
  color: var(--text) !important; font-size: .85rem;
}

/* ---------- Akt 4: Verfahren ---------- */
.verfahren { background: #121316; padding-top: 5rem; padding-bottom: 5rem; }
.verfahren-plan { margin-bottom: 2.5rem; }
.verfahren-plan svg { width: 100%; height: auto; }
.verfahren-schritte { list-style: none; display: grid; gap: 2.2rem; max-width: 60ch; }
.schritt h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--sans); margin-bottom: .4rem; }
.schritt-nr { color: var(--rot); margin-right: .5rem; font-weight: 500; }
.schritt p { color: var(--text-dim); }

/* ---------- Akt 5: Über uns ---------- */
.ueberuns { display: grid; gap: 2rem; }
.ueberuns-bild { overflow: hidden; border-radius: 4px; max-height: 70vh; }
.ueberuns-bild img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; filter: grayscale(1) contrast(1.12); transition: filter .45s ease; }
.ueberuns-referenz img { filter: grayscale(1) contrast(1.12); transition: filter .45s ease; }

/* Hover: Bilder werden farbig (nur Geräte mit Maus/Trackpad) */
@media (hover: hover) and (pointer: fine) {
  .karte figure:hover img { filter: grayscale(0) contrast(1.04); scale: 1.04; }
  .ueberuns-bild:hover img, .ueberuns-referenz:hover img { filter: grayscale(0) contrast(1.04); }
}
.ueberuns-text p { color: var(--text-dim); max-width: 60ch; }
.ueberuns-referenz { margin-top: 2rem; overflow: hidden; border-radius: 4px; }
.ueberuns-referenz img { scale: 1.15; }
.ueberuns-referenz figcaption {
  padding-top: .7rem; font-size: .8rem; color: var(--text-dim); letter-spacing: .04em;
}

/* ---------- Akt 6: Einzugsgebiet ---------- */
.gebiet { text-align: center; border-top: 1px solid var(--schiefer); }
.gebiet > p { color: var(--text-dim); max-width: 50ch; margin: 0 auto; }
.gebiet-orte { margin-top: 1rem; color: var(--text-dim); font-size: .85rem; letter-spacing: .03em; }
.gebiet-karte { max-width: 880px; margin: 2.2rem auto 0; }
.karte-consent {
  display: grid; gap: .9rem; justify-items: center; align-content: center;
  min-height: 320px; padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse at center, rgba(226,6,19,.06), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.035) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.035) 39px 40px),
    var(--grund-hell);
  border: 1px solid var(--schiefer); border-radius: 6px;
}
.karte-consent p.mono { color: var(--text); font-size: .95rem; }
.btn-karte { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn-karte:hover { background: var(--rot-hell); }
.karte-consent-hinweis { font-size: .78rem; color: var(--text-dim); max-width: 44ch; }
.karte-consent-hinweis a { color: var(--text-dim); }
.karte-consent[hidden], .karte-rahmen[hidden] { display: none; }
.karte-rahmen { border-radius: 6px; overflow: hidden; border: 1px solid var(--schiefer); }
.karte-rahmen iframe { display: block; width: 100%; height: 420px; border: 0; }
.karte-link { margin-top: 1rem; font-size: .9rem; }
.karte-link a { color: var(--rot-hell); }

/* ---------- Akt 7: Kontakt ---------- */
.kontakt { background: #121316; border-top: 1px solid var(--schiefer); padding-top: 5.5rem; }
.kontakt-headline { font-size: clamp(2.1rem, 8vw, 5rem); max-width: 14ch; }
.kontakt-headline span { display: inline-block; }
.kontakt-tel {
  display: inline-block; margin: 1.8rem 0 .5rem;
  font-size: clamp(1.9rem, 8.5vw, 5.5rem); font-weight: 500;
  color: var(--rot-hell); text-decoration: none; letter-spacing: -.02em;
  border-bottom: 3px solid var(--rot);
  padding-bottom: .2rem;
}
.kontakt-tel:hover { color: var(--text); }
.kontakt-aktionen { margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.3rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--text); background: var(--grund-hell);
  border: 1px solid var(--schiefer); border-radius: 4px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--rot); }
.kontakt-whatsapp-hinweis { margin-top: .6rem; color: var(--text-dim); font-size: .9rem; }
.kontakt-unten { display: grid; gap: 3rem; margin-top: 3.5rem; }
.kontakt-formular { display: grid; gap: 1.1rem; max-width: 480px; }
.kontakt-formular label { display: grid; gap: .35rem; font-size: .9rem; color: var(--text-dim); }
.kontakt-formular input, .kontakt-formular textarea {
  background: var(--grund); border: 1px solid var(--schiefer); border-radius: 4px;
  color: var(--text); font-family: var(--sans); font-size: 1rem;
  padding: .8rem; min-height: 48px; resize: vertical;
}
.kontakt-formular textarea { min-height: 110px; }
.kontakt-formular input:focus, .kontakt-formular textarea:focus {
  outline: none; border-color: var(--rot);
}
.btn-senden { justify-content: center; background: var(--rot); border-color: var(--rot); color: #fff; }
.btn-senden:hover { background: var(--rot-hell); }
.kontakt-formular-hinweis { font-size: .8rem; color: var(--text-dim); }
.kontakt-qr { display: none; }

/* ---------- Marquee-Bänder ---------- */
.marquee {
  overflow: hidden; padding: 1.1rem 0; background: #09090b;
  border-top: 1px solid var(--schiefer); border-bottom: 1px solid var(--schiefer);
}
.marquee-spur {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase; font-style: italic;
  font-size: clamp(1.5rem, 4.5vw, 2.8rem); line-height: 1;
  color: var(--text); will-change: transform;
}
.marquee-spur em { font-style: italic; color: var(--rot); }

/* ---------- Badges & Kopfzeilen ---------- */
.kopfzeile { display: flex; align-items: center; gap: 1.1rem; }
.badge { width: 76px; height: 76px; flex-shrink: 0; }
.badge-mini { width: 36px; height: 36px; vertical-align: middle; margin-right: .5rem; }
.kontakt-badge { width: 96px; height: 96px; margin-bottom: 1.2rem; }
.fuss-badge { width: 130px; height: 130px; }

/* ---------- Rote Splatter-Akzente ---------- */
.kontakt, .verfahren, .hero-buehne { position: relative; }
.kontakt::before {
  content: ''; position: absolute; top: -30px; right: -50px;
  width: 320px; height: 360px; pointer-events: none;
  background: url('../media/splatter.webp') no-repeat center / contain;
  opacity: .75; transform: scaleX(-1);
}
.verfahren::after {
  content: ''; position: absolute; bottom: 40px; left: -70px;
  width: 280px; height: 320px; pointer-events: none;
  background: url('../media/splatter.webp') no-repeat center / contain;
  opacity: .5;
}

/* ---------- Footer ---------- */
.fuss {
  padding: 2.5rem 1.25rem 6.5rem; border-top: 1px solid var(--schiefer);
  display: grid; gap: .9rem; font-size: .85rem; color: var(--text-dim);
}
.fuss a { color: var(--text-dim); }
.fuss a:hover { color: var(--text); }
.fuss-firma { display: grid; gap: .7rem; }
.fuss-logo { width: 180px; height: auto; }
.tablog-credit { font-size: .8rem; }
.tablog-credit a { color: #5da4d4; text-decoration: none; }
.tablog-credit a:hover { color: #f99c00; }

/* ---------- Schwebender Anruf-Button ---------- */
.anruf-schwebend {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 500;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.2rem;
  background: var(--rot); color: #fff;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.anruf-schwebend.sichtbar { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reduced Motion ---------- */
.reduced-motion .hero-canvas, .reduced-motion .hero-hinweis { display: none; }
.reduced-motion .hero-pfeil { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-pfeil { animation: none; }
}

/* ================= Desktop ================= */
@media (min-width: 768px) {
  section { padding: 6rem 4rem; }
  .kopf { padding: 1.5rem 4rem; }
  .kopf-logo { width: 260px; }
  .hero-text { left: 4rem; right: 4rem; }
  .vertrauen-band { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .ueberuns { grid-template-columns: 5fr 7fr; align-items: start; }
  .kontakt-unten { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1024px) {
  /* Leistungen: horizontaler Scrub-Track */
  .leistungen { padding: 6rem 0; overflow: hidden; }
  .leistungen-kopf { padding: 0 4rem; }
  .leistungen-zaehler { display: block; }
  .leistungen-track {
    display: flex; gap: 3rem; padding: 0 4rem; width: max-content;
  }
  .karte { width: 480px; flex-shrink: 0; }
  .verfahren-buehne {
    display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center;
  }
  .verfahren-plan { margin-bottom: 0; position: sticky; top: 12vh; }
  .schritt { opacity: .25; transition: opacity .35s; }
  .schritt.aktiv { opacity: 1; }
  .kontakt-qr {
    display: grid; gap: .8rem; justify-items: center;
    padding: 1.6rem; background: var(--text); border-radius: 6px;
  }
  .kontakt-qr p { color: var(--grund); font-size: .8rem; }
  .fuss { grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 2.5rem; padding-right: 13rem; }
  .fuss nav { text-align: center; }
  .tablog-credit { text-align: right; }
  .anruf-schwebend { right: 2rem; bottom: 2rem; }
}

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 72ch; margin: 0 auto; padding: 4rem 1.25rem; }
.legal h1 { font-family: var(--display); font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: .8rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--rot-hell); }
.legal-back {
  display: inline-block; margin-bottom: 2rem; color: var(--text-dim);
  font-family: var(--mono); font-size: .85rem; text-decoration: none;
}
.legal-back:hover { color: var(--text); }
.legal-footer {
  max-width: 72ch; margin: 0 auto; padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--schiefer); font-size: .85rem; color: var(--text-dim);
  display: grid; gap: .8rem;
}
.legal-footer a { color: var(--text-dim); }
