/* =========================================================================
   Brandschutzbeschichtung Wege GmbH – bsb-wege.de
   Stylesheet, kein Build-Step, keine externen Abhaengigkeiten.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Farbwelt abgeleitet vom Firmenfahrzeug:
     Signalblau       #0038dd / #012eab  -> --blue
     Fahrzeug-Schwarz #13181f            -> --ink
   ------------------------------------------------------------------------- */

:root {
  --ink:        #12161c;
  --ink-soft:   #262d38;
  --steel:      #5a6472;
  --line:       #dde2ea;
  --line-soft:  #eaeef4;
  --paper:      #ffffff;
  --paper-2:    #f2f5fa;
  --paper-3:    #e4eaf3;

  --blue:       #0b3ccc;
  --blue-dark:  #072d9e;
  --blue-tint:  #eef2fe;

  --shadow-sm: 0 1px 2px rgba(0, 26, 89, .06), 0 2px 8px rgba(0, 26, 89, .05);
  --shadow-md: 0 2px 6px rgba(0, 26, 89, .08), 0 12px 32px rgba(0, 26, 89, .10);

  --wrap: 1180px;
  --radius: 3px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding-top: Ankerziele des One Pagers nicht unter dem Sticky Header verstecken */
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9em;
}
.lead { font-size: 1.16rem; color: var(--ink-soft); }
.muted { color: var(--steel); }
.small { font-size: .88rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8em 1.2em;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / Navigation ---------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand__mark { flex: 0 0 auto; display: block; border-radius: 4px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
/* Kein Umbruch mitten im Firmennamen (body setzt overflow-wrap: break-word) */
.brand__name {
  font-weight: 800; font-size: 1.06rem; color: var(--ink); letter-spacing: .01em;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.brand__claim { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }

@media (max-width: 560px) {
  /* Auf kleinen Displays muss der Menue-Button sichtbar bleiben */
  .site-header__bar { min-height: 66px; }
  .brand { gap: 9px; }
  .brand__mark { width: 42px; height: auto; }
  .brand__name { font-size: .8rem; line-height: 1.25; }
  .brand__claim { display: none; }
  .nav-toggle { padding: .5em .7em; font-size: .85rem; }
}

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55em .8em; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: .6em .8em; font-size: .95rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.nav__cta {
  margin-left: 10px; background: var(--blue); color: #fff; padding: .68em 1.15em;
  box-shadow: none;
}
.nav a.nav__cta:hover { background: var(--blue-dark); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .site-header__bar { gap: 12px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85em .2em; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav .nav__cta { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Sections -------------------------------------------------- */

.section { padding: clamp(52px, 7vw, 92px) 0; }
.section--paper { background: var(--paper-2); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Hinweisleiste unter dem Header ------------------------- */

.strip {
  background: var(--ink); color: #c6d1e2;
  border-top: 1px solid rgba(31,92,255,.28);
}
.strip ul {
  display: flex; flex-wrap: wrap; gap: 8px 34px;
  margin: 0; padding: 14px 0; list-style: none; font-size: .93rem;
}
.strip li { margin: 0; display: flex; align-items: center; gap: 9px; }
.strip li::before { content: ""; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex: 0 0 auto; }

/* ---------- Grids / Cards -------------------------------------------- */

/* Grid-Items duerfen nicht von ihrem min-content-Inhalt aufgeblaeht werden –
   sonst laeuft die ganze Seite horizontal ueber. */
.grid > * { min-width: 0; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
/* Eine Spalte, Breite an .section__head angelehnt, damit die Zeilen lesbar bleiben */
.grid--stack { grid-template-columns: 1fr; max-width: 760px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card h3 { margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__icon { color: var(--blue); margin-bottom: 14px; }

/* ---------- Badges -------------------------------------------------- */

.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.2em; list-style: none; }
.badges li {
  margin: 0; padding: .38em .8em; font-size: .85rem; font-weight: 600;
  background: var(--paper-3); color: var(--ink-soft); border-radius: 999px;
}
.badges--blue li { background: var(--blue-tint); color: var(--blue-dark); }

/* ---------- Kontaktdaten-Block --------------------------------------- */

.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { display: flex; gap: 12px; margin-bottom: 1em; }
.contact-lines svg { flex: 0 0 auto; margin-top: .18em; color: var(--blue); }
.contact-lines strong { display: block; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Footer --------------------------------------------------- */

.site-footer { background: var(--ink); color: #94a2b8; font-size: .93rem; padding: 56px 0 26px; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer a { color: #b6c3d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid #262f3d; font-size: .86rem;
}

/* ---------- Rechtstexte --------------------------------------------- */

.legal { max-width: 820px; }
.legal h2 { margin-top: 2.2em; font-size: 1.4rem; }
.legal h3 { margin-top: 1.8em; font-size: 1.08rem; }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal ol { padding-left: 1.4em; }
.legal .toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.legal .toc h2 { margin: 0 0 .7em; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.legal .toc ol { margin: 0; }
.legal .toc li { margin-bottom: .3em; }

/* ---------- Utilities ----------------------------------------------- */

.mb-0 { margin-bottom: 0 !important; }

@media print {
  .site-header, .site-footer { display: none; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; }
}

/* ---------- Qualifikationen unter den Leistungen ----------------------- */
.qualifikationen { max-width: 760px; margin-top: 34px; }
.qualifikationen h3 { margin-bottom: .7em; }
