﻿/* ============================================
   Krämer KI Portal — Design System
   ============================================ */

/* --- Tailwind-Style Design Tokens --- */
:root {
  /* Cobalt (Primary) */
  --cobalt: #0073bc;
  --cobalt-50: #E6F3FB;
  --cobalt-100: #CCE7F7;
  --cobalt-200: #99CFEF;
  --cobalt-300: #66B7E7;
  --cobalt-400: #339FDF;
  --cobalt-500: #0073bc;
  --cobalt-600: #0065A8;
  --cobalt-700: #005087;
  --cobalt-800: #003B66;
  --cobalt-900: #162a56;

  /* Flame (Accent) */
  --flame: #f39200;
  --flame-50: #FEF2E0;
  --flame-100: #FDE5C2;
  --flame-200: #FBCB85;
  --flame-300: #F9B147;
  --flame-400: #F7A124;
  --flame-500: #f39200;
  --flame-600: #d4830a;
  --flame-700: #B06C0D;
  --flame-800: #8C550F;
  --flame-900: #683E11;
  --flame-accessible: #8C550F;
  --flame-accessible-hover: #683E11;

  /* Signal (Success) */
  --signal: #10B981;
  --signal-50: #ECFDF5;
  --signal-100: #D1FAE5;
  --signal-500: #10B981;
  --signal-600: #059669;

  /* Slate */
  --slate: #1E293B;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* White / Gray */
  --white: #ffffff;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Fonts */
  --font-heading: 'Segoe UI', Arial, sans-serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --font-display: 'Segoe UI', Arial, sans-serif;

  /* Interaction */
  --focus-ring: 0 0 0 3px rgba(0,115,188,0.24);
  --surface-warm: #fffaf4;

  /* Radius */
  --radius: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0,115,188,0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--cobalt-800);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

p {
  text-wrap: pretty;
}
ul, ol {
  list-style: none;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--cobalt);
  z-index: 9999;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s ease-out;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.heading-display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: 0;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 42rem;
  line-height: 1.7;
}

.text-flame {
  color: var(--flame-accessible);
}

.text-cobalt {
  color: var(--cobalt);
}

.text-signal {
  color: var(--signal);
}

.text-slate-500 {
  color: var(--slate-500);
}

.text-white {
  color: var(--white);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --- Navbar --- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  padding: 0.75rem 0;
}

#navbar.transparent {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#navbar .navbar-inner {
  max-width: 90rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo img {
  display: block;
  height: 4rem;
  width: auto;
  max-width: min(18rem, 64vw);
  object-fit: contain;
  background: var(--white);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-lg);
  filter: brightness(1.045) contrast(1.08);
}

#navbar .navbar-logo img {
  background: transparent;
  padding: 0;
  filter: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1440px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--cobalt);
}

.nav-link[aria-current="page"] {
  color: var(--cobalt-700);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  background: var(--cobalt);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1440px) {
  .nav-cta {
    display: flex;
  }
}

.nav-phone {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--cobalt);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}


.btn-block-center {
  width: 100%;
  justify-content: center;
}
.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn-flame {
  background: var(--flame-accessible);
  color: var(--white);
}

.btn-flame:hover {
  background: var(--flame-accessible-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--white);
}

.btn-cobalt:hover {
  background: var(--cobalt-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--slate-700);
  border: 2px solid var(--slate-300);
}

.btn-outline:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.btn-white {
  background: var(--white);
  color: var(--cobalt);
}

.btn-white:hover {
  background: var(--cobalt-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* --- Mobile Menu --- */
#mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--slate-700);
}

@media (min-width: 1440px) {
  #mobile-menu-btn {
    display: none;
  }
}

#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 2000;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

#mobile-menu.open {
  display: block;
}

#mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--slate-700);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-800);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link:hover {
  color: var(--cobalt);
}

.mobile-nav-link[aria-current="page"] {
  color: var(--cobalt-700);
  font-weight: 800;
}

.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- Hero Section --- */
#hero {
  position: relative;
  min-height: 92vh;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.9) 42%, rgba(230,243,251,0.62) 70%, rgba(22,42,86,0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4.75rem;
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--cobalt-200);
  color: var(--cobalt-900);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.35rem;
  box-shadow: 0 12px 28px rgba(22,42,86,0.08);
}

.hero-headline {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: 4.5rem;
  }
}

.hero-headline .highlight {
  color: var(--flame-accessible);
}

.hero-subheadline {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .hero-subheadline {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}

.trust-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.trust-item .icon-shield { color: var(--signal); }
.trust-item .icon-server { color: var(--cobalt); }
.trust-item .icon-lock { color: var(--cobalt); }

/* --- Section Common --- */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-white {
  background: var(--white);
}

.section-gray {
  background: var(--slate-50);
}

/* --- Benefits Section --- */
.benefits-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--cobalt-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  color: var(--cobalt);
  background: var(--cobalt-50);
}

.benefit-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
}


@media (min-width: 1024px) {
  .benefit-card:first-child {

    background: linear-gradient(160deg, var(--cobalt-900), var(--cobalt-700));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 24px 50px rgba(22,42,86,0.16);
  }

  .benefit-card:first-child:hover {
    border-color: transparent;
  }

  .benefit-card:first-child .benefit-icon {
    color: var(--white);
    background: rgba(255,255,255,0.14);
  }

  .benefit-card:first-child h3 {
    color: var(--white);
    font-size: 1.35rem;
  }

  .benefit-card:first-child p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
  }
}
/* --- Products Section --- */
.service-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--cobalt-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}


@media (min-width: 1100px) {
  .service-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: none;
  }

  .service-card:first-child .service-media img {
    height: 100%;
    min-height: 22rem;
    aspect-ratio: auto;
  }

  .service-card:first-child .service-body {
    padding: 2rem;
  }

  .service-card:first-child .service-title {
    font-size: 2rem;
  }

  .service-card:first-child .service-summary {
    font-size: 1rem;
    max-width: 45rem;
  }
}
.service-media {
  position: relative;
  background: var(--slate-100);
  overflow: hidden;
}

.service-media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.03);
}

.service-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--cobalt);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  letter-spacing: 0.05em;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .service-body {
    padding: 1.75rem;
  }
}

.product-subtitle {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--flame-accessible);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: 0;
}

.service-summary {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.service-use-cases {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.service-use-cases li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.service-use-cases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--signal);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.service-actions .btn {
  justify-content: center;
}

.product-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--cobalt);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.product-detail-link:hover {
  color: var(--cobalt-700);
}

.product-detail-link svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.product-detail-link:hover svg {
  transform: translateX(4px);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-main-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-main-image img {
  width: 100%;
  height: auto;
  min-height: 24rem;
  object-fit: cover;
}

.about-image-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--cobalt);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
}

.about-image-overlay .overlay-year {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-image-overlay .overlay-text {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.iso-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--slate-50);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  border: 1px solid var(--slate-100);
}

.iso-badge img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.iso-badge-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.iso-badge-text p {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat-item {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--slate-100);
}

.stat-icon {
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* --- CTA Section --- */
#cta-section {
  background: linear-gradient(135deg, var(--cobalt-900) 0%, var(--cobalt-700) 58%, var(--cobalt) 100%);
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .cta-content h2 {
    font-size: 3rem;
  }
}

.cta-content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-persons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-persons-image {
  background: #031d43;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-persons-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1824 / 896;
  object-fit: contain;
}

.contact-person-cards {
  display: grid;
  gap: 1rem;
}

.contact-person-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.contact-person-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.contact-person-card .role {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.contact-person-card .contact-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.375rem;
}

.contact-person-card .contact-detail svg {
  width: 1rem;
  height: 1rem;
  color: var(--cobalt);
  flex-shrink: 0;
}

.contact-person-card .contact-detail a {
  color: var(--cobalt);
}

.contact-person-card .contact-detail a:hover {
  text-decoration: underline;
}

.contact-address {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.contact-address h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.contact-address p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.contact-address-extra {
  margin-top: 0.5rem;
}

.contact-address .phone-link {
  color: var(--cobalt);
  font-weight: 600;
}

.contact-address .phone-link:hover {
  text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.contact-form-wrapper .form-subtitle {
  font-size: 0.9375rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

.consumption-handoff {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--cobalt-200);
  border-radius: var(--radius-lg);
  background: var(--cobalt-50);
  color: var(--slate-800);
}

.consumption-handoff[hidden] {
  display: none;
}

.consumption-handoff-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.consumption-handoff-header svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  color: var(--cobalt-700);
}

.consumption-handoff-header h4 {
  margin: 0 0 0.2rem;
  color: var(--slate-900);
  font-size: 1.1rem;
  line-height: 1.35;
}

.consumption-handoff-header p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

.consumption-handoff-values {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.consumption-handoff-values > div {
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cobalt-200);
}

.consumption-handoff-values dt {
  margin-bottom: 0.2rem;
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.consumption-handoff-values dd {
  margin: 0;
  color: var(--slate-900);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .consumption-handoff-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.375rem;
}

.form-label .required {
  color: #EF4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--slate-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cobalt);
  box-shadow: var(--focus-ring);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-spinner-hidden {
  display: none;
}

.form-submit .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-success {
  display: none;
  text-align: left;
  padding: 2rem 0 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 2rem;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  color: var(--signal);
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

.form-email-preview {
  min-height: 16rem;
  margin-top: 0.5rem;
  background: var(--slate-50);
  line-height: 1.55;
}

.form-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-copy-status {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  color: var(--slate-600);
  font-size: 0.875rem;
}

.form-privacy a {
  color: var(--cobalt-700);
  font-weight: 700;
  text-decoration: underline;
}

.form-success h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.form-privacy {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* --- Legal Section --- */
.legal-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.legal-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.legal-card p,
.legal-card li {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.legal-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-list-spaced,
.legal-spaced {
  margin-top: 0.75rem;
}

.legal-pending-list {
  padding: 0.75rem 0.9rem;
  background: var(--surface-warm);
  border: 1px solid var(--flame-100);
  border-radius: var(--radius);
}

.legal-pending-list li {
  color: var(--flame-900);
}

.legal-link {
  color: var(--cobalt);
  font-weight: 600;
}

.legal-link:hover {
  text-decoration: underline;
}

/* --- Footer --- */
#footer {
  background: var(--slate-900);
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand .navbar-logo {
  margin-bottom: 1rem;
}

.footer-brand .navbar-logo img {
  height: 4.25rem;
  max-width: 100%;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.7;
  max-width: 20rem;
}

.footer-col h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-secondary-link {
  color: var(--slate-400) !important;
  font-size: 0.875rem !important;
}

.footer-contact p {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--cobalt-100);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--slate-700);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* --- Analytics consent --- */
.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3000;
  max-width: 70rem;
  margin: 0 auto;
  color: var(--slate-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(15,23,42,0.24);
}

.consent-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem;
}

.consent-copy {
  max-width: 46rem;
}

.consent-copy h2 {
  margin-bottom: 0.375rem;
  color: var(--slate-900);
  font-size: 1.125rem;
}

.consent-copy p {
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.55;
}

.consent-copy a {
  color: var(--cobalt-700);
  font-weight: 700;
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

.consent-settings-link {
  padding: 0;
  color: var(--slate-400);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.consent-settings-link:hover {
  color: var(--white);
}

.consent-settings-floating {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 400;
  padding: 0.5rem 0.75rem;
  color: var(--slate-600);
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.consent-settings-floating:hover {
  color: var(--cobalt);
}

@media (max-width: 767px) {
  .consent-banner {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
  }

  .consent-banner-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-actions .btn {
    width: 100%;
  }

  .consent-copy a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .consent-actions {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   AI Services Process & Guidance
   ============================================ */
.service-process-section {
  border-top: 1px solid var(--gray-100);
}

.process-grid,
.guidance-grid {
  display: grid;
  gap: 1rem;
}

.process-grid,
.guidance-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .process-grid,
  .guidance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .guidance-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.process-card,
.guidance-card {
  min-height: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.process-card {
  padding: 1.35rem;
  position: relative;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--cobalt-50);
  color: var(--cobalt-700);
  font-weight: 800;
  font-size: 0.78rem;
  font-family: var(--font-heading);
}

.process-card h3,
.guidance-card h3 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.25;
}

.process-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.process-card p,
.guidance-card p {
  color: var(--slate-600);
  line-height: 1.65;
}

.process-card p {
  font-size: 0.95rem;
}

.detail-guidance {
  padding: 0 0 4rem;
}

.guidance-card {
  padding: 1.4rem;
}

.guidance-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

.guidance-card p {
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .detail-guidance {
    padding-bottom: 3rem;
  }
}

/* --- Anwender-Dokumentation auf den Produktseiten --- */
.detail-docs {
  padding: 0 0 4rem;
}

.doc-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.doc-callout-text {
  flex: 1 1 22rem;
}

.doc-callout h3 {
  margin-bottom: 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
}

.doc-callout p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .detail-docs {
    padding-bottom: 3rem;
  }

  .doc-callout {
    padding: 1.35rem;
  }

  .doc-callout .btn {
    width: 100%;
  }
}


/* --- Product Detail Pages --- */
.product-detail-hero {
  position: relative;
  background: linear-gradient(135deg, var(--cobalt-900) 0%, var(--cobalt-800) 64%, var(--cobalt-700) 100%);
  color: var(--white);
  padding: 6.5rem 0 4.5rem;
  overflow: hidden;
}

.product-detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.product-detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.product-detail-hero-bg-image {
  opacity: 0.22;
  filter: saturate(0.85) contrast(1.05);
}
.product-detail-hero .container {
  position: relative;
  z-index: 1;
}

.detail-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .detail-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-hero-content .product-subtitle {
  color: var(--flame-accessible);
}

.detail-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .detail-hero-content h1 {
    font-size: 3.25rem;
  }
}

.detail-hero-content p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.84);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-hero-actions .btn {
  justify-content: center;
}

.detail-hero-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.detail-hero-image img {
  width: 100%;
  height: auto;
  min-height: 16rem;
  object-fit: cover;
}

/* Feature Grid (Detailseiten) */
.detail-features {
  padding: 5rem 0;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.detail-feature-card:hover {
  border-color: var(--cobalt-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.detail-feature-card .feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--cobalt-50);
  color: var(--cobalt);
  margin-bottom: 1rem;
}

.detail-feature-card .feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.detail-feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.375rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.detail-feature-card p {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* Detail Benefits */
.detail-benefits {
  background: var(--slate-50);
  padding: 4rem 0;
}

.detail-benefits-list {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 2rem auto 0;
}

.detail-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.detail-benefit-item svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--signal);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.detail-benefit-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.detail-benefit-item p {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* Contact Persons Banner (Detailseiten) */
.contact-banner {
  background: var(--cobalt-900);
  color: var(--white);
  padding: 4rem 0;
}

.contact-banner .container {
  text-align: center;
}

.contact-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-banner > .container > p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
}

.contact-banner-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 26rem;
  margin: 0 auto;
}

.contact-banner-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: left;
}

.contact-banner-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-banner-card .role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.contact-banner-card a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--cobalt-100);
  margin-bottom: 0.375rem;
}

.contact-banner-card a:hover {
  color: var(--white);
}

.contact-banner-card a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* --- 404 Page --- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404 h1 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--cobalt);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.page-404 p {
  font-size: 1.0625rem;
  color: var(--slate-500);
  margin-bottom: 2rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 2rem; }

/* --- Animations (Scroll-basiert) --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Back to Top --- */
#back-to-top {
  position: fixed;
  /* Sitzt über der Chatbot-Bubble (16px Abstand + ca. 56px Bubble).
     8rem hält sichtbaren Abstand zur Bubble; Mobilwert unten zielt auf
     dieselbe Höhe, damit beide Breakpoints gleich aussehen. */
  bottom: 8rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  background: var(--cobalt);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
  z-index: 500;
  box-shadow: var(--shadow-lg);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top.footer-overlap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: none;
}

#back-to-top:hover {
  background: var(--cobalt-600);
  transform: translateY(-2px);
}

#back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- SAAR-KI Chatbot (AnythingLLM Embed) --- */
/* Das Widget bringt nur z-index 50 mit und läge damit unter Header (1000),
   Back-to-Top (500) und Mobilmenü. Auf 1500 liegt das geöffnete Chatfenster
   über Header und Back-to-Top, aber weiterhin unter Mobilmenü (2000/3000)
   und Cookie-Banner (9999/10000). */
#anything-llm-embed-chat-container,
#anything-llm-embed-chat-button-container {
  z-index: 1500;
}

/* Bei geöffnetem Chat den Back-to-Top-Button zusätzlich ausblenden, damit er
   nicht am Fensterrand hervorlugt. Fällt der :has()-Support aus, sorgt bereits
   der z-index oben für die korrekte Überdeckung. */
body:has(#anything-llm-embed-chat-container.allm-block) #back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Der Cookie-Banner liegt auf z-index 3000 und überdeckt die Chat-Bubble am
   unteren rechten Rand halb. Solange er sichtbar ist, wird die Bubble
   ausgeblendet: Die Einwilligung wird zuerst beantwortet, danach erscheint der
   Chat vollständig statt angeschnitten. */
body:has(.consent-banner) #anything-llm-embed-chat-button-container {
  display: none;
}

/* Der Begrüßungstext des Widgets nutzt slate-400 (#94A3B8). Auf Weiß sind das
   2,6:1 und damit unter der WCAG-AA-Schwelle von 4,5:1 für Fließtext. */
#anything-llm-embed-chat-container .allm-text-slate-400 {
  color: var(--slate-600);
}

/* Das Widget deckelt das Kopfzeilenlogo per Inline-Style auf 48x48. In der
   76px hohen Leiste bleibt die Wortmarke damit 15px hoch und kaum lesbar.
   Der Inline-Style erzwingt !important. */
#anything-llm-header img {
  max-width: 132px !important;
  max-height: 40px !important;
}


/* ============================================
   Approved responsive layout
   ============================================ */
@media (max-width: 1199px) {
  #navbar,
  #navbar.transparent,
  #navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid rgba(226,232,240,0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .navbar-logo img {
    height: 3.25rem;
    max-width: min(15rem, calc(100vw - 5.75rem));
  }

  #mobile-menu-btn,
  #mobile-menu-close {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
  }

  #mobile-menu {
    height: 100dvh;
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1.5rem, env(safe-area-inset-right))
      max(1.5rem, env(safe-area-inset-bottom))
      max(1.5rem, env(safe-area-inset-left));
  }

  #mobile-menu.open {
    display: flex;
    flex-direction: column;
  }

  #mobile-menu-close {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }

  .mobile-nav-links,
  .mobile-nav-ctas {
    width: 100%;
    max-width: 36rem;
    margin-right: auto;
    margin-left: auto;
  }

  .mobile-nav-links {
    gap: 0.5rem;
    margin-top: 4rem;
  }

  .mobile-nav-link {
    min-height: 3rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
  }

  .mobile-nav-ctas {
    margin-top: auto;
    padding-top: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 2.75rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: none;
  }

  .service-card:first-child .service-media img {
    height: 100%;
    min-height: 22rem;
    aspect-ratio: auto;
  }

  .service-card:first-child .service-body {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 1rem;
    scroll-padding-top: 4rem;
  }

  body {
    overflow-wrap: break-word;
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .navbar-logo img {
    height: 2.75rem;
    max-width: min(13rem, calc(100vw - 5.25rem));
  }

  .section {
    padding: 3.25rem 0;
  }

  main > .section:last-child {
    padding-bottom: 1.5rem;
  }

  .section-header {
    text-align: left;
    margin-bottom: 1.75rem;
  }

  .section-header .section-subtitle {
    margin: 0;
  }

  .section-subtitle {
    line-height: 1.65;
  }

  .section-title,
  .cta-content h2 {
    font-size: clamp(1.8rem, 8vw, 2.125rem);
    overflow-wrap: normal;
    text-wrap: pretty;
  }

  .btn {
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
  }

  #hero {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    background: var(--white);
  }

  .hero-bg {
    position: relative;
    inset: auto;
    grid-row: 2;
    height: clamp(13rem, 62vw, 18rem);
    overflow: hidden;
  }

  .hero-bg img {
    object-position: 58% 58%;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    grid-row: 1;
    width: 100%;
    max-width: 42rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .hero-headline {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 9.5vw, 2.5rem);
    line-height: 1.05;
    text-wrap: wrap;
  }

  .hero-headline br {
    display: none;
  }

  .hero-headline .highlight {
    display: block;
    margin-top: 0.12em;
  }

  .hero-subheadline {
    max-width: none;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-ctas .btn-flame {
    width: 100%;
  }

  .hero-ctas .btn-outline {
    width: auto;
    min-height: 2.75rem;
    padding: 0.5rem 0;
    border: 0;
    color: var(--cobalt-700);
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
  }

  .hero-ctas .btn-outline:hover {
    color: var(--cobalt-900);
    background: transparent;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-200);
  }

  .hero-trust .trust-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .trust-item {
    align-items: flex-start;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .benefits-grid,
  .service-grid,
  .feature-grid {
    gap: 1rem;
  }

  .benefit-card,
  .service-body,
  .detail-feature-card {
    padding: 1rem;
  }

  .benefit-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.875rem;
  }

  .service-body {
    gap: 0.875rem;
  }

  .service-media img {
    aspect-ratio: 16 / 9;
  }

  .service-actions,
  .detail-hero-actions {
    flex-direction: column;
  }

  .service-actions .btn,
  .detail-hero-actions .btn,
  .cta-buttons .btn,
  .form-result-actions .btn {
    width: 100%;
  }

  .service-actions .btn-outline {
    width: auto;
    min-height: 2.75rem;
    align-self: flex-start;
    justify-content: flex-start;
    padding: 0.5rem 0;
    border: 0;
    color: var(--cobalt-700);
    background: transparent;
    box-shadow: none;
  }

  .service-actions .btn-outline:hover {
    color: var(--cobalt-900);
    background: transparent;
  }

  .about-grid,
  .contact-grid {
    gap: 1.5rem;
  }

  .about-grid > *,
  .contact-grid > *,
  .detail-hero-grid > * {
    min-width: 0;
  }

  .about-main-image img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-image-overlay {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 0.875rem 1rem;
  }

  .iso-badge {
    align-items: flex-start;
    flex-direction: row;
    padding: 1rem;
  }

  .iso-badge img {
    width: 4rem;
    height: 4rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #cta-section {
    padding: 0;
  }

  .cta-content {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .cta-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .contact-person-card,
  .contact-address,
  .legal-card {
    padding: 1rem;
  }

  .contact-persons {
    gap: 1rem;
  }

  .contact-persons-image {
    display: none;
  }

  .legal-grid {
    gap: 1rem;
  }

  .contact-person-card .contact-detail {
    align-items: flex-start;
  }

  .contact-person-card .contact-detail a,
  .contact-address a,
  .contact-banner-card a,
  .footer-links a,
  .footer-contact a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-person-card .contact-detail a,
  .contact-address a,
  .contact-banner-card a,
  .footer-links a,
  .footer-contact a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  main .contact-banner-card a {
    display: flex;
    width: fit-content;
  }

  .footer-links {
    gap: 0;
  }

  .footer-links a {
    width: 100%;
  }

  .contact-form-wrapper {
    padding: 1.125rem;
    border-radius: var(--radius-xl);
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .consent-settings-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.875rem;
    padding-top: 1.75rem;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: 1.25rem;
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(8rem, 8.75rem) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148,163,184,0.22);
  }

  .footer-brand .navbar-logo {
    margin-bottom: 0;
  }

  .footer-brand .navbar-logo img {
    width: 100%;
    height: auto;
    max-width: 8.75rem;
  }

  .footer-brand p {
    font-size: 0.8125rem;
    line-height: 1.55;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col h3 {
    margin-bottom: 0.625rem;
  }

  .footer-links {
    gap: 0.4rem;
  }

  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
    padding: 0.875rem;
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.035);
  }

  .footer-col:nth-child(4) h3 {
    margin-bottom: 0.5rem;
  }

  .footer-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    align-items: start;
    gap: 0.125rem 0.875rem;
  }

  .footer-contact p {
    margin-bottom: 0;
  }

  .footer-contact p:first-child {
    grid-row: 1 / span 2;
  }

  .footer-contact p:not(:first-child) {
    white-space: nowrap;
  }

  .footer-bottom {
    padding-top: 0.875rem;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: calc(0.875rem + env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .footer-bottom-links a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .product-detail-hero {
    padding: 2.75rem 0 3rem;
  }

  .product-detail-hero-bg {
    display: none;
  }

  .detail-hero-grid {
    gap: 2rem;
  }

  .detail-hero-content h1 {
    font-size: clamp(2.1rem, 10vw, 2.5rem);
  }

  .detail-hero-content p {
    font-size: 1rem;
  }

  .detail-hero-image {
    border-radius: var(--radius-xl);
  }

  .detail-hero-image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .detail-features,
  .detail-benefits,
  .contact-banner {
    padding: 3.75rem 0;
  }

  .detail-guidance {
    padding-bottom: 3.75rem;
  }

  .detail-benefit-item {
    gap: 0.75rem;
    padding: 1rem;
  }

  .animate-on-scroll,
  .animate-on-scroll-left,
  .animate-on-scroll-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card:hover,
  .benefit-card:hover,
  .detail-feature-card:hover {
    transform: none;
  }

  #back-to-top {
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 7rem);
    width: 2.75rem;
    height: 2.75rem;
  }

  .page-404 {
    padding: 1rem;
  }

  .page-404 h1 {
    font-size: 5rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .detail-hero-content h1.detail-title-long {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .detail-hero-content h1.detail-title-long {
    font-size: clamp(1.5rem, 8.25vw, 2.1rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .detail-hero-content h1.detail-title-wide {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
    overflow-wrap: normal;
    hyphens: none;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-contact p:first-child {
    grid-row: auto;
  }

  .footer-contact p:not(:first-child) {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .stat-item {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  .hero-trust {
    grid-template-columns: 1fr;
  }

  .hero-trust .trust-item:last-child {
    grid-column: auto;
    justify-self: start;
  }

  .iso-badge {
    flex-direction: column;
  }

  .footer-grid {
    gap: 1.25rem 0.75rem;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer-brand .navbar-logo img {
    width: auto;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-contact p:first-child {
    grid-row: auto;
  }
}

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

  .animate-on-scroll,
  .animate-on-scroll-left,
  .animate-on-scroll-right {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-card:hover,
  .benefit-card:hover,
  .detail-feature-card:hover,
  #back-to-top:hover {
    transform: none;
  }
}
