@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #0B2E38;
  --petrol: #124652;
  --aqua: #5CC8BE;
  --mist: #EEF4F5;
  --line: #CFDDE0;
  --muted: #4A6770;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-stretch: 90%; }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--aqua); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--aqua);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: .9rem 1.5rem;
  border: 2px solid var(--aqua);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: #7AD6CD; border-color: #7AD6CD; }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .45); }
.btn-ghost:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }

/* Header: transparent über dem Hero, hell nach dem Scrollen */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10;
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
/* fester Hintergrund statt Unschärfe-Filter: der Filter über der laufenden Animation kostet auf iPhones viel Leistung */
.site-header.scrolled { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.menu-open { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; min-height: 44px; gap: .6rem; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 24px; height: 30px; color: var(--aqua); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .9; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; }
.nav-toggle { display: none; }
.nav-contact { display: none; }
.nav a.nav-phone { font-weight: 600; opacity: 1; font-variant-numeric: tabular-nums; }

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.facade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* dunkelt links ab, damit der Text auf der Fassade sicher lesbar bleibt */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(11 46 56 / .92) 0%, rgb(11 46 56 / .7) 42%, rgb(11 46 56 / 0) 75%),
              linear-gradient(0deg, rgb(11 46 56 / .85) 0%, rgb(11 46 56 / 0) 30%);
}
.hero-content { align-self: center; padding: 9rem 0 4rem; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: -.03em;
  line-height: 1.02;
  max-width: 13ch;
  margin-bottom: 1.5rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; color: rgb(255 255 255 / .82); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgb(255 255 255 / .18);
  font-size: .95rem; color: rgb(255 255 255 / .7);
}
.hero-foot p { margin: 0; }
.hero-foot ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 0; padding: 0; color: #fff; }

/* Einblendung beim Laden: ein einziger, ruhiger Moment */
.hero-content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Sektionen */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 30em; }

.services, .steps, .contact { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem;
}
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 3rem; }
.filter button {
  font: inherit; font-weight: 500; color: var(--ink); cursor: pointer;
  padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-list li { border-top: 2px solid var(--line); padding-top: 1.5rem; transition: border-color .3s, opacity .35s; }
.service-list li.dim { opacity: .28; }
.icon { width: 34px; height: 34px; margin-bottom: 1rem; fill: none; stroke: var(--petrol); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-list li:hover { border-color: var(--aqua); }
.service-list p { color: var(--muted); margin: 0; }
.extras { margin: 4rem 0 0; padding: 1.5rem 1.75rem; background: var(--mist); border-radius: var(--radius); color: var(--muted); }
.extras strong { color: var(--ink); }

/* Qualität */
.quality { background: var(--ink); color: #fff; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); }
.statement {
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  font-weight: 600; font-stretch: 85%; letter-spacing: -.03em; line-height: 1.04;
  max-width: 17ch; margin: 0 0 clamp(3.5rem, 7vw, 6rem);
  color: #fff;
}
/* Glanz läuft einmal über den Text, wenn er ins Bild kommt (wie frisch poliert) */
.statement.shine {
  background: linear-gradient(105deg, #fff 42%, #A9EDE6 49%, #fff 50.5%, #fff 52%, #A9EDE6 54%, #fff 60%) 100% 0 / 320% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: polish 1.8s cubic-bezier(.45, 0, .2, 1) .2s both;
}
@keyframes polish { to { background-position: 0 0; } }
blockquote { margin: 2.5rem 0 0; padding: 0; }
blockquote p { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.4; letter-spacing: -.01em; max-width: 24em; }
blockquote footer { color: var(--aqua); font-weight: 600; }
.promises { margin: 0; display: grid; }
.promises div { padding: 1.5rem 0; border-bottom: 1px solid rgb(255 255 255 / .16); }
.promises div:first-child { border-top: 1px solid rgb(255 255 255 / .16); }
.promises dt { font-weight: 600; font-size: 1.2rem; margin-bottom: .3rem; }
.promises dd { margin: 0; color: rgb(255 255 255 / .72); }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; counter-reset: step; }
.step-list li { counter-increment: step; }
.step-list li::before {
  content: counter(step);
  display: block; margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  font-size: 2.5rem; font-weight: 600; font-stretch: 80%; line-height: 1; color: var(--petrol);
}
.step-list p { color: var(--muted); }

/* Einsatzgebiet: dunkel, die Karte liest sich wie ein Radar um Dietzenbach */
.area { background: var(--ink); color: #fff; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.area-lead { color: rgb(255 255 255 / .75); font-size: 1.15rem; max-width: 30em; margin-bottom: 2.25rem; }
.towns { display: grid; gap: 1.4rem; }
.towns h3 { font-size: .95rem; font-weight: 600; color: var(--aqua); margin: 0 0 .5rem; }
.towns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; color: rgb(255 255 255 / .82); font-size: .98rem; }
.towns li { cursor: default; transition: color .15s; }
.towns li.hot { color: #fff; text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: 4px; }
.area-map { margin: 0; }
.area-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.area-map figcaption { font-size: .85rem; color: rgb(255 255 255 / .5); margin-top: .75rem; text-align: center; }
.ring { fill: none; stroke: rgb(255 255 255 / .14); stroke-width: 1; }
.ring.outer { stroke: rgb(92 200 190 / .55); stroke-dasharray: 4 6; }
.ring-label { fill: rgb(255 255 255 / .45); font-size: 12px; }
.dot { fill: var(--aqua); transform-box: fill-box; transform-origin: center; }
.town-label { fill: rgb(255 255 255 / .8); font-size: 13px; }
.home-dot { fill: var(--aqua); }
.home-halo { fill: rgb(92 200 190 / .18); }
.home-label { fill: #fff; font-size: 15px; font-weight: 600; }
.dot, .town-label { opacity: 0; transition: opacity .4s, transform .4s; transform: scale(.3); }
.town-label { transform: none; }
.area-map.on .dot { opacity: 1; transform: none; }
.area-map.on .town-label { opacity: 1; }
.dot.hot { fill: #fff; transform: scale(1.7); }
.town-label.hot { fill: #fff; font-weight: 600; }

/* Kontakt */
.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.contact-grid > div > p { max-width: 26em; font-size: 1.15rem; color: var(--muted); }
.contact-data { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 2.5rem 0 0; font-size: 1.15rem; }
.contact-data dt { font-weight: 600; }
.contact-data dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contact-data a { text-decoration-color: var(--aqua); text-underline-offset: 4px; }
.form { background: #fff; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); display: grid; gap: 1.2rem; box-shadow: 0 20px 50px -30px rgb(11 46 56 / .35); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; }
.form input:not([type="radio"]), .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .2s;
  width: 100%; min-width: 0;
}
.contact-grid > *, .form label { min-width: 0; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--petrol); outline: none; }
.form [aria-invalid="true"] { border-color: #B3412E; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: .95rem; margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; }
.chips span {
  display: block; padding: .5rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-error { color: #B3412E; font-weight: 500; margin: 0; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .75); padding: 2rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 1.75rem; }
.footer-inner nav a { display: inline-block; padding: .65rem 0; }

/* Handy-Leiste: nur mobil, blendet ein, sobald der Hero verlassen ist */
.action-bar { display: none; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--mist); border-color: var(--ink); }

/* Tablet und Mobil */
@media (max-width: 1100px) {
  .nav { gap: 1.4rem; }
  .nav a[href="#qualitaet"] { display: none; }
}
@media (max-width: 960px) {
  .service-list, .step-list { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .area-map { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { width: min(1200px, 100% - 2.5rem); }
  .section-head, .quality-grid, .contact-grid, .form-row, .service-list { grid-template-columns: 1fr; }
  .area { padding: 4rem 0; }
  /* Karte direkt unter den Einleitungstext, Ortsliste danach */
  .area-grid { gap: 0; }
  .area-grid > div { display: contents; }
  .area-grid h2 { order: 1; }
  .area-lead { order: 2; }
  .area-map { order: 3; margin-bottom: 2.75rem; }
  .towns { order: 4; }
  /* die Karte wird auf etwa 55 % verkleinert, Schrift im SVG entsprechend größer */
  .town-label { font-size: 25px; }
  .town-label.minor { display: none; }
  .ring-label { font-size: 19px; }
  .home-label { font-size: 27px; }
  .dot { r: 5px; }
  .nav a[href="#qualitaet"] { display: block; }
  .section-head { gap: 1rem; margin-bottom: 2.25rem; }
  .services, .steps, .contact, .quality { padding: 4rem 0; }
  .service-list { gap: 1.75rem; }
  .service-list li.dim { display: none; }
  .service-list li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
  .service-list .icon { grid-row: span 2; margin: 0; width: 30px; height: 30px; }
  .filter { margin: -.5rem 0 2rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .filter::-webkit-scrollbar { display: none; }
  .filter button { white-space: nowrap; padding: .65rem 1.1rem; }
  .extras { margin-top: 2.5rem; }

  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(0deg, rgb(11 46 56 / .92) 10%, rgb(11 46 56 / .72) 100%); }
  .hero-content { padding: 7rem 0 3rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; padding-block: 1rem; }
  .hero-foot p { display: none; }
  .hero-foot ul { gap: .4rem 1.25rem; font-size: .9rem; }

  .chips span { padding: .65rem 1rem; }
  .form .btn { justify-self: stretch; text-align: center; padding-block: 1rem; }
  .contact-data { font-size: 1.1rem; }

  /* Menü als ganze Fläche unter dem Header */
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; color: inherit; cursor: pointer; margin-right: -10px;
  }
  .nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s, opacity .2s;
  }
  .nav-toggle i { position: relative; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
  .nav-toggle i::before { top: -7px; }
  .nav-toggle i::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] i { background: transparent; }
  .nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 2rem; background: #fff; color: var(--ink);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav a:not(.btn) { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; padding: .9rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav .nav-contact { display: block; }
  .nav .btn { margin-top: 1.5rem; text-align: center; padding-block: 1rem; font-size: 1rem; }

  .action-bar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .3s;
  }
  .action-bar.show { transform: none; }
  .action-bar .btn { text-align: center; padding: .8rem 1rem; }
  .site-footer { padding-bottom: 6rem; }
}
@media (max-width: 480px) {
  .step-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > * { animation: none; }
  .statement.shine { animation: none; background: none; color: #fff; }
  .action-bar, .nav, .service-list li, .dot, .town-label { transition: none; }
}
