/* ==========================================================================
   Layout das-bauplanungsbuero - globale Grundlagen
   Umsetzung des Entwurfs entwurf/das-bauplanungsbuero/ (Das Bauplanungsbüro,
   Heiko Täsch). Alle Maße in px: das CMS-Root ist 10px (Bootstrap 3), die
   Entwurfswerte sind bereits in px angegeben und werden 1:1 übernommen.
   ========================================================================== */

/* -- Schriften (lokale CMS-Bibliothek lib/fonts, kein Google-CDN) ---------- */
/* barlow-condensed-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 300;
  src: url('../../../../../lib/fonts/barlow-condensed/barlow-condensed-v13-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-condensed-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  src: url('../../../../../lib/fonts/barlow-condensed/barlow-condensed-v13-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-condensed-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('../../../../../lib/fonts/barlow-condensed/barlow-condensed-v13-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-condensed-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('../../../../../lib/fonts/barlow-condensed/barlow-condensed-v13-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('../../../../../lib/fonts/manrope/manrope-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  src: url('../../../../../lib/fonts/manrope/manrope-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  src: url('../../../../../lib/fonts/manrope/manrope-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --bpb-ink: #17201e;
  --bpb-ink-soft: #44504c;
  --bpb-paper: #f4f5f1;
  --bpb-white: #ffffff;
  --bpb-line: #cbd1cc;
  --bpb-concrete: #dfe3de;
  --bpb-green: #2f5b4b;
  --bpb-green-dark: #203f35;
  --bpb-yellow: #d7ac43;
  --bpb-wood: #ad5c35;
  --bpb-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --bpb-body: 'Manrope', Arial, sans-serif;
  --bpb-container: 1320px;
  --bpb-gutter: 40px;
  --bpb-header: 84px;
  --bpb-ease: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 1180px) { :root { --bpb-gutter: 30px; } }
@media (max-width: 900px)  { :root { --bpb-header: 74px; } }
@media (max-width: 700px)  { :root { --bpb-gutter: 20px; } }

/* -- Seite ---------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: hidden; }
body { overflow-x: clip; }   /* clip statt hidden: Position fixed bleibt funktionsfähig */
body {
  margin: 0;
  font-family: var(--bpb-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bpb-ink);
  background-color: var(--bpb-paper);
  -webkit-font-smoothing: antialiased;
}
body.bpb-menu-open { overflow: hidden; }
#page { width: 100%; max-width: none; margin: 0; padding: 0; }
#wrapper { width: 100%; margin: 0; padding: 0; }
#main { display: block; }

/* Box-Modell wie im Entwurf (Bootstrap setzt es ebenfalls, hier explizit abgesichert) */
:where(.bpb-site), :where(.bpb-site) *, :where(.bpb-site) *::before, :where(.bpb-site) *::after { box-sizing: border-box; }

/* Reset innerhalb der eigenen Bausteine. :where() hält die Spezifität niedrig,
   damit Komponenten-Klassen den Reset immer schlagen. */
:where(.bpb-site) :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, dl, dd) { margin: 0; padding: 0; }
:where(.bpb-site) :is(h1, h2, h3) {
  font-family: var(--bpb-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: .98;
  color: inherit;
  text-wrap: balance;
}
:where(.bpb-site) h1 { font-size: clamp(58px, 6.3vw, 112px); }
:where(.bpb-site) h2 { font-size: clamp(45px, 4.6vw, 76px); }
:where(.bpb-site) h3 { font-size: 30px; }
:where(.bpb-site) p { max-width: 68ch; }
:where(.bpb-site) a { color: inherit; text-decoration: none; background-color: transparent; }
:where(.bpb-site) a:hover, :where(.bpb-site) a:focus { color: inherit; text-decoration: none; }
:where(.bpb-site) img { max-width: 100%; border: none; vertical-align: middle; }
:where(.bpb-site) :is(ul, ol) { list-style: none; }
.bpb-site :focus-visible { outline: 3px solid var(--bpb-yellow); outline-offset: 3px; }

@media (max-width: 700px) {
  body { font-size: 15px; }
  :where(.bpb-site) h1 { font-size: 58px; }
  :where(.bpb-site) h2 { font-size: 46px; }
}
@media (max-width: 420px) {
  :where(.bpb-site) h1 { font-size: 52px; }
  :where(.bpb-site) h2 { font-size: 42px; }
}

/* Skip-Link */
.bpb-skip { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: var(--bpb-ink); background: var(--bpb-white); transform: translateY(-150%); }
.bpb-skip:focus { transform: translateY(0); }

/* -- Logo (Header + Footer) ----------------------------------------------
   Logo aus "Design bearbeiten" hat Vorrang; liefert s_designer kein Bild,
   erscheint die Wortmarke aus dem Template (Balken-Marke + Text). */
.bpb-logo-cms { display: contents; }
.bpb-logo-cms:not(:has(img)), .bpb-logo-cms:has(img) + .bpb-logo-fallback { display: none; }
.bpb-logo-cms img { display: block; height: 52px; width: auto; max-width: none; }

/* -- Rechtstextseiten (Impressum, Datenschutz): Abstand unter dem fixed Header ---- */
.se-rechtliches-no-se { padding-top: calc(var(--bpb-header) + 56px); padding-bottom: 96px; color: var(--bpb-ink); background: var(--bpb-paper); }
.se-rechtliches-no-se .se-cont { width: min(100% - (var(--bpb-gutter) * 2), 920px); max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
.se-rechtliches-no-se h1 { margin: 0 0 32px; font-family: var(--bpb-display); font-size: clamp(42px, 5vw, 64px); font-weight: 600; line-height: 1; color: var(--bpb-ink); }
.se-rechtliches-no-se h2, .se-rechtliches-no-se h3 { margin: 36px 0 12px; font-family: var(--bpb-display); font-weight: 600; line-height: 1.1; color: var(--bpb-ink); }
.se-rechtliches-no-se p, .se-rechtliches-no-se li { color: var(--bpb-ink-soft); line-height: 1.7; }
.se-rechtliches-no-se a { color: var(--bpb-green); text-decoration: underline; text-underline-offset: 3px; }

/* -- Sprungmarken: immer am oberen Rand der Section ------------------------ */
section.bpb-site { position: relative; }
.bpb-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }

/* -- Container ------------------------------------------------------------ */
.bpb-wrap { width: min(100% - (var(--bpb-gutter) * 2), var(--bpb-container)); margin-left: auto; margin-right: auto; }

/* -- Eyebrow, Maßlinie (Signature-Element) --------------------------------- */
.bpb-eyebrow { display: inline-block; color: var(--bpb-green); font-size: 11px; font-weight: 800; letter-spacing: .17em; line-height: 1.3; text-transform: uppercase; }
.bpb-eyebrow--light { color: var(--bpb-yellow); }
.bpb-measure { display: block; position: relative; width: 100%; max-width: 230px; margin-top: 24px; border-top: 1px solid var(--bpb-line); }
.bpb-measure::before, .bpb-measure::after { content: ''; position: absolute; top: -6px; height: 11px; border-left: 1px solid var(--bpb-green); }
.bpb-measure::before { left: 0; }
.bpb-measure::after { right: 0; }

/* -- Buttons --------------------------------------------------------------- */
.bpb-btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 22px; padding: 13px 21px; border: 1px solid transparent; font-family: var(--bpb-body); font-size: 13px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.bpb-btn:hover { transform: translateY(-2px); }
.bpb-btn::after { content: '\2192'; }
.bpb-btn--primary { color: var(--bpb-ink) !important; background: var(--bpb-yellow); }
.bpb-btn--primary:hover { background: #e4bb57; }
.bpb-btn--light { color: var(--bpb-ink) !important; background: var(--bpb-white); }
.bpb-btn--light:hover { color: var(--bpb-white) !important; background: var(--bpb-ink); }
.bpb-link { display: inline-flex; width: max-content; align-items: center; color: var(--bpb-green); font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 7px; }
.bpb-link--light { color: var(--bpb-white); }
.bpb-link:empty, .bpb-btn:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bpb-btn { transition: none; }
}
@media (max-width: 420px) { .bpb-btn { width: 100%; } }

/* -- Header/Footer-CSS (gehört HINTER die Grundregeln) -------------------- */
/* Header - Entwurf site-header: fest oben, über dem Hero transparent, nach dem Scrollen hell */
.bpb-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  height: var(--bpb-header);
  color: var(--bpb-white);
  background: rgba(23,32,30,.96);          /* ohne JS: dauerhaft dunkel, immer lesbar */
  border-bottom: 1px solid rgba(255,255,255,.22);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
/* transparent nur über einem Hero; auf Seiten ohne Hero (z. B. Impressum) bleibt der Header dunkel */
.bpb-js.bpb-has-hero .bpb-header:not(.is-scrolled) { background: transparent; }
.bpb-header.is-scrolled { color: var(--bpb-ink); background: rgba(244,245,241,.96); box-shadow: 0 8px 30px rgba(23,32,30,.08); border-color: transparent; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bpb-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.bpb-logo { display: flex; align-items: center; }
.bpb-brand { display: inline-flex; align-items: center; gap: 13px; color: inherit !important; }
.bpb-brand__mark { display: grid; grid-template-columns: repeat(3, 6px); align-items: end; gap: 4px; width: 26px; height: 34px; border-bottom: 2px solid currentColor; }
.bpb-brand__mark i { display: block; background: var(--bpb-yellow); }
.bpb-brand__mark i:nth-child(1) { height: 17px; }
.bpb-brand__mark i:nth-child(2) { height: 25px; }
.bpb-brand__mark i:nth-child(3) { height: 32px; }
.bpb-brand__copy { line-height: 1; }
.bpb-brand__copy strong, .bpb-brand__copy small { display: block; }
.bpb-brand__copy strong { font: 700 22px/1 var(--bpb-display); text-transform: uppercase; }
.bpb-brand__copy small { margin-top: 7px; font-size: 10px; letter-spacing: .08em; }

.bpb-nav__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.bpb-nav__list li { list-style: none; }
.bpb-nav__list a { position: relative; display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.4; color: inherit !important; text-decoration: none; }
.bpb-nav__list a:not(.bpb-nav__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--bpb-yellow); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.bpb-nav__list a:not(.bpb-nav__cta):hover::after, .bpb-nav__list a:not(.bpb-nav__cta):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.bpb-nav__list a.bpb-nav__cta { padding: 11px 17px; color: var(--bpb-ink) !important; background: var(--bpb-yellow); }

.bpb-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.bpb-burger span { display: block; width: 26px; height: 2px; margin: 7px auto; background: currentColor; transition: transform .25s ease; }
.bpb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.bpb-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.bpb-nav-mobile { display: none; }

@media (max-width: 1180px) {
  .bpb-nav__list { gap: 19px; }
  .bpb-nav__list a { font-size: 12px; }
}
@media (max-width: 900px) {
  .bpb-nav { display: none; }
  .bpb-burger { display: block; position: relative; z-index: 2; }
  .bpb-nav-mobile.is-open {
    display: block;
    position: fixed;
    top: var(--bpb-header); right: 0; bottom: 0; left: 0;
    padding: 30px var(--bpb-gutter);
    color: var(--bpb-white);
    background: var(--bpb-ink);
    overflow-y: auto;
  }
  .bpb-nav-mobile ul { display: block; list-style: none; margin: 0; padding: 0; }
  .bpb-nav-mobile li { list-style: none; }
  .bpb-nav-mobile a { display: block; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); font: 600 28px/1 var(--bpb-display); color: var(--bpb-white) !important; }
  .bpb-nav-mobile a.bpb-nav__cta { margin-top: 20px; padding: 17px; border-bottom: 0; text-align: center; font: 800 13px/1.2 var(--bpb-body); color: var(--bpb-ink) !important; background: var(--bpb-yellow); }
  .bpb-header.is-menu-open, .bpb-js.bpb-has-hero .bpb-header.is-menu-open { color: var(--bpb-white); background: var(--bpb-ink); box-shadow: none; }
}
@media (max-width: 700px) {
  .bpb-brand__copy strong { font-size: 19px; }
  .bpb-brand__copy small { display: none; }
}

/* Footer - Entwurf site-footer: Wortmarke links, Copyright und rechtliche Links rechts */
.bpb-footer { padding-top: 34px; padding-bottom: 34px; color: rgba(255,255,255,.75); background: var(--bpb-ink); font-size: 13px; }
.bpb-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.bpb-footer__brand strong, .bpb-footer__brand span { display: block; }
.bpb-footer__brand strong { color: var(--bpb-white); font-family: var(--bpb-display); font-size: 19px; font-weight: 700; text-transform: uppercase; }
.bpb-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.bpb-footer__nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.bpb-footer__nav li { list-style: none; }
.bpb-footer__nav:not(:has(li)) { display: none; }
/* Rechtliches-Modul gibt <p><a class="arecht"> aus (nicht ul/li) */
.bpb-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.bpb-footer__legal p { margin: 0; color: inherit; max-width: none; }
.bpb-footer a { color: rgba(255,255,255,.75) !important; transition: color .2s ease; }
.bpb-footer a:hover { color: var(--bpb-yellow) !important; }

@media (max-width: 700px) {
  .bpb-footer__inner, .bpb-footer__meta { align-items: flex-start; flex-direction: column; }
  .bpb-footer__meta, .bpb-footer__legal { align-items: flex-start; flex-direction: column; gap: 10px; }
}

