/* ============================================================
   BAYERN-IT Design v3: lebendige Schicht ueber main.css
   Gleiche Marke (Petrol, Creme, Orange, Space Grotesk), aber mit
   mehr Kontrast, groesserer Typo und Bewegung, die Rueckmeldung gibt.
   Wird auf allen Seiten nach main.css geladen.
   ============================================================ */

:root {
  --night: #0A1A22;
  --night-2: #0F2530;
  --glow: rgba(237, 152, 42, 0.55);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll-Fortschritt ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--orange-soft), var(--orange));
  z-index: 101;
  pointer-events: none;
}

/* ---------- Buttons: Druckgefuehl + Glanz ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn[data-magnetic] { will-change: transform; }

/* ---------- Karten: Lichtkegel folgt der Maus ---------- */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(237, 152, 42, 0.09), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card.dark-card::before,
.card.on-dark::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 194, 107, 0.14), transparent 45%); }

/* ---------- Reveals: weicher, mit Unschaerfe ---------- */
.rv { filter: blur(6px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { filter: none; }

/* ---------- Navigation ueber dunklem Hero ---------- */
.has-dark-hero .nav:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-dark-hero .nav:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }
.has-dark-hero .nav:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.86); }
.has-dark-hero .nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.has-dark-hero .nav:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.has-dark-hero .nav:not(.scrolled) .btn-ghost:hover { border-color: #fff; }
.has-dark-hero .nav:not(.scrolled) .nav-burger { border-color: rgba(255, 255, 255, 0.3); }
.has-dark-hero .nav:not(.scrolled) .nav-burger span { background: #fff; }
.has-dark-hero .nav .logo-img,
.has-dark-hero .nav .nav-links a { transition: color 0.3s, filter 0.3s; }

/* ============================================================
   STARTSEITE
   ============================================================ */

/* ---------- Hero ---------- */
.hx {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 96px;
  background: radial-gradient(1200px 700px at 78% 30%, #17384A 0%, var(--night-2) 45%, var(--night) 100%);
  color: #E6EEF2;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.hx::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(10, 26, 34, 0.85));
  pointer-events: none;
}
.hx .container { position: relative; z-index: 2; width: 100%; }
.hx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-soft);
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(245, 194, 107, 0.28);
  border-radius: 999px;
  background: rgba(245, 194, 107, 0.06);
}
.hx-eyebrow .live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #35C26B;
  box-shadow: 0 0 0 0 rgba(53, 194, 107, 0.6);
  animation: hx-ping 2s infinite;
}
@keyframes hx-ping {
  0% { box-shadow: 0 0 0 0 rgba(53, 194, 107, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(53, 194, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 194, 107, 0); }
}
.hx h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 26px 0 26px;
}
.hx h1 .hl {
  color: var(--orange);
  position: relative;
  white-space: nowrap;
}
.hx h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.09em;
  border-radius: 99px;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
  animation: hx-underline 1s 0.9s var(--ease-out) forwards;
}
@keyframes hx-underline { to { transform: scaleX(1); } }
.hx .sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(230, 238, 242, 0.74);
  max-width: 580px;
  margin-bottom: 34px;
}
.hx-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hx .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hx .btn-ghost:hover { border-color: #fff; }
.hx-proof {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 238, 242, 0.55);
}
.hx-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hx-proof svg { width: 14px; height: 14px; stroke: var(--orange-soft); }

.hx-more {
  color: rgba(230, 238, 242, 0.78);
  font-weight: 500;
  font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.hx-more:hover { color: #fff; }
.hx-more .arr { transition: transform 0.35s var(--ease-out); }
.hx-more:hover .arr { transform: translateY(3px); }

/* ---------- Linsen-Hero (Startseite) ----------
   Links die Aussage, rechts das Bild: viele Vorgaenge laufen in die Linse,
   heraus kommt ein geordnetes Band. Canvas in hero-lens.js. */
.hx.hx-lens {
  align-items: stretch;
  padding: 0;
  background:
    radial-gradient(900px 620px at 72% 50%, rgba(23, 58, 77, 0.95) 0%, rgba(15, 37, 48, 0) 70%),
    linear-gradient(180deg, #08161D 0%, var(--night) 55%, #08161D 100%);
}
/* Text bleibt lesbar: links eine ruhige Zone ueber dem Bild */
.hx-lens::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 22, 29, 0.92) 0%, rgba(8, 22, 29, 0.7) 30%, rgba(8, 22, 29, 0) 58%);
}
.hx-lens::after { height: 120px; z-index: 1; background: linear-gradient(180deg, transparent, rgba(8, 22, 29, 0.9)); }
.hx-lens .hx-canvas { z-index: 0; }
.hx-lens > .container {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 130px;
}
.hx-copy { max-width: 760px; }
.hx-lens .hx-eyebrow {
  border: 0; background: none; padding: 0;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(245, 194, 107, 0.9);
}
.hx-lens .hx-eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(237, 152, 42, 0.2));
}
.hx-lens h1 {
  font-size: clamp(46px, 7.4vw, 118px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 30px 0 34px;
  color: #F4F7F8;
}
.hx-lens h1 .hx-line { display: block; white-space: nowrap; }
.hx-lens h1 .hx-line + .hx-line { color: rgba(244, 247, 248, 0.94); }
.hx-lens h1 .hl {
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(100deg, #FFE2AA 0%, var(--orange-soft) 30%, var(--orange) 70%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  padding-right: 0.04em;
}
.hx-lens h1 .hl::after { display: none; }
.hx-lens .sub {
  max-width: 520px;
  margin-bottom: 44px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(214, 226, 232, 0.72);
}
.hx-lens .hx-ctas { gap: 30px; }

/* Messrahmen: vier feine Ecken wie im Sucher */
.hx-frame { position: absolute; inset: 96px 28px 76px; z-index: 1; pointer-events: none; }
.hx-frame i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(230, 238, 242, 0.22); }
.hx-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hx-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hx-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hx-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Leiste am unteren Rand */
.hx-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(230, 238, 242, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 238, 242, 0.42);
}
.hx-rail .container { display: flex; align-items: center; gap: 40px; height: 64px; }
.hx-coord { color: rgba(230, 238, 242, 0.3); }
.hx-scroll {
  margin-left: auto;
  position: relative;
  width: 1px; height: 30px;
  background: rgba(230, 238, 242, 0.14);
  overflow: hidden;
}
.hx-scroll i {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 12px;
  background: var(--orange);
  animation: hx-drop 2.6s cubic-bezier(0.7, 0, 0.2, 1) infinite;
}
@keyframes hx-drop {
  0% { transform: translateY(-14px); }
  45%, 100% { transform: translateY(32px); }
}

@media (max-width: 900px) {
  .hx-lens::before { background: linear-gradient(180deg, rgba(8, 22, 29, 0) 0%, rgba(8, 22, 29, 0.55) 34%, rgba(8, 22, 29, 0.88) 60%); }
  .hx-lens > .container { align-items: flex-end; padding-top: 200px; padding-bottom: 110px; }
  .hx-frame { display: none; }
}
@media (max-width: 720px) {
  .hx.hx-lens { min-height: 100svh; padding: 0; }
  .hx.hx-lens h1 { font-size: clamp(40px, 12.4vw, 60px); margin: 22px 0 22px; }
  .hx-lens h1 .hx-line { white-space: normal; }
  .hx.hx-lens .sub { margin-bottom: 32px; }
  .hx.hx-lens .hx-ctas { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hx-rail .container { gap: 20px; height: 54px; }
  .hx-coord { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-scroll i { animation: none; transform: translateY(9px); }
}

/* ---------- Live-Demo-Karte im Hero ---------- */
.demo {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(245, 194, 107, 0.65), rgba(111, 167, 199, 0.25) 40%, rgba(255, 255, 255, 0.06));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.demo-inner {
  border-radius: 19px;
  background: rgba(12, 30, 40, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 22px;
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 238, 242, 0.55);
}
.demo-head b { color: var(--orange-soft); font-weight: 500; }
.demo-head .dots { display: flex; gap: 6px; }
.demo-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.demo-head .dots i:first-child { background: #35C26B; }
.demo-q {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}
.demo-field {
  position: relative;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.demo-field:focus-within {
  border-color: rgba(245, 194, 107, 0.7);
  box-shadow: 0 0 0 4px rgba(237, 152, 42, 0.15);
  background: rgba(255, 255, 255, 0.07);
}
.demo-field textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 16px 52px;
}
.demo-field textarea::placeholder { color: rgba(230, 238, 242, 0.42); }
.demo-send {
  position: absolute;
  right: 10px; bottom: 10px;
}
.demo-send .btn { padding: 10px 16px; font-size: 14.5px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(230, 238, 242, 0.85);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease-spring), color 0.2s;
}
.chip:hover { background: rgba(245, 194, 107, 0.12); border-color: rgba(245, 194, 107, 0.5); color: #fff; transform: translateY(-2px); }
.chip:active { transform: scale(0.96); }
.demo-out {
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(230, 238, 242, 0.92);
  min-height: 1.6em;
}
.demo-out p + p { margin-top: 10px; }
.demo-out .you {
  font-size: 14px;
  color: rgba(230, 238, 242, 0.55);
  border-left: 2px solid rgba(245, 194, 107, 0.5);
  padding-left: 12px;
  margin-bottom: 14px;
}
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.demo-actions .btn { padding: 11px 18px; font-size: 14.5px; }
.demo-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(230, 238, 242, 0.42);
}
.demo-note a { color: rgba(230, 238, 242, 0.6); font-weight: 500; text-decoration: underline; }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--orange);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.thinking { display: inline-flex; gap: 5px; padding: 6px 0; }
.thinking i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange-soft);
  animation: think 1.1s infinite ease-in-out;
}
.thinking i:nth-child(2) { animation-delay: 0.15s; }
.thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 0%, 80%, 100% { transform: translateY(0); opacity: 0.35; } 40% { transform: translateY(-5px); opacity: 1; } }

/* ---------- Laufband ---------- */
.ticker {
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid rgba(16, 40, 53, 0.12);
  border-bottom: 1px solid rgba(16, 40, 53, 0.12);
  position: relative;
  z-index: 3;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0 16px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.ticker-track span::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--ink);
  transform: rotate(45deg);
  flex: none;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sektionskoepfe groesser (alle Seiten) ---------- */
.sec-head h2 { font-size: clamp(34px, 5vw, 58px); max-width: 880px; letter-spacing: -0.03em; }

/* ============================================================
   UNTERSEITEN: dunkler Hero wie auf der Startseite
   Gleiche Flaeche, gleiches Prozess-Netz (net.js), gleiche Typo.
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 96px;
  background: radial-gradient(1100px 600px at 80% 20%, #17384A 0%, var(--night-2) 48%, var(--night) 100%);
  color: #E6EEF2;
}
.page-hero.blueprint::before { display: none; }
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(10, 26, 34, 0.7));
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 940px;
}
.page-hero h1 span[style*="--orange-deep"],
.page-hero h1 span[style*="--blue"] { color: var(--orange) !important; }
.page-hero .sub { color: rgba(230, 238, 242, 0.74); max-width: 680px; }
.page-hero .sub a { color: var(--orange-soft); }
.page-hero .mono-label,
.page-hero .mono-label::before { color: var(--orange-soft); }
.page-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.page-hero .btn-ghost:hover { border-color: #fff; }
.page-hero [style*="color: var(--gray)"] { color: rgba(230, 238, 242, 0.55) !important; }


/* ---------- Bento-Raster der Loesungen ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 18px;
}
.bento .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transform-style: preserve-3d;
}
.bento .card:hover { transform: translateY(-6px); }
.bento .b-wide { grid-column: span 4; }
.bento .b-half { grid-column: span 3; }
.bento .b-third { grid-column: span 2; }
.b-visual {
  position: relative;
  height: 170px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.b-wide .b-visual { height: 220px; }
.b-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.b-body .card-link { margin-top: auto; padding-top: 18px; }
.b-body .card-links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.b-body .card-links .card-link { margin-top: 0; padding-top: 0; }
.b-body h3 { font-size: 22px; }
.card.on-dark { background: var(--ink); border-color: var(--ink); }
.card.on-dark h3 { color: #fff; }
.card.on-dark p { color: #B9C6CD; }
.card.on-dark .card-link { color: #fff; }
.card.on-dark .b-visual { background: #0D222D; border-bottom-color: rgba(255, 255, 255, 0.08); }

/* Mini-Visual: Lager zaehlt */
.v-count {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
}
.v-count .pal { display: grid; grid-template-columns: repeat(6, 30px); gap: 8px; }
.v-count .pal i {
  width: 30px; height: 30px; border-radius: 5px;
  background: #D3DEF0; border: 1px solid #B9C8DF;
  animation: pal-hit 6s infinite;
  animation-delay: calc(var(--i) * 0.18s);
}
@keyframes pal-hit {
  0%, 8% { background: #D3DEF0; border-color: #B9C8DF; }
  12%, 70% { background: rgba(237, 152, 42, 0.25); border-color: var(--orange); }
  85%, 100% { background: #D3DEF0; border-color: #B9C8DF; }
}
.v-count .read {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  background: var(--ink); color: #A8CBE0; padding: 8px 12px; border-radius: 6px;
}
.v-count .read b { color: #fff; font-size: 30px; display: block; font-family: var(--font-head); letter-spacing: -0.01em; }

/* Mini-Visual: Qualitaet scannt */
.v-scan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; }
.v-scan .part {
  width: 58px; height: 58px; border-radius: 50%;
  border: 6px solid #9FB3C4; background: #E3EAF0; position: relative;
}
.v-scan .part.bad::after {
  content: ""; position: absolute; inset: -12px; border: 2px solid #E5484D; border-radius: 6px;
  animation: bad-box 3.2s infinite;
}
@keyframes bad-box { 0%, 45% { opacity: 0; transform: scale(1.3); } 55%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.v-scan .beam {
  position: absolute; top: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, transparent, rgba(111, 167, 199, 0.45), transparent);
  animation: beam 3.2s infinite linear;
}
@keyframes beam { from { left: -60px; } to { left: 100%; } }

/* Mini-Visual: Linie, Sensorkurve */
.v-wave { position: absolute; inset: 0; }
.v-wave svg { width: 100%; height: 100%; }
.v-wave .ln { fill: none; stroke: var(--steel); stroke-width: 2; stroke-dasharray: 600; animation: wave-draw 4s infinite linear; }
.v-wave .warn { fill: none; stroke: var(--orange); stroke-width: 2.5; }
@keyframes wave-draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.v-wave .tag-warn {
  position: absolute; right: 14px; top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink); background: var(--orange-soft); padding: 4px 8px; border-radius: 4px;
  animation: blink-warn 2s infinite;
}
@keyframes blink-warn { 50% { opacity: 0.45; } }

/* Mini-Visual: Buero, Nachrichten */
.v-msgs { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.v-msgs .m {
  max-width: 82%; padding: 9px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  animation: msg-in 7s infinite;
}
.v-msgs .m.in-l { background: rgba(255, 255, 255, 0.08); color: #D5E0E6; align-self: flex-start; border-bottom-left-radius: 4px; }
.v-msgs .m.in-r { background: var(--orange); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.v-msgs .m:nth-child(2) { animation-delay: 0.9s; }
.v-msgs .m:nth-child(3) { animation-delay: 1.8s; }
@keyframes msg-in { 0% { opacity: 0; transform: translateY(8px); } 8%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

/* Mini-Visual: Digital, Seite laedt */
.v-web { position: absolute; inset: 18px 22px; border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.v-web .bar { height: 22px; background: var(--bg-alt); border-bottom: 1px solid var(--line); display: flex; gap: 5px; align-items: center; padding-left: 9px; }
.v-web .bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.v-web .sk { margin: 10px 12px 0; height: 9px; border-radius: 5px; background: linear-gradient(90deg, var(--line-soft) 0%, #F6F3E6 50%, var(--line-soft) 100%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.v-web .sk.w60 { width: 60%; } .v-web .sk.w80 { width: 80%; } .v-web .sk.hero { height: 34px; background: rgba(237, 152, 42, 0.25); animation: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Mini-Visual: Fahrplan */
.v-road { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.v-road svg { width: 86%; height: 80%; }
.v-road .rd { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 6 7; animation: road 1.2s linear infinite; }
@keyframes road { to { stroke-dashoffset: -26; } }

/* ---------- Kennzahlen-Band ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact { padding: 34px 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.fact b em { font-style: normal; color: var(--orange-deep); }
.fact span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--gray); }

/* ---------- Seraphone-Inbox: Zeilen laufen nacheinander ein ---------- */
.sera-ui.live .sera-row,
.sera-ui.live .sera-suggest { opacity: 0; transform: translateX(-12px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.sera-ui.live.in .sera-row,
.sera-ui.live.in .sera-suggest { opacity: 1; transform: none; }
.sera-ui.live.in .sera-row:nth-of-type(2) { transition-delay: 0.25s; }
.sera-ui.live.in .sera-row:nth-of-type(3) { transition-delay: 0.5s; }
.sera-ui.live.in .sera-row:nth-of-type(4) { transition-delay: 0.75s; }
.sera-ui.live.in .sera-row:nth-of-type(5) { transition-delay: 1s; }
.sera-ui.live.in .sera-suggest { transition-delay: 1.4s; }

/* ---------- KI-Check-Teaser ---------- */
.check-teaser {
  border-radius: 26px;
  padding: 56px;
  background: radial-gradient(700px 400px at 100% 0%, rgba(237, 152, 42, 0.18), transparent 60%), linear-gradient(160deg, #16354A, var(--night) 75%);
  color: #E6EEF2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.check-teaser h2 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -0.03em; margin: 16px 0 18px; }
.check-teaser > div > p { color: rgba(230, 238, 242, 0.74); font-size: 18px; }
.check-teaser .mono-label { color: var(--orange-soft); }
.check-teaser .mono-label::before { color: var(--orange-soft); }
.steps3 { display: grid; gap: 12px; }
.steps3 li {
  list-style: none;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.steps3 li:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(245, 194, 107, 0.4); transform: translateX(6px); }
.steps3 .n {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
  background: rgba(245, 194, 107, 0.14); color: var(--orange-soft);
}
.steps3 b { display: block; color: #fff; font-family: var(--font-head); font-size: 17px; }
.steps3 span { font-size: 14px; color: rgba(230, 238, 242, 0.6); }


/* ============================================================
   CHAT-WIDGET (alle Seiten)
   ============================================================ */
.bc-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 34px rgba(10, 26, 34, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, opacity 0.3s;
  animation: bc-in 0.6s 1.2s var(--ease-spring) both;
}
.bc-launch:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px rgba(10, 26, 34, 0.42); }
.bc-launch .bc-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
  position: relative;
}
.bc-launch .bc-avatar svg { width: 17px; height: 17px; stroke: var(--ink); }
.bc-launch .bc-avatar::after {
  content: ""; position: absolute; right: -1px; top: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #35C26B; border: 2px solid var(--ink);
}
.bc-launch.hide { opacity: 0; pointer-events: none; transform: translateY(12px) scale(0.9); }
@keyframes bc-in { from { opacity: 0; transform: translateY(20px) scale(0.85); } to { opacity: 1; transform: none; } }
.bc-teaser {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 90;
  max-width: 260px;
  padding: 12px 34px 12px 14px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 14px 34px rgba(10, 26, 34, 0.18);
  border: 1px solid var(--line);
  cursor: pointer;
  animation: bc-in 0.5s var(--ease-spring) both;
}
.bc-teaser button {
  position: absolute; right: 6px; top: 6px;
  width: 24px; height: 24px; border: 0; background: none; cursor: pointer;
  color: var(--gray); font-size: 16px; line-height: 1;
}
.bc-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  /* Ueber dem Cookie-Banner (z-index 999), sonst verdeckt es das Eingabefeld */
  z-index: 1000;
  width: min(400px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(10, 26, 34, 0.35), 0 0 0 1px rgba(16, 40, 53, 0.08);
  transform-origin: 100% 100%;
  animation: bc-open 0.4s var(--ease-spring) both;
}
@keyframes bc-open { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: none; } }
.bc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  background: linear-gradient(160deg, #16354A, var(--ink) 75%);
  color: #fff;
}
.bc-head .bc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.bc-head .bc-avatar svg { width: 20px; height: 20px; stroke: var(--ink); }
.bc-head b { display: block; font-family: var(--font-head); font-size: 16px; }
.bc-head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(230, 238, 242, 0.65); }
.bc-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #35C26B; }
.bc-head .bc-x {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.bc-head .bc-x:hover { background: rgba(255, 255, 255, 0.08); }
.bc-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.bc-msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  animation: bc-msg 0.35s var(--ease-out) both;
  overflow-wrap: anywhere;
}
@keyframes bc-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bc-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bc-msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.bc-msg p + p { margin-top: 8px; }
.bc-msg.err { background: #FFF4F0; border-color: #F2C8B8; }
.bc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  padding: 8px 12px; border-radius: 9px;
  background: var(--orange); color: var(--ink);
  transition: transform 0.2s var(--ease-spring);
}
.bc-links a:hover { transform: translateY(-2px); text-decoration: none; }
.bc-sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.bc-sugg button {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: border-color 0.2s, transform 0.25s var(--ease-spring);
}
.bc-sugg button:hover { border-color: var(--orange); transform: translateY(-2px); }
.bc-form { display: flex; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid var(--line-soft); background: #fff; }
.bc-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  max-height: 120px;
  outline: none;
  background: var(--bg);
}
.bc-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237, 152, 42, 0.15); }
.bc-form button {
  flex: none;
  width: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}
.bc-form button:hover { background: var(--orange-deep); }
.bc-form button:active { transform: scale(0.92); }
.bc-form button:disabled { opacity: 0.5; cursor: default; }
.bc-form button svg { width: 18px; height: 18px; }
.bc-legal { padding: 0 14px 10px; background: #fff; font-size: 11.5px; color: var(--gray); }
.bc-legal a { color: var(--gray); text-decoration: underline; font-weight: 500; }

/* ============================================================
   RESPONSIVE + REDUCED MOTION
   ============================================================ */
@media (max-width: 1024px) {
  .hx-grid, .check-teaser { grid-template-columns: 1fr; }
  .hx { padding-top: 120px; }
  .bento .b-wide, .bento .b-half { grid-column: span 6; }
  .bento .b-third { grid-column: span 3; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .page-hero { padding: 120px 0 64px; }
  /* Am Handy steht die Live-Demo direkt unter der Headline: sie ist der
     staerkste Moment der Seite und soll ohne langes Scrollen sichtbar sein */
  .hx-grid { gap: 22px; }
  .hx-grid > div:first-child { display: contents; }
  .hx-eyebrow { order: 1; justify-self: start; }
  .hx h1 { order: 2; margin: 0; }
  .hx .demo { order: 3; }
  .hx .sub { order: 4; margin-bottom: 0; }
  .hx-ctas { order: 5; }
  .hx-proof { order: 6; margin-top: 0; }
  .v-count .pal { grid-template-columns: repeat(6, 22px); gap: 6px; }
  .v-count .pal i { width: 22px; height: 22px; }
  .hx { min-height: auto; padding: 112px 0 64px; }
  .hx h1 { font-size: clamp(38px, 11vw, 52px); }
  .demo-inner { padding: 18px; }
  .bento .b-third { grid-column: span 6; }
  .check-teaser { padding: 34px 22px; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .bc-launch { right: 14px; bottom: 14px; padding: 12px; }
  .bc-launch .bc-label { display: none; }
  .bc-teaser { right: 14px; bottom: 76px; }
  .bc-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { filter: none; }
  .ticker-track { animation: none; }
  .hx h1 .hl::after { animation: none; transform: scaleX(1); }
  .btn-primary::after { display: none; }
}

/* Inhalte im ersten Bildschirm blenden beim Laden ein, ohne auf den
   Scroll-Observer zu warten. Sonst wirkt der Hero kurz leer. */
.ld { animation: ld-in 0.9s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes ld-in { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ============================================================
   KI-CHECK v3: Freitext-Einstieg, Bestaetigung, Rueckfragen
   ============================================================ */
.ck-text { min-height: 120px; resize: vertical; line-height: 1.5; }
.ck-chips { margin: 14px 0 6px; }
.chip.on { background: rgba(237, 152, 42, 0.18); border-color: var(--orange); color: #fff; }
.ck-skip { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.ck-skip button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--orange-soft); text-decoration: underline;
}
.ck-legal { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.ck-resume {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 26px; border-radius: 14px;
  background: rgba(237, 152, 42, 0.1); border: 1px solid rgba(237, 152, 42, 0.35);
}
.ck-resume b { display: block; font-family: var(--font-head); font-size: 17px; }
.ck-resume span { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.ck-think { display: flex; align-items: center; gap: 18px; padding: 70px 0; justify-content: center; text-align: left; }
.ck-think .thinking i { width: 10px; height: 10px; }
.ck-think b { display: block; font-family: var(--font-head); font-size: 20px; }
.ck-think span { color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.ck-summary {
  margin: 6px 0 22px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--orange);
  font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.9);
}
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.ck-grid label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.ck-select {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05);
  color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; outline: none; cursor: pointer;
}
.ck-select:focus { border-color: rgba(237, 152, 42, 0.6); }
.ck-select option { color: var(--ink); }
.ck-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.ck-label span { font-weight: 400; color: rgba(255, 255, 255, 0.4); }
.ck-ai-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-soft);
}
.ck-ai-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(237, 152, 42, 0.2); }
.ck-report-body {
  padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(237, 152, 42, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(237, 152, 42, 0.25);
  font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.9);
}
.ck-report-body p + p { margin-top: 10px; }
@media (max-width: 720px) {
  .ck-grid { grid-template-columns: 1fr; }
  .ck-think { padding: 48px 0; }
}

/* Kurzmodus: Vertiefen-Karte, Kontakt im Ergebnis, freie Antwort */
.ck-own { margin-top: 12px; }
.ck-deepen {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 0 0 34px; padding: 20px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(245, 194, 107, 0.5);
}
.ck-deepen > div { flex: 1 1 320px; }
.ck-deepen b { display: block; font-family: var(--font-head); font-size: 18px; margin-bottom: 4px; }
.ck-deepen span { font-size: 14.5px; color: rgba(255, 255, 255, 0.65); }
.ck-lead {
  margin-bottom: 34px;
  padding: 24px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(237, 152, 42, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(237, 152, 42, 0.35);
}
.ck-lead > p { color: rgba(255, 255, 255, 0.8); font-size: 15.5px; margin-bottom: 16px; }
.ck-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck-lead-form input[name=email] { grid-column: 1 / -1; }
.ck-lead-form .wiz-next { grid-column: 1 / -1; justify-content: center; }
.ck-lead-ok { margin-bottom: 16px; }
@media (max-width: 720px) { .ck-lead-form { grid-template-columns: 1fr; } }

/* ============================================================
   LEISTUNGEN, KI-CHATBOTS, PROZESSAUTOMATISIERUNG
   ============================================================ */

/* Beispieldialog eines Wissensassistenten: Nachrichten laufen nacheinander ein */
.kb-mock {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(160deg, #16354A, var(--night) 80%);
  box-shadow: 0 30px 70px rgba(16, 40, 53, 0.3);
  display: flex; flex-direction: column; gap: 10px;
}
.kb-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(230, 238, 242, 0.55);
}
.kb-dot { width: 8px; height: 8px; border-radius: 50%; background: #35C26B; }
.kb-msg {
  max-width: 88%; padding: 11px 14px; border-radius: 15px; font-size: 14.5px; line-height: 1.5;
}
.kb-msg.me { align-self: flex-end; background: var(--orange); color: var(--ink); font-weight: 600; border-bottom-right-radius: 4px; }
.kb-msg.bot { align-self: flex-start; background: rgba(255, 255, 255, 0.08); color: #E6EEF2; border-bottom-left-radius: 4px; }
.kb-src {
  display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--orange-soft);
}
.kb-src b { font-weight: 600; margin-right: 6px; color: rgba(230, 238, 242, 0.5); text-transform: uppercase; }
.kb-mock .kb-msg { opacity: 0; transform: translateY(10px) scale(0.98); }
.rv.in .kb-mock .kb-msg,
.kb-mock.in .kb-msg { animation: kb-in 0.55s var(--ease-spring) forwards; }
.rv.in .kb-mock .kb-msg:nth-of-type(2) { animation-delay: 0.35s; }
.rv.in .kb-mock .kb-msg:nth-of-type(3) { animation-delay: 1.5s; }
.rv.in .kb-mock .kb-msg:nth-of-type(4) { animation-delay: 1.95s; }
.rv.in .kb-mock .kb-msg:nth-of-type(5) { animation-delay: 3.1s; }
@keyframes kb-in { to { opacity: 1; transform: none; } }
.kb-note { margin-top: 10px; font-size: 12.5px; color: var(--gray); }

.kb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: kb; }
.kb-step {
  position: relative; padding: 24px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.kb-step .n {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; background: rgba(237, 152, 42, 0.14); color: var(--orange-deep);
}
.kb-step b { font-family: var(--font-head); font-size: 18px; }
.kb-step span:last-child { color: var(--gray); font-size: 14.5px; }
.kb-step:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; right: -12px; width: 8px; height: 8px;
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg);
}

/* Prozessautomatisierung: Kette, die Schritt fuer Schritt abgehakt wird */
.pa-flow {
  border-radius: 20px; padding: 14px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); display: grid; gap: 8px;
}
.pa-step {
  display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line-soft);
  opacity: 0.35; transform: translateX(-8px);
}
.pa-step b { display: block; font-family: var(--font-head); font-size: 15.5px; }
.pa-step span { font-size: 13px; color: var(--gray); }
.pa-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(29, 64, 82, 0.08); color: var(--petrol); font-weight: 700;
}
.pa-step.warn .pa-ico { background: rgba(237, 152, 42, 0.16); color: var(--orange-deep); }
.pa-ok { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.rv.in .pa-step { animation: pa-step 0.6s var(--ease-out) forwards; animation-delay: calc(var(--k, 0) * 1s); }
.rv.in .pa-ok { animation: pa-ok 0.4s var(--ease-spring) forwards; animation-delay: calc(var(--k, 0) * 1s + 0.45s); }
.pa-step:nth-child(1) { --k: 0; } .pa-step:nth-child(2) { --k: 0.55; } .pa-step:nth-child(3) { --k: 0.95; }
.pa-step:nth-child(4) { --k: 1.25; } .pa-step:nth-child(5) { --k: 1.9; } .pa-step:nth-child(6) { --k: 2.6; }
@keyframes pa-step { to { opacity: 1; transform: none; } }
@keyframes pa-ok { to { background: #35C26B; border-color: #35C26B; box-shadow: 0 0 0 4px rgba(53, 194, 107, 0.18); } }
.pa-step.warn .pa-ok { animation-name: pa-warn; }
@keyframes pa-warn { to { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(237, 152, 42, 0.2); } }

/* Leistungen: Aufmacher, Kernleistungen, Spezialgebiete */
.ls-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0; padding: 0; overflow: hidden;
  color: inherit; text-decoration: none;
}
.ls-hero:hover { text-decoration: none; }
.ls-hero-text { padding: 38px; }
.ls-hero-text h3 { font-size: clamp(24px, 2.6vw, 32px); }
.ls-hero-text p { font-size: 16.5px; margin-bottom: 20px; }
.ls-hero-text .check-list { margin-bottom: 4px; }
.ls-hero-visual {
  background: linear-gradient(160deg, #16354A, var(--night) 80%);
  padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.ls-core .card { color: inherit; display: flex; flex-direction: column; }
.ls-core .card:hover { text-decoration: none; }
.ls-core .card h3 { font-size: 24px; }
.ls-core .card .card-link { margin-top: auto; padding-top: 18px; }
.ls-special { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ls-special a {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 40px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.ls-special a:hover { transform: translateY(-4px); border-color: rgba(16, 40, 53, 0.25); box-shadow: var(--shadow-lift); text-decoration: none; }
.ls-special b { font-family: var(--font-head); font-size: 16px; }
.ls-special span { font-size: 13.5px; color: var(--gray); }
.ls-special i { position: absolute; left: 18px; bottom: 14px; font-style: normal; color: var(--orange-deep); transition: transform 0.25s var(--ease-out); }
.ls-special a:hover i { transform: translateX(5px); }

@media (max-width: 1024px) {
  .kb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-step::after { display: none; }
  .ls-hero { grid-template-columns: 1fr; }
  .ls-special { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .kb-steps, .ls-special { grid-template-columns: 1fr; }
  .ls-hero-text { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-mock .kb-msg, .pa-step { opacity: 1; transform: none; }
}

/* Startseite: Mini-Chat in der Chatbot-Kachel, Ablauf-Visual, zwei Gesichter im Team */
.kb-mini { position: absolute; inset: 0; padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.kb-mini .kb-msg { opacity: 0; transform: translateY(8px); animation: kb-loop 8s infinite; font-size: 14px; }
.kb-mini .kb-msg.bot { animation-delay: 1.1s; }
@keyframes kb-loop { 0% { opacity: 0; transform: translateY(8px); } 6%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.v-flow { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; }
.v-flow i { width: 34px; height: 34px; border-radius: 10px; background: #E3EAF0; border: 1.5px solid #B9C8DF; position: relative; z-index: 1; }
.v-flow::before { content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #B9C8DF 0 6px, transparent 6px 11px); }
/* Die Marke beschleunigt und bremst an jeder Station, wie ein Vorgang, der kurz geprueft wird */
.v-flow .dot {
  position: absolute; top: calc(50% - 7px); left: 18%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 5px rgba(237, 152, 42, 0.2); z-index: 2;
  animation: flow-hop 4.8s infinite;
}
@keyframes flow-hop {
  0% { left: 18%; animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  18% { left: 37%; } 30% { left: 37%; animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  48% { left: 56%; } 60% { left: 56%; animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  78% { left: 77%; } 100% { left: 77%; }
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo-img { position: relative; margin: 0; border-radius: var(--radius-card); overflow: hidden; height: 300px; box-shadow: var(--shadow-card); }
.duo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease-out); }
.duo-img:hover img { transform: scale(1.04); }
.duo-img figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(10, 26, 34, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: rgba(230, 238, 242, 0.75); font-size: 12.5px;
}
.duo-img figcaption b { display: block; color: #fff; font-family: var(--font-head); font-size: 15px; }
.duo-img:first-child img { object-position: 60% 30%; }
@media (max-width: 720px) { .duo-img { height: 230px; } }

/* ---------- Weiterlesen am Artikelende ---------- */
.rm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rm-card { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; padding: 26px; }
.rm-card b { font-family: var(--font-head); font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.rm-card span { color: var(--gray); font-size: 15px; line-height: 1.55; }
.rm-card i { font-style: normal; font-weight: 700; font-size: 14px; color: var(--orange-deep); margin-top: auto; padding-top: 6px; }
.rm-card:hover i { text-decoration: underline; }
@media (max-width: 860px) { .rm-grid { grid-template-columns: 1fr; } }

/* ---------- Dunkle Baender: mehr Kontrast im Seitenrhythmus ---------- */
.section.night {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1000px 520px at 15% 0%, #17384A 0%, var(--night-2) 50%, var(--night) 100%);
  color: #E6EEF2;
}
.section.night::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(32% 40% at 22% 30%, rgba(237, 152, 42, 0.16), transparent 70%),
    radial-gradient(30% 42% at 78% 72%, rgba(111, 167, 199, 0.2), transparent 70%);
  animation: aurora 19s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  pointer-events: none;
}
.section.night::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.section.night > .container { position: relative; z-index: 1; }
.night .sec-head h2 { color: #fff; }
.night .sec-head p.lead { color: rgba(230, 238, 242, 0.72); }
.night .sec-head .num { color: var(--orange-soft); }
.night .sec-head .num::after { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 12px); }
@keyframes aurora {
  0% { transform: translate3d(-5%, -3%, 0) scale(1); }
  45% { transform: translate3d(4%, 5%, 0) scale(1.1); }
  100% { transform: translate3d(7%, -4%, 0) scale(0.96); }
}

.tint-steel { background: linear-gradient(180deg, #E4EDF2 0%, #EEF2EE 100%); }
.glow-warm { background: radial-gradient(900px 520px at 50% 45%, rgba(237, 152, 42, 0.17), transparent 70%), var(--bg); }

/* ---------- Bildleiste: grau, Farbe beim Hover ---------- */
.spec-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.spec {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  background: var(--night-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.spec picture { display: block; width: 100%; height: 100%; }
.spec img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
  transform: scale(1.03);
  transition: filter 0.7s var(--ease-out), transform 1.2s var(--ease-out);
}
.spec::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 34, 0) 42%, rgba(10, 26, 34, 0.88) 100%);
  z-index: 1;
}
.spec::before {
  content: "";
  position: absolute; left: 0; top: 0;
  height: 3px; width: 0;
  background: var(--orange);
  z-index: 2;
  transition: width 0.7s var(--ease-out);
}
.spec-label { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.spec-label b { font-family: var(--font-head); font-size: 19px; line-height: 1.15; letter-spacing: -0.02em; }
.spec-label i {
  font-style: normal; font-size: 13.5px; line-height: 1.4; color: rgba(230, 238, 242, 0.8);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease-out), opacity 0.4s var(--ease-out);
}
.spec:hover img, .spec:focus-visible img, .spec.lit img { filter: grayscale(0) contrast(1.05) brightness(1); transform: scale(1.09); }
.spec:hover::before, .spec:focus-visible::before, .spec.lit::before { width: 100%; }
.spec:hover .spec-label i, .spec:focus-visible .spec-label i, .spec.lit .spec-label i { max-height: 3em; opacity: 1; }
.spec-strip:hover .spec:not(:hover):not(.lit) img { filter: grayscale(1) contrast(1.08) brightness(0.55); }
.spec:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 1024px) { .spec-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .spec-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .spec-strip::-webkit-scrollbar { display: none; }
  .spec { flex: 0 0 64%; scroll-snap-align: center; }
}

/* ---------- Ueberschriften Wort fuer Wort ---------- */
.w-split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.7s var(--ease-out), filter 0.5s var(--ease-out);
  transition-delay: var(--wd, 0s);
}
.in .w-split .w { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .section.night::before { animation: none; }
  .spec img, .spec::before, .spec-label i { transition: none; }
}

/* ---------- Angebot: Karten mit Fotos, Animationen als Glas darueber ---------- */
.bento-photo { grid-auto-rows: auto; }
.bento-photo .b-hero, .bento-photo .b-pic { isolation: isolate; }

/* Grosse Chatbot-Kachel: Foto vollflaechig, Text links, Chat schwebt rechts */
.b-hero {
  position: relative;
  min-height: 500px;
  justify-content: flex-end;
  background: var(--night);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 30px 60px rgba(10, 26, 34, 0.28);
}
.b-hero .b-bg { position: absolute; inset: 0; z-index: -2; }
.b-hero .b-bg picture, .b-pic .b-visual picture { display: block; width: 100%; height: 100%; }
.b-hero .b-bg img, .b-pic .b-visual img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease-out);
}
.b-hero:hover .b-bg img, .b-pic:hover .b-visual img { transform: scale(1.1); }
.b-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 26, 34, 0.95) 0%, rgba(10, 26, 34, 0.82) 34%, rgba(10, 26, 34, 0.2) 72%, rgba(10, 26, 34, 0.05) 100%),
    linear-gradient(0deg, rgba(10, 26, 34, 0.55) 0%, transparent 45%);
}
.b-hero .b-body { position: relative; flex: none; max-width: 54%; padding: 36px; }
.b-hero .card-num { color: var(--orange-soft); }
.b-hero h3 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.b-hero p { color: #C9D5DB; }
.b-hero .card-link { color: #fff; }
.b-glass {
  position: absolute; z-index: 1;
  right: 28px; top: 28px;
  width: min(360px, 42%);
  min-height: 190px;
  border-radius: 18px;
  background: rgba(10, 26, 34, 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  animation: glass-float 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.b-glass .kb-mini { padding: 20px; }
@keyframes glass-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Kleinere Kacheln: Foto oben, Animation darueber */
.b-pic .b-visual { height: 230px; background: var(--night-2); border-bottom: 0; }
.b-pic .b-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 26, 34, 0.55) 0%, rgba(10, 26, 34, 0) 55%);
}
.b-pic .b-visual > div { z-index: 2; }
.b-pic .v-msgs { background: linear-gradient(90deg, rgba(10, 26, 34, 0.78), rgba(10, 26, 34, 0.35)); }
.b-pic .v-msgs .m.in-l { background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (max-width: 1024px) {
  .b-hero .b-body { max-width: 62%; }
}
@media (max-width: 720px) {
  .bento-photo .b-half { grid-column: span 6; }
  .b-hero { min-height: 620px; }
  .b-hero .b-body { max-width: none; padding: 26px 22px; }
  .b-shade { background: linear-gradient(0deg, rgba(10, 26, 34, 0.97) 0%, rgba(10, 26, 34, 0.86) 38%, rgba(10, 26, 34, 0.1) 72%); }
  .b-glass { left: 16px; right: 16px; top: 16px; width: auto; min-height: 0; }
  .b-hero .b-bg img { object-position: 68% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .b-glass { animation: none; }
  .b-hero .b-bg img, .b-pic .b-visual img { transition: none; }
}

/* Overlay Automatisierung: drei Stationen, die in Schueben abgehakt werden */
.v-steps {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; gap: 8px; padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(10, 26, 34, 0.25);
}
.v-steps span {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
  padding: 7px 9px; border-radius: 9px; background: rgba(16, 40, 53, 0.05);
}
.v-steps i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #C9D3DA; animation: step-ok 5.2s infinite; }
.v-steps span:nth-child(2) i { animation-delay: 0.55s; }
.v-steps span:nth-child(3) i { animation-delay: 1.55s; }
@keyframes step-ok {
  0%, 8% { background: #C9D3DA; box-shadow: none; }
  12% { background: var(--orange); box-shadow: 0 0 0 5px rgba(237, 152, 42, 0.25); }
  22%, 82% { background: #35C26B; box-shadow: 0 0 0 4px rgba(53, 194, 107, 0.18); }
  92%, 100% { background: #C9D3DA; box-shadow: none; }
}

/* Overlay Seraphone: ein Anruf kommt rein, wird angenommen, der Termin steht.
   Eine Zeitachse von 7,5 s fuer alle drei Teile, Gespraech in unregelmaessigen Schueben */
.v-call {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  padding: 14px 16px 13px; border-radius: 16px;
  background: rgba(10, 26, 34, 0.74);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  color: rgba(230, 238, 242, 0.7); font-size: 12px; line-height: 1.3;
}
.vc-head { display: flex; align-items: center; gap: 12px; }
.vc-head b { display: block; color: #fff; font-family: var(--font-head); font-size: 14.5px; }
.vc-head small { display: block; font-size: 12px; }
.vc-head small span { display: inline-block; }
.vc-head small .s2 { display: none; }
.vc-ring {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--orange); color: var(--ink);
  animation: vc-ring 7.5s infinite;
}
.vc-ring svg { width: 16px; height: 16px; animation: vc-shake 7.5s infinite; }
@keyframes vc-ring {
  0%, 16% { background: var(--orange); box-shadow: 0 0 0 0 rgba(237, 152, 42, 0.5); }
  4%, 12% { box-shadow: 0 0 0 9px rgba(237, 152, 42, 0); }
  8% { box-shadow: 0 0 0 0 rgba(237, 152, 42, 0.5); }
  19%, 100% { background: #35C26B; box-shadow: 0 0 0 4px rgba(53, 194, 107, 0.18); }
}
@keyframes vc-shake {
  0%, 2%, 6%, 10%, 14%, 17%, 100% { transform: rotate(0); }
  1%, 5%, 9%, 13% { transform: rotate(-14deg); }
  3%, 7%, 11%, 15% { transform: rotate(14deg); }
}
.vc-wave { display: flex; align-items: center; gap: 3px; height: 26px; margin: 10px 0 9px; animation: vc-talk 7.5s infinite; }
.vc-wave i { flex: 1; height: 100%; border-radius: 2px; background: rgba(158, 203, 230, 0.75); transform: scaleY(0.12); animation: vc-bar 0.9s infinite alternate cubic-bezier(0.7, 0, 0.3, 1); }
.vc-wave i:nth-child(3n) { animation-duration: 0.62s; }
.vc-wave i:nth-child(3n+1) { animation-duration: 1.13s; animation-delay: -0.4s; }
.vc-wave i:nth-child(4n) { animation-duration: 0.47s; animation-delay: -0.2s; background: rgba(245, 194, 107, 0.85); }
.vc-wave i:nth-child(5n+2) { animation-duration: 0.81s; animation-delay: -0.7s; }
@keyframes vc-bar { 0% { transform: scaleY(0.12); } 35% { transform: scaleY(0.85); } 60% { transform: scaleY(0.3); } 100% { transform: scaleY(0.62); } }
@keyframes vc-talk {
  0%, 18% { opacity: 0.18; filter: saturate(0); }
  22%, 34% { opacity: 1; filter: none; }
  37%, 41% { opacity: 0.35; }
  44%, 66% { opacity: 1; filter: none; }
  70%, 100% { opacity: 0.18; filter: saturate(0); }
}
.vc-done {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 12.5px;
  opacity: 0; transform: translateY(6px);
  animation: vc-done 7.5s infinite;
}
.vc-done i { width: 10px; height: 10px; border-radius: 50%; background: #35C26B; box-shadow: 0 0 0 4px rgba(53, 194, 107, 0.18); flex: none; }
@keyframes vc-done {
  0%, 68% { opacity: 0; transform: translateY(6px); }
  71% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-ring, .vc-ring svg, .vc-wave, .vc-wave i, .vc-done { animation: none; }
  .vc-ring { background: #35C26B; }
  .vc-wave i { transform: scaleY(0.45); }
  .vc-done { opacity: 1; transform: none; }
}

/* Overlay Websites: eine Anfrage kommt rein */
.v-toast {
  position: absolute; right: 18px; bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(10, 26, 34, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  color: rgba(230, 238, 242, 0.75); font-size: 12.5px; line-height: 1.35;
  opacity: 0; transform: translateX(24px);
  animation: toast-in 6.5s infinite;
}
.v-toast b { display: block; color: #fff; font-family: var(--font-head); font-size: 15px; }
.v-toast i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(237, 152, 42, 0.22); flex: none; }
@keyframes toast-in {
  0% { opacity: 0; transform: translateX(24px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  9%, 78% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .v-toast { animation: none; opacity: 1; transform: none; }
  .v-steps i { animation: none; background: #35C26B; }
}
@media (max-width: 720px) {
  .v-steps span { font-size: 11.5px; padding: 6px 7px; gap: 6px; }
}

/* ---------- Beratungspakete als Zeilen ----------
   Links Ueberschrift (und auf der Startseite ein Bild), rechts drei Zeilen
   mit grosser Dauer. Liest sich von oben nach unten wie ein Angebot. */
.pk-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.pk-side { position: sticky; top: 110px; }
.pk-side .sec-head { margin-bottom: 34px; }
.pk-photo { border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 4 / 3.4; box-shadow: 0 30px 60px rgba(10, 26, 34, 0.16); }
.pk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.pk-photo.in img, .rv.in .pk-photo img { transform: scale(1); }
.pk-photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(10, 26, 34, 0.62); backdrop-filter: blur(8px);
  padding: 7px 12px; border-radius: 999px;
}
.pk-rows { border-top: 1px solid var(--line); }
.pk-row {
  display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 28px;
  padding: 34px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s;
}
.pk-row:hover { background: rgba(16, 40, 53, 0.025); }
.pk-dur { font-family: var(--font-head); line-height: 0.9; color: var(--ink); }
.pk-dur b { display: block; font-size: 64px; font-weight: 700; letter-spacing: -0.05em; }
.pk-dur b small { font-size: 24px; letter-spacing: -0.02em; margin-right: 4px; font-weight: 600; }
.pk-dur span { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.pk-row h3 { font-size: 25px; letter-spacing: -0.02em; line-height: 1.15; margin: 4px 0 8px; }
.pk-for { color: var(--gray); font-size: 16.5px; line-height: 1.55; margin-bottom: 16px; max-width: 560px; }
.pk-list { list-style: none; display: grid; gap: 8px; }
.pk-list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.pk-list li::before { content: ""; position: absolute; left: 1px; top: 0.48em; width: 9px; height: 5px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.pk-row.pk-main {
  background: var(--ink); color: #E6EEF2; border-radius: 20px; border-bottom-color: transparent;
  margin-top: -1px; box-shadow: 0 30px 60px rgba(10, 26, 34, 0.24);
}
.pk-main .pk-dur { color: #fff; }
.pk-main .pk-dur span { color: var(--orange-soft); }
.pk-main h3 { color: #fff; }
.pk-main .pk-for { color: #B9C6CD; }
.pk-main .pk-list li { color: #E6EEF2; }
.pk-tag {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: var(--orange-soft); padding: 5px 10px; border-radius: 999px;
}
.pk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.pk-note { font-size: 14.5px; line-height: 1.6; color: var(--gray); max-width: 520px; }

@media (max-width: 1024px) {
  .pk-wrap { grid-template-columns: 1fr; gap: 40px; }
  .pk-side { position: static; }
  .pk-photo { aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  .pk-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 18px; }
  .pk-row.pk-main { padding: 30px 20px; }
  .pk-dur { display: flex; align-items: baseline; gap: 12px; }
  .pk-dur b { font-size: 48px; }
  .pk-dur span { margin-top: 0; }
  .pk-tag { top: 14px; right: 14px; }
}

/* ---------- Beratungspakete, Startseite: drei Spalten mit Tages-Skala ----------
   Ueberschrift breit, Einleitung rechts daneben. Darunter drei gleich
   gebaute Spalten; die Skala zeigt den Umfang auf einen Blick und fuellt
   sich beim Einblenden in Schueben. Alles unter .pk, damit die
   Zeilen-Variante auf /ki-beratung unberuehrt bleibt. */
.pk .pk-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 72px;
  align-items: end;
  margin-bottom: 72px;
}
.pk .pk-head .sec-head { margin-bottom: 0; }
.pk .pk-head h2 { font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; font-size: clamp(34px, 4.6vw, 62px); max-width: none; }
.pk .pk-head h2 .nw { white-space: nowrap; }
.pk-intro p { font-size: 18px; line-height: 1.6; color: var(--gray); margin-bottom: 18px; }
.pk-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--orange);
}
.pk-link .arr { transition: transform 0.35s var(--ease-out); color: var(--orange-deep); }
.pk-link:hover { text-decoration: none; }
.pk-link:hover .arr { transform: translateX(4px); }

.pk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.pk .pk-col {
  position: relative;
  padding: 34px 34px 40px;
  border-right: 1px solid var(--line);
  transition: background 0.4s;
}
.pk .pk-col:last-child { border-right: 0; }
.pk .pk-col:first-child { padding-left: 0; }
.pk .pk-col:last-child { padding-right: 0; }
.pk .pk-col.pk-main {
  background: #fff;
  border-right-color: transparent;
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -40px rgba(16, 40, 53, 0.22);
  padding-left: 34px; padding-right: 34px;
}
.pk .pk-col.pk-main::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px;
  height: 3px;
  background: var(--orange);
}

/* Skala: sieben Felder, gefuellt = Tage. Das letzte Feld laeuft offen aus */
.pk-scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 30px; }
.pk-scale i { height: 6px; background: var(--line-soft); border-radius: 1px; position: relative; overflow: hidden; }
.pk-scale i.on::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.pk-main .pk-scale i.on::after { background: var(--orange); }
.pk-scale i.open::after { background: linear-gradient(90deg, var(--ink), rgba(16, 40, 53, 0.08)); }
.pk-scale i.on.open { background: transparent; }
.rv.in .pk-scale i.on::after { transform: scaleX(1); }
/* Unregelmaessige Schuebe statt gleichmaessigem Durchlauf */
.pk-scale i:nth-child(1)::after { transition-delay: 0.25s; }
.pk-scale i:nth-child(2)::after { transition-delay: 0.36s; }
.pk-scale i:nth-child(3)::after { transition-delay: 0.42s; }
.pk-scale i:nth-child(4)::after { transition-delay: 0.78s; }
.pk-scale i:nth-child(5)::after { transition-delay: 0.83s; }
.pk-scale i:nth-child(6)::after { transition-delay: 0.87s; }
.pk-scale i:nth-child(7)::after { transition-delay: 1.15s; transition-duration: 0.9s; }

.pk .pk-dur {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-head);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 22px;
}
.pk .pk-dur b { display: inline; font-size: 56px; font-weight: 500; letter-spacing: -0.05em; }
.pk .pk-dur b small { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-right: 6px; color: var(--gray); }
.pk .pk-dur span { display: inline; margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }
.pk .pk-tag {
  position: static;
  margin-left: auto;
  align-self: center;
  font-style: normal;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-deep);
  background: rgba(237, 152, 42, 0.12);
  padding: 6px 10px; border-radius: 4px;
}
.pk .pk-col h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; color: var(--ink); }
.pk .pk-for { font-size: 16px; line-height: 1.55; color: var(--gray); margin-bottom: 24px; min-height: 3.1em; }
.pk .pk-list { list-style: none; display: block; border-top: 1px solid var(--line); }
.pk .pk-list li {
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px; line-height: 1.45;
  color: var(--ink);
}
.pk .pk-list li::before {
  left: 0; top: 1.15em;
  width: 6px; height: 6px;
  border: 0;
  border-radius: 1px;
  background: var(--orange);
  transform: none;
}

.pk .pk-cta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px 48px;
}
.pk .pk-note { order: -1; max-width: 560px; font-size: 15px; }

@media (max-width: 1024px) {
  .pk .pk-head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .pk .pk-head h2 { font-size: clamp(32px, 7.4vw, 52px); }
  .pk-grid { grid-template-columns: 1fr; }
  .pk .pk-col,
  .pk .pk-col:first-child,
  .pk .pk-col:last-child { padding: 30px 0 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pk .pk-col.pk-main { padding: 30px 24px 34px; margin: 0 -24px; border-bottom: 0; }
  .pk .pk-for { min-height: 0; }
  .pk-scale { max-width: 320px; }
}
@media (max-width: 640px) {
  .pk .pk-dur b { font-size: 46px; }
  .pk .pk-cta { flex-direction: column; align-items: flex-start; }
  .pk .pk-note { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-scale i.on::after { transition: none; transform: scaleX(1); }
}

/* Bildleiste mit fuenf Kacheln */
@media (min-width: 1025px) { .spec-strip.spec-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Leistungen: Ablauf der Beratung in der Hauptkarte */
.ls-hero-steps .kb-msg { opacity: 1; transform: none; animation: none; display: flex; align-items: center; gap: 12px; max-width: 100%; align-self: stretch; }
.ls-hero-steps .kb-msg b { font-family: var(--font-mono); font-size: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); flex: none; }
.ls-hero-steps .kb-msg.me b { background: rgba(16, 40, 53, 0.16); }


/* Navigation: zwischen Tablet und breitem Desktop bleibt alles einzeilig */
.nav-links a, .nav-cta .btn { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav-links { gap: 20px; }
  .nav-cta .btn-ghost { display: none; }
}
