/* =========================================================
   BBM Website 2.0 – Layout (Redesign nach den Entwürfen von Sara Grau, 2026)
   Für ein Redesign nur diese Datei, /app/templates und /app/lib/components.php anpassen.
   Farben ausschliesslich aus dem BBM-Farbkonzept (Color Codes.pdf) und seinen Abstufungen.
   ========================================================= */

:root {
  /* Farb-Konzept BBM */
  --c-red: #cd1719;      /* Bold Spark */
  --c-olive: #45433b;    /* Olivebrown = «Anthrazit» der Entwürfe */
  --c-warm: #cdcfc7;     /* Warm Grey */
  --c-off: #f5f6f4;      /* Offwhite */
  /* Abstufungen. Neutral: 100 = Offwhite, 300 = Warm Grey, 800 = Olivebrown; 150 = Hellgrau der Entwürfe */
  --n-50: #f9faf8; --n-100: #f5f6f4; --n-150: #ecece8; --n-200: #e5e7e3; --n-300: #cdcfc7; --n-400: #a4a59d; --n-500: #818178;
  --n-600: #65645b; --n-700: #525048; --n-800: #45433b; --n-900: #28261f; --n-950: #18160f;
  /* Rot: 500 = Bold Spark. Rot nur auf hellen Flächen; 600 für Hover/Fokus und rote Schrift auf Grau */
  --r-50: #fef2f0; --r-100: #ffe0db; --r-200: #febfb6; --r-300: #ff8b7d; --r-400: #ef584d; --r-500: #cd1719;
  --r-600: #b2020c; --r-700: #950007; --r-800: #730105; --r-900: #540002;
  --overlay: rgba(24, 22, 15, .6);
  /* Design-Farben (Einstellungen → Design, layout.php überschreibt sie) */
  --d-header-bg: #fff;
  --d-header-text: var(--n-800);
  --d-header-hover: var(--r-500);
  --d-footer-bg: var(--n-800);
  --d-footer-text: #fff;
  --d-background: #fff;
  --d-text: var(--n-800);
  --d-title: var(--r-500);
  --d-button-bg: var(--r-500);
  --d-button-text: #fff;
  --d-button-hover-bg: var(--r-600);
  --d-button-hover-text: #fff;
  --c-text: var(--d-text);
  --c-page: var(--d-background);
  --f-body: 'Montserrat', Arial, sans-serif;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-s: 10px;
  --header-h: 76px;
  --shadow: 0 10px 30px rgba(40, 38, 31, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--c-text); background: var(--c-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--n-900); color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
:is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--r-600); outline-offset: 2px; }
.preview-bar { background: #ffcc00; color: #000; text-align: center; padding: 6px; font-size: 14px; position: relative; z-index: 60; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; line-height: 1.25; color: inherit; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; }
h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
.c-title { color: var(--d-title); }
.b-text a, .c-lead a, .c-card__text a, .c-band__text a { color: var(--r-600); text-underline-offset: 2px; }
.section--tone-dark .b-text a, .section--tone-red .b-text a { color: #fff; }
.b-text ul, .c-list, .c-lead ul, .c-card__text ul, .c-band__text ul { list-style: none; margin: 0 0 1em; padding: 0; }
.b-text li, .c-list li, .c-lead li, .c-card__text li, .c-band__text li { position: relative; padding-left: 20px; margin: 0 0 .45em; }
/* BBM-Aufzählung: roter Winkel */
.b-text li::before, .c-list li::before, .c-lead li::before, .c-card__text li::before, .c-band__text li::before {
  content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px;
  border-right: 2px solid var(--r-500); border-bottom: 2px solid var(--r-500); transform: rotate(-45deg);
}
.section--tone-red :is(.b-text, .c-list, .c-band__text) li::before, .c-band--red li::before { border-color: #fff; }
.b-text ol { margin: 0 0 1em; padding-left: 22px; }
.text-align-left { text-align: left; } .text-align-center { text-align: center; }
.text-align-right { text-align: right; } .text-align-justify { text-align: justify; }

/* Überzeile, Titelbalken */
.c-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--r-600); margin: 0 0 14px; }
.section--tone-dark .c-eyebrow, .section--tone-red .c-eyebrow, .c-hero .c-eyebrow, .c-band--red .c-eyebrow, .c-band--dark .c-eyebrow { color: #fff; }
.c-bars { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 22px; font-weight: 500; }
.c-bars span { display: inline-block; background: var(--r-500); color: #fff; padding: .12em .45em .16em; line-height: 1.2; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.c-bars--light span, .c-hero--red .c-bars span { background: #fff; color: var(--r-500); }
.c-heading--center .c-bars { align-items: center; }
.c-plain { font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--d-header-bg); box-shadow: 0 1px 0 var(--n-150); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding: 10px var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.site-logo { display: block; flex: none; }
.site-logo img { height: 46px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 10px; color: var(--d-header-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav > ul > li.is-active > a, .site-nav > ul > li > a:hover { color: var(--d-header-hover); }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.sub-toggle { display: none; }
.site-nav .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 230px;
  background: #fff; border-radius: var(--radius-s); box-shadow: 0 14px 34px rgba(40, 38, 31, .16);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav li:hover > .sub, .site-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--d-header-text); text-decoration: none; font-size: 14px; }
.site-nav .sub a:hover, .site-nav .sub li.is-active a { color: var(--r-600); background: var(--n-150); }
.header-cta { flex: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--d-header-text); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Buttons ---------- */
.c-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 14px/1.2 var(--f-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.c-btn--primary, .btn { background: var(--d-button-bg); color: var(--d-button-text); }
.c-btn--primary:hover, .btn:hover { background: var(--d-button-hover-bg); color: var(--d-button-hover-text); }
.c-btn--primary::before, .c-btn--light::before { content: '→'; font-weight: 400; }
.c-btn--light { background: #fff; color: var(--r-500); }
.c-btn--light:hover { background: var(--n-150); color: var(--r-600); }
.c-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.c-btn--ghost:hover { background: #fff; color: var(--n-800); }
.c-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.c-more { display: inline-block; margin-top: 12px; color: var(--r-600); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.c-more::before { content: '→ '; }
.section--tone-dark .c-more, .section--tone-red .c-more { color: #fff; }
.b-button { display: flex; }
.b-button .btn { width: auto; }
.b-button .btn::before { content: '→'; font-weight: 400; }

/* ---------- Raster & Sektionen ---------- */
.section { position: relative; background-color: var(--c-page); background-position: 50% 50%; background-size: cover; padding: clamp(56px, 7vw, 90px) var(--gutter); }
.section--tone-white { background-color: #fff; }
.section--tone-grey { background-color: var(--n-150); }
.section--tone-dark { background-color: var(--n-800); color: #fff; }
.section--tone-red { background-color: var(--r-500); color: #fff; }
.section--flush { padding: 0 !important; }
.section--flush > .cols { max-width: none; }
.section--flush > .cols > .col { padding: 0; }
.section--parallax { background-attachment: fixed; }
.cols { display: flex; flex-wrap: nowrap; gap: 0; max-width: calc(var(--container) + 30px); margin: 0 auto; align-items: flex-start; }
.section--full > .cols { max-width: none; }
.row--nested { background-position: 50% 50%; background-size: cover; }
.row--nested > .cols { max-width: none; margin: 0 -15px; }
.col { flex: 0 1 auto; padding: 0 15px; min-width: 0; background-position: 50% 50%; background-size: cover; }
.cols:has(> .col > .b-image:only-child) { align-items: center; }
.col-1 { width: 8.3333%; } .col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; } .col-6 { width: 50%; } .col-7 { width: 58.3333%; } .col-8 { width: 66.6667%; }
.col-9 { width: 75%; } .col-10 { width: 83.3333%; } .col-11 { width: 91.6667%; } .col-12 { width: 100%; }
.col > * + * { margin-top: 28px; }
.col > .b-spacer + *, .col > * + .b-spacer { margin-top: 0; }

/* ---------- Klassische Blöcke ---------- */
.b-image img { width: 100%; border-radius: var(--radius); }
.b-image { margin: 0; }
.b-spacer { height: 15px; }
.b-hours { margin: 0; }
.b-hours > div { display: flex; gap: 20px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--n-200); }
.b-hours dt { font-weight: 600; } .b-hours dd { margin: 0; }
.b-social, .c-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--n-150); color: var(--n-800); }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.social-icon:hover { background: var(--r-500); color: #fff; }

/* Slider (aus Version 1) */
.b-slider { position: relative; overflow: hidden; background: var(--c-warm); height: 585px; border-radius: var(--radius); }
.b-slider__track, .b-slider__slide { position: absolute; inset: 0; margin: 0; }
.b-slider__slide { opacity: 0; transition: opacity .6s ease; }
.b-slider__slide.is-active { opacity: 1; z-index: 1; }
.b-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.b-slider__slide figcaption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--overlay); color: #fff; padding: 14px 22px; text-align: center; max-width: 80%; }
.b-slider__slide figcaption strong { display: block; font-size: 22px; font-weight: 500; }
.b-slider__prev, .b-slider__next { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.85); opacity: 0; transition: opacity .2s; }
.b-slider:hover .b-slider__prev, .b-slider:hover .b-slider__next, .b-slider__prev:focus-visible, .b-slider__next:focus-visible { opacity: 1; }
.b-slider__prev { left: 12px; } .b-slider__next { right: 12px; }
.b-slider__prev::before, .b-slider__next::before { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-left: 2px solid var(--n-800); border-bottom: 2px solid var(--n-800); }
.b-slider__prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.b-slider__next::before { transform: translate(-70%, -50%) rotate(-135deg); }

/* Karte (Google Maps erst nach Klick) */
.b-map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--n-150); min-height: 240px; }
.b-map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.b-map__consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 28px 22px; min-height: 240px; font-size: 13px; color: var(--n-700); }
.b-map__consent p { max-width: 340px; margin: 0; }
.b-map__icon { color: var(--r-500); width: 34px; height: 34px; }
.b-map__link { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: #fff; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--r-600); text-decoration: none; box-shadow: var(--shadow); }
.b-map__link::before { content: '→ '; }
.b-map.is-loaded .b-map__consent { display: none; }

/* Tabellen im Fliesstext */
.b-text table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 1em; }
.b-text th, .b-text td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--n-200); vertical-align: top; }
.b-text th { background: var(--n-800); color: #fff; font-weight: 600; }
.b-text tbody tr:nth-child(even) td { background: var(--n-100); }

/* Kontaktformular */
.b-form { background: #fff; color: var(--n-800); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.b-form__intro { font-size: 14px; color: var(--n-600); margin-bottom: 18px; }
.b-form__grid { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.b-form__field { width: 100%; padding: 0 8px 16px; }
.b-form__field--half { width: 50%; }
.b-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.b-form input, .b-form textarea, .b-form select { width: 100%; padding: 11px 14px; border: 1px solid var(--n-500); background: #fff; font: inherit; font-size: 15px; color: inherit; border-radius: var(--radius-s); }
.b-form textarea { min-height: 140px; resize: vertical; }
.b-form :is(input, textarea, select):focus { outline: 2px solid var(--r-600); outline-offset: 0; border-color: var(--r-600); }
.b-form__field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--n-700); }
.b-form__field--check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--r-500); }
.b-form__field--check a { color: var(--r-600); }
.b-form__submit { margin-top: 4px; }
.b-form button { display: inline-flex; gap: 8px; align-items: center; background: var(--d-button-bg); color: var(--d-button-text); border: 0; min-height: 44px; padding: 10px 24px; cursor: pointer; font: 600 14px var(--f-body); border-radius: 999px; }
.b-form button::before { content: '→'; font-weight: 400; }
.b-form button:hover { background: var(--d-button-hover-bg); }
.b-form button:disabled { opacity: .6; cursor: wait; }
.b-form__msg { margin-top: 14px; padding: 10px 14px; background: var(--n-150); border-left: 3px solid var(--n-600); border-radius: 6px; }
.b-form__msg.is-error { background: var(--r-50); color: var(--r-700); border-left-color: var(--r-600); }
.b-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Bausteine 2.0
   ========================================================= */
.c-icon { display: inline-flex; width: 24px; height: 24px; flex: none; }
.c-icon svg { width: 100%; height: 100%; }
.c-icon--circle { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: #fff; color: var(--r-500); box-shadow: 0 0 0 1px var(--n-150); }
.c-chevrons { width: 160px; height: auto; color: #fff; opacity: .9; }
.c-grid { display: grid; gap: 20px; }
.c-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Hero */
.c-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(420px, 44vw, 560px); color: #fff; overflow: hidden; }
.c-hero--dark { background: var(--n-800); }
.c-hero--red { background: radial-gradient(120% 140% at 75% 30%, var(--r-400) 0%, var(--r-500) 45%, var(--r-600) 100%); }
.c-hero__text { display: flex; align-items: center; justify-content: flex-end; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.c-hero__inner { width: 100%; max-width: calc(var(--container) / 2); }
.c-hero__lead { max-width: 440px; font-size: 16px; }
.c-hero__media { position: relative; min-height: 100%; }
.c-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero--cutout .c-hero__media { display: flex; align-items: center; justify-content: flex-start; padding: 24px var(--gutter) 24px 0; }
.c-hero--cutout .c-hero__media img { position: static; width: auto; max-width: 100%; max-height: 460px; height: auto; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(24, 22, 15, .35)); }
.c-hero--noimg { grid-template-columns: 1fr; }
.c-hero--noimg .c-hero__text { justify-content: center; }
.c-hero--noimg .c-hero__inner { max-width: var(--container); }
.c-hero__chevrons { position: absolute; right: var(--gutter); bottom: 26px; width: clamp(90px, 12vw, 150px); }
.c-hero .c-bars { font-size: clamp(28px, 3.6vw, 40px); }

/* Titel mit Einleitung */
.c-heading { max-width: 760px; }
.c-heading .c-bars { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px; }
.c-heading--center { margin: 0 auto; text-align: center; }
.c-lead { font-size: 16px; }
.c-lead > :last-child { margin-bottom: 0; }
.col-12 > .b-heading + * { margin-top: 36px; }

/* Kennzahlen-Band */
.c-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 32px; max-width: var(--container); margin: 0 auto; padding: 30px var(--gutter); }
.c-stats--dark { color: #fff; }
.c-stats--red { color: #fff; }
.section--flush .c-stats--dark { background: var(--n-800); max-width: none; padding-left: max(var(--gutter), calc((100% - var(--container)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.section--flush .c-stats--red { background: var(--r-500); max-width: none; padding-left: max(var(--gutter), calc((100% - var(--container)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.c-stat { display: flex; flex-direction: column; }
.c-stat strong { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; }
.c-stat > span:not(.c-icon) { font-size: 13px; opacity: .92; }
.c-stat:has(> .c-icon) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-content: start; }
.c-stat:has(> .c-icon) > :not(.c-icon) { grid-column: 2; }
.c-stat__icon { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; }
.c-stats:has(.c-icon) .c-stat strong { font-size: 15px; }
.c-stat__stars { letter-spacing: .06em; }
.c-stats--light { padding: 0; }
.c-stats--light .c-stat { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.c-stats--light .c-stat__icon { color: var(--r-500); }

/* Karten */
.c-card { display: flex; flex-direction: column; background: #fff; color: var(--n-800); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.c-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--n-150); }
.c-card__media img { width: 100%; height: 100%; object-fit: cover; }
.c-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; font-size: 15px; }
.c-card__body > .c-more { margin-top: auto; padding-top: 14px; }
.c-card__title { font-size: 16px; margin-bottom: 8px; }
.c-card__sub { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.c-card__text { font-size: 14px; color: var(--n-700); }
.c-card .c-list { font-size: 14px; margin-top: 6px; }
.c-tag { display: inline-block; align-self: flex-start; background: var(--r-500); color: #fff; font-size: 17px; font-weight: 500; padding: 3px 10px; margin: -38px 0 14px; position: relative; }
.c-cards--text .c-card, .c-cards--icon .c-card, .c-cards--phase .c-card { box-shadow: none; border: 1px solid var(--n-150); }
.c-cards--text .c-card { border-color: var(--r-300); }
.c-cards--icon .c-card.is-highlight { background: var(--r-500); color: #fff; border-color: var(--r-500); }
.c-cards--icon .c-card.is-highlight :is(.c-card__text, .c-more) { color: #fff; }
.c-cards--icon .c-icon--circle { margin-bottom: 14px; width: 44px; height: 44px; padding: 11px; box-shadow: none; background: var(--r-50); }
.c-cards--icon .is-highlight .c-icon--circle { background: rgba(255, 255, 255, .16); color: #fff; }
.c-num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--r-500); color: #fff; font-weight: 600; font-size: 13px; }
.c-cards--phase .c-card__body { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-content: start; }
.c-cards--phase .c-card__body > :not(.c-num) { grid-column: 2; }
.c-cards--phase .c-card__body > .c-num { grid-row: 1; }
.c-cards--phase .c-card__title { align-self: center; margin: 0 0 10px; }
.c-cards--phase .c-list { grid-column: 1 / -1 !important; }
.c-cards--numbered .c-card__media .c-num { position: absolute; left: 14px; top: 14px; }
.c-cards--numbered .c-card__body > .c-num { margin-bottom: 10px; align-self: flex-start; }
.section--tone-dark .c-cards--text .c-card { background: var(--n-700); color: #fff; border-color: transparent; }
.section--tone-dark .c-cards--text .c-card__text { color: rgba(255,255,255,.85); }
.section--tone-grey .c-cards--phase .c-card, .section--tone-grey .c-cards--icon .c-card:not(.is-highlight) { border-color: transparent; }

/* Schritte / Gründe */
.c-steps { list-style: none; margin: 0; padding: 0; }
.c-steps--list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(127, 127, 120, .28); }
.c-steps--list li:last-child { border-bottom: 0; }
.c-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--r-500); color: #fff; font-weight: 600; font-size: 13px; }
.c-steps strong { display: block; margin-bottom: 2px; }
.c-steps p { font-size: 14px; opacity: .9; }
.c-steps--timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; position: relative; }
.c-steps--timeline::before { content: ''; position: absolute; left: 8px; right: 0; top: 8px; height: 2px; background: var(--n-300); }
.c-steps--timeline li { position: relative; padding-top: 32px; }
.c-steps--timeline .c-steps__n { position: absolute; top: 0; left: 0; width: 18px; height: 18px; }
.c-steps--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c-steps--grid li { background: var(--n-150); border-radius: var(--radius-s); padding: 18px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.section--tone-dark .c-steps--grid li { background: var(--n-700); }

/* Kundenstimmen */
.c-quote { margin: 0; display: flex; flex-direction: column; }
.c-quote blockquote { margin: 0 0 14px; }
.c-quote figcaption { margin-top: auto; font-size: 13px; }
.c-quote figcaption strong { display: block; }
.c-quote figcaption span { color: var(--n-600); }
.c-stars { color: var(--r-500); letter-spacing: .1em; margin-bottom: 8px; font-size: 14px; }
.c-quotes--cards .c-quote { background: var(--n-150); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; }
.section--tone-grey .c-quotes--cards .c-quote { background: #fff; }
.c-quotes--large { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.c-quotes--large .c-quote { background: #fff; border-radius: var(--radius); padding: 26px; font-style: italic; box-shadow: var(--shadow); }
.c-quotes--large figcaption { font-style: normal; }
.c-quote__project { font-style: normal; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.c-quotes--single .c-quote { max-width: 760px; }
.c-quotes--single blockquote { font-size: 18px; }

/* Projekte */
.c-chip { display: inline-block; background: var(--r-500); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-right: 8px; }
.c-place { color: var(--r-600); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.c-project__media { position: relative; background: var(--n-800); color: #fff; min-height: 220px; }
.c-project__media img { width: 100%; height: 100%; object-fit: cover; }
.c-project__media .c-chip { position: absolute; left: 14px; top: 14px; }
.c-project__media--empty { display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.c-project__media--empty .c-chevrons { position: absolute; right: 20px; top: 20px; width: 110px; opacity: .3; }
.c-project__media--empty p { margin: 0; }
.c-project__media--empty small { display: block; font-size: 11px; letter-spacing: .16em; }
.c-project__media--empty strong { display: block; font-size: 22px; font-weight: 500; }
.c-project__media--empty span { font-size: 12px; opacity: .7; }
.c-projects { display: grid; gap: 22px; }
.c-project { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.c-project__body { padding: clamp(20px, 3vw, 30px); font-size: 14px; }
.c-project__meta { font-size: 12px; color: var(--n-600); margin-bottom: 8px; }
.c-project h3 { font-size: 20px; margin-bottom: 4px; }
.c-phases { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0; padding: 0; }
.c-phases__step { border-top: 4px solid var(--n-200); padding-top: 4px; font-size: 11px; color: var(--n-600); }
.c-phases__step.is-done, .c-phases__step.is-current { border-color: var(--r-500); }
.c-phases__step.is-current { color: var(--r-600); font-weight: 600; }
.c-facts { margin: 0 0 14px; font-size: 13px; }
.c-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--n-150); }
.c-facts dt { color: var(--n-600); }
.c-facts dd { margin: 0; }
.c-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; }
.c-tags li { background: var(--n-150); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.c-project__team { display: flex; flex-wrap: wrap; gap: 18px; }
.c-person { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.c-person small { display: block; color: var(--n-600); font-size: 12px; }
.c-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--n-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-teaser { background: transparent; }
.c-teaser .c-project__media { aspect-ratio: 4 / 3; min-height: 0; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.c-teaser h3 { font-size: 16px; margin-bottom: 2px; }
.c-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.c-filter__btn { border: 1px solid var(--n-500); background: #fff; color: var(--n-800); border-radius: 999px; padding: 8px 16px; font: 600 13px var(--f-body); cursor: pointer; min-height: 40px; }
.c-filter__btn.is-active, .c-filter__btn:hover { background: var(--r-500); border-color: var(--r-500); color: #fff; }
.c-refs__group + .c-refs__group { margin-top: 56px; }
.c-refs__group[hidden] { display: none; }
.c-refs__title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.c-refs__title span { background: var(--r-500); color: #fff; padding: 2px 12px; font-size: clamp(20px, 2.2vw, 26px); }
.c-refs__title small { font-size: 13px; color: var(--n-600); font-weight: 500; }
.c-ref { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.c-ref .c-project__media { aspect-ratio: 16 / 10; min-height: 0; }
.c-ref__body { padding: 18px 20px 20px; font-size: 13px; }
.c-ref h3 { font-size: 16px; margin-bottom: 2px; }
.c-ref__summary { font-size: 13px; }
.c-ref .c-facts > div { grid-template-columns: 96px 1fr; }

/* Personen */
.c-face { display: block; aspect-ratio: 1; overflow: hidden; background: var(--n-800); color: #fff; }
.c-face img { width: 100%; height: 100%; object-fit: cover; }
.c-face--initials { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 500; }
.c-people--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.c-member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.c-member__body { padding: 18px 20px 22px; font-size: 14px; }
.c-member h3 { font-size: 17px; margin-bottom: 2px; }
.c-member__role { color: var(--r-600); font-weight: 600; font-size: 13px; }
.c-member blockquote { margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--r-500); font-style: italic; color: var(--n-700); }
.c-member__links { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.c-member__links a { color: var(--n-800); }
.c-avatars { display: flex; }
.c-avatars .c-face { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px; }
.c-avatars .c-face:first-child { margin-left: 0; }
.c-avatars .c-face--initials { font-size: 16px; }
.c-contact { display: flex; gap: 14px; align-items: center; background: var(--n-150); border-radius: var(--radius); padding: 16px 18px; font-size: 13px; }
.c-contact .c-face { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.c-contact .c-face--initials { font-size: 16px; }
.c-contact strong { display: block; font-size: 14px; }
.c-contact__role { display: block; color: var(--r-600); font-weight: 600; font-size: 12px; }
.c-contact__links a { color: var(--n-800); }
.c-people--tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.c-tile { font-size: 13px; }
.c-tile .c-face { border-radius: var(--radius-s); margin-bottom: 10px; }
.c-tile strong { display: block; }
.c-tile span { color: var(--n-600); }

/* Bänder / Hinweisflächen */
.c-band { position: relative; display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); overflow: hidden; }
.c-band--red { background: var(--r-500); color: #fff; }
.c-band--dark { background: var(--n-800); color: #fff; }
.c-band--white { background: #fff; color: var(--n-800); box-shadow: var(--shadow); }
.c-band h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 10px; }
.c-band__body { flex: 1; min-width: 0; position: relative; }
.c-band__text { font-size: 15px; }
.c-band__body .c-btn { margin-top: 18px; }
.c-band__media { flex: 0 0 auto; width: clamp(140px, 22%, 220px); }
.c-band--img-cover .c-band__media img { transform: rotate(-5deg); box-shadow: 0 18px 40px rgba(24, 22, 15, .35); border-radius: 4px; }
.c-band--img-photo .c-band__media img { border-radius: var(--radius-s); }
.c-band--img-cutout { padding-bottom: 0; align-items: flex-end; }
.c-band--img-cutout .c-band__body { align-self: center; padding-bottom: clamp(24px, 4vw, 44px); }
.c-band__chevrons { position: absolute; right: 22px; top: 18px; width: 120px; opacity: .25; }
.c-band--status { gap: 22px; }
.c-band--status .c-icon--circle { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.c-band--status > div { flex: 1; }
.c-band--status h2 { margin-bottom: 4px; }
.c-jobs { display: grid; gap: 18px; }
.c-job { align-items: flex-start; }
.c-job h3 { font-size: 15px; margin: 14px 0 6px; }
.c-band--white .c-band__text strong { color: var(--r-600); }

/* «Nächster Schritt» */
.c-cta { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 30px; max-width: var(--container); margin: 0 auto; padding: clamp(48px, 6vw, 70px) var(--gutter) 0; color: #fff; }
.c-cta__text { padding-bottom: clamp(48px, 6vw, 70px); }
.c-cta .c-bars { font-size: clamp(22px, 2.6vw, 30px); }
.c-cta__lead { max-width: 460px; }
.c-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.c-qr { display: flex; align-items: center; gap: 12px; font-size: 12px; max-width: 220px; }
.c-qr__code { flex: none; width: 84px; height: 84px; padding: 6px; background: #fff; border-radius: 8px; }
.c-qr__code svg { width: 100%; height: 100%; display: block; }
.c-cta__media { align-self: end; justify-self: end; max-width: 340px; }
.c-cta__media img { display: block; }
.section--tone-red:has(.b-cta) { padding: 0; }

/* Platzhalter für fehlende Bilder */
.c-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 160px;
  background: repeating-linear-gradient(135deg, var(--n-150) 0 14px, var(--n-200) 14px 28px); color: var(--n-600); border: 2px dashed var(--n-400); border-radius: inherit;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.c-ph .c-chevrons { width: 70px; color: var(--n-400); opacity: 1; }
.c-gallery .c-ph { aspect-ratio: 4 / 3; border-radius: var(--radius-s); }
.c-gallery--phases .c-ph { aspect-ratio: 1 / 1; }

/* Bildergruppen */
.c-gallery { display: grid; gap: 12px; }
.c-gallery figure { margin: 0; }
.c-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-s); }
.c-gallery--row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.c-gallery--row img { aspect-ratio: 4 / 3; }
.c-gallery--mosaic { grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 160px; }
.c-gallery--mosaic figure:first-child { grid-row: span 2; }
.c-gallery--phases { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
.c-gallery--phases img { aspect-ratio: 1 / 1; height: auto; }
.c-gallery--phases figcaption { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; }
.c-gallery--phases figcaption strong { display: block; line-height: 1.3; }
.c-gallery--phases figcaption small { color: var(--n-600); }
.c-gallery--phases .c-num { min-width: 24px; height: 24px; font-size: 12px; padding: 0; }
.c-gallery--stack { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.c-gallery--stack figure:nth-child(even) { margin-top: 40px; }
.c-gallery figcaption { font-size: 13px; margin-top: 6px; }

/* Zeitstrahl */
.c-timeline { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); }
.c-timeline__label { font-size: clamp(40px, 5vw, 64px); font-weight: 600; color: var(--r-500); line-height: 1; margin-bottom: 16px; }
.c-timeline__img { margin-top: 22px; }
.c-timeline__img img { border-radius: var(--radius); }
.c-timeline__list { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid rgba(205, 23, 25, .35); }
.c-timeline__list li { position: relative; padding-bottom: 22px; }
.c-timeline__list li::before { content: ''; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--r-500); }
.c-timeline__year { display: block; color: var(--r-600); font-weight: 600; margin-bottom: 4px; }
.c-timeline .c-list { font-size: 15px; margin: 0; }

/* Grosses Zitat */
.c-bigquote { margin: 0; display: grid; grid-template-columns: 1fr; gap: 30px; align-items: end; }
.c-bigquote.has-img { grid-template-columns: 1.4fr 1fr; }
.c-bigquote blockquote { margin: 0 0 16px; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.45; }
.c-bigquote figcaption strong { display: block; }
.c-bigquote figcaption span { font-size: 14px; opacity: .8; }
.c-bigquote__img { max-width: 320px; justify-self: end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--d-footer-bg); color: var(--d-footer-text); font-size: 13px; }
.site-footer__main, .site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter); }
.site-footer__legal { padding-top: 0; opacity: .85; }
.site-footer a { color: var(--d-footer-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__contact a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .social-icon { background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; }
.site-footer .social-icon:hover { background: var(--r-500); text-decoration: none; }

/* Fixierter Termin-Button auf dem Handy */
.mobile-cta { display: none; }

/* ---------- Text auf Bildern (Version-1-Blöcke, Einstellungen → Design) ---------- */
.section--hero > .cols { position: relative; z-index: 1; }
.col--panel { color: #fff; padding: 30px; border-radius: var(--radius); }
.col--panel a:not(.btn) { color: inherit; }
.hero-dark .col--panel { background-color: var(--overlay); }
.hero-light .col--panel { background-color: rgba(245, 246, 244, .9); color: var(--d-text); }
.hero-gradient .col--panel { background-color: transparent; text-shadow: 0 1px 12px rgba(24, 22, 15, .7); }
.hero-below .col--panel { background-color: transparent; color: var(--d-text); }

/* ---------- Sichtbarkeit ---------- */
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .site-logo img { height: 38px; }
  .nav-toggle { display: block; order: 3; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(360px, 100%);
    background: var(--d-header-bg); overflow-y: auto; transform: translateX(100%);
    transition: transform .25s ease; padding: 10px 0 40px; visibility: hidden; box-shadow: -10px 0 30px rgba(24, 22, 15, .12);
  }
  body.nav-open .site-nav { transform: none; visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { padding: 13px 60px 13px 24px; font-size: 16px; }
  .site-nav .caret { display: none; }
  .sub-toggle { display: block; position: absolute; right: 8px; top: 3px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .sub-toggle::before { content: ''; position: absolute; left: 17px; top: 14px; width: 9px; height: 9px; border-right: 2px solid var(--d-header-text); border-bottom: 2px solid var(--d-header-text); transform: rotate(45deg); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(-135deg); }
  .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: var(--n-150); border-radius: 0; padding: 4px 0; }
  .site-nav li.open > .sub { display: block; }
  .site-nav .sub a { padding: 10px 24px 10px 40px; }
  .section--parallax, .section[style*="background-attachment:fixed"] { background-attachment: scroll !important; }
  .c-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-project { grid-template-columns: 1fr; }
  .c-project__media { aspect-ratio: 16 / 9; }
  .c-gallery--phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .cols { flex-wrap: wrap; }
  .col { width: 100% !important; }
  .col + .col { margin-top: 28px; }
  .section--flush .col + .col { margin-top: 0; }
  .c-grid--2, .c-grid--3, .c-grid--4 { grid-template-columns: 1fr; }
  .c-hero { grid-template-columns: 1fr; min-height: 0; }
  .c-hero__text { order: 2; justify-content: flex-start; padding: 32px var(--gutter) 40px; }
  .c-hero__media { order: 1; aspect-ratio: 4 / 3; }
  .c-hero--cutout .c-hero__media { aspect-ratio: auto; justify-content: center; padding: 24px var(--gutter) 0; }
  .c-hero--cutout .c-hero__media img { max-height: 220px; }
  .c-hero__chevrons { display: none; }
  .c-btns .c-btn { flex: 1 1 auto; }
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-steps--grid { grid-template-columns: 1fr; }
  .c-steps--timeline { grid-template-columns: 1fr; gap: 0; }
  .c-steps--timeline::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .c-steps--timeline li { padding: 0 0 18px 34px; }
  .c-phases__step span { font-size: 10px; }
  .c-facts > div { grid-template-columns: 1fr; gap: 0; }
  .c-band { flex-direction: column; align-items: flex-start; }
  .c-band__media { width: 150px; }
  .c-band--img-cutout .c-band__media { order: 2; align-self: center; }
  .c-cta { grid-template-columns: 1fr; }
  .c-cta__text { padding-bottom: 0; }
  .c-cta__media { justify-self: center; max-width: 240px; }
  .c-qr { display: none; }
  .c-gallery--row, .c-gallery--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-gallery--stack figure:nth-child(even) { margin-top: 0; }
  .c-gallery--phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-gallery--mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .c-timeline { grid-template-columns: 1fr; }
  .c-bigquote.has-img { grid-template-columns: 1fr; }
  .c-bigquote__img { justify-self: center; max-width: 220px; }
  .b-form__field--half { width: 100%; }
  .site-footer__main, .site-footer__legal { flex-direction: column; align-items: flex-start; }
  /* Termin-Button unten fixiert */
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: center; box-shadow: 0 10px 24px rgba(24, 22, 15, .3); }
  body:has(.mobile-cta) .site-footer { padding-bottom: 70px; }
  body.nav-open .mobile-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
