/* === SELBST GEHOSTETE SCHRIFTEN — Google Fonts entfernt (DSGVO: keine IP-Übertragung an Google) === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === DESIGN SYSTEM — light, clean, Enlyze-inspired === */
:root {
  --bg: #faf6ed;
  --bg-alt: #ebe4d1;
  --bg-soft: #f2ebdd;
  --border: #e6e8ee;
  --border-strong: #d1d5db;
  --ink: #0a1628;
  --ink-2: #1f2937;
  --ink-3: #4b5563;
  --muted: #565d6a; /* WCAG AA: 6.14:1 auf --bg, 5.22:1 auf --bg-alt (vorher #6b7280 = 4.48/3.81, durchgefallen) */
  --muted-soft: #767d8a; /* abgedunkelt von #9ca3af fuer bessere Lesbarkeit dezenter Labels */
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-tint: #dbeafe;
  --success: #059669;
  --flow-hub: #1e3a8a; /* Diagramm-Erfolg-Hub: kraeftiges Royal-Blau (nicht schwarz), Weisstext 10.4:1 */
  --accent-light: #60a5fa; /* helle Akzent-Variante (Resilienz-Kurve, heller Kurvenanfang) */
  /* harmonische Akzent-Palette (Mehrfarbigkeit über der blauen Basis) */
  --c1: #2563eb;
  --c2: #7c3aed;
  --c3: #0d9488;
  --c4: #d97706;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.10);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  /* Bessere Zeilenumbrüche — verhindert Em-Dashes/Bindewörter am Zeilenanfang in modernen Browsern */
  text-wrap: pretty;
  hyphens: auto;
}
/* Überschriften NICHT silbentrennen — auto-hyphens wirkt auf großen Display-Headlines billig
   (z. B. „kri-senfest"). text-wrap: balance verteilt die Zeilen gleichmäßiger. */
h1, h2, h3, h4, h5, h6, .display {
  hyphens: manual;
  -webkit-hyphens: manual;
  text-wrap: balance;
}
.display { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.025em; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
/* Inline-Prosa-Links unterstrichen: erkennbar ohne sich allein auf Farbe zu verlassen
   (WCAG 1.4.1). Nur echte Fliesstext-Links in <p>, nicht Buttons/Nav/Karten. */
p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
p a:not(.btn):hover { text-decoration-thickness: 2px; }

/* === SKIP-LINK (WCAG 2.4.1 „Bypass Blocks") ===
   Per Tastatur als erstes Element erreichbar; sichtbar nur bei Fokus. */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: top .18s ease;
}
.skip-link:focus {
  top: 16px;
  color: #fff;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Fokus springt auf <main>, aber ohne optischen Rahmen ums ganze Element */
main:focus, main:focus-visible { outline: none; }

/* Bewegung reduzieren: weiches Scrollen abschalten (weitere Blöcke folgen unten) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, padding .25s, background .25s;
}
.nav.scrolled {
  border-color: var(--border);
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.96);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo .nav-wordmark { display: none; }
.nav-logo img {
  height: 64px !important;
  width: auto !important;
  display: block !important;
  transition: height .25s;
}
.nav.scrolled .nav-logo img { height: 52px !important; }
.nav.scrolled .nav-logo img { height: 52px; }
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 15px;
  margin-right: auto;
}
@media (max-width: 1380px) {
  .nav-links { gap: 20px; font-size: 14.5px; }
}
.nav-links a {
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 500;
  transition: color .25s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.nav-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
  line-height: 1;
}
.nav-contact-link:hover { color: var(--accent); }
.nav-contact-link svg { opacity: 0.6; transition: opacity .2s; flex-shrink: 0; }
.nav-contact-link:hover svg { opacity: 1; }
/* Bei mittleren Bildschirmen E-Mail-Text ausblenden, nur Icon (Telefon-Nr. bleibt) */
@media (max-width: 1440px) {
  .nav-contact-link[href^="mailto"] span { display: none; }
}
@media (max-width: 1180px) {
  .nav-contact { display: none; }
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all .25s;
  border: 1px solid var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu a:last-of-type { border-bottom: none; }

/* === Leistungen-Dropdown === */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown-caret { transition: transform .25s; opacity: .65; }
.nav-dropdown:hover .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 240px;
  transform: translateX(-50%) translateY(6px);
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 26px 50px -18px rgba(10, 22, 40, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -14px;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  border-radius: 7px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-dropdown-menu a.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.mobile-menu .mobile-sub {
  padding: 11px 0 11px 24px;
  font-size: 14px;
  color: var(--ink-3);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all .25s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }

/* === SECTIONS === */
section { padding: 120px 0; position: relative; }
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 880px;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 720px;
}

.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--bg-soft); }

/* === HERO (page header) === */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-tint);
  color: var(--accent-dark);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(48px, 7.6vw, 104px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 1100px;
}
.hero-sub { margin-top: 36px; }
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 28px;
  max-width: 720px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-3);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* compact page header (inner pages) */
.page-header {
  padding: 160px 0 80px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 50%; height: 100%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.page-header h1 em { font-style: normal; color: var(--accent); }
.page-header p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-3);
  max-width: 720px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* === STATS === */
.stats-row {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .num span { color: var(--accent); }
.stat .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

/* === CARDS === */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-tint);
  box-shadow: var(--shadow-lg);
}

/* services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
}
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-tint);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 28px;
  transition: all .35s;
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05) rotate(-4deg);
}
.service-roman {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.service-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink);
}
.service-focus {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 12px;
  line-height: 1.6;
}
.service-focus strong { color: var(--ink); font-weight: 600; }
.service-benefit {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}
.service-benefit-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.service-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap .25s, color .25s;
}
.service-link:hover { color: var(--accent); gap: 12px; }

/* === FEATURE LIST === */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: all .25s;
}
.feature:hover {
  border-color: var(--accent-tint);
  background: var(--accent-soft);
  transform: translateX(4px);
}
.feature-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s;
}
.testimonial:hover {
  border-color: var(--accent-tint);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.testimonial-org {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* marquee */
.marquee-wrapper { position: relative; overflow: hidden; }
.marquee {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee .testimonial {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.marquee .testimonial .testimonial-author { margin-top: auto; }
.marquee-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}
.marquee-fade.left {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.marquee-fade.right {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}
.section-alt .marquee-fade.left {
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.section-alt .marquee-fade.right {
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}

/* === NEWS GRID === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-tint);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.news-image {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-tint));
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-image-icon {
  color: var(--accent);
  opacity: 0.85;
  transition: transform .5s;
}
.news-card:hover .news-image-icon { transform: scale(1.1); }
.news-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-tint);
}
.news-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.news-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color .25s;
}
.news-card:hover .news-title { color: var(--accent); }
.news-excerpt {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
}
.news-card:hover .news-link { gap: 10px; }

/* === CTA === */
.cta {
  padding: 120px 0;
  background: var(--bg-alt);
}
.cta-card {
  background: linear-gradient(135deg, var(--ink) 0%, #0f1d36 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.25), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.15), transparent 50%);
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.cta-card h2 em { font-style: normal; color: #7aa9ff; }
.cta-card p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-card .btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.cta-card .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cta-card .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  background: #fff;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}
.footer-brand p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 360px;
}
.footer-col h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: all .2s;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* === REVEAL ===
   Inhalt ist standardmaessig SICHTBAR. Nur wenn JS aktiv ist (html.js, gesetzt
   im <head>-Init vor dem ersten Paint), wird der Start-Zustand versteckt und
   per IntersectionObserver eingeblendet. Verhindert leere Sektionen bei
   deaktiviertem JS, Headless-Render und Suchmaschinen-Crawlern. */
.reveal {
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
}
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: all .25s;
}
.contact-info-item:hover {
  border-color: var(--accent-tint);
  box-shadow: var(--shadow-md);
}
.contact-info-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info-text .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info-text .value {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.contact-info-text .value a { color: var(--ink); text-decoration: none; }
.contact-info-text .value a:hover { color: var(--accent); }

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.about-badge {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 2;
}
.about-badge-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.about-badge-text .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.about-badge-text .role {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* === ARTICLE === */
.article-header {
  padding: 140px 0 64px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.article-header .breadcrumb { margin-bottom: 24px; }
.article-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.article-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 880px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.article-meta .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.article-body { padding: 72px 0 96px; }
.article-body .lead {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-body p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 56px 0 20px;
}
.article-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 12px;
}
.article-body ul, .article-body ol {
  margin: 0 0 28px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: list-counter;
}
.article-body ul li, .article-body ol li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-3);
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 1.5px;
  background: var(--accent);
}
.article-body ol li { counter-increment: list-counter; }
.article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px; height: 22px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.article-cta {
  margin: 56px 0 32px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--accent-tint);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.article-cta-text { font-size: 16px; color: var(--ink); font-weight: 600; }
.article-cta-text small { display: block; color: var(--ink-3); font-weight: 400; margin-top: 4px; font-size: 14px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 24px;
  transition: color .2s, transform .2s;
}
.article-back:hover { color: var(--accent); transform: translateX(-3px); }

/* === DASHBOARD VISUAL (problem section) === */
.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dash-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.dash-title-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}
.dash-pill {
  background: var(--accent-soft);
  border: 1px solid var(--accent-tint);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-pill .live {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.dash-chart {
  position: relative;
  height: 180px;
  margin: 0 -4px 8px;
}
.dash-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Y-Achsen-Beschriftung: Schwellen entlang der drei gestrichelten Hilfslinien */
.dash-chart .dash-y-label {
  position: absolute;
  right: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(to right, transparent, #fff 30%);
  padding: 0 4px 0 16px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}
.dash-chart .dash-y-1 { top: 25%;  color: var(--accent); }   /* y=45  → Antifragil */
.dash-chart .dash-y-2 { top: 50%; }                           /* y=90  → Stabil */
.dash-chart .dash-y-3 { top: 75%;  opacity: 0.65; }           /* y=135 → Fragil */

/* Resilienz-Kurve: animierter Verlauf von IST → ZIEL */
.dash-chart .chart-fill { opacity: 0; animation: resFillIn 6s ease-out infinite; }
.dash-chart .chart-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: resDraw 6s ease-out infinite;
}
.dash-chart .pt { opacity: 0; transform-origin: center; transform-box: fill-box; animation: resPop 6s ease-out infinite both; }
.dash-chart .pt.p1 { animation-delay: 0.6s; }
.dash-chart .pt.p2 { animation-delay: 1.5s; }
.dash-chart .pt.p3 { animation-delay: 2.7s; }
.dash-chart .pt.p4 { animation-delay: 4.6s; }
.dash-chart .live-halo { animation: resHaloPulse 1.4s ease-in-out infinite; }

@keyframes resDraw {
  0%   { stroke-dashoffset: 100; }
  83%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes resFillIn {
  0%   { opacity: 0; }
  83%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes resPop {
  0%   { opacity: 0; transform: scale(0.2); }
  60%  { opacity: 1; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes resHaloPulse {
  0%, 100% { fill-opacity: 0.18; }
  50%      { fill-opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-chart .chart-fill,
  .dash-chart .chart-line,
  .dash-chart .pt,
  .dash-chart .live-halo { animation: none; }
  .dash-chart .chart-fill { opacity: 1; }
  .dash-chart .chart-line { stroke-dashoffset: 0; }
  .dash-chart .pt { opacity: 1; transform: none; }
}
.dash-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 4px;
  margin-bottom: 24px;
}
.dash-axis .ist { color: var(--ink-3); }
.dash-axis .ziel { color: var(--accent); }
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.dash-kpi { text-align: left; }
.dash-kpi .label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dash-kpi .value {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.dash-kpi .value .arrow { color: var(--accent); margin-right: 2px; font-size: 14px; }

.problem-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.float-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 2;
}
.float-badge .ico {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.float-badge .txt .label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.float-badge .txt .value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.float-badge.fb-1 {
  top: -7%; right: -6%;
  animation: floatA 6s ease-in-out infinite;
}
.float-badge.fb-2 {
  bottom: -8%; left: -6%;
  animation: floatB 7s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.problem-text p {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.7;
}
.problem-text strong { color: var(--ink); font-weight: 600; }

/* Mobile-CTA innerhalb des Burger-Menüs (groß, primärer Akzent) */
.mobile-menu .mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  width: 100%;
  text-decoration: none;
}
.mobile-menu .mobile-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  /* Desktop-Nav-CTA auf mobile ausblenden — wird durch Burger-Menü-CTA ersetzt */
  .nav-cta { display: none; }
  .hero { padding: 130px 0 70px; }
  .page-header { padding: 120px 0 60px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .problem-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .problem-visual { max-width: 460px; }
  .float-badge.fb-1 { top: 8%; right: 4%; }
  .float-badge.fb-2 { bottom: 10%; left: 4%; }
  .services-grid, .news-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  section { padding: 80px 0; }
  .cta { padding: 80px 0; }
  .cta-card { padding: 56px 28px; }
  .marquee .testimonial { width: 320px; padding: 24px; }
  .contact-form { padding: 28px; }
}
@media (max-width: 540px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* ============================================================
   MOBILE-FEINSCHLIFF — kompaktere Typo, weniger Padding,
   bessere Lesbarkeit auf 375–540 px Bildschirmen
   ============================================================ */
/* === BAFA-Förder-Box (site-weit verwendet auf vortraege.html, leistungen.html etc.) === */
.bafa-card {
  margin: 0;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg));
  border: 1px solid var(--accent-tint);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.bafa-card.bafa-card-leist { margin: 0; }
.bafa-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.bafa-text h2,
.bafa-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.bafa-text p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
  max-width: 640px;
}
.bafa-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
@media (max-width: 800px) {
  .bafa-card {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 16px;
    padding: 22px 22px;
  }
  .bafa-card .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  /* Hero kompakter und ohne erschlagende Headline-Größe */
  .hero { padding: 110px 0 60px; }
  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .hero-eyebrow {
    font-size: 12px;
    padding: 7px 14px;
    margin-bottom: 18px;
  }
  .hero-sub {
    margin-top: 22px;
    font-size: 15.5px;
    line-height: 1.55;
  }
  .hero-actions {
    margin-top: 28px;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { margin-top: 22px; font-size: 12px; }

  /* Stats kompakt im 2×2-Grid */
  .stats-row {
    margin-top: 48px;
    padding-top: 32px;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .stats-row .num { font-size: 32px; }
  .stats-row .label { font-size: 11px; }

  /* Section-Padding zurückfahren */
  section { padding: 56px 0 !important; }
  .cta { padding: 64px 0 !important; }
  .cta-card { padding: 40px 22px !important; }
  .page-header { padding: 100px 0 44px; }
  .page-header h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.05; }
  .page-header p { font-size: 15px; }

  /* Section-Titles und Lead enger */
  .section-title { font-size: clamp(26px, 7.5vw, 36px); line-height: 1.1; }
  .section-lead { font-size: 15px; line-height: 1.55; max-width: 100%; }

  /* Service-Cards: voll breit, etwas weniger Innenabstand */
  .services-grid { gap: 16px; margin-top: 40px; }
  .service-card { padding: 26px 22px; }
  .service-title { font-size: 20px; }

  /* Speaker-Hero / Vorträge: Bild nicht über Schirmbreite, kompakter */
  .speaker-hero { gap: 28px; }
  .speaker-portrait { max-width: 100%; }
  .speaker-hero h2 { font-size: clamp(26px, 7.5vw, 34px); margin: 8px 0 14px; }
  .speaker-hero p { font-size: 15px; }

  /* BAFA-Boxen: stack vertikal, voll breit, kompakter */
  .bafa-card { padding: 22px 20px !important; gap: 16px !important; }
  .bafa-text h2,
  .bafa-text h3 { font-size: 15.5px; }
  .bafa-text p { font-size: 13.5px; }

  /* Vita-Grid auf "Über uns" */
  .vita-grid { gap: 36px; }
  .vita-text p { font-size: 15px; line-height: 1.6; }
  .vita-award { padding: 26px 22px; }
  .vita-award h3 { font-size: 19px; }
  /* Negativer Rand muss dem kleineren Padding folgen, sonst steht das Foto vor */
  .vita-award .award-photo { margin: -26px -22px 12px; }

  /* Werte-Manifest kompakter */
  .value-item { padding: 28px 0 !important; gap: 6px !important; }
  .value-num { font-size: 42px !important; }
  .value-body h3 { font-size: 19px !important; }
  .value-body p { font-size: 14.5px !important; line-height: 1.6 !important; }

  /* Qualifikations-Liste kompakter */
  .qual-item { padding: 18px 18px !important; grid-template-columns: 60px 1fr !important; gap: 14px !important; }
  .qual-year { font-size: 12.5px !important; }
  .qual-body h3 { font-size: 14.5px !important; }
  .qual-body .qual-meta { font-size: 12px !important; }
  .quals-foot { padding: 20px !important; }
  .quals-foot p { font-size: 13.5px; }

  /* Themen-Liste auf vortraege.html */
  .topic { padding: 18px 18px !important; grid-template-columns: 24px 1fr !important; gap: 12px !important; }
  .topic-title { font-size: 14.5px !important; }
  .topic-desc { font-size: 13px !important; }
  .topics-header { gap: 10px; flex-wrap: wrap; padding-bottom: 14px; }
  .topics-header h3 { font-size: 20px !important; }

  /* Format-Tiles auf vortraege.html */
  .format-tile { padding: 22px 22px; }

  /* Footer enger */
  .footer-top { padding-top: 48px !important; padding-bottom: 28px !important; }
  .footer-brand p { font-size: 14px; }
  .footer-col h3 { font-size: 12px; }

  /* Cross-Cards auf Detail-Seiten — stack */
  .svc-cross-grid { gap: 16px !important; }

  /* CTA-Card kompakter */
  .cta-card h2 { font-size: clamp(28px, 8vw, 38px) !important; line-height: 1.1; }
  .cta-card p { font-size: 15px; }
  .cta-actions { flex-direction: column; gap: 10px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Theme-Switcher näher an Ecke, weniger groß */
  .theme-switcher { bottom: 12px !important; right: 12px !important; font-size: 11px !important; padding: 4px !important; }

  /* Resilienz-Chart kompakter (Home Problem-Sektion) */
  .problem-visual { max-width: 100%; }
  .dash-card { padding: 20px !important; }
  .dash-title { font-size: 14px; }
  .float-badge { display: none; }

  /* Workshop-Pills */
  .ws-pills { gap: 6px; }
  .ws-pill { font-size: 10.5px; padding: 5px 11px; }

  /* Buttons generell kompakt */
  .btn { padding: 12px 18px; font-size: 14.5px; }
  .btn-primary, .btn-accent, .btn-secondary { font-size: 14.5px; }

  /* Mobile-Menü mit etwas mehr Abstand */
  .mobile-menu { padding: 24px 24px 32px; }
  .mobile-menu a { font-size: 17px; padding: 12px 0; }
}

/* Sehr kleine Screens — 375 px iPhone und kleiner */
@media (max-width: 400px) {
  .container, .container-narrow { padding: 0 16px; }
  .nav-inner { padding: 0 16px; gap: 0; }
  .hero h1 { font-size: clamp(34px, 11vw, 44px); }
  .page-header h1 { font-size: clamp(28px, 9vw, 36px); }
  .section-title { font-size: clamp(24px, 7vw, 30px); }
  .stats-row .num { font-size: 28px; }
  .speaker-portrait { aspect-ratio: 4 / 4; }
  .ws-pill { font-size: 10px; }
}

/* ============================================================
   FARB-SYSTEM — harmonische Mehrfarbigkeit über der blauen Basis.
   Blau bleibt der Marken-Faden (Links, Buttons, Eyebrows, Titel-
   Akzente); Karten, Icons und Dekozonen rotieren durch vier
   abgestimmte Farben: Blau · Violett · Teal · Amber.
   Pro Element wird die Farbe als --ca gesetzt; Tönungen werden
   per color-mix daraus abgeleitet.
   ============================================================ */

/* --- Dekorative Verlaufszonen --- */
.hero::before {
  inset: 0; width: auto; height: auto;
  background:
    radial-gradient(48% 60% at 1% 0%,    rgba(37, 99, 235, 0.28),  transparent 70%),
    radial-gradient(42% 50% at 24% 104%, rgba(13, 148, 136, 0.22), transparent 72%),
    radial-gradient(40% 52% at 100% 4%,  rgba(124, 58, 237, 0.24), transparent 70%);
}
.hero h1 .gradient {
  background: linear-gradient(115deg, var(--c1) 0%, var(--c2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-header::before {
  inset: 0; width: auto; height: auto;
  background:
    radial-gradient(40% 78% at 0% 0%,    rgba(37, 99, 235, 0.13),  transparent 72%),
    radial-gradient(38% 70% at 100% 6%,  rgba(124, 58, 237, 0.13), transparent 72%),
    radial-gradient(44% 80% at 90% 100%, rgba(13, 148, 136, 0.10), transparent 74%);
}
.article-header {
  background:
    radial-gradient(38% 82% at 3% 0%,    rgba(37, 99, 235, 0.11),  transparent 72%),
    radial-gradient(36% 74% at 100% 8%,  rgba(124, 58, 237, 0.11), transparent 72%),
    linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
}
.cta-card::before {
  background:
    radial-gradient(circle at 14% 26%,  rgba(37, 99, 235, 0.34),  transparent 50%),
    radial-gradient(circle at 86% 22%,  rgba(124, 58, 237, 0.28), transparent 52%),
    radial-gradient(circle at 64% 104%, rgba(13, 148, 136, 0.24), transparent 56%);
}

/* --- Service-Karten (Startseite) — Blau · Teal · Amber --- */
.service-card { --ca: var(--c1); }
.services-grid .service-card:nth-child(2) { --ca: var(--c3); }
.services-grid .service-card:nth-child(3) { --ca: var(--c4); }
.services-grid .service-card:nth-child(4) { --ca: var(--c2); }
.service-card .service-icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--ca) 22%, #fff),
    color-mix(in srgb, var(--ca) 36%, #fff));
  color: var(--ca);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ca) 18%, transparent);
}
.service-card {
  border-top: 3px solid color-mix(in srgb, var(--ca) 28%, transparent);
}
.service-card:hover {
  border-color: color-mix(in srgb, var(--ca) 44%, #fff);
  border-top-color: var(--ca);
  box-shadow: 0 20px 44px -18px color-mix(in srgb, var(--ca) 65%, transparent);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--ca), color-mix(in srgb, var(--ca) 75%, #000));
  color: #fff;
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--ca) 55%, transparent);
}
.service-card .service-roman { color: var(--ca); font-weight: 700; }
.service-card .service-benefit-label { color: var(--ca); }
.service-card .service-link:hover { color: var(--ca); }

/* --- Werte-Karten (Über uns) --- */
.values-grid .value-card { --ca: var(--c1); }
.values-grid .value-card:nth-child(2) { --ca: var(--c2); }
.values-grid .value-card:nth-child(3) { --ca: var(--c3); }
.values-grid .value-card:nth-child(4) { --ca: var(--c4); }
.values-grid .value-card:nth-child(5) { --ca: var(--c1); }
.values-grid .value-card::before { background: var(--ca); }
.values-grid .value-card:hover {
  border-color: color-mix(in srgb, var(--ca) 32%, #fff);
  box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--ca) 42%, transparent);
}
.values-grid .value-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ca) 10%, #fff), color-mix(in srgb, var(--ca) 26%, #fff));
  color: var(--ca);
}

/* --- Branchen-Karten (Referenzen) --- */
.industry-grid .industry-pill { --ca: var(--c1); }
.industry-grid .industry-pill:nth-child(2) { --ca: var(--c2); }
.industry-grid .industry-pill:nth-child(3) { --ca: var(--c3); }
.industry-grid .industry-pill:nth-child(4) { --ca: var(--c4); }
.industry-grid .industry-pill::before { background: var(--ca); }
.industry-grid .industry-pill:hover {
  border-color: color-mix(in srgb, var(--ca) 32%, #fff);
  box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--ca) 40%, transparent);
}
.industry-grid .industry-pill .ico {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ca) 10%, #fff), color-mix(in srgb, var(--ca) 26%, #fff));
  color: var(--ca);
}
.industry-grid .industry-pill .meta { color: var(--ca); }
.industry-grid .industry-pill .meta::before { background: var(--ca); }

/* --- Feature-Liste (Startseite) --- */
.features-list .feature { --ca: var(--c1); }
.features-list .feature:nth-child(2) { --ca: var(--c2); }
.features-list .feature:nth-child(3) { --ca: var(--c3); }
.features-list .feature:nth-child(4) { --ca: var(--c4); }
.features-list .feature .feature-icon { background: color-mix(in srgb, var(--ca) 12%, #fff); color: var(--ca); }
.features-list .feature:hover {
  border-color: color-mix(in srgb, var(--ca) 30%, #fff);
  background: color-mix(in srgb, var(--ca) 7%, #fff);
}

/* --- News-Karten (Startseite & News) --- */
.news-card { --ca: var(--c1); }
.news-card:nth-child(3n+2) { --ca: var(--c2); }
.news-card:nth-child(3n)   { --ca: var(--c3); }
.news-card .news-image {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ca) 13%, #fff), color-mix(in srgb, var(--ca) 28%, #fff));
}
.news-card .news-image-icon { color: var(--ca); }
.news-card .news-tag { color: var(--ca); border-color: color-mix(in srgb, var(--ca) 32%, #fff); }
.news-card:hover { border-color: color-mix(in srgb, var(--ca) 32%, #fff); }
.news-card:hover .news-title { color: var(--ca); }
.news-card .news-link { color: var(--ca); }

/* --- Testimonials (Marquee & Referenzen) --- */
.testimonial { --ca: var(--c1); }
.testimonial:nth-child(4n+2) { --ca: var(--c2); }
.testimonial:nth-child(4n+3) { --ca: var(--c3); }
.testimonial:nth-child(4n)   { --ca: var(--c4); }
.testimonial .testimonial-stars { color: var(--ca); }
.testimonial .testimonial-avatar {
  background: linear-gradient(135deg, var(--ca), color-mix(in srgb, var(--ca) 58%, #000));
}
.testimonial:hover { border-color: color-mix(in srgb, var(--ca) 30%, #fff); }

/* --- Prozess-Schritte (Leistungen) --- */
.process-grid .process-step { --ca: var(--c1); }
.process-grid .process-step:nth-child(2) { --ca: var(--c2); }
.process-grid .process-step:nth-child(3) { --ca: var(--c3); }
.process-grid .process-step:nth-child(4) { --ca: var(--c4); }
.process-grid .process-step .step-num { color: var(--ca); }
.process-grid .process-step:hover { border-color: color-mix(in srgb, var(--ca) 32%, #fff); }

/* --- Kennzahlen --- */
.stats-row .stat:nth-child(1) .num span { color: var(--c1); }
.stats-row .stat:nth-child(2) .num span { color: var(--c2); }
.stats-row .stat:nth-child(3) .num span { color: var(--c3); }
.stats-row .stat:nth-child(4) .num span { color: var(--c4); }

/* === HERO-SZENE — maritime Illustration (nur Startseite) === */
.hero-scene {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 900px;
  max-height: calc(100% - 195px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
  mask-image: linear-gradient(to right, transparent, #000 30%);
}
.hero-scene svg { width: 100%; height: auto; display: block; }
.hero-scene img,
.hero-scene video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scene::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14%;
  background: linear-gradient(to top, var(--bg), rgba(250, 246, 237, 0));
  pointer-events: none;
}
.hero-scene .boat {
  transform-box: view-box;
  transform-origin: 415px 365px;
  animation: heroBoatBob 4.6s ease-in-out infinite;
}
@keyframes heroBoatBob {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50%      { transform: translateY(-8px) rotate(-11deg); }
}
.hero-sub { max-width: 600px; }
@media (max-width: 1100px) { .hero-scene { width: 46%; } }
@media (max-width: 820px)  { .hero-scene { display: none; } }
/* dezente Szene — nur ruhige Wasserbewegung */
.hs-w1 { animation: hsWv1 9s ease-in-out infinite; }
.hs-w2 { animation: hsWv2 8s ease-in-out -3s infinite; }
.hs-w3 { animation: hsWv3 7s ease-in-out infinite; }
.hs-w4 { animation: hsWv4 6s ease-in-out -2.5s infinite; }
.hs-w5 { animation: hsWv5 5.2s ease-in-out -1s infinite; }
@keyframes hsWv1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,-2px); } }
@keyframes hsWv2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-4px,2px); } }
@keyframes hsWv3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-8px,3px); } }
@keyframes hsWv4 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(8px,-3px); } }
@keyframes hsWv5 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-10px,3px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-scene .boat,
  .hs-w1, .hs-w2, .hs-w3, .hs-w4, .hs-w5 { animation: none; }
}

/* === ECHTE BILDER STATT ICONS (Hero + News-Karten) === */
.hero-scene img { width: 100%; height: auto; display: block; }
.news-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.news-card:hover .news-image img { transform: scale(1.05); }
.news-image .news-tag { z-index: 2; }

/* === KI-KENNZEICHNUNG (Art. 50 Abs. 4 KI-VO) ===
   Muss am Bild selbst sitzen, ohne technische Hilfsmittel wahrnehmbar und
   spätestens beim ersten Kontakt sichtbar. Metadaten oder ein Hinweis nur im
   Impressum genügen nicht.
   .ai-badge = die Pille selbst, .ai-mark = Ecken-Platzierung über einem Bild. */
.ai-badge {
  display: inline-block;
  padding: 4px 10px 5px;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  line-height: 1;
}
.ai-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  pointer-events: none;
}
/* Hero: die .hero-scene ist aria-hidden und pointer-events:none, deshalb liegt
   die Marke daneben und spiegelt nur deren Geometrie (50% Breite, Bildformat
   1376/768). Unterhalb 820px blendet die Szene aus, die Marke also auch. */
.hero-ai-mark {
  top: 0;
  right: 0;
  bottom: auto;
  width: 50%;
  max-width: 900px;
  aspect-ratio: 1376 / 768;
  z-index: 2;
}
.hero-ai-mark .ai-badge {
  position: absolute;
  right: 20px;
  bottom: 19%;
}
@media (max-width: 1100px) { .hero-ai-mark { width: 46%; } }
@media (max-width: 820px)  { .hero-ai-mark { display: none; } }

/* Kleine Kartenbilder (News, Branchen): Pille etwas enger an die Ecke */
.news-image .ai-mark,
.industry-image .ai-mark { right: 10px; bottom: 10px; }
