/* =====================================================
   IT-Kompass GmbH — Base Stylesheet 2026
   Tokens & Komponenten aus dem Design-System
   ===================================================== */

/* === Fonts === */
/* Caveat: Regular (400) + Bold (700) als separate WOFF2 */
@font-face { font-family:'Caveat'; font-style:normal; font-weight:400;
  src:url('../fonts/Caveat-Regular.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Caveat'; font-style:normal; font-weight:700;
  src:url('../fonts/Caveat-Bold.woff2') format('woff2'); font-display:swap; }
/* Lato: Light 300, Regular 400, Medium 500, Bold 700, Black 900 — je normal + italic (Medium nur normal) */
@font-face { font-family:'Lato'; font-style:normal; font-weight:300;
  src:url('../fonts/Lato-Light.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:italic; font-weight:300;
  src:url('../fonts/Lato-LightItalic.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:400;
  src:url('../fonts/Lato-Regular.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:italic; font-weight:400;
  src:url('../fonts/Lato-Italic.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:500;
  src:url('../fonts/Lato-Medium.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:700;
  src:url('../fonts/Lato-Bold.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:italic; font-weight:700;
  src:url('../fonts/Lato-BoldItalic.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:900;
  src:url('../fonts/Lato-Black.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Lato'; font-style:italic; font-weight:900;
  src:url('../fonts/Lato-BlackItalic.woff2') format('woff2'); font-display:swap; }

/* === Tokens === */
:root {
  --c-dunkelblau: #000854;
  --c-tiefblau:   #0026FF;
  --c-orange:     #f39200;
  --c-hellorange: #FFBF33;
  --c-tuerkis:    #2FACB9;
  --c-hellblau:   #83CFED;
  --c-dgrau:      #333333;
  --c-hgrau:      #CCCCCC;
  --c-rot:        #ff5500;
  --c-gruen:      #3caa31;
  --c-white:      #ffffff;
  --c-paper:      #F5F7FB;
  --c-ink:        #0A0F2C;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.18), 0 8px 16px rgba(0,0,0,0.08);
  --nav-h: 96px;

  /* ── Typografie-Scale (Design System 2026.1) ── */
  --text-display: clamp(44px, 6.5vw, 88px);
  --text-h1:      clamp(32px, 4vw, 48px);
  --text-h2:      32px;
  --text-h3:      22px;
  --text-body-l:  20px;           /* Projekt-Override: Basis-Schriftgröße ITK = 20px */
  --text-body:    20px;           /* Projekt-Override: Basis-Schriftgröße ITK = 20px */
  --text-small:   13px;
  --text-eyebrow: 11px;

  /* ── Spacing-Scale (Design System 2026.1) ── */
  --space-xs:   8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  96px;

  /* ── Layout (Design System 2026.1) ── */
  --max-width:    1280px;
  --wrap-pad:       48px;
  --wrap-pad-sm:    20px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; scroll-behavior: smooth;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-paper);
  font-weight: 400;
  font-size: var(--text-body);    /* 16px laut Design System 2026.1 */
  line-height: 1.55;              /* Design System: 1.55 (war: 1.5 / 20px) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: 'Lato', Arial, sans-serif; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* === Inline-Textlink (zentrale Komponente) ===========================
   Konvention für seitenübergreifende / weiterführende Links im Fließtext.
   Pfeil = gestrichener SVG-Pfeil (identisch zu den .more-/.service-Links),
   eingefärbt in der jeweiligen Linkfarbe, rückt bei Hover nach rechts.
   .text-link            → tiefblau (helle Hintergründe)
   .text-link.on-dark    → hellblau (dunkle Sektionen)
   .text-link--ext       → semantischer Modifier (gleicher Pfeilstil) */
.text-link,
.service-link,
.hot-card-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--c-tiefblau); font-weight: 700; text-decoration: none;
  transition: color 0.15s ease;
}
.text-link::after,
.service-link::after,
.hot-card-link::after {
  content: ""; flex-shrink: 0;
  width: 0.9em; height: 0.9em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%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 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.text-link:hover,
.service-link:hover,
.hot-card-link:hover { color: var(--c-dunkelblau); }
.text-link:hover::after,
.service-link:hover::after,
.hot-card-link:hover::after,
.service-card:hover .service-link::after,
.hot-card:hover .hot-card-link::after { transform: translateX(3px); }
/* Inline-SVG-Pfeile der Karten-Links werden durch den kanonischen Pseudo-Pfeil ersetzt */
.service-link svg,
.hot-card-link svg { display: none; }
/* Kontext-Größen der Karten-Varianten */
.service-link { margin-top: 24px; font-size: 14px; letter-spacing: 0.02em; }
.hot-card-link { font-size: 12px; gap: 5px; margin-top: 4px; }
/* Externe / ausgehende Links: Pfeil schräg nach oben-rechts */
.text-link--ext::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E");
}
.text-link--ext:hover::after { transform: translate(2px, -2px); }
.text-link.on-dark { color: var(--c-hellblau); }
.text-link.on-dark:hover { color: var(--c-white); }
.text-link:focus-visible,
.service-link:focus-visible,
.hot-card-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; }

/* === Layout === */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* === SVG Defs (Hexagon-System) === */
.hex-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* === Navigation === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0,8,84,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.site-nav.scrolled {
  background: rgba(0,8,84,0.99);
  box-shadow: 0 4px 24px rgba(0,8,84,0.3);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nav-logo img { height: 76px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  height: 100%;
}
.nav-links > .nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: var(--text-body); font-weight: 700;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  display: block;
}
.nav-links a:hover { color: var(--c-white); background: rgba(255,255,255,0.07); }
/* Aktive Seite: Nur Top-Level-Links weiß (dunkler Hintergrund) */
.nav-links > .nav-item > a.active { color: var(--c-white); }
/* Aktive Seite: In Dropdown auf hellem Hintergrund → Dunkelblau + Fett */
.nav-dropdown-item > a.active,
.nav-dropdown-column-left > a.active { color: var(--c-dunkelblau); font-weight: 700; }

/* Dropdown Menu — filter: drop-shadow statt box-shadow, weil die rechte
   Spalte layoutmäßig immer da, aber oft transparent ist. drop-shadow folgt
   dem Alpha-Kanal und umschließt nur die tatsächlich gefüllten Spalten
   (kein leerer Rahmen daneben, keine Fuge zwischen den Spalten). Kein
   Border, kein overflow:hidden — beides würde das Problem zurückholen. */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.18)) drop-shadow(0 8px 16px rgba(0,0,0,0.08));
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  min-height: fit-content;
}

/* Specific positioning for each menu item */
.nav-item:nth-child(1) .nav-dropdown {
  left: 0;
}
.nav-item:nth-child(2) .nav-dropdown {
  left: 50%;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover:nth-child(2) .nav-dropdown {
  transform: translateX(-50%) translateY(0);
}
.nav-item:nth-child(3) .nav-dropdown {
  left: auto;
  right: -120px;
}
.nav-item:nth-child(4) .nav-dropdown {
  left: auto;
  right: 0;
}
.nav-item:hover > a,
.nav-item.active > a {
  color: var(--c-orange);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Left column - main items with light gray background */
.nav-dropdown-column-left {
  display: flex;
  flex-direction: column;
  min-width: 240px;
  padding: 20px 0 20px 0;
  background: #F5F5F5;
  flex: 1;
  min-height: 400px;
  position: relative;
}

/* Right column - nested items with white background */
/* Immer im Layout (verhindert Layout-Shift und Menü-Kollaps beim Hover);
   Hintergrund nur sichtbar wenn ein Unterpunkt aktiv ist */
.nav-dropdown-column-right {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  padding: 20px 24px 20px 24px;
  background: transparent;
  flex: 1;
  min-height: 400px;
  /* Grace beim Ausblenden: 300 ms bleibt weiß, dann sanft weg — überbrückt
     den kurzen Moment, in dem die Maus vom Parent zum Sub-Menü wandert und
     weder das eine noch das andere gehovered ist. */
  transition: background 0.15s ease 0.3s;
}
.nav-dropdown:has(.nav-dropdown-item:hover .nav-dropdown-nested) .nav-dropdown-column-right,
.nav-dropdown:has(.nav-dropdown-nested:hover) .nav-dropdown-column-right {
  background: white;
  transition: background 0s;
}

.nav-dropdown-column-left > a,
.nav-dropdown-item > a {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-dunkelblau);
  display: block;
}
.nav-dropdown-column-left > a:hover,
.nav-dropdown-column-left > a.active,
.nav-dropdown-item > a:hover,
.nav-dropdown-item.active > a {
  color: var(--c-orange);
}

/* Nested-Menü — Muster aus der alten Site (scss/itkompass.scss ~708):
   - Grace-Period 500 ms beim Zuklappen (Zeit, um horizontal zum Sub-Menü
     zu wandern), gesetzt als transition-delay im Basiszustand
   - Beim Öffnen kein Delay (transition-delay 0 im :hover-Zustand)
   Zusätzliche Regel gegen das Stapel-Problem: sobald ein ANDERES Parent-Item
   gehovered wird, verschwinden alle nicht-aktiven Nested SOFORT ohne Grace
   (sonst überlagern sich mehrere Menüs kurz sichtbar). */
.nav-dropdown-nested {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 100%;
  top: 20px;
  min-width: 320px;
  background: transparent;
  padding: 12px 0 12px 32px;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: opacity 0.2s ease 0.3s, visibility 0s linear 0.5s;
}
.nav-dropdown-item:hover .nav-dropdown-nested,
.nav-dropdown-nested:hover {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s ease 0s, visibility 0s linear 0s;
}
/* Anderer Parent aktiv → altes Nested sofort weg, kein Grace, kein Ghost */
.nav-dropdown-column-left:has(.nav-dropdown-item:hover) .nav-dropdown-item:not(:hover) .nav-dropdown-nested {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0s, visibility 0s;
}

/* Keep parent item orange when hovering nested items */
.nav-dropdown-item:hover > a {
  color: var(--c-orange);
}

.nav-dropdown-item {
  position: static;
}
.nav-dropdown-nested h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-dunkelblau);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-dropdown-nested h3::before {
  content: '↘';
  font-size: 14px;
  color: var(--c-dunkelblau);
}
.nav-dropdown-nested a {
  padding: 8px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--c-dunkelblau);
  display: block;
}
.nav-dropdown-nested a:hover,
.nav-dropdown-nested a.active {
  color: var(--c-orange);
}
/* Keep parent orange when hovering any nested link */
.nav-dropdown-item:has(.nav-dropdown-nested:hover) > a {
  color: var(--c-orange);
}

/* Contact section at bottom of dropdown */
.nav-dropdown-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,8,84,0.1);
}
.nav-dropdown-contact p {
  font-size: 13px;
  color: var(--c-dgrau);
  margin: 0 0 12px 0;
}
.nav-dropdown-contact a {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-dunkelblau);
  display: block;
  padding: 4px 0;
}
.nav-dropdown-contact a:hover {
  color: var(--c-orange);
}
.nav-cta {
  margin-left: 16px;
}
.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--c-white);
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--c-dunkelblau);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 20px 24px;
    gap: 2px;
  }
  .nav-links.open a { width: 100%; padding: 12px 16px; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
}

/* Nav spacer */
.nav-push { height: var(--nav-h); }

/* === Buttons === */
.btn {
  font-family: 'Lato', sans-serif; font-weight: 700;
  border-radius: 999px; padding: 12px 24px;
  font-size: 14px; letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s ease; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--c-orange); color: var(--c-white); border-color: var(--c-orange); }
.btn-primary:hover { background: var(--c-hellorange); border-color: var(--c-hellorange); }
.btn-secondary { background: var(--c-dunkelblau); color: var(--c-white); }
.btn-secondary:hover { background: var(--c-tiefblau); }
.btn-ghost { background: transparent; color: var(--c-dunkelblau); border-color: var(--c-dunkelblau); }
.btn-ghost:hover { background: var(--c-dunkelblau); color: var(--c-white); }
.btn-ghost-light { background: transparent; color: var(--c-orange); border-color: var(--c-orange); box-shadow: inset 0 0 0 1px var(--c-orange); }
.btn-ghost-light:hover { background: var(--c-orange); color: var(--c-white); border-color: var(--c-orange); box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2);
}

/* Form-Konvention (skill: skills/forms.md) — global gültig, damit alle
   Formulare (Kontakt, Veranstaltungen, Newsletter, …) skill-konform gerendert
   werden ohne pro-Seite-CSS-Duplikation. */
.form-optin-only {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}
.form-status[data-state="success"] {
  background: rgba(47,172,185,0.12);
  color: var(--c-dunkelblau);
  border: 1px solid rgba(47,172,185,0.4);
}
.form-status[data-state="error"] {
  background: rgba(220,53,69,0.08);
  color: #a02231;
  border: 1px solid rgba(220,53,69,0.25);
}

/* === Sections === */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark {
  background: var(--c-dunkelblau); color: var(--c-white);
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 85% 0%, rgba(0,38,255,0.5) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 5% 100%, rgba(47,172,185,0.15) 0%, transparent 55%);
}
.section-dark > * { position: relative; z-index: 1; }
.section-white { background: var(--c-white); }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; line-height: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--c-orange);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 1px;
}
.section-eyebrow.light { color: var(--c-hellblau); }

.section-title {
  font-weight: 900; font-size: clamp(32px, 4vw, 48px); /* H1: 48px */
  line-height: 1.04; letter-spacing: -0.015em;
  color: var(--c-dunkelblau);
}
.section-dark .section-title { color: var(--c-white); }
.section-sub {
  font-size: 22px; font-weight: 400; color: var(--c-dgrau); /* Body L */
  max-width: 60ch; margin-top: 16px; line-height: 1.5; /* 33/22 */
  text-wrap: pretty;
}
/* === Fließtext auf Dunkelblau immer weiß === */
.section-dark p,
.section-dark .section-sub,
.page-hero p,
.page-hero .lede,
.legal-hero p,
.brand-quote-section p,
.cta-box p { color: var(--c-white); }

.section-head { margin-bottom: 56px; }

/* === Topo SVG Background === */
.topo-bg {
  position: absolute; inset: 0; pointer-events: none;
  width: 100%; height: 100%; overflow: hidden;
}
.topo-bg svg { width: 100%; height: 100%; }

/* === Cards === */
.card {
  background: var(--c-white);
  border: 1px solid rgba(0,8,84,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-orange-top { border-top: 3px solid var(--c-orange); }
.card-tuerkis-top { border-top: 3px solid var(--c-tuerkis); }

/* === Badge === */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 14px; line-height: 21px; font-weight: 700; letter-spacing: 0.04em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.badge-info { background: rgba(0,38,255,0.08); color: var(--c-tiefblau); }
.badge-info::before { background: var(--c-tiefblau); }
.badge-success { background: rgba(60,170,49,0.1); color: var(--c-gruen); }
.badge-success::before { background: var(--c-gruen); }
.badge-orange { background: rgba(243,146,0,0.12); color: var(--c-orange); }
.badge-orange::before { background: var(--c-orange); }

/* === Form === */
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--c-dunkelblau); letter-spacing: 0.02em; }
.form-row input, .form-row textarea, .form-row select {
  font-family: 'Lato'; font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid var(--c-hgrau);
  border-radius: var(--radius-sm);
  background: var(--c-white); color: var(--c-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--c-tiefblau);
  box-shadow: 0 0 0 3px rgba(0,38,255,0.1);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* === Footer === */
.site-footer {
  background: var(--c-dunkelblau); color: var(--c-white);
  padding: 72px 0 48px; position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  padding-bottom: 0;
}
.footer-brand img { height: 42px; }
.footer-brand .slogan { flex-shrink: 0; }
.footer-brand .slogan img { width: auto; max-width: 200px; height: auto; }
.footer-brand p {
  margin-top: 20px; font-size: 14px; color: rgba(255,255,255,0.55);
  max-width: 32ch; line-height: 1.65; text-wrap: pretty;
}
.footer-col h4 {
  font-size: 11px; line-height: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 18px; color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--c-white); }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.35); }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom .links a { font-size: 14px; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-bottom .links a:hover { color: var(--c-white); }

/* === Legal Pages === */
.legal-hero {
  background: var(--c-dunkelblau); color: var(--c-white);
  padding: 80px 0 60px; position: relative; overflow: hidden;
}
.legal-body {
  background: var(--c-white);
  padding: 72px 0 96px;
}
.legal-content {
  max-width: 800px;
}
.legal-content h2 {
  font-size: 22px; font-weight: 900; color: var(--c-dunkelblau);
  margin-top: 48px; margin-bottom: 12px; letter-spacing: -0.005em;
}
.legal-content h3 {
  font-size: 17px; font-weight: 700; color: var(--c-dunkelblau);
  margin-top: 28px; margin-bottom: 8px;
}
.legal-content p {
  color: var(--c-dgrau); line-height: 1.5;
  margin-bottom: 16px; text-wrap: pretty;
}
.legal-content ul {
  padding-left: 1.4em; margin-bottom: 16px;
}
.legal-content ul li {
  color: var(--c-dgrau); line-height: 1.5; margin-bottom: 8px;
}
.legal-content a { color: var(--c-tiefblau); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--c-dunkelblau); }
.legal-divider {
  height: 1px; background: rgba(0,8,84,0.08);
  margin: 40px 0;
}

/* === Waben-Parallax === */

/*
  .waben-bg  →  Container, der die Waben-Layer hält (position:absolute, inset:0, overflow:hidden, pointer-events:none, z-index:0)
  Dunkle Sektionen: Waben bleiben sichtbar (hellblau auf dunkel).
  Helle Sektionen:  Waben sehr dezent (opacity 0.07–0.12).
*/

.waben-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Gemeinsame Basis jedes Parallax-Bildes */
.waben-layer {
  position: absolute;
  will-change: transform;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ── Varianten für dunkle Hintergründe ── */
.waben-layer.on-dark {
  opacity: 0.22;
}

/* ── Varianten für helle Hintergründe (Karten) ── */
.waben-layer.on-light {
  opacity: 0.09;
}

/* Alle Kinder einer Section mit position:relative,z-index>0 bleiben im Vordergrund */
.section-dark,
.page-hero,
.legal-hero,
.brand-quote-section {
  isolation: isolate;
}
.section-dark > *:not(.waben-bg):not(.topo-bg),
.page-hero > *:not(.waben-bg):not(.topo-bg),
.brand-quote-section > *:not(.waben-bg):not(.topo-bg) {
  position: relative;
  z-index: 1;
}

/* Karten mit Waben-Hintergrund */
.waben-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.waben-card > * {
  position: relative;
  z-index: 1;
}
.waben-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: 80%;
  background-position: 110% 50%;
  opacity: 0.18;
}

/* === Utility === */
.text-orange { color: var(--c-orange); }
.text-tuerkis { color: var(--c-tuerkis); }
.text-hellblau { color: var(--c-hellblau); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* === Accessibility === */
:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Kundenzitat-Bänder ohne freigegebenes Zitat — temporär ausgeblendet (Launch).
   Reaktivierung: is-placeholder auf der jeweiligen Seite entfernen. */
.kundenzitat-band.is-placeholder { display: none; }

.contact-card--no-photo .contact-portrait,.contact-card--no-photo .s7-portrait,.contact-card--no-photo .s8-portrait{display:none}
.contact-card--no-photo .s7-inner,.contact-card--no-photo .contact-inner{justify-content:center;text-align:center}
.contact-card--no-photo .s7-inner>div,.contact-card--no-photo .contact-inner>div{max-width:640px;margin:0 auto;padding-bottom:0!important}
.contact-card--no-photo .s7-eyebrow,.contact-card--no-photo .contact-eyebrow{justify-content:center}
.contact-card--no-photo .s7-contacts{align-items:center}
.contact-card--no-photo .s7-actions,.contact-card--no-photo .contact-actions{justify-content:center}
.contact-card--no-photo .s7-text,.contact-card--no-photo .contact-text{margin-left:auto;margin-right:auto}

/* ========================================================================
   MOBILE-FOUNDATION NOTBREMSE — LIVE-VORBEREITUNG 2026-07-31 · MFN-START
   Übergangslösung für den Live-Gang: !important gegen die Inline-Style-
   Vielfalt in den Seiten. Wird obsolet, sobald Gianna die Sections-
   Bibliothek in Claude Design mobile-tauglich gemacht hat.
   Gezielt entfernbar zwischen MFN-START und MFN-END.
   ======================================================================== */

/* 1 · Horizontales Scrollen verhindern */
html, body { overflow-x: hidden; }

/* 2 · Bilder/Video passen sich an — img OHNE !important, damit
   dedizierte max-width-Regeln (.footer-brand .slogan img { max-width:200px })
   nicht ausgehebelt werden. Und OHNE height:auto, damit die dedizierten
   Logo-Regeln (.nav-logo img 76px, .footer-brand img 42px) bleiben.
   iframe/video ebenfalls ohne height-Zwang — sonst zerstört es Aspect-Ratio-
   Container wie .film-frame iframe (YouTube-Embed im Karriere-Imagefilm). */
img { max-width: 100%; }
video, iframe { max-width: 100%; }

/* 3 · Fluide Container-Paddings bei ≤900px. Überschreibt die bestehende
   720px-Regel (padding: 0 20px) bewusst, weil clamp() 16–32px liefert. */
@media (max-width: 900px) {
  .wrap, .container, main > section {
    padding-inline: clamp(1rem, 4vw, 2rem) !important;
  }
}

/* 4 · Grid-Fallback: alle *-grid-Klassen (100+ seitenspezifische Varianten
   plus die 5 Bibliotheks-Klassen) auf 1 Spalte. Nav-Dropdown/-Grid
   ausgeschlossen, sonst bricht das Megamenü.
   Zusätzlich: inline-grid-Container ohne -grid-Klasse (viele Sektionen
   im Content nutzen style="display:grid; grid-template-columns:1fr 1fr"). */
@media (max-width: 640px) {
  [class*="-grid"]:not(.nav-dropdown):not([class*="nav-"]):not(.footer-grid),
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: clamp(1rem, 3vw, 1.5rem) !important;
  }
}

/* 4b · Hero-Text-Spalte: inline style="width:800px" bricht schmale
   Viewports. Ebenso .lede mit "width:60vw". */
@media (max-width: 900px) {
  .hero-text { width: auto !important; max-width: 100% !important; }
  .lede { width: auto !important; }
}

/* 4c · Hero-Stats-Band (dl.hero-stats, KEINE -grid-Klasse): bei ≤640
   auf column, sonst laufen die drei Boxen rechts raus. */
@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: 20px !important; }
}

/* 4d · Kundenstimmen-Karte: fest 62%/38% als grid-template-columns —
   schon bei ≤900 auf 1 Spalte (Bild oben, Text unten via order),
   sonst wird das 38%-Bild abgeschnitten.
   Bild-Wabe: kompakte Höhe, damit das Foto nicht die halbe Seite füllt. */
@media (max-width: 900px) {
  .ref-card { grid-template-columns: 1fr !important; }
  .ref-card-visual--photo,
  .ref-card-visual--logo,
  .ref-card-visual--rating {
    height: 200px;
    max-height: 220px;
    order: -1;
  }
  .ref-card-photo { max-height: 220px; object-fit: cover; }
  .ref-card-text { order: 1; }
}

/* 4e · 2-Spalten-Content-Grids per inline-style="grid-template-columns:1fr 1fr"
   (Veranstaltungs-Sektion, Text-neben-Bild-Blöcke) schon bei ≤900 auflösen,
   sonst wird die rechte Spalte rechts abgeschnitten. */
@media (max-width: 900px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* 4f · Grid-Kinder dürfen unter ihre intrinsic min-width schrumpfen — sonst
   pushen lange Überschriften (h2 „M365 aktuell: Die wichtigsten Neuerungen")
   den Grid-Track breiter als den Viewport und alles läuft rechts raus. */
@media (max-width: 900px) {
  [class*="-grid"] > *,
  [style*="grid-template-columns"] > * { min-width: 0; }
}

/* 5 · Touch-Targets — nur echte CTA-/Button-Klassen. Kein generisches
   `button`, sonst werden Slider-Dots (button.ref-dot etc.), Nav-Burger
   und ähnliche kleine Buttons zu 44px-Ovalen gestretcht. */
@media (max-width: 640px) {
  .btn, .cta, .cta-primary, .cta-secondary,
  input[type="submit"], input[type="button"] {
    min-height: 44px !important;
    padding-block: 0.75rem !important;
  }
}

/* 6 · Fluide Typo für mittlere Ebenen unter 480px. --text-h2 (32px fix)
   und --text-h3 (22px fix) sind auf schmalen Viewports zu wuchtig.
   Nur elementbasiert, Custom-Property bleibt für Desktop unverändert. */
@media (max-width: 480px) {
  h2 { font-size: clamp(22px, 6vw, 28px); line-height: 1.2; }
  h3 { font-size: clamp(18px, 5vw, 20px); line-height: 1.3; }
}

/* 7 · Footer: Logo/Slogan/Social sollen bei allen Breiten NEBENEINANDER
   bleiben (wie Desktop) — nur bei sehr schmalen Viewports (≤480) column,
   sonst passt gar nichts mehr. Logo generell etwas größer als das
   originale 42px — sah verloren aus. */
.footer-brand img { height: 56px; }
.footer-brand .slogan img { max-width: 220px; height: auto; }
@media (max-width: 640px) {
  .footer-brand { gap: 32px; flex-wrap: wrap; }
  .footer-bottom { flex-wrap: wrap; gap: 16px; }
  .footer-bottom .links { flex-wrap: wrap; gap: 16px 20px; }
}
@media (max-width: 480px) {
  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer-brand > div[style*="margin-left: auto"] {
    margin-left: 0 !important;
    justify-content: center;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 7b · Cookie-Einstellungen-Button soll wie ein Text-Link neben AGB/
   Impressum/Datenschutz aussehen — nicht wie ein OS-Default-Button. */
.footer-bottom .cookie-consent-manage,
.footer-bottom button.cookie-consent-manage {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.15s;
}
.footer-bottom .cookie-consent-manage:hover { color: var(--c-white); }

/* 8 · Sehr enge Viewports (≤480, kritisch bis 320): Ränder klein halten,
   damit Karten und Texte die volle Breite minus ~15px nutzen. Überschreibt
   die 900px-clamp-Regel oben. Zusätzlich: automatische Silbentrennung
   für lange deutsche Komposita, sonst brechen sie hässlich um. */
@media (max-width: 480px) {
  .wrap, .container, main > section {
    padding-inline: 15px !important;
  }
  p, li, dd, blockquote, .ref-quote {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* 8b · Card-Innen-Paddings bei ≤640 reduzieren, damit der Text-Bereich
   in den Cards nicht auf ~120px zusammenschrumpft. Trifft die konkret
   identifizierten Sektionen; weitere können bei Bedarf ergänzt werden. */
@media (max-width: 640px) {
  /* Leistungs-Logik-Strip: inline padding:0 48px vom .logik-inner runter */
  .logik-inner { padding-inline: 20px !important; }
  .logik-step { padding: 32px 20px !important; }
  /* Kundenstimmen-Slider: 40px Slide-Padding + 52/56px Card-Padding sind
     bei schmalen Viewports die Ursache für den Wortweise-Umbruch. */
  .ref-slide { padding: 0 12px !important; }
  .ref-card-text { padding: 32px 24px !important; }
}
@media (max-width: 480px) {
  .logik-inner { padding-inline: 15px !important; }
  .logik-step { padding: 28px 16px !important; }
  .ref-slide { padding: 0 8px !important; }
  .ref-card-text { padding: 28px 18px !important; }
}

/* 8c · Partner-Logo-Band: Container ist 180×80, aber die SVGs haben oft
   riesige native Breiten (Bitwarden 1000, Fortinet 1017, Zscaler 1115) —
   ohne max-height/max-width sprengen sie den Container. */
.partner-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 9 · Mobile-Nav: Dropdowns immer inline aufklappen, weil Touch kein Hover
   kennt. Ohne diese Regel öffnet sich das Untermenü nur bei :hover — auf
   Touch tippt man den Trigger an und wird direkt zur Übersichtsseite
   navigiert; die Sub-Items werden nie sichtbar.
   Zusätzlich: Menü deckend blau (statt halbtransparent), scrollbar wenn viele
   Items, größere Touch-Targets. */
@media (max-width: 1080px) {
  .nav-links.open {
    background: #000854 !important;
    height: calc(100dvh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding-bottom: 32px !important;
    z-index: 999;
  }
  .nav-links.open .nav-item {
    display: block;
    width: 100%;
    height: auto;
  }
  .nav-links.open .nav-item > a {
    font-size: 17px !important;
    padding: 14px 16px;
    color: #fff;
    font-weight: 700;
    display: block;
  }
  /* Dropdown: aus dem absolut-positionierten Hover-Panel wird eine
     eingeklappte Liste unter dem Trigger-Link. */
  .nav-links.open .nav-dropdown {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    box-shadow: none;
    border: none;
    filter: none !important;
    display: block;
    min-height: 0;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    padding: 0;
    margin: 0 0 12px 0;
    overflow: visible;
  }
  .nav-links.open .nav-dropdown-column-left,
  .nav-links.open .nav-dropdown-column-right {
    background: transparent !important;
    padding: 0 !important;
    min-width: 0;
    min-height: 0;
    width: auto !important;
    display: block;
  }
  .nav-links.open .nav-dropdown-item { display: block; padding: 0; margin: 0; }
  .nav-links.open .nav-dropdown-item > a,
  .nav-links.open .nav-dropdown-column-left > a {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    padding: 10px 24px !important;
    display: block;
  }
  /* Nested-Items (Remote-Support, Patch Management …) — die Desktop-Hover-CSS
     hat visibility:hidden/opacity:0/position:absolute gesetzt; für Mobile
     muss das alles zurückgesetzt werden, damit die Items überhaupt gerendert
     werden. Kein transition, keine Delay, konstant sichtbar. */
  .nav-links.open .nav-dropdown-nested {
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transition: none !important;
    padding: 0;
    background: transparent;
  }
  .nav-links.open .nav-dropdown-nested a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    padding: 8px 40px !important;
    display: block;
  }
  /* Über uns: der "nav-collector" ist kein Link, sondern nur Überschrift.
     Cursor nicht 'default', sondern visuell als Kopfzeile erkennbar. */
  .nav-links.open .nav-collector { cursor: default; opacity: 0.9; }
}

/* MFN-END */
