/* ============================================================
   Kraftwerk Relaunch — shared system
   ============================================================ */
/* IBM Plex Mono for in-UI labels */
@import url('ibm-plex-mono.css');

/* ---- Natom Pro — lizenziertes Webfont-Kit (OTF) ---- */
@font-face {
  font-family: 'Natom Pro';
  src: url('../fonts/NatomPro-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Natom Pro';
  src: url('../fonts/NatomPro-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Natom Pro';
  src: url('../fonts/NatomPro-Bold.otf') format('opentype');
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Natom Pro Title';
  src: url('../fonts/NatomPro-TitleRegular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Natom Pro Title';
  src: url('../fonts/NatomPro-TitleMedium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Natom Pro Title';
  src: url('../fonts/NatomPro-TitleBold.otf') format('opentype');
  font-weight: 600 700; font-style: normal; font-display: swap;
}

:root {
  /* Brand — kraftwerk lime green + near-black */
  --ink:        #14181d;   /* near-black, like the logo */
  --ink-2:      #3b444e;   /* secondary text */
  --ink-3:      #6f7984;   /* muted / captions */
  --blue:       #5f7d12;   /* legible green (text, links, fills) */
  --blue-700:   #4e680e;   /* hover */
  --blue-100:   #eef5d9;   /* tint surface */
  --blue-050:   #f6faec;   /* faint tint */
  --lime:       #93c01e;   /* signature brand lime (prominent accents) */
  --lime-700:   #7da516;   /* lime hover */

  /* Neutrals */
  --bg:         #ffffff;
  --surface:    #f6f8fb;   /* cool light grey section */
  --surface-2:  #eef2f7;
  --line:       #e2e8f1;   /* hairline borders */
  --line-strong:#cdd7e4;
  --white:      #ffffff;

  /* Accent for industries (used sparingly) */
  --c-energie:  #5f7d12;
  --c-wasser:   #1593b8;
  --c-waerme:   #d6612a;
  --c-emob:     #2c9e6b;

  /* Type — Natom Pro (CD) with geometric fallback; Title cut for display */
  --sans:    'Natom Pro', 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Natom Pro Title', 'Natom Pro', 'Outfit', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Spacing scale */
  --container: 1200px;
  --pad-x: 40px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(10,26,51,.05), 0 1px 1px rgba(10,26,51,.04);
  --shadow-md: 0 12px 28px -12px rgba(10,26,51,.18), 0 4px 10px -6px rgba(10,26,51,.10);
  --shadow-lg: 0 40px 80px -32px rgba(10,26,51,.28), 0 12px 28px -16px rgba(10,26,51,.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding: 112px 0; }
.section--tight { padding: 80px 0; }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #dce5f2; }

/* ---- Typography ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow--muted { color: var(--ink-3); }
.eyebrow--muted::before { background: var(--ink-3); }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }

.display {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.028em; }
.h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -.02em; }
.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 60ch;
}
.muted { color: var(--ink-3); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.btn--primary { background: var(--lime); color: var(--ink); font-weight: 600; }
.btn--primary:hover { background: var(--lime-700); }
.btn--primary:hover .ico { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--lime); }
.btn--on-ink { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.18); }
.btn--on-ink:hover { background: rgba(255,255,255,.16); }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 15px; color: var(--blue);
}
.textlink .ico { width: 15px; height: 15px; transition: transform .2s ease; }
.textlink:hover .ico { transform: translateX(3px); }

/* ---- Wordmark ---- */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-weight: 600; font-size: 21px; letter-spacing: -.04em;
  color: var(--ink);
}
.wordmark__dot { color: var(--lime); }
.wordmark--light { color: #fff; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link .chev { width: 13px; height: 13px; color: var(--ink-3); transition: transform .2s ease; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__item { position: relative; display: inline-flex; align-items: center; }
button.nav__link { background: none; border: 0; cursor: pointer; font-family: var(--sans); }
.nav__item.has-mega:hover .nav__link .chev,
.nav__item.has-mega:focus-within .nav__link .chev { transform: rotate(180deg); color: var(--blue); }

/* Mega menu (desktop) */
.mega {
  position: fixed; left: 0; right: 0; top: 72px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(20,24,29,.22);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 49;
}
.nav__item.has-mega:hover .mega,
.nav__item.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }

/* Unsichtbare Brücke verhindert Hover-Lücke zwischen Nav und Mega */
.mega::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.mega__inner { display: grid; grid-template-columns: 1fr 1fr 0.95fr; gap: 44px; padding: 30px 0 36px; align-items: start; }
.mega__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: block; }
.mega__list { display: flex; flex-direction: column; gap: 1px; }
.mega__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; transition: background .14s ease; }
.mega__item:hover { background: var(--surface); }
.mega__item .mico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); color: var(--blue); transition: background .14s ease; }
.mega__item:hover .mico { background: var(--blue-100); }
.mega__item .mico svg { width: 16px; height: 16px; }
.mega__item b { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.mega__item[aria-current="page"] { background: var(--blue-050); }
.mega__item[aria-current="page"] .mico { background: var(--blue-100); }
.mega__item[aria-current="page"] b { color: var(--blue); }
.mega__feature { background: var(--ink); color: #fff; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 200px; position: relative; overflow: hidden; }
.mega__feature::after { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(147,192,30,.35), transparent 65%); }
.mega__feature .mega__label { color: var(--lime); position: relative; margin-bottom: 4px; }
.mega__feature h4 { color: #fff; font-size: 18px; line-height: 1.18; margin: 0; position: relative; }
.mega__feature p { color: #aebbcf; font-size: 13px; line-height: 1.45; margin: 6px 0 14px; position: relative; }
.mega__feature .textlink { color: var(--lime); position: relative; }

/* Hamburger */
.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav__burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__scrim { display: none; }

@media (max-width: 980px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; top: 72px; right: 0; bottom: auto;
    height: calc(100vh - 72px); height: calc(100dvh - 72px);
    width: min(380px, 88vw);
    background: #fff; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px; overflow-y: auto;
    transform: translateX(100%); transition: transform .26s ease;
    box-shadow: -20px 0 50px -28px rgba(20,24,29,.4);
  }
  body.menu-open .nav__links { transform: none; }
  .nav__item { display: block; }
  .nav__links > .nav__link, .nav__item > .nav__link {
    width: 100%; justify-content: space-between; padding: 14px 12px;
    border-radius: 10px; font-size: 16px; color: var(--ink);
  }
  .nav__links > .nav__link:hover, .nav__item > .nav__link:hover { background: var(--surface); }
  .mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav__item.has-mega.open .mega { max-height: 1200px; }
  .nav__item.has-mega.open .nav__link .chev { transform: rotate(180deg); }
  .mega__inner { grid-template-columns: 1fr; gap: 18px; padding: 4px 0 10px; }
  .mega__feature { display: none; }
  .mega__label { padding: 0 12px; }
  body.menu-open .nav__scrim { display: block; position: fixed; inset: 72px 0 0 0; background: rgba(20,24,29,.32); z-index: 48; }
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .22s ease, transform .22s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

/* ---- Footer ---- */
.footer { background: var(--ink); color: #aebbcf; padding: 80px 0 40px; }
.footer a { color: #aebbcf; transition: color .15s ease; }
.footer a:hover { color: #fff; }

/* ---- Utility ---- */
.grid { display: grid; gap: 24px; }
.divider { height: 1px; background: var(--line); border: 0; }
.kicker-num { font-family: var(--mono); font-weight: 500; }

/* ---- Mobile overrides ---- */
@media (max-width: 980px) {
  .section       { padding: 72px 0; }
  .section--tight { padding: 52px 0; }
  .footer        { padding: 56px 0 32px; }
}
@media (max-width: 600px) {
  :root          { --pad-x: 22px; }
  .section       { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
  .footer        { padding: 48px 0 28px; }
  .vpanel, .pricecard { width: 100%; }
  .stat__num     { font-size: clamp(36px, 10vw, 56px); }
  .phero__cta, .cta__actions { flex-direction: column; align-items: flex-start; }
  .mega__inner   { padding: 4px 0 16px; }
}

/* ============================================================
   News Detail — Sidebar Layout
   ============================================================ */
.news-detail-container__main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 60px 0 80px;
}
@media (min-width: 1024px) {
  .news-detail-container__main {
    flex-direction: row;
    gap: 5rem;
    padding: 80px 0 100px;
    align-items: flex-start;
  }
}

.news-detail-container__sidebar {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .news-detail-container__sidebar { width: 260px; }
}

.news-detail-container__content { width: 100%; }

/* Contact box */
.news-detail-sidebar__contact {
  background: var(--ink);
  border-radius: 10px;
  color: #fff;
  padding: 18px;
}
.news-detail-sidebar__contact a { color: #fff; text-decoration: none; }
.news-detail-sidebar__contact a.btn { color: var(--ink); }
.news-detail-sidebar__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.news-detail-sidebar__name {
  font-weight: 700;
  margin: 4px 0 18px;
  font-size: 15px;
}
.news-detail-sidebar__contact div { font-size: 14px; line-height: 1.6; }
.news-detail-sidebar__contact-btn {
  margin-top: 22px;
}
.news-detail-sidebar__contact-btn .btn {
  width: 100%;
  justify-content: center;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.news-detail-sidebar__contact-btn .btn:hover { background: var(--lime-700); }

/* Downloads */
.news-detail-sidebar__downloads { margin-top: 28px; }
.news-detail-sidebar__downloads .news-detail-sidebar__label { color: var(--ink-3); }
.news-detail-sidebar__file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.news-detail-sidebar__file a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .15s;
}
.news-detail-sidebar__file a:hover { border-color: var(--ink); }
.file-badge {
  background: var(--blue-100);
  color: var(--blue);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 3px 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.download-svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-3); }

/* Social share footer */
.news-share-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.news-share-footer__icons { display: flex; gap: 8px; }
.news-share-footer__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--lime);
  transition: background .15s;
}
.news-share-footer__icons a:hover { background: var(--lime-700); }
.news-share-footer__icons svg { width: 16px; height: 16px; fill: var(--ink); }

/* ============================================================
   News Card Slider
   ============================================================ */
.kw-news-slider-section {
  background: var(--ink);
  padding: 72px 0 80px;
}
.kw-news-slider-section .container { color: #fff; }

.kw-news-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.kw-news-slider__head h3 {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 32px);
}
.kw-news-slider__head .btn {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.kw-news-slider__head .btn:hover { background: rgba(255,255,255,.18); }

.kw-news-slider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.kw-news-slider__track::-webkit-scrollbar { display: none; }

.kw-news-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  min-width: 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease;
}
.kw-news-card:hover { transform: translateY(-3px); }
@media (min-width: 768px) {
  .kw-news-card { flex: 0 0 340px; min-width: 340px; }
}

.kw-news-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.kw-news-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.kw-news-card__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kw-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.kw-news-card__cat {
  background: var(--blue-100);
  color: var(--blue);
  border-radius: 3px;
  padding: 3px 8px;
  font-weight: 600;
}
.kw-news-card__date { color: var(--ink-3); }
.kw-news-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   How-Steps — nummerierte Schritte (Präfix kw- wegen .steps-Konflikt mit branche.css)
   ============================================================ */
.kw-steps { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.kw-step { display: flex; gap: 20px; align-items: flex-start; }
.kw-step__n { width: 38px; height: 38px; background: var(--lime); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.kw-step__body h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.kw-step__body p { font-size: 14.5px; color: var(--ink-2); line-height: 1.62; margin: 0; }
.section--ink .kw-step__body h3 { color: #fff; }
.section--ink .kw-step__body p { color: #8a9bb5; }

/* ============================================================
   FAQ — <details>/<summary> Accordion
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 780px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary { padding: 18px 20px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); gap: 12px; user-select: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--ink-3); flex-shrink: 0; transition: transform .2s ease; }
.faq-list details[open] > summary::after { transform: rotate(45deg); }
.faq-list details[open] > summary { color: var(--blue); }
.faq-ans { padding: 0 20px 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* ============================================================
   Video Wrap
   ============================================================ */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 14px; background: var(--ink); border: 2px solid var(--line); }
.video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ============================================================
   Login-Method Cards (dark bg)
   ============================================================ */
.login-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; transition: border-color .18s ease, box-shadow .18s ease; }
.login-card:hover { border-color: var(--lime); box-shadow: var(--shadow-sm); }
.login-card__badge { display: inline-flex; align-items: center; gap: 7px; background: var(--blue-100); border: 1px solid rgba(147,201,14,.3); border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.login-card h3 { color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.login-card p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 0; }
/* Dark-Sektion Override */
.section--ink .login-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.section--ink .login-card:hover { border-color: var(--lime); }
.section--ink .login-card__badge { background: rgba(147,201,14,.12); border-color: rgba(147,201,14,.25); color: var(--lime); }
.section--ink .login-card h3 { color: #fff; }
.section--ink .login-card p { color: #8a9bb5; }

/* ============================================================
   m8mit Feature-Slider v2
   ============================================================ */
.m8mit-feature-section {
  background: var(--ink);
  padding: 96px 0 0;
  position: relative;
  overflow: hidden;
}
.m8mit-feature-section__deco {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 620px;
  max-width: 55%;
  pointer-events: none;
  opacity: .06;
  transform: rotate(8deg);
}
.m8mit-feature-section__deco img { width: 100%; height: auto; display: block; }

.m8mit-feature__head { padding-bottom: 52px; }
.m8mit-feature__head h2 { color: #fff; margin-top: 10px; }

/* Scroll-Container mit Fade-Hint rechts */
.m8mit-feature__scroll { position: relative; }
.m8mit-feature__scroll::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  height: calc(100% - 72px);
  width: 120px;
  background: linear-gradient(to right, transparent, var(--ink));
  pointer-events: none;
  z-index: 2;
}

.m8mit-feature__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 72px;
}
.m8mit-feature__track::-webkit-scrollbar { display: none; }

/* Scroll-Hint Pill */
.m8mit-feature__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 0 32px;
}
.m8mit-feature__hint svg { color: var(--lime); opacity: .7; }

/* Karte */
.m8mit-feature-card {
  scroll-snap-align: start;
  flex: 0 0 288px;
  min-width: 288px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .22s, transform .22s;
}
.m8mit-feature-card:hover {
  border-color: rgba(147,201,14,.4);
  transform: translateY(-5px);
}
@media (min-width: 768px) {
  .m8mit-feature-card { flex: 0 0 308px; min-width: 308px; }
}

/* Karten-Header: Icon + Ghost-Nummer */
.m8mit-feature-card__top {
  position: relative;
  background: rgba(147,201,14,.07);
  border-bottom: 1px solid rgba(147,201,14,.1);
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}
.m8mit-feature-card__ghost {
  position: absolute;
  right: 10px;
  top: -6px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  color: rgba(147,201,14,.13);
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}
.m8mit-feature-card__ico {
  width: 46px;
  height: 46px;
  background: rgba(147,201,14,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c90e;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.m8mit-feature-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(147,201,14,.6);
  position: relative;
  z-index: 1;
}

/* Karten-Body */
.m8mit-feature-card__body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.m8mit-feature-card h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.m8mit-feature-card p {
  color: #8a9bb5;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

/* =============================================================
   Visuelle Highlights — Energie-Seite (Ansatz A)
   ============================================================= */

/* 1. Scroll-Reveal — nur aktiv wenn JS die .js-Klasse setzt */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.22,.68,0,1.2),
              transform .6s cubic-bezier(.22,.68,0,1.2);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }
.js .reveal-delay-4 { transition-delay: .32s; }
.js .reveal-delay-5 { transition-delay: .40s; }
.js .reveal-delay-6 { transition-delay: .48s; }
.js .reveal-delay-7 { transition-delay: .56s; }
.js .reveal-delay-8 { transition-delay: .64s; }

/* 2. Pulsing Status-Dots im Hero-MaKo-Panel */
@keyframes kw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147, 192, 30, .55); }
  60%       { box-shadow: 0 0 0 6px rgba(147, 192, 30, 0); }
}
.vrow__status.ok {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vrow__status.ok::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  animation: kw-pulse 2.2s ease-in-out infinite;
}

/* 3. Feat-Cards — hover */
.card.feat {
  transition: transform .24s ease, box-shadow .24s ease, border-color .2s ease;
}
.card.feat:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 16px 36px -10px rgba(10, 26, 51, .14), 0 0 0 1px var(--lime);
}

/* Feature-Card Icon-Box */
.feat__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--blue-100);
  border-radius: 10px;
  color: var(--blue);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feat__ico svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* Pain-Cards: subtiler Hover-Lift */
.card.pain {
  transition: transform .24s ease, box-shadow .24s ease;
}
.card.pain:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(10, 26, 51, .14);
}

/* 4. Counter-Zahlen: Mono-Font für sauberere Darstellung */
.darkstats .n,
.phero__stats .n {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ============================================================
   Responsive Fixes — Mobile / Tablet
   ============================================================ */

/* ---- .table-wrap: horizontales Scrollen für Tabellen ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.table-wrap table {
  min-width: 560px;
}

/* ---- Tablet (≤980px) ---- */
@media (max-width: 980px) {
  /* Reach-Grid: 2-spaltig → 1-spaltig */
  .reach__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer-Top in branche.css-Kontext: 4-spaltig → 2-spaltig */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  /* Kontakt-Seite: Inline-Style auf .phero__grid überschreiben */
  .phero__grid[style] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Stat-Bänder mit inline repeat(3,1fr) auf Produkt-/Branche-Seiten */
  .section--ink .container[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .section--ink .container[style*="repeat(3"] > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 24px !important;
  }
  .section--ink .container[style*="repeat(3"] > div:first-child {
    border-top: 0;
    padding-top: 0 !important;
  }
}

/* ---- Mobile (≤640px) ---- */
@media (max-width: 640px) {
  /* .phero padding auf kleinen Screens reduzieren */
  .phero {
    padding: 24px 0 48px;
  }

  /* Inline-Style-Gap auf .phero__grid verkleinern */
  .phero__grid[style] {
    gap: 28px !important;
  }

  /* Kontaktformular Vorname/Nachname: nebeneinander → untereinander */
  .card form div[style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   Fehlende Komponenten-Styles (vom Workflow-Agent generierte Seiten)
   ============================================================ */

/* ---- Grid-Modifikatoren ---- */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* ---- Feats-Grid (Feature-Cards) ---- */
.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .feats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .feats { grid-template-columns: 1fr; } }

/* ---- Benefits-Grid + Modcard ---- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 860px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

.modcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.modcard:hover { border-color: var(--lime); box-shadow: var(--shadow-sm); }
.modcard h4 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.modcard p  { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---- Benefit-Item (Karriere Bewerbungsprozess) ---- */
.benefit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.benefit__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--blue-100);
  border-radius: 10px;
  color: var(--blue);
  flex-shrink: 0;
}
.benefit__ico svg { width: 22px; height: 22px; stroke: currentColor; }
.benefit h3 { font-size: 17px; font-weight: 700; margin: 0; }
.benefit p  { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ---- Chips / Tags ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: var(--blue-100);
  color: var(--blue);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.chip b { color: var(--lime); font-weight: 700; }

/* ---- Caps / Capability-Cards ---- */
.caps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .caps { grid-template-columns: 1fr !important; } }
.cap { padding: 24px 22px; }
.cap__n {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* ---- Bigquote ---- */
blockquote.bigquote {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  padding-left: 0;
  border-left: 0;
}
blockquote.bigquote::before { content: "\201E"; }
blockquote.bigquote::after  { content: "\201C"; }

/* ---- Branchen-Grid ---- */
.branchen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.branchen-sm {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 860px) { .branchen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .branchen, .branchen-sm { grid-template-columns: 1fr !important; } }

.branche {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.branche:hover { transform: translateY(-3px); border-color: var(--lime); box-shadow: var(--shadow-md); }
.branche h3 { font-size: 17px; font-weight: 700; margin: 0; }
.branche p  { font-size: 14px; color: var(--ink-2); margin: 0; flex: 1; }
.branche__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
}
.branche__ico svg { width: 22px; height: 22px; }
.branche__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--lime);
  margin-top: auto;
}
.branche__more svg { width: 16px; height: 16px; }
.branche--sm { padding: 20px 18px; gap: 8px; }
.branche--sm h3 { font-size: 15px; }

/* ---- Integ-Grid (GoBD / Compliance-Listen) ---- */
.integ {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 980px) { .integ { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .integ { grid-template-columns: 1fr; } }

.integ__col {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.integ__col h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.integ__col ul { margin: 0; padding: 0 0 0 16px; }
.integ__col li { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 4px; }

/* ---- Values-Grid ---- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 500px) { .values { grid-template-columns: 1fr; } }

.value { display: flex; flex-direction: column; gap: 14px; }
.value__ico {
  width: 32px; height: 32px;
  stroke: var(--lime);
  flex-shrink: 0;
}
.value h3 { font-size: 17px; font-weight: 700; margin: 0; }
.value p  { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ---- Compare (Vorher/Nachher) ---- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

.compare__col {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.compare__col h4 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.compare__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare__col li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.compare__col li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.compare__col--bad  { background: #fff5f5; border-color: #fca5a5; }
.compare__col--bad  h4 { color: #b91c1c; }
.compare__col--bad  li svg { stroke: #ef4444; }
.compare__col--good { background: var(--blue-100); border-color: var(--lime); }
.compare__col--good h4 { color: var(--blue); }
.compare__col--good li svg { stroke: var(--lime); }

/* ---- Intro-Grid (2-spaltig Headline + Text) ---- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .intro-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---- News-Card + Newsgrid ---- */
.newsgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 860px) { .newsgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .newsgrid { grid-template-columns: 1fr; } }

.ncard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ncard:hover { transform: translateY(-3px); border-color: var(--lime); box-shadow: var(--shadow-md); }
.ncard h3 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.45; flex: 1; }
.ncard__tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--lime); background: var(--blue-100);
  padding: 3px 8px; border-radius: 4px; width: fit-content;
}
.ncard__date { font-size: 12px; color: var(--ink-3, #8899b0); }
.ncard__arrow { display: flex; align-items: center; margin-top: auto; }
.ncard__arrow svg { width: 18px; height: 18px; stroke: var(--ink-2); transition: stroke .15s ease; }
.ncard:hover .ncard__arrow svg { stroke: var(--lime); }

/* ---- Plat-Grid (Plattform-Übersicht) ---- */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 860px) { .plat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .plat-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Lösungen-Übersicht (lgrid / lcard)
   ============================================================ */
.page-hero {
  background: var(--surface);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero .inner { max-width: 720px; }
.page-hero h1 { margin-top: 10px; }

.lgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .lgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lgrid { grid-template-columns: 1fr; } }

.lcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lcard:hover {
  border-color: var(--lime);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.lcard__ico {
  width: 44px;
  height: 44px;
  background: var(--blue-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.lcard__ico svg { width: 22px; height: 22px; }
.lcard h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.3; }
.lcard p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; flex: 1; }
.lcard__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 4px;
}
.lcard__more svg { width: 14px; height: 14px; }
.lcard:hover .lcard__more { color: var(--lime-dark, #6a8e16); }

/* ============================================================
   Responsive-Fixes — phero__grid & Inline-Grids
   ============================================================ */
@media (max-width: 980px) {
  /* phero__grid Kinder dürfen nicht über die Spaltenbreite hinauswachsen */
  .phero__grid > * { min-width: 0; max-width: 100%; }

  /* Inline-Grids mit 1.2fr / 1fr Spalten auf Mobile einspaltig */
  div[style*="grid-template-columns:1.2fr"],
  div[style*="grid-template-columns: 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Inline 2-Spalter in engen Kontexten kollabieren */
  .section--ink div[style*="grid-template-columns:1fr 1fr"],
  .section--ink div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
