/* ==========================================================================
   Layout bus-elektro-gmbh – globale Grundlagen
   Umsetzung des Entwurfs entwurf/bus-elektro-gmbh/ (Bendler & Sohn
   Elektromontagen GmbH). Alle Maße in px: das CMS-Root ist 10px (Bootstrap 3),
   rem-Werte des Entwurfs wurden entsprechend umgerechnet.
   ========================================================================== */

/* -- 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 {
  /* Marke */
  --bus-brand-red: #a3161d;            /* Rot der B&S-Bildmarke */

  /* Industrie-Palette: Stahl/Graphit + Warnsignal-Gelb */
  --bus-graphite-950: #0b0f14;
  --bus-graphite-900: #12181f;
  --bus-graphite-800: #1b232c;
  --bus-graphite-700: #2a3540;
  --bus-steel-400: #6b7c8c;
  --bus-steel-200: #c3ced6;
  --bus-fog-100: #eef1f3;
  --bus-white: #ffffff;
  --bus-signal: #f5b400;
  --bus-signal-dark: #c68f00;

  --bus-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --bus-body: 'Manrope', 'Segoe UI', sans-serif;

  --bus-radius: 2px;
  --bus-wrap-max: 1440px;
}

/* -- Seite ---------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 85px; }   /* Höhe des sticky Headers */
html { overflow-x: hidden; }
body { overflow-x: clip; }   /* clip statt hidden: sticky Header bleibt funktionsfähig */
body {
  margin: 0;
  font-family: var(--bus-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bus-graphite-900);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}
#page { width: 100%; max-width: none; margin: 0; padding: 0; }
#wrapper { width: 100%; margin: 0; padding: 0; }

/* Reset innerhalb der eigenen Bausteine. :where() hält die Spezifität auf
   Element-Niveau, damit Komponenten-Klassen den Reset immer schlagen. */
:where(.bus-site) :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure) { margin: 0; padding: 0; }
:where(.bus-site) :is(h1, h2, h3, h4) {
  font-family: var(--bus-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  color: var(--bus-graphite-950);
}
:where(.bus-site) h1 { font-size: clamp(44px, 5.4vw, 83px); margin-bottom: 20px; }
:where(.bus-site) h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 20px; }
:where(.bus-site) h3 { font-size: 24px; margin-bottom: 8px; }
:where(.bus-site) p { margin-bottom: 16px; color: var(--bus-graphite-700); line-height: 1.65; }
:where(.bus-site) a { color: inherit; text-decoration: none; background-color: transparent; }
:where(.bus-site) a:hover, :where(.bus-site) a:focus { color: inherit; text-decoration: none; }
:where(.bus-site) img { max-width: 100%; border: none; vertical-align: middle; }
:where(.bus-site) :is(ul, ol) { list-style: none; }

/* -- Logo (Header + Footer) ----------------------------------------------
   Logo aus "Design bearbeiten" hat Vorrang; liefert s_designer kein Bild,
   erscheint img/logo-bendler-sohn.png aus dem Layout. */
.bus-logo-cms { display: contents; }
.bus-logo-cms:not(:has(img)), .bus-logo-cms:has(img) + .bus-logo-fallback { display: none; }

/* -- Sprungmarken: immer am oberen Rand der Section (auch bei Flex-Sections) -- */
section.bus-site { position: relative; }
.bus-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }

/* -- Container ------------------------------------------------------------ */
.bus-wrap {
  max-width: var(--bus-wrap-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* -- Eyebrow, Abschnittskopf ----------------------------------------------- */
.bus-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--bus-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 14px;
  line-height: 1.3;
  color: var(--bus-signal-dark);
  margin: 0 0 14px;
}
.bus-eyebrow::before {
  content: '';
  flex: 0 0 34px;
  height: 3px;
  background: var(--bus-signal);
}
.bus-section-head { max-width: 760px; margin-bottom: 56px; }
.bus-section-head p:last-child { margin-bottom: 0; }

/* Dunkle Abschnitte */
.bus-dark { background-color: var(--bus-graphite-950); color: var(--bus-fog-100); }
.bus-dark :is(h2, h3) { color: var(--bus-white); }
.bus-dark p { color: var(--bus-steel-200); }
.bus-dark .bus-eyebrow { color: var(--bus-signal); }

/* -- Buttons --------------------------------------------------------------- */
.bus-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bus-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 17px;
  line-height: 1.2;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: var(--bus-radius);
  cursor: pointer;
  transition: background-color .2s ease;
}
.bus-btn--signal { background: var(--bus-signal); color: var(--bus-graphite-950) !important; }
.bus-btn--signal:hover { background: var(--bus-signal-dark); }
.bus-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.bus-btn--ghost:hover { background: rgba(255,255,255,.08); }

@media (max-width: 860px) {
  .bus-wrap { padding-left: 20px; padding-right: 20px; }
  .bus-section-head { margin-bottom: 36px; }
}

/* -- Header/Footer-CSS (gehört HINTER die Grundregeln, siehe CLAUDE.md) --- */
/* Header – Entwurf be-header: sticky, graphit, Logo + Navigation + CTA */
.bus-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bus-graphite-950);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bus-header__inner { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }

.bus-logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.bus-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: none;
  background: #ffe39b;   /* Logo ist transparent mit schwarzer Schrift */
  padding: 4px 10px;
  border-radius: var(--bus-radius);
}

.bus-logo-text {
  font-family: var(--bus-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 17px;
  line-height: 1.15;
  color: var(--bus-white) !important;
}
.bus-logo-text em { color: var(--bus-signal); font-style: normal; }
.bus-logo-text small {
  display: block;
  font-family: var(--bus-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11.5px;
  color: var(--bus-steel-200);
}

/* Navigation (CMS-Menü: li > a, Untermenü als ul.dropdown-menu) */
.bus-nav__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.bus-nav__list li { position: relative; list-style: none; }
.bus-nav__list > li > a {
  display: block;
  font-family: var(--bus-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 16px;
  line-height: 1.3;
  padding: 6px 0;
  color: var(--bus-fog-100) !important;
  transition: color .2s ease;
}
.bus-nav__list > li > a:hover, .bus-nav__list > li.active > a { color: var(--bus-signal) !important; }
.bus-nav__list .caret { display: none; }
/* Dropdown: top:100% ohne Lücke, Abstand nur über padding (sonst schließt es beim Überfahren) */
.bus-nav__list ul {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--bus-graphite-900);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.bus-nav__list li:hover > ul, .bus-nav__list li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.bus-nav__list ul a {
  display: block;
  padding: 9px 12px;
  font-family: var(--bus-body);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--bus-steel-200) !important;
  border-radius: var(--bus-radius);
  white-space: nowrap;
}
.bus-nav__list ul a:hover { background: rgba(255,255,255,.06); color: var(--bus-white) !important; }

.bus-header__cta { padding: 11px 22px; font-size: 15px; }
.bus-burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.bus-burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--bus-white); transition: transform .2s ease, opacity .2s ease; }
.bus-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bus-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bus-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü */
.bus-nav-mobile { display: none; }

@media (max-width: 960px) {
  .bus-nav, .bus-header__cta { display: none; }
  .bus-burger { display: block; }
  .bus-nav-mobile.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--bus-graphite-950);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px 0 22px;
  }
  .bus-nav-mobile ul { display: block; position: static; list-style: none; margin: 0; padding: 0; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; min-width: 0; box-shadow: none; }
  .bus-nav-mobile li { list-style: none; }
  .bus-nav-mobile a {
    display: block;
    padding: 12px 20px;
    font-family: var(--bus-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 17px;
    color: var(--bus-fog-100) !important;
  }
  .bus-nav-mobile a:hover { color: var(--bus-signal) !important; }
  .bus-nav-mobile ul ul { padding-left: 16px; }
  .bus-nav-mobile ul ul a { font-family: var(--bus-body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--bus-steel-200) !important; padding: 9px 20px; }
  .bus-nav-mobile a.bus-nav-mobile__cta { display: flex; justify-content: center; margin: 14px 20px 0; padding: 14px 20px; color: var(--bus-graphite-950) !important; }
}
@media (max-width: 480px) {
  .bus-logo img { height: 44px; }
  .bus-logo-text small { display: none; }
}

/* Footer – Entwurf be-footer: Copyright links, rechtliche Links rechts */
.bus-footer { background: var(--bus-graphite-950); border-top: 1px solid rgba(255,255,255,.08); }
.bus-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 13.6px;
  color: var(--bus-steel-200);
}
.bus-footer__copy { margin-right: auto; }
.bus-footer__nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.bus-footer__nav li { list-style: none; }
/* Rechtliches-Modul gibt <p><a class="arecht"> aus (nicht ul/li) */
.bus-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bus-footer__legal p { margin: 0; color: inherit; }
.bus-footer a { color: var(--bus-steel-200) !important; transition: color .2s ease; }
.bus-footer a:hover { color: var(--bus-signal) !important; }

@media (max-width: 560px) {
  .bus-footer__inner { flex-direction: column; align-items: flex-start; }
  .bus-footer__copy { margin-right: 0; }
}

