/* ==========================================================
   Rinnenklar – Dachrinnenreinigung vom Boden aus
   Farben angelehnt an das Bergische Haus:
   Schiefer, Kalkweiß, grüne Fensterläden
   ========================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --schiefer: #1f2a33;
  --schiefer-2: #2c3a45;
  --kalk: #f5f6f3;
  --weiss: #ffffff;
  --gruen: #1e6b47;
  --gruen-dunkel: #154d33;
  --gruen-hell: #e3efe8;
  --zink: #8a959c;
  --linie: #d8ddd9;
  --text: #1f2a33;
  --text-leise: #4e5a62;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;

  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(4rem, 9vw, 7.5rem);
  --radius-klein: 6px;
  --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--kalk);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--gruen); text-underline-offset: 0.18em; }
a:hover { color: var(--gruen-dunkel); }

:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  font-stretch: 112%;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 750;
  font-stretch: 110%;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1.25;
}
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--schiefer);
  color: var(--weiss);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: var(--radius-klein);
}
.skip:focus { left: 0.5rem; }

/* Platzhalter: vor dem Livegang ersetzen (README) */
.platzhalter {
  background: #ffe58a;
  color: #4a3b00;
  padding: 0 0.25em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-klein);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 105%;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primaer { background: var(--gruen); color: var(--weiss); }
.btn-primaer:hover { background: var(--gruen-dunkel); color: var(--weiss); }
.btn-rahmen { border-color: var(--schiefer); color: var(--schiefer); background: transparent; }
.btn-rahmen:hover { background: var(--schiefer); color: var(--weiss); }
.btn-hell { background: var(--weiss); color: var(--schiefer); }
.btn-hell:hover { background: var(--gruen-hell); color: var(--schiefer); }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 243, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--schiefer);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.marke svg { width: 2rem; height: 2rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  color: var(--schiefer);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}
.nav a:not(.btn):hover { color: var(--gruen); }
.nav .btn { min-height: 2.6rem; padding: 0.45rem 1rem; font-size: 0.95rem; }
.kopf-tel {
  display: none;
  color: var(--schiefer);
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .nav .btn { display: none; }
  .nav .kopf-tel { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav .kopf-tel svg { width: 1.1rem; height: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2rem, 4.5vw, 3.5rem) 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.hero-text { padding-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.hero-ort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--gruen-dunkel);
  font-weight: 700;
}
.hero-ort svg { width: 1.1rem; height: 1.1rem; }
.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-leise);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.vertrauen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.vertrauen li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 700;
}
.vertrauen svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  color: var(--gruen);
}
.hero-bild { align-self: end; }
.hero-bild svg { width: 100%; height: auto; }

/* einziger Bewegungsmoment: die Stange fährt aus */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.stange {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ausfahren 1.4s cubic-bezier(.22,.9,.3,1) 0.3s both;
}
.saugkopf { animation: einblenden 0.4s ease-out 1.5s both; }
.mass { animation: einblenden 0.5s ease-out 1.8s both; }
@keyframes ausfahren { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-bild { max-width: 30rem; margin-inline: auto; width: 100%; }
}

.boden { height: 14px; background: var(--schiefer); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abstand); }
.abschnitt-kopf { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.12rem; }
.abschnitt-weiss { background: var(--weiss); }
.abschnitt-dunkel { background: var(--schiefer); color: #e9edeb; }
.abschnitt-dunkel h2, .abschnitt-dunkel h3 { color: var(--weiss); }
.abschnitt-dunkel .abschnitt-kopf p { color: #b9c3c8; }

/* ---------- Ablauf (echte Reihenfolge -> Nummern) ---------- */
.ablauf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: schritt;
}
.ablauf li {
  counter-increment: schritt;
  position: relative;
  padding-top: 4.5rem;
  border-top: 3px solid var(--schiefer);
}
.ablauf li::before {
  content: counter(schritt);
  position: absolute;
  top: 0.9rem;
  left: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gruen);
}
.ablauf p { color: var(--text-leise); margin: 0; }
@media (max-width: 760px) {
  .ablauf { grid-template-columns: 1fr; }
}

/* ---------- Vergleich ---------- */
.vergleich {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}
.vergleich caption { text-align: left; }
.vergleich th, .vergleich td {
  text-align: left;
  vertical-align: top;
  padding: 1.05rem 1rem;
  border-bottom: 1px solid var(--linie);
}
.vergleich thead th {
  font-family: var(--font-display);
  font-stretch: 105%;
  font-size: 1.05rem;
  border-bottom: 3px solid var(--schiefer);
}
.vergleich thead th.wir { color: var(--gruen-dunkel); }
.vergleich tbody th { font-weight: 700; width: 24%; }
.vergleich td.leiter { color: var(--text-leise); }
.vergleich td.wir { background: var(--gruen-hell); font-weight: 700; }
.vergleich .zelle { display: flex; gap: 0.55rem; align-items: flex-start; }
.vergleich .zelle svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.18rem; }
.vergleich td.leiter svg { color: #9a4a3a; }
.vergleich td.wir svg { color: var(--gruen); }
@media (max-width: 700px) {
  .vergleich thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vergleich, .vergleich tbody, .vergleich tr, .vergleich th, .vergleich td { display: block; width: 100%; }
  .vergleich tr { border-bottom: 1px solid var(--linie); padding-block: 0.9rem; }
  .vergleich th, .vergleich td { border: 0; padding: 0.35rem 0; }
  .vergleich tbody th { width: 100%; font-family: var(--font-display); font-size: 1.1rem; }
  .vergleich td.wir { padding: 0.6rem 0.75rem; border-radius: var(--radius-klein); margin-top: 0.3rem; }
  .vergleich td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-leise);
  }
}

/* ---------- Preise ---------- */
.preise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.preisliste { list-style: none; margin: 0; padding: 0; }
.preisliste li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--linie);
}
.preisliste li:first-child { border-top: 3px solid var(--schiefer); }
.preisliste .leistung { font-weight: 700; font-size: 1.1rem; }
.preisliste .leistung small {
  display: block;
  font-weight: 400;
  font-size: 0.93rem;
  color: var(--text-leise);
}
.preisliste .punkte { border-bottom: 2px dotted var(--zink); transform: translateY(-0.35em); }
.preisliste .preis {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: 1.35rem;
  white-space: nowrap;
}
.preis-hinweis {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--gruen);
  border-radius: var(--radius-klein);
  padding: 1.5rem;
}
.preis-hinweis p:last-of-type { margin-bottom: 1.25rem; }
@media (max-width: 860px) {
  .preise-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .preisliste li { grid-template-columns: 1fr auto; }
  .preisliste .punkte { display: none; }
}

/* ---------- Equipment / Über uns ---------- */
.ueber-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--schiefer-2);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #9fb0b8;
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 22rem;
}
.portrait svg { width: 4rem; height: 4rem; margin: 0 auto 0.75rem; opacity: 0.6; }
.daten { margin: 1.5rem 0 0; display: grid; gap: 0; }
.daten div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.daten div:first-child { border-top: 1px solid rgba(255,255,255,0.14); }
.daten dt { color: #9fb0b8; }
.daten dd { margin: 0; font-weight: 700; color: var(--weiss); }
@media (max-width: 860px) {
  .ueber-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .daten div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Einzugsgebiet ---------- */
.orte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.orte li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--weiss);
  font-weight: 700;
  font-size: 0.97rem;
}
.orte li.heimat { background: var(--schiefer); color: var(--weiss); border-color: var(--schiefer); }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-of-type { border-top: 3px solid var(--schiefer); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  font-weight: 700;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-right: 2.5px solid var(--gruen);
  border-bottom: 2.5px solid var(--gruen);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.7rem; }
.faq details p { color: var(--text-leise); padding-bottom: 0.5rem; max-width: 42rem; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.formular { display: grid; gap: 1.1rem; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.feld { display: grid; gap: 0.35rem; }
.feld label, .feld legend { font-weight: 700; font-size: 0.98rem; }
.feld .optional { font-weight: 400; color: var(--text-leise); }
.feld input,
.feld select,
.feld textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--weiss);
  border: 1.5px solid #b9c2bd;
  border-radius: var(--radius-klein);
  padding: 0.7rem 0.8rem;
  min-height: 3rem;
}
.feld textarea { min-height: 7rem; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--gruen);
  box-shadow: 0 0 0 3px rgba(30, 107, 71, 0.22);
}
.feld input[type="file"] { padding: 0.55rem; min-height: auto; }
.feld .hilfe { font-size: 0.9rem; color: var(--text-leise); }
.zustimmung { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.95rem; }
.zustimmung input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--gruen); flex: none; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-status {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-klein);
  font-weight: 700;
}
.formular-status.ok { display: block; background: var(--gruen-hell); color: var(--gruen-dunkel); }
.formular-status.fehler { display: block; background: #fbe7e2; color: #7a2a1a; }
@media (max-width: 560px) {
  .feld-reihe { grid-template-columns: 1fr; }
}

.assistent {
  background: var(--schiefer);
  color: #e3e9e6;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: sticky;
  top: 6rem;
}
.assistent h3 { color: var(--weiss); font-size: 1.4rem; }
.assistent .nummer {
  display: block;
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--weiss);
  text-decoration: none;
  line-height: 1.1;
}
.assistent .nummer:hover { color: #bfe3cf; }
.assistent .zeiten { color: #9fb0b8; font-size: 0.95rem; margin-bottom: 1.4rem; }
.assistent hr { border: 0; border-top: 1px solid rgba(255,255,255,0.15); margin: 1.5rem 0; }
.assistent .mail a { color: var(--weiss); font-weight: 700; }
@media (max-width: 860px) {
  .kontakt-grid { grid-template-columns: 1fr; }
  .assistent { position: static; }
}

/* ---------- Fußzeile ---------- */
.fuss {
  background: var(--schiefer);
  color: #b9c3c8;
  padding-block: 3rem 2rem;
  font-size: 0.97rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fuss .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.fuss a { color: #e3e9e6; }
.fuss .marke { color: var(--weiss); margin-bottom: 0.6rem; }
.fuss-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fuss-unten { width: 100%; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; }

/* ---------- Mobile Aktionsleiste ---------- */
.aktionsleiste { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 4.5rem; }
  .aktionsleiste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--weiss);
    border-top: 1px solid var(--linie);
    box-shadow: 0 -6px 20px rgba(31, 42, 51, 0.08);
  }
  .aktionsleiste .btn { min-height: 3rem; padding-inline: 0.5rem; }
}

/* ---------- Rechtstexte ---------- */
.rechtstext { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--abstand); }
.rechtstext .wrap { max-width: 48rem; }
.rechtstext h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.rechtstext h2 { font-size: 1.4rem; margin-top: 2.2em; font-stretch: 100%; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.6em; }
.rechtstext address { font-style: normal; }
.zurueck { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
@media (max-width: 860px) {
  .portrait { max-width: 15rem; }
}
