/* BBS GmbH Falkensee – statische Seite im CADDENZ-Look
   Keine externen Schriften, keine Skripte, keine Cookies.
   Schrift: Barlow (SIL Open Font License 1.1), lokal aus /fonts. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }

:root {
  /* CADDENZ-Konzernfarben */
  --blue: #004079;
  --blue-deep: #002f64;
  --red: #e40428;
  --red-dark: #bd0321;
  --yellow: #fbb92d;
  --green: #00a13a;
  --ink: #1d1d1b;
  --ink-soft: #55575c;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --line: #dadada;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Dreifarbiger Streifen oben (Blau / Rot / Gelb wie im Logo) */
.stripe { height: 8px; background: linear-gradient(90deg, var(--blue) 0 34%, var(--red) 34% 67%, var(--yellow) 67% 100%); }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand img { height: 48px; width: auto; }
nav { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 1.05rem; }
nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding-block: .2rem; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--blue-deep) url("img/hero-neu.jpg") center 58% / cover no-repeat; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,35,78,.88) 0%, rgba(0,47,100,.6) 42%, rgba(0,47,100,.05) 85%);
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 11vw, 8rem); }
.eyebrow {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 3px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; margin: 1rem 0; max-width: 16ch; font-weight: 700; letter-spacing: -.01em; }
.hero p { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 38ch; margin: 0 0 2rem; color: #e6edf5; }

.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 4px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; margin-left: .5rem; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* Sektionen */
section { padding-block: clamp(3rem, 7vw, 5rem); }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 .5rem; color: var(--blue); font-weight: 700; }
.lead { color: var(--ink-soft); max-width: 60ch; margin: 0 0 2.2rem; font-size: 1.2rem; }

/* Zentrierter Abschnittskopf */
.section-head { text-align: center; }
.section-head .lead { margin-inline: auto; }

/* Leistungen: drei weiße, zentrierte Karten in Blau / Rot / Gelb.
   Der Nummernkreis sitzt mittig auf der Oberkante der Karte. */
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 3.2rem 1.8rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps > li {
  --c: var(--blue);
  counter-increment: step; position: relative; text-align: center;
  background: #fff; border-top: 6px solid var(--c); border-radius: 8px;
  padding: 2.8rem 1.6rem 2rem;
  box-shadow: 0 8px 24px rgba(0,47,100,.09);
}
.steps > li:nth-child(2) { --c: var(--red); }
.steps > li:nth-child(3) { --c: var(--yellow); }
.steps > li::before {
  content: counter(step); position: absolute; top: -1.9rem; left: 50%; transform: translateX(-50%);
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: #fff; background: var(--c);
  border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,47,100,.15);
}
.steps > li:nth-child(3)::before { color: var(--ink); }
.steps h3 { margin: 0 0 .6rem; font-size: 1.4rem; line-height: 1.2; color: var(--blue); }
.steps p { margin: 0; color: var(--ink-soft); }

/* Kontakt */
.contact { background: var(--blue); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #cfdcec; }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-grid h3 { margin: 0 0 .4rem; color: var(--yellow); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.contact-grid p { margin: 0; font-size: 1.3rem; }
.contact-grid a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.contact-grid a:hover { color: var(--yellow); }

/* Textseiten */
.page { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 1.5rem; color: var(--blue); font-weight: 700; }
.page h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.page h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; color: var(--ink); }
.page p, .page li { color: #2b2d31; }
.page ol { padding-left: 1.3rem; }
.page li { margin-bottom: .7rem; }
.note { background: #fff6e0; border-left: 5px solid var(--yellow); padding: .8rem 1rem; border-radius: 4px; }
/* Widerspruchsrecht muss nach Art. 21 Abs. 4 DSGVO abgesetzt dargestellt werden */
.box { background: var(--bg-alt); border: 2px solid var(--blue); padding: .4rem 1.3rem 1rem; border-radius: 6px; margin-top: 2.2rem; }
.box h2 { margin-top: 1rem; }

/* Fuß */
.site-footer { background: var(--ink); color: #b9bbc0; font-size: 1rem; border-top: 6px solid var(--red); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding-block: 1.5rem; }
.site-footer a { color: inherit; text-decoration: none; margin-right: 1.2rem; }
.site-footer a:hover { color: #fff; }

/* Unter 860px: Karten untereinander, nicht zu breit */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(0,35,78,.8) 0%, rgba(0,35,78,.6) 100%); }
}
@media (max-width: 560px) {
  .btn-ghost { margin: .6rem 0 0; }
  .brand img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Ergänzungen 27.11.2026 ===== */

/* Lange Wörter dürfen nie die Seite breiter machen als den Bildschirm */
body { overflow-wrap: break-word; }
.page h1, .page h2, .page h3 { hyphens: auto; -webkit-hyphens: auto; }

/* Sprunglink für Tastatur und Screenreader, nur bei Fokus sichtbar */
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 0 0 4px 0; }
.skip:focus { left: 0; }

/* Sichtbarer Fokusrahmen bei Tastaturbedienung */
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Sprungziele rutschen nicht unter die feste Kopfzeile */
section[id] { scroll-margin-top: 4.5rem; }

/* Schmaler Textabschnitt (Einsatzgebiet) */
.wrap.narrow { max-width: 780px; }
.wrap.narrow p { color: var(--ink-soft); font-size: 1.15rem; margin: 1rem 0 0; }

/* Knöpfe: kleine Bewegung beim Überfahren */
.btn { transition: background-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-download::before { content: "↓"; margin-right: .5rem; font-weight: 700; }
.page .btn-primary { color: #fff; }

/* Fuß: Links groß genug zum Antippen */
.site-footer a { display: inline-block; padding-block: .45rem; }

/* 404-Seite */
.notfound { text-align: center; }
.notfound .big { font-size: clamp(4rem, 18vw, 8rem); line-height: 1; font-weight: 700; color: var(--blue); margin: 0; }

/* Tablet und Handy: kleineres Hero-Bild laden */
@media (max-width: 760px) {
  .hero { background-image: url("img/hero-1000.jpg"); }
}

/* Handy: Kopfzeile scrollt mit weg und frisst keinen Platz, Navigation über die volle Breite */
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-header .wrap { padding-block: .6rem 0; gap: .4rem; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 0; border-top: 1px solid var(--line); }
  .site-header nav a { flex: 1; text-align: center; padding-block: .65rem; }
  section[id] { scroll-margin-top: 0; }
  .hero .btn { display: block; text-align: center; }
  .btn-ghost { margin: .7rem 0 0; }
  .page h1 { font-size: 1.9rem; }
  .steps > li { padding-inline: 1.2rem; }
  .site-footer .wrap { flex-direction: column; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Druck: nur der Inhalt, ohne Kopf und Fuß */
@media print {
  .stripe, .site-header, .site-footer, .skip, .btn-download { display: none; }
  body { font-size: 11pt; }
}
