/* ============================================================
   BAROIAN Werbeagentur — Design System
   Palette: Ink-Navy / Paper / Brand-Blau #3E77BC / Amber-Signal
   Typo: Bricolage Grotesque (Display) · Instrument Sans (Text)
         IBM Plex Mono (Labels/Daten)
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-v9-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-v9-latin_latin-ext-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-v4-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-v20-latin_latin-ext-500.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0B1D33;
  --ink-2: #12294A;
  --ink-3: #1A3560;
  --paper: #FFFFFF;
  --paper-2: #F2F6FB;
  --brand: #3E77BC;
  --brand-deep: #2C5E9E;
  --accent: #FFB224;
  --accent-deep: #E89A00;
  --text: #22303F;
  --muted: #56677B;
  --line: #D9E3EF;
  --line-dark: rgba(255, 255, 255, 0.14);
  --ok: #2E9E6B;
  --err: #C43D3D;

  --font-display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 8px;
  --radius-s: 5px;
  --shadow-1: 0 1px 2px rgba(11, 29, 51, 0.06), 0 8px 24px rgba(11, 29, 51, 0.07);
  --shadow-2: 0 2px 6px rgba(11, 29, 51, 0.08), 0 18px 44px rgba(11, 29, 51, 0.13);

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.85rem + 2vw, 3.5rem);
  --step-5: clamp(2.75rem, 2.1rem + 3.2vw, 4.75rem);

  --space-section: clamp(4.5rem, 3.4rem + 5vw, 7.5rem);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h4, h5 { font-family: var(--font-body); font-weight: 700; color: var(--ink); margin: 0 0 0.5em; line-height: 1.3; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
strong { color: var(--ink); }
::selection { background: var(--brand); color: #fff; }

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

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

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Eyebrow / Labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--brand);
  flex: none;
}
.on-dark .eyebrow { color: #9CC0EA; }
.on-dark .eyebrow::before { background: var(--accent); }

/* Marker-Unterstreichung für Schlüsselwörter in Headlines */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: '';
  position: absolute;
  left: -0.06em; right: -0.06em; bottom: 0.055em;
  height: 0.16em;
  background: var(--accent);
  z-index: -1;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-deep); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232, 154, 0, 0.32); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(232, 154, 0, 0.24); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 29, 51, 0.24); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: #fff; }
.on-dark .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { flex: none; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand-logo { display: flex; align-items: center; flex: none; }
.brand-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a[aria-current='page'] { border-bottom-color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
    /* Aufgeklapptes Menü scrollt, wenn es höher als der Bildschirm ist */
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  /* Einheitliche Zeilen: Trennlinie auf dem <li>, gleiche Höhe für ALLE Menüpunkte */
  .nav-links > li { border-bottom: 1px solid var(--paper-2); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links > li > a { display: block; padding: 0.95rem 0.25rem; font-size: 1.05rem; border-bottom: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #E8EFF8;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4.5rem, 4rem + 4vw, 8rem);
}
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.h1-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: #9CC0EA;
  margin-top: 0.9em;
  text-wrap: pretty;
}
.hero .lead { font-size: var(--step-1); color: #C3D4E8; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.hero-meta .meta-item { font-size: 0.92rem; color: #9DB4CE; }
.hero-meta .meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  letter-spacing: 0;
}

/* Globus-Meridian-Hintergrund (Signature, aus dem Logo abgeleitet) */
.globe-bg {
  position: absolute;
  right: -12%;
  top: 50%;
  width: min(58vw, 860px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .globe-bg .globe-spin {
    animation: globe-rotate 90s linear infinite;
    transform-origin: center;
  }
}
@keyframes globe-rotate {
  to { transform: rotate(360deg); }
}

/* ---------- Such-Demo (Signature-Element) ---------- */
.search-demo {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.search-demo-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-demo-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.search-demo-head .dot:first-child { background: var(--accent); }
.search-input {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.1rem;
  padding: 0.8rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.98rem;
  color: var(--ink);
}
.search-input svg { flex: none; color: var(--brand); }
.type-target { font-weight: 500; min-height: 1.4em; line-height: 1.4; }
.type-caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--brand);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .type-caret { animation: none; }
}
.search-results { padding: 0 1.1rem 1.2rem; }
.result-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-s);
}
.result-row.win { background: var(--paper-2); border: 1px solid var(--line); }
.result-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--line);
  color: var(--muted);
}
.result-row.win .result-rank { background: var(--accent); color: var(--ink); }
.result-title { font-weight: 600; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }
.result-row.win .result-title { color: var(--brand-deep); }
.result-url { font-size: 0.78rem; color: #147A44; font-family: var(--font-mono); }
.result-snippet { font-size: 0.85rem; color: var(--muted); line-height: 1.45; margin-top: 0.15rem; }
.result-skeleton { height: 9px; border-radius: 4px; background: var(--line); margin-top: 0.5rem; }
.result-skeleton.s2 { width: 72%; }
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(62, 119, 188, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin: 0 1.1rem 0.9rem;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .search-demo { justify-self: stretch; max-width: 560px; }
  .globe-bg { right: -40%; top: 20%; opacity: 0.1; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #C9D8EA; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { max-width: 46em; margin-bottom: clamp(2.2rem, 2rem + 2vw, 3.8rem); }
.section-head .lead { font-size: var(--step-1); color: var(--muted); }
.section-dark .section-head .lead { color: #A9BFD8; }

/* Meridian-Trennlinie */
.meridian {
  border: none;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, var(--line) 0 30%, var(--brand) 30% 34%, var(--line) 34%);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: #BFD2E8; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-s);
  display: grid;
  place-items: center;
  background: rgba(62, 119, 188, 0.1);
  color: var(--brand-deep);
  margin-bottom: 1.2rem;
}
.card h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.card p { color: var(--muted); font-size: 0.97rem; flex-grow: 1; }
.card .card-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.card .card-link::after { content: '→'; transition: transform 0.15s ease; }
.card:hover .card-link::after { transform: translateX(4px); }
a.card { text-decoration: none; color: inherit; }

.section-dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.section-dark .card p { color: #A9BFD8; }
.section-dark .card h3 { color: #fff; }
.section-dark .card .icon { background: rgba(255, 178, 36, 0.14); color: var(--accent); }
.section-dark .card .card-link { color: #9CC0EA; }

/* ---------- Prozess / Schritte ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-deep);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.step p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ---------- Zahlen / Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
}
.stat {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  color: var(--ink);
  line-height: 1.05;
}
.section-dark .stat strong { color: #fff; }
.stat span { color: var(--muted); font-size: 0.95rem; }
.section-dark .stat span { color: #A9BFD8; }

/* ---------- Branchen-Verzeichnis ---------- */
.industry-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.industry-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.industry-list a::after { content: '→'; color: var(--brand); }
.industry-list a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-1); }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 50em; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  margin-bottom: 0.8rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brand);
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Testimonial / Zitat ---------- */
.quote {
  border-left: 3px solid var(--accent);
  padding: 0 0 0 1.6rem;
  margin: 0;
}
.quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.quote > :first-child { margin-top: 0; }
.quote > :last-child { margin-bottom: 0; }
.section-dark .quote p { color: #fff; }
.quote footer { color: var(--muted); font-size: 0.95rem; margin-top: 0.8rem; }
.section-dark .quote footer { color: #A9BFD8; }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: #C9D8EA;
  overflow: hidden;
}
.cta-band .container {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 2rem;
}
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { margin: 0; color: #A9BFD8; max-width: 38em; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
@media (max-width: 780px) {
  .cta-band .container { grid-template-columns: 1fr; }
}

/* ---------- Inhaltsseiten / Prosa ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.4em; }
.prose ul li::marker { color: var(--brand); }
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.7em;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.6 11.6 3.4 8.4l1.1-1.1 2.1 2.1 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.6 11.6 3.4 8.4l1.1-1.1 2.1 2.1 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: var(--brand);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding-block: 1.1rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 0.45rem; align-items: center; }
.breadcrumbs li + li::before { content: '/'; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-deep); }

/* ---------- Page-Hero (Unterseiten) ---------- */
.page-hero {
  background: var(--ink);
  color: #C3D4E8;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(3.2rem, 2.6rem + 3vw, 5.5rem); }
/* Markeneigenes Globus-Motiv (dezent, rechts) */
.page-hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-260px, -14vw, -120px);
  width: min(60vw, 560px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url('/assets/img/motif-globe.svg') center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 720px) {
  .page-hero::after { opacity: 0.28; right: -40%; top: 22%; }
}
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero .lead { font-size: var(--step-1); color: #C3D4E8; max-width: 36em; margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 1.8rem; }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.92rem; color: var(--ink); display: block; margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 0.85rem; color: var(--muted); }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius-s); font-weight: 500; margin-bottom: 1.2rem; }
.form-status.ok { background: rgba(46, 158, 107, 0.1); color: var(--ok); border: 1px solid rgba(46, 158, 107, 0.35); }
.form-status.err { background: rgba(196, 61, 61, 0.08); color: var(--err); border: 1px solid rgba(196, 61, 61, 0.3); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Kontakt-Karte ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-list svg { flex: none; color: var(--brand); margin-top: 0.2rem; }
.contact-info-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-info-list a:hover { color: var(--brand-deep); }
.contact-info-list .sub { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A9BFD8;
  position: relative;
  overflow: hidden;
}
.site-footer .container { position: relative; z-index: 2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #C3D4E8; text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 26px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; max-width: 26em; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7E96B2;
}
.footer-bottom a { color: #7E96B2; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll-Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
  .reveal-delay-1 { transition-delay: 0.09s; }
  .reveal-delay-2 { transition-delay: 0.18s; }
  .reveal-delay-3 { transition-delay: 0.27s; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mega-Menü ---------- */
.has-mega .nav-item-row { display: flex; align-items: center; gap: 2px; }
.mega-toggle {
  background: none;
  border: none;
  padding: 0.35rem 0.3rem;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-s);
}
.mega-toggle svg { transition: transform 0.18s ease; }
.has-mega.open > .nav-item-row .mega-toggle svg { transform: rotate(180deg); }
.mega-card a { border-bottom: none; }
.mega-item { display: block; padding: 0.65rem 0.75rem; border-radius: var(--radius-s); text-decoration: none; }
/* Spezifischer als .nav-links a (sonst wird das horizontale Padding auf 0 ueberschrieben) */
.mega-card .mega-item { padding: 0.6rem 0.9rem; }
.mega-item:hover { background: var(--paper-2); }
.mega-item-title { display: block; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.mega-item-desc { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.1rem; }
.mega-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
  margin: 0 0 0.5rem;
}
.mega-group ul { list-style: none; padding: 0; margin: 0; }
.mega-group li { margin: 0; }
.mega-link {
  display: block;
  padding: 0.32rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}
.mega-link:hover { color: var(--brand-deep); }
.mega-all {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-deep);
  text-decoration: none;
  grid-column: 1 / -1;
}
.mega-all::after { content: ' →'; }
.mega-all:hover { color: var(--brand); }

@media (min-width: 921px) {
  .has-mega { position: relative; }
  .mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease;
    z-index: 120;
  }
  .has-mega:hover > .mega-panel,
  .has-mega:focus-within > .mega-panel,
  .has-mega.open > .mega-panel { opacity: 1; visibility: visible; }
  .mega-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    padding: 1.4rem;
  }
  .mega-services .mega-card { width: 400px; display: grid; gap: 0.3rem; }
  .mega-industries .mega-card {
    width: min(680px, calc(100vw - 3rem));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }
}

@media (max-width: 920px) {
  /* has-mega-Zeile exakt so hoch wie eine normale Menüzeile */
  .has-mega .nav-item-row { display: flex; align-items: center; justify-content: space-between; border-bottom: none; }
  .has-mega .nav-item-row > a { flex: 1; display: block; padding: 0.95rem 0.25rem; font-size: 1.05rem; border-bottom: none; }
  .mega-toggle { padding: 0.95rem 0.6rem; margin-right: -0.25rem; color: var(--muted); }
  .mega-panel { display: none; padding: 0 0 0.9rem 0.9rem; }
  .has-mega.open > .mega-panel { display: block; }
  .nav-links .mega-panel a { border-bottom: none; padding: 0.5rem 0; font-size: 1rem; }
  .mega-item { padding: 0.5rem 0; }
  .mega-item-desc { display: none; }
  .mega-group { margin-bottom: 1.2rem; }
  .mega-group:last-of-type { margin-bottom: 0.4rem; }
  .mega-group-title { font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.65rem; }
  .mega-card { display: block; }
}

/* ---------- Referenz-Logos ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.4rem 1.6rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.logo-strip li {
  margin: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* object-fit: contain hält JEDES Logo seitenverhältnistreu, keine Verzerrung */
.logo-strip img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.logo-strip img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Referenz-Logos: laufende Marquee (per JS aufgebaut) ---------- */
.logo-marquee {
  --marquee-gap: clamp(2.4rem, 1.6rem + 3vw, 4.5rem);
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 1.2rem + 1vw, 2.6rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.logo-marquee-row {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--marquee-gap);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  will-change: transform;
  animation: logo-scroll var(--marquee-duration, 60s) linear infinite;
}
.logo-marquee-row.reverse { animation-direction: reverse; }
.logo-marquee:hover .logo-marquee-row,
.logo-marquee:focus-within .logo-marquee-row { animation-play-state: paused; }
.logo-marquee-row li {
  flex: 0 0 auto;
  height: 48px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-marquee-row img {
  max-height: 100%;
  max-width: clamp(88px, 11vw, 152px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.logo-marquee-row img:hover { filter: grayscale(0); opacity: 1; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - (var(--marquee-gap) / 2))); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-row { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ---------- Feature-Zeilen (asymmetrisch, alternierend) ---------- */
.feature-rows { display: flex; flex-direction: column; gap: clamp(3rem, 2.4rem + 2vw, 5.5rem); }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.feature-row.reverse .feature-visual { order: -1; }
.feature-row h3 { font-size: var(--step-2); font-family: var(--font-display); letter-spacing: -0.01em; }
.feature-row p { color: var(--muted); }
.feature-visual {
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}
.section-dark .feature-visual { background: var(--ink-2); border-color: var(--line-dark); }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }
}

/* ---------- Bento-Grid (gemischte Kachelgrößen) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.bento > * { grid-column: span 2; }
.bento .bento-lg { grid-column: span 4; }
.bento .bento-full { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento .bento-lg { grid-column: span 1; } .bento .bento-full { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .bento-lg, .bento .bento-full { grid-column: auto; } }

/* ---------- Prozess-Timeline (vertikal mit Verbindungslinie) ---------- */
.timeline { display: grid; gap: 1.8rem; max-width: 46em; }
.timeline-item { position: relative; padding-left: 3rem; }
.timeline-item::before {
  content: attr(data-step);
  position: absolute; left: 0; top: -0.1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
}
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute; left: 0.97rem; top: 2.3rem; bottom: -1.8rem; width: 1.5px; background: var(--line);
}
.timeline-item h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: 0.3rem; }
.timeline-item p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.section-dark .timeline-item:not(:last-child)::after { background: var(--line-dark); }
.section-dark .timeline-item p { color: #A9BFD8; }

/* ---------- Callout (hervorgehobene Kernaussage) ---------- */
.callout {
  border-radius: var(--radius);
  background: var(--ink);
  color: #E8EFF8;
  padding: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  display: grid;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}
.callout h2, .callout h3 { color: #fff; margin: 0; }
.callout p { color: #A9BFD8; margin: 0; max-width: 42em; }
.callout .btn { justify-self: start; }

/* ---------- USP-Reihe ("Warum BAROIAN") ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem 1.8rem;
}
.usp {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--line);
}
.usp .usp-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-s);
  display: grid; place-items: center;
  background: rgba(62, 119, 188, 0.1);
  color: var(--brand-deep);
  margin-bottom: 0.3rem;
}
.usp h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.usp p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.section-dark .usp { border-top-color: var(--line-dark); }
.section-dark .usp h3 { color: #fff; }
.section-dark .usp p { color: #A9BFD8; }
.section-dark .usp .usp-icon { background: rgba(255, 178, 36, 0.14); color: var(--accent); }
/* erste USP (KI) hervorheben */
.usp.usp-lead { border-top-color: var(--accent); }

/* ---------- Floating-Kontaktleiste (Mobile & Tablet) ---------- */
.contact-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(11, 29, 51, 0.1);
  padding: 0.4rem 0.5rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
}
.contact-bar-inner {
  display: flex;
  gap: 0.4rem;
  max-width: 560px;
  margin-inline: auto;
}
.contact-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
.contact-bar a:active { background: var(--line); }
.contact-bar a svg { width: 21px; height: 21px; flex: none; }
.contact-bar a.cb-call { color: var(--brand-deep); }
.contact-bar a.cb-wa { color: #147A44; }
.contact-bar a.cb-cta { background: var(--accent); color: var(--ink); }
.contact-bar a.cb-cta:active { background: var(--accent-deep); }

@media (max-width: 920px) {
  .contact-bar { display: block; }
  body { padding-bottom: 72px; }
  body.nav-open .contact-bar { display: none; }
}

/* ---------- CTA-Band: Globus-Motiv (Konsistenz zum Hero) ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: clamp(-280px, -16vw, -140px);
  top: 50%;
  width: min(56vw, 540px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url('/assets/img/motif-globe.svg') center / contain no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
@media (max-width: 780px) { .cta-band::after { opacity: 0.2; left: -45%; } }

/* ---------- Reduced Motion: Interaktions-Transforms neutralisieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .btn:active, .card:hover, .industry-list a:hover, .step:hover,
  .usp:hover, .search-demo:hover { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .search-demo, .globe-bg, .contact-bar { display: none; }
  body { color: #000; padding-bottom: 0; }
}
