/* ═══════════════════════════════════════════════════════════
   senex.de - Corporate Website Design System
   senex GmbH | ERP Software seit 1991
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  /* Brand Colors */
  --senex-blue: #1775BC;
  --senex-blue-dark: #0E4D82;
  --senex-blue-light: #E8F4FD;
  --senex-red: #A6202D;
  --senex-red-light: #FDE8EA;

  /* Neutrals */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Functional */
  --success: #10B981;
  --warning: #F59E0B;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--senex-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--senex-blue-dark);
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--gray-600);
  font-size: 1.0625rem;
  max-width: 680px;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gray-500);
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* ─── Section ────────────────────────────────────────────── */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--senex-blue);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  margin: 0 auto;
  max-width: 600px;
}

.bg-light { background: var(--gray-50); }
.bg-dark { background: var(--gray-900); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: var(--gray-400); }
.bg-blue { background: var(--senex-blue); color: var(--white); }
.bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-blue p { color: rgba(255,255,255,0.85); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--senex-blue);
  color: var(--white);
  border-color: var(--senex-blue);
}

.btn--primary:hover {
  background: var(--senex-blue-dark);
  border-color: var(--senex-blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--senex-blue);
  border-color: var(--senex-blue);
}

.btn--secondary:hover {
  background: var(--senex-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--senex-blue);
  border-color: var(--white);
}

.btn--white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-200);
}

.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar__logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.navbar__logo-img--white {
  display: block;
}

.navbar__logo-img--color {
  display: none;
}

.navbar.scrolled .navbar__logo-img--white {
  display: none;
}

.navbar.scrolled .navbar__logo-img--color {
  display: block;
}

.navbar__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--senex-blue);
  border-radius: 50%;
  display: inline-block;
}

.navbar.scrolled .navbar__logo-dot {
  background: var(--senex-red);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.navbar__links a:hover {
  color: var(--white);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--senex-blue);
  transition: var(--transition);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar.scrolled .navbar__links a {
  color: var(--gray-600);
}

.navbar.scrolled .navbar__links a:hover {
  color: var(--senex-blue);
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__cta .btn {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.navbar__cta-mobile {
  display: none;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

.navbar.scrolled .navbar__toggle span {
  background: var(--gray-800);
}

/* ─── Hero v3.0 - Industrial Split ──────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gray-900);
  overflow: hidden;
  padding-top: 80px;
}

/* Hero Slideshow */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero__slide--active {
  opacity: 0.25;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14,77,130,0.95) 0%,
    rgba(14,77,130,0.85) 35%,
    rgba(15,23,42,0.6) 65%,
    rgba(15,23,42,0.4) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__highlight {
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__typed-line {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  font-weight: 500;
}

.typed-cursor {
  color: var(--senex-blue-light);
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero__description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats Bar */
.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* Hero Responsive */
@media (max-width: 640px) {
  .hero__stats { flex-wrap: wrap; gap: 24px; }
  .hero__stat-value { font-size: 2rem; }
}

/* ─── Trusted By / Logo Bar ──────────────────────────────── */
.logos {
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.logos__label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.logos__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.logos__grid img {
  height: 32px;
  width: auto;
  filter: grayscale(1);
  transition: var(--transition);
}

.logos__grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ─── Trust Badges ──────────────────────────────────────── */
.trust-badges {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-badges__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-badges__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}

.trust-badges__item svg {
  flex-shrink: 0;
}

/* ─── Inline CTA Banner ────────────────────────────────── */
.cta-inline {
  background: var(--senex-blue);
  padding: 28px 0;
}

.cta-inline__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-inline__inner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0;
}

/* ─── Sticky Mobile CTA ────────────────────────────────── */
.mobile-cta-sticky {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-sticky {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .mobile-cta-sticky.visible {
    transform: translateY(0);
  }

  .mobile-cta-sticky .btn {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 14px 24px;
  }

  .trust-badges__row {
    gap: 20px;
  }

  .trust-badges__item {
    font-size: 0.8rem;
    gap: 6px;
  }

  .trust-badges__item svg {
    width: 18px;
    height: 18px;
  }

  .cta-inline__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* ─── Exit-Intent Popup ────────────────────────────────── */
.exit-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.exit-popup.visible {
  display: flex;
}

.exit-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.exit-popup__modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: popupEnter 0.3s ease-out;
}

@keyframes popupEnter {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.exit-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.exit-popup__close:hover {
  color: var(--gray-700);
}

.exit-popup__icon {
  margin-bottom: 16px;
}

.exit-popup__modal h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.exit-popup__modal p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
}

.exit-popup__sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 16px;
  margin-bottom: 0 !important;
}

.exit-popup__sub a {
  color: var(--senex-blue);
  font-weight: 500;
}

/* ─── Features / Module Grid ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--senex-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--senex-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--senex-blue);
  font-size: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--senex-blue);
}

.feature-card__link:hover {
  gap: 10px;
}

/* ─── Big Feature (alternating image+text) ───────────────── */
.big-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.big-feature--reverse {
  direction: rtl;
}

.big-feature--reverse > * {
  direction: ltr;
}

.big-feature__visual {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.big-feature__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Window Mockup (Software-Screenshot Präsentation) ─── */
.window-mockup {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f7fd 50%, #e3ecf5 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.window-mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f3f5;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid #e0e4e8;
  border-bottom: none;
}

.window-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-mockup__dot--red { background: #ff5f57; }
.window-mockup__dot--yellow { background: #febc2e; }
.window-mockup__dot--green { background: #28c840; }

.window-mockup__title {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.window-mockup__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #e0e4e8;
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .window-mockup {
    padding: 16px;
  }
}

.big-feature__content .overline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--senex-blue);
  margin-bottom: 16px;
}

.big-feature__content h2 {
  margin-bottom: 20px;
}

.big-feature__content p {
  margin-bottom: 32px;
}

.big-feature__list {
  list-style: none;
  margin-bottom: 32px;
}

.big-feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.big-feature__list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--senex-blue-light);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231775BC' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  padding: 80px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-bar__item-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-bar__item-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.testimonial-card__stars {
  color: var(--warning);
  font-size: 1.125rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--senex-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--senex-blue);
  font-size: 0.875rem;
  flex-shrink: 0;
}

img.testimonial-card__avatar {
  object-fit: cover;
  border: 2px solid var(--gray-200);
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.9375rem;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ─── Branchen / Industries ──────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  transition: var(--transition);
}

.industry-card:hover {
  border-color: var(--senex-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.industry-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--senex-blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--senex-blue);
}

.industry-card h3 {
  margin-bottom: 12px;
}

.industry-card p {
  font-size: 0.9375rem;
  margin: 0 auto;
}

.industry-card__img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.industry-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.industry-card:hover .industry-card__img {
  filter: saturate(1) contrast(1);
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta h2 {
  margin-bottom: 20px;
}

.cta p {
  margin: 0 auto 40px;
  max-width: 520px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-500);
  margin-top: 16px;
  max-width: 280px;
}

.footer__logo {
  margin-bottom: 4px;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--gray-500);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.footer__bottom a {
  color: var(--gray-500);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ─── Page Header (for subpages) ─────────────────────────── */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--senex-blue-dark) 100%);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  margin: 0 auto;
  max-width: 560px;
}

/* ─── Module Detail Cards ────────────────────────────────── */
.module-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  transition: var(--transition);
}

.module-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--senex-blue);
}

.module-card:nth-child(even) {
  direction: rtl;
}

.module-card:nth-child(even) > * {
  direction: ltr;
}

.module-card__visual {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.module-card__content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.module-card__content p {
  margin-bottom: 20px;
}

.module-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-card__tag {
  padding: 6px 14px;
  background: var(--senex-blue-light);
  color: var(--senex-blue);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
}

/* ─── Module Hero Visual (Pill Cloud) ────────────────────── */
.module-hero {
  background: linear-gradient(135deg, var(--senex-blue) 0%, var(--senex-blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 10px;
}

.module-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
}

.module-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.module-hero__pill {
  padding: 10px 22px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.14);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.module-hero__pill:hover {
  background: rgba(255,255,255,0.20);
  transform: translateY(-2px);
}

/* Module-hero innerhalb big-feature: aspect-ratio aufheben damit Pills nicht gequetscht werden */
.big-feature__visual:has(.module-hero) {
  aspect-ratio: auto;
  overflow: visible;
}

/* Fallback-Klasse falls :has() nicht greift */
.big-feature__visual--pills {
  aspect-ratio: auto !important;
  overflow: visible !important;
}

/* Module-hero muss den Visual-Container voll ausfüllen */
.big-feature__visual--pills .module-hero {
  width: 100%;
  align-self: stretch;
  border-radius: var(--radius-xl);
}

@media (max-width: 1024px) {
  .module-hero {
    padding: 32px 20px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .module-hero {
    padding: 28px 16px;
    min-height: auto;
    gap: 8px;
  }
  .module-hero__pill {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
}

/* ─── Team Grid ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gray-100);
  margin: 0 auto 20px;
  overflow: hidden;
}

.team-card__name {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1.125rem;
}

.team-card__role {
  color: var(--senex-blue);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}

.team-card__bio {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 12px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Contact Form ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--senex-blue);
  box-shadow: 0 0 0 3px var(--senex-blue-light);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Formular: Checkbox ─────────────────────────────── */
.form-group--checkbox {
  margin-bottom: 24px;
}
.form-group--checkbox label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1.5;
  margin-bottom: 0;
}
.form-group--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--senex-blue);
  cursor: pointer;
}
.form-group--checkbox a {
  color: var(--senex-blue);
  text-decoration: underline;
}

/* ── Formular: Validierung ──────────────────────────── */
.form-group--error input,
.form-group--error textarea,
.form-group--error select {
  border-color: var(--senex-red) !important;
  box-shadow: 0 0 0 3px rgba(166, 32, 45, 0.1);
}
.form-field-error {
  font-size: 0.8125rem;
  color: var(--senex-red);
  margin-top: 6px;
}

/* ── Formular: Erfolg/Fehler-Meldung ────────────────── */
.form-message {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s;
}
.form-message--success {
  flex-direction: column;
  text-align: center;
  padding: 48px 32px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
}
.form-message--success .form-message__icon {
  margin-bottom: 16px;
}
.form-message--success h3 {
  font-size: 1.125rem;
  color: var(--gray-800);
  font-weight: 600;
  line-height: 1.6;
}
.form-message--error {
  background: #FDE8EA;
  color: var(--senex-red);
  font-weight: 500;
}

/* ── Newsletter Footer-Signup ───────────────────────── */
.newsletter-signup {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
}
.newsletter-signup h4 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1rem;
}
.newsletter-signup p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.875rem;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--senex-blue-light);
}
.newsletter-form button {
  padding: 12px 20px;
  background: var(--senex-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.newsletter-form button:hover {
  background: var(--senex-blue-dark);
}
/* Newsletter Kategorie-Checkboxen */
.newsletter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.newsletter-cat-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
  user-select: none;
}
.newsletter-cat-option:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.newsletter-cat-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1775BC;
  cursor: pointer;
}
/* Popup-Variante (heller Hintergrund) */
.newsletter-categories--popup .newsletter-cat-option {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-700);
}
.newsletter-categories--popup .newsletter-cat-option:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.newsletter-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #10B981;
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ── Exit-Intent Popup ──────────────────────────────── */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.exit-popup.active {
  opacity: 1;
  pointer-events: auto;
}
.exit-popup__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 90%;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: popupSlideIn 0.4s ease;
}
@keyframes popupSlideIn {
  from { transform: translateY(-30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.exit-popup__card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.exit-popup__card p {
  color: var(--gray-600);
  margin-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}
.popup-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* ── Submissions-Tabelle (Admin) ────────────────────── */
.submissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.submissions-table th,
.submissions-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.submissions-table th {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.submissions-table tr:hover td {
  background: var(--gray-50);
}
.submissions-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.submissions-badge--kontakt { background: #DBEAFE; color: #1E40AF; }
.submissions-badge--demo { background: #D1FAE5; color: #065F46; }
.submissions-badge--support { background: #FEF3C7; color: #92400E; }
.submissions-badge--newsletter { background: #EDE9FE; color: #5B21B6; }

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--senex-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--senex-blue);
}

.contact-info__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 500;
}

/* ─── Reference Logos ────────────────────────────────────── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ref-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.ref-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--senex-blue);
}

.ref-card__logo {
  height: 48px;
  margin-bottom: 20px;
  opacity: 0.7;
  filter: grayscale(0.5);
}

.ref-card__name {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.ref-card__industry {
  font-size: 0.8125rem;
  color: var(--senex-blue);
  font-weight: 500;
}

.ref-card__description {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 12px;
}

/* ─── FAQ Accordion ──────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  font-family: var(--font-body);
}

.faq-item__question:hover {
  color: var(--senex-blue);
}

.faq-item__icon {
  font-size: 1.5rem;
  color: var(--gray-400);
  transition: var(--transition);
  font-weight: 300;
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
  color: var(--senex-blue);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item__answer p {
  padding-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

/* ─── Animations ─────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .big-feature {
    gap: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero__stats {
    gap: 32px;
  }
}

/* Download Cards */
.download-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .download-card {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
  }
  .download-card .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--gray-200);
  }

  .navbar__logo-img--white {
    display: none;
  }

  .navbar__logo-img--color {
    display: block;
  }

  .navbar__toggle span {
    background: var(--gray-800);
  }

  .navbar__links {
    display: none;
  }

  .navbar__cta {
    gap: 8px;
  }

  /* Default (nicht eingeloggt): Kundenlogin verstecken, Demo buchen klein */
  .navbar__cta .btn--outline-white {
    display: none;
  }

  .navbar__cta .btn--primary {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  /* Eingeloggt: Kundenbereich zeigen, Demo buchen verstecken */
  .navbar--logged-in .navbar__cta .btn--outline-white {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .navbar--logged-in .navbar__cta .btn--primary {
    display: none;
  }

  .navbar__toggle {
    display: block;
    flex-shrink: 0;
  }

  .navbar__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .navbar__links.active a {
    color: var(--gray-700);
    padding: 12px 0;
    display: block;
  }

  .navbar__cta-mobile {
    display: none;
    list-style: none;
  }

  .navbar__links.active .navbar__cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-200);
  }

  .navbar__links.active .navbar__cta-mobile a {
    text-align: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
  }

  .navbar__links.active .navbar__cta-mobile .btn--outline-white {
    color: var(--senex-blue) !important;
    border-color: var(--senex-blue) !important;
    background: transparent;
  }

  .navbar__links.active .navbar__cta-mobile .btn--primary {
    color: var(--white);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .big-feature,
  .big-feature--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .module-card,
  .module-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 24px;
    gap: 24px;
  }

  .module-card__visual {
    aspect-ratio: auto;
    padding: 24px;
    max-height: 120px;
  }

  .module-card__visual svg {
    width: 48px;
    height: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero__stat-value {
    font-size: 2rem;
  }

  .stats-bar__item-value {
    font-size: 2.25rem;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .navbar__logo-img {
    height: 28px;
    min-width: 70px;
  }
}

/* ═══════════════════════════════════════════════════════════
   KUNDENBEREICH - Portal Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Auth Page (Login / Register) ──────────────────────── */
.auth-container {
  max-width: 480px;
  margin: 0 auto;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--gray-200);
}

.auth-tab {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-family: var(--font-body);
}

.auth-tab:hover {
  color: var(--gray-700);
}

.auth-tab.active {
  color: var(--senex-blue);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--senex-blue);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-note {
  background: var(--senex-blue-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--senex-blue-dark);
  line-height: 1.6;
}

.auth-note strong {
  display: block;
  margin-bottom: 4px;
}

/* ─── Navbar Login Button ───────────────────────────────── */
/* HINWEIS: .navbar__cta display wird oben im Navbar-Bereich gesetzt,
   NICHT hier, da sonst die <=1200px Media-Query überschrieben wird */

.btn--outline-white {
  background: transparent;
  color: var(--senex-blue) !important;
  border-color: var(--senex-blue) !important;
  padding: 10px 20px;
  font-size: 0.8125rem;
}

.btn--outline-white:hover {
  background: var(--senex-blue);
  border-color: var(--senex-blue) !important;
  color: var(--white) !important;
}

/* ─── Portal Layout ─────────────────────────────────────── */
.portal-header {
  padding: 120px 0 40px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.portal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-header__welcome h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.portal-header__welcome p {
  font-size: 1rem;
}

.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-header__profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.portal-header__profile:hover,
.portal-header__profile.active {
  color: var(--senex-blue);
  border-color: var(--senex-blue);
  background: #F0F7FD;
}

.portal-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 80px;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.portal-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  overflow-x: auto;
  scrollbar-width: auto;
  scrollbar-color: var(--gray-300) var(--gray-100);
}

.portal-nav__inner::-webkit-scrollbar {
  height: 60px;
}

.portal-nav__inner::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.portal-nav__inner::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 30px;
  border: 16px solid var(--gray-100);
}

.portal-nav__inner::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ─── Portal Nav: Actions-Bar (eigene Zeile über den Tabs) ── */
.portal-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 8px var(--container-padding);
  border-bottom: 1px solid var(--gray-100);
}

.portal-nav__action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition);
}

.portal-nav__action-link:hover,
.portal-nav__action-link.active {
  color: var(--senex-blue);
  background: #F0F7FD;
}

.portal-nav__action-link--logout:hover {
  color: var(--senex-red);
  background: var(--senex-red-light);
}

.portal-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.portal-nav__link:hover {
  color: var(--senex-blue);
}

.portal-nav__link.active {
  color: var(--senex-blue);
  border-bottom-color: var(--senex-blue);
  font-weight: 600;
}

.portal-nav__link svg {
  width: 18px;
  height: 18px;
}

/* ─── Portal Nav: Verwaltung-Toggle ────────────────────── */
.portal-nav__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.portal-nav__toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.portal-nav__toggle-slider {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background: var(--gray-300);
  border-radius: 11px;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.portal-nav__toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.portal-nav__toggle-input:checked + .portal-nav__toggle-slider {
  background: var(--senex-blue);
}

.portal-nav__toggle-input:checked + .portal-nav__toggle-slider::after {
  transform: translateX(18px);
}

.portal-nav__toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s ease;
}

.portal-nav__toggle.active .portal-nav__toggle-label {
  color: var(--senex-blue);
  font-weight: 600;
}

.portal-nav__toggle:hover .portal-nav__toggle-label {
  color: var(--senex-blue);
}

/* ─── Portal Dashboard ──────────────────────────────────── */
.portal-section {
  padding: 48px 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portal-tile {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portal-tile:hover {
  border-color: var(--senex-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.portal-tile__icon {
  width: 56px;
  height: 56px;
  background: var(--senex-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--senex-blue);
}

.portal-tile h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.portal-tile p {
  font-size: 0.9375rem;
  flex: 1;
}

.portal-tile__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 6px 14px;
  background: var(--senex-blue-light);
  color: var(--senex-blue);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  width: fit-content;
}

/* ─── Update Cards ──────────────────────────────────────── */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.update-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: var(--transition);
}

.update-card:hover {
  border-color: var(--senex-blue);
}

.update-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.update-card__version {
  padding: 4px 12px;
  background: var(--senex-blue);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.update-card__date {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.update-card__type {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.update-card__type--feature { background: #DBEAFE; color: #1D4ED8; }
.update-card__type--fix { background: #FEE2E2; color: #DC2626; }
.update-card__type--improvement { background: #D1FAE5; color: #059669; }

.update-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.update-card p {
  font-size: 0.9375rem;
}

.update-card__changes {
  list-style: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.update-card__changes li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.update-card__changes li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--senex-blue);
  font-weight: 700;
}

/* ─── Platform Sections (Collapsible) ──────────────────── */
.platform-section {
  margin-top: 40px;
}

.platform-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #475569 0%, #64748B 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
}

.platform-section__toggle:hover {
  filter: brightness(1.1);
}

.platform-section--current .platform-section__toggle {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
}

.platform-section__chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.platform-section--collapsed .platform-section__chevron {
  transform: rotate(-90deg);
}

.platform-section__content {
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
  max-height: 50000px;
  opacity: 1;
  margin-top: 24px;
}

.platform-section--collapsed .platform-section__content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* ─── Sync Status (Admin) ─────────────────────────────── */
.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.sync-status--ok {
  background: #D1FAE5;
  color: #059669;
}

.sync-status--warning {
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid #FCD34D;
}

.sync-status--error {
  background: #FEE2E2;
  color: #DC2626;
}

.sync-log {
  max-height: 300px;
  overflow-y: auto;
  background: var(--gray-900);
  color: #a3e635;
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.sync-log p {
  margin: 0;
  padding: 2px 0;
  color: inherit;
  font-size: inherit;
}

/* ─── Video Grid ────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.video-card:hover {
  border-color: var(--senex-blue);
  box-shadow: var(--shadow-lg);
}

.video-card__thumb {
  aspect-ratio: 16/9;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.video-card__play {
  width: 64px;
  height: 64px;
  background: var(--senex-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.video-card__thumb:hover .video-card__play {
  transform: scale(1.1);
  background: var(--senex-blue-dark);
}

.video-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-card__info {
  padding: 20px 24px;
}

.video-card__info h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.video-card__info p {
  font-size: 0.875rem;
}

.video-card__meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* ─── Handbuch ──────────────────────────────────────────── */
.manual-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.manual-nav {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 140px;
}

.manual-nav h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.manual-nav__list {
  list-style: none;
}

.manual-nav__list li {
  margin-bottom: 4px;
}

.manual-nav__list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9375rem;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.manual-nav__list a:hover {
  background: var(--white);
  color: var(--senex-blue);
}

.manual-nav__list a.active {
  background: var(--senex-blue-light);
  color: var(--senex-blue);
  font-weight: 600;
}

.manual-content {
  min-height: 60vh;
}

.manual-content h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}

.manual-content h3 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.manual-content p {
  margin-bottom: 16px;
  max-width: 100%;
}

.manual-placeholder {
  background: var(--senex-blue-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-top: 32px;
}

.manual-placeholder p {
  margin: 0 auto;
  color: var(--senex-blue-dark);
}

/* Manual Content Extensions */
.manual-content h4 {
  font-size: 1.1rem;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.manual-content ul,
.manual-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.manual-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.manual-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Manual Info Box */
.manual-info {
  background: var(--senex-blue-light);
  border-left: 4px solid var(--senex-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.manual-info strong {
  color: var(--senex-blue-dark);
}

.manual-info p {
  margin: 0;
  color: var(--senex-blue-dark);
}

/* Manual Warning Box */
.manual-warning {
  background: #FFF7ED;
  border-left: 4px solid #F59E0B;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.manual-warning strong {
  color: #92400E;
}

.manual-warning p {
  margin: 0;
  color: #78350F;
}

/* Manual Steps */
.manual-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 24px 0;
}

.manual-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.manual-steps li::before {
  content: counter(step);
  min-width: 32px;
  height: 32px;
  background: var(--senex-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Manual Table */
.manual-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
}

.manual-table th {
  background: var(--senex-blue);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.manual-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.manual-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.manual-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.manual-table tr:nth-child(even) td {
  background: var(--gray-50);
}

.manual-table tr:hover td {
  background: var(--senex-blue-light);
}

/* Manual Screenshot / Figure */
.manual-figure {
  margin: 24px 0;
  text-align: center;
}

.manual-figure img {
  display: block;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid var(--gray-200);
}

.manual-figure figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-style: italic;
}

@media (max-width: 768px) {
  .manual-figure img {
    max-width: 100%;
  }
}

/* Manual Breadcrumb */
.manual-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.manual-breadcrumb a {
  color: var(--senex-blue);
  text-decoration: none;
}

.manual-breadcrumb a:hover {
  text-decoration: underline;
}

.manual-breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-400);
}

/* Manual Chapter Cards (Overview Page) */
.manual-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.manual-chapter-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.manual-chapter-card:hover {
  border-color: var(--senex-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.manual-chapter-card__icon {
  width: 48px;
  height: 48px;
  background: var(--senex-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.manual-chapter-card__icon svg {
  stroke: var(--senex-blue);
}

.manual-chapter-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.manual-chapter-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* Manual Flowchart */
.manual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.manual-flow__step {
  background: var(--white);
  border: 2px solid var(--senex-blue);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--senex-blue-dark);
  text-align: center;
}

.manual-flow__arrow {
  color: var(--senex-blue);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Manual Details/Accordion */
.manual-content details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin: 16px 0;
  overflow: hidden;
}

.manual-content details summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--gray-50);
  transition: var(--transition);
}

.manual-content details summary:hover {
  background: var(--senex-blue-light);
  color: var(--senex-blue);
}

.manual-content details[open] summary {
  border-bottom: 1px solid var(--gray-200);
}

.manual-content details > div {
  padding: 20px;
}

/* Manual Search */
.manual-search {
  margin-bottom: 20px;
}

.manual-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: var(--transition);
}

.manual-search input:focus {
  outline: none;
  border-color: var(--senex-blue);
  box-shadow: 0 0 0 3px rgba(23, 117, 188, 0.1);
}

.manual-search-results {
  margin-top: 12px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.manual-search-results h5 {
  padding: 10px 14px 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin: 0;
}

.manual-search-results a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.8125rem;
  line-height: 1.5;
  transition: var(--transition);
}

.manual-search-results a:hover {
  background: var(--senex-blue-light);
  color: var(--senex-blue-dark);
}

.manual-search-results a:last-child {
  border-bottom: none;
}

.manual-search-results strong {
  color: var(--senex-blue-dark);
  font-size: 0.875rem;
}

.manual-search-results .search-snippet {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 0.75rem;
}

.manual-search-results mark {
  background: #FEF3C7;
  color: inherit;
  padding: 1px 2px;
  border-radius: 2px;
}

/* Manual TOC (in-page) */
.manual-toc {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.manual-toc h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin: 0 0 12px 0;
}

.manual-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.manual-toc li {
  margin-bottom: 4px;
}

.manual-toc a {
  color: var(--gray-600);
  font-size: 0.9375rem;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.manual-toc a:hover {
  color: var(--senex-blue);
}

/* Manual Chapter Nav (prev/next) */
.manual-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px solid var(--gray-200);
}

.manual-chapter-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.manual-chapter-nav a:hover {
  background: var(--senex-blue-light);
  color: var(--senex-blue);
}

@media (max-width: 768px) {
  .manual-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .manual-nav {
    position: static;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 24px;
  }

  .manual-chapters {
    grid-template-columns: 1fr;
  }

  .manual-flow {
    flex-direction: column;
  }

  .manual-flow__arrow {
    transform: rotate(90deg);
  }

  .manual-chapter-nav {
    flex-direction: column;
  }

  .manual-steps li {
    flex-direction: column;
    text-align: center;
  }

  .manual-table {
    font-size: 0.85rem;
  }

  .manual-table th,
  .manual-table td {
    padding: 8px 10px;
  }
}

/* ─── Portal Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .portal-nav__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .portal-nav__link {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .portal-nav__toggle {
    padding: 0 12px;
    gap: 8px;
  }

  .portal-nav__toggle-slider {
    width: 36px;
    height: 20px;
  }

  .portal-nav__toggle-slider::after {
    width: 14px;
    height: 14px;
  }

  .portal-nav__toggle-input:checked + .portal-nav__toggle-slider::after {
    transform: translateX(16px);
  }

  .portal-nav__toggle-label {
    font-size: 0.8125rem;
  }

  .portal-nav__actions {
    gap: 2px;
    padding-left: 12px;
  }

  .portal-nav__action-link {
    width: 34px;
    height: 34px;
  }

  .manual-sidebar {
    grid-template-columns: 1fr;
  }

  .manual-nav {
    position: static;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .upload-dropzone {
    padding: 32px 16px;
  }
}

/* ─── Admin Role Badge ─────────────────────────────────── */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.role-badge--admin {
  background: var(--senex-blue-light);
  color: var(--senex-blue);
}

.role-badge--kunde {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ─── Upload Dropzone ──────────────────────────────────── */
.upload-dropzone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--senex-blue);
  background: var(--senex-blue-light);
}

.upload-dropzone.drag-over {
  transform: scale(1.01);
}

/* ─── Video Admin (va-*) ───────────────────────────────── */
.va-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
}
.va-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.va-tab:hover { color: var(--gray-700); }
.va-tab.active {
  color: var(--senex-blue);
  border-bottom-color: var(--senex-blue);
}
.va-tab-content { display: none; }
.va-tab-content.active { display: block; }

.va-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.va-card__title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.va-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.va-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.va-form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
}
.va-form-group input[type="text"],
.va-form-group input[type="number"],
.va-form-group textarea,
.va-form-group select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  width: 100%;
  box-sizing: border-box;
}
.va-form-group textarea { resize: vertical; }

.va-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--senex-blue-light);
  color: var(--senex-blue);
  margin-left: 8px;
}
.va-badge--inactive { background: #FEF2F2; color: #DC2626; }
.va-badge--flow { background: #F0FDF4; color: #16A34A; }

.va-cat-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.va-cat-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.va-cat-item__info {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.va-cat-item__slug {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-left: 4px;
}
.va-cat-item__actions { display: flex; gap: 8px; }
.va-cat-item__desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.va-video-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.va-video-item:last-child { border-bottom: none; }
.va-video-item__info { flex: 1; min-width: 0; }
.va-video-item__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
}
.va-video-item__label {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-500);
}
.va-video-item__meta {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.va-video-item__roles {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.va-video-item__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.va-role-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #EFF6FF;
  color: #2563EB;
}
.va-role-tag--none { background: #FEF2F2; color: #DC2626; }

.va-role-checkboxes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.va-role-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}
.va-role-label:hover { background: var(--gray-50); }

.va-flow-editor {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
}
.va-flow-step {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.va-flow-step__icon {
  width: 120px;
  padding: 6px 8px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}
.va-flow-step__name {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.va-flow-step__color {
  width: 36px;
  height: 32px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 2px;
  cursor: pointer;
}
.va-flow-step__btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.va-flow-step__btn:hover { background: var(--gray-100); }
.va-flow-step__btn--del { color: #DC2626; border-color: #FCA5A5; }
.va-flow-step__btn--del:hover { background: #FEF2F2; }

.va-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.va-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.va-modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.va-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--gray-200);
}
.va-modal__header h3 { margin: 0; font-size: 1.125rem; }
.va-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0 4px;
}
.va-modal__body { padding: 24px 28px; }
.va-modal__footer {
  padding: 16px 28px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ─── Flowdiagramm (Kunden-Ansicht) ────────────────────── */
.flow-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 24px 16px;
  flex-wrap: wrap;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  min-width: 90px;
  max-width: 120px;
}
.flow-step__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.flow-step__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.flow-step__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  max-width: 110px;
  line-height: 1.3;
}
.flow-arrow {
  color: var(--gray-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 16px;
  height: 52px;
}

/* ─── Playlist Player ──────────────────────────────────── */
.playlist-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-top: 12px;
  font-size: 0.875rem;
}
.playlist-bar__progress {
  font-weight: 600;
  color: var(--senex-blue);
}
.single-video__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.single-video__nav a {
  font-size: 0.9375rem;
  color: var(--senex-blue);
  text-decoration: none;
  font-weight: 500;
}
.single-video__nav a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .va-form-row { flex-direction: column; gap: 0; }
  .va-cat-item__header { flex-direction: column; align-items: flex-start; }
  .va-video-item { flex-direction: column; }
  .va-video-item__actions { width: 100%; justify-content: flex-end; }
  .va-flow-step { flex-wrap: wrap; }
  .flow-diagram { flex-direction: column; gap: 0; align-items: center; }
  .flow-arrow { transform: rotate(90deg); margin: 0; margin-top: 0; height: auto; }
}

/* Portal Logout: jetzt ueber .portal-nav__action-link--logout in der Nav-Leiste */

/* ─── Portal Sub-Tabs ──────────────────────────────────── */
.portal-subtabs {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.portal-subtabs .container {
  display: flex;
  gap: 0;
}

.portal-subtab {
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.portal-subtab:hover {
  color: var(--senex-blue);
}

.portal-subtab.active {
  color: var(--senex-blue);
  font-weight: 600;
  border-bottom-color: var(--senex-blue);
}

/* ─── Deployment / Publish UI ──────────────────────────────── */
.deploy-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.deploy-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.deploy-card__header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.deploy-card__desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.deploy-env {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.deploy-env:hover {
  border-color: var(--senex-blue);
  background: var(--senex-blue-light);
}

.deploy-env input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--senex-blue);
}

.deploy-env__info {
  flex: 1;
}

.deploy-env__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.deploy-env__name {
  font-weight: 600;
  font-size: 1rem;
}

.deploy-env__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 100px;
}

.deploy-env__badge--staging {
  background: #FEF3C7;
  color: #92400E;
}

.deploy-env__badge--production {
  background: #D1FAE5;
  color: #065F46;
}

.deploy-env__url {
  font-size: 0.85rem;
  color: var(--senex-blue);
  text-decoration: none;
}

.deploy-env__url:hover {
  text-decoration: underline;
}

.deploy-env__date {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.deploy-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.deploy-publish-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.deploy-publish-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Deploy Log */
.deploy-log {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.deploy-log__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.deploy-log__header h3 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.deploy-log__status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.deploy-log__status--running {
  background: #FEF3C7;
  color: #92400E;
}

.deploy-log__status--success {
  background: #D1FAE5;
  color: #065F46;
}

.deploy-log__status--error {
  background: var(--senex-red-light);
  color: var(--senex-red);
}

.deploy-log__output {
  background: transparent;
  color: #A3E635;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 0;
}

/* Deploy History */
.deploy-history {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
}

.deploy-history h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.deploy-history__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.deploy-history__item:last-child {
  border-bottom: none;
}

.deploy-history__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.deploy-history__success .deploy-history__icon {
  background: #D1FAE5;
  color: #065F46;
}

.deploy-history__fail .deploy-history__icon {
  background: var(--senex-red-light);
  color: var(--senex-red);
}

.deploy-history__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deploy-history__details strong {
  font-size: 0.9rem;
  text-transform: capitalize;
}

.deploy-history__details span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.deploy-history__user {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ─── Maintenance Toggle ───────────────────────────────── */
.maintenance-env {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.maintenance-env:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.maintenance-env__info {
  flex: 1;
}

.maintenance-env__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.maintenance-env__status {
  font-size: 0.8rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.maintenance-env__status--active {
  color: var(--senex-red);
  font-weight: 600;
}

.maintenance-env__status--online {
  color: #16a34a;
  font-weight: 600;
}

.maintenance-env__status--loading {
  color: var(--senex-blue);
  font-style: italic;
}

/* Toggle Switch */
.maintenance-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  margin-left: 16px;
  cursor: pointer;
}

.maintenance-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.maintenance-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 28px;
  transition: background 0.3s ease;
}

.maintenance-toggle__slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.maintenance-toggle input:checked + .maintenance-toggle__slider {
  background: var(--senex-red);
}

.maintenance-toggle input:checked + .maintenance-toggle__slider::before {
  transform: translateX(24px);
}

.maintenance-toggle input:disabled + .maintenance-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.maintenance-toggle input:focus-visible + .maintenance-toggle__slider {
  outline: 2px solid var(--senex-blue);
  outline-offset: 2px;
}

/* Maintenance Info Box */
.maintenance-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(23, 117, 188, 0.06);
  border: 1px solid rgba(23, 117, 188, 0.15);
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.maintenance-info svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--senex-blue);
}

/* ═══════════════════════════════════════════════════════════
   v2.0 VISUAL ENHANCEMENT
   ═══════════════════════════════════════════════════════════ */

/* ─── Background Utilities ─────────────────────────────── */
.bg-blue-tint { background: linear-gradient(180deg, #EDF5FC 0%, var(--white) 100%); }
.bg-blue-soft { background: #F0F7FD; }
.bg-warm { background: #FAFAF8; }
.bg-dark-gradient { background: linear-gradient(135deg, var(--gray-900) 0%, var(--senex-blue-dark) 100%); color: var(--white); }

/* ─── Hero v3.0 Entrance Animations ────────────────────── */
.hero h1        { animation: hero-enter 0.8s ease-out 0.2s both; }
.hero__typed-line  { animation: hero-enter 0.8s ease-out 0.3s both; }
.hero__description { animation: hero-enter 0.8s ease-out 0.5s both; }
.hero__actions  { animation: hero-enter 0.8s ease-out 0.6s both; }
.hero__stats    { animation: hero-enter 0.8s ease-out 0.8s both; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__stat-value { text-shadow: 0 0 40px rgba(23,117,188,0.3); }

/* ─── Logo Ticker ──────────────────────────────────────── */
.logos__ticker {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 20px 0;
}

.logos__track {
  display: flex;
  gap: 64px;
  align-items: center;
  animation: ticker-scroll 45s linear infinite;
  width: max-content;
}

.logos__track img {
  height: 36px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.45;
  transition: var(--transition);
  flex-shrink: 0;
}

.logos__track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.logos__ticker:hover .logos__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Enhanced Feature Cards ───────────────────────────── */
.feature-card__icon {
  transition: all 0.3s ease;
}

.feature-card:hover .feature-card__icon {
  background: var(--senex-blue);
  color: var(--white);
  transform: scale(1.08);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--senex-blue), var(--senex-blue-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* ─── Process Timeline ─────────────────────────────────── */
.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.process-step {
  text-align: center;
  flex: 1;
  max-width: 240px;
  position: relative;
}

.process-step__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--senex-blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.process-step__icon {
  width: 68px;
  height: 68px;
  background: var(--senex-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(23,117,188,0.25);
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 auto;
  max-width: 200px;
  line-height: 1.6;
}

.process-step__connector {
  flex: 0 0 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--senex-blue), var(--gray-300));
  margin-top: 68px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .process-step__connector {
    width: 2px;
    height: 32px;
    flex: 0 0 32px;
    margin-top: 0;
    background: linear-gradient(180deg, var(--senex-blue), var(--gray-300));
  }
}

/* ─── Module Preview Cards ─────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.module-preview {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.module-preview__img {
  height: 160px;
  overflow: hidden;
}

.module-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.module-preview:hover .module-preview__img img {
  transform: scale(1.06);
}

.module-preview__content {
  padding: 24px;
}

.module-preview__content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.module-preview__content p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 12px;
}

.module-preview__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--senex-blue);
  transition: var(--transition);
}

.module-preview__link:hover {
  color: var(--senex-blue-dark);
}

.module-preview:hover {
  border-color: var(--senex-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

@media (max-width: 1024px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .module-grid { grid-template-columns: 1fr; }
}

/* ─── Screenshot Showcase ──────────────────────────────── */
/* Feature Showcase (replaces old screenshot mockup) */
.feature-showcase {
  max-width: 900px;
  margin: 48px auto 0;
}

.feature-showcase__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-showcase__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ─── Big Feature v2.0 Decorations ─────────────────────── */
.big-feature__img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.big-feature__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,117,188,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.big-feature__visual {
  position: relative;
}

.big-feature__visual::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(23,117,188,0.1) 30%, transparent 70%);
  border-radius: 50%;
  top: -30px;
  left: -30px;
  z-index: 0;
}

.big-feature__visual::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--senex-blue);
  border-radius: 50%;
  bottom: 20px;
  right: -20px;
  z-index: 2;
}

/* ─── Lottie Animation Positioning ────────────────────── */
.big-feature__lottie {
  position: absolute;
  bottom: -15px;
  right: -15px;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.process-timeline__lottie {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .process-timeline__lottie {
    display: none;
  }
  .big-feature__lottie {
    bottom: -10px;
    right: -10px;
  }
  .big-feature__lottie dotlottie-player {
    width: 56px !important;
    height: 56px !important;
  }
}

/* ─── Ref Card v2.0 ───────────────────────────────────── */
.ref-card {
  position: relative;
  overflow: hidden;
}

.ref-card__logo {
  height: 36px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.ref-card:hover .ref-card__logo {
  opacity: 1;
  filter: grayscale(0%);
}

/* ─── Industry Card Overlay ────────────────────────────── */
.industry-card__img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.industry-card__img-wrap img {
  transition: transform 0.6s ease;
}

.industry-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,77,130,0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.industry-card:hover .industry-card__img-wrap::after {
  opacity: 1;
}

.industry-card:hover .industry-card__img-wrap img {
  transform: scale(1.05);
}

/* ─── Stats Bar v2.0 ───────────────────────────────────── */
.stats-bar.bg-blue {
  background: linear-gradient(135deg, var(--senex-blue-dark) 0%, var(--senex-blue) 100%);
  position: relative;
  overflow: hidden;
}

.stats-bar.bg-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.stats-bar__item-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: rgba(255,255,255,0.85);
}

/* ─── Testimonial Carousel ─────────────────────────────── */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-carousel__track .testimonial-card {
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
}

.testimonials-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.testimonials-carousel__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}

.testimonials-carousel__arrow:hover {
  border-color: var(--senex-blue);
  color: var(--senex-blue);
  background: var(--senex-blue-light);
}

.testimonials-carousel__dots {
  display: flex;
  gap: 8px;
}

.testimonials-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.testimonials-carousel__dot.active {
  background: var(--senex-blue);
  width: 28px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .testimonials-carousel__track .testimonial-card {
    min-width: calc(100% - 16px);
  }
}

/* ─── CTA v2.0 Decorative Orbs ─────────────────────────── */
.cta.bg-dark {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--senex-blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta.bg-dark::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(23,117,188,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -100px;
  pointer-events: none;
}

.cta.bg-dark::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(166,32,45,0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px;
  left: -50px;
  pointer-events: none;
}

/* ─── FAQ v2.0 ─────────────────────────────────────────── */
.faq-item__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--gray-400);
}
.faq-item.active .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--senex-blue);
}
.faq-item.active {
  background: var(--gray-50);
  border-left: 3px solid var(--senex-blue);
  padding-left: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ─── Button Glow Effect ───────────────────────────────── */
.btn--primary {
  position: relative;
  z-index: 1;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--senex-blue);
  border-radius: inherit;
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn--primary:hover::after {
  opacity: 0.2;
}

/* ─── Staggered Reveal ─────────────────────────────────── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.45s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .logos__track { animation: none; display: flex; flex-wrap: wrap; justify-content: center; }
  .hero__float { animation: none; }
  .typed-cursor { animation: none; }
  .stagger-children > * { opacity: 1; transform: none; }
  dotlottie-player { display: none !important; }
  .big-feature__lottie { display: none; }
  .process-timeline__lottie { display: none; }
}

/* ─── Search Highlights ────────────────────────────────── */
mark.search-highlight,
mark.cr-highlight {
  background: #FEF08A;
  color: inherit;
  padding: 1px 3px;
  border-radius: 3px;
}

mark.search-highlight {
  box-shadow: 0 0 0 2px rgba(254,240,138,0.5);
  animation: highlight-pulse 1.5s ease-out;
}

@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 4px rgba(254,240,138,0.8); }
  100% { box-shadow: 0 0 0 2px rgba(254,240,138,0.5); }
}

/* ─── Site Search ───────────────────────────────────────── */
.navbar__search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.navbar__search-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled .navbar__search-btn {
  color: var(--gray-500);
}

.navbar.scrolled .navbar__search-btn:hover {
  color: var(--senex-blue);
  background: var(--senex-blue-light);
}

.site-search {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-search--open {
  opacity: 1;
  visibility: visible;
}

.site-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-search__panel {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.24);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.2s ease;
}

.site-search--open .site-search__panel {
  transform: translateY(0) scale(1);
}

.site-search__header {
  padding: 4px;
  border-bottom: 1px solid var(--gray-200);
}

.site-search__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.site-search__icon {
  color: var(--gray-400);
  flex-shrink: 0;
}

.site-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.0625rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: transparent;
}

.site-search__input::placeholder {
  color: var(--gray-400);
}

.site-search__kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-family: var(--font-body);
  color: var(--gray-400);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  line-height: 1.4;
}

.site-search__results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.site-search__empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9375rem;
}

.site-search__result a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray-800);
  transition: background 0.15s ease;
}

.site-search__result a:hover,
.site-search__result--active a {
  background: var(--senex-blue-light);
}

.site-search__result-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  margin-top: 2px;
}

.site-search__result--active .site-search__result-icon {
  background: var(--senex-blue);
  color: var(--white);
}

.site-search__result-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

.site-search__result-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-search__footer {
  padding: 10px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.site-search__hint {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.site-search__hint kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  font-size: 0.6875rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  margin: 0 2px;
}

@media (max-width: 1200px) {
  .navbar__search-btn {
    color: var(--gray-500);
  }
  .navbar__search-btn:hover {
    color: var(--senex-blue);
    background: var(--senex-blue-light);
  }
}

@media (max-width: 600px) {
  .site-search {
    padding-top: 0;
    align-items: stretch;
  }
  .site-search__panel {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .site-search__results {
    flex: 1;
    max-height: none;
  }
  .site-search__footer {
    display: none;
  }
}
