/* ==========================================================================
   Farbwerk — Template für Maler- und Ausbaubetriebe
   Ein einziges Stylesheet. Keine CDN-Abhängigkeit, keine Webfont-Ladung,
   keine JS-Abhängigkeit für Layout oder Lesbarkeit.
   Reihenfolge: Tokens → Reset → Basis → Layout → Komponenten → Sektionen
                → Sichtbarkeits-Kontrakte → Utilities → Media Queries

   FARBEN UND SCHRIFTEN ANPASSEN: ausschließlich im :root-Block unten.
   Eigene Webfonts: woff2 nach /fonts/ legen und hier @font-face ergänzen,
   dann --font-sans überschreiben.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --c-ink:        #14181d;
  --c-ink-soft:   #3d4752;
  --c-muted:      #5c6773;
  --c-line:       #e2ded8;
  --c-line-strong:#cdc6bc;
  --c-bg:         #ffffff;
  --c-sand:       #f6f2ed;
  --c-sand-deep:  #ece5dc;
  --c-brand:      #14384f;
  --c-brand-deep: #0c2233;
  --c-brand-soft: #e7edf1;
  --c-accent:     #d9622b;   /* dekorativ + große Schrift */
  --c-accent-ink: #b84e1e;   /* Flächen mit weißer Schrift: 5,1:1 */
  --c-accent-soft:#fbeee6;
  --c-on-dark:    #f4f1ec;
  --c-on-dark-mut:#a9b6c1;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   clamp(1.25rem, 0.9rem + 0.9vw, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.05rem + 1.5vw, 2rem);
  --fs-2xl:  clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  --fs-3xl:  clamp(2.3rem, 1.25rem + 4.2vw, 4rem);

  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;
  --wrap: 78rem;
  --wrap-narrow: 46rem;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;  --radius-sm: 8px;  --radius-lg: 24px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(20,24,29,.06), 0 4px 12px rgba(20,24,29,.05);
  --shadow-md: 0 2px 6px rgba(20,24,29,.07), 0 18px 40px rgba(20,24,29,.09);
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-blocked: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-blocked: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-base);
  line-height: 1.65; color: var(--c-ink); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { margin: 0 0 var(--sp-4); line-height: 1.15; font-weight: 800;
  letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.012em; }
h4 { font-size: var(--fs-md); letter-spacing: -0.01em; }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
a { color: var(--c-accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-brand); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li + li { margin-top: var(--sp-2); }
blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-7) 0; }
:focus-visible { outline: 3px solid var(--c-accent-ink); outline-offset: 3px; border-radius: 4px; }

/* --- 3. Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--c-sand); }
.section--dark { background: var(--c-brand-deep); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--c-on-dark-mut); }
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid > * { min-width: 0; }
.stack > * + * { margin-top: var(--sp-4); }
.skip-link { position: absolute; left: var(--sp-4); top: -4rem; z-index: 100;
  background: var(--c-brand-deep); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 0; color: #fff; }

/* --- 4. Kopfzeile und Navigation ---------------------------------------- */
.topbar { background: var(--c-brand-deep); color: var(--c-on-dark-mut);
  font-size: var(--fs-xs); letter-spacing: .01em; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  align-items: center; justify-content: space-between; min-height: 42px; }
.topbar a { color: var(--c-on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__list { display: flex; flex-wrap: wrap; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.topbar__list li { margin: 0; }
.lang { display: flex; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.lang li { margin: 0; }
.lang [aria-current="true"] { color: #fff; font-weight: 700; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none;
  color: var(--c-brand-deep); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--c-brand-deep); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__sub { display: block; font-size: .625rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-muted); }

.nav-toggle { display: none; align-items: center; gap: var(--sp-2);
  background: var(--c-brand-deep); color: #fff; border: 0; padding: .6rem .95rem;
  border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav__list { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link, .nav__button { display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--c-ink);
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none; background: none;
  border: 0; cursor: pointer; }
.nav__link:hover, .nav__button:hover { background: var(--c-sand); color: var(--c-brand-deep); }
.nav__link[aria-current="page"] { color: var(--c-accent-ink); }
.nav__caret { width: .55em; height: .55em; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); }
.nav__item { position: relative; }
.nav__submenu { list-style: none; margin: 0; padding: var(--sp-2); position: absolute;
  top: calc(100% + 6px); left: 0; z-index: 60; min-width: 15rem; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.nav__submenu a { display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); text-decoration: none; }
.nav__submenu a:hover { background: var(--c-sand); color: var(--c-brand-deep); }
.nav__cta { margin-left: var(--sp-3); }

/* --- 5. Komponenten ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .18s ease, color .18s ease,
  border-color .18s ease, transform .18s ease; }
.btn:active { transform: translateY(1px); }
/* Kontrast geprüft: Weiß auf #b84e1e = 5,1:1 · Weiß auf #0c2233 = 15,8:1 */
.btn--primary { background: var(--c-accent-ink); color: #fff; }
.btn--primary:hover { background: #9b3f15; color: #fff; }
.btn--dark { background: var(--c-brand-deep); color: #fff; }
.btn--dark:hover { background: #061722; color: #fff; }
.btn--ghost { border-color: var(--c-line-strong); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-brand-deep); background: var(--c-brand-deep); color: #fff; }
.btn--light { background: #fff; color: var(--c-brand-deep); }
.btn--light:hover { background: var(--c-sand); color: var(--c-brand-deep); }
.btn--lg { padding: 1rem 1.8rem; font-size: var(--fs-base); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--fs-xs);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent-ink); margin-bottom: var(--sp-3); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--c-accent); }

.section-head { max-width: 44rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: var(--fs-md); color: var(--c-ink-soft); }
.section--dark .lead { color: var(--c-on-dark-mut); }

/* Karten in einer Reihe enden gleich hoch: height 100% + margin-top auto */
.card { display: flex; flex-direction: column; height: 100%; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-6);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--c-line-strong); transform: translateY(-3px); }
.card > :last-child { margin-top: auto; }
.card__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-ink); margin-bottom: var(--sp-4); }
.card__icon svg { width: 26px; height: 26px; }
.card__link { margin-top: var(--sp-4); font-weight: 700; font-size: var(--fs-sm);
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card__link::after { content: "\2192"; transition: transform .18s ease; }
.card__link:hover::after { transform: translateX(3px); }
.card--flat { box-shadow: none; background: var(--c-sand); border-color: transparent; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

.media-card { display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.media-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--c-sand-deep); }
.media-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-card:hover .media-card__media img { transform: scale(1.04); }
.media-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.media-card__body > :last-child { margin-top: auto; padding-top: var(--sp-4); }
.media-card__meta { font-size: var(--fs-xs); color: var(--c-muted); letter-spacing: .06em;
  text-transform: uppercase; font-weight: 700; margin-bottom: var(--sp-2); }
.media-card--portrait .media-card__media { aspect-ratio: 4/5; }
.media-card--wide .media-card__media { aspect-ratio: 3/2; }

.figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-sand-deep); }
.figure img { width: 100%; }
.figure figcaption { font-size: var(--fs-xs); color: var(--c-muted); padding: var(--sp-3) 0 0; }
.badge { display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  background: var(--c-brand-soft); color: var(--c-brand-deep); font-size: var(--fs-xs); font-weight: 700; }

.stat { border-top: 3px solid var(--c-accent); padding-top: var(--sp-4); }
.stat__num { display: block; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.stat__label { font-size: var(--fs-sm); color: var(--c-muted); }
.section--dark .stat__label { color: var(--c-on-dark-mut); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-top: var(--sp-3); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem;
  height: .55rem; border-left: 2.5px solid var(--c-accent-ink);
  border-bottom: 2.5px solid var(--c-accent-ink); transform: rotate(-45deg); }
.section--dark .checklist li::before { border-color: var(--c-accent); }

.step { position: relative; padding-top: var(--sp-5); border-top: 1px solid var(--c-line); height: 100%; }
.step__num { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-accent-ink); display: block; margin-bottom: var(--sp-3); }

.quote { display: flex; flex-direction: column; height: 100%; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-6); }
.quote__text { font-size: var(--fs-md); margin-bottom: var(--sp-5); }
.quote__person { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.quote__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__name { font-weight: 700; font-size: var(--fs-sm); }
.quote__role { font-size: var(--fs-xs); color: var(--c-muted); }

.price { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: var(--sp-6); background: #fff; }
.price--featured { border-color: var(--c-brand-deep); border-width: 2px; box-shadow: var(--shadow-md); }
.price__amount { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; }
.price__unit { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 600; }
.price .btn { margin-top: auto; }

.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__trigger { display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); width: 100%; padding: var(--sp-5) 0; background: none; border: 0;
  cursor: pointer; text-align: left; font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; }
.accordion__trigger:hover { color: var(--c-accent-ink); }
.accordion__sign { position: relative; width: 20px; height: 20px; flex: none; }
.accordion__sign::before, .accordion__sign::after { content: ""; position: absolute;
  left: 50%; top: 50%; background: currentColor; transform: translate(-50%,-50%); }
.accordion__sign::before { width: 14px; height: 2px; }
.accordion__sign::after { width: 2px; height: 14px; transition: transform .2s ease; }
.accordion__panel { padding: 0 0 var(--sp-5); max-width: 52rem; color: var(--c-ink-soft); }

.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, minmax(0,1fr)); }
.field { display: grid; gap: var(--sp-2); }
.field > label { font-size: var(--fs-sm); font-weight: 700; }
.field .hint { font-size: var(--fs-xs); color: var(--c-muted); }
.req { color: var(--c-accent-ink); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm); background: #fff; font-size: var(--fs-base); }
input:focus, select:focus, textarea:focus { border-color: var(--c-brand); outline-offset: 1px; }
textarea { min-height: 9rem; resize: vertical; }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); }
.check input { margin-top: .35rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--c-accent-ink); }

.embed { position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--c-sand-deep); aspect-ratio: 16/9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--map { aspect-ratio: 3/2; }

/* --- 6. Sektionen -------------------------------------------------------- */
.hero { position: relative; background: var(--c-sand); overflow: hidden; }
.hero__inner { display: grid; gap: var(--sp-7); align-items: center;
  grid-template-columns: 1.05fr .95fr; padding-block: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { margin-bottom: var(--sp-5); }
.hero__lead { font-size: var(--fs-md); color: var(--c-ink-soft); max-width: 34rem; }
.hero__figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero__figure img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.hero__badge { position: absolute; left: var(--sp-5); bottom: var(--sp-5); background: #fff;
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-md); max-width: 15rem; }
.hero__badge strong { display: block; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.hero__badge span { font-size: var(--fs-xs); color: var(--c-muted); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-6);
  padding-top: var(--sp-5); border-top: 1px solid var(--c-line-strong); }

.page-head { background: var(--c-brand-deep); color: var(--c-on-dark);
  padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-head h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-head p { color: var(--c-on-dark-mut); max-width: 42rem; margin: 0; }
.breadcrumb { font-size: var(--fs-xs); margin-bottom: var(--sp-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; color: var(--c-on-dark-mut); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumb a { color: var(--c-on-dark); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
.media-pair { display: grid; gap: var(--sp-4); grid-template-columns: 1.15fr .85fr; align-items: end; }
.media-pair img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.media-pair img:first-child { aspect-ratio: 3/4; }
.media-pair img:last-child { aspect-ratio: 1/1; }

.cta-band { background: var(--c-brand-deep); color: var(--c-on-dark); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: var(--sp-6);
  grid-template-columns: 1.4fr auto; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: var(--c-on-dark-mut); margin: 0; }

.article { max-width: var(--wrap-narrow); }
.article h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.article h3 { margin-top: var(--sp-6); }
.article > :first-child { margin-top: 0; }
.article ul li::marker { color: var(--c-accent-ink); }
.legal-note { background: var(--c-accent-soft); border-left: 4px solid var(--c-accent-ink);
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-sm); }
.toc { background: var(--c-sand); border-radius: var(--radius); padding: var(--sp-5); }
.toc ul { margin: 0; }

.error-page { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-page__code { font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: .9;
  letter-spacing: -0.05em; color: var(--c-brand-soft); margin: 0; }
.error-page h1 { margin-top: calc(var(--sp-5) * -1); }

.confirm { text-align: center; max-width: 38rem; margin-inline: auto; padding-block: clamp(3.5rem, 8vw, 6rem); }
.confirm__mark { width: 84px; height: 84px; margin: 0 auto var(--sp-6); border-radius: 50%;
  background: var(--c-accent-soft); color: var(--c-accent-ink); display: grid; place-items: center; }
.confirm__mark svg { width: 40px; height: 40px; }

/* --- 7. Fußzeile --------------------------------------------------------- */
.site-footer { background: var(--c-brand-deep); color: var(--c-on-dark-mut);
  padding-block: var(--sp-8) var(--sp-6); font-size: var(--fs-sm); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--fs-sm); letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--sp-2); }
.footer-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.footer-brand { color: #fff; }
.footer-brand .brand__sub { color: var(--c-on-dark-mut); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5);
  justify-content: space-between; align-items: center; margin-top: var(--sp-8);
  padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer-bottom li + li { margin-top: 0; }
.credits { font-size: var(--fs-xs); color: var(--c-muted); }

/* --- 8. Sichtbarkeits-Kontrakte -----------------------------------------
   Vertrag mit der Plattform: sie schaltet ausschließlich aria-expanded am
   Auslöser um. Das Stylesheet leitet daraus jede Sichtbarkeit ab.
   Grundzustand ist immer "geschlossen".
   ------------------------------------------------------------------------ */
.nav__submenu { display: none; }
.nav__item:has(> [data-ps-behavior="dropdown"][aria-expanded="true"]) > .nav__submenu { display: block; }
@media (hover: hover) and (pointer: fine) {
  .nav__item:hover > .nav__submenu, .nav__item:focus-within > .nav__submenu { display: block; }
}
.nav__item:has(> [aria-expanded="true"]) > .nav__button .nav__caret {
  transform: rotate(-135deg) translate(-3px,-3px); }

.accordion__panel { display: none; }
.accordion__item:has(> .accordion__trigger[aria-expanded="true"]) > .accordion__panel { display: block; }
.accordion__item:has(> .accordion__trigger[aria-expanded="true"]) .accordion__sign::after {
  transform: translate(-50%,-50%) rotate(90deg); }

@media (max-width: 60rem) {
  .site-nav { position: fixed; inset: var(--header-h) 0 0 auto; width: min(24rem, 88vw);
    min-height: calc(100dvh - var(--header-h)); background: #fff; border-left: 1px solid var(--c-line);
    box-shadow: var(--shadow-md); padding: var(--sp-5) var(--gutter) var(--sp-8);
    overflow-y: auto; overscroll-blocked: contain; display: none; z-index: 45; }
  .site-header:has([data-ps-behavior="menu-toggle"][aria-expanded="true"]) .site-nav { display: block; }
}

/* --- 9. Utilities -------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-row { justify-content: center; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

/* --- 10. Media Queries --------------------------------------------------- */
@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav__link, .nav__button { width: 100%; justify-content: space-between; padding: .75rem .5rem;
    font-size: var(--fs-base); border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__submenu { position: static; min-width: 0; border: 0; box-shadow: none;
    padding: var(--sp-2) 0 var(--sp-3) var(--sp-4); background: var(--c-sand); border-radius: var(--radius-sm); }
  .nav__cta { margin: var(--sp-5) 0 0; }
  .nav__cta .btn { width: 100%; }
  @media (hover: hover) and (pointer: fine) {
    .nav__item:hover > .nav__submenu, .nav__item:focus-within > .nav__submenu { display: none; }
    .nav__item:has(> [aria-expanded="true"]) > .nav__submenu { display: block; }
  }
  .hero__inner { grid-template-columns: 1fr; }
  .split, .cta-band { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 46rem) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .topbar__inner, .topbar__list { justify-content: center; }
}
@media (max-width: 32rem) {
  .grid--4, .footer-grid, .media-pair { grid-template-columns: 1fr; }
  .media-pair img:first-child { aspect-ratio: 4/3; }
  .btn-row .btn { width: 100%; }
}
@media print {
  .site-header, .topbar, .nav-toggle, .site-footer, .cta-band { display: none !important; }
  body { font-size: 11pt; }
}
