/* ==========================================================================
   Maler Wulfes – Stylesheet
   Farben aus dem Logo, Kontraste nach WCAG 2.2 AA geprüft.
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --blau: #0268AE;          /* Logo-Blau, 5,9:1 auf Weiß */
  --blau-dunkel: #014E83;
  --blau-hell: #E6F0F8;
  --rot: #D30131;           /* Logo-Rot, 5,4:1 auf Weiß */
  --rot-dunkel: #A8001F;
  --text: #14212B;
  --text-2: #4A5866;        /* 7,2:1 auf Weiß */
  --linie: #D8DFE6;
  --feldrand: #6B7A89;      /* Formularrahmen, 4,4:1 */
  --bg: #FFFFFF;
  --bg-2: #F2F5F8;
  --bg-3: #E4EBF1;
  --dunkel: #0F1B25;
  --dunkel-text: #E6ECF2;
  --dunkel-2: #AEBBC8;
  --fokus: #0F1B25;

  --font-head: "Archivo", "Arial", "Helvetica Neue", sans-serif;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 37, .06), 0 10px 28px -14px rgba(15, 27, 37, .22);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text); margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.45rem); font-weight: 750; }
h3 { font-size: clamp(1.18rem, 1.1rem + .35vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
a { color: var(--blau); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blau-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
strong, b { font-weight: 700; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -200px; z-index: 200; background: var(--text); color: #fff; padding: .8rem 1.1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* ---------- Kopfbereich ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--linie); transition: box-shadow .2s ease; }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.5) blur(10px); } }
.site-header.is-scrolled { box-shadow: 0 8px 22px -14px rgba(15, 27, 37, .4); }
.header-inner { position: relative; display: flex; align-items: center; gap: .75rem; min-height: var(--header-h); }
.brand { display: block; margin-right: auto; flex: none; border-radius: 6px; }
.brand img { width: auto; height: 46px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.main-nav a { position: relative; display: block; padding: .6rem .7rem; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--text); text-decoration: none; }
.main-nav a:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.main-nav a[aria-current="page"] { color: var(--blau); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 3px; border-radius: 2px; background: var(--rot); }
.header-call { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; background: var(--blau); color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-call:hover { background: var(--blau-dunkel); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1179px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem; border: 1.5px solid var(--text); border-radius: 999px; background: #fff; color: var(--text); font: 600 1rem/1 var(--font-head); cursor: pointer; }
  .nav-toggle:hover { background: var(--bg-2); }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .js .main-nav { display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 22px 32px -20px rgba(15, 27, 37, .45); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .nav-open .main-nav { display: block; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .main-nav { order: 10; width: 100%; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; }
  .js .main-nav ul { flex-direction: column; padding: .5rem var(--gutter) 1.25rem; }
  .js .main-nav a { padding: .9rem .75rem; font-size: 1.1rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .js .main-nav a[aria-current="page"]::after { left: 0; right: auto; top: .75rem; bottom: .75rem; width: 3px; height: auto; }
  .header-call { padding: .5rem; width: 44px; justify-content: center; }
  .header-call .icon { width: 1.3rem; height: 1.3rem; }
  .header-call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 420px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .nav-toggle { padding-inline: .75rem; }
}

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent; background: var(--blau); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { background: var(--blau-dunkel); color: #fff; text-decoration: none; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-white { background: #fff; color: var(--blau-dunkel); }
.btn-white:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.btn-ghost-white { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-white:hover { background: #fff; color: var(--blau-dunkel); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Startbild & Seitenkopf ---------- */
.hero, .page-head { position: relative; isolation: isolate; overflow: hidden; background: #EEF2F5; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
/* Gespiegelt, damit das Blau des Logos neben dem Text sichtbar ist */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transform: scaleX(-1); }
.hero::before, .page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 36%, rgba(255, 255, 255, .45) 62%, rgba(255, 255, 255, 0) 82%); }
.hero-content { padding-block: clamp(4rem, 10vw, 8.5rem); max-width: 40rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rot); }
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.12rem, 1rem + .45vw, 1.32rem); line-height: 1.55; color: var(--text-2); }
.hero .lead { color: var(--text); max-width: 34rem; }
.hero .btn-row { margin-top: 2rem; }

.page-head { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2.25rem, 5vw, 3.5rem); }
.page-head::before { background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 45%, rgba(255, 255, 255, .55) 75%, rgba(255, 255, 255, .25) 100%); }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { max-width: 44rem; margin: 0; color: var(--text); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.25rem; font-size: .95rem; color: var(--text-2); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--text-2); }
.breadcrumb a { color: var(--text); }
.breadcrumb [aria-current="page"] { color: var(--text-2); }

@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .88) 100%); }
  .page-head::before { background: rgba(255, 255, 255, .9); }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-2); font-size: 1.15rem; margin: 0; }
.section-foot { margin-top: 2rem; }

/* Hinweis auf den Farbplaner im Startbild */
.hero-planer { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem; min-height: 44px; padding: .4rem 1rem .4rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--linie), 0 6px 18px -10px rgba(15, 27, 37, .35); color: var(--blau-dunkel); font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.hero-planer:hover { background: #fff; color: var(--blau-dunkel); text-decoration: underline; }
.badge-neu { display: inline-block; padding: .22rem .6rem; border-radius: 999px; background: var(--rot); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.nav-neu { display: inline-block; margin-left: .35rem; padding: .08rem .38rem; border-radius: 999px; background: var(--rot); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: .18em; line-height: 1.3; }

/* Farbplaner-Abschnitt auf der Startseite */
.planer-teaser { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6rem); background: linear-gradient(135deg, #0268AE 0%, #014E83 100%); color: #fff; }
.planer-teaser::before { content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -18rem; border-radius: 50%; background: conic-gradient(from 0deg, #D30131, #E1A100, #57A639, #058B8C, #0268AE, #9D8692, #D30131); opacity: .13; filter: blur(2px); }
.planer-teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.planer-teaser h2 { color: #fff; font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); }
.planer-teaser .eyebrow { color: #fff; }
.planer-teaser .eyebrow::before { background: #FF8FA3; }
.planer-teaser .lead { color: #E6F0F8; }
.planer-teaser :focus-visible { outline-color: #fff; }
.teaser-points { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: .6rem; }
.teaser-points li { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: 1.05rem; }
.teaser-points .icon { width: 1.5rem; height: 1.5rem; padding: .2rem; border-radius: 50%; background: rgba(255, 255, 255, .18); stroke-width: 2.4; }
.teaser-stack { position: relative; aspect-ratio: 6 / 5; max-width: 100%; }
.teaser-stack figure { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; border: 4px solid #fff; background: #fff; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55); transition: transform .5s ease; }
.teaser-stack img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stack-main { left: 0; top: 8%; width: 82%; z-index: 1; }
.stack-a { right: 0; top: 0; width: 42%; z-index: 2; transform: rotate(3deg); }
.stack-b { right: 4%; bottom: 0; width: 46%; z-index: 2; transform: rotate(-2.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .teaser-stack:hover .stack-a { transform: rotate(5deg) translate(6px, -6px); }
  .teaser-stack:hover .stack-b { transform: rotate(-4deg) translate(6px, 6px); }
}
.house-links-wrap { grid-column: 1 / -1; }
.house-links-title { color: #fff; font-size: 1.15rem; margin: 0 0 1rem; }
.house-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.house-links a { display: grid; justify-items: center; gap: .45rem; height: 100%; padding: .95rem .5rem .85rem; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-align: center; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.house-links a:hover { background: #fff; color: var(--blau-dunkel); }
.house-links svg { width: 3.2rem; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Eckdaten */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.fact { background: #fff; padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.fact .icon { width: 2rem; height: 2rem; color: var(--blau); margin-top: .1rem; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; }
.fact span { color: var(--text-2); }

/* Leistungen */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; }
.service { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.service-icon { width: 3rem; height: 3rem; border-radius: 12px; background: var(--blau-hell); color: var(--blau); display: grid; place-items: center; }
.service-icon .icon { width: 1.6rem; height: 1.6rem; }
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--text-2); }
.service-compact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.service-compact li { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: .85rem 1rem; font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
.service-compact .icon { width: 1.6rem; height: 1.6rem; color: var(--blau); }

/* Karten */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow); }
.card .icon-badge { width: 3rem; height: 3rem; border-radius: 12px; background: var(--blau-hell); color: var(--blau); display: grid; place-items: center; }
.card .icon-badge .icon { width: 1.6rem; height: 1.6rem; }
.card h3 { margin: 0; }
.card p { color: var(--text-2); margin: 0; flex: 1; }
.card .btn { align-self: flex-start; margin-top: .5rem; }

/* Bild und Text */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.split-text p { color: var(--text-2); }

/* Handlungsaufforderung */
.cta-band { background: var(--blau); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #E6F0F8; margin: 0; font-size: 1.12rem; }
.cta-contact { display: grid; gap: .75rem; justify-items: start; }
.cta-contact a:not(.btn) { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.cta-contact a:not(.btn):hover { text-decoration: underline; }
.cta-band :focus-visible { outline-color: #fff; }

/* Zeitstrahl */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 6vw, 4rem); position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.25rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--linie); }
.tl-item { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: 2.5rem; position: relative; }
.tl-item::before { content: ""; position: absolute; left: calc(6.25rem - 7px); top: .55rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--rot); }
.tl-year { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1.2; color: var(--blau); margin: 0; }
.tl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 2rem; align-items: start; }
.tl-body.no-media { grid-template-columns: minmax(0, 1fr); }
.tl-body h2 { font-size: 1.45rem; }
.tl-body p { color: var(--text-2); max-width: 40rem; }
.tl-body figure { margin: 0; }
.tl-body img { border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption { font-size: .92rem; color: var(--text-2); margin-top: .6rem; }

/* Galerie */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .zoom-badge { position: absolute; right: .75rem; bottom: .75rem; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--text); display: grid; place-items: center; }
.lightbox { border: 0; padding: 0; background: transparent; width: min(1200px, 100vw - 32px); max-width: none; max-height: none; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(8, 14, 20, .9); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: calc(100vh - 9rem); width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; text-align: center; font-size: 1rem; }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .45rem; }
.contact-card .icon { width: 1.9rem; height: 1.9rem; color: var(--blau); margin-bottom: .3rem; }
.contact-card h2 { font-size: 1.15rem; margin: 0; }
.contact-card p { margin: 0; color: var(--text-2); }
.contact-card .big { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 9; min-height: 320px; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { max-width: 34rem; display: grid; gap: 1rem; justify-items: center; }
.map-consent p { margin: 0; color: var(--text-2); }
.map-consent .map-icon { width: 2.5rem; height: 2.5rem; color: var(--blau); }
.h3-size { font-size: clamp(1.18rem, 1.1rem + .35vw, 1.35rem); font-weight: 700; }
.footer-bottom p { margin: 0; }

/* Formulare */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; gap: 1.75rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.form legend { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: .75rem; padding: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-row.plz-ort { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); }
.field { display: grid; gap: .35rem; align-content: start; }
.field label, .field .label { font-weight: 600; }
.field .req { color: var(--rot-dunkel); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--feldrand); border-radius: 10px; padding: .7rem .9rem; min-height: 48px; width: 100%; }
.field input[type="file"] { padding: .55rem .6rem; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: 600 .95rem var(--font-head); margin-right: .8rem; padding: .5rem .9rem; border-radius: 8px; border: 0; background: var(--blau-hell); color: var(--blau-dunkel); cursor: pointer; }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blau); outline: 3px solid var(--fokus); outline-offset: 2px; }
.field .hint { font-size: .95rem; color: var(--text-2); margin: 0; }
.field .error { display: none; align-items: center; gap: .4rem; color: var(--rot-dunkel); font-weight: 600; font-size: .97rem; margin: 0; }
.field .error.is-visible { display: flex; }
.field [aria-invalid="true"] { border-color: var(--rot-dunkel); background: #FFF6F7; }
.required-note { color: var(--text-2); margin: 0; }
.muted-note { font-weight: 400; color: var(--text-2); font-size: .95em; }
.form-note { background: var(--bg-2); border-radius: 12px; padding: 1rem 1.2rem; font-size: .97rem; color: var(--text-2); margin: 0; }
.form-error-summary { border: 2px solid var(--rot-dunkel); background: #FFF6F7; border-radius: 12px; padding: 1rem 1.2rem; }
.form-error-summary h2 { font-size: 1.1rem; color: var(--rot-dunkel); margin: 0 0 .4rem; }
.form-error-summary ul { margin: 0; padding-left: 1.2rem; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aside-box { background: var(--bg-2); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .9rem; }
.aside-box h2 { font-size: 1.2rem; margin: 0; }
.aside-box p { margin: 0; color: var(--text-2); }
.aside-box a.line { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.aside-box a.line:hover { text-decoration: underline; }

/* Stellenanzeige */
.job { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); display: grid; gap: 1.25rem; }
.job h2 { margin: 0; }
.job h3 { margin: .75rem 0 0; }
.job p { margin: 0; color: var(--text-2); max-width: 46rem; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { background: var(--blau-hell); color: var(--blau-dunkel); border-radius: 999px; padding: .3rem .85rem; font-weight: 600; font-size: .95rem; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.benefits li { display: flex; gap: .75rem; align-items: center; background: var(--bg-2); border-radius: 12px; padding: 1rem 1.1rem; font-weight: 600; line-height: 1.3; }
.benefits .icon { width: 1.6rem; height: 1.6rem; color: var(--blau); }

/* Rechtstexte */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose address { margin-bottom: 1em; }
.prose .meta { color: var(--text-2); }
.todo { background: #FFF1BF; outline: 2px dashed #8A5A00; outline-offset: 1px; padding: 0 .3rem; border-radius: 3px; color: #4A3200; }

/* ---------- Farbplaner ---------- */
.planer-section { padding-top: clamp(2rem, 4vw, 3rem); }
.planer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.planer-stage-col { position: sticky; top: calc(var(--header-h) + 1rem); z-index: 5; }
.planer-stage { position: relative; height: min(calc(100vh - var(--header-h) - 2rem), 680px); min-height: 420px; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: linear-gradient(180deg, #3E7FB8 0%, #7FB0D8 38%, #CFE2EF 62%, #E9EFE6 100%); touch-action: pan-y; cursor: grab; box-shadow: var(--shadow); }
.planer-stage:active { cursor: grabbing; }
.planer-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.planer-tools { position: absolute; right: .75rem; bottom: .75rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; max-width: calc(100% - 1.5rem); }
.planer-tools button { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(15, 27, 37, .2); }
.planer-tools button:hover { background: #fff; }
.planer-tools .icon { width: 1.3rem; height: 1.3rem; }
.planer-tools .icon-play { display: none; }
.planer-tools [aria-pressed="true"] .icon-pause { display: none; }
.planer-tools [aria-pressed="true"] .icon-play { display: block; }
.planer-hint { position: absolute; left: .75rem; top: .75rem; margin: 0; background: rgba(255, 255, 255, .92); padding: .4rem .8rem; border-radius: 999px; font-size: .92rem; color: var(--text); }
.planer-fallback, .planer-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; margin: 0; }
.planer-fallback { background: rgba(255, 255, 255, .88); }
.planer-loading { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(15, 27, 37, .4); }
.planer-stage.is-ready .planer-loading { display: none; }

.planer-panel { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 0 1.4rem; display: grid; min-width: 0; }
.planer-block { border: 0; margin: 0; padding: 1.4rem 0; min-width: 0; display: grid; gap: .9rem; border-bottom: 1px solid var(--linie); }
.planer-block:last-child { border-bottom: 0; }
.planer-panel legend, .planer-panel h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; padding: 0; margin: 0 0 .1rem; display: flex; align-items: center; gap: .55rem; float: left; width: 100%; }
.planer-panel legend + * { clear: both; }
.planer-panel h3 { float: none; }
.step { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blau); color: #fff; font-size: .85rem; flex: none; }
.planer-panel .hint { font-size: .93rem; color: var(--text-2); margin: 0; }
.sub-label { font-weight: 600; margin: 0; font-size: .95rem; }

/* Haustypen */
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); gap: .45rem; }
.house { position: relative; display: grid; justify-items: center; gap: .3rem; padding: .6rem .4rem .55rem; border: 1.5px solid var(--linie); border-radius: 12px; cursor: pointer; text-align: center; font-weight: 600; font-size: .88rem; line-height: 1.2; color: var(--text); }
.house:hover { border-color: var(--text); }
.house input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.house:has(input:checked) { border-color: var(--blau); background: var(--blau-hell); color: var(--blau-dunkel); }
.house:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
.house-icon { width: 3.2rem; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Bauteile */
.part.is-disabled { cursor: not-allowed; opacity: .7; }
.part.is-disabled:hover { background: transparent; }
.part-list { display: grid; gap: .3rem; }
.part { position: relative; display: flex; align-items: center; gap: .75rem; padding: .45rem .65rem; border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; line-height: 1.25; }
.part:hover { background: var(--bg-2); }
.part input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.part:has(input:checked) { border-color: var(--blau); background: var(--blau-hell); }
.part:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
.part-chip { width: 2rem; height: 2rem; border-radius: 8px; flex: none; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
.part-text { font-weight: 600; display: grid; }
.part-text small { font-weight: 400; color: var(--text-2); font-size: .85rem; }

/* Farbrad */
.wheel-area { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }
.wheel-wrap { flex: 0 0 auto; width: min(220px, 100%); margin-inline: auto; }
.wheel-wrap canvas { width: 100%; height: auto; aspect-ratio: 1; touch-action: none; cursor: crosshair; border-radius: 50%; }
.wheel-controls { flex: 1 1 11rem; min-width: 0; display: grid; gap: .65rem; }
.range-field { display: grid; gap: .2rem; }
.range-head { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; font-size: .95rem; }
.range-head output { font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; --track: var(--bg-3); --thumb: #fff; }
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: var(--track); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.range::-moz-range-track { height: 12px; border-radius: 999px; background: var(--track); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -6px; border-radius: 50%; background: var(--thumb); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--text), 0 2px 6px rgba(0, 0, 0, .3); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--thumb); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--text), 0 2px 6px rgba(0, 0, 0, .3); }
.range:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 999px; }
.range-hue { --track: linear-gradient(90deg, #f00, #ff0 16.6%, #0f0 33.3%, #0ff 50%, #00f 66.6%, #f0f 83.3%, #f00); }
.range-time { --track: linear-gradient(90deg, #F2A65A, #FCE7B8 18%, #BFDDF5 40%, #BFDDF5 62%, #FCD9A8 82%, #E9875A); }
.hex-field input { font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; min-height: 44px; }
.ral-match { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; background: var(--bg-2); border-radius: 12px; padding: .7rem .85rem; }
.ral-match p { margin: 0; flex: 1 1 10rem; font-weight: 600; line-height: 1.35; }
.ral-match p small { display: block; font-weight: 400; color: var(--text-2); }
.ral-match-chip { width: 2.2rem; height: 2.2rem; border-radius: 8px; flex: none; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.ral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: .35rem; }
.ral-btn { display: grid; justify-items: center; gap: .25rem; padding: .4rem .2rem; border: 1.5px solid transparent; border-radius: 10px; background: transparent; font: inherit; font-size: .8rem; line-height: 1.15; color: var(--text); cursor: pointer; text-align: center; }
.ral-btn:hover { background: var(--bg-2); }
.ral-btn .chip { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.ral-btn[aria-pressed="true"] { border-color: var(--text); }
.ral-btn small { color: var(--text-2); }

/* Farbharmonien */
.harmony-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.harmony-list li { display: flex; align-items: center; gap: .7rem; padding: .45rem .55rem; border: 1px solid var(--linie); border-radius: 10px; }
.harmony-list .chip { width: 2rem; height: 2rem; border-radius: 8px; flex: none; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.harmony-list .txt { flex: 1; min-width: 0; line-height: 1.3; font-size: .93rem; }
.harmony-list .txt small { display: block; color: var(--text-2); }
.harmony-list button { min-height: 36px; padding: .35rem .75rem; border-radius: 999px; border: 1.5px solid var(--text); background: #fff; font: 600 .85rem var(--font-head); color: var(--text); cursor: pointer; }
.harmony-list button:hover { background: var(--text); color: #fff; }

/* Stilvorlagen */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.style-btn { display: grid; gap: .45rem; padding: .55rem; border: 1.5px solid var(--linie); border-radius: 12px; background: #fff; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.style-btn:hover { border-color: var(--text); }
.style-btn .stripes { display: flex; height: 1.6rem; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.style-btn .stripes i { flex: 1; background: var(--c); }
.style-btn .stripes i:first-child { flex: 2.4; }
.style-btn b { font-family: var(--font-head); font-size: .92rem; }

/* Segmente und Kontrollkästchen */
.seg-group { display: grid; gap: .4rem; }
.seg { display: flex; flex-wrap: wrap; gap: .3rem; background: var(--bg-2); border-radius: 12px; padding: .25rem; }
.seg label { flex: 1 1 auto; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg span { display: block; text-align: center; padding: .55rem .7rem; border-radius: 9px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.seg input:checked + span { background: #fff; box-shadow: 0 1px 4px rgba(15, 27, 37, .2); color: var(--blau-dunkel); }
.seg input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; min-height: 44px; }
.check input { width: 1.3rem; height: 1.3rem; accent-color: var(--blau); margin: 0; }

.planer-summary { background: var(--bg-2); border-radius: 12px; padding: .9rem 1rem; margin: 0; font-size: .95rem; }
.planer-finish .btn-row .btn { flex: 1 1 12rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--dunkel); color: var(--dunkel-text); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: .75rem 1rem; }
.footer-logo img { height: 44px; width: auto; }
.footer-claim { margin: 1rem 0 0; color: var(--dunkel-2); }
.site-footer h2 { font-size: .95rem; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .2rem; color: var(--dunkel-2); }
.footer-bottom { border-top: 1px solid #2A3A48; margin-top: 2.5rem; padding-top: 1.5rem; color: var(--dunkel-2); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Einblenden beim Scrollen (nur mit JS, nicht bei reduzierter Bewegung) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .cards, .contact-grid, .benefits, .facts { grid-template-columns: minmax(0, 1fr); }
  .split, .cta-band, .planer, .planer-teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teaser-stack { max-width: 40rem; }
  /* Farbplaner mobil: Haus bleibt oben sichtbar, während unten Farben gewählt werden */
  .planer-stage-col { top: var(--header-h); margin-inline: calc(-1 * var(--gutter)); }
  .planer-stage { height: 42vh; min-height: 250px; max-height: 420px; border-radius: 0; }
  html:has(.planer) { scroll-padding-top: calc(var(--header-h) + min(42vh, 420px) + 16px); }
  .tl-body { grid-template-columns: minmax(0, 1fr); }
  .tl-body figure { max-width: 22rem; }
}
@media (max-width: 640px) {
  .form-row, .form-row.plz-ort { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); padding-left: 2.25rem; row-gap: .5rem; }
  .tl-item::before { left: 0; top: .5rem; }
  .cards-4 { grid-template-columns: minmax(0, 1fr); }
  .house-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-planer { font-size: .95rem; }
  .planer-hint { display: none; }
  .planer-tools button { width: 40px; height: 40px; }
  .planer-panel { padding-inline: 1rem; }
}

/* Windows-Kontrastmodus */
@media (forced-colors: active) {
  .btn, .header-call, .nav-toggle, .planer-tools button { border: 2px solid ButtonText; }
  .swatch input:checked + .chip { outline: 3px solid Highlight; outline-offset: 3px; }
  .main-nav a[aria-current="page"]::after { background: Highlight; }
}

/* Druck */
@media print {
  .site-header, .skip-link, .nav-toggle, .planer-tools, .map-box, .hero-media, .page-head::before, .hero::before { display: none !important; }
  body { font-size: 11pt; }
  .site-footer { background: none; color: #000; }
  .site-footer a, a { color: #000; }
}
