/*
 * Kurzmann IT Works GmbH – Grav Theme CSS
 * Version: 1.0.0
 */

/* Box-sizing Reset: verhindert, dass Padding/Border-Breite zum overflow beiträgt */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --surface-card: #ffffff;
  --color-turquoise: #37bbdd;
  --color-grey: #555555;
  --color-grey-100: #F4F4F4;
  --color-grey-300: #E0E0E0;
  --color-grey-800: #333333;
  --color-overlay: rgba(0, 0, 0, 0.55);
  --max-width: 1200px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-sm: 6px;
  --transition: 220ms ease;
}

html {
  scroll-behavior: smooth;
  /* clip: verhindert horizontales Scrollen ohne Scroll-Container → position:sticky bleibt funktionsfähig.
     Fallback: overflow-x hidden via @supports, section-level clipping sichert ältere Browser ab. */
  overflow-x: clip;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-grey-800);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
  overflow-x: clip;
}

@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;
  }
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-black);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-turquoise);
}

button,
input[type="submit"],
input[type="button"] {
  cursor: pointer;
}

.site-header,
.site-footer,
.page-content {
  width: 100%;
}

/* main-navigation wird NICHT auf 100% gesetzt – sie ist absolut positioniert
   und soll nur so breit sein wie ihr Inhalt, damit die Zentrierung korrekt funktioniert. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--color-grey-300);
}

.theme-container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 24px;
}

/* Header: Flex mit absolut zentrierter Nav.
   Logo und Burger bleiben im Flex-Flow. Nav ist per position:absolute
   exakt in der Mitte des Containers – unabhängig von Logo-/Burger-Breite. */
.header-inner {
  display: flex;
  align-items: center;
  padding: 0.875rem 0;
  position: relative;   /* Positionierungskontext für die absolute Nav */
}

.site-branding {
  flex: 0 0 auto;
}

.header-nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .header-nav-cta { display: none !important; }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-black);
  line-height: 1;
}

/* Power-Icon SVG-Wrapper */
.site-logo .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 2px solid var(--color-black); /* Ring = Farbe wie "Kurzmann"-Text */
  border-radius: 50%;
  color: var(--color-turquoise); /* SVG-Symbol bleibt turquoise */
}

/* Footer: Ring weiß, passend zur weißen "Kurzmann"-Schrift */
.site-footer .site-logo .logo-icon,
.footer-logo .logo-icon {
  border-color: var(--color-white);
}

/* Text-Block rechts vom Icon */
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* IT Works rechtsbündig unter KURZMANN */
  gap: 1px;
}

.site-logo .logo-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: 1;
}

.site-logo .logo-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-turquoise); /* footer inherits this */
}
/* Kontrast-Fix Header: #37bbdd auf Weiß = 2.2:1 → #0c7a9c = 4.9:1 */
.site-header .site-logo .logo-tagline {
  color: #0c7a9c;
  line-height: 1;
}

/* Footer: helle Farben auf dunklem Hintergrund */
.site-footer .site-logo .logo-name,
.footer-logo .logo-name {
  color: var(--color-white);
}

/* Mobile Nav Logo-Farben: Styles stehen im MOBILE NAVIGATION-Block weiter unten */

.main-navigation {
  /* Absolut mittig – unabhängig von Logo- und Burger-Breite */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  /* Verhindert Überlappen mit Logo/Burger wenn Nav zu breit wird */
  pointer-events: none;
}

.main-navigation > ul {
  pointer-events: auto;
}

.main-navigation ul {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0rem, 0.18vw, 0.18rem); /* schrumpft fluid mit dem Viewport */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: clamp(0.75rem, 1vw, 0.875rem); /* fluid: schrumpft bei schmalem Viewport */
  white-space: nowrap;
  padding: 0.3rem clamp(0.1rem, 0.38vw, 0.4rem);
}

.main-navigation .sub-menu {
  /* BUG FIX: ul erbt display:flex + align-items:center von .main-navigation ul */
  display: flex;
  flex-direction: column;
  align-items: stretch; /* li-Elemente auf volle Breite strecken */
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--color-white);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  border: 1px solid var(--color-grey-300);
  border-radius: 12px;
  padding: 0.4rem 0;
  margin-top: 0.75rem;
  gap: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  width: max-content;
  max-width: 320px;
  z-index: 200;
  overflow: hidden;
}

/*
 * Hover-Brücke: Ein unsichtbares Pseudo-Element füllt die Lücke
 * zwischen dem Menüpunkt und dem Dropdown (= margin-top des sub-menu).
 * Solange die Maus darüber ist, bleibt li:hover aktiv →
 * das Dropdown bleibt offen, bis man es wirklich verlässt.
 */
.main-navigation .menu-item-has-children::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem; /* genau die margin-top-Lücke überbrücken */
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.main-navigation .sub-menu li {
  padding: 0;
}

.main-navigation .sub-menu a {
  padding: 0.6rem 1.25rem;
  display: block;
  white-space: nowrap;
  text-align: center;
  border-left: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-grey-800);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.main-navigation .sub-menu a:hover {
  background: var(--color-grey-100);
  color: var(--color-turquoise);
  border-left-color: var(--color-turquoise);
}

.hero,
.section,
.cta-banner,
.cards-grid,
.feature-grid,
.pricing-grid,
.case-grid {
  width: 100%;
}

.hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.68) 55%, rgba(0,0,0,0.65) 100%),
              var(--page-hero-img, url('https://kurzmann.at/wp-content/uploads/hero-pattern.svg')) center/cover no-repeat;
  color: var(--color-white);
  padding: 5.5rem 0 4rem;
  overflow-x: clip;
}

.hero .theme-container {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 770px;
  margin: 1.5rem 0 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}

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

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.7rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background-color var(--transition), color var(--transition);
  font-weight: 700;
  border: 1px solid transparent;
  /* Verhindert Text-Overflow in schmalen Containern */
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  word-break: break-word;
}

.btn {
  background: var(--color-turquoise);
  color: var(--color-black);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  background: #2aa8c8;
}

.btn-secondary {
  border-color: var(--color-black);
  color: var(--color-black);
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(0,0,0,0.05);
}

.partner-bar {
  background: var(--color-grey-100);
  border-top: 1px solid var(--color-grey-300);
  padding: 1rem 0;
  overflow-x: clip;
}

.partner-bar p {
  margin: 0;
  color: var(--color-grey-800);
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  font-size: 0.95rem;
  font-weight: 600;
}

.cards-grid,
.feature-grid,
.pricing-grid,
.service-grid {
  display: grid;
  gap: 1.25rem;
}

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

.card,
.pricing-card,
.feature-card,
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.card h3,
.pricing-card h3,
.feature-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.card p,
.pricing-card p,
.feature-card p {
  margin: 0;
  color: var(--color-grey-800);
}

.feature-card p {
  grid-column: 2;
}

.card a,
.pricing-card a,
.feature-card a {
  margin-top: 1rem;
  display: inline-flex;
  font-weight: 700;
  color: var(--color-black);
}

.card a:hover,
.pricing-card a:hover,
.feature-card a:hover {
  color: var(--color-turquoise);
}

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

.feature-card {
  padding: 2rem 1.5rem;
  /* Icon-neben-Überschrift via CSS Grid */
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 0.9rem;
  align-items: start;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  background: rgba(55, 187, 221, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-turquoise);
  fill: none;
  flex-shrink: 0;
}

.section-title {
  max-width: 680px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.8rem;
}

.section-title p {
  color: var(--color-grey-800);
  line-height: 1.8;
}

.pricing-grid {
  /* grid-template-columns wird weiter unten per auto-fit/minmax gesetzt */
  padding-top: 1.25rem;
}

.pricing-card {
  position: relative;
  /* overflow: visible statt hidden – sonst wird der Badge abgeschnitten */
  overflow: visible;
}

.pricing-card.recommended {
  border-color: var(--color-turquoise);
  box-shadow: 0 18px 55px rgba(55,187,221,0.18);
}

.pricing-card .badge {
  display: inline-flex;
  background: var(--color-turquoise);
  color: var(--color-black);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.25rem;
}

.pricing-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 1rem 0;
}

.pricing-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
}

.pricing-card li {
  margin-bottom: 0.75rem;
}

.cta-banner {
  padding: 3rem 0;
  background: linear-gradient(120deg, var(--color-turquoise), var(--color-black));
  color: #fff;
  margin: 3rem 0;
  border-radius: var(--radius);
  overflow-x: clip;
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.cta-banner p {
  margin: 0.8rem 0 0;
  max-width: 580px;
}

.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.92);
  padding: 3rem 0 2rem;
  overflow-x: clip;
}

.site-footer a {
  color: rgba(255,255,255,0.92);
}

.site-footer a:hover {
  color: var(--color-turquoise);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: white;
}

.footer-nav,
.footer-info,
.footer-contact {
  line-height: 1.8;
}

.footer-nav ul,
.footer-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-info li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-grid,
  .feature-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .header-inner {
    gap: 0.8rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-navigation .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }

  .main-navigation .sub-menu a {
    padding: 0.45rem 0;
  }
}

/* =========================================================
   NAVIGATION ERWEITERT
   ========================================================= */

.nav-menu > .menu-cta {
  margin-left: 0.35rem;
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--color-turquoise);
  color: var(--color-black);
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
}

.btn-nav:hover {
  background: #2aa8c8;
  color: var(--color-black);
  transform: none;
}

/* Header scrolled state */
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-turquoise);
  color: var(--color-black);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

/* Burger-Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: var(--color-grey-100);
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease, width 220ms ease;
  transform-origin: center;
}

/* Overlay – Hintergrund-Dimmer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  justify-content: flex-end;
}

/* Panel – dunkles Design für klaren Kontrast */
.mobile-nav-inner {
  background: #0f0f0f;
  width: min(340px, 92vw);
  height: 100%;
  height: 100dvh; /* Dynamic viewport height – verhindert iOS-Safari-Scroll-Bug */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -6px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.is-open .mobile-nav-inner {
  transform: translateX(0);
}

/* Close-Button */
.mobile-nav-close {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

/* Logo im Panel (jetzt im Header-Row, daher ausgeblendet) */
.mobile-nav-logo {
  display: none;
}

.mobile-nav-logo .site-logo {
  font-size: 1.05rem;
  color: var(--color-white);
}

.mobile-nav-logo .site-logo .logo-icon {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-turquoise);
}

.mobile-nav-logo .site-logo .logo-name {
  color: var(--color-white);
}

.mobile-nav-logo .site-logo .logo-tagline {
  color: rgba(255, 255, 255, 0.55);
}

/* Menü-Liste */
.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mobile-nav-menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-menu > li:last-child {
  border-bottom: none;
  padding-top: 1rem;
}

/* Direkte Links (ohne Submenu) */
.mobile-nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0.875rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  min-height: 48px;
  transition: color var(--transition);
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu > li > a:focus-visible {
  color: var(--color-turquoise);
}

/* Submenu-Toggle-Button */
.mobile-submenu-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 48px;
  transition: color var(--transition);
  text-align: left;
}

.mobile-submenu-toggle:hover,
.mobile-submenu-toggle:focus-visible {
  color: var(--color-turquoise);
}

.mobile-submenu-toggle svg {
  flex-shrink: 0;
  transition: transform 220ms ease;
  opacity: 0.7;
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
  opacity: 1;
}

.mobile-submenu-toggle[aria-expanded="true"] {
  color: var(--color-turquoise);
}

/* Submenu-Liste */
.mobile-sub-menu {
  list-style: none;
  padding: 0 0 0.75rem 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}

.mobile-sub-menu.is-open {
  max-height: 400px;
}

.mobile-sub-menu li a {
  display: block;
  padding: 0.625rem 0 0.625rem 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition), border-color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-sub-menu li a:hover,
.mobile-sub-menu li a:focus-visible {
  color: var(--color-turquoise);
  border-left-color: var(--color-turquoise);
}

/* Kontakt-Bereich unten */
.mobile-nav-contact {
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-contact a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.mobile-nav-contact a:hover,
.mobile-nav-contact a:focus-visible {
  color: var(--color-turquoise);
}

/* Body-Scroll sperren wenn Menü offen */
body.menu-open {
  overflow: hidden;
  /* Verhindert Layout-Shift durch Scrollbar-Verschwinden */
  padding-right: var(--scrollbar-width, 0px);
}

/* Desktop: Mobile-Elemente ausblenden + Grid-Layout für Header */
@media (min-width: 1101px) {
  .mobile-menu-toggle { display: none !important; }
  .mobile-nav-overlay { display: none !important; }

  /* 4-Spalten-Grid: Logo | Nav | Kontakt-Button | Dark-Toggle */
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
  }

  /* Nav füllt die mittlere Spalte und zentriert sich darin */
  .main-navigation {
    position: static;
    left: auto;
    transform: none;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    overflow: visible;
  }

  .header-nav-cta {
    margin-left: 0;
  }
}

/* Mobile: Desktop-Nav ausblenden, Logo links / Burger rechts */
@media (max-width: 1100px) {
  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .main-navigation { display: none !important; }
  .mobile-menu-toggle { display: flex; margin-left: auto; }
}

/* Burger → X wenn Menü offen */
body.menu-open .mobile-menu-toggle .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .mobile-menu-toggle .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   SCROLL ANIMATIONEN
   ========================================================= */

.anim-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   SEKTIONEN ALLGEMEIN
   ========================================================= */

.section {
  padding: 4rem 0;
  /* Verhindert horizontales Überlaufen von Animationselementen (translateX)
     auf Abschnittsebene – sicherer Fallback falls html/body clip nicht greift */
  overflow-x: clip;
}

.section--grey {
  background: var(--color-grey-100);
}

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

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--color-white);
}

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

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0c7a9c; /* 5.17:1 auf Weiß – war var(--color-turquoise) = 2.28:1 */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-grey-800);
  max-width: 620px;
}

/* =========================================================
   SERVICE CARDS
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* 3-spaltige Kachel-Grid – letzte Zeile zentriert
   Flexbox + justify-content:center zentriert unvollständige letzte Zeilen automatisch.
   Media Queries mit !important überschreiben die Breite zuverlässig auf allen Geräten. */
.card-grid-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.card-grid-3 > * {
  flex: 0 0 calc(33.333% - 0.84rem);
  width: calc(33.333% - 0.84rem);
  max-width: 100%;
  box-sizing: border-box;
}

/* Tablet Portrait + Landscape-Phones → 2 pro Zeile */
@media (max-width: 960px) {
  .card-grid-3 > * {
    flex: 0 0 calc(50% - 0.625rem) !important;
    width: calc(50% - 0.625rem) !important;
  }
}

/* Phones Portrait → 1 pro Zeile */
@media (max-width: 600px) {
  .card-grid-3 > * {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

/* =========================================================
   SERVICES SLIDER
   ========================================================= */

.services-slider-section {
  overflow: hidden;
}

.services-slider-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.services-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 0.5rem 0.25rem 1rem;
}

.services-slider::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-grey-300);
  background: var(--color-white);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  align-self: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.slider-btn:hover {
  border-color: var(--color-turquoise);
  background: var(--color-turquoise);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(55,187,221,0.3);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.slider-dot {
  /* Touch-Ziel 24×24 px (WCAG 2.5.8) – visueller Punkt über ::after */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slider-dot::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-grey-300);
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.is-active::after {
  background: var(--color-turquoise);
  transform: scale(1.3);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Slider: feste Breite, kein Schrumpfen */
  flex: 0 0 calc(33.333% - 0.84rem);
  scroll-snap-align: start;
  /* Icon-neben-Überschrift via CSS Grid – kein HTML-Umbau nötig */
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 0.9rem;
  align-items: start;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-turquoise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card:hover {
  border-color: var(--color-turquoise);
  box-shadow: 0 16px 48px rgba(55,187,221,0.13);
  transform: translateY(-5px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .card-icon {
  width: 44px;
  height: 44px;
  background: rgba(55, 187, 221, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .card-icon {
  background: rgba(55, 187, 221, 0.2);
  transform: scale(1.1);
}

.service-card .card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-turquoise);
  fill: none;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  /* Verhindert Überlauf in CSS-Grid-Zellen */
  min-width: 0;
  overflow-wrap: break-word;
}

.service-card p {
  font-size: 0.95rem;
  margin: 0 0 1rem;
  color: var(--color-grey-800);
  grid-column: 2;
  /* BUG FIX: CSS-Grid-Kinder haben kein implizites min-width:0 → Text läuft über */
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card .card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  grid-column: 2;
}

.service-card .card-link:hover {
  color: var(--color-turquoise);
}

.service-card .card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.service-card .card-link:hover::after {
  transform: translateX(3px);
}

/* =========================================================
   PRICING KARTEN ERWEITERT
   ========================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card.recommended {
  border-color: var(--color-turquoise);
  box-shadow: 0 18px 55px rgba(55,187,221,0.18);
}

.pricing-card .btn,
.pricing-card .btn-secondary {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

/* =========================================================
   PARTNER BADGES
   ========================================================= */

.partner-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.partner-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-white);
  border: 2px solid var(--color-grey-300);
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  font-weight: 700;
}

.partner-badge-large .badge-icon {
  width: 36px;
  height: 36px;
  background: var(--color-grey-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* =========================================================
   PARTNER LOGO ROW (mit echten Hersteller-Logos)
   ========================================================= */

.partner-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3rem;
  align-items: center;
  justify-content: center;
}

.partner-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.partner-logo-item img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.2s;
}

.partner-logo-item img:hover {
  filter: grayscale(0%);
}

.partner-logo-item .logo-caption {
  font-size: 0.72rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Logo-Leiste auf weißem Hintergrund (Startseite partner-bar) */
.partner-bar .partner-logo-row .partner-logo-item img {
  filter: grayscale(20%) opacity(0.85);
}

.partner-bar .partner-logo-row .partner-logo-item img:hover {
  filter: grayscale(0%) opacity(1);
}

/* Große Partner-Badge-Variante mit Logo */
.partner-badge-logo {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--surface-card);
  border: 1.5px solid var(--color-grey-300);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.partner-badge-logo img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-badge-logo .badge-text {
  flex: 1;
  min-width: 0;
}

.partner-badge-logo .badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.partner-badge-logo .badge-text span {
  font-size: 0.8rem;
  color: var(--color-grey);
}

/* =========================================================
   PARTNER TICKER (Über uns – endlos scrollende Logo-Leiste)
   ========================================================= */

.partner-ticker-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.partner-ticker-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b6b6b; /* #aaa = 2.1:1 auf #F4F4F4, #6b6b6b = 4.95:1 */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.partner-ticker-wrap {
  overflow: hidden;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partner-ticker-wrap:hover .partner-ticker-track {
  animation-play-state: paused;
}

.partner-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: partner-ticker 32s linear infinite;
}

@keyframes partner-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .partner-ticker-track { animation-duration: 18s; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-ticker-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    padding: 0 1rem;
  }
}

.partner-ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 180px;
  width: 180px;
  height: 52px;
  padding: 0.5rem 2rem;
  border-right: 1px solid var(--color-grey-300);
}

.partner-ticker-item:last-child {
  border-right: none;
}

.partner-ticker-item img {
  width: 120px;
  height: 36px !important;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.partner-ticker-item img:hover {
  opacity: 1;
}

.partner-ticker-track--lg .partner-ticker-item img {
  max-height: 52px;
  max-width: 160px;
  height: auto;
  width: auto;
}

.partner-ticker-track--lg .partner-ticker-item {
  padding: 0.5rem 3.5rem;
}

/* =========================================================
   PARTNER GRID (Startseite – strukturierter Partnerbereich)
   ========================================================= */

.partners-section {
  background: var(--color-grey-100);
  border-top: 1px solid var(--color-grey-200);
  border-bottom: 1px solid var(--color-grey-200);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.partner-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow var(--transition);
}

.partner-grid-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

/* Fester Logo-Slot: alle Logos bekommen exakt denselben Rahmen */
.partner-logo-slot {
  width: 130px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-slot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%) opacity(0.85);
  transition: filter 0.2s;
}

.partner-grid-item:hover .partner-logo-slot img {
  filter: grayscale(0%) opacity(1);
}

.partner-grid-caption {
  font-size: 0.7rem;
  color: #6b6b6b; /* #aaa = 2.1:1 auf #F4F4F4, #6b6b6b = 4.95:1 */
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.5;
}

.partners-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: #6b6b6b; /* Hintergrund #F4F4F4 → #6b6b6b = 4.95:1 */
  margin-top: 2rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .partner-grid-item {
    padding: 1.25rem 0.5rem;
  }

  .partner-logo-slot {
    width: 100px;
    height: 36px;
  }
}

/* =========================================================
   CTA BANNER VARIANTEN
   ========================================================= */

.cta-banner--dark {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin: 3rem 0;
}

.cta-banner--turquoise {
  background: var(--color-turquoise);
  color: var(--color-black);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin: 3rem 0;
}

.cta-banner--dark h2,
.cta-banner--dark p { color: var(--color-white); }

.cta-banner--turquoise h2,
.cta-banner--turquoise p { color: var(--color-black); }

/* =========================================================
   KONTAKTFORMULAR
   ========================================================= */

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-grey-800);
}

.form-group label .required {
  color: #e53e3e;
  margin-left: 2px;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(55,187,221,0.15);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--color-turquoise);
}

.form-checkbox label {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Honeypot – für Bots unsichtbar, für echte Nutzer nicht sichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}

.form-message--success {
  background: rgba(55,187,221,0.1);
  border: 1px solid var(--color-turquoise);
  color: #00796B;
}

.form-message--error {
  background: rgba(229,62,62,0.08);
  border: 1px solid #e53e3e;
  color: #c53030;
}

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

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-grey-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-turquoise);
}

.contact-info-text h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--color-grey-800);
}

.contact-info-text a,
.contact-info-text p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
}

/* Map */
#kurzmann-map,
.map-consent-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-grey-300);
}

.map-consent-wrapper {
  background: var(--color-grey-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.map-consent-wrapper p {
  max-width: 420px;
  font-size: 0.9rem;
  color: var(--color-grey-800);
}

@media (max-width: 768px) {
  .contact-form-wrapper,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   VERGLEICHS-TABELLE
   ========================================================= */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th {
  padding: 0.75rem 1rem;
  background: var(--color-black);
  color: var(--color-white);
  text-align: left;
  font-weight: 700;
}

.comparison-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
.comparison-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-grey-300);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background: var(--color-grey-100);
}

.check-yes { color: #00796B; font-weight: 700; }
.check-no  { color: #9e9e9e; }

/* =========================================================
   SCHRITTE / PROZESSE
   ========================================================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: steps;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-turquoise);
  color: var(--color-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.step-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-item p {
  font-size: 0.95rem;
  color: var(--color-grey-800);
}

/* Verbindungspfeile zwischen Schritten */
.steps-grid .step-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 28px;
  right: -1.2rem;
  font-size: 1.5rem;
  color: var(--color-grey-300);
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid .step-item::after {
    display: none;
  }
}

/* =========================================================
   CHECK-LISTE
   ========================================================= */

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  align-self: flex-start;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337bbdd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* SVG-Icon-Listen: span muss schrumpfen dürfen, sonst drückt Flex-Overflow
   den Icon auf eine eigene Zeile (betrifft alle Viewport-Breiten) */
li > div[style*="flex-wrap:nowrap"] > span {
  flex: 1;
  min-width: 0;
}

/* =========================================================
   AKTION BANNER (Geräte-Retter etc.)
   ========================================================= */

.action-banner {
  background: linear-gradient(135deg, var(--color-turquoise), #2196b3);
  color: var(--color-black);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  overflow-x: clip;
}

.action-banner .action-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.action-banner-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.action-banner-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* =========================================================
   FOOTER ERWEITERT
   ========================================================= */

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-logo.site-logo {
  gap: 1rem;
}

.footer-logo .logo-icon {
  width: 62px;
  height: 62px;
}

.footer-logo .logo-icon svg {
  width: 28px;
  height: 28px;
}

.footer-logo .logo-name {
  font-size: 1.9rem;
}

.footer-logo .logo-tagline {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.footer-slogan {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  margin: 0;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0;
}

.footer-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-style: normal;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.footer-partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-legal li {
  margin-bottom: 0.6rem;
}

.footer-nav a,
.footer-legal a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--color-turquoise);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

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

.footer-bottom-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-nav a:hover {
  color: var(--color-turquoise);
}

/* =========================================================
   HERO VARIANTEN
   ========================================================= */

/* LCP-Optimierung Startseite: Hero als <picture>/<img> statt CSS background */
.hero--home {
  position: relative;
  background: none;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero--home .theme-container {
  position: relative;
  z-index: 2;
}

.hero--page {
  background: linear-gradient(var(--hero-overlay, 135deg, rgba(0,0,0,0.85) 0%, rgba(26,26,26,0.80) 100%)),
              var(--page-hero-img, linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%)) center/cover no-repeat;
  padding: 4rem 0 3rem;
}

.hero--page h1 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.hero--compact {
  padding: 2.5rem 0 2rem;
}

.hero--compact h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-turquoise);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* =========================================================
   SPLIT IMAGE SEKTION (Bild + Text nebeneinander)
   ========================================================= */

.split-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-image-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  position: relative;
}

.split-image-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: inherit;
  transition: transform 0.6s ease;
}

.split-image-media:hover img {
  transform: scale(1.03);
}

.split-image-media .media-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--color-turquoise);
  color: var(--color-black);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  letter-spacing: 0.04em;
}

.split-image-content {
  padding: 0.5rem 0;
}

.split-image-content h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.15;
}

.split-image-content p {
  color: var(--color-grey-800);
  font-size: 1rem;
  line-height: 1.8;
  margin: 1rem 0 0;
}

/* Umgekehrte Variante: Bild rechts */
.split-image-grid--reverse .split-image-media {
  order: 2;
}
.split-image-grid--reverse .split-image-content {
  order: 1;
}

/* (doppelte check-list-Definition entfernt – wird oben definiert) */

/* Responsive Split-Grid */
@media (max-width: 900px) {
  .split-image-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-image-grid--reverse .split-image-media,
  .split-image-grid--reverse .split-image-content {
    order: unset;
  }
}

/* =========================================================
   BILD-HIGHLIGHT-REIHE (3 Bilder nebeneinander)
   ========================================================= */

.image-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.image-trio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.image-trio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-trio-item:hover img {
  transform: scale(1.05);
}

.image-trio-item .image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1.5rem 1rem 0.75rem;
}

@media (max-width: 768px) {
  .image-trio {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* BUG FIX: main.js fügt .is-visible hinzu, nicht .visible */
#back-to-top.is-visible,
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--color-turquoise);
  color: var(--color-black);
}

/* =========================================================
   DATENSCHUTZ & IMPRESSUM SEITEN
   ========================================================= */

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--color-grey-300);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* =========================================================
   PRINT STYLES
   ========================================================= */

@media print {
  .site-header,
  .site-footer,
  .mobile-menu-toggle,
  #back-to-top {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
  }
}

/* =========================================================
   AKTIONSBANNER BUTTONS
   ========================================================= */
.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition);
  max-width: 100%;
  word-break: break-word;
}

.banner-btn:hover,
.banner-btn:focus {
  opacity: 0.85;
}

.banner-btn--light {
  background: white;
  color: var(--color-black);
}

.banner-btn--dark {
  background: var(--color-black);
  color: white;
}

/* =========================================================
   FOCUS-VISIBLE – Keyboard-Navigation
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--color-turquoise);
  outline-offset: 3px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* =========================================================
   RESPONSIVE – Inline-Grid-Fallback (Mobile)
   Bricht alle 2- und 3-spaltigen inline-Grid-Layouts
   auf Mobilgeräten automatisch auf 1 Spalte um,
   ohne jede Template-Datei einzeln anfassen zu müssen.
   ========================================================= */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="repeat(2, 1fr)"],
  [style*="repeat(2,1fr)"],
  [style*="repeat(3, 1fr)"],
  [style*="repeat(3,1fr)"],
  [style*="repeat(4, 1fr)"],
  [style*="repeat(4,1fr)"],
  [style*="1fr minmax(0,320px)"],
  [style*="1fr minmax(0, 320px)"],
  [style*="1fr minmax(0,360px)"],
  [style*="1fr minmax(0, 360px)"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Sticky-Sidebars auf Mobile deaktivieren – fließen als normaler Block */
  [style*="position:sticky"],
  [style*="position: sticky"] {
    position: relative !important;
    top: auto !important;
  }

  /* Grid-Items: min-width:0 verhindert, dass Inhalte die Spalte aufsprengen.
     Ohne dies kann ein langer Text/Bild ein 1fr-Grid-Element breiter als den Viewport machen. */
  [style*="display:grid"] > *,
  [style*="display: grid"] > *,
  .feature-grid > *,
  .cards-grid > *,
  .service-grid > *,
  .pricing-grid > * {
    min-width: 0;
    overflow-wrap: break-word;
  }

  /* Vergleichstabellen: horizontales Scrollen erlauben */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Alle Tabellen die kein comparison-table sind */
  table:not(.comparison-table) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Breite CTA-Banner-Buttons auf Mobile */
  .cta-banner--dark .btn,
  .cta-banner--dark .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Aktionsbanner-Buttons */
  .action-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  /* Partner-Badge-Logos: kein Umbrechen, Logo bleibt neben Text */
  .partner-badge-logo {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  /* Hero-Trust-Icons umbrechen */
  .hero-trust {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  /* Section-Padding reduzieren */
  .section {
    padding: 2.5rem 0;
  }

  /* Hero-Padding reduzieren */
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero--page {
    padding: 2.5rem 0 2rem;
    background-size: cover !important;
    background-position: center center !important;
    background-color: #111;
  }

  .footer-bottom-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Banner-Buttons Vollbreite */
  .action-banner > div {
    width: 100%;
  }

  .action-banner a {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* Tablets: 3- und 4-Spalten auf 2 reduzieren */
@media (min-width: 769px) and (max-width: 980px) {
  [style*="repeat(3, 1fr)"],
  [style*="repeat(3,1fr)"],
  [style*="repeat(4, 1fr)"],
  [style*="repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

/* Kleine Tablets / große Smartphones (481–768px): 4-Spalten auf 2 */
@media (min-width: 481px) and (max-width: 768px) {
  [style*="repeat(4, 1fr)"],
  [style*="repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* =========================================================
   MOBILE CONTENT OPTIMIERUNG
   Ziel: weniger überladen, ruhiger, besser lesbar.
   Desktop-Version bleibt unverändert.
   ========================================================= */

/* --- Typographie & Abstände --- */
@media (max-width: 768px) {

  /* Hero-Schrift kompakter */
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 0.875rem;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Section-Header kompakter */
  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-header h2,
  .section-header > h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.25;
  }

  .section-header p {
    font-size: 0.93rem;
    line-height: 1.65;
  }

  /* Eyebrow-Label kleiner */
  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  /* Fließtext in Content-Bereichen */
  p {
    line-height: 1.7;
  }

  /* --- Cards & Boxen --- */

  /* Service-Cards: kompakteres Padding auf Tablet */
  .service-card {
    padding: 1.25rem;
  }

  /* Pricing-Cards: etwas kompakter */
  .pricing-card {
    padding: 1.5rem 1.25rem;
  }

  /* Feature-Cards: padding reduzieren */
  .feature-card {
    padding: 1.25rem !important;
  }

  /* CTA-Banner: padding reduzieren */
  .cta-banner--dark {
    padding: 2rem 1.5rem !important;
  }

  /* Dark-Box im PAM-Bereich */
  [style*="background:var(--color-black)"],
  [style*="background: var(--color-black)"] {
    padding: 1.75rem 1.25rem !important;
  }

  /* --- Check-Listen --- */
  .check-list li {
    font-size: 0.9rem;
    padding: 0.3rem 0;
  }

  /* --- Partner-Logos --- */

  /* Partner-Badge-Row: zentriert umbrechen */
  .partner-badges-row {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .partner-badge-large {
    flex: 0 0 auto;
    min-width: 0;
  }

  /* Partner-Logo-Row im Header/Sections */
  .partner-logo-row {
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
  }

  .partner-logo-item img {
    max-height: 32px;
    width: auto;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-tagline {
    font-size: 0.875rem;
  }

  .footer-partner-badges {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* --- Buttons global --- */
  .btn,
  .btn-secondary {
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
  }

  /* --- Inline-Styles mit max-width auf Mobile aufheben --- */
  /* Verhindert, dass Desktop max-width-Werte Texte auf Mobile einengen */
  [style*="max-width:700px"],
  [style*="max-width: 700px"],
  [style*="max-width:740px"],
  [style*="max-width: 740px"],
  [style*="max-width:560px"],
  [style*="max-width: 560px"],
  [style*="max-width:580px"],
  [style*="max-width: 580px"] {
    max-width: 100% !important;
  }

  /* --- Service-Abdeckung / Zentral-Text-Sektionen --- */
  [style*="text-align:center"][style*="max-width"],
  [style*="text-align: center"][style*="max-width"] {
    max-width: 100% !important;
    padding: 0 0.25rem;
  }
}

/* Extra-Small: Sehr kleine Smartphones (< 380px) */
@media (max-width: 380px) {
  .theme-container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .btn, .btn-secondary {
    font-size: 0.85rem;
    padding: 0.65rem 1.1rem;
  }

  /* Service-Cards: kompakteres Padding auf Mobil */
  .service-card {
    padding: 1rem;
  }
}

/* =========================================================
   SERVICE SLIDER – RESPONSIVE BREAKPOINTS
   ≥1024px:  3 Karten (Default in .service-card Basisregel)
   640–1023px: 2 Karten (Phone Landscape, Tablet Portrait)
   <640px:   1 Karte  (Phone Portrait)
   ========================================================= */

/* Phone Landscape + Tablet Portrait (bis 1023px): 2 Karten */
@media (max-width: 1023px) {
  .services-slider .service-card {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

/* Phone Portrait (bis 639px): 1 Karte, Pfeile ausblenden */
@media (max-width: 639px) {
  .services-slider .service-card {
    flex: 0 0 100%;
  }
  .slider-btn {
    display: none;
  }
}

/* =========================================================
   PROCESS STEPS GRID
   3 Schritte nebeneinander; bei 2 Spalten wird der 3. zentriert.
   ========================================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 980px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  .process-steps > :last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  /* Hero-Trust-Badges: 2-spaltig statt 1-spaltig für bessere Raumnutzung */
  .hero-trust {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }

  /* Auf Mobile: span als Block-Grid-Item statt Flex-Container –
     verhindert Flex-in-Grid-Konflikte auf Mobile-Browsern */
  .hero-trust span {
    display: block !important;
    font-size: 0.82rem;
  }

  /* SVG inline mit Oberkante ausrichten */
  .hero-trust span > svg {
    display: inline !important;
    vertical-align: top !important;
    margin-top: 1px !important;
    margin-right: 0.35rem !important;
    width: 16px !important;
    height: 16px !important;
  }

  /* Lange Inline-Listen auf Mobile umbrechen */
  .check-list {
    padding-left: 0;
  }

  /* Icon-Text-Zeilen: SVG-Icons bleiben immer links neben dem Text */
  .check-list li {
    flex-wrap: nowrap !important;
  }
  .check-list li::before {
    flex-shrink: 0 !important;
    align-self: flex-start !important;
  }

  /* Sehr langer Intro-Text in Hero: kompakter  */
  .hero-content > p {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 100% !important;
  }

  /* Section-Abstände zwischen Eyebrow und Headline verringern */
  .eyebrow {
    margin-bottom: 0.35rem;
    display: block;
  }

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

/* =========================================================
   SCROLL-REVEAL ANIMATIONS
   Add data-reveal="up|left|right|scale" to any element.
   JS adds .revealed when element enters viewport.
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

[data-reveal="up"] {
  transform: translateY(40px);
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="scale"] {
  transform: scale(0.88);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Auf Mobile: horizontale Animationen deaktivieren (nur Fade), damit kein
   translateX-Overflow entstehen kann, der die Seite seitlich verbreitert */
@media (max-width: 980px) {
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(20px);
  }
}

/* =========================================================
   ACCORDION
   ========================================================= */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion-item {
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-white);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
}

.accordion-trigger:hover {
  background: var(--color-grey-100);
}

.accordion-trigger::after {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--color-turquoise);
  border-bottom: 2px solid var(--color-turquoise);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.accordion-item.is-open .accordion-trigger::after {
  transform: rotate(-135deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 0 1.4rem 1.25rem;
  color: var(--color-grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================================
   TAB SWITCHER
   ========================================================= */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-grey-300);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

[data-tab] {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-grey);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}

[data-tab]:hover {
  color: var(--color-black);
}

[data-tab].is-active {
  color: var(--color-turquoise);
  border-bottom-color: var(--color-turquoise);
}

[data-tab-panel] {
  display: none;
}

[data-tab-panel].is-active {
  display: block;
}

/* =========================================================
   STATS ROW (animated counters)
   ========================================================= */
.stats-section {
  padding: 2.5rem 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-grey-300);
  border-top: 3px solid #37bbdd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  gap: 0.5rem;
}

.stat-number {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #0c7a9c;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-grey);
  line-height: 1.35;
}

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

@media (max-width: 480px) {
  .stats-row { gap: 0.75rem; }
  .stat-item { padding: 1.5rem 1rem 1.25rem; }
}

html.dark-mode .stat-item {
  background: #26263a;
  border-color: #383850;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
html.dark-mode .stat-number { color: #37bbdd; }
html.dark-mode .stat-label  { color: #a8a8be; }

/* =========================================================
   STICKY CTA BAR
   ========================================================= */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-black);
  color: white;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  flex-wrap: wrap;
}

#sticky-cta.is-visible {
  transform: translateY(0);
}

#sticky-cta p {
  margin: 0;
  font-size: 0.95rem;
}

#sticky-cta .sticky-cta-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

#sticky-cta-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.25rem;
}

/* =========================================================
   BACK-TO-TOP BUTTON
   ========================================================= */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-black);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

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

/* =========================================================
   HERO VARIANTS
   ========================================================= */
.hero--compact {
  min-height: 340px;
  padding: 6rem 0 3rem;
}

.hero--compact .hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

/* =========================================================
   ACTION BANNER (top of page urgency strip)
   ========================================================= */
.action-banner {
  background: var(--color-turquoise);
  color: var(--color-black);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  flex-wrap: wrap;
  text-align: center;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-black);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}

.banner-btn:hover {
  background: #222;
}

.banner-btn--outline {
  background: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

.banner-btn--outline:hover {
  background: rgba(0,0,0,0.08);
}

/* =========================================================
   SPLIT IMAGE GRID (text + image side by side)
   ========================================================= */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-grid--reverse .split-grid-image {
  order: -1;
}

.split-grid-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-grid--reverse .split-grid-image {
    order: 0;
  }
}

/* =========================================================
   CTA BANNER DARK
   ========================================================= */
.cta-banner--dark {
  background: var(--color-black);
}

/* =========================================================
   CHECK LIST (styled list items with turquoise checkmarks)
   ========================================================= */

/* =========================================================
   FADE-IN (legacy class support)
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   PROCESS STEPS (numbered vertical list)
   ========================================================= */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.2rem;
  bottom: 2.2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-turquoise), transparent);
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.process-step-num {
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  border-radius: 50%;
  background: var(--color-turquoise);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step-body strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.process-step-body p {
  margin: 0;
  color: var(--color-grey);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =========================================================
   HIGHLIGHT BOX (Geräte-Retter-Prämie etc.)
   ========================================================= */
.highlight-box {
  background: rgba(55,187,221,0.08);
  border: 1px solid rgba(55,187,221,0.3);
  border-left: 4px solid var(--color-turquoise);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--color-black);
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--color-grey);
  font-size: 0.95rem;
}

/* =========================================================
   MOBILE OVERFLOW GUARD – Catch-all
   Verhindert, dass einzelne Elemente die Viewport-Breite
   sprengen und horizontales Scrollen / Clipping verursachen.
   ========================================================= */
@media (max-width: 980px) {
  /* Alle direkten Kinder des theme-containers: kein Überlauf */
  .theme-container > * {
    max-width: 100%;
    min-width: 0;
  }

  /* Inline-gestylte Flex-Container: Wrapping erzwingen */
  [style*="display:flex"],
  [style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  /* Stellen-Karten: Button unterhalb des Textes auf Mobile */
  .job-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .job-card a[style*="white-space:nowrap"],
  .job-card a[style*="white-space: nowrap"] {
    white-space: normal !important;
    flex-shrink: 1 !important;
    align-self: flex-start;
  }

  /* Inhalte in Karten: Überlauf mit Wortumbruch auffangen */
  .service-card,
  .feature-card,
  .pricing-card,
  .card {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* =========================================================
   GOOGLE REVIEWS CAROUSEL
   ========================================================= */

.reviews-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviews-track-outer {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

.reviews-track-outer::-webkit-scrollbar { display: none; }
.reviews-track-outer { scrollbar-width: none; }

.reviews-track {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.review-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--color-white);
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: 0 8px 32px rgba(55,187,221,0.1);
}

.review-stars {
  color: #FBBC04;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.review-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-text {
  font-size: 1.05rem;
  color: var(--color-grey-800);
  line-height: 1.65;
  margin: 0;
}

.review-text--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-grey-300);
  margin-top: auto;
}

.review-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--color-turquoise);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.review-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-grey-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #999;
}

/* Carousel navigation buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-grey-300);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-800);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), opacity var(--transition);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-turquoise);
  border-color: var(--color-turquoise);
  color: var(--color-black);
  transform: scale(1.06);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Dots – Touch-Ziel mind. 44×44px, visueller Punkt via ::after */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 1.75rem;
}

.carousel-dot {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-dot::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-grey-300);
  flex-shrink: 0;
  transition: background var(--transition), width var(--transition), border-radius var(--transition);
}

.carousel-dot.is-active::after {
  background: var(--color-turquoise);
  width: 22px;
  border-radius: 4px;
}

/* Google rating badge */
.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-white);
  border: 1px solid var(--color-grey-300);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.google-rating-stars {
  color: #FBBC04;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.google-rating-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-grey-800);
}

/* No-text review cards (4-star, no review body) */
.review-card--no-text {
  background: #f6f7f8;
}
.review-card--no-text:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.review-no-text-hint {
  font-style: italic;
  color: #bbb;
  font-size: 0.85rem;
}

/* Long review text: expand button override */
.review-text--clamp.review-text--expanded {
  display: block;
  overflow: visible;
}
.review-expand-btn {
  background: none;
  border: none;
  color: #767676; /* min. 4.54:1 auf Weiß – WCAG AA */
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  text-align: left;
  margin-top: -0.1rem;
  letter-spacing: 0;
  line-height: 1.5;
}
.review-expand-btn:hover {
  color: #555;
  text-decoration: underline;
}

/* Social links in footer */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer-social-link:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }

  .reviews-outer {
    gap: 0;
  }


  .review-card {
    padding: 1.35rem;
  }
}

/* ===================================================
   IN-PAGE NAV (IT-Fachhandel & ähnliche Seiten)
   =================================================== */

.inpage-nav {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-200);
}

.inpage-nav-inner {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.inpage-nav-inner::-webkit-scrollbar { display: none; }

.inpage-nav a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-grey-600);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.inpage-nav a:hover,
.inpage-nav a.is-active {
  color: var(--color-turquoise);
  border-bottom-color: var(--color-turquoise);
}

.fachhandel-section {
  scroll-margin-top: 120px;
}

@keyframes section-highlight {
  0%   { box-shadow: inset 0 4px 0 var(--color-turquoise); }
  100% { box-shadow: none; }
}

.fachhandel-section:target {
  animation: section-highlight 1.4s ease forwards;
}

@media (max-width: 600px) {
  .inpage-nav a {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }
}

/* ===================================================
   HERSTELLERLÖSUNGEN
   =================================================== */

.channext-banner-wrap,
.channext-widget-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.channext-fallback {
  color: var(--color-grey-600);
  font-size: 0.95rem;
  padding: 2rem;
  background: var(--color-grey-100);
  border-radius: var(--radius);
  text-align: center;
}

.hersteller-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .hersteller-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hersteller-grid {
    grid-template-columns: 1fr;
  }
}

.hersteller-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.hersteller-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  border-color: var(--color-turquoise);
  transform: translateY(-2px);
}

.hersteller-card--static {
  cursor: default;
}

.hersteller-card--static:hover {
  box-shadow: none;
  border-color: var(--color-grey-200);
  transform: none;
}

.hersteller-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-100);
  border-radius: 10px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.hersteller-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-turquoise);
  fill: none;
}

.hersteller-card-logo {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hersteller-card-logo img {
  max-width: 130px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hersteller-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--color-grey-900);
  text-align: center;
}

.hersteller-card p {
  font-size: 0.9rem;
  color: var(--color-grey-700);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.hersteller-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-turquoise);
}

.hersteller-card:hover .hersteller-card-link {
  text-decoration: underline;
}

/* =========================================================
   COOKIE CONSENT BANNER + PANEL
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #1c1c1e;
  color: #e5e5e7;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.35);
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Erste Ebene: Text + Buttons in einer Reihe */
.cookie-banner__first {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: min(260px, 100%);
}
.cookie-banner__text strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.cookie-banner__text p {
  margin: 0;
  font-size: 0.875rem;
  color: #b0b0b8;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--color-turquoise);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.cookie-btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cookie-btn--primary {
  background: var(--color-turquoise);
  color: #000000;
}
.cookie-btn--primary:hover,
.cookie-btn--primary:focus {
  background: #2fa8c7;
  color: #000000;
}
.cookie-btn--secondary {
  background: transparent;
  color: #b0b0b8;
  border: 1.5px solid #555;
}
.cookie-btn--secondary:hover,
.cookie-btn--secondary:focus {
  border-color: #888;
  color: #e5e5e7;
}

/* Zweite Ebene: Einstellungsmenü */
.cookie-panel {
  width: 100%;
  border-top: 1px solid #3a3a3e;
  padding-top: 1rem;
  margin-top: 1rem;
}
.cookie-panel[hidden] { display: none; }

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cookie-category {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-category__label {
  flex: 1;
  cursor: pointer;
}
.cookie-category__name {
  display: block;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.875rem;
}
.cookie-category__desc {
  display: block;
  font-size: 0.775rem;
  color: #9898a6;
  margin-top: 0.2rem;
  line-height: 1.4;
}
.cookie-category__badge {
  font-size: 0.75rem;
  color: var(--color-turquoise);
  font-weight: 600;
  white-space: nowrap;
}

/* Toggle-Schalter */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: #555;
  border-radius: 13px;
  transition: background 0.2s;
}
.cookie-toggle__track::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle__track { background: var(--color-turquoise); }
.cookie-toggle input:checked + .cookie-toggle__track::before { transform: translateX(18px); }
.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--color-turquoise);
  outline-offset: 2px;
}

.cookie-panel__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

/* =========================================================
   CONSENT-BLOCK (blockierte Widgets ohne Marketing-Consent)
   ========================================================= */
.consent-block {
  padding: 2.5rem 1.5rem;
  background: var(--color-grey-100);
  border: 2px dashed var(--color-grey-300);
  border-radius: var(--radius);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.consent-block p {
  color: var(--color-grey);
  font-size: 0.9rem;
  margin: 0;
  max-width: 520px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .cookie-banner { padding: 1rem; }
  .cookie-banner__text p { font-size: 0.8rem; }
  .cookie-banner__first {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cookie-banner__actions {
    width: 100%;
    gap: 0.5rem;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
  }
  .cookie-panel__actions { flex-direction: column; }
  .cookie-panel__actions .cookie-btn { flex: none; width: 100%; }
}

/* =========================================================
   BENEFITS GRID (Karriere)
   ========================================================= */

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 1.5rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  flex: 0 0 calc(25% - 1.125rem);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.benefit-item:hover .benefit-icon {
  background: #e6f7fb;
}

.benefit-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-grey-900);
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .benefits-grid {
    gap: 1.25rem 1rem;
  }
  .benefit-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

/* =========================================================
   INNSBRUCK SECTION (Karriere)
   ========================================================= */

.innsbruck-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.innsbruck-text .eyebrow {
  margin-bottom: 0.75rem;
}

.innsbruck-text h2 {
  margin-bottom: 1rem;
}

.innsbruck-text p {
  color: var(--color-grey-600);
  line-height: 1.7;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .innsbruck-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .comparison-table-section { display: none; }
}

/* ==========================================================
   DARK MODE — via OS-Erkennung und manuellem Toggle
   Klasse html.dark-mode wird per JS gesetzt (siehe main.js)
   ========================================================== */

html.dark-mode {
  --color-grey-800: #e8e8ec;
  --color-grey-100: #2a2a34;
  --color-grey-300: #2e2e36;
  --color-grey:     #9898a6;
  --surface-card:   #1a1a1e;
}

html.dark-mode body {
  background: #0f0f11;
  color: #e8e8ec;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 { color: #f0f0f4; }

html.dark-mode a { color: #f0f0f4; }

html.dark-mode .site-header {
  background: rgba(15,15,17,0.97);
  border-bottom-color: #2e2e36;
}

html.dark-mode .site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

html.dark-mode .site-header .logo-name { color: #f0f0f4; }
html.dark-mode .site-header .site-logo .logo-icon { border-color: rgba(255,255,255,0.65); }
html.dark-mode .burger-line { background: #f0f0f4; }
html.dark-mode .mobile-menu-toggle:hover { background: #22222a; }

html.dark-mode .main-navigation .sub-menu {
  background: #1a1a1e;
  border-color: #2e2e36;
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

html.dark-mode .main-navigation .sub-menu a { color: #e8e8ec; }
html.dark-mode .main-navigation .sub-menu a:hover { background: #22222a; }

html.dark-mode .inpage-nav { background: #0f0f11; border-bottom-color: #2e2e36; }
html.dark-mode .inpage-nav a { color: #9898a6; }

html.dark-mode .section--grey { background: #2a2a34; }
html.dark-mode .partner-ticker-section { background: #2a2a34; }
html.dark-mode .section-header p { color: #e8e8ec; }

html.dark-mode .card,
html.dark-mode .pricing-card,
html.dark-mode .feature-card,
html.dark-mode .contact-card,
html.dark-mode .service-card,
html.dark-mode .review-card,
html.dark-mode .accordion-item,
html.dark-mode .hersteller-card,
html.dark-mode .partner-badge,
html.dark-mode .partner-badge-large,
html.dark-mode .partner-grid-item,
html.dark-mode .google-rating-badge {
  background: #1a1a1e;
  border-color: #2e2e36;
}

html.dark-mode .hersteller-card { background: #22222a; }

html.dark-mode .card p,
html.dark-mode .service-card p,
html.dark-mode .review-text { color: #e8e8ec; }

html.dark-mode .service-card .card-link { color: #ffffff; }

html.dark-mode .partner-bar,
html.dark-mode .partners-section { background: #22222a; border-color: #2e2e36; }
html.dark-mode .partner-bar p { color: #e8e8ec; }
html.dark-mode .partner-badge-logo { background: #ffffff; border-color: #d0d0da; }
html.dark-mode .partner-badge-logo .badge-text strong { color: #1a1a22; }
html.dark-mode .partner-badge-logo .badge-text span { color: #555566; }
/* Darkmode: .btn als <a> erbt html.dark-mode a { color:#f0f0f4 } → weiß auf Türkis = 1.98:1 */
html.dark-mode .btn { color: var(--color-black); }
/* Darkmode: Header-Tagline #0c7a9c auf #0f0f11 = 4.08:1 < 4.5:1 */
html.dark-mode .site-header .site-logo .logo-tagline { color: var(--color-turquoise); }
/* Darkmode: partners-disclaimer #6b6b6b auf #2a2a34 = 2.73:1 */
html.dark-mode .partners-disclaimer { color: var(--color-grey); }
/* Darkmode: section-header eyebrow #0c7a9c auf #0f0f11/#2a2a34 = 2.8–4.1:1 → turquoise = 7–9:1 */
html.dark-mode .section-header .eyebrow { color: var(--color-turquoise); }
/* CTA-Banner-Eyebrows bleiben immer turquoise (dunkler Hintergrund) */
.cta-banner--dark .eyebrow { color: var(--color-turquoise); }
/* Darkmode: review-expand-btn #767676 auf #1a1a1e = 4.24:1 < 4.5:1 */
html.dark-mode .review-expand-btn { color: var(--color-grey); }
html.dark-mode .partner-badge-large .badge-icon { background: #22222a; }
html.dark-mode .partner-ticker-item {
  border-right-color: transparent;
  position: relative;
}
html.dark-mode .partner-ticker-item::before {
  content: '';
  position: absolute;
  inset: 4px 10px;
  background: rgba(255,255,255,0.93);
  border-radius: 8px;
  z-index: 0;
}
html.dark-mode .partner-ticker-item img {
  position: relative;
  z-index: 1;
  filter: none;
  opacity: 0.9;
}

html.dark-mode .partner-logo-slot img,
html.dark-mode .partner-logo-item img,
html.dark-mode .hersteller-card-logo img {
  filter: brightness(1.35) opacity(0.8);
}

html.dark-mode .accordion-trigger { color: #f0f0f4; }
html.dark-mode .accordion-trigger:hover { background: #22222a; }
html.dark-mode .accordion-panel-inner { color: #9898a6; }

html.dark-mode .form-control {
  background: #1a1a1e;
  border-color: #2e2e36;
  color: #e8e8ec;
}
html.dark-mode .form-control::placeholder { color: #9898a6; }
html.dark-mode .form-group label { color: #e8e8ec; }
html.dark-mode select.form-control { color-scheme: dark; }

html.dark-mode .contact-info-icon { background: #22222a; }
html.dark-mode .contact-info-text h4 { color: #9898a6; }
html.dark-mode .contact-info-text a,
html.dark-mode .contact-info-text p { color: #f0f0f4; }
html.dark-mode .map-consent-wrapper { background: #22222a; border-color: #2e2e36; }
html.dark-mode .map-consent-wrapper p { color: #9898a6; }

html.dark-mode .comparison-table tbody tr { border-bottom-color: #2e2e36 !important; }
html.dark-mode .comparison-table tbody td { color: #e8e8ec !important; }

html.dark-mode .tab-nav { border-bottom-color: #2e2e36; }
html.dark-mode [data-tab] { color: #9898a6; }
html.dark-mode [data-tab]:hover { color: #f0f0f4; }

html.dark-mode .slider-btn,
html.dark-mode .carousel-btn {
  background: #1a1a1e;
  border-color: #2e2e36;
  color: #e8e8ec;
}
html.dark-mode .slider-dot,
html.dark-mode .carousel-dot { background: #2e2e36; }

html.dark-mode .highlight-box {
  background: rgba(55,187,221,0.06);
  border-color: rgba(55,187,221,0.2);
}
html.dark-mode .highlight-box h3 { color: #f0f0f4; }
html.dark-mode .highlight-box p { color: #9898a6; }

html.dark-mode .process-step-body p,
html.dark-mode .step-item p { color: #9898a6; }
html.dark-mode .review-author { border-top-color: #2e2e36; }
html.dark-mode .review-name { color: #e8e8ec; }
html.dark-mode .hersteller-card h3 { color: #f0f0f4; }
html.dark-mode .hersteller-card p { color: #9898a6; }
html.dark-mode .hersteller-card-icon { background: #22222a; }
html.dark-mode .benefit-icon { background: #22222a; }
html.dark-mode .benefit-item h3 { color: #f0f0f4; }
html.dark-mode .channext-fallback { background: #22222a; color: #9898a6; }
html.dark-mode .legal-content h2 { border-bottom-color: #2e2e36; }

html.dark-mode .btn-secondary { border-color: var(--color-turquoise); color: var(--color-turquoise); }
html.dark-mode .btn-secondary:hover,
html.dark-mode .btn-secondary:focus { background: rgba(55,187,221,0.1); }

html.dark-mode .section--dark .btn-secondary,
html.dark-mode .cta-banner--dark .btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

html.dark-mode .section--dark .btn-secondary:hover,
html.dark-mode .cta-banner--dark .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

html.dark-mode .section--dark p,
html.dark-mode .section--dark h2,
html.dark-mode .section--dark h3,
html.dark-mode .cta-banner--dark p,
html.dark-mode .cta-banner--dark h2 {
  color: #ffffff;
}

/* =========================================================
   DARK MODE TOGGLE BUTTON
   ========================================================= */
.darkmode-toggle {
  background: none;
  border: 1px solid var(--color-grey-300);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-black);
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.darkmode-toggle:hover { background: var(--color-grey-100); }
.darkmode-toggle .icon-sun { display: none; }
.darkmode-toggle .icon-moon { display: block; }

html.dark-mode .darkmode-toggle { color: #f0f0f4; border-color: #2e2e36; }
html.dark-mode .darkmode-toggle:hover { background: #22222a; }
html.dark-mode .darkmode-toggle .icon-sun { display: block; }
html.dark-mode .darkmode-toggle .icon-moon { display: none; }

/* Mobile: Toggle aus Header ausblenden — erscheint stattdessen in der Mobile-Nav */
@media (max-width: 980px) {
  .site-header .darkmode-toggle { display: none; }
}

/* Mobile-Nav: Toggle-Button im Nav-Overlay */
.mobile-nav-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mobile-nav-inner .darkmode-toggle {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}
.mobile-nav-inner .darkmode-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}
.mobile-nav-header .mobile-nav-close {
  justify-self: end;
}
.mobile-nav-header-logo {
  justify-self: center;
  color: var(--color-white);
  font-size: 1rem;
}
.mobile-nav-header-logo .logo-icon {
  border-color: rgba(255,255,255,0.5);
  color: var(--color-turquoise);
}
.mobile-nav-header-logo .logo-name { color: var(--color-white); }
.mobile-nav-header-logo .logo-tagline { color: rgba(255,255,255,0.55); }

/* Hero-Trust: Icon oben ausrichten wenn Text umbricht */
.hero-trust span {
  align-items: flex-start !important;
}
.hero-trust span > svg {
  margin-top: 2px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Managed-Services-Paket: Sidebar-Karte und Content-Bereich */
.paket-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 769px) {
  .paket-layout {
    grid-template-columns: 1fr minmax(0,320px);
    gap: 3rem;
  }
  /* Desktop: Content links (Spalte 1), Karte rechts (Spalte 2) */
  .paket-content { grid-column: 1; grid-row: 1; }
  .paket-sidebar { grid-column: 2; grid-row: 1; }
  .paket-sidebar-inner { position: sticky; top: 120px; }
}

@media (max-width: 768px) {
  .paket-sidebar-inner { position: static !important; }
}

/* =========================================================
   RESPONSIVE GRIDS (globale Lösung für alle Templates)
   Inline-Style-Grids mit 2 oder 3 festen Spalten werden
   auf schmalen Mobilgeräten zur 1-Spalte kollabiert.
   ========================================================= */
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.two-col-grid { grid-template-columns: 1fr 1fr; }

@media (max-width: 639px) {
  /* CSS-Klassen (explizit verwendet) */
  .pricing-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  /* Alle Inline-Style-Grids mit 2 oder 3 festen Spalten */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1fr minmax(0,360px)"] {
    grid-template-columns: 1fr !important;
  }
}
