/* ============================================================
   Deines Haustechnik GmbH, Design-System
   Handwerk · bodenständig · vertrauenswürdig · schwarz/gelb
   Schriften (Inter, Atkinson Hyperlegible) werden selbst gehostet
   ausgeliefert, kein externer Schriftarten-Dienst.
   ============================================================ */

/* ---------- Selbst gehostete Schriften ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --paper:      #F5F2EA;
  --paper-2:    #FBFAF5;
  --card:       #FFFFFF;
  --ink:        #1A1813;
  --ink-soft:   #454036;
  --muted:      #6E685B;
  --line:       #E4DECF;
  --line-strong:#CFC8B5;
  /* Gelb: gedämpftes Gold statt Neon-Gelb, ruhiger im Auge, gleiche Markenwirkung */
  --yellow:     #EFB92E;
  --yellow-deep:#D19F16;
  --yellow-soft:#F6DFA4;  /* grosse Flaechen (CTA-Band, Hinweis-Banner) */
  --gold-text:  #8A6A00;  /* goldener Text auf hellem Grund, kontraststark */
  --black:      #16140E;
  --black-2:    #211E16;

  --maxw: 1560px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(20,18,13,.05), 0 8px 28px -16px rgba(20,18,13,.22);
  --shadow-lg: 0 2px 4px rgba(20,18,13,.06), 0 26px 56px -28px rgba(20,18,13,.35);

  --ff-head: 'Inter', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --t-fast: .16s ease;
  --t: .28s cubic-bezier(.4,.0,.15,1);

  --header-h: 76px;
}

/* ---------- Accessibility: high contrast ---------- */
:root[data-contrast="high"] {
  --paper:      #FFFFFF;
  --paper-2:    #FFFFFF;
  --card:       #FFFFFF;
  --ink:        #000000;
  --ink-soft:   #000000;
  --muted:      #1c1c1c;
  --line:       #000000;
  --line-strong:#000000;
  --yellow:     #FFD400;
  --yellow-deep:#C99700;
  --yellow-soft:#FFE9A8;
  --gold-text:  #6B5200;
  --black:      #000000;
  --black-2:    #000000;
  --shadow: 0 0 0 2px #000;
  --shadow-lg: 0 0 0 3px #000;
}
:root[data-contrast="high"] a { text-decoration: underline; }
:root[data-contrast="high"] .card,
:root[data-contrast="high"] .panel { border: 2px solid #000 !important; }

/* ---------- Readable font (a11y) ---------- */
:root[data-readable="on"] {
  --ff-head: 'Atkinson Hyperlegible', 'Verdana', system-ui, sans-serif;
  --ff-body: 'Atkinson Hyperlegible', 'Verdana', system-ui, sans-serif;
  letter-spacing: .01em;
  word-spacing: .06em;
}
:root[data-readable="on"] body { line-height: 1.85; }

/* ---------- Underline all links (a11y) ---------- */
:root[data-ul="on"] a:not(.btn):not(.brand) { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Large mouse cursor (a11y): schwarz mit weißem Rand, auf hellem und dunklem Grund sichtbar ---------- */
:root[data-cursor="on"],
:root[data-cursor="on"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M4 2.5v23l6-5.6 4.1 9.4 4.1-1.8-4-9.2H22z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}
:root[data-cursor="on"] :is(a[href], button:not(:disabled), summary, select, label, [role="button"], input[type="checkbox"]:not(:disabled), input[type="radio"], input[type="range"], input[type="submit"], input[type="button"]),
:root[data-cursor="on"] :is(a[href], button:not(:disabled), summary, label, [role="button"]) * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M12 4a2 2 0 0 1 4 0v9a2 2 0 0 1 4 0v1a2 2 0 0 1 4 0v1a2 2 0 0 1 4 0v7c0 5-3 8-8 8h-3c-3 0-5-1.4-6.6-3.8L4.3 19.6a2 2 0 0 1 3.2-2.4L12 21z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M16 13v5M20 14v5M24 15v5' stroke='%23fff' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 21 3, pointer !important;
}
:root[data-cursor="on"] :is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input:not([type]), textarea) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M11 3h3l2 2 2-2h3v3h-2.5L17 7.5v17l1.5 1.5H21v3h-3l-2-2-2 2h-3v-3h2.5l1.5-1.5v-17L13.5 6H11z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 24 24, text !important;
}

/* ---------- Reduce motion (a11y toggle + OS pref) ---------- */
:root[data-motion="off"] * {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  :root { scroll-behavior: auto; }
}
/* weiches Scrollen sitzt am html-Element selbst, das trifft die *-Regel oben nicht */
:root[data-motion="off"] { scroll-behavior: auto; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Sprungmarken (z. B. #kontakt) nicht unter den klebenden Header schieben */
  scroll-padding-top: calc(var(--header-h) + 1.2rem);
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--ff-head); font-weight: 650; line-height: 1.05; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; border-radius: 2px; }
:root[data-contrast="high"] :focus-visible { outline: 4px solid #000; outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--dark { background: var(--black); color: #F3EFE3; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--paper2 { background: var(--paper-2); }
.lead { font-size: clamp(1.15rem, 2.3vw, 1.4rem); color: var(--ink-soft); line-height: 1.55; max-width: 46ch; }

/* kicker */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; color: var(--ink-soft); margin: 0 0 1rem;
}
.kicker::before { content:""; width: 22px; height: 4px; background: var(--yellow); border-radius: 2px; }
.section--dark .kicker { color: var(--yellow); }
.section--dark .kicker::before { background: var(--yellow); }

.h-xxl { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 680; letter-spacing: -.03em; }
.h-xl  { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 640; letter-spacing: -.022em; }
.h-lg  { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 620; letter-spacing: -.015em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink); --bd: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .95rem 1.5rem; min-height: 52px;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bd); border-radius: var(--radius);
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn-call { --bg: var(--yellow); --fg: #1A1813; --bd: var(--yellow); box-shadow: var(--shadow); }
.btn-call:hover { --bg: var(--yellow-deep); --bd: var(--yellow-deep); box-shadow: var(--shadow-lg); }
.btn-dark { --bg: var(--black); --fg: #fff; --bd: var(--black); }
.btn-dark:hover { --bg: var(--black-2); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn-ghost:hover { --bd: var(--ink); --bg: rgba(0,0,0,.03); }
.section--dark .btn-ghost { --fg: #fff; --bd: rgba(255,255,255,.4); }
.section--dark .btn-ghost:hover { --bd: #fff; --bg: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.12rem; padding: 1.1rem 1.8rem; min-height: 60px; }

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

/* ---------- Header ---------- */
/* Versteckt ueber die eigene Hoehe statt fester Pixel: bei grosser Schrift wird der
   Link hoeher und darf trotzdem nicht oben ins Bild ragen. */
.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  transform: translateY(calc(-100% - 2rem));
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 4px;
  font-family: var(--ff-head); font-weight: 600; text-decoration: none;
  transition: transform var(--t-fast);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,245,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
:root[data-contrast="high"] .site-header { background: #fff; border-bottom: 2px solid #000; }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--ff-head); }
.brand-text strong { font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-text span { font-weight: 450; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-text small { font-weight: 550; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { display: flex; gap: .3rem; list-style: none; }
.main-nav a {
  display: block; padding: .6rem .95rem; border-radius: 4px;
  font-family: var(--ff-head); font-weight: 550; font-size: 1.02rem;
  text-decoration: none; color: var(--ink-soft); transition: color var(--t-fast), background var(--t-fast);
}
.main-nav a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content:""; display:block; height: 3px; background: var(--yellow);
  border-radius: 2px; margin-top: .25rem;
}

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn-call { min-height: 46px; padding: .65rem 1.1rem; font-size: .98rem; }
.header-phone-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.header-phone-label small { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--card); border: 2px solid var(--line-strong); border-radius: 4px;
  cursor: pointer; color: var(--ink); transition: border-color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
/* Barrierefreiheits-Symbol (Person mit ausgebreiteten Armen im Kreis) etwas groesser,
   damit es auf einen Blick erkennbar ist */
.icon-btn svg.a11y-ico { width: 30px; height: 30px; }
.a11y-head svg.a11y-ico { width: 26px; height: 26px; }
.nav-toggle { display: none; }

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; visibility: hidden;
}
.mobile-nav[data-open="true"] { visibility: visible; }
.mobile-nav__scrim {
  position: absolute; inset: 0; background: rgba(20,18,13,.5); opacity: 0;
  transition: opacity var(--t);
}
.mobile-nav[data-open="true"] .mobile-nav__scrim { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; right: -100%; height: 100%; width: min(86vw, 360px);
  background: var(--paper-2); box-shadow: var(--shadow-lg);
  transition: right var(--t);
  display: flex; flex-direction: column; padding: 1.2rem;
  overflow-y: auto;
}
.mobile-nav[data-open="true"] .mobile-nav__panel { right: 0; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-nav__head span { font-family: var(--ff-head); font-weight: 640; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--muted); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .4rem; font-family: var(--ff-head); font-weight: 600; font-size: 1.35rem;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-nav a.m-link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.mobile-nav a.m-link span { color: var(--yellow); }
.mobile-nav__cta { margin-top: auto; padding-top: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero__slogan {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-head); font-weight: 620; font-style: italic;
  color: var(--ink); font-size: 1.1rem; margin-bottom: 1.1rem;
}
.hero__slogan::before { content:""; width: 30px; height: 30px; background:
  url("logo.png") center/contain no-repeat; }
.hero h1 { margin-bottom: 1rem; }
.hero .accent { color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta .stat { display: flex; flex-direction: column; }
.hero__meta .stat b { font-family: var(--ff-head); font-weight: 680; font-size: 1.7rem; line-height: 1; color: var(--ink); }
.hero__meta .stat span { font-size: .9rem; color: var(--muted); margin-top: .25rem; }

.hero-page { background: var(--black); color: #F3EFE3; }
.hero-page__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.2rem; }
.hero-page h1 { color: #fff; }
.hero-page .lead { color: #D9D3C4; }
.hero-page .crumb { font-size: .85rem; color: #BDB7A8; font-family: var(--ff-head); font-weight: 550; letter-spacing: .04em; }
.hero-page .crumb a { color: var(--yellow); text-decoration: none; }
.hero-page .crumb a:hover { text-decoration: underline; }

/* ---------- Image placeholder ---------- */
.imgph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #ECE7D8 0 14px, #E4DECF 14px 28px);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; min-height: 240px; color: var(--muted);
  aspect-ratio: 4 / 3;
}
.imgph::after {
  content: attr(data-label);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: .8rem; letter-spacing: .04em; color: #8a8472;
  background: rgba(251,250,245,.85); padding: .45rem .75rem; border-radius: 4px;
  border: 1px solid var(--line-strong); max-width: 80%; text-align: center;
}
.imgph--tall { aspect-ratio: 3 / 4; }
.imgph--wide { aspect-ratio: 16 / 9; }
.imgph--hero { aspect-ratio: 5 / 4; min-height: 320px; box-shadow: var(--shadow-lg); }

/* ---------- Vorher/Nachher-Schieberegler ---------- */
.ba {
  --pos: 50%;
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg); background: var(--paper);
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Das "Vorher"-Bild liegt oben und wird bis zur Reglerposition freigeschnitten. */
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
  width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 0 1px rgba(20,18,13,.35); pointer-events: none;
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; transform: translate(-50%,-50%);
  border-radius: 50%; background: #fff center/22px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1813' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  box-shadow: 0 4px 14px rgba(20,18,13,.38);
}
.ba__tag {
  position: absolute; top: .8rem; z-index: 3; pointer-events: none;
  font-family: var(--ff-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(22,20,14,.72); color: #fff;
}
.ba__tag--before { left: .8rem; }
.ba__tag--after  { right: .8rem; }
/* Unsichtbarer Range-Slider deckt die gesamte Flaeche ab: Maus, Touch und Tastatur. */
.ba__range {
  position: absolute; inset: 0; z-index: 4; margin: 0;
  width: 100%; height: 100%; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100%; }
.ba__range::-moz-range-thumb { width: 56px; height: 100%; border: 0; border-radius: 0; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid #1f6feb; outline-offset: 3px; }
.ba__hint { margin: .9rem 0 0; font-size: .88rem; color: var(--muted); }
:root[data-contrast="high"] .ba { border: 2px solid #000; }
:root[data-contrast="high"] .ba__tag { background: #000; }

/* When a real photo is present, fill the frame and drop the placeholder chrome */
.imgph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.imgph:has(img) { background: none; }
.imgph:has(img)::after { content: none; }

/* ---------- Kennzeichnung KI-generierter Bilder (Art. 50 Abs. 4 KI-Verordnung) ----------
   Sitzt direkt auf dem Bild und ist beim ersten Blick ohne Klick sichtbar. Fuer Screenreader
   steht derselbe Hinweis am Anfang des Alternativtexts, deshalb ist der Badge aria-hidden.
   Weiss auf mindestens 80 % Schwarz: auch ueber hellen Bildstellen deutlich ueber 7:1. */
.ai-badge {
  position: absolute; left: .6rem; bottom: .6rem; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem .3rem .55rem; border-radius: 999px;
  background: rgba(22,20,14,.82); color: #fff;
  font-family: var(--ff-head); font-weight: 600; font-size: .8rem; line-height: 1.2; letter-spacing: .01em;
}
.ai-badge svg { width: 1em; height: 1em; flex: 0 0 auto; }
:root[data-contrast="high"] .ai-badge { background: #000; box-shadow: 0 0 0 2px #fff; }

/* ---------- Service / feature cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card__num { font-family: var(--ff-head); font-weight: 680; font-size: 1rem; color: var(--gold-text); letter-spacing: .1em; }
.card__ico {
  width: 56px; height: 56px; border-radius: 8px; background: var(--yellow);
  display: grid; place-items: center; margin-bottom: 1.1rem; color: #1A1813;
}
.card__ico svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.4rem; font-weight: 640; margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card__more { margin-top: auto; font-family: var(--ff-head); font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.card--link:hover .card__more { color: var(--gold-text); }
.card--link:hover .card__more svg { transform: translateX(4px); }
.card__more svg { width: 1.05em; height: 1.05em; transition: transform var(--t-fast); }

/* split content row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__body h2 { margin-bottom: .8rem; }

/* benefit / check list */
.checklist { list-style: none; display: grid; gap: .7rem; margin: 0; }
/* Normaler Textfluss statt Flexbox: Sonst wird jedes <strong> im Punkt zu einer eigenen
   Spalte ("Der" | "Leckageschutz" | "erkennt ...") und der Text kann nicht umbrechen. */
.checklist li { position: relative; padding-left: calc(24px + .7rem); line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .1rem; width: 24px; height: 24px;
  background: var(--yellow); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1813' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 16px; background-repeat: no-repeat; background-position: center;
}
.checklist.compact li { line-height: 1.35; }

/* feature strip (values) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-family: var(--ff-head); font-weight: 550; font-size: .95rem;
  padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--card);
}
.section--dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }

/* steps */
.steps { display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; }
.step__ico { width: 48px; height: 48px; border-radius: 8px; background: var(--ink); color: var(--yellow);
  display: grid; place-items: center; }
.step__ico svg { width: 26px; height: 26px; }
:root[data-contrast="high"] .step__ico { background: #000; color: #FFD400; }
.step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); }

/* partners */
.partners { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.partner {
  font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  padding: .7rem 1.3rem; border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: var(--card); color: var(--ink-soft);
}
a.partner {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
a.partner::after { content: "\2197 "; font-size: .9em; opacity: .55; }
a.partner:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
a.partner:hover::after { opacity: 1; }
:root[data-contrast="high"] a.partner { border: 2px solid #000; text-decoration: underline; }


/* info / contact cards */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.2rem; }
.info {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem;
}
.section--dark .info { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.info h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 640; margin-bottom: .8rem; }
.info .big-phone { font-family: var(--ff-head); font-weight: 700; font-size: clamp(1.6rem,3vw,2.1rem); color: inherit; text-decoration: none; display: inline-block; letter-spacing: -.02em; }
.section--dark .info .big-phone { color: var(--yellow); }
.info .rows { display: grid; gap: .45rem; }
.info .rows div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .45rem; }
.section--dark .info .rows div { border-color: rgba(255,255,255,.15); }
.info a { color: inherit; }

/* CTA band */
.cta-band { background: var(--yellow-soft); color: #1A1813; border-block: 1px solid var(--line-strong); }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr auto; gap: 1.8rem; align-items: center;
  padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 680; margin: 0; }
.cta-band p { margin: .5rem 0 0; font-size: 1.1rem; max-width: 50ch; }
.cta-band .btn-dark { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }

/* note / callout */
.note { border-left: 5px solid var(--yellow); background: var(--card); padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; box-shadow: var(--shadow); }
.note strong { font-family: var(--ff-head); }

/* ---------- Hinweis „Am Telefon sitzt ein Mensch" ---------- */
.human-note {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--yellow);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
}
.human-note svg { flex: 0 0 auto; width: 26px; height: 26px; margin-top: .15rem; color: var(--gold-text); }
.human-note p { margin: 0; color: var(--ink-soft); }
.human-note strong { font-family: var(--ff-head); font-weight: 640; color: var(--ink); }
.section--dark .human-note { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); border-left-color: var(--yellow); }
.section--dark .human-note p { color: #D9D3C4; }
.section--dark .human-note strong { color: #fff; }
.section--dark .human-note svg { color: var(--yellow); }

.footer-human { display: flex; gap: .55rem; align-items: flex-start; margin: .9rem 0 0; font-size: .92rem; color: #A6A091; }
.footer-human svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .22rem; color: var(--yellow); }

/* prose */
.prose p { max-width: 64ch; color: var(--ink-soft); }
.prose .lead { color: var(--ink-soft); }
.prose a:not(.btn):not(.partner),
.checklist a:not(.btn) {
  color: var(--ink); font-weight: 550;
  text-decoration: underline; text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose a:not(.btn):not(.partner):hover,
.checklist a:not(.btn):hover { text-decoration-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #CFC9BA; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.site-footer a { color: #CFC9BA; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand b { font-family: var(--ff-head); font-weight: 700; color: #fff; font-size: 1.2rem; }
.site-footer h4 { color: #fff; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-list { list-style: none; display: grid; gap: .55rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--yellow); }
.footer-phone { font-family: var(--ff-head); font-weight: 700; font-size: 1.5rem; color: var(--yellow); text-decoration: none; display: block; margin-bottom: .3rem; }
.footer-notdienst { font-size: .92rem; color: #A6A091; margin-top: .6rem; }
.footer-notdienst a { color: #E6E0D1; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #8B8576; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--yellow); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--yellow); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-prose { max-width: 82ch; }
.legal-prose h2 { margin-top: 2.4rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 640; }
.legal-prose h3 { margin-top: 1.5rem; font-size: 1.15rem; font-weight: 600; }
.legal-prose p, .legal-prose li { color: var(--ink-soft); }
.legal-prose address { font-style: normal; line-height: 1.7; }
.legal-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose ul { padding-left: 1.2rem; list-style: disc; display: grid; gap: .35rem; margin: 0 0 1rem; }
.legal-prose ul li { padding-left: .2rem; }
.legal-prose .btn { color: var(--fg); text-decoration: none; }
.legal-prose .btn-row { margin: 1.2rem 0 1.4rem; }
.hero-page__more { margin: 0; font-family: var(--ff-head); font-weight: 600; }
.hero-page__more a { color: var(--yellow); text-underline-offset: 3px; }

/* ---------- Leichte Sprache: große Schrift, ein Satz pro Zeile, viel Abstand ---------- */
.easy { max-width: 44ch; font-size: 1.25rem; line-height: 1.55; }
.easy h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; margin: 3.2rem 0 1rem; }
.easy h2:first-child { margin-top: 0; }
.easy h3 { font-size: 1.35rem; line-height: 1.25; margin: 2.2rem 0 .8rem; }
.easy p { margin: 0 0 .45rem; color: var(--ink); }
.easy .easy-gap { margin-top: 1.3rem; }
.easy ul { list-style: disc; padding-left: 1.5rem; display: grid; gap: .45rem; margin: .4rem 0 1rem; }
.easy address { font-style: normal; line-height: 1.6; }
.easy a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.easy .easy-cta { margin: .9rem 0 1.1rem; }
.easy .easy-cta .btn { max-width: 100%; overflow-wrap: anywhere; text-align: left; line-height: 1.2; }
.easy .easy-number { font-family: var(--ff-head); font-size: 1.6rem; margin: .5rem 0 1rem; }
.fillme { background: var(--yellow-soft); color: #1A1813; padding: 0 .3em; border-radius: 3px; font-weight: 550; white-space: nowrap; }
.legal-note { background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 1rem 1.2rem; margin: 0 0 2rem; font-size: .92rem; color: var(--muted); }
.legal-note strong { color: var(--ink); }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: .6rem; padding: .55rem; padding-bottom: calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(251,250,245,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; min-height: 54px; }
.callbar .btn-ghost { flex: 0 0 auto; width: 54px; padding: 0; }

/* ---------- A11y panel ---------- */
.a11y-panel {
  position: fixed; top: 0; right: -400px; height: 100%; width: min(92vw, 380px); z-index: 210;
  background: var(--paper-2); box-shadow: var(--shadow-lg);
  transition: right var(--t), visibility var(--t); display: flex; flex-direction: column; overflow-y: auto;
  border-left: 1px solid var(--line);
  /* geschlossen unsichtbar, damit die Tabulatortaste nicht in das verborgene Feld springt */
  visibility: hidden;
}
/* beim Öffnen sofort sichtbar, sonst schlägt der Fokussprung auf "Schließen" fehl */
.a11y-panel[data-open="true"] { right: 0; visibility: visible; transition: right var(--t), visibility 0s; }
.a11y-scrim { position: fixed; inset: 0; z-index: 205; background: rgba(20,18,13,.45);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); }
.a11y-scrim[data-open="true"] { opacity: 1; visibility: visible; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: var(--paper-2); }
.a11y-head h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.a11y-body { padding: 1.3rem; display: grid; gap: 1.5rem; }
.a11y-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .7rem; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.a11y-row span { font-weight: 550; line-height: 1.25; }
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button { width: 40px; height: 40px; border: 2px solid var(--line-strong); background: var(--card);
  border-radius: 6px; font-size: 1.3rem; font-family: var(--ff-head); font-weight: 640; cursor: pointer; color: var(--ink); }
.stepper button:hover { border-color: var(--ink); }
.stepper output { min-width: 3.5ch; text-align: center; font-weight: 600; font-family: var(--ff-head); }
.switch { position: relative; width: 56px; height: 32px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
/* Dunkle Ränder an Spur und Knopf: mindestens 3:1 zum Hintergrund und zueinander (WCAG 1.4.11) */
.switch .track { position: absolute; inset: 0; background: var(--line-strong); border: 2px solid var(--ink-soft); border-radius: 999px; transition: background var(--t-fast); }
.switch .thumb { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; background: #fff; border: 2px solid var(--ink-soft); border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform var(--t-fast); pointer-events: none; }
.switch input:checked + .track { background: var(--yellow-deep); }
.switch input:checked + .track + .thumb { transform: translateX(24px); }
.switch input:focus-visible + .track { outline: 3px solid #1f6feb; outline-offset: 2px; }
.a11y-reset { margin-top: .5rem; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .track { opacity: .45; }
.switch input:disabled + .track + .thumb { box-shadow: none; opacity: .75; }
.a11y-hint { margin: 0 0 .3rem; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.a11y-links { margin: 0; display: grid; gap: .5rem; }
.a11y-links a { color: var(--ink); font-weight: 550; text-underline-offset: 3px; }

/* Vorlesen: Bedienleiste unten links und der gerade gelesene Absatz */
.tts-bar {
  position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 120;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem;
  max-width: calc(100vw - 2rem);
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.tts-bar[hidden] { display: none; }
.tts-bar .btn { min-height: 46px; padding: .6rem 1rem; font-size: 1rem; }
.tts-bar .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
:root[data-tts="on"] { scroll-padding-bottom: 6rem; }
:root[data-tts="on"] body { padding-bottom: 5.5rem; }
.tts-current {
  background-color: var(--yellow-soft) !important; box-shadow: 0 0 0 .3em var(--yellow-soft);
  outline: 2px solid var(--ink); outline-offset: .3em; border-radius: 2px;
}
.tts-current, .tts-current * { color: var(--ink) !important; }
@media (max-width: 760px) {
  .tts-bar { bottom: calc(80px + env(safe-area-inset-bottom)); left: .5rem; max-width: calc(100vw - 1rem); gap: .4rem; padding: .4rem; }
  .tts-bar .btn { padding: .55rem .75rem; }
  :root[data-tts="on"] { scroll-padding-bottom: calc(70px + 6rem); }
  :root[data-tts="on"] body { padding-bottom: calc(70px + 5.5rem); }
}

/* magnifier (Lupe) */
.magnifier {
  position: fixed; top: 0; left: 0; width: 240px; height: 240px; border-radius: 50%;
  border: 4px solid var(--ink);
  box-shadow: 0 12px 36px rgba(20,18,13,.42), inset 0 0 0 5px rgba(255,255,255,.6);
  overflow: hidden; pointer-events: none; z-index: 130; display: none;
  background: var(--paper); will-change: left, top;
}
.magnifier__content { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.magnifier::after { content:""; position:absolute; inset:0; border-radius:50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); pointer-events:none; }

/* ---------- Einwilligungsbanner ---------- */
/* Die drei Schaltflaechen sind bewusst gleich gross und gleich gestaltet.
   Ablehnen darf optisch nicht schwerer zu finden sein als Annehmen. */
.consent {
  position: fixed; z-index: 140; left: 1.25rem; bottom: 1.25rem;
  width: min(560px, calc(100vw - 2.5rem));
  max-height: min(86vh, 780px); overflow-y: auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(160%); opacity: 0;
  transition: transform var(--t), opacity var(--t);
}
.consent[data-open="true"] { transform: translateY(0); opacity: 1; }
.consent[hidden] { display: none; }
.consent:focus:not(:focus-visible) { outline: none; }
.consent__box { padding: 1.4rem 1.5rem 0; }
.consent__title { font-family: var(--ff-head); font-size: 1.25rem; font-weight: 640; margin: 0 0 .5rem; }
.consent__intro { margin: 0 0 1.1rem; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }

.consent__cats { display: grid; gap: .9rem; margin-bottom: 1rem; }
.consent__cat {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .85rem 1rem;
}
.consent__cat b { font-family: var(--ff-head); font-weight: 640; font-size: 1rem; display: block; margin-bottom: .2rem; }
.consent__cat p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.consent__req, .consent__opt {
  font-family: var(--ff-head); font-weight: 550; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .18rem .5rem; border-radius: 999px; margin-left: .35rem; vertical-align: middle;
}
.consent__req { background: var(--line); color: var(--ink-soft); }
.consent__opt { background: var(--yellow-soft); color: var(--gold-text); }

/* Kaestchen statt Schalter: eindeutig an oder aus, auch ohne Farbe erkennbar */
.consent__switch { position: relative; display: block; width: 26px; height: 26px; margin-top: .15rem; }
.consent__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent__switch input:disabled { cursor: not-allowed; }
.consent__box-visual {
  position: absolute; inset: 0; border-radius: 5px;
  border: 2px solid var(--line-strong); background: var(--card);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.consent__switch input:checked + .consent__box-visual {
  background: var(--yellow); border-color: var(--yellow-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1813' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 17px; background-repeat: no-repeat; background-position: center;
}
.consent__switch input:disabled + .consent__box-visual { opacity: .65; }
.consent__switch input:focus-visible + .consent__box-visual { outline: 3px solid #1f6feb; outline-offset: 2px; }

.consent__morewrap { margin: 0 0 1rem; }
.consent__more {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.consent__more:hover { text-decoration-color: var(--ink); }

.consent__details {
  border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1.1rem;
  font-size: .88rem; line-height: 1.55; color: var(--ink-soft);
}
.consent__details[hidden] { display: none; }
.consent__details h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; color: var(--ink); margin: 1.2rem 0 .5rem;
}
.consent__details h3:first-child { margin-top: 0; }
.consent__details ul { list-style: disc; padding-left: 1.15rem; display: grid; gap: .3rem; margin: 0 0 .5rem; }
.consent__details p { margin: 0 0 .6rem; }
.consent__details a { color: var(--ink); font-weight: 550; text-underline-offset: 3px; }
.consent__table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: .6rem; }
.consent__table th, .consent__table td {
  text-align: left; padding: .42rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.consent__table th { font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.consent__table code { font-size: .95em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.consent__note { font-size: .82rem; color: var(--muted); }

/* Die Schaltflaechen kleben am unteren Rand des Fensters. So bleiben sie auch
   bei aufgeklappten Details oder kleinen Bildschirmen ohne Scrollen erreichbar. */
.consent__actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
  position: sticky; bottom: 0; z-index: 1;
  margin: 0 -1.5rem; padding: .9rem 1.5rem;
  background: var(--card); border-top: 1px solid var(--line);
}
.consent__btn {
  --bg: var(--card); --fg: var(--ink); --bd: var(--line-strong);
  min-height: 50px; padding: .8rem .6rem; font-size: .95rem; width: 100%;
}
.consent__btn:hover { --bd: var(--ink); --bg: var(--paper-2); }
/* Nur "Alle akzeptieren" (steht zuerst) traegt die Markenfarbe. Groesse und Form
   bleiben bei allen dreien gleich, damit Ablehnen genauso leicht zu finden ist. */
#dhConsentAcceptAll { --bg: var(--yellow); --bd: var(--yellow); }
#dhConsentAcceptAll:hover { --bg: var(--yellow-deep); --bd: var(--yellow-deep); }

.consent__legal { margin: 0; padding: 0 0 1.1rem; font-size: .82rem; color: var(--muted); text-align: center; }
.consent__legal a { color: var(--ink-soft); text-underline-offset: 3px; }

:root[data-contrast="high"] .consent { border: 2px solid #000; }
:root[data-contrast="high"] .consent__cat { border: 2px solid #000; }
:root[data-contrast="high"] .consent__btn { border-width: 2px; }
:root[data-contrast="high"] .consent__actions { border-top: 2px solid #000; }

/* Handy: Blatt am unteren Rand ueber volle Breite, kompakt, Schaltflaechen untereinander
   in der Reihenfolge Alle akzeptieren, Ablehnen, Auswahl annehmen. */
@media (max-width: 760px) {
  .consent {
    left: 0; right: 0; bottom: 0; width: auto;
    max-height: 88vh; max-height: 88dvh;
    border-width: 1px 0 0; border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }
  .consent__box { padding: 1.1rem 1rem 0; }
  .consent__title { font-size: 1.15rem; margin-bottom: .35rem; }
  .consent__intro { font-size: .92rem; line-height: 1.5; margin-bottom: .85rem; }
  .consent__cats { gap: .5rem; margin-bottom: .6rem; }
  .consent__cat { padding: .65rem .8rem; gap: .7rem; }
  .consent__cat b { margin-bottom: 0; }
  /* Die Erklaerungen der Kategorien erscheinen mit "Mehr erfahren". Screenreader
     lesen sie ueber aria-describedby am Kaestchen trotzdem immer vor. */
  .consent:not([data-details="true"]) .consent__cat p { display: none; }
  .consent[data-details="true"] .consent__cat b { margin-bottom: .2rem; }
  .consent__morewrap { margin-bottom: .4rem; }
  .consent__more { padding: .55rem 0; }
  .consent__actions { grid-template-columns: 1fr; gap: .5rem; margin: 0 -1rem; padding: .75rem 1rem; }
  .consent__btn { min-height: 48px; padding: .7rem .6rem; }
  .consent__legal { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  /* Alle Spalten bleiben sichtbar, auch der Zweck. Lange Namen duerfen umbrechen. */
  .consent__table { font-size: .76rem; }
  .consent__table th, .consent__table td { padding: .4rem .3rem; overflow-wrap: anywhere; hyphens: auto; }
  .consent__table code { word-break: break-all; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .header-actions .header-phone-label { display: none; }
  .nav-toggle { display: inline-grid; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text small { display: none; }
  .header-actions .btn-call .num { display: none; }
  .header-actions .btn-call { min-height: 46px; width: 46px; padding: 0; }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  body { padding-bottom: 70px; }
  .callbar { display: flex; }
  /* per Tab angesteuerte Elemente nicht hinter der festen Anrufleiste verstecken (WCAG 2.4.11) */
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 1rem 1.4rem; }
}

/* ---------- Reflow bis 320 px (WCAG 1.4.10) ----------
   Grid-Spalten duerfen schmaler werden als ihr breitester Inhalt. Sonst schieben
   Bildrahmen oder lange Woerter die Spalte ueber den Rand, und body schneidet sie ab. */
.hero__inner > *, .split > *, .hero-page__inner > *,
.grid > *, .steps > *, .step > *, .hero__meta > *, .info .rows div > * { min-width: 0; }
h1, h2, h3, h4, .lead { overflow-wrap: break-word; }
@media (max-width: 560px) {
  /* Die Mindesthoehe der Bildrahmen erzwingt ueber das Seitenverhaeltnis eine
     Mindestbreite (16:9 bei 240 px Hoehe = 427 px). Mit Bild bestimmt das Verhaeltnis. */
  .imgph, .imgph--hero { min-height: 0; }
  /* Lange Woerter wie "Datenschutzerklaerung" sauber trennen statt abschneiden */
  h1, h2, h3, h4, .kicker, .card__num, .stat b { hyphens: auto; }
  /* Bei grosser Schrift aus dem Einstellungsfeld: notfalls auch mitten im Wort umbrechen.
     Bei normaler Schrift greift das nie, weil dann jedes Wort in die Zeile passt. */
  p, li, h3, h4, .kicker, .card__num, .stat b, .stat span { overflow-wrap: anywhere; }
  .kicker { flex-wrap: wrap; max-width: 100%; }
  /* Kontaktzeilen: Bezeichnung und Wert untereinander, wenn es eng wird */
  .info .rows div { flex-wrap: wrap; }
}
/* E-Mail-Adressen sind ein einziges langes "Wort" und duerfen notfalls umbrechen */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Nur bei grosser Schrift auf dem Handy (19.5rem = 312 px bei normaler Schrift, also nie
   bei 100 %): Woerter mit Trennstrich trennen und Schritt-Kacheln untereinander stellen,
   damit der Text nicht in eine schmale Spalte neben dem Icon gequetscht wird. */
main { container: inhalt / inline-size; }
@container inhalt (max-width: 19.5rem) {
  p, li { hyphens: auto; }
  .step { grid-template-columns: 1fr; padding: 1rem; }
}

/* ---------- Kopfzeile passt sich auch an die Schriftgroesse an ----------
   Container-Abfragen in rem rechnen mit der Grundschrift, die das Einstellungsfeld
   vergroessert (bis 160 %). Bei normaler Schrift entsprechen die Werte den Breiten
   oben (60rem = 960 px, 47.5rem = 760 px). Bei grosser Schrift schaltet die Kopfzeile
   frueher auf das Menue um, statt Knoepfe ueber den Rand zu schieben. */
.site-header { container: kopf / inline-size; }
@container kopf (max-width: 60rem) {
  .main-nav { display: none; }
  .header-actions .header-phone-label { display: none; }
  .nav-toggle { display: inline-grid; }
}
@container kopf (max-width: 47.5rem) {
  .brand img { width: 40px; height: 40px; }
  .brand-text small { display: none; }
  .header-actions .btn-call .num { display: none; }
  .header-actions .btn-call { min-height: 46px; width: 46px; padding: 0; }
}
/* Sehr schmal (unter 359 px bei normaler Schrift): Der Anruf-Knopf oben wuerde den
   Firmennamen ueberdecken. Anrufen bleibt ueber die feste Leiste unten erreichbar. */
@container kopf (max-width: 22.4rem) {
  .header-actions .btn-call { display: none; }
}
/* Nur bei grosser Schrift auf dem Handy: Firmenname ausblenden, das Logo bleibt
   (der Link heisst fuer Screenreader weiter "Startseite der Deines Haustechnik GmbH"). */
@container kopf (max-width: 19.5rem) {
  .brand-text { display: none; }
}

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
:root[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; }

/* print */
@media print {
  .site-header, .callbar, .a11y-panel, .a11y-scrim, .mobile-nav, .magnifier, .cta-band, .skip, .consent, .tts-bar { display: none !important; }
  body { background: #fff; }
}

/* ---------- Hinweis-Banner (vom Control Panel gesteuert) ---------- */
.dh-notice {
  position: relative; z-index: 95;
  padding: .75rem clamp(1.1rem, 4vw, 2.5rem);
  font-family: var(--ff-head); font-weight: 500; font-size: .98rem;
  text-align: center; color: var(--ink); background: var(--yellow-soft);
  border-bottom: 1px solid var(--line-strong);
}
.dh-notice--warning { background: #F1CE79; }
.dh-notice--closure { background: var(--ink); color: #fff; }
.dh-notice strong { font-weight: 640; }
@media print { .dh-notice { display: none !important; } }
