/* ==========================================================================
   Horstmann GmbH – Heizung · Gas · Wasser
   Designsystem
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Marke */
  --blue: #3e6dab;          /* Logo-Blau */
  --blue-600: #33598d;
  --navy: #14294a;          /* tiefes Navy */
  --navy-900: #0c1a31;
  --accent: #e40000;        /* Horstmann-Rot (Slider-Fläche der bisherigen Website) */
  --accent-700: #b80000;    /* Hover / gedrückt */
  --accent-text: #d40000;   /* rote Schrift auf hellen Flächen (Kontrast ≥ 4,5:1) */
  --accent-light: #9c9b9b;  /* Akzent auf dunklem Navy = Grau des Logo-Schattens (Kontrast 5,2:1) */
  --accent-tint: #e4e3e1;   /* Hinterlegung, z. B. Suchtreffer (helles Logo-Grau) */
  --grey: #9c9b9b;          /* Logo-Grau */

  /* Flächen & Text */
  --paper: #f6f4ef;
  --paper-2: #ece8e0;
  --white: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #44506a;
  --line: #dcd7cc;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px -12px rgba(15, 27, 45, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Eyebrow / Labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: .8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent-text);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent-light); }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--navy-900); color: rgba(255,255,255,.75);
  font-size: .875rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent-light); }
.topbar__items { display: flex; gap: 28px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; opacity: .7; }
@media (max-width: 860px) { .topbar__hide-sm { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,27,45,.4); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.header__logo img { width: 128px; height: auto; }
@media (max-width: 560px) { .header .container { min-height: 70px; } .header__logo img { width: 104px; } }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--navy); text-decoration: none; padding: 8px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { min-height: 46px; padding: 10px 20px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  position: relative; margin-right: -10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 23px; }
.nav-toggle span::before { content: ""; left: 0; top: -8px; }
.nav-toggle span::after { content: ""; left: 0; top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  /* backdrop-filter würde das fixierte Menü an den Header binden */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav {
    position: fixed; inset: 70px 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 24px var(--gutter) 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font-size: 1.5rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 28px; min-height: 56px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 561px) and (max-width: 960px) { .nav { inset: 84px 0 0 0; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,26,49,.92) 0%, rgba(12,26,49,.78) 38%, rgba(12,26,49,.25) 75%, rgba(12,26,49,.1) 100%),
    linear-gradient(0deg, rgba(12,26,49,.75) 0%, rgba(12,26,49,0) 45%);
}
.hero .container { padding-block: clamp(96px, 14vw, 160px) clamp(56px, 7vw, 96px); }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }  /* Horstmann-Rot – große Schrift, Kontrast auf Navy ≥ 3:1 */
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: rgba(255,255,255,.85); max-width: 52ch; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__pillars {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 28px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .875rem;
  color: rgba(255,255,255,.9);
}
.hero__pillars span { display: inline-flex; align-items: center; }
.hero__pillars span + span::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 26px; }

@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(0deg, rgba(12,26,49,.95) 0%, rgba(12,26,49,.75) 60%, rgba(12,26,49,.5) 100%); }
  .hero .btn { flex: 1 1 100%; }
}

/* Page hero (Unterseiten) */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,26,49,.93) 0%, rgba(12,26,49,.75) 50%, rgba(12,26,49,.35) 100%); }
.page-hero .container { padding-block: clamp(80px, 11vw, 140px) clamp(56px, 7vw, 88px); }
.page-hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 4rem); max-width: 16ch; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 58ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); margin: 0; }
.page-hero--plain::before { background: var(--navy); }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust { background: var(--navy); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 36px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.trust__value small { font-size: .5em; font-weight: 600; color: var(--accent-light); margin-left: 4px; letter-spacing: 0; }
.trust__label { margin-top: 10px; font-size: .9375rem; color: rgba(255,255,255,.7); line-height: 1.4; }
@media (max-width: 860px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item { padding: 28px 20px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .trust__item:nth-child(odd) { padding-left: 0; }
  .trust__item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .trust__item:nth-child(-n+2) { border-top: 0; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Leistungs-Säulen ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(15,27,45,.06), 0 30px 50px -20px rgba(15,27,45,.35); color: inherit; }
.pillar__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.05); }
.pillar__body { padding: 32px 32px 36px; display: flex; flex-direction: column; flex: 1; }
.pillar__num { font-family: var(--font-head); font-weight: 600; font-size: .8125rem; letter-spacing: .16em; color: var(--accent-text); margin-bottom: 14px; }
.pillar h3 { font-size: 1.75rem; margin-bottom: 12px; }
.pillar p { color: var(--ink-2); margin-bottom: 20px; }
.pillar ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.pillar li { position: relative; padding-left: 22px; font-size: .9875rem; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.pillar .link-arrow { margin-top: auto; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; max-width: 640px; } }

/* Weitere Leistungen */
.more-services { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.more-services a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); padding: 26px 28px; text-decoration: none; color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: 1.125rem;
  transition: background-color .25s;
}
.more-services a small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.more-services a svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; transition: transform .25s var(--ease); }
.more-services a:hover { background: var(--paper); }
.more-services a:hover svg { transform: translateX(4px); }
@media (max-width: 1100px) { .more-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .more-services { grid-template-columns: 1fr; } }

/* ---------- Split (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; }
.split__badge {
  position: absolute; right: -20px; bottom: -28px;
  background: var(--accent); color: #fff; padding: 22px 26px; border-radius: var(--radius);
  font-family: var(--font-head); box-shadow: var(--shadow);
}
.split__badge strong { display: block; font-size: 2.5rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.split__badge span { font-size: .875rem; font-weight: 500; opacity: .9; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__badge { right: 12px; bottom: -22px; padding: 16px 20px; }
  .split__badge strong { font-size: 2rem; }
}

/* ---------- Qualitätsversprechen ---------- */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.promise { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.promise:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.promise__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(62,109,171,.1); color: var(--blue); margin-bottom: 16px; }
.promise__icon svg { width: 22px; height: 22px; }
.promise h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--ink-2); font-size: .9875rem; }
@media (max-width: 560px) {
  .promises { grid-template-columns: 1fr; }
  .promise, .promise:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- Prozess ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid rgba(255,255,255,.18); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--accent-light); letter-spacing: -0.03em; margin-bottom: 18px;
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: .9875rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline li { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; }
.timeline__year { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--blue); letter-spacing: -0.04em; margin-bottom: 14px; }
.timeline h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: .9875rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Bildband ---------- */
.band { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,26,49,.9), rgba(12,26,49,.55)); }
.band .container { padding-block: clamp(80px, 10vw, 130px); }
.band h2 { color: #fff; max-width: 18ch; }
.band p { color: rgba(255,255,255,.85); max-width: 56ch; font-size: 1.125rem; margin-bottom: 32px; }

/* ---------- Team ---------- */
.team-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-photo img { width: 100%; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.people--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; background: var(--paper-2); }
.person h3 { font-size: 1.375rem; margin-bottom: 2px; }
.person p { margin: 0; color: var(--ink-2); }
.person__role { font-family: var(--font-head); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.person--founder { display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: rgba(255,255,255,.82); border-radius: var(--radius); padding: 36px; }
.person--founder h3 { color: #fff; }
.person--founder .person__role { color: var(--accent-light); }
.person--founder p { color: rgba(255,255,255,.82); margin-top: 12px; }
.person--founder .big { font-family: var(--font-head); font-weight: 800; font-size: 4rem; color: #fff; line-height: 1; letter-spacing: -0.04em; margin-bottom: 18px; }
@media (max-width: 860px) { .people, .people--2 { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Leistungs-Details ---------- */
.subnav {
  position: sticky; top: 84px; z-index: 30;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--navy); text-decoration: none;
  border: 1px solid var(--line); transition: all .2s;
}
.subnav a:hover, .subnav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 560px) { .subnav { top: 70px; } }

.service { padding-block: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.service:last-of-type { border-bottom: 0; }
.service__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.service--rev .service__media { order: 2; }
.service__media { position: sticky; top: 170px; }
.service__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.service__media img.landscape { aspect-ratio: 4 / 3; }
.service__body h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.service__body h3 { font-size: 1.1875rem; margin: 32px 0 8px; }
.service__body p { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.callout { margin-top: 32px; padding: 24px 28px; background: var(--paper); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; color: var(--ink); }
.callout a { font-weight: 600; }
.stat-inline { display: flex; gap: 40px; flex-wrap: wrap; margin: 28px 0 8px; }
.stat-inline div { font-family: var(--font-head); }
.stat-inline strong { display: block; font-size: 2.5rem; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.03em; }
.stat-inline span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .service__grid { grid-template-columns: 1fr; }
  .service--rev .service__media { order: 0; }
  .service__media { position: static; }
  .service__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 28px; }
.contact-card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 18px; }
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; font-family: var(--font-head); }
.contact-card a, .contact-card p { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy); text-decoration: none; margin: 0; line-height: 1.35; word-break: break-word; }
.contact-card a:hover { color: var(--accent-text); }
.contact-card small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-2); margin-top: 6px; }
.hours { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.hours h3 { color: #fff; }
.hours dl { margin: 20px 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 0; }
.hours dt, .hours dd { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hours dt { font-weight: 600; }
.hours dd { text-align: right; font-family: var(--font-head); font-weight: 600; color: var(--accent-light); }
.hours p { color: rgba(255,255,255,.75); font-size: .9375rem; margin: 0; }
.open-state { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.open-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.open-state.is-open::before { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.map-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.map-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.map-link:hover img { transform: scale(1.03); }
.map-link span { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; font-size: .9375rem; display: inline-flex; gap: 8px; align-items: center; }
.map-link span svg { width: 16px; height: 16px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: #fff; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; padding-block: clamp(56px, 7vw, 88px); }
.cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.75rem, 3.2vw, 2.625rem); max-width: 22ch; }
.cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn--white { background: #fff; color: var(--navy); }
.cta .btn--white:hover { background: var(--navy); color: #fff; }
.cta .btn--ghost { border-color: rgba(255,255,255,.6); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-top: 56px; }
.legal h3 { font-size: 1.1875rem; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); }
.legal dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 24px; margin: 0 0 24px; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); font-size: .9375rem; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--accent-light); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-block: clamp(64px, 8vw, 96px) 56px; }
.footer__brand > img { width: 225px; max-width: 100%; height: auto; margin: -10px 0 4px; }  /* erste Textzeile auf Höhe der Mailadresse */  /* ≈ sichtbare Breite des Innungslogos */
.footer__brand p { max-width: 34ch; margin-top: 0; }
.footer h4 { color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__hours { line-height: 1.6; }
.footer__state { margin-top: 16px; font-size: .8125rem; transition: background .2s; }
.footer a.footer__state:hover { background: rgba(255,255,255,.18); color: #fff; }
.footer__phone { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; color: #fff !important; display: inline-block; margin-bottom: 6px; }
.footer__badges { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.footer__badges { margin-top: 32px; margin-left: -18px; }  /* Logo-Datei hat links Leerraum */
.footer__badges img { width: 280px; max-width: 100%; height: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; font-size: .875rem; }
.footer__bottom ul { display: flex; gap: 24px; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: 36px; } }

/* Mobile Anruf-Leiste */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .callbar .btn { min-height: 48px; padding: 10px 12px; font-size: .9375rem; }
  body { padding-bottom: 72px; }
}

/* ---------- Einwilligung Webanalyse (nur aktiv mit GA_ID) ---------- */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; width: min(460px, calc(100% - 48px));
  background: var(--navy); color: rgba(255,255,255,.85); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 24px 24px 22px;
  box-shadow: 0 24px 60px -12px rgba(5, 12, 25, .55);
  animation: consent-in .5s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent__title { color: #fff; font-size: 1.125rem; line-height: 1.3; margin: 0 0 10px; }
.consent__text { font-size: .875rem; line-height: 1.6; margin: 0 0 18px; }
.consent__text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent__text a:hover { color: var(--accent-light); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; min-height: 46px; padding: 10px 14px; }
.consent__btn:hover, .consent__btn:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 720px) {
  .consent { left: 8px; right: 8px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 18px 18px 16px; }
  .consent__title { font-size: 1rem; }
  .consent__text { font-size: .8125rem; margin-bottom: 14px; }
}
.footer .linkbutton {
  background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.85); cursor: pointer;
}
.footer .linkbutton:hover { color: var(--accent-light); }
.footer .linkbutton[hidden] { display: none; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.mt-0 { margin-top: 0; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Kontaktformular
   ========================================================================== */
#formular { scroll-margin-top: 90px; }
.form-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form-intro { position: sticky; top: 120px; }
.form-intro h2 { max-width: 14ch; }
.form-facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.form-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: .975rem; }
.form-facts svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); margin-top: 2px; }
.form-facts a { font-weight: 600; white-space: nowrap; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } .form-intro { position: static; } }

.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); }
.form-row { display: grid; gap: 20px; margin-bottom: 20px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row--2 { grid-template-columns: 1fr; } }

.field { min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--navy);
}
.req { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8a93a6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(62,109,171,.15);
}
.field .is-invalid, .field input.is-invalid { border-color: #c0392b; background: #fdf3f2; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; pointer-events: none;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg);
}
.select select { padding-right: 44px; cursor: pointer; }
fieldset.field { margin-bottom: 20px; }

/* Checkboxen */
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; cursor: pointer; font-weight: 500; color: var(--ink); line-height: 1.5; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 1px 0 0;
  width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid #b9b3a6; background: var(--white);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.check input::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .15s var(--ease);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.check input:focus-visible { outline: 3px solid rgba(228,0,0,.3); outline-offset: 2px; }
.check input.is-invalid { border-color: #c0392b; }
.check--consent { margin-top: 28px; font-weight: 400; font-size: .9375rem; color: var(--ink-2); }

/* Ausklappbare Bereiche */
.reveal-box { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), margin .35s var(--ease); }
.reveal-box > .reveal-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .35s; }
.reveal-box.is-open { grid-template-rows: 1fr; margin: 4px 0 18px; }
.reveal-box.is-open > .reveal-inner { visibility: visible; transition: visibility 0s; }
.reveal-inner > :first-child { margin-top: 0; }
.reveal-inner { border-radius: var(--radius); }
.reveal-inner::before { content: ""; display: block; height: 20px; }
.reveal-inner::after { content: ""; display: block; height: 20px; }
.reveal-inner { background: var(--paper); border-left: 3px solid var(--accent); padding-inline: 20px; }
.reveal-inner .form-row:last-child, .reveal-inner fieldset.field:last-child { margin-bottom: 0; }
.reveal-box .field input, .reveal-box .field textarea { background: var(--white); }

/* Auswahl-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--white);
  border: 1.5px solid var(--line); font-family: var(--font-body); font-weight: 500; font-size: .9375rem; color: var(--ink);
  transition: all .2s;
}
.chips label:hover span { border-color: var(--navy); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid rgba(228,0,0,.3); outline-offset: 2px; }

.form-hint { font-size: .875rem; color: var(--ink-2); margin: 10px 0 0; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-submit .form-hint { margin: 0; }
.form-submit .btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 560px) { .form-submit .btn { width: 100%; } }

/* Honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Statusmeldung */
.notice { display: none; margin-bottom: 24px; padding: 16px 20px 16px 52px; border-radius: var(--radius); position: relative; font-weight: 500; line-height: 1.5; }
.notice::before { content: ""; position: absolute; left: 18px; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: currentColor; }
.notice.is-ok { display: block; background: #eaf6ee; color: #1e6b3a; }
.notice.is-err { display: block; background: #fdf0ee; color: #a2321f; }
.notice a { color: inherit; font-weight: 700; }

/* ==========================================================================
   Suche – Lupe im Hauptmenü, Feld zieht bei Mouseover auf
   ========================================================================== */
.search { position: relative; display: flex; align-items: center; margin: 0 -10px 0 -12px; }
.search__btn {
  position: relative; z-index: 2; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--navy);
  transition: background-color .2s, color .2s;
}
.search__btn svg { width: 21px; height: 21px; }
.search__btn:hover { color: var(--accent-text); }
.search__input {
  position: absolute; right: 0; top: 50%; z-index: 1;
  height: 46px; width: 44px; padding: 0;
  transform: translateY(-50%);
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid transparent; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: width .4s var(--ease), padding .4s var(--ease), opacity .25s, border-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input::placeholder { color: #8a93a6; }
.search:hover .search__input,
.search:focus-within .search__input,
.search.is-open .search__input {
  width: 300px; padding: 0 48px 0 20px; opacity: 1; pointer-events: auto;
  border-color: var(--line); box-shadow: 0 10px 30px -12px rgba(15,27,45,.35);
}
.search__input:focus { outline: none; border-color: var(--blue); }

.search__results {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 60;
  width: 400px; max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(15,27,45,.06), 0 30px 60px -20px rgba(15,27,45,.4);
  padding: 8px;
}
.search__results[hidden] { display: none; }
.search-hit {
  display: block; padding: 12px 14px; border-radius: 4px; text-decoration: none; color: var(--ink);
}
.search-hit:hover, .search-hit.is-active { background: var(--paper); color: var(--ink); }
.search-hit__page { display: block; font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.search-hit__title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.3; margin: 2px 0 4px; }
.search-hit__text { display: block; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.search-hit mark, .search-page__list mark { background: var(--accent-tint); color: inherit; border-radius: 2px; padding: 0 1px; }
.search__all { display: block; margin-top: 4px; padding: 12px 14px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--blue); text-decoration: none; }
.search__all:hover, .search__all.is-active { color: var(--navy); background: var(--paper); }
.search__none { padding: 14px; margin: 0; color: var(--ink-2); font-size: .9375rem; }

@media (max-width: 1100px) and (min-width: 961px) {
  .nav { gap: 24px; }
  .nav__list { gap: 22px; }
  .search:hover .search__input, .search:focus-within .search__input, .search.is-open .search__input { width: 240px; }
}

/* Mobil: Suchfeld steht oben im aufgeklappten Menü */
@media (max-width: 960px) {
  .search { order: -1; margin: 0 0 12px; }
  .search__input, .search:hover .search__input, .search:focus-within .search__input, .search.is-open .search__input {
    position: static; transform: none; width: 100%; height: 54px; padding: 0 52px 0 20px;
    opacity: 1; pointer-events: auto; border-color: var(--line); box-shadow: none; background: var(--paper);
  }
  .search__btn { position: absolute; right: 5px; top: 5px; }
  .search__results { top: calc(100% + 8px); left: 0; right: 0; width: auto; }
}

/* Ergebnisseite */
.search-page__form { display: flex; gap: 12px; max-width: 720px; margin-top: 32px; }
.search-page__form input {
  flex: 1; min-width: 0; height: 56px; padding: 0 22px; font: inherit; font-size: 1.0625rem;
  border: 0; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.search-page__form input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-page__form .btn { min-height: 56px; }
@media (max-width: 560px) { .search-page__form { flex-direction: column; } }
.search-page__count { font-family: var(--font-head); font-weight: 600; color: var(--ink-2); margin-bottom: 24px; }
.search-page__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 860px; }
.search-page__list a { display: block; padding: 24px 28px; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); border-left: 3px solid transparent; transition: border-color .2s, background-color .2s; }
.search-page__list a:hover { border-left-color: var(--accent); background: var(--paper-2); }
.search-page__list .search-hit__title { font-size: 1.25rem; }
.search-page__list .search-hit__text { font-size: .975rem; }
.search-page__empty { max-width: 640px; }

/* Startbild Hausansicht: Foto rechts, ganzes Haus sichtbar, links ruhige Fläche für den Text */
.hero--haus { background: var(--navy-900); }
.hero__media--haus { left: 36%; }
.hero__media--haus img { object-position: 50% 40%; animation: none; transform: none; }
@media (max-width: 1100px) {
  .hero__media--haus { left: 22%; }
  .hero--haus::before { background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 22%, rgba(12,26,49,.85) 34%, rgba(12,26,49,.4) 65%, rgba(12,26,49,.1) 100%); }
}
@media (max-width: 720px) {
  .hero__media--haus { left: 0; }
  .hero__media--haus img { object-position: 50% 30%; }
  .hero--haus::before { background: linear-gradient(0deg, rgba(12,26,49,.96) 0%, rgba(12,26,49,.8) 55%, rgba(12,26,49,.45) 100%); }
}

/* Produktfoto (freigestellt) in einer Kachel: ganz zeigen statt beschneiden */
.pillar__media--product {
  position: relative;
  background: radial-gradient(120% 90% at 50% 35%, #f4f6f9 0%, #dfe5ed 70%, #d3dae4 100%);
}
.pillar__media--product img {
  position: absolute; inset: 9% 0 11%; width: 100%; height: 80%; object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(15,27,45,.22));
}
.pillar:hover .pillar__media--product img { transform: scale(1.04); }

/* Leistungsseite: Badfoto rechts im Seitenkopf, Waschtisch und Spiegel sichtbar */
.page-hero--bad { background: var(--navy-900); }
.page-hero__media--bad { left: 40%; }
.page-hero__media--bad img { object-position: 30% 62%; }
.page-hero--bad p { max-width: 46ch; }
@media (max-width: 960px) {
  .page-hero__media--bad { left: 0; }
  .page-hero--bad::before { background: linear-gradient(90deg, rgba(12,26,49,.95) 0%, rgba(12,26,49,.8) 55%, rgba(12,26,49,.5) 100%); }
}

/* Wartungs-Banner Startseite: beleuchtete Ablagenische der Dusche im Blick */
.band__media--dusche img { object-position: 60% 22%; }
.band:has(.band__media--dusche)::before { background: linear-gradient(90deg, rgba(12,26,49,.92) 0%, rgba(12,26,49,.75) 45%, rgba(12,26,49,.35) 100%); }

/* Kontaktseite: Teamfoto rechts im Seitenkopf – analog zu Start- und Leistungsseite */
.page-hero--team { background: var(--navy-900); }
.page-hero__media--team { left: 43%; }
.page-hero__media--team img { object-position: 15% 30%; }
/* Text bleibt komplett auf der dunklen Fläche */
.page-hero--team h1 { max-width: 12ch; }
.page-hero--team p { max-width: 40ch; }
@media (max-width: 960px) {
  .page-hero--team p { max-width: none; }
  .page-hero__media--team { left: 0; }
  .page-hero__media--team img { object-position: 60% 20%; }
  .page-hero--team::before { background: linear-gradient(90deg, rgba(12,26,49,.95) 0%, rgba(12,26,49,.82) 55%, rgba(12,26,49,.55) 100%); }
}

/* Startseite: Einleitungstext schmaler, damit er auf der dunklen Fläche bleibt */
@media (min-width: 1101px) { .hero--haus .hero__lead { max-width: 44ch; } }
@media (min-width: 961px) { .page-hero--bad p { max-width: 46ch; } }
/* Text, der in den weichen Übergang ragt, bleibt durch einen dezenten Schatten lesbar */
.hero--haus .hero__lead, .hero--haus h1, .page-hero--bad h1, .page-hero--bad p {
  text-shadow: 0 1px 2px rgba(12,26,49,.35), 0 2px 18px rgba(12,26,49,.55);
}

/* ==========================================================================
   Kartenkasten (OpenStreetMap, lokal gespeichertes Kartenbild)
   ========================================================================== */
.map-box { margin-top: 20px; border-radius: var(--radius); overflow: hidden; background: var(--paper); position: relative; }
.map-box__map { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
/* Originalmaßstab (Ausschnitt aus der Bildmitte), damit Straßennamen lesbar bleiben */
.map-box__map img { width: 100%; height: 100%; object-fit: none; object-position: 50% 50%; filter: saturate(.85); transition: transform .6s var(--ease); }
.map-box__map:hover img { transform: scale(1.04); }
/* Markierung: Spitze der Nadel sitzt genau auf der Bildmitte (= Adresse) */
.map-box__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.map-box__pin svg { width: 34px; height: 44px; filter: drop-shadow(0 4px 6px rgba(12,26,49,.35)); }
.map-box__pin path { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.map-box__pin circle { fill: #fff; }
.map-box__label {
  margin-bottom: 6px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8125rem;
  box-shadow: 0 6px 16px -6px rgba(12,26,49,.5);
}
.map-box__credit { position: absolute; right: 0; top: 0; padding: 3px 8px; font-size: .6875rem; color: var(--ink-2); background: rgba(255,255,255,.85); border-bottom-left-radius: 4px; }
.map-box__credit a { color: inherit; }
.map-box__body { padding: 20px 24px 24px; }
.map-box__addr { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-family: var(--font-head); font-weight: 600; color: var(--navy); line-height: 1.4; }
.map-box__addr svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); margin-top: 1px; }
.map-box__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-box__actions .btn { min-height: 48px; padding: 10px 14px; font-size: .9375rem; }
.map-box__actions .btn[disabled] { opacity: .6; cursor: progress; }
.map-box__hint { margin: 12px 0 0; font-size: .875rem; color: var(--ink-2); }
@media (max-width: 400px) { .map-box__actions { grid-template-columns: 1fr; } }

/* ==========================================================================
   Einheitlicher Verlauf für alle Seitenköpfe – wie bei „Über uns“:
   ein durchgehender Navy-Verlauf über die ganze Breite (93 % → 75 % → 35 %).
   Fotos, die rechts sitzen, laufen an ihrem linken Rand weich aus,
   damit keine Bildkante sichtbar ist.
   ========================================================================== */
.hero--haus::before,
.page-hero--bad::before,
.page-hero--team::before {
  background: linear-gradient(90deg, rgba(12,26,49,.93) 0%, rgba(12,26,49,.75) 50%, rgba(12,26,49,.35) 100%);
}
.hero--haus, .page-hero--bad, .page-hero--team { background: var(--navy); }
@media (min-width: 961px) {
  .hero__media--haus, .page-hero__media--bad, .page-hero__media--team {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  }
}

/* Handy: Verlauf rechts kräftiger, damit der Text auch über hellen Bildstellen ruhig wirkt
   (gilt für alle Seitenköpfe mit Foto, inkl. „Über uns“) */
@media (max-width: 720px) {
  .hero--haus::before,
  .page-hero:not(.page-hero--plain)::before {
    background: linear-gradient(90deg, rgba(12,26,49,.93) 0%, rgba(12,26,49,.85) 50%, rgba(12,26,49,.7) 100%);
  }
}

/* ==========================================================================
   Aufklappmenü „Leistungen“ im Hauptmenü (Mouseover / Tastatur)
   ========================================================================== */
.nav__item--sub { position: relative; }
.nav__item--sub > a { display: inline-flex; align-items: center; gap: 4px; }
.nav__chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__dropdown {
  position: absolute; left: 50%; top: 100%; z-index: 60;
  padding-top: 18px;                       /* Brücke: Maus verlässt den Menüpunkt nicht */
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.nav__item--sub:hover > .nav__dropdown,
.nav__item--sub:focus-within > .nav__dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s;
}
.nav__item--sub:hover .nav__chev, .nav__item--sub:focus-within .nav__chev { transform: rotate(180deg); }
.nav__item--sub.is-closed > .nav__dropdown { opacity: 0; visibility: hidden; }
.nav__sub {
  list-style: none; margin: 0; padding: 10px; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(15,27,45,.06), 0 30px 60px -20px rgba(15,27,45,.4);
}
.nav__sub::before { /* kleiner Pfeil zum Menüpunkt */
  content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.nav__list .nav__sub a {
  display: block; padding: 11px 14px 11px 16px; border-radius: 4px; position: relative;
  font-family: var(--font-body); font-weight: 400; color: var(--ink);
}
.nav__list .nav__sub a::after { display: none; }
.nav__sub a::before {
  content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform .2s var(--ease);
}
.nav__sub strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--navy); line-height: 1.3; }
.nav__sub span { display: block; font-size: .8125rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.nav__sub a:hover, .nav__sub a:focus-visible, .nav__sub a.is-active { background: var(--paper); }
.nav__sub a:hover::before, .nav__sub a:focus-visible::before, .nav__sub a.is-active::before { transform: scaleY(1); }
.nav__sub a.is-active strong { color: var(--accent-text); }

/* Handy / Tablet: Unterpunkte stehen eingerückt im aufgeklappten Menü */
@media (max-width: 960px) {
  .nav__chev { display: none; }
  .nav__dropdown, .nav__item--sub:hover > .nav__dropdown, .nav__item--sub:focus-within > .nav__dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; padding: 0; transition: none;
  }
  .nav__sub { width: auto; grid-template-columns: 1fr; gap: 0; padding: 4px 0 10px 16px; border: 0; box-shadow: none; background: none; }
  .nav__sub::before { display: none; }
  .nav__list .nav__sub a { font-size: 1.0625rem; padding: 9px 0 9px 14px; border-bottom: 0; }
  .nav__sub a::before { left: 0; top: 12px; bottom: 12px; transform: scaleY(1); background: var(--line); }
  .nav__sub strong { font-size: 1.0625rem; font-weight: 500; }
  .nav__sub span { display: none; }
  .nav__list .nav__item--sub > a { display: block; border-bottom: 0; }
  .nav__sub { border-bottom: 1px solid var(--line); border-radius: 0; }
}
/* Alle Menüpunkte auf einer Linie (der Pfeil bei „Leistungen“ verschiebt sonst die Grundlinie) */
@media (min-width: 961px) {
  .nav__list { align-items: center; }
  .nav__list > li > a { display: inline-flex; align-items: center; }
}
.linkbutton--inline { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbutton--inline:hover { color: var(--accent-text); }
.linkbutton--inline[hidden] { display: none; }
