/* =====================================================================
   H.S.M Heizung & Sanitär Meisterbetrieb – Stylesheet
   Aufbau: Schrift · Variablen · Basis · Layout · Bausteine · Kopf ·
           Startseite · Abschnitte · Footer · Mobilleiste · Animationen
   ===================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12161d;
  --ink-2: #2a323e;
  --muted: #5b6573;
  --line: #e2e8f0;
  --line-strong: #cfd8e3;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --blue: #1d4fa6;
  --blue-dark: #163e85;
  --blue-tint: #e8f0fb;
  --sky: #33b8f0;
  --sky-on-dark: #7fd0f6;
  --orange: #f7941d;
  --orange-hover: #ffa53d;
  --orange-tint: #fef1e1;
  --orange-ink: #9a4d06;
  --red: #e2341d;
  --red-strong: #c62b16;
  --red-tint: #fdeae7;
  --navy: #0e1a2e;
  --navy-2: #16253f;
  --on-dark: #e8eef7;
  --on-dark-muted: #a9b6c8;
  --gradient: linear-gradient(90deg, #33b8f0 0%, #1d4fa6 40%, #f7941d 75%, #e2341d 100%);
  /* Ring wie im Logo: blauer Bogen (kalt) und warmer Bogen, getrennt durch zwei Lücken */
  --ring: conic-gradient(from 240deg, #3cc8f5 0deg, #2457b8 172deg, transparent 172deg 188deg, #ffb000 188deg, #f7941d 260deg, #e8281e 344deg, transparent 344deg);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(18 22 29 / .06), 0 2px 6px rgb(18 22 29 / .05);
  --shadow: 0 14px 34px -14px rgb(14 26 46 / .22);
  --shadow-lg: 0 30px 70px -24px rgb(14 26 46 / .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.45rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 1.35rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.08rem + .3vw, 1.3rem); line-height: 1.3; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cfe6fb; }

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

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  max-width: none;
}
.section-head--split > div { max-width: 720px; }
.section-head > :last-child, .section-head--split > div > :last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

/* Unterstrich im Markenverlauf Blau -> Orange */
.hl {
  background-image: var(--gradient);
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% .14em;
  padding-bottom: .02em;
}

.mt-section { margin-top: clamp(72px, 10vw, 120px); }
.mt-md { margin-top: 36px; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) and (max-width: 999px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Bausteine ---------- */

.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--orange { background: var(--orange-tint); color: #c2620a; }
.icon-badge--red { background: var(--red-tint); color: var(--red-strong); }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .8em 1.4em;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--ink); box-shadow: 0 10px 24px -12px rgb(247 148 29 / .9); }
.btn--primary:hover { --btn-bg: var(--orange-hover); }
.btn--blue { --btn-bg: var(--blue); }
.btn--blue:hover { --btn-bg: var(--blue-dark); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn--emergency { --btn-bg: var(--red-strong); }
.btn--emergency:hover { --btn-bg: #ad2412; }
.btn--ghost { --btn-bg: transparent; border-color: rgb(255 255 255 / .35); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { min-height: 44px; padding: .55em 1.05em; font-size: .95rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 750;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .28em .75em;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.5;
}
.chip--heizung { background: var(--orange-tint); color: var(--orange-ink); }
.chip--sanitaer { background: var(--blue-tint); color: var(--blue-dark); }
.chip--trinkwasser { background: #e2f4fd; color: #0b5f86; }
.chip--gewerbe { background: #e8ebf2; color: var(--navy-2); }

.check-list { display: grid; gap: .55rem; list-style: none; }
.check-list li { position: relative; padding-left: 1.85rem; }
.check-list li::before {
  content: "";
  position: absolute;
  top: .25em; left: 0;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--blue-tint);
}
.check-list li::after {
  content: "";
  position: absolute;
  top: .47em; left: .42rem;
  width: .3rem; height: .55rem;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Platzhalter, bis echte Projektfotos da sind (data-photo = Zielordner) */
.ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  color: var(--blue);
  background: linear-gradient(135deg, #e7f0fb 0%, #f5f8fc 52%, #fdf0e0 100%);
}
.ph .icon { width: 52px; height: 52px; stroke-width: 1.3; }
.ph__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Kopfbereich ---------- */

.topbar { background: var(--navy); color: var(--on-dark-muted); font-size: .85rem; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar__claim { margin: 0; }
.topbar__links { display: flex; align-items: center; gap: 24px; list-style: none; }
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--on-dark);
  font-weight: 650;
  text-decoration: none;
}
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { width: 16px; height: 16px; }
.topbar__emergency strong { color: #fff; font-weight: 800; }

@media (max-width: 767px) {
  .topbar__claim, .topbar__mail { display: none; }
  .topbar__inner { justify-content: center; }
}

.pulse {
  position: relative;
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff5a3c;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid #ff5a3c;
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(.5); opacity: .9; }
  to { transform: scale(1.6); opacity: 0; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 28px -20px rgb(14 26 46 / .45); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { flex: none; margin-right: auto; }
.brand img { width: auto; height: 42px; }

.main-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav__list a {
  position: relative;
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav__list a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav__list a[aria-current="page"] { color: var(--blue); }
.main-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 11px; bottom: 3px; left: 11px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}
.main-nav__extra { display: none; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon--close,
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1199px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed;
    inset: var(--nav-top, 116px) 0 0;
    z-index: 40;
    overflow-y: auto;
    padding: 8px var(--gutter) 120px;
    background: #fff;
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open, .nav-open body { overflow: hidden; }
  .main-nav__list { flex-direction: column; align-items: stretch; }
  .main-nav__list a { padding: 18px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; }
  .main-nav__list a:hover { background: none; }
  .main-nav__list a[aria-current="page"]::after { right: auto; bottom: 10px; left: 4px; width: 36px; }
  .main-nav__extra { display: grid; gap: 12px; margin-top: 28px; }
}
@media (max-width: 639px) {
  :root { --header-h: 68px; }
  .brand img { height: 34px; }
  .site-header__cta { display: none; }
}

/* ---------- Startseite: Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(55% 50% at 100% 0%, rgb(51 184 240 / .13), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgb(247 148 29 / .10), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: .45em; }
.hero__lead { max-width: 600px; }
.hero .btn-row { margin-top: 32px; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  list-style: none;
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 650;
}
.trust-list li { display: inline-flex; align-items: center; gap: .5em; }
.trust-list .icon { width: 20px; height: 20px; color: var(--blue); stroke-width: 2.2; }

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding: 30px 18px 40px 30px;
}
.hero__ring {
  position: absolute;
  top: -10%; right: -18%;
  width: 96%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ring);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
}
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.hero__photo > img, .hero__photo > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption {
  position: absolute;
  right: 16px; bottom: 16px; left: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgb(14 26 46 / .8);
  color: #fff;
  font-size: .9rem;
  font-weight: 650;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: .85rem;
  line-height: 1.3;
}
.float-card strong { display: block; font-size: .95rem; }
.float-card small { display: block; color: var(--muted); font-size: .8rem; }
.float-card .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.float-card .icon-badge .icon { width: 22px; height: 22px; }
.float-card--top { top: 0; left: 0; }
.float-card--bottom { right: 0; bottom: 0; }
.float-card--bottom .pulse { margin: 0 6px 0 8px; }
@media (max-width: 479px) {
  .hero__visual { padding: 24px 8px 34px 12px; }
  .float-card { padding: 10px 14px 10px 10px; }
  .float-card small { display: none; }
}

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

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.audience-card h3 { margin: 6px 0 0; }
.audience-card p { margin: 0; color: var(--muted); }
.audience-card__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 6px; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { margin: 22px 0 8px; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.service-card p { color: var(--muted); font-size: .97rem; }
.service-card .check-list { margin: 2px 0 26px; font-size: .95rem; }
@media (min-width: 900px) {
  .service-card .check-list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
.service-card .link-arrow { margin-top: auto; }
.service-card:focus-within { box-shadow: 0 0 0 3px var(--sky); }

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.project-card__media > img, .project-card__media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.project-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .82rem; }
.project-card h3 { margin: 4px 0 0; font-size: 1.12rem; }
.project-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.project-card__brands { margin-top: auto !important; padding-top: 6px; font-size: .82rem !important; }
/* Karte, die als Ganzes auf eine Galerie verlinkt */
.project-card--link { position: relative; }
.project-card--link h3 a { color: inherit; text-decoration: none; }
.project-card--link h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card--link:hover h3 a { color: var(--blue); }
.project-card--link:focus-within { box-shadow: 0 0 0 3px var(--sky); }
.project-card__more {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 0 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
}

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; font-size: .97rem; color: var(--muted); }

.steps { display: grid; gap: 20px; list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--bg-soft); }
.step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  margin-bottom: 18px;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Abschnitte ---------- */

.promo {
  display: grid;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #eaf3fd 0%, #fff 55%, #fff3e4 100%);
}
@media (min-width: 900px) { .promo { grid-template-columns: auto 1fr auto; } }
.promo__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
}
.promo__icon .icon { width: 36px; height: 36px; stroke-width: 2; }
.promo h2 { margin-bottom: .35em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.promo p { max-width: 640px; margin: 0; color: var(--muted); }

.section--dark { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--sky-on-dark); }
.section--dark .icon-badge { background: rgb(255 255 255 / .08); color: var(--sky-on-dark); }
.section--dark .container { position: relative; }
.deco-ring {
  position: absolute;
  top: -180px; right: -160px;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ring);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px));
  opacity: .3;
  pointer-events: none;
}

.brands { padding-block: 36px; border-block: 1px solid var(--line); }
.brands__label {
  margin: 0 0 18px;
  text-align: center;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__track ul { display: flex; gap: 56px; padding-right: 56px; list-style: none; }
.marquee__track li {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #6b7584;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.faq-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 750;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--blue); transition: transform .25s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 20px; color: var(--muted); }
.faq__answer > :last-child { margin-bottom: 0; }

.cta-band {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(51 184 240 / .25), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgb(247 148 29 / .22), transparent 60%),
    var(--navy);
  color: #fff;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: .3em; color: #fff; }
.cta-band p { max-width: 620px; margin: 0; color: var(--on-dark-muted); }

/* ---------- Unterseiten ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(55% 50% at 100% 0%, rgb(51 184 240 / .13), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgb(247 148 29 / .10), transparent 70%),
    var(--bg);
}
.page-hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .page-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero h1 { margin-bottom: .45em; font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.5rem); line-height: 1.06; }
.page-hero .lead { max-width: 620px; }
.page-hero .btn-row { margin-top: 28px; }
.hero__photo--wide { aspect-ratio: 5 / 4; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; list-style: none; color: var(--muted); font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 650; }

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.offer-card h3 { margin: 10px 0 0; }
.offer-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.offer-card .check-list { margin-top: 6px; font-size: .95rem; }
.offer-card .link-arrow { margin-top: auto; padding-top: 8px; }
.section--soft .offer-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.section--dark .offer-card { border-color: rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); }
.section--dark .offer-card p, .section--dark .feature p { color: var(--on-dark-muted); }
.section--dark .offer-card .check-list { color: var(--on-dark); }
.section--dark .check-list li::before { background: rgb(255 255 255 / .1); }
.section--dark .check-list li::after { border-color: var(--sky-on-dark); }
.section--dark .link-arrow { color: var(--sky-on-dark); }

.detail { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1fr 1fr; }
  .detail--reverse .detail__media { order: 2; }
}
.detail + .detail { margin-top: clamp(56px, 8vw, 104px); }
.detail__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.detail__media > img, .detail__media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__media figcaption,
.project-card__media figcaption {
  position: absolute;
  right: 14px; bottom: 14px; left: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(14 26 46 / .8);
  color: #fff;
  font-size: .85rem;
  font-weight: 650;
}
.detail__text h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); }
.detail__text .check-list { margin: 22px 0 28px; }

.steps--3 { counter-reset: step; }
@media (min-width: 1000px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--blue-tint);
  color: var(--ink-2);
  font-size: .95rem;
}
.note .icon { margin-top: 2px; color: var(--blue); }
.note p { margin: 0; }
.note--alert { background: var(--red-tint); }
.note--alert .icon { color: var(--red-strong); }

.emergency-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 90% at 100% 0%, rgb(226 52 29 / .38), transparent 62%), var(--navy);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.emergency-card__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.emergency-card__tel {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-decoration: none;
}
.emergency-card__tel:hover { color: #fff; text-decoration: underline; }
.emergency-card p { color: var(--on-dark-muted); }
.emergency-card .btn { margin: 4px 0 26px; }
.emergency-card .check-list { color: var(--on-dark); }
.emergency-card .check-list li::before { background: rgb(255 255 255 / .1); }
.emergency-card .check-list li::after { border-color: #ff8a73; }

.page-hero--simple .lead { max-width: 760px; }

/* ---------- Referenzen: Filter und Lightbox ---------- */

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filter button {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: .5em 1.1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 .45em;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: .78rem;
}
.filter button[aria-pressed="true"] .filter__count { background: rgb(255 255 255 / .18); color: #fff; }
.filter-status { margin: 0 0 28px; color: var(--muted); font-size: .9rem; }

a.project-card__media { display: block; }
.project-card__media img { transition: transform .5s ease; }
a.project-card__media:hover img { transform: scale(1.04); }
.project-card__count {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(14 26 46 / .78);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.project-card__count .icon { width: 16px; height: 16px; }

.lightbox {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: 64px 16px;
  border: 0;
  background: rgb(8 14 26 / .95);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(8 14 26 / .6); }
.lightbox__figure { display: grid; gap: 14px; justify-items: center; max-width: min(1200px, 100%); margin: 0; }
.lightbox__img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 200px); border-radius: 12px; object-fit: contain; }
.lightbox__caption { color: var(--on-dark); font-size: .95rem; text-align: center; }
.lightbox__count { position: absolute; top: 22px; left: 20px; margin: 0; color: var(--on-dark-muted); font-size: .9rem; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
  color: #fff;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgb(255 255 255 / .24); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { top: 50%; left: 12px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 12px; transform: translateY(-50%); }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }

/* ---------- Kontakt & Anfrage-Assistent ---------- */

.contact-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.contact-aside { display: grid; gap: 20px; }
.contact-card { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.contact-card h2 { margin-bottom: 18px; font-size: 1.3rem; }
.contact-list { display: grid; gap: 18px; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .icon-badge .icon { width: 22px; height: 22px; }
.contact-list__label { display: block; color: var(--muted); font-size: .82rem; font-weight: 650; }
.contact-list a, .contact-list strong { color: var(--ink); font-weight: 750; text-decoration: none; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.contact-list .link-arrow { margin-top: 4px; color: var(--blue); font-size: .9rem; }
.emergency-card--compact { padding: 26px; }
.emergency-card--compact .emergency-card__tel { font-size: 1.7rem; }
.emergency-card--compact .btn { margin-bottom: 0; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

.wizard {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.wizard__progress { display: none; }
.js .wizard__progress {
  display: flex;
  gap: 8px;
  margin: 0 0 32px;
  list-style: none;
  counter-reset: progress;
}
.wizard__progress li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.wizard__progress li::before {
  content: counter(progress);
  counter-increment: progress;
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: .85rem;
}
.wizard__progress li.is-current { border-color: var(--blue); color: var(--ink); }
.wizard__progress li.is-current::before { background: var(--blue); color: #fff; }
.wizard__progress li.is-done { border-color: var(--blue); color: var(--ink); }
.wizard__progress li.is-done::before { content: "✓"; background: var(--blue-tint); color: var(--blue); }
@media (max-width: 479px) { .wizard__progress li { font-size: 0; gap: 0; } }

.wizard__step + .wizard__step { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.js .wizard__step + .wizard__step { margin-top: 0; padding-top: 0; border-top: 0; }
.js .wizard__step:not(.is-active) { display: none; }
.wizard__kicker { margin: 0 0 6px; color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wizard__title { margin-bottom: 8px; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); outline: none; }
.wizard__intro { margin-bottom: 24px; color: var(--muted); }
.wizard__body { display: grid; gap: 22px; }
.wizard__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; }
.wizard__nav [data-next], .wizard__nav [data-prev] { display: none; }
.js .wizard__nav [data-next], .js .wizard__nav [data-prev] { display: inline-flex; }
.wizard__nav .btn:only-child, .wizard__nav [data-next]:first-child { margin-left: auto; }
.wizard__privacy { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.btn[aria-busy="true"] { cursor: progress; opacity: .75; }

.field { display: grid; gap: 8px; align-content: start; }
.field__label, .field > label, .field legend { color: var(--ink); font-size: .95rem; font-weight: 750; }
.field__optional { color: var(--muted); font-weight: 500; }
.field__hint { margin: 0; color: var(--muted); font-size: .88rem; }
.field__error { margin: 0; color: var(--red-strong); font-size: .88rem; font-weight: 650; }
.field__error:empty { display: none; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgb(29 79 166 / .16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-strong); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 12px; }
@media (max-width: 479px) {
  .tile__box { gap: 8px; padding: 14px 12px; font-size: .9rem; }
  .tile__box::after { top: 12px; right: 10px; }
}
.tile { position: relative; display: block; cursor: pointer; }
.tile input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.tile__box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.3;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.tile__box .icon { width: 26px; height: 26px; color: var(--blue); }
.tile__box::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}
.tile:hover .tile__box { border-color: var(--ink-2); }
.tile input:focus-visible + .tile__box { outline: 3px solid var(--sky); outline-offset: 2px; }
.tile input:checked + .tile__box { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.tile input:checked + .tile__box::after {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tile--notfall .tile__box .icon { color: var(--red-strong); }
.tile--notfall input:checked + .tile__box { border-color: var(--red-strong); background: var(--red-tint); box-shadow: inset 0 0 0 1px var(--red-strong); }
.tile--notfall input:checked + .tile__box::after { border-color: var(--red-strong); background-color: var(--red-strong); }
.has-error .tile__box { border-color: var(--red-strong); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .5em 1.15em;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: .95rem;
  font-weight: 700;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.choice:hover span { border-color: var(--ink-2); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.has-error .choice span { border-color: var(--red-strong); }

.file-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 18px;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--bg-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--blue); background: var(--blue-tint); }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop .icon { width: 30px; height: 30px; color: var(--blue); }
.file-drop strong { font-size: .98rem; }
.file-drop span { color: var(--muted); font-size: .88rem; }
.file-drop:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.file-list { display: grid; gap: 6px; list-style: none; font-size: .9rem; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg-soft); }
.file-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { flex: none; color: var(--muted); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); cursor: pointer; }

/* Honigtopf gegen Spam-Bots – für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin: 24px 0 0; }

/* Google Maps: wird erst nach Klick geladen (Zwei-Klick-Lösung) */
/* Kein overflow:hidden – so wächst der Kasten mit, falls der Hinweistext mehr Platz braucht */
.map {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgb(244 247 251 / .8), rgb(244 247 251 / .8)),
    repeating-linear-gradient(32deg, transparent 0 54px, #d9e2ee 54px 62px),
    repeating-linear-gradient(-58deg, transparent 0 86px, #e1e8f1 86px 96px),
    #edf2f8;
}
@media (min-width: 640px) { .map { aspect-ratio: 4 / 3; } }
@media (min-width: 1000px) { .map { aspect-ratio: 16 / 7; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.map__consent {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px 20px;
  text-align: center;
}
.map__consent h3 { margin: 4px 0 0; }
.map__consent p { max-width: 520px; margin: 0; color: var(--ink-2); font-size: .95rem; }
.map__consent .btn-row { justify-content: center; margin-top: 8px; }
.map__pin {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(29 79 166 / .7);
}
.map__pin .icon { width: 30px; height: 30px; stroke-width: 2; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 820px; }
.legal h2 { margin: 2.2em 0 .6em; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.legal h3 { margin: 1.6em 0 .5em; font-size: 1.1rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li + li { margin-top: .35em; }
.legal address { margin-bottom: 1em; }

/* ---------- Danke- und Fehlerseite ---------- */

.message-page { padding-block: clamp(64px, 10vw, 128px); text-align: center; }
.message-page .container { max-width: 720px; }
.message-page__icon {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
}
.message-page__icon .icon { width: 42px; height: 42px; stroke-width: 2; }
.message-page .btn-row { justify-content: center; margin-top: 32px; }

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

.site-footer {
  position: relative;
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--navy);
  color: var(--on-dark-muted);
  font-size: .95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--gradient);
}
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 48px; } }
.footer__brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #fff; text-decoration: none; }
.footer__brand img { width: 58px; height: 58px; }
.footer__brand strong { display: block; font-size: 1.45rem; letter-spacing: .06em; line-height: 1.1; }
.footer__brand span { display: block; color: var(--on-dark-muted); font-size: .85rem; }
.site-footer h2 {
  margin-bottom: 18px;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__links, .footer__contact { display: grid; gap: 10px; list-style: none; }
.footer__contact { gap: 14px; }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--sky-on-dark); }
.footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 650; }
.footer__emergency {
  padding: 24px;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .05);
}
.footer__emergency h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer__emergency p { margin: 10px 0 0; font-size: .9rem; }
.footer__tel { display: inline-block; color: #fff !important; font-size: 1.35rem; font-weight: 800; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
.footer__consent {
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: inherit;
  cursor: pointer;
}
.footer__consent:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobile Schnellkontakt-Leiste ---------- */

.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed;
    right: 0; bottom: 0; left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / .97);
    box-shadow: 0 -10px 30px -18px rgb(14 26 46 / .35);
  }
  .mobile-bar .btn { min-height: 48px; padding: .6em .8em; font-size: .95rem; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- Datenschutz-Einstellungen (Banner) ---------- */

.consent {
  position: fixed;
  bottom: 16px; left: 16px;
  z-index: 70;
  width: min(420px, calc(100% - 32px));
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: .92rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}
.consent.is-visible { opacity: 1; transform: none; }
.consent h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 32px 8px 0;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.consent h2 .icon { width: 22px; height: 22px; color: var(--blue); }
.consent p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.55; }
.consent__status { color: var(--muted) !important; font-size: .85rem; }
.consent__status:empty { display: none; }
.consent .btn-row { gap: 8px; margin-top: 14px; }
.consent .btn-row .btn { flex: 1 1 160px; }
.consent__links { margin: 12px 0 0 !important; font-size: .82rem; }
.consent__links a { color: var(--muted); }
.consent__close {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.consent__close:hover { background: var(--bg-soft); color: var(--ink); }
.consent__close .icon { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .consent { bottom: calc(82px + env(safe-area-inset-bottom)); left: 12px; width: calc(100% - 24px); }
}

/* ---------- Animationen ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* Oben auf der Seite sofort per CSS einblenden – nicht erst nach dem Scroll-Beobachter */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.js .hero .reveal, .js .page-hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.js .hero .reveal.d1, .js .page-hero .reveal.d1 { animation-delay: .08s; }
.js .hero .reveal.d2, .js .page-hero .reveal.d2 { animation-delay: .16s; }
.js .hero .reveal.d3, .js .page-hero .reveal.d3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .reveal, .js .page-hero .reveal { animation: none; }
  .pulse::after { animation: none; }
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
  .marquee__track ul { flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding-right: 0; }
  .marquee__track ul[aria-hidden="true"] { display: none; }
  .btn, .service-card, .project-card, .consent { transition: none; }
}
