/* =========================================================
   Haustechnik Deutschland — Design-System
   Zielgruppe: Hauseigentümer 40–70. Große Schrift, hoher
   Kontrast, klare Flächen. Mobile first.
   ========================================================= */

:root {
  /* Farben */
  --brand-900: #0a2d4d;
  --brand-800: #0b3d66;
  --brand-700: #145181;
  --brand-100: #e4eef6;
  --brand-50:  #f2f7fb;

  --accent-700: #c2410c;
  --accent-600: #e8590c;
  --accent-100: #fdece0;

  --ink:       #16202b;
  --ink-muted: #566274;
  --ink-light: #7c8798;

  --bg:        #ffffff;
  --bg-soft:   #f6f8fa;
  --border:    #dde3ea;

  --ok-bg:     #e8f5e9;
  --ok-fg:     #1b5e20;

  /* Maße */
  --wrap: 72rem;
  --wrap-narrow: 46rem;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 1px 3px rgba(16, 32, 48, .08);
  --shadow-md: 0 4px 12px rgba(16, 32, 48, .08), 0 2px 4px rgba(16, 32, 48, .04);
  --shadow-lg: 0 12px 32px rgba(16, 32, 48, .12);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-700); }
a:hover { color: var(--brand-900); }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  color: var(--brand-900);
  font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */

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

.wrap-narrow { max-width: var(--wrap-narrow); }

section { padding-block: clamp(2.75rem, 7vw, 5rem); }
section.tight { padding-block: clamp(2rem, 5vw, 3.25rem); }
.bg-soft { background: var(--bg-soft); }
.bg-brand { background: var(--brand-900); color: #fff; }
.bg-brand h2, .bg-brand h3 { color: #fff; }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-muted);
  line-height: 1.55;
}

.section-head { max-width: 44rem; margin-bottom: 2.5rem; }

/* ---------- Skip-Link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-900);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  flex-wrap: nowrap;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-900);
  text-decoration: none;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.logo:hover { color: var(--brand-900); }

.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 7px;
  background: var(--brand-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 1.2rem; height: 1.2rem; fill: #fff; }

.header-spacer { margin-left: auto; }

.header-phone {
  display: none;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--brand-900);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 1.1rem; height: 1.1rem; fill: var(--brand-700); }

@media (min-width: 68rem) {
  .header-phone { display: inline-flex; }
}

/* Navigation */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .8rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-900);
  cursor: pointer;
}
.nav-toggle svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: .75rem 1.25rem 1.25rem;
}
.site-nav.open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .15rem;
}

.site-nav a {
  display: block;
  padding: .7rem .5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--brand-50);
  color: var(--brand-900);
}

.site-nav .nav-cta { margin-top: .75rem; }

@media (min-width: 68rem) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: none;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: .35rem;
  }
  .site-nav a { padding: .5rem .7rem; font-size: .98rem; white-space: nowrap; }
  .site-nav .nav-cta { margin: 0 0 0 .5rem; }
  .site-nav .nav-cta .btn { white-space: nowrap; width: auto; padding: .6rem 1.1rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .06s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-600);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-700); color: #fff; }

.btn-secondary {
  background: var(--brand-800);
  color: #fff;
}
.btn-secondary:hover { background: var(--brand-900); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--brand-900);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--brand-700); color: var(--brand-900); }

.btn-ghost-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.08rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.hero h1 { color: #fff; max-width: 22ch; }

.hero-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: rgba(255,255,255,.9);
  max-width: 48ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero-points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: .65rem;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: rgba(255,255,255,.92);
}
.hero-points svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: #7bd389;
  flex-shrink: 0;
  margin-top: .15rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
}

/* ---------- Karten ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 34rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 34rem) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card-link:hover {
  border-color: var(--brand-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-muted); font-size: .98rem; }

.card-more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--brand-700);
  font-size: .98rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.card-link:hover .card-more { color: var(--accent-600); }

.card-badge {
  display: inline-block;
  background: var(--accent-100);
  color: var(--accent-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/* Ablauf-Schritte */

.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent-600);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-muted); margin: 0; }

/* Vertrauens-Punkte */

.trust { display: grid; gap: 1.5rem; }
@media (min-width: 34rem) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .trust { grid-template-columns: repeat(4, 1fr); } }

.trust-item h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.trust-item p { color: var(--ink-muted); font-size: .98rem; margin: 0; }
.trust-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 8px;
  background: var(--brand-100);
  display: grid; place-items: center;
  margin-bottom: .9rem;
}
.trust-icon svg { width: 1.35rem; height: 1.35rem; fill: var(--brand-800); }

/* ---------- Leistungsliste ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}
.checklist svg {
  width: 1.3rem; height: 1.3rem;
  fill: var(--brand-700);
  flex-shrink: 0;
  margin-top: .17rem;
}

/* ---------- Preis-Box ---------- */

.pricebox {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.pricebox .label {
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin-bottom: .4rem;
}
.pricebox .value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1.15;
  margin-bottom: .3rem;
}
.pricebox .unit { color: var(--ink-muted); font-size: .98rem; }
.pricebox .disclaimer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brand-100);
  font-size: .9rem;
  color: var(--ink-muted);
}

.infobox {
  background: var(--ok-bg);
  border-left: 4px solid var(--ok-fg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
}
.infobox h3 { color: var(--ok-fg); font-size: 1.08rem; margin-bottom: .4rem; }
.infobox p { margin: 0; font-size: .98rem; }

.notebox {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  font-size: .96rem;
  color: var(--ink-muted);
}

/* ---------- Zwei-Spalten ---------- */

.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.35fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .split-even { grid-template-columns: 1fr 1fr; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: .75rem; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq details[open] { border-color: var(--brand-700); }

.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--brand-900);
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: .7rem; height: .7rem;
  border-right: 2.5px solid var(--brand-700);
  border-bottom: 2.5px solid var(--brand-700);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: .3rem;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq .answer {
  padding: 0 1.3rem 1.3rem;
  color: var(--ink-muted);
}

/* ---------- CTA-Band ---------- */

.cta-band {
  background: var(--brand-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 44ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Regionsliste ---------- */

.regions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.regions li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .93rem;
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,.75);
  padding-block: 3rem 2rem;
  font-size: .96rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .9rem;
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Rechtstexte / Fließtext ---------- */

.prose { max-width: var(--wrap-narrow); }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose dl { margin: 0 0 1.1em; }
.prose dt { font-weight: 600; margin-top: .9em; color: var(--brand-900); }
.prose dd { margin: 0; }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-muted { color: var(--ink-muted); }
.text-small { font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Formular
   ========================================================= */

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.form-progress {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.form-progress .dot {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: var(--border);
  transition: background-color .25s;
}
.form-progress .dot.is-active { background: var(--accent-600); }

/* Ohne JS: alle Schritte sichtbar. Mit JS: nur der aktive. */
.step-panel {
  border: 0;
  padding: 0;
  margin: 0 0 2.5rem;
  min-width: 0;
}
.form.js-enabled .step-panel { display: none; margin-bottom: 0; }
.form.js-enabled .step-panel.is-active { display: block; }

.step-panel legend {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--brand-900);
  padding: 0;
  margin-bottom: .5rem;
  line-height: 1.25;
}

.field-intro {
  color: var(--ink-muted);
  font-size: .98rem;
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1.25rem; }

.field-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 34rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-weight: 600;
  color: var(--brand-900);
  margin-bottom: .4rem;
  font-size: .98rem;
}

.req { color: var(--accent-600); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23566274'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 1.4rem;
  padding-right: 2.4rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.field input.has-error,
.field select.has-error,
.field textarea.has-error {
  border-color: var(--accent-600);
}

.field textarea { resize: vertical; min-height: 7rem; }

.field input[type="file"] {
  width: 100%;
  padding: .8rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .96rem;
  background: var(--bg-soft);
  cursor: pointer;
}

.field-hint {
  font-size: .9rem;
  color: var(--ink-muted);
  margin: .45rem 0 0;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field-check input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  margin: .1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--accent-600);
  cursor: pointer;
}
.field-check label {
  margin: 0;
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}
.field-check input.has-error { outline: 2px solid var(--accent-600); outline-offset: 2px; }

#bereich-hinweis { margin-bottom: 1.5rem; }
#bereich-hinweis ul { margin: .5rem 0 0; padding-left: 1.2rem; }
#bereich-hinweis li { margin-bottom: .3rem; }

.upload-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .4rem;
}
.upload-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .75rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 8px;
  font-size: .92rem;
}
.upload-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-size { color: var(--ink-muted); flex-shrink: 0; }
.upload-remove {
  background: none;
  border: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0 .25rem;
  flex-shrink: 0;
}
.upload-remove:hover { color: var(--accent-600); }

.form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.form-nav .btn-lg { flex: 1; min-width: 12rem; }

.form-error {
  margin: 1rem 0 0;
  padding: .9rem 1.1rem;
  background: var(--accent-100);
  border-left: 4px solid var(--accent-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-700);
  font-size: .96rem;
}

/* Honeypot - fuer Menschen unsichtbar, fuer Bots ausfuellbar */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alt-contact {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.alt-contact .btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

.success-mark {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--ok-bg);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}
.success-mark svg { width: 2.5rem; height: 2.5rem; fill: var(--ok-fg); }

/* =========================================================
   Hero mit Bild (Startseite)
   ========================================================= */

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
  }
}

.hero-text h1 {
  max-width: 20ch;
  margin-bottom: .75rem;
}

.hero-text .hero-lead {
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-text .hero-lead em {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

.hero-bild img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(4, 20, 36, .38);
}

/* Auf kleinen Bildschirmen zuerst der Text, dann das Bild */
@media (max-width: 61.99rem) {
  .hero-bild { order: 2; }
  .hero-text { order: 1; }
  .hero-bild img { aspect-ratio: 16 / 9; }
}

/* ---------- Vorteilsleiste unter dem Hero ---------- */

.usp-band {
  background: var(--brand-50);
  border-bottom: 1px solid var(--brand-100);
  padding-block: 1.25rem;
}

.usp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

@media (min-width: 56rem) {
  .usp-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.usp-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .98rem;
  font-weight: 500;
  color: var(--brand-900);
  line-height: 1.4;
}

.usp-list svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--brand-700);
  flex-shrink: 0;
  margin-top: .1rem;
}

/* =========================================================
   Ueberlaufschutz
   Grid- und Flex-Kinder haben standardmaessig min-width:auto und
   schrumpfen deshalb nicht unter ihre laengste unteilbare Zeile.
   Lange Woerter wie "Ansprechpartner" sprengen so den Viewport.
   ========================================================= */

.hero-grid > *,
.split > *,
.grid > *,
.field-row > * {
  min-width: 0;
}

/* Ueberschriften: nur im Notfall umbrechen, aber ohne Silbentrennung.
   "hyphens: auto" trennt auch dann, wenn noch Platz waere ("sau-ber"),
   weil der Browser die Zeilenlaengen ausgleicht. "break-word" greift
   dagegen ausschliesslich, wenn ein Wort breiter als der Container ist. */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  hyphens: manual;
}

/* Ueberschriften auf schmalen Displays etwas zuruecknehmen */
@media (max-width: 30rem) {
  h1 { font-size: clamp(1.6rem, 7.5vw, 2rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 1.75rem); }
}

/* Sehr schmale Geraete: dort ist Trennung das kleinere Uebel,
   sonst ragen Woerter wie "Fassadendaemmung" aus dem Bild. */
@media (max-width: 23rem) {
  h1, h2, h3 { hyphens: auto; }
}

/* Sprungmarke ohne negative Position, damit sie keine Scrollbreite erzeugt */
.skip {
  left: 0;
  clip-path: inset(50%);
}
.skip:focus {
  clip-path: none;
}

/* ---------- Kopfzeile auf schmalen Displays ----------
   Das Umbruchverbot am Logo gilt nur auf dem Desktop. Auf dem Handy
   darf "Haustechnik Deutschland" zweizeilig stehen, sonst schiebt es
   den Menuebutton aus dem Bild. */

.logo { white-space: normal; }

@media (min-width: 68rem) {
  .logo { white-space: nowrap; }
}

@media (max-width: 24rem) {
  .nav-toggle span { display: none; }
  .nav-toggle { padding: .55rem .65rem; }
}

/* Mindestgroesse fuer Bedienelemente auf Touchgeraeten (44px) */
.nav-toggle { min-height: 44px; }
.upload-remove { min-width: 44px; min-height: 44px; }
