/* MESOLager Landingpage – gemeinsames Stylesheet für index.html und kontakt.html.
   Die Seiten binden die Datei mit ?v=<Hash> ein; tools/check_page.py nennt den erwarteten Hash nach jeder Änderung.
   Look & Feel seit 2026-10-22 wie www.bleckmann.de (Spec docs/superpowers/specs/2026-10-22-bleckmann-look-and-feel-design.md):
   Anthrazit statt Schwarz als Fläche, Grün-Verläufe, grüne Topbar, Footer wie die Firmenseite. */

/* ============ Schrift: Exo (lokal, Variable Font 100-900, SIL OFL) ============ */
@font-face {
  font-family: 'Exo';
  src: url('../fonts/exo-variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============ Bleckmann CI (Styleguide Agentur Baff + gemessene Werte von bleckmann.de) ============ */
:root {
  --c-black:      #0A0A0A; /* nur als Startpunkt des Styleguide-Verlaufs, nie als Fläche */
  --c-dark:       #1C1C1C; /* Seitengrund, Hauptzeile des Headers */
  --c-anthracite: #2D2C2F; /* Verlaufsendpunkt und Fußzeile von bleckmann.de */
  --c-gray-800:   #333333;
  --c-green:      #81B731;
  --c-green-dark: #4a6f17; /* Grün für Text auf Weiß (5,9:1) */
  --c-green-deep: #334d0f; /* Grün für Text auf Limette (5,6:1 auf #B2D181) */
  --c-blue:       #007ACC;
  --c-blue-light: #4DA6E8; /* Akzentblau für Text auf dunklem Grund (6,4:1) */
  --c-gray:       #CCCCCC;
  --c-white:      #FFFFFF;
  --c-muted:      #ADABB6; /* Footer-Text wie bleckmann.de (6,5:1 auf Anthrazit) */
  --c-lime:       #B2D181; /* hellgrüne Abschnitte von bleckmann.de, oben */
  --c-lime-2:     #B1C890; /* … unten */
  --grad-hero:   linear-gradient(180deg, var(--c-green) 0%, var(--c-anthracite) 100%);   /* Unterseiten-Hero bleckmann.de */
  --grad-dark:   linear-gradient(180deg, var(--c-dark) 0%, var(--c-anthracite) 100%);
  --grad-footer: linear-gradient(180deg, var(--c-dark) 40%, var(--c-anthracite) 100%);  /* Footer bleckmann.de */
  --grad-ci:     linear-gradient(180deg, var(--c-black) 0%, var(--c-green) 100%);        /* Styleguide „Verlauf“ */
  --grad-lime:   linear-gradient(180deg, var(--c-lime) 0%, var(--c-lime-2) 100%);
  --glass:       rgba(255,255,255,.06);  /* Karten auf dunklem Grund */
  --glass-line:  rgba(255,255,255,.14);
  --radius: 26px;       /* Pill-Buttons wie bleckmann.de */
  --radius-card: 16px;
  --topbar-h: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Sticky-Header: Sprungziele und fokussierte Elemente nicht verdecken (WCAG 2.4.11) */
}

/* Eingebetteter Icon-Sprite (tools/inline_sprite.py): nimmt keinen Platz ein */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Sprunglink: erst bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--c-green);
  color: var(--c-dark);
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid var(--c-white); outline-offset: 2px; }

/* Bewegung reduzieren, wenn das System es wünscht (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .org-chip:hover, .social a:hover { transform: none; }
}

body {
  font-family: 'Exo', sans-serif;
  color: var(--c-white);
  background: var(--c-dark);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Buttons (Pill wie bleckmann.de, dunkle Schrift auf Grün wegen Kontrast) ============ */
.btn {
  display: inline-block;
  font-family: 'Exo', sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--radius);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: scale(1.04); }
.btn:focus-visible { outline: 3px solid var(--c-white); outline-offset: 3px; }

/* ============ Fokus-Ringe ============ */
a:focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; border-radius: 4px; }
.topbar a:focus-visible, .cta-band a:focus-visible, .section--lime a:focus-visible { outline-color: var(--c-dark); }
.hero a:focus-visible, .page-hero a:focus-visible { outline-color: var(--c-white); }
.cta-band .btn:focus-visible { outline: 3px solid var(--c-dark); outline-offset: 3px; }
.section--lime .btn:focus-visible { outline-color: var(--c-dark); }

.btn--green {
  background: var(--c-green);
  color: var(--c-dark); /* 7,1:1 auf Grün, Weiß wäre nur 2,4:1 */
}
.btn--green:hover { background: #8fc93c; }

.btn--dark {
  background: var(--c-dark);
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,.25);
}
.btn--dark:hover { background: var(--c-anthracite); }

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ============ Header: grüne Topbar + anthrazitfarbene Hauptzeile wie bleckmann.de ============ */
/* Der ganze Header ist sticky und um die Topbar-Höhe nach oben versetzt: die Topbar scrollt weg, die Hauptzeile bleibt stehen */
.site-header {
  position: sticky;
  top: calc(-1 * var(--topbar-h));
  z-index: 50;
}
.topbar {
  background: var(--c-green);
  height: var(--topbar-h);
}
.topbar nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--topbar-h);
}
.topbar a {
  position: relative;
  color: var(--c-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 0 16px;
  white-space: nowrap;
  line-height: var(--topbar-h);
}
.topbar a + a::before { /* gepunktete Trenner wie auf bleckmann.de */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 14px;
  transform: translateY(-50%);
  border-left: 2px dotted rgba(28,28,28,.55);
}
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.main-bar {
  background: var(--c-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.main-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.site-header .logo { flex: none; }
.site-header .logo img { display: block; height: 30px; width: auto; }
@media (max-width: 480px) { .site-header .logo img { height: 24px; } }
.site-nav { display: none; }
.site-nav a {
  position: relative;
  color: var(--c-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 2px;
  margin: 0 10px;
  white-space: nowrap;
}
.site-nav a::after { /* Unterstreichung wie der Elementor-Pointer „underline“ */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-green);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: var(--c-green);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-phone svg { flex: none; }
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-header .btn { padding: 11px 20px; font-size: 14px; white-space: nowrap; }
.nav-toggle {
  display: none; /* ohne JavaScript nutzlos, daher erst mit Klasse .js sichtbar */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  color: var(--c-white);
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; }
.js .nav-toggle { display: inline-flex; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle, .js .nav-toggle { display: none; }
}
/* Zwischen 900 und 1099 px reicht der Platz nicht für Navigation, Telefonnummer und Button: nur den grünen Punkt + Nummer kürzen */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav a { margin: 0 6px; font-size: 14px; }
  .header-phone span { display: none; }
}
/* Unter 600 px: Topbar ausblenden (Links stehen im Footer), Header dann ohne Versatz sticky */
@media (max-width: 599px) {
  .topbar { display: none; }
  .site-header { top: 0; }
}
/* Unter 480 px wandert der Demo-Button ins Mobile-Menü, der Hero wiederholt ihn direkt darunter */
@media (max-width: 479px) {
  .site-header .btn { display: none; }
  .header-actions { gap: 12px; }
}
/* Mobile-Menü: ohne JavaScript immer sichtbar, mit JavaScript (Klasse .js im <head>) nur bei .open – kein Aufblitzen beim Laden */
.js .mobile-nav:not(.open) { display: none; }
.mobile-nav {
  background: var(--c-anthracite);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; padding: 8px 0; }
.mobile-nav a {
  display: block;
  color: var(--c-white);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
}
.mobile-nav a:hover { color: var(--c-green); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ============ Hero (Verlauf Grün → Anthrazit wie die Unterseiten von bleckmann.de) ============ */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--c-white);
  overflow: hidden;
  text-align: center;
  padding: 80px 0 100px;
}
/* Leichte Abdunklung, damit weißer Text auch oben auf dem Grün WCAG AA erreicht (4,6:1 statt 2,4:1) */
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28,28,28,.35);
}
.hero .container, .page-hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  color: var(--c-white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 8px 22px;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero h1 .accent { color: var(--c-white); font-weight: 300; } /* wie „Mach's digital – mit Bleckmann“ unter der Startseiten-Headline */
.hero .sub {
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--c-white);
  max-width: 760px;
  margin: 0 auto 44px;
}
.hero .sub strong { color: var(--c-white); font-weight: 700; }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(28,28,28,.35);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
}
.fact svg { flex: none; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero .hint {
  margin-top: 20px;
  font-size: 14px;
  color: var(--c-gray);
  font-weight: 400;
}

/* ---- Hero-Gerätemontage ---- */
.hero-visual { position: relative; max-width: 960px; margin: 56px auto 0; }
.browser-frame {
  background: var(--c-dark);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(10,10,10,.6);
}
.browser-frame::before {
  content: "";
  display: block;
  height: 10px;
  width: 46px;
  margin: 0 0 8px 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f57 0 10px, transparent 10px 18px, #febc2e 18px 28px, transparent 28px 36px, #28c840 36px 46px);
}
.browser-frame img { display: block; border-radius: 8px; width: 100%; height: auto; }
.phone-frame {
  position: absolute;
  right: -8px;
  bottom: -32px;
  width: 22%;
  min-width: 120px;
  background: var(--c-dark);
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 22px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(10,10,10,.6);
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 16px; }
.hero-visual figcaption { margin-top: 48px; padding-right: 26%; font-size: .9rem; color: var(--c-gray); font-weight: 400; }
@media (max-width: 640px) {
  .phone-frame { display: none; }
  .hero-visual figcaption { margin-top: 20px; padding-right: 0; }
}

/* ============ Sections ============ */
/* Standard: Anthrazit (wie bleckmann.de), Varianten: Verlauf nach #2D2C2F und Limette (hellgrüne Abschnitte der Startseite) */
section { padding: 90px 0; scroll-margin-top: 70px; background: var(--c-dark); color: var(--c-white); }
.section--grad { background: var(--grad-dark); }
.section--lime {
  background: var(--grad-lime);
  color: var(--c-dark);
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--c-green);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section--lime .section-head .kicker { color: var(--c-green-deep); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-head p { color: var(--c-gray); font-size: 1.1rem; font-weight: 400; }
.section--lime .section-head p { color: var(--c-gray-800); }

/* ---- Karten (Check-Stil): Glas auf dunklem Grund, Weiß auf Limette ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.topic {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  padding: 24px 26px;
}
.section--lime .topic {
  background: var(--c-white);
  border-color: rgba(28,28,28,.08);
  box-shadow: 0 10px 30px rgba(28,28,28,.08);
}
.topic .check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-green);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.topic .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(129,183,49,.16);
  display: grid;
  place-items: center;
}
.topic h3 { font-size: 1.05rem; font-weight: 700; }
.topic p { font-size: .95rem; color: var(--c-gray); font-weight: 400; margin-top: 2px; }
.section--lime .topic p { color: var(--c-gray-800); }

/* ---- Vorteile: Styleguide-Verlauf (#0A0A0A → #81B731) mit dunklen Karten ---- */
.details { background: var(--grad-ci); color: var(--c-white); }
.details .section-head h2 { color: var(--c-white); }
.details .section-head p { color: var(--c-gray); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.detail-card {
  background: rgba(28,28,28,.72);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-align: center;
}
.detail-card .icon { margin-bottom: 14px; }
.detail-card .label {
  color: var(--c-green);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.detail-card .value { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.detail-card .note { font-size: .95rem; color: var(--c-gray); font-weight: 400; margin-top: 6px; }

/* ---- Timeline (Einführung, auf Verlauf) ---- */
.timeline { max-width: 800px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 56px 26px 1fr;
  column-gap: 14px;
  position: relative;
  padding-bottom: 34px;
}
.timeline-time { text-align: right; }
.timeline-time .t {
  display: block;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--c-green);
  line-height: 1.3;
}
.timeline-marker { position: relative; }
.timeline-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: -8px;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.16);
}
.timeline-item:last-child .timeline-marker::before { display: none; }
.timeline-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(129,183,49,.22);
}
.timeline-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}
.timeline-body p {
  font-size: .95rem;
  font-weight: 400;
  color: var(--c-gray);
  margin-top: 4px;
}
.timeline-note {
  text-align: center;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 400;
  color: var(--c-muted);
}
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 36px 20px 1fr; column-gap: 10px; }
}

/* ---- Vergleich bisher / jetzt ---- */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.compare-card {
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.compare-card--new {
  background: linear-gradient(160deg, rgba(129,183,49,.22), rgba(129,183,49,.06));
  border-color: rgba(129,183,49,.55);
}
.compare-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  color: var(--c-gray);
}
.compare-card--new h3 { color: var(--c-green); }
.compare-card ul { list-style: none; }
.compare-card li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-weight: 400;
  color: var(--c-gray);
  border-top: 1px solid rgba(255,255,255,.08);
}
.compare-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6B6B6B;
}
.compare-card--new li::before { background: var(--c-green); }

/* ---- Info-Box (Beta, Akzentfarbe Blau aus dem Styleguide) ---- */
.info-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: rgba(0,122,204,.12);
  border: 1px solid rgba(0,122,204,.5);
}
.info-box p { flex: 1 1 320px; font-weight: 400; color: var(--c-gray); }
.info-box p strong { font-weight: 700; color: var(--c-blue-light); }

/* ---- Galerie ---- */
.gallery-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 24px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  align-items: start;
}
.gallery figure {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,.04);
  flex: 1;
}
.gallery .pair a { display: flex; align-items: flex-start; justify-content: center; }
.gallery .pair img { border-radius: 10px; max-height: 360px; width: auto; }
/* Smartphone-Kachel über die volle Breite als letzte Zeile – so zieht sie keine Lücke in die Reihen darüber */
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide .pair {
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 24px;
  padding: 24px;
}
.gallery-wide .pair img { max-height: 480px; }
.gallery-wide figcaption { text-align: center; }
.gallery figcaption {
  padding: 14px 18px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-gray);
  margin-top: auto;
}
.gallery a:focus-visible { outline: 3px solid var(--c-green); outline-offset: -3px; }

/* ---- Lightbox ---- */
.lightbox {
  border: none;
  padding: 0;
  margin: auto; /* der globale Reset löscht das margin:auto des Dialogs – sonst klebt er oben links */
  inset: 0;
  background: transparent;
  width: fit-content;
  max-width: 96vw; /* Dialog passt sich dem Bild an (max. 1600 px), dadurch bleibt er mittig */
}
.lightbox:not([open]) { display: none; } /* Browser ohne <dialog>-Unterstützung */
.lightbox::backdrop { background: rgba(10,10,10,.9); }
.lightbox img {
  display: block;
  transition: opacity .15s ease;
  max-width: min(96vw, 1600px); /* nie über die natürliche Größe hochskalieren */
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
}
.lightbox button {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--c-white);
  color: var(--c-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; }

/* ---- Integrations-Schritte ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
}
.step {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-dark);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-weight: 400; color: var(--c-gray); font-size: .95rem; }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--c-green);
  }
}
.steps-note {
  text-align: center;
  margin-top: 24px;
  font-size: .95rem;
  font-weight: 400;
  color: var(--c-muted);
}

/* ---- Module (Limette, weiße Karten) ---- */
.module-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.module-col {
  background: var(--c-white);
  border: 1px solid rgba(28,28,28,.08);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(28,28,28,.08);
}
.module-col h3 {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.module-col ul { list-style: none; }
.module-col li {
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  font-weight: 400;
  color: var(--c-gray-800);
}
.module-col li strong { font-weight: 700; color: var(--c-dark); display: block; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Exo', sans-serif;
  background: var(--c-white);
  border: 1px solid rgba(129,183,49,.6);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-dark);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.chip::after {
  content: "+";
  font-weight: 900;
  color: var(--c-green-dark);
  line-height: 1;
}
.chip:hover { border-color: var(--c-green); background: rgba(129,183,49,.14); }
.chip:focus-visible { outline: 3px solid var(--c-dark); outline-offset: 2px; }
.chip[aria-expanded="true"] { background: var(--c-green); border-color: var(--c-green); color: var(--c-dark); }
.chip[aria-expanded="true"]::after { content: "\2212"; color: var(--c-dark); }
.chip-hint { display: none; margin-top: 14px; font-size: .88rem; font-weight: 400; color: var(--c-gray-800); }
.js .chip-hint { display: block; }
.module-infos { margin-top: 18px; display: grid; gap: 12px; }
.module-info {
  background: var(--c-white);
  border: 1px solid rgba(129,183,49,.6);
  border-radius: 14px;
  padding: 18px 20px;
}
.module-info h4 { font-size: 1rem; font-weight: 700; color: var(--c-dark); margin-bottom: 6px; }
.module-info p { font-size: .95rem; font-weight: 400; color: var(--c-gray-800); }
.js .module-info:not(.open) { display: none; }
/* Offene Karte wird per JS hinter den letzten Chip ihrer Zeile verschoben und nimmt dort die volle Breite ein */
.chip-list .module-info { flex: 1 0 100%; margin: 4px 0 6px; }
.price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}
.price-note p { font-weight: 400; color: var(--c-gray); flex: 1 1 320px; }
.price-note p strong { color: var(--c-white); font-weight: 700; }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: var(--c-white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-weight: 900;
  color: var(--c-green);
  font-size: 1.3rem;
  line-height: 1.2;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; font-weight: 400; color: var(--c-gray); }
.faq summary:focus-visible { outline: 3px solid var(--c-green); outline-offset: 4px; border-radius: 8px; }

/* ---- Kontakt ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  grid-column: 1 / -1;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--c-white);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: center;
}
.contact-card a { color: var(--c-green); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .label {
  display: block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gray);
  font-weight: 900;
  margin-bottom: 4px;
}
.contact-card .hours { font-weight: 600; font-size: 1.05rem; }
/* Standorte wie bleckmann.de/kontakt: Liste links, Karte rechts; ein <li> je Standort, aktiver Standort mit grünem Balken */
.locations-title {
  margin-top: 48px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  color: var(--c-green);
}
.locations-sub { margin-top: 6px; color: var(--c-gray); font-weight: 400; }
.reach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: var(--glass);
}
@media (min-width: 900px) {
  .reach { grid-template-columns: minmax(min(300px, 100%), 400px) 1fr; }
}
.locations { list-style: none; }
.locations li {
  display: grid;
  grid-template-columns: 1fr; /* Ort, Adresse, Telefon untereinander wie auf bleckmann.de */
  gap: 2px;
  padding: 18px 22px 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-left: 4px solid transparent;
}
.locations li.is-active { background: rgba(255,255,255,.05); border-left-color: var(--c-green); }
.js .locations li { cursor: pointer; } /* ganzer Kasten schaltet die Karte um */
.js .locations li:hover { background: rgba(255,255,255,.04); }
.locations .city {
  display: block;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-white);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.locations .city:hover { color: var(--c-green); }
.locations .city:focus-visible { outline: 3px solid var(--c-green); outline-offset: 3px; border-radius: 4px; }
.locations address { font-style: normal; font-weight: 400; color: var(--c-gray); margin-top: 2px; }
.locations a {
  color: var(--c-green);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: .95rem;
}
.locations a:hover { text-decoration: underline; }
/* Karte: Platzhalter bis zum Klick, danach füllt das iframe die Fläche */
.map {
  position: relative;
  min-height: 420px;
  background: var(--c-anthracite);
  border-left: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 899px) {
  .map { min-height: 360px; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(129,183,49,.18), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px);
}
.map.ready .map-placeholder { display: none; }
.map-address { font-size: 1.05rem; color: var(--c-white); font-weight: 400; }
.map-address strong { font-weight: 700; }
.map-hint { font-size: .85rem; color: var(--c-gray); max-width: 420px; font-weight: 400; }
.map-hint a { color: var(--c-green); font-weight: 600; text-decoration: none; }
.map-hint a:hover { text-decoration: underline; }
.map-load { display: none; } /* ohne JavaScript nutzlos */
.js .map-load { display: inline-block; }
.map-link { color: var(--c-green); font-weight: 600; text-decoration: none; font-size: .95rem; }
.map-link:hover { text-decoration: underline; }
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.about p { flex: 1 1 400px; font-weight: 400; color: var(--c-gray); }
.about .org-chip {
  background: var(--c-white);
  border-radius: 14px;
  padding: 12px 22px;
}
.about .org-chip img { height: 40px; width: auto; display: block; }

/* ---- Badge ---- */
.badge-blue {
  display: inline-block;
  background: rgba(0,122,204,.15);
  border: 1px solid rgba(0,122,204,.5);
  color: var(--c-blue-light);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .82rem;
  font-weight: 600;
}

/* ---- CTA-Band (grüne Fläche wie die Topbar) ---- */
.cta-band {
  background: var(--c-green);
  color: var(--c-dark); /* dunkler Text auf Grün: 7,1:1 */
  text-align: center;
}
.cta-band .btn--ghost {
  color: var(--c-dark);
  border-color: rgba(28,28,28,.7);
}
.cta-band .btn--ghost:hover { background: rgba(28,28,28,.1); }
.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ============ Footer (wie bleckmann.de: Verlauf, Claim, Social-Icons, Spalten, Fußzeile) ============ */
.site-footer {
  background: var(--grad-footer);
  color: var(--c-muted);
  padding: 64px 0 0;
  font-weight: 400;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 40px 32px;
  padding-bottom: 56px;
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr 1.3fr; }
  .footer-brand { grid-column: auto; padding-right: 32px; }
}
.site-footer .logo img { height: 30px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 360px; margin-bottom: 20px; line-height: 1.6; }
.social { list-style: none; display: flex; gap: 12px; margin-bottom: 26px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: var(--c-white);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.social a:hover { background: var(--c-green); color: var(--c-dark); transform: translateY(-2px); }
.site-footer h4 {
  color: var(--c-muted);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.site-footer a { color: var(--c-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-white); }
.site-footer .btn--green { color: var(--c-dark); } /* .site-footer a wäre sonst spezifischer als .btn--green */
.site-footer .btn--green:hover { color: var(--c-dark); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  background: var(--c-anthracite);
  padding: 22px 0;
  text-align: center;
  font-size: .85rem;
  font-weight: 300;
  color: #E5E5E5;
}

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .header-phone { display: none; } /* Telefonnummer steht im Mobile-Menü */
  .site-header .btn { padding: 10px 16px; font-size: 14px; }
  .hero { padding: 64px 0 72px; }
  section { padding: 64px 0; }
  .fact { font-size: 14px; padding: 10px 18px; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; padding: 7px 16px; }
}

/* ====================================================================
   Kontaktseite (kontakt.html, <body class="page-kontakt">)
   Alles oberhalb gilt für beide Seiten. Hier stehen nur die Regeln, die
   es nur auf der Kontaktseite gibt, und die wenigen Abweichungen von der
   Startseite (kompaktere Abstände, Ablauf-Karten ohne Pfeile).
   ==================================================================== */
.page-kontakt section { padding: 72px 0; }
.page-kontakt .section-head { margin-bottom: 40px; }
.page-kontakt .eyebrow { margin-bottom: 28px; }

/* ============ Seitenkopf (kompakter Hero, gleicher Verlauf) ============ */
.page-hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--c-white);
  overflow: hidden;
  text-align: center;
  padding: 72px 0 80px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  max-width: 860px;
  margin: 0 auto 20px;
}
.page-hero .sub {
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--c-white);
  max-width: 720px;
  margin: 0 auto;
}
.page-hero .sub strong { color: var(--c-white); font-weight: 700; }
.page-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--c-white);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.page-hero .back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ Formular-Karte (dunkel wie die übrigen Kästen; Microsoft Forms bringt seinen hellgrünen Rahmen selbst mit) ============ */
.form-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.form-embed { padding: 10px; }
/* Microsoft Forms meldet seine Höhe nicht (kein postMessage) und passt sie nicht an das iframe an.
   Die Inhaltshöhe hängt von der iframe-Breite ab, deshalb gestaffelte Höhen je Viewport-Breite.
   Gemessen am 2026-10-21 in Chromium mit 6 Fragen (iframe-Breite → Inhaltsende in px):
   324–330→1917 · 345→1835 · 365→1816 · 375→1798 · 405→1695 · 443→1695 · 475→1615 · 505→1595 ·
   545→1565 · 561–641→1525–1541 · 719→1483 · 761→1476 · ab 769 (Desktop-Layout)→1762 · 821–883→1722.
   Firefox rendert etwas kompakter, dort bleibt unten ein kleiner grüner Rand.
   Kommt eine Frage dazu: alle Werte um ca. 150 px erhöhen. */
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1770px;                     /* ab 901 px Viewport */
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent; /* bis Forms geladen ist, bleibt die dunkle Karte sichtbar */
}
@media (max-width: 900px) { .form-embed iframe { height: 1810px; } }
/* 849–900 px: Desktop-Layout, schmal */
@media (max-width: 848px) { .form-embed iframe { height: 1570px; } }
/* 721–848 px */
@media (max-width: 720px) { .form-embed iframe { height: 1600px; } }
/* 581–720 px */
@media (max-width: 640px) {
  /* Auf Smartphones braucht Forms die volle Breite, sonst erscheint im iframe ein horizontaler Scrollbalken */
  #formular .container { padding-left: 10px; padding-right: 10px; }
  .form-embed { padding: 0; }
  .form-embed iframe { height: 1600px; border-radius: 0 0 14px 14px; } /* 581–640 px */
}
@media (max-width: 580px) { .form-embed iframe { height: 1640px; } }
/* 541–580 px */
@media (max-width: 540px) { .form-embed iframe { height: 1690px; } }
/* 511–540 px */
@media (max-width: 510px) { .form-embed iframe { height: 1740px; } }
/* 441–510 px */
@media (max-width: 440px) {
  /* Karte randlos, damit das iframe die volle Viewport-Breite bekommt (Forms braucht mindestens ca. 323 px).
     Unterhalb von ca. 370 px iframe-Breite zeigt Forms ein randloses Layout mit hellem Hintergrund. */
  #formular .container { padding-left: 0; padding-right: 0; }
  .form-card { border-radius: 0; border-left: 0; border-right: 0; }
  .form-embed iframe { height: 1760px; border-radius: 0; }              /* 411–440 px */
}
@media (max-width: 410px) { .form-embed iframe { height: 1840px; } }
/* 381–410 px */
@media (max-width: 380px) { .form-embed iframe { height: 2000px; } }
/* 340–380 px */

/* Unter ca. 323 px iframe-Breite rendert Forms nicht mehr, sondern nur eine türkise Seite mit Link.
   Dann zeigen wir stattdessen einen eigenen Button, der das Formular in einem neuen Tab öffnet. */
.form-narrow { display: none; padding: 32px 20px; text-align: center; }
.form-narrow p { font-weight: 400; color: var(--c-gray); margin-bottom: 18px; }
@media (max-width: 339px) {
  .js .form-embed.ready iframe { display: none; }
  .js .form-embed.ready .form-narrow { display: block; }
}

/* Platzhalter, solange noch kein Microsoft-Forms-Link eingetragen ist (auf der dunklen Karte) */
.form-placeholder {
  margin: 24px;
  padding: 40px 28px;
  border: 2px dashed rgba(129,183,49,.6);
  border-radius: 14px;
  background: rgba(129,183,49,.08);
  text-align: center;
}
.form-placeholder h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.form-placeholder p { font-weight: 400; color: var(--c-gray); max-width: 560px; margin: 0 auto; }
.form-placeholder a { color: var(--c-green); font-weight: 600; }
.form-placeholder code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: .9em;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  padding: 2px 6px;
}
.js .form-embed[data-forms-url]:not([data-forms-url=""]) .form-placeholder { display: none; }
/* Felder-Vorschau: zeigt den Aufbau des Formulars, solange es noch nicht eingebettet ist */
.field-preview {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 22px auto 0;
  text-align: left;
}
.field-preview li {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--c-gray);
  font-size: .95rem;
}
.field-preview li.wide { grid-column: 1 / -1; }
.field-preview .req { color: var(--c-green); font-weight: 900; }
.form-note {
  max-width: 900px;
  margin: 20px auto 0;
  font-size: .9rem;
  font-weight: 400;
  color: var(--c-muted);
  text-align: center;
}
.form-note a { color: var(--c-green); font-weight: 600; text-decoration: none; }
.form-note a:hover { text-decoration: underline; }
.js .form-open-link:not(.ready) { display: none; }

/* Ablauf nach der Anfrage: wie die Integrations-Schritte der Startseite, aber ohne Pfeile */
.page-kontakt .steps {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin-top: 40px;
}
.page-kontakt .step { padding: 28px 26px; }
.page-kontakt .step .num { margin-bottom: 14px; }
.page-kontakt .step h3 { font-size: 1.05rem; margin-bottom: 6px; }
@media (min-width: 900px) {
  .page-kontakt .step:not(:last-child)::after { content: none; }
}

@media (max-width: 640px) {
  .page-hero { padding: 56px 0 60px; }
  .page-kontakt section { padding: 56px 0; }
  .form-placeholder { margin: 16px; padding: 28px 18px; }
}
