/* =========================================================
   Harkenbusch, Die Dachdecker- und Klempner-Meister, Haselünne
   Schiefer-Töne (das Material), Harkenbusch-Orange (ihr Hammer),
   warmes Papier als Grund. Schrift: Lexend, gut lesbar 35 bis 65.
   ========================================================= */

:root {
  --schiefer: #2c3c4a;        /* dunkles Schieferblau, Bänder + Fuß */
  --schiefer-tief: #1e2a34;
  --schiefer-hell: #46596a;
  --tinte: #22303b;           /* Haupttext */
  --grau: #52616e;            /* Nebentext, > 6:1 auf Papier */
  --papier: #f8f6f2;          /* warmer Seitengrund */
  --flaeche: #ffffff;
  --rand: #e6e2da;
  --orange: #d4571a;          /* Harkenbusch-Hammer */
  --orange-dunkel: #ad4413;
  --orange-hell: #fbeadf;
  --gruen: #22713e;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(30, 42, 52, 0.06), 0 10px 28px rgba(30, 42, 52, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  font-family: "Lexend", "Helvetica Neue", Arial, sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 650; }
h3 { font-size: 1.14rem; font-weight: 600; }

p { max-width: 68ch; }

a { color: var(--tinte); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

section { padding: clamp(54px, 9vw, 100px) 0; }

.kicker {
  display: inline-block;
  font-weight: 600;
  color: var(--orange);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sub { color: var(--grau); margin-top: 14px; font-size: 1.08rem; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.da { opacity: 1; transform: none; }

/* =========================================================
   Kopf
   ========================================================= */
#kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#kopf.fest { border-color: var(--rand); box-shadow: 0 2px 12px rgba(30, 42, 52, 0.07); background: rgba(255,255,255,0.97); }

.kopf-innen { display: flex; align-items: center; gap: 26px; min-height: 76px; }

.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke svg { height: 44px; width: auto; }
.marke-text { line-height: 1.12; }
.marke-text b { font-size: 1.18rem; letter-spacing: 0.02em; display: block; }
.marke-text span { font-size: 0.8rem; color: var(--grau); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; color: var(--tinte);
  padding: 10px 13px; border-radius: 8px; font-size: 0.98rem;
}
.nav a:hover { background: #efece6; }
.nav a.aktiv { color: var(--orange); }

.tel-knopf {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 20px; border-radius: var(--radius);
  transition: background 0.2s ease;
  white-space: nowrap;
}
.tel-knopf:hover { background: var(--orange-dunkel); }
.tel-knopf svg { width: 18px; height: 18px; flex: none; }

#schalter {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rand); border-radius: 8px;
  width: 46px; height: 46px; cursor: pointer; color: var(--tinte);
  align-items: center; justify-content: center;
}

#mobilmenu { display: none; }

@media (max-width: 920px) {
  .nav, .kopf-innen > .tel-knopf { display: none; }
  #schalter { display: inline-flex; }
  #mobilmenu {
    display: block; position: fixed; inset: 0; z-index: 60;
    background: var(--papier); padding: 24px;
    transform: translateX(100%); transition: transform 0.25s ease;
  }
  #mobilmenu.offen { transform: none; }
  body.offen { overflow: hidden; }
  #mobilmenu nav { display: grid; gap: 6px; margin-top: 42px; }
  #mobilmenu nav a {
    text-decoration: none; font-size: 1.35rem; font-weight: 600;
    padding: 14px 10px; border-radius: 8px;
  }
  #mobilmenu nav a:hover { background: #efece6; }
  #mobilmenu .tel-knopf { margin-top: 22px; justify-content: center; font-size: 1.1rem; }
  #mobilZu {
    position: absolute; top: 18px; right: 18px;
    background: none; border: 1px solid var(--rand); border-radius: 8px;
    width: 46px; height: 46px; cursor: pointer; color: var(--tinte);
    display: inline-flex; align-items: center; justify-content: center;
  }
}

/* =========================================================
   Held: Text oben, breite Dachlandschaft darunter
   ========================================================= */
#held { padding: clamp(44px, 6vw, 72px) 0 0; background: var(--papier); }
.held-text { max-width: 780px; }
.held-text .ort {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--grau); font-size: 1rem; margin-bottom: 14px;
}
.held-text .ort svg { width: 17px; height: 17px; color: var(--orange); }
.held-text h1 b { color: var(--orange); font-weight: 700; }

.held-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.knopf-zweit {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid #d8d3c9; background: var(--flaeche); color: var(--tinte);
  text-decoration: none; font-weight: 600; padding: 12px 20px;
  border-radius: var(--radius); transition: border-color 0.2s ease, background 0.2s ease;
}
.knopf-zweit:hover { border-color: var(--tinte); background: var(--papier); }

.held-hinweis { margin-top: 16px; font-size: 0.95rem; color: var(--grau); }

/* Die Dachlandschaft läuft über die volle Breite */
.dachlandschaft { margin-top: clamp(28px, 5vw, 52px); line-height: 0; }
.dachlandschaft svg { width: 100%; height: auto; display: block; }

/* ---------- Belege-Zeile auf Schiefer ---------- */
.belege { background: var(--schiefer); color: #e8edf2; }
.belege-innen {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; padding: 24px 0;
}
@media (max-width: 760px) { .belege-innen { grid-template-columns: 1fr; gap: 12px; } }
.beleg { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.98rem; }
.beleg svg { width: 22px; height: 22px; color: #f0925a; flex: none; }

/* =========================================================
   Leistungen
   ========================================================= */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 980px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .karten { grid-template-columns: 1fr; } }

.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 1px 2px rgba(30, 42, 52, 0.04);
  border-top: 3px solid var(--schiefer);
}
.karte.betont { border-top-color: var(--orange); }
.karte svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: 14px; }
.karte p { color: var(--grau); margin-top: 8px; font-size: 0.99rem; }

/* =========================================================
   Spruch-Band (ihr eigener Humor)
   ========================================================= */
#spruch {
  background:
    linear-gradient(rgba(20, 29, 38, 0.85), rgba(20, 29, 38, 0.85)),
    url("../img/ziegel-hintergrund.jpg") center / cover no-repeat var(--schiefer-tief);
  color: #fff; padding: clamp(56px, 8vw, 96px) 0;
}
#spruch blockquote {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 650; line-height: 1.25; letter-spacing: -0.01em;
  max-width: 22ch; margin: 0 auto; text-align: center;
}
#spruch blockquote b { color: #f0925a; }
#spruch figcaption { text-align: center; color: #9fb0bf; margin-top: 18px; font-size: 0.95rem; }

/* =========================================================
   Referenzen (echte Fotos von ihrer alten Website)
   ========================================================= */
#referenzen { background: var(--flaeche); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.galerie img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 3 / 2; border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(30, 42, 52, 0.08), 0 10px 24px rgba(30, 42, 52, 0.1);
}
.galerie .breit { grid-column: span 2; }
@media (max-width: 720px) {
  .galerie { grid-template-columns: 1fr; }
  .galerie .breit { grid-column: auto; }
}

/* Foto-Paar im Betriebs-Abschnitt */
.betrieb-fotos { display: grid; gap: 18px; }
.betrieb-fotos img {
  width: 100%; object-fit: cover; aspect-ratio: 3 / 2;
  border-radius: 14px; box-shadow: var(--schatten);
}

/* =========================================================
   Ablauf
   ========================================================= */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; counter-reset: schritt; }
@media (max-width: 980px) { .schritte { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .schritte { grid-template-columns: 1fr; } }

.schritt {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 24px; counter-increment: schritt;
}
.schritt::before {
  content: counter(schritt);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange-hell); color: var(--orange-dunkel);
  font-weight: 700; font-size: 1.15rem; margin-bottom: 14px;
}
.schritt p { color: var(--grau); font-size: 0.98rem; margin-top: 6px; }

/* =========================================================
   Betrieb
   ========================================================= */
#betrieb { background: var(--flaeche); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.betrieb-gitter { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .betrieb-gitter { grid-template-columns: 1fr; } }
.betrieb-fakten { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.betrieb-fakten li { display: flex; gap: 12px; align-items: flex-start; color: var(--grau); }
.betrieb-fakten svg { width: 21px; height: 21px; color: var(--orange); flex: none; margin-top: 4px; }
.betrieb-fakten b { color: var(--tinte); }
.betrieb-bild svg { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--schatten); }

/* =========================================================
   Kontakt
   ========================================================= */
.kontakt-gitter { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .kontakt-gitter { grid-template-columns: 1fr; } }

.kontakt-block { display: grid; gap: 20px; }
.kontakt-zeile { display: flex; gap: 14px; align-items: flex-start; }
.kontakt-zeile svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 3px; }
.kontakt-zeile b { display: block; }
.kontakt-zeile a { color: var(--tinte); font-weight: 600; }
.kontakt-zeile span { color: var(--grau); }

form {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px;
  padding: clamp(22px, 4vw, 34px); box-shadow: var(--schatten);
}
.formular-hinweis { font-size: 0.92rem; color: var(--gruen); font-weight: 500; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.formular-hinweis svg { width: 18px; height: 18px; flex: none; }
.feld { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.97rem; }
input[type="text"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--tinte);
  border: 1.5px solid var(--rand); border-radius: 8px;
  padding: 12px 14px; background: #fff;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus { border-color: var(--schiefer); outline: none; }
textarea { resize: vertical; min-height: 100px; }

fieldset { border: none; margin-bottom: 18px; }
legend { font-weight: 600; margin-bottom: 9px; font-size: 0.97rem; padding: 0; }
.radio-reihe { display: flex; flex-wrap: wrap; gap: 9px; }
.radio-reihe label {
  margin: 0; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--rand); border-radius: 999px;
  padding: 9px 16px; font-size: 0.94rem;
  display: inline-flex; align-items: center; gap: 7px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-reihe input { accent-color: var(--orange); width: 16px; height: 16px; }
.radio-reihe label:has(input:checked) { border-color: var(--orange); background: var(--orange-hell); }

.senden {
  width: 100%; font: inherit; font-weight: 600; font-size: 1.05rem;
  background: var(--orange); color: #fff; border: none; border-radius: var(--radius);
  padding: 15px; cursor: pointer; transition: background 0.2s ease;
}
.senden:hover { background: var(--orange-dunkel); }

.status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 0.97rem; }
.status.ok { display: block; background: #e7f3ec; color: var(--gruen); }
.status.err { display: block; background: var(--orange-hell); color: var(--orange-dunkel); }

/* =========================================================
   Fuß auf Schiefer
   ========================================================= */
footer { background: var(--schiefer-tief); color: #b9c5d0; padding: 40px 0 46px; font-size: 0.92rem; }
.fuss-innen { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
footer a { color: #dbe4ec; }
.demo-hinweis { margin-top: 16px; font-size: 0.88rem; color: #93a3b1; max-width: none; }
