/**
 * Rankous ProWorks — unified brand + light/dark themes
 * Accents: Teal #00E8C8 · Orange #FF6A00
 * Default theme: light (body/html.light-mode)
 */

:root {
  --ar-teal: #00C4A8;
  --ar-teal-bright: #00E8C8;
  --ar-teal-deep: #0D9488;
  --ar-orange: #FF6A00;
  --ar-orange-hot: #FF8A3D;

  /* Dark palette (fallback / dark-mode) */
  --ar-bg: #0B0F14;
  --ar-bg-soft: #10151C;
  --ar-surface: #141A22;
  --ar-surface-2: #1A222D;
  --ar-text: #F8FAFC;
  --ar-text-muted: #94A3B8;
  --ar-border: rgba(0, 232, 200, 0.16);
  --ar-card: rgba(20, 26, 34, 0.92);
  --ar-nav: rgba(11, 15, 20, 0.82);
  --ar-input: #141A22;
  --ar-footer: #0B0F14;
  --ar-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);

  --am-color-gold: #00E8C8;
  --am-color-gold-cta: #FF6A00;
  --am-color-gold-light: #3CF0D4;
  --am-color-gold-accent: #FF6A00;
  --am-color-bg-dark: #0B0F14;
  --am-gold: #00E8C8;
  --am-gold-rgb: 0, 232, 200;
  --am-ink-rgb: 11, 15, 20;
  --am-bg: var(--ar-bg);
}

/* ——— LIGHT (default) ——— */
html.light-mode,
body.light-mode {
  --ar-bg: #F4F7FB;
  --ar-bg-soft: #EEF3F8;
  --ar-surface: #FFFFFF;
  --ar-surface-2: #F8FAFC;
  --ar-text: #0F172A;
  --ar-text-muted: #64748B;
  --ar-border: rgba(13, 148, 136, 0.18);
  --ar-card: #FFFFFF;
  --ar-nav: rgba(255, 255, 255, 0.88);
  --ar-input: #FFFFFF;
  --ar-footer: #FFFFFF;
  --ar-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  --am-bg: #F4F7FB;
  --am-ink-rgb: 15, 23, 42;
}

/* ——— Shared canvas ——— */
body {
  background-color: var(--ar-bg) !important;
  color: var(--ar-text);
  background-image:
    radial-gradient(ellipse 80% 50% at 8% -10%, rgba(0, 196, 168, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 0%, rgba(255, 106, 0, 0.07), transparent 50%),
    linear-gradient(180deg, var(--ar-bg) 0%, var(--ar-bg-soft) 100%);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.bg-premium {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 196, 168, 0.06), transparent 42%),
    radial-gradient(circle at 80% 60%, rgba(255, 106, 0, 0.05), transparent 45%) !important;
}

/* ——— Theme toggle: circular icon button (matches menu chip) ——— */
.theme-switch-wrapper {
  display: flex !important;
  align-items: center;
  margin-inline: 0.35rem;
}

.theme-switch {
  position: relative;
  display: inline-flex !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.theme-switch .slider {
  display: none !important;
}

.theme-switch__btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s ease;
}

/* Light + dark: identical chrome to .menu-btn */
body.light-mode .theme-switch__btn,
body.light-mode .menu-btn,
body.light-mode .navbar .menu-btn {
  background: #FFFFFF !important;
  color: #0D9488 !important;
  border: 1px solid rgba(13, 148, 136, 0.28) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  filter: none !important;
}

body.light-mode .theme-switch:hover .theme-switch__btn,
body.light-mode .theme-switch:focus-within .theme-switch__btn,
body.light-mode .menu-btn:hover,
body.light-mode .navbar .menu-btn:hover {
  background: #F0FDFA !important;
  border-color: rgba(13, 148, 136, 0.45) !important;
  color: #0F766E !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1) !important;
}

body:not(.light-mode) .theme-switch__btn,
body:not(.light-mode) .menu-btn,
body:not(.light-mode) .navbar .menu-btn {
  background: rgba(15, 23, 42, 0.72) !important;
  color: #00E8C8 !important;
  border: 1px solid rgba(0, 232, 200, 0.3) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  filter: none !important;
}

body:not(.light-mode) .theme-switch:hover .theme-switch__btn,
body:not(.light-mode) .theme-switch:focus-within .theme-switch__btn,
body:not(.light-mode) .menu-btn:hover,
body:not(.light-mode) .navbar .menu-btn:hover {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(0, 232, 200, 0.45) !important;
  color: #5EEAD4 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

.theme-switch:hover .theme-switch__btn,
.theme-switch:focus-within .theme-switch__btn {
  transform: translateY(-1px);
}

.theme-switch:active .theme-switch__btn {
  transform: scale(0.96);
}

.theme-switch__icon {
  position: absolute;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* checked = light mode → show sun; unchecked = dark → show moon */
.theme-switch__icon--sun {
  opacity: 0;
  transform: rotate(-40deg) scale(0.7);
}

.theme-switch__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-switch input:checked + .theme-switch__btn .theme-switch__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-switch input:checked + .theme-switch__btn .theme-switch__icon--moon {
  opacity: 0;
  transform: rotate(40deg) scale(0.7);
}

/* ——— Logo (original design kept — only blend with chrome) ——— */
.navbar .logo,
#navbar .logo,
body.page-home #navbar .logo,
body.page-index #navbar .logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

/*
  Logo mark: original art on transparent PNG — no plate, ring, or rounded card.
*/
.logo-mark {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  isolation: auto;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* No plate/ring overlays — transparent PNG blends into chrome */
.logo-mark::after {
  content: none !important;
  display: none !important;
}

.logo-mark--footer {
  width: clamp(168px, 26vw, 220px) !important;
  height: clamp(168px, 26vw, 220px) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  margin-inline: auto;
}

.logo-mark--about {
  width: clamp(168px, 26vw, 220px) !important;
  height: clamp(168px, 26vw, 220px) !important;
  border-radius: 0;
  margin: 0 auto;
  display: flex !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Footer logo block — larger, centered, same on every page */
.footer .footer-brand,
.footer-col--legal .footer-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 1.35rem !important;
  margin-bottom: 0.25rem !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

.footer .footer-brand__link,
.footer-brand__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0.35rem 0 !important;
  line-height: 0 !important;
}

.footer .logo-mark--footer .footer-brand__logo,
.footer .logo-mark--footer .logo-img,
.footer-brand__logo,
.footer-brand__logo.logo-img--brand {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  filter: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: block !important;
}

.logo-img,
.logo-img.logo-img--brand,
.navbar .logo-img,
#navbar .logo-img,
body.page-home #navbar .logo-img,
body.page-index #navbar .logo-img,
body.page-home #navbar:not(.navbar--menu-open) .logo-img,
body:has(#navbar ~ section.hero) .navbar .logo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
  filter: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: block !important;
  background: transparent !important;
  transform: none !important;
}

.logo-mark--footer .footer-brand__logo,
.logo-mark--footer .logo-img,
.logo-mark--about .logo-img {
  transform: none !important;
}

body.light-mode .logo-mark,
body.light-mode .logo-mark--footer,
body.light-mode .logo-mark--about {
  background: transparent !important;
  box-shadow: none !important;
}

body.light-mode .logo-img,
body.light-mode .logo-img.logo-img--brand,
body.light-mode .navbar .logo-img,
body.light-mode #navbar .logo-img,
body.light-mode.page-home #navbar .logo-img,
body.light-mode:has(#navbar ~ section.hero) .navbar .logo-img {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.footer-brand__logo,
.footer-brand__logo.logo-img--brand {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  display: block !important;
}

body.light-mode .footer-brand__logo,
body.light-mode .footer-brand__logo.logo-img--brand {
  background: transparent !important;
  box-shadow: none !important;
}

.logo-img--about {
  width: 100% !important;
  height: 100% !important;
}

body:not(.light-mode) .footer .logo-mark--footer,
body:not(.light-mode) .logo-mark,
body.light-mode .footer .logo-mark--footer,
body.light-mode .logo-mark {
  background: transparent !important;
}

.navbar .logo-text,
#navbar .logo-text,
body.page-home #navbar .logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  line-height: 1.1 !important;
}

.navbar .logo-text h2,
#navbar .logo-text h2,
body.page-home #navbar .logo-text h2,
body .logo-text h2,
body.light-mode .logo-text h2 {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  background: linear-gradient(90deg, #F8FAFC 0%, #00E8C8 48%, #FF6A00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

body.light-mode .navbar .logo-text h2,
body.light-mode #navbar .logo-text h2,
body.light-mode.page-home #navbar .logo-text h2,
body.light-mode .logo-text h2 {
  background: linear-gradient(90deg, #0F172A 0%, #0D9488 48%, #FF6A00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.navbar .logo-text p,
#navbar .logo-text p,
body.page-home #navbar .logo-text p,
.logo-text p {
  margin: 0 !important;
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #00E8C8 !important;
  opacity: 0.92 !important;
  text-shadow: none !important;
}

body.light-mode .navbar .logo-text p,
body.light-mode #navbar .logo-text p,
body.light-mode.page-home #navbar .logo-text p,
body.light-mode .logo-text p {
  color: #0D9488 !important;
}

/* ——— Nav ——— */
/* Beat legacy transparent hero-nav rule (high specificity) */
body.light-mode:has(#navbar ~ section.hero.heitec-hero) .navbar:not(.scrolled):not(.navbar--menu-open):not(.navbar--call-picker-open),
body.light-mode:has(#navbar ~ section.hero) .navbar:not(.scrolled):not(.navbar--menu-open):not(.navbar--call-picker-open),
body.light-mode.page-contact:has(#navbar ~ main.contact-premium) .navbar:not(.scrolled):not(.navbar--menu-open):not(.navbar--call-picker-open),
body.light-mode .navbar,
body.light-mode .navbar.am-navbar-layer,
body.light-mode .navbar.scrolled,
html.light-mode body .navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  background-image: none !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

body:not(.light-mode):has(#navbar ~ section.hero.heitec-hero) .navbar:not(.scrolled):not(.navbar--menu-open):not(.navbar--call-picker-open),
body:not(.light-mode) .navbar,
html.dark-mode body .navbar {
  background: rgba(11, 15, 20, 0.86) !important;
  border-bottom: 1px solid rgba(0, 232, 200, 0.12) !important;
  box-shadow: none;
}

.navbar.scrolled {
  box-shadow: var(--ar-shadow);
}

body.light-mode .nav-links a,
body.light-mode .nav-dropdown__trigger,
html.light-mode body .nav-links a,
html.light-mode body .nav-dropdown__trigger {
  color: #0F172A !important;
}

body:not(.light-mode) .nav-links a,
body:not(.light-mode) .nav-dropdown__trigger {
  color: #E2E8F0 !important;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active,
body.light-mode .nav-dropdown__trigger:hover {
  color: #0D9488 !important;
}

body:not(.light-mode) .nav-links a:hover,
body:not(.light-mode) .nav-links a.active,
body:not(.light-mode) .nav-dropdown__trigger:hover {
  color: #00E8C8 !important;
}

.nav-links a.active {
  box-shadow: inset 0 -2px 0 #00C4A8;
}

.btn-call,
.nav-call-direct {
  background: linear-gradient(135deg, #00E8C8, #00C4A8) !important;
  color: #0B0F14 !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 196, 168, 0.28) !important;
}

.btn-call:hover,
.nav-call-direct:hover {
  background: linear-gradient(135deg, #FF6A00, #FF8A3D) !important;
  color: #fff !important;
}

.menu-btn {
  color: var(--ar-teal-deep) !important;
  border-color: var(--ar-border) !important;
}

body.light-mode .nav-dropdown__panel {
  background: #FFFFFF !important;
  border: 1px solid rgba(13, 148, 136, 0.16) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

body.light-mode .nav-dropdown__panel a {
  color: #0F172A !important;
}

/* ——— Hero (homepage) ——— */
/* Compact: photo fills a shorter frame; copy top-left under nav */
.index-hero-premium.heitec-hero,
.hero.heitec-hero.index-hero-premium {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  min-height: clamp(460px, 68vh, 620px) !important;
  height: clamp(460px, 68vh, 620px) !important;
  max-height: 620px !important;
  padding: 7.25rem 5% 1.75rem !important;
  overflow: hidden !important;
  isolation: isolate;
}

.index-hero-premium .hero-content,
.index-hero-premium .heitec-hero-content,
.hero.heitec-hero .hero-content {
  position: relative !important;
  z-index: 4 !important;
  margin: 0 !important;
  max-width: min(36rem, 90%) !important;
  width: 100%;
  text-align: left !important;
  align-self: flex-start !important;
  filter: none !important;
}

.index-hero-premium .hero-carousel,
.hero-carousel {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

.index-hero-premium .hero-carousel .carousel,
.hero-carousel .carousel,
.index-hero-premium .hero-carousel .carousel-slide,
.hero-carousel .carousel-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.index-hero-premium .hero-carousel img,
.hero-carousel .carousel-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 62% center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Keep subject on the right so left copy has clean read space */
body.light-mode .index-hero-premium .carousel-slide img,
body:not(.light-mode) .index-hero-premium .carousel-slide img {
  object-position: 68% 45% !important;
}

/*
  Wide desktops only (~15–17"+): default hero is capped at 620px tall while
  the viewport is ~1600–1920 wide → frame ~3:1, so object-fit:cover chops
  half the photo. Mobile + small laptops stay on the base rules above.
*/
@media (min-width: 1440px) {
  .index-hero-premium.heitec-hero,
  .hero.heitec-hero.index-hero-premium {
    min-height: clamp(560px, 72vh, 760px) !important;
    height: clamp(560px, 72vh, 760px) !important;
    max-height: 760px !important;
  }

  body.light-mode .index-hero-premium .carousel-slide img,
  body:not(.light-mode) .index-hero-premium .carousel-slide img {
    object-position: 58% 42% !important;
  }
}

@media (min-width: 1800px) {
  .index-hero-premium.heitec-hero,
  .hero.heitec-hero.index-hero-premium {
    min-height: clamp(620px, 74vh, 840px) !important;
    height: clamp(620px, 74vh, 840px) !important;
    max-height: 840px !important;
  }

  body.light-mode .index-hero-premium .carousel-slide img,
  body:not(.light-mode) .index-hero-premium .carousel-slide img {
    object-position: 54% 40% !important;
  }
}

.hero-services,
.hero-about,
.hero-projects,
.hero-contact,
.page-hero {
  min-height: 38vh;
  background-size: cover !important;
  background-position: center !important;
  display: flex;
  align-items: flex-end;
  padding: 7rem 5% 2.5rem !important;
  position: relative;
  overflow: hidden;
}

/* DARK hero */
body:not(.light-mode) .index-hero-premium,
body:not(.light-mode) .hero.heitec-hero {
  background-color: #0B0F14 !important;
  background-image: none !important;
}

body:not(.light-mode) .index-hero-premium .hero-title,
body:not(.light-mode) .index-hero-premium h1,
body:not(.light-mode) .hero.heitec-hero h1,
body:not(.light-mode) .hero h1,
body:not(.light-mode) .hero .am-title,
body:not(.light-mode) .index-hero-premium .am-subtitle,
body:not(.light-mode) .hero.heitec-hero .am-subtitle,
body:not(.light-mode) .hero p,
body:not(.light-mode) .hero .am-subtitle,
body:not(.light-mode) .page-hero,
body:not(.light-mode) .page-hero .am-title,
body:not(.light-mode) .page-hero .am-subtitle,
body:not(.light-mode) .page-hero p,
body:not(.light-mode) .hero-services,
body:not(.light-mode) .hero-about,
body:not(.light-mode) .hero-projects,
body:not(.light-mode) .hero-contact {
  color: #F8FAFC !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

body:not(.light-mode) .index-hero-premium .hero-carousel img,
body:not(.light-mode) .hero-carousel .carousel-slide img {
  filter: brightness(0.78) saturate(1.08) contrast(1.05) !important;
}

body:not(.light-mode) .index-hero-premium .hero-carousel::before,
body:not(.light-mode) .hero-carousel::before {
  background: linear-gradient(
    105deg,
    rgba(11, 15, 20, 0.82) 0%,
    rgba(11, 15, 20, 0.55) 34%,
    rgba(11, 15, 20, 0.28) 62%,
    rgba(11, 15, 20, 0.12) 100%
  ) !important;
}

body:not(.light-mode).page-index .index-hero-premium.heitec-hero::before,
body:not(.light-mode).page-index .index-hero-premium.heitec-hero::after,
body:not(.light-mode).page-index .index-hero-premium .hero-carousel::after {
  opacity: 0.45 !important;
}

body:not(.light-mode) .service-circle {
  background: rgba(20, 26, 34, 0.72) !important;
  border: 1.5px solid rgba(0, 232, 200, 0.55) !important;
  color: #00E8C8 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

body:not(.light-mode) .service-circle span {
  color: #F8FAFC !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

body:not(.light-mode) .service-circle i {
  color: #00E8C8 !important;
}

body:not(.light-mode) .hero-badge {
  background: rgba(0, 232, 200, 0.14) !important;
  border: 1px solid rgba(0, 232, 200, 0.4) !important;
  color: #00E8C8 !important;
}

body:not(.light-mode) .hero-services {
  background-image:
    linear-gradient(90deg, rgba(11, 15, 20, 0.88) 0%, rgba(11, 15, 20, 0.45) 55%, rgba(11, 15, 20, 0.25) 100%),
    url("../images/hero-montage.jpg") !important;
}

body:not(.light-mode) .hero-about {
  background-image:
    linear-gradient(90deg, rgba(11, 15, 20, 0.88) 0%, rgba(11, 15, 20, 0.45) 55%, rgba(11, 15, 20, 0.25) 100%),
    url("../images/hero-protech.jpg") !important;
}

body:not(.light-mode) .hero-projects {
  background-image:
    linear-gradient(90deg, rgba(11, 15, 20, 0.88) 0%, rgba(11, 15, 20, 0.45) 55%, rgba(11, 15, 20, 0.25) 100%),
    url("../images/hero-transport.jpg") !important;
}

body:not(.light-mode) .hero-contact {
  background-image:
    linear-gradient(90deg, rgba(11, 15, 20, 0.88) 0%, rgba(11, 15, 20, 0.45) 55%, rgba(11, 15, 20, 0.25) 100%),
    url("../images/hero-entsorgung.jpg") !important;
}

/* LIGHT hero — bright photos + readable dark text */
body.light-mode .index-hero-premium,
body.light-mode .hero.heitec-hero {
  background-color: #E8EEF5 !important;
  background-image: none !important;
}

body.light-mode .index-hero-premium .hero-title,
body.light-mode .index-hero-premium h1,
body.light-mode .hero.heitec-hero h1,
body.light-mode .hero h1,
body.light-mode .hero .am-title,
body.light-mode .index-hero-premium .am-subtitle,
body.light-mode .hero.heitec-hero .am-subtitle,
body.light-mode .hero p,
body.light-mode .hero .am-subtitle,
body.light-mode .page-hero,
body.light-mode .page-hero .am-title,
body.light-mode .page-hero .am-subtitle,
body.light-mode .page-hero p,
body.light-mode .hero-services,
body.light-mode .hero-about,
body.light-mode .hero-projects,
body.light-mode .hero-contact {
  color: #0F172A !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.light-mode .page-hero .am-subtitle,
body.light-mode .hero .am-subtitle,
body.light-mode .hero p {
  color: #334155 !important;
}

body.light-mode .index-hero-premium .hero-carousel img,
body.light-mode .hero-carousel .carousel-slide img {
  filter: brightness(1.08) saturate(1.08) contrast(1.04) !important;
}

/* Soft left read-panel for left-aligned copy */
body.light-mode .index-hero-premium .hero-carousel::before,
body.light-mode .hero-carousel::before {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(244, 247, 251, 0.42) 28%,
    rgba(244, 247, 251, 0.12) 52%,
    transparent 72%
  ) !important;
  opacity: 1 !important;
}

body.light-mode.page-index .index-hero-premium.heitec-hero::before,
body.light-mode.page-index .index-hero-premium.heitec-hero::after,
body.light-mode.page-index .index-hero-premium .hero-carousel::after {
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  display: none !important;
}

body.light-mode .index-hero-premium .floating-orb,
body.light-mode .floating-orb {
  opacity: 0.28 !important;
}

body.light-mode .index-hero-premium .hero-title,
body.light-mode .index-hero-premium h1,
body.light-mode .index-hero-premium.hero h1 {
  color: #0B1220 !important;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.1vw, 2.55rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  max-width: 20ch !important;
  text-align: left !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 10px rgba(15, 23, 42, 0.06) !important;
}

body:not(.light-mode) .index-hero-premium.hero h1,
body:not(.light-mode) .index-hero-premium .hero-title {
  font-size: clamp(1.7rem, 3.1vw, 2.55rem) !important;
  line-height: 1.2 !important;
  max-width: 20ch !important;
  text-align: left !important;
}

body.light-mode .index-hero-premium .hero-badge,
body.light-mode.page-index .index-hero-premium .hero-badge {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(13, 148, 136, 0.28) !important;
  color: #0D9488 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
  margin-bottom: 0.85rem !important;
}

body.light-mode .index-hero-premium .am-subtitle {
  color: #334155 !important;
  text-align: left !important;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem) !important;
  max-width: 32rem !important;
}

body.light-mode .service-circle,
body.light-mode.page-index .index-hero-premium .service-circle,
html.light-mode body.page-index .index-hero-premium .service-circle {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(13, 148, 136, 0.32) !important;
  color: #0D9488 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .service-circle:hover,
body.light-mode.page-index .index-hero-premium .service-circle:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-3px) scale(1.03);
}

body.light-mode .service-circle span {
  color: #0F172A !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

body.light-mode .service-circle i {
  color: #0D9488 !important;
  filter: none !important;
}

body.light-mode.page-index .index-hero-premium .heitec-hero-content,
body.light-mode.page-index .index-hero-premium .hero-content,
body.light-mode.page-index .index-hero-premium .whyus-emphasis {
  filter: none !important;
}

/* Hero circles — smaller, left stack, tight rhythm */
.index-hero-premium .service-circles {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 0.9rem 0 1rem !important;
}

.index-hero-premium .service-circle,
body.light-mode.page-index .index-hero-premium .service-circle {
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  min-height: 78px !important;
  max-width: 78px !important;
  max-height: 78px !important;
  font-size: 0.68rem !important;
  gap: 4px !important;
}

.index-hero-premium .service-circle i {
  font-size: 1.2rem !important;
}

.index-hero-premium .service-circle span {
  font-size: 0.72rem !important;
  padding: 0 4px !important;
  line-height: 1.1 !important;
}

.index-hero-premium.hero h1,
.index-hero-premium .hero-title {
  margin-bottom: 0.65rem !important;
}

.index-hero-premium .am-subtitle {
  margin-bottom: 0 !important;
  max-width: 32rem;
  text-align: left !important;
}

@media (max-width: 768px) {
  .index-hero-premium.heitec-hero,
  .hero.heitec-hero.index-hero-premium {
    min-height: min(72vh, 560px) !important;
    height: auto !important;
    max-height: none !important;
    justify-content: flex-start !important;
    padding: 5.75rem 5% 1.5rem !important;
  }

  .index-hero-premium .hero-content,
  .index-hero-premium .heitec-hero-content {
    text-align: center !important;
    align-self: center !important;
    max-width: 100% !important;
  }

  .index-hero-premium.hero h1,
  .index-hero-premium .hero-title,
  .index-hero-premium .am-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }

  .index-hero-premium .service-circles {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .index-hero-premium .service-circle,
  body.light-mode.page-index .index-hero-premium .service-circle {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
    max-width: 78px !important;
    max-height: 78px !important;
  }
}

body.light-mode .hero-badge {
  background: rgba(13, 148, 136, 0.1) !important;
  border: 1px solid rgba(13, 148, 136, 0.3) !important;
  color: #0D9488 !important;
}

body.light-mode .hero-services {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(244, 247, 251, 0.28) 48%, rgba(244, 247, 251, 0.06) 100%),
    url("../images/hero-montage-light.jpg") !important;
}

body.light-mode .hero-about {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(244, 247, 251, 0.28) 48%, rgba(244, 247, 251, 0.06) 100%),
    url("../images/hero-protech-light.jpg") !important;
}

body.light-mode .hero-projects {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(244, 247, 251, 0.28) 48%, rgba(244, 247, 251, 0.06) 100%),
    url("../images/hero-transport-light.jpg") !important;
}

body.light-mode .hero-contact {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(244, 247, 251, 0.28) 48%, rgba(244, 247, 251, 0.06) 100%),
    url("../images/hero-entsorgung-light.jpg") !important;
}

.floating-orb {
  background: radial-gradient(circle, rgba(0, 232, 200, 0.18), rgba(255, 106, 0, 0.06), transparent 70%) !important;
  pointer-events: none !important;
}

body.light-mode .floating-orb {
  background: radial-gradient(circle, rgba(0, 196, 168, 0.14), rgba(255, 106, 0, 0.06), transparent 70%) !important;
  opacity: 0.55;
}

/* ——— Sections / typography below hero ——— */
.section,
.am-section {
  color: var(--ar-text);
}

.section-header h2,
.am-title--section,
.section h2,
.section h3,
.card h3,
.service-card h3 {
  color: var(--ar-text) !important;
}

.am-subtitle,
.am-text-muted,
.section-header p,
.card p,
.service-card p {
  color: var(--ar-text-muted) !important;
}

.gradient-text {
  background-image: linear-gradient(135deg, #00C4A8 0%, #14B8A6 45%, #FF6A00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.section-tag {
  color: #FF6A00 !important;
}

.section-header .am-title--section::after,
.section-header h2::after {
  background: linear-gradient(90deg, #00C4A8, #FF6A00) !important;
}

/* ——— Cards ——— */
.card,
.service-card,
.contact-form-card,
.am-card,
.highlight-card,
.image-box,
.form-card {
  background: var(--ar-card) !important;
  border: 1px solid var(--ar-border) !important;
  box-shadow: var(--ar-shadow) !important;
  color: var(--ar-text);
}

body.light-mode .card,
body.light-mode .service-card,
body.light-mode .contact-form-card,
body.light-mode .am-card,
body.light-mode .highlight-card,
body.light-mode .image-box:not(.image-box--cta-match),
body.light-mode .form-card,
body.light-mode.page-index .section--after-hero .card.am-card.am-card--feature,
body.light-mode.page-index #angebote a.service-card.am-card.am-card--service,
body.light-mode.page-index .highlight-card,
body.light-mode.page-index .contact-form-card,
body.light-mode.page-index .image-box:not(.image-box--cta-match),
html.light-mode body .card,
html.light-mode body .service-card,
html.light-mode body .am-card {
  background: #FFFFFF !important;
  background-image: none !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  /* Border-led surfaces — no dark ink pools under squares */
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Kill cinematic glass sheen overlays in light mode */
body.light-mode .card::before,
body.light-mode .service-card::before,
body.light-mode .am-card::before,
body.light-mode.page-index .section--after-hero .card.am-card.am-card--feature::before,
body.light-mode.page-index #angebote a.service-card.am-card.am-card--service::before,
html.light-mode body .card::before,
html.light-mode body .service-card::before {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Hover elevation only on real links / interactive cards */
body.light-mode a.service-card.service-card--link:hover,
body.light-mode a.card.card--link:hover,
body.light-mode.page-index #angebote a.service-card.am-card--service:hover,
body.light-mode a.am-card--interactive:hover {
  border-color: rgba(13, 148, 136, 0.4) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

a.service-card.service-card--link:hover,
a.card.card--link:hover,
a.am-card--interactive:hover {
  border-color: rgba(255, 106, 0, 0.4) !important;
}

/* Dark mode: keep premium glass depth, no muddy light leftovers */
body:not(.light-mode) .card,
body:not(.light-mode) .service-card,
body:not(.light-mode) .am-card,
body:not(.light-mode) .contact-form-card,
body:not(.light-mode) .highlight-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

.card-icon,
.service-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(0, 196, 168, 0.14), rgba(255, 106, 0, 0.08)) !important;
  color: var(--ar-teal-deep) !important;
  border: 1px solid rgba(0, 196, 168, 0.28) !important;
  box-shadow: none !important;
  margin-bottom: 0.85rem;
}

body:not(.light-mode) .card-icon,
body:not(.light-mode) .service-icon {
  color: #00E8C8 !important;
}

.service-features li i,
.feature-list li i,
.contact-benefits li i,
.fas.fa-check-circle {
  color: var(--ar-teal-deep) !important;
}

body:not(.light-mode) .service-features li i,
body:not(.light-mode) .feature-list li i,
body:not(.light-mode) .contact-benefits li i,
body:not(.light-mode) .fas.fa-check-circle {
  color: #00E8C8 !important;
}

/* ——— Buttons ——— */
.btn-primary,
.am-btn--primary,
.home-all-services-link__btn {
  background: linear-gradient(135deg, #00E8C8, #00C4A8) !important;
  color: #0B0F14 !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(0, 196, 168, 0.25) !important;
}

.btn-primary:hover,
.am-btn--primary:hover,
.home-all-services-link__btn:hover {
  background: linear-gradient(135deg, #FF6A00, #FF8A3D) !important;
  color: #fff !important;
}

.btn-dark,
.cta-section__btn {
  background: var(--ar-surface) !important;
  color: var(--ar-teal-deep) !important;
  border: 1px solid var(--ar-border) !important;
}

body.light-mode .btn-dark,
body.light-mode .cta-section__btn {
  background: #0F172A !important;
  color: #00E8C8 !important;
  border-color: transparent !important;
}

.btn-dark:hover,
.cta-section__btn:hover {
  background: linear-gradient(135deg, #FF6A00, #FF8A3D) !important;
  color: #fff !important;
}

/* Legacy 3-button FAB stack removed — replaced by .ar-contact-dock */
.amheitec-fab-stack {
  display: none !important;
}

/* ——— Forms ——— */
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form-select {
  background: var(--ar-input) !important;
  border: 1px solid var(--ar-border) !important;
  color: var(--ar-text) !important;
  border-radius: 14px !important;
}

body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea,
body.light-mode .contact-form-select {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0F172A !important;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #00C4A8 !important;
  box-shadow: 0 0 0 3px rgba(0, 196, 168, 0.15) !important;
}

.contact-form label,
.estimate-attach-legend {
  color: var(--ar-text-muted) !important;
}

.contact-file-action-btn {
  background: rgba(0, 196, 168, 0.08) !important;
  border: 1px dashed rgba(0, 196, 168, 0.4) !important;
  color: var(--ar-teal-deep) !important;
}

.step-number {
  background: linear-gradient(135deg, #00E8C8, #FF6A00) !important;
  color: #0B0F14 !important;
}

.step-text p,
.contact-left h2,
.contact-benefits,
.estimate-section {
  color: var(--ar-text);
}

.cta-section {
  background: linear-gradient(135deg, rgba(0, 196, 168, 0.1), rgba(255, 106, 0, 0.08)) !important;
  border: 1px solid var(--ar-border) !important;
}

body.light-mode .cta-section h2,
body.light-mode .cta-section p {
  color: #0F172A !important;
}

/* ——— Footer ——— */
body:not(.light-mode) .footer {
  background: #0B1220 !important;
  border-top: 1px solid rgba(0, 232, 200, 0.12);
  color: #E2E8F0;
}

body:not(.light-mode) .footer h4 {
  color: #00E8C8 !important;
}

body:not(.light-mode) .footer a,
body:not(.light-mode) .footer-address,
body:not(.light-mode) .footer-contact-text {
  color: #CBD5E1 !important;
}

body:not(.light-mode) .footer a:hover {
  color: #FF6A00 !important;
}

body:not(.light-mode) .footer-tax-note {
  color: rgba(241, 245, 249, 0.72);
}

body:not(.light-mode) .footer-bottom {
  border-top: 1px solid rgba(0, 232, 200, 0.1);
  color: #94A3B8;
}

body.light-mode .footer {
  background: #FFFFFF !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #0F172A;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.04);
}

body.light-mode .footer h4 {
  color: #0D9488 !important;
}

body.light-mode .footer a,
body.light-mode .footer-address,
body.light-mode .footer-contact-text {
  color: #334155 !important;
}

body.light-mode .footer a:hover {
  color: #FF6A00 !important;
}

body.light-mode .footer-tax-note {
  color: #64748B;
}

body.light-mode .footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748B;
}

.footer-tax-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  max-width: 52rem;
  line-height: 1.45;
}

/* ——— Cookie ——— */
.cookie-consent,
.cookie-container {
  background: var(--ar-card) !important;
  border: 1px solid var(--ar-border) !important;
  color: var(--ar-text) !important;
}

body.light-mode .cookie-consent,
body.light-mode .cookie-container {
  background: #FFFFFF !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12) !important;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #00E8C8, #00C4A8) !important;
  color: #0B0F14 !important;
}

.cookie-btn-decline,
.cookie-btn-settings {
  border-color: var(--ar-border) !important;
  color: var(--ar-teal-deep) !important;
}

/* ——— Projects ——— */
.ar-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.ar-project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--ar-card);
  border: 1px solid var(--ar-border);
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--ar-shadow);
}

body.light-mode .ar-project-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
}

/* Decorative project cards: no fake click affordance */
.ar-project-card:hover {
  transform: none;
  border-color: var(--ar-border);
}

a.ar-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 0, 0.4);
}

.ar-project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ar-project-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.ar-project-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ar-text);
}

.ar-project-card__body p {
  margin: 0;
  color: var(--ar-text-muted);
  font-size: 0.92rem;
}

/* Light-mode polish for inherited legacy bits */
body.light-mode .section,
body.light-mode .am-section,
body.light-mode .estimate-section {
  background-color: transparent;
}

body.light-mode .contact-wrapper,
body.light-mode .two-columns,
body.light-mode .feature-list li,
body.light-mode .contact-benefits li {
  color: #334155;
}

body.light-mode .image-box {
  color: #0F172A !important;
}

body.light-mode .image-box i {
  color: #0D9488 !important;
}

/* Kill leftover dark islands from legacy CSS in light mode */
body.light-mode .heitec-hero,
body.light-mode .index-hero-premium.heitec-hero,
body.light-mode section.hero.heitec-hero {
  background-image: none !important;
  background-color: #E8EEF5 !important;
}

body.light-mode .estimate-section,
body.light-mode .section.estimate-section,
body.light-mode .contact-left,
body.light-mode .step-text p,
body.light-mode .contact-benefits li {
  color: #334155 !important;
}

body.light-mode .estimate-section {
  background: transparent !important;
}

body.light-mode .contact-form-card,
body.light-mode .contact-form h3 {
  color: #0F172A !important;
}

body.light-mode .gdpr-checkbox,
body.light-mode .contact-gdpr,
body.light-mode .estimate-section .contact-gdpr.gdpr-checkbox,
body.light-mode .page-contact .contact-gdpr.gdpr-checkbox {
  background: rgba(13, 148, 136, 0.06) !important;
  border: 1px solid rgba(13, 148, 136, 0.16) !important;
  box-shadow: none !important;
  color: #334155 !important;
}

body.light-mode .gdpr-checkbox label,
body.light-mode .contact-gdpr label,
body.light-mode .estimate-section .contact-gdpr.gdpr-checkbox label,
body.light-mode .contact-file-hint {
  color: #475569 !important;
  background: transparent !important;
}

body.light-mode .cta-section {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(255, 106, 0, 0.06)) !important;
  border: 1px solid rgba(13, 148, 136, 0.16) !important;
}

body.light-mode .two-columns .col,
body.light-mode .two-columns p,
body.light-mode .feature-list li {
  color: #334155 !important;
}

body.light-mode .cookie-consent p,
body.light-mode .cookie-text {
  color: #334155 !important;
}

/* Dark mode consistency pass */
body:not(.light-mode) .section-header h2,
body:not(.light-mode) .am-title--section,
body:not(.light-mode) .card h3,
body:not(.light-mode) .service-card h3 {
  color: #F8FAFC !important;
}

body:not(.light-mode) .am-subtitle,
body:not(.light-mode) .card p,
body:not(.light-mode) .service-card p,
body:not(.light-mode) .step-text p,
body:not(.light-mode) .contact-benefits li,
body:not(.light-mode) .feature-list li,
body:not(.light-mode) .two-columns p {
  color: #94A3B8 !important;
}

body:not(.light-mode) .estimate-section,
body:not(.light-mode) .contact-form-card,
body:not(.light-mode) .cta-section {
  color: #E2E8F0;
}

body:not(.light-mode) .cta-section h2,
body:not(.light-mode) .cta-section p {
  color: #F8FAFC !important;
}

body:not(.light-mode) .ar-project-card__body h3 {
  color: #F8FAFC;
}

body:not(.light-mode) .ar-project-card__body p {
  color: #94A3B8;
}

/* Cinematic leftovers: estimate / trustbar / image-box in light */
body.light-mode.page-index .estimate-section,
body.light-mode .estimate-section {
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(13, 148, 136, 0.06), transparent 50%),
    #F4F7FB !important;
  border-color: rgba(13, 148, 136, 0.14) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode.page-index section:has(.trustbar),
body.light-mode.page-index .trustbar {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .card-icon,
body.light-mode .service-icon {
  text-shadow: none !important;
  box-shadow: none !important;
}

body.light-mode .section--alt {
  background: rgba(13, 148, 136, 0.05) !important;
}

body:not(.light-mode) .section--alt {
  background: rgba(0, 232, 200, 0.04) !important;
}

/* Extra light-mode: kill leftover dark panels from legacy style.css */
body.light-mode .booking-visual,
body.light-mode .service-more-menu,
body.light-mode .service-more-menu::before,
body.light-mode .nav-dropdown__panel,
body.light-mode .mobile-menu,
body.light-mode .nav-links {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

/* GDPR modal theming handled in .ar-gdpr-modal block below */

body.light-mode .service-more-menu::before {
  background: #FFFFFF !important;
}

body.light-mode .service-more-menu a {
  color: #334155 !important;
}

body.light-mode .trustbar,
body.light-mode .trustbar-item {
  background: transparent !important;
  color: #334155 !important;
}

body.light-mode .image-box,
body.light-mode .highlight-card {
  background: #FFFFFF !important;
}

body.light-mode .cookie-settings,
body.light-mode .cookie-modal,
body.light-mode .cookie-preferences {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

/* Dark mode solid pass — no washed surfaces */
body:not(.light-mode) .booking-visual {
  background: rgba(20, 26, 34, 0.92) !important;
  border: 1px solid rgba(0, 232, 200, 0.14);
}

body:not(.light-mode) .service-more-menu,
body:not(.light-mode) .service-more-menu::before {
  background: rgba(11, 15, 20, 0.96) !important;
  border: 1px solid rgba(0, 232, 200, 0.18);
}

body:not(.light-mode) .logo-img,
body:not(.light-mode) .footer-brand__logo,
body.light-mode .logo-img,
body.light-mode .footer-brand__logo {
  background: transparent !important;
}

/* Soft, readable body & headings – calm, not heavy */
body,
.am-subtitle,
.card p,
.service-card p,
.step-text p,
.two-columns p,
.ar-project-card__body p,
.contact-benefits li,
.feature-list li,
.footer-bottom p,
.cookie-text p {
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

h1,
h2,
.am-title,
.am-title--section,
.am-title--hero,
.section-header h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h3,
.card h3,
.service-card h3,
.ar-project-card__body h3,
.contact-form h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

body.light-mode .index-hero-premium .hero-title,
body.light-mode .index-hero-premium h1,
body.light-mode .index-hero-premium.hero h1 {
  font-weight: 700;
}

.am-subtitle,
.am-text-muted,
.page-hero .am-subtitle,
.hero .am-subtitle {
  font-weight: 400;
  opacity: 0.92;
}

/* Feierabend-Service note */
.service-note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(255, 106, 0, 0.05));
}

.service-note--banner {
  margin: 0 0 1.75rem;
}

.service-note__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0D9488;
}

.service-note__badge i {
  opacity: 0.9;
}

.service-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: inherit;
  opacity: 0.92;
}

body:not(.light-mode) .service-note {
  border-color: rgba(0, 232, 200, 0.28);
  background: linear-gradient(135deg, rgba(0, 232, 200, 0.1), rgba(255, 106, 0, 0.06));
}

body:not(.light-mode) .service-note__badge {
  color: #00E8C8;
}

/* Contact hours block */
.hours-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hours-block__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-block__title i {
  color: #0D9488;
  font-size: 0.95rem;
}

.hours-block__list {
  margin: 0;
}

.hours-block__row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 42%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hours-block__row dt {
  margin: 0;
  font-weight: 500;
  opacity: 0.85;
}

.hours-block__row dd {
  margin: 0;
  font-weight: 400;
}

body:not(.light-mode) .hours-block {
  border-top-color: rgba(0, 232, 200, 0.15);
}

body:not(.light-mode) .hours-block__title i {
  color: #00E8C8;
}

/* Footer opening hours */
.footer-hours {
  margin-top: 1.15rem;
}

.footer-hours__label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-hours__label i {
  font-size: 0.75rem;
  color: #0D9488;
}

.footer-hours__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-hours__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  padding: 0.15rem 0;
}

.footer-hours__list li span {
  min-width: 6.5rem;
  font-weight: 500;
  opacity: 0.8;
}

body:not(.light-mode) .footer-hours__label i {
  color: #00E8C8;
}

body.light-mode .footer-hours__label,
body.light-mode .footer-hours__list {
  color: #334155;
}

@media (max-width: 520px) {
  .hours-block__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ═══════════════════════════════════════════
   Mobile polish — compact header, readable hero,
   no horizontal scroll, stacked contact
   ═══════════════════════════════════════════ */
@media (max-width: 1180px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .navbar {
    min-height: 0 !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }

  .navbar .nav-container,
  body.page-home #navbar .nav-container,
  body.page-index #navbar .nav-container,
  body.page-home #navbar:not(.navbar--menu-open) .nav-container,
  body.page-index #navbar:not(.navbar--menu-open) .nav-container,
  body.page-home #navbar.navbar--menu-open .nav-container,
  body.page-index #navbar.navbar--menu-open .nav-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    grid-template-columns: none !important;
  }

  .navbar.navbar--menu-open .nav-container,
  body.page-home #navbar.navbar--menu-open .nav-container,
  body.page-index #navbar.navbar--menu-open .nav-container {
    flex-wrap: wrap !important;
  }

  .navbar .logo,
  body.page-home #navbar .logo,
  body.page-index #navbar .logo,
  body.page-home #navbar:not(.navbar--menu-open) .logo,
  body.page-index #navbar:not(.navbar--menu-open) .logo,
  body.page-home #navbar.navbar--menu-open .logo,
  body.page-index #navbar.navbar--menu-open .logo {
    order: 1 !important;
    margin: 0 !important;
    margin-right: auto !important;
    justify-self: start !important;
    max-width: calc(100% - 132px) !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .navbar .logo-text,
  #navbar .logo-text,
  body.page-home #navbar .logo-text {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .navbar .logo-text h2,
  #navbar .logo-text h2,
  body.page-home #navbar .logo-text h2 {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.98rem !important;
  }

  .navbar .logo-text p,
  #navbar .logo-text p,
  body.page-home #navbar .logo-text p {
    font-size: 0.52rem !important;
    letter-spacing: 0.1em !important;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 0;
    overflow: visible;
  }

  .logo-img,
  .navbar .logo-img,
  #navbar .logo-img,
  body.page-home #navbar .logo-img {
    transform: none !important;
  }

  .theme-switch-wrapper {
    display: flex !important;
    order: 2 !important;
    margin: 0 !important;
    margin-inline: 0 !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    position: relative !important;
    z-index: 6 !important;
  }

  .theme-switch,
  .theme-switch__btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
  }

  .menu-btn,
  body.page-home #navbar .menu-btn,
  body.page-index #navbar .menu-btn,
  body.page-home #navbar.navbar--menu-open .menu-btn,
  body.page-index #navbar.navbar--menu-open .menu-btn {
    order: 3 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    position: relative !important;
    z-index: 6 !important;
    border-radius: 12px !important;
  }

  /* Light + dark chips: menu + theme toggle stay identical */
  body.light-mode .menu-btn,
  body.light-mode .navbar .menu-btn,
  body.light-mode.page-home #navbar .menu-btn,
  body.light-mode.page-index #navbar .menu-btn,
  body.light-mode:has(#navbar ~ section.hero) .navbar .menu-btn,
  body.light-mode:has(#navbar ~ section.hero.heitec-hero) .navbar:not(.scrolled) .menu-btn,
  body.light-mode:has(#navbar ~ section.hero.heitec-hero) .navbar.scrolled .menu-btn,
  body.light-mode .navbar.navbar--menu-open .menu-btn,
  body.light-mode.page-home #navbar.navbar--menu-open .menu-btn,
  body.light-mode .theme-switch__btn {
    background: #FFFFFF !important;
    color: #0D9488 !important;
    border: 1px solid rgba(13, 148, 136, 0.28) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    filter: none !important;
  }

  body.light-mode .menu-btn:hover,
  body.light-mode .navbar .menu-btn:hover,
  body.light-mode .theme-switch:hover .theme-switch__btn,
  body.light-mode .theme-switch:focus-within .theme-switch__btn {
    background: #F0FDFA !important;
    border-color: rgba(13, 148, 136, 0.45) !important;
    color: #0F766E !important;
  }

  body:not(.light-mode) .menu-btn,
  body:not(.light-mode).page-home #navbar .menu-btn,
  body:not(.light-mode) .theme-switch__btn {
    background: rgba(15, 23, 42, 0.72) !important;
    color: #00E8C8 !important;
    border: 1px solid rgba(0, 232, 200, 0.3) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  }

  body:not(.light-mode) .menu-btn:hover,
  body:not(.light-mode) .theme-switch:hover .theme-switch__btn,
  body:not(.light-mode) .theme-switch:focus-within .theme-switch__btn {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(0, 232, 200, 0.45) !important;
    color: #5EEAD4 !important;
  }

  .nav-call-picker {
    display: none !important;
  }

  /* Drawer sits cleanly under the header row — no collision with logo/controls */
  .navbar.navbar--menu-open .nav-links,
  body.page-home #navbar.navbar--menu-open .nav-links,
  body.page-index #navbar.navbar--menu-open .nav-links {
    order: 10 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    position: relative !important;
    z-index: 5 !important;
  }

  body.light-mode .navbar.navbar--menu-open .nav-links,
  body.light-mode.page-home #navbar.navbar--menu-open .nav-links {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
  }
}

@media (max-width: 768px) {
  /* Hero: frosted scrim so dark text stays readable on photos */
  body.light-mode.page-index .index-hero-premium.heitec-hero::before,
  body.light-mode .index-hero-premium.heitec-hero::before {
    content: "" !important;
    pointer-events: none !important;
    background:
      linear-gradient(
        180deg,
        rgba(244, 247, 251, 0.94) 0%,
        rgba(244, 247, 251, 0.82) 42%,
        rgba(244, 247, 251, 0.55) 72%,
        rgba(244, 247, 251, 0.28) 100%
      ) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }

  body.light-mode .index-hero-premium .hero-title,
  body.light-mode .index-hero-premium h1,
  body.light-mode .index-hero-premium.hero h1 {
    color: #0F172A !important;
    text-shadow: none !important;
  }

  body.light-mode .index-hero-premium .am-subtitle,
  body.light-mode .index-hero-premium .hero p {
    color: #1E293B !important;
    text-shadow: none !important;
    background: rgba(244, 247, 251, 0.88);
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.light-mode .index-hero-premium .gradient-text {
    background: linear-gradient(135deg, #0D9488, #FF6A00) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
  }

  body.light-mode .index-hero-premium .hero-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0D9488 !important;
  }

  /* Inner page heroes: frosted overlay keeps photos + readable text */
  body.light-mode .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(244, 247, 251, 0.86) 0%,
      rgba(244, 247, 251, 0.7) 55%,
      rgba(244, 247, 251, 0.42) 100%
    );
  }

  body.light-mode .page-hero > .container {
    position: relative;
    z-index: 1;
  }

  body.light-mode .page-hero .am-title,
  body.light-mode .page-hero h1 {
    color: #0F172A !important;
  }

  body.light-mode .page-hero .gradient-text {
    background: linear-gradient(135deg, #0D9488, #FF6A00) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
  }

  body.light-mode .page-hero .am-subtitle {
    color: #334155 !important;
  }

  /* Dark mode hero stays light text */
  body:not(.light-mode) .index-hero-premium .hero-title,
  body:not(.light-mode) .index-hero-premium .am-subtitle {
    color: #F8FAFC !important;
  }

  .contact-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .contact-left,
  .contact-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .two-columns {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .cookie-consent,
  .cookie-container {
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
  }

  .cookie-buttons {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .cookie-btn {
    flex: 1 1 auto !important;
    min-height: 42px !important;
  }

  .service-note,
  .hours-block {
    max-width: 100%;
  }

  .hours-block__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  /* Kill leftover AOS horizontal offsets if JS still runs */
  [data-aos="fade-right"],
  [data-aos="fade-left"],
  [data-aos="fade-right"].aos-animate,
  [data-aos="fade-left"].aos-animate {
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════
   Interaction honesty: no fake clickables
   Only real controls get pointer + hover lift
   ═══════════════════════════════════════════ */

/* Static cards / decorative blocks */
article.card,
article.service-card,
article.am-card,
article.ar-project-card,
.card:not(a),
.service-card:not(a),
.am-card:not(a):not(button),
.ar-project-card:not(a),
.image-box,
.highlight-card,
.contact-form-card,
.service-note,
.hours-block,
.trustbar-item,
.offer-card:not(a),
.cert-card:not(a),
.feature-box:not(a) {
  cursor: default !important;
}

article.card:hover,
article.service-card:hover,
article.am-card:hover,
article.ar-project-card:hover,
.card:not(a):hover,
.service-card:not(a):hover,
.am-card:not(a):not(button):hover,
.ar-project-card:not(a):hover,
.image-box:hover,
.highlight-card:hover,
.contact-form-card:hover,
.service-note:hover,
.hours-block:hover,
.trustbar-item:hover,
.offer-card:not(a):hover,
.cert-card:not(a):hover,
.feature-box:not(a):hover {
  transform: none !important;
}

/* Real interactive elements stay clickable + pointer */
a,
button,
.btn,
.am-btn,
.theme-switch,
.theme-switch .slider,
.menu-btn,
.nav-dropdown__trigger,
.lang-switch__btn,
.cookie-btn,
.ar-contact-dock__toggle,
.ar-contact-dock__item,
a.service-card,
a.service-card.service-card--link,
a.service-circle,
a.card.card--link,
a.am-card--interactive,
label:has(input:not(:disabled)),
input[type="submit"],
input[type="button"],
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
select,
.contact-file-label,
.contact-file-action-btn,
[role="button"] {
  cursor: pointer;
  pointer-events: auto !important;
}

/* Disabled controls: no pointer */
label:has(input:disabled),
input:disabled,
button:disabled,
.btn:disabled {
  cursor: default !important;
}

/* AOS must never swallow clicks on real controls */
a[data-aos],
button[data-aos],
.btn[data-aos],
a.service-card[data-aos],
a.service-circle[data-aos],
.cta-section[data-aos],
.cta-section[data-aos] a,
.cta-section[data-aos] .btn,
.home-all-services-link__btn,
.contact-actions .btn,
.nav-call-direct {
  pointer-events: auto !important;
}

/* Hero overlays / carousel never block service circles & CTAs */
.index-hero-premium .hero-carousel,
.index-hero-premium .hero-carousel::before,
.index-hero-premium .hero-carousel::after,
.index-hero-premium.heitec-hero::before,
.index-hero-premium.heitec-hero::after,
.heitec-hero::after,
.floating-orb {
  pointer-events: none !important;
}

.index-hero-premium .heitec-hero-content,
.index-hero-premium .hero-content,
.index-hero-premium .service-circle,
.index-hero-premium a,
.index-hero-premium .btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}

/* ═══════════════════════════════════════════
   Dark mode clarity — no black-on-black icons
   ═══════════════════════════════════════════ */
body:not(.light-mode) {
  --ar-text-muted: #CBD5E1;
}

body:not(.light-mode) .am-subtitle,
body:not(.light-mode) .card p,
body:not(.light-mode) .service-card p,
body:not(.light-mode) .step-text p,
body:not(.light-mode) .contact-benefits li,
body:not(.light-mode) .feature-list li,
body:not(.light-mode) .two-columns p,
body:not(.light-mode) .ar-project-card__body p,
body:not(.light-mode) .footer-hours__list,
body:not(.light-mode) .cookie-text p {
  color: #CBD5E1 !important;
}

/* Image box with service icons — bright icons on dark card */
body:not(.light-mode) .image-box,
body:not(.light-mode) .image-box.image-box--cta-match {
  background: linear-gradient(160deg, rgba(26, 34, 45, 0.98), rgba(16, 21, 28, 0.98)) !important;
  border: 1px solid rgba(0, 232, 200, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.35) !important;
  color: #F8FAFC !important;
}

body:not(.light-mode) .image-box i,
body:not(.light-mode) .image-box.image-box--cta-match > i {
  color: #00E8C8 !important;
  filter: drop-shadow(0 0 12px rgba(0, 232, 200, 0.35));
}

body:not(.light-mode) .image-box p,
body:not(.light-mode) .image-box.image-box--cta-match p {
  color: #E2E8F0 !important;
  font-weight: 600 !important;
}

body:not(.light-mode) .image-box .btn-primary,
body:not(.light-mode) .image-box.image-box--cta-match .btn-primary {
  background: linear-gradient(135deg, #00E8C8, #00C4A8) !important;
  color: #0B0F14 !important;
  box-shadow: 0 8px 24px rgba(0, 196, 168, 0.3) !important;
}

body:not(.light-mode) .image-box .btn-primary i,
body:not(.light-mode) .image-box.image-box--cta-match .btn-primary i {
  color: #0B0F14 !important;
  filter: none !important;
}

body:not(.light-mode) .image-box .btn-primary:hover,
body:not(.light-mode) .image-box.image-box--cta-match .btn-primary:hover {
  background: linear-gradient(135deg, #FF6A00, #FF8A3D) !important;
  color: #FFFFFF !important;
}

body:not(.light-mode) .image-box .btn-primary:hover i,
body:not(.light-mode) .image-box.image-box--cta-match .btn-primary:hover i {
  color: #FFFFFF !important;
}

/* CTA block + dark buttons: clear borders, readable labels */
body:not(.light-mode) .cta-section {
  background: linear-gradient(145deg, rgba(26, 34, 45, 0.95), rgba(16, 21, 28, 0.98)) !important;
  border: 1px solid rgba(0, 232, 200, 0.26) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35) !important;
}

body:not(.light-mode) .cta-section h2 {
  color: #F8FAFC !important;
}

body:not(.light-mode) .cta-section p {
  color: #CBD5E1 !important;
}

body:not(.light-mode) .btn-dark,
body:not(.light-mode) .cta-section__btn {
  background: rgba(11, 15, 20, 0.65) !important;
  color: #00E8C8 !important;
  border: 1px solid rgba(0, 232, 200, 0.45) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

body:not(.light-mode) .btn-dark i,
body:not(.light-mode) .cta-section__btn i {
  color: #00E8C8 !important;
}

body:not(.light-mode) .btn-dark:hover,
body:not(.light-mode) .cta-section__btn:hover {
  background: linear-gradient(135deg, #FF6A00, #FF8A3D) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}

body:not(.light-mode) .btn-dark:hover i,
body:not(.light-mode) .cta-section__btn:hover i {
  color: #FFFFFF !important;
}

/* Cards / forms / notes — clearer separation from page bg */
body:not(.light-mode) .card,
body:not(.light-mode) .service-card,
body:not(.light-mode) .am-card,
body:not(.light-mode) .contact-form-card,
body:not(.light-mode) .highlight-card,
body:not(.light-mode) .ar-project-card,
body:not(.light-mode) .service-note,
body:not(.light-mode) .hours-block {
  border-color: rgba(0, 232, 200, 0.22) !important;
}

body:not(.light-mode) .section-tag {
  color: #FF8A3D !important;
  border-color: rgba(0, 232, 200, 0.35) !important;
  background: rgba(0, 232, 200, 0.08) !important;
}

body:not(.light-mode) .contact-form input,
body:not(.light-mode) .contact-form select,
body:not(.light-mode) .contact-form textarea,
body:not(.light-mode) .contact-form-select {
  background: #141A22 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(0, 232, 200, 0.22) !important;
}

body:not(.light-mode) .contact-form input::placeholder,
body:not(.light-mode) .contact-form textarea::placeholder {
  color: #94A3B8 !important;
}

body:not(.light-mode) .gdpr-checkbox,
body:not(.light-mode) .contact-gdpr {
  background: rgba(0, 232, 200, 0.06) !important;
  border: 1px solid rgba(0, 232, 200, 0.2) !important;
  color: #CBD5E1 !important;
}

body:not(.light-mode) .gdpr-checkbox label,
body:not(.light-mode) .contact-gdpr label {
  color: #CBD5E1 !important;
}

body:not(.light-mode) .footer-hours__label,
body:not(.light-mode) .footer-hours__list,
body:not(.light-mode) .footer-address,
body:not(.light-mode) .footer-bottom p {
  color: #CBD5E1 !important;
}

body:not(.light-mode) .footer h4 {
  color: #00E8C8 !important;
}

/* Light mode: restore original colorful cta-match box (unchanged look) */
body.light-mode .image-box.image-box--cta-match,
body.light-mode.page-index .image-box.image-box--cta-match,
html.light-mode body .image-box.image-box--cta-match {
  background: linear-gradient(135deg, #00E8C8, #e67e22) !important;
  background-image: linear-gradient(135deg, #00E8C8, #e67e22) !important;
  border: 1px solid rgba(11, 15, 20, 0.1) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
  color: #0B0F14 !important;
}

body.light-mode .image-box.image-box--cta-match > i,
body.light-mode.page-index .image-box.image-box--cta-match > i {
  color: #0B0F14 !important;
  filter: none !important;
}

body.light-mode .image-box.image-box--cta-match p,
body.light-mode.page-index .image-box.image-box--cta-match p {
  color: rgba(11, 15, 20, 0.9) !important;
  font-weight: 600 !important;
}

/* Dark pill button on the gradient — not teal-on-teal */
body.light-mode .image-box.image-box--cta-match .btn-primary,
body.light-mode.page-index .image-box.image-box--cta-match .btn-primary,
html.light-mode body .image-box.image-box--cta-match .btn-primary {
  background: #0B0F14 !important;
  background-image: none !important;
  color: #00E8C8 !important;
  border: none !important;
  box-shadow: 0 8px 26px rgba(11, 15, 20, 0.28) !important;
}

body.light-mode .image-box.image-box--cta-match .btn-primary i,
body.light-mode.page-index .image-box.image-box--cta-match .btn-primary i {
  color: #00E8C8 !important;
  filter: none !important;
}

body.light-mode .image-box.image-box--cta-match .btn-primary:hover,
body.light-mode.page-index .image-box.image-box--cta-match .btn-primary:hover {
  background: #12162a !important;
  background-image: none !important;
  color: #ffd15c !important;
}

body.light-mode .image-box.image-box--cta-match .btn-primary:hover i {
  color: #ffd15c !important;
}

/* ═══════════════════════════════════════════
   Premium contact dock — single elegant entry
   Desktop + mobile · light + dark
   ═══════════════════════════════════════════ */
.ar-contact-dock {
  position: fixed;
  z-index: 9995;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.35rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.ar-contact-dock__toggle,
.ar-contact-dock__panel,
.ar-contact-dock__item {
  pointer-events: auto;
}

.ar-contact-dock__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.7rem 1.15rem 0.7rem 0.85rem;
  border: 1px solid rgba(0, 232, 200, 0.35);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0B0F14;
  background: linear-gradient(135deg, #00E8C8 0%, #00C4A8 55%, #0D9488 100%);
  box-shadow:
    0 10px 32px rgba(0, 196, 168, 0.32),
    0 2px 8px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.ar-contact-dock__toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(0, 196, 168, 0.38),
    0 4px 12px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ar-contact-dock__toggle:focus-visible {
  outline: 2px solid #FF6A00;
  outline-offset: 3px;
}

.ar-contact-dock.is-open .ar-contact-dock__toggle {
  background: linear-gradient(135deg, #FF6A00, #FF8A3D);
  border-color: rgba(255, 106, 0, 0.45);
  color: #FFFFFF;
  box-shadow:
    0 12px 32px rgba(255, 106, 0, 0.35),
    0 2px 8px rgba(15, 23, 42, 0.16);
}

.ar-contact-dock__toggle-icon {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ar-contact-dock__toggle-icon i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  color: inherit !important;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ar-contact-dock__icon-close {
  opacity: 0;
  transform: rotate(-70deg) scale(0.65);
  pointer-events: none;
}

.ar-contact-dock.is-open .ar-contact-dock__icon-open {
  opacity: 0;
  transform: rotate(70deg) scale(0.65);
  pointer-events: none;
}

.ar-contact-dock.is-open .ar-contact-dock__icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
  pointer-events: auto;
}

.ar-contact-dock__toggle-label {
  line-height: 1;
}

.ar-contact-dock__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 11.5rem;
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 232, 200, 0.38);
  background: linear-gradient(
    165deg,
    rgba(22, 30, 40, 0.97) 0%,
    rgba(12, 18, 26, 0.98) 100%
  );
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 232, 200, 0.08),
    0 0 28px rgba(0, 196, 168, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s;
}

.ar-contact-dock.is-open .ar-contact-dock__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ar-contact-dock__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: #F8FAFC;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ar-contact-dock__item i {
  width: 1.15rem;
  text-align: center;
  font-size: 1rem;
  color: #00E8C8;
}

.ar-contact-dock__item:hover,
.ar-contact-dock__item:focus-visible {
  background: rgba(0, 232, 200, 0.12);
  color: #FFFFFF;
  outline: none;
}

.ar-contact-dock__item:hover i,
.ar-contact-dock__item:focus-visible i {
  color: #3CF0D4;
}

.ar-contact-dock__item--wa:hover {
  background: rgba(37, 211, 102, 0.14);
}

.ar-contact-dock__item--wa:hover i {
  color: #25D366;
}

/* Light mode */
body.light-mode .ar-contact-dock__toggle {
  color: #0B0F14;
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(135deg, #00E8C8 0%, #00C4A8 100%);
  box-shadow:
    0 10px 28px rgba(13, 148, 136, 0.28),
    0 2px 8px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.light-mode .ar-contact-dock.is-open .ar-contact-dock__toggle {
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF6A00, #FF8A3D);
  border-color: rgba(255, 106, 0, 0.35);
}

body.light-mode .ar-contact-dock__panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-mode .ar-contact-dock__item {
  color: #0F172A;
}

body.light-mode .ar-contact-dock__item i {
  color: #0D9488;
}

body.light-mode .ar-contact-dock__item:hover,
body.light-mode .ar-contact-dock__item:focus-visible {
  background: rgba(13, 148, 136, 0.08);
  color: #0F172A;
}

body.light-mode .ar-contact-dock__item:hover i {
  color: #0D9488;
}

body.light-mode .ar-contact-dock__item--wa:hover {
  background: rgba(37, 211, 102, 0.1);
}

body.light-mode .ar-contact-dock__item--wa:hover i {
  color: #128C7E;
}

/* Desktop: mid-right refined rail */
@media (min-width: 901px) {
  .ar-contact-dock {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    right: max(1.25rem, env(safe-area-inset-right));
  }

  .ar-contact-dock__toggle-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
    margin: 0;
  }

  .ar-contact-dock__toggle {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 18px;
  }

  .ar-contact-dock__toggle:hover .ar-contact-dock__toggle-label,
  .ar-contact-dock.is-open .ar-contact-dock__toggle-label {
    max-width: 5.5rem;
    opacity: 1;
    margin-left: 0.15rem;
  }

  .ar-contact-dock__toggle:hover,
  .ar-contact-dock.is-open .ar-contact-dock__toggle {
    width: auto;
    padding: 0 1.1rem 0 0.95rem;
    border-radius: 999px;
  }
}

/* Mobile: bottom-right pill; lift above cookie banner when open */
@media (max-width: 900px) {
  .ar-contact-dock {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  body:has(#cookieConsent.show) .ar-contact-dock {
    bottom: max(12.5rem, calc(env(safe-area-inset-bottom) + 11.5rem));
  }

  .ar-contact-dock__toggle {
    min-height: 50px;
    padding: 0.65rem 1.05rem 0.65rem 0.8rem;
    font-size: 0.88rem;
  }

  .ar-contact-dock__panel {
    min-width: min(12.5rem, calc(100vw - 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-contact-dock__toggle,
  .ar-contact-dock__panel,
  .ar-contact-dock__toggle-icon i,
  .ar-contact-dock__toggle-label {
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════
   GDPR cookie settings modal — readable always
   ═══════════════════════════════════════════ */
.ar-gdpr-modal,
#gdprModal.ar-gdpr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10020;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ar-gdpr-modal.is-open,
#gdprModal.ar-gdpr-modal.is-open {
  display: flex !important;
}

.ar-gdpr-modal[hidden] {
  display: none !important;
}

.ar-gdpr-modal.is-open[hidden] {
  display: flex !important;
}

.ar-gdpr-modal__panel,
#gdprModal.ar-gdpr-modal > .ar-gdpr-modal__panel,
#gdprModal.ar-gdpr-modal > div {
  width: min(440px, calc(100vw - 2rem));
  max-height: min(90dvh, 640px);
  overflow-y: auto;
  margin: 0;
  padding: 1.5rem 1.4rem 1.25rem;
  border-radius: 20px;
  background: #121820 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(0, 232, 200, 0.28) !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-sizing: border-box;
}

/* Kill legacy white-on-white text forced by style.css */
#gdprModal.ar-gdpr-modal h3,
#gdprModal.ar-gdpr-modal h4,
#gdprModal.ar-gdpr-modal p,
#gdprModal.ar-gdpr-modal label,
#gdprModal.ar-gdpr-modal span,
#gdprModal.ar-gdpr-modal em,
#gdprModal.ar-gdpr-modal button,
.ar-gdpr-modal__panel,
.ar-gdpr-modal__panel * {
  letter-spacing: normal !important;
  text-transform: none !important;
}

.ar-gdpr-modal__title,
#gdprModal.ar-gdpr-modal .ar-gdpr-modal__title,
#gdprModal.ar-gdpr-modal h3 {
  margin: 0 0 0.15rem !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #00E8C8 !important;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ar-gdpr-modal__intro {
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #CBD5E1 !important;
}

.ar-gdpr-modal__option {
  margin: 0 !important;
}

.ar-gdpr-modal__label,
#gdprModal.ar-gdpr-modal label,
#gdprModal.ar-gdpr-modal .ar-gdpr-modal__label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 232, 200, 0.12);
  cursor: pointer;
  color: #F8FAFC !important;
  box-sizing: border-box;
}

.ar-gdpr-modal__label:has(input:disabled) {
  cursor: default;
  opacity: 0.92;
}

.ar-gdpr-modal__label input[type="checkbox"],
#gdprModal.ar-gdpr-modal input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin-top: 0.15rem !important;
  accent-color: #00E8C8;
}

.ar-gdpr-modal__label span,
#gdprModal.ar-gdpr-modal label span,
#gdprModal.ar-gdpr-modal .ar-gdpr-modal__label span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: #F8FAFC !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.ar-gdpr-modal__label em {
  font-style: normal;
  font-weight: 400;
  color: #94A3B8 !important;
}

.ar-gdpr-modal__save,
#gdprModal.ar-gdpr-modal #gdprSave {
  width: 100% !important;
  min-height: 48px;
  margin-top: 0.35rem;
  padding: 0.8rem 1.1rem !important;
  border: none !important;
  border-radius: 999px !important;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0B0F14 !important;
  background: linear-gradient(135deg, #00E8C8, #00C4A8) !important;
  box-shadow: 0 10px 28px rgba(0, 196, 168, 0.28);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ar-gdpr-modal__save:hover {
  background: linear-gradient(135deg, #FF6A00, #FF8A3D) !important;
  color: #FFFFFF !important;
}

.ar-gdpr-modal__close,
#gdprModal.ar-gdpr-modal #gdprClose {
  width: 100% !important;
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0.65rem !important;
  border: none !important;
  border-radius: 12px;
  background: transparent !important;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #E2E8F0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ar-gdpr-modal__close:hover,
#gdprModal.ar-gdpr-modal #gdprClose:hover {
  color: #00E8C8 !important;
  background: rgba(0, 232, 200, 0.08) !important;
}

/* Light mode: white panel, dark readable text */
body.light-mode .ar-gdpr-modal,
body.light-mode #gdprModal.ar-gdpr-modal {
  background: rgba(15, 23, 42, 0.45);
}

body.light-mode .ar-gdpr-modal__panel,
body.light-mode #gdprModal.ar-gdpr-modal > .ar-gdpr-modal__panel,
body.light-mode #gdprModal.ar-gdpr-modal > div {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: rgba(13, 148, 136, 0.22) !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22) !important;
}

body.light-mode .ar-gdpr-modal__title,
body.light-mode #gdprModal.ar-gdpr-modal .ar-gdpr-modal__title,
body.light-mode #gdprModal.ar-gdpr-modal h3 {
  color: #0D9488 !important;
}

body.light-mode .ar-gdpr-modal__intro {
  color: #475569 !important;
}

body.light-mode .ar-gdpr-modal__label,
body.light-mode #gdprModal.ar-gdpr-modal label,
body.light-mode #gdprModal.ar-gdpr-modal .ar-gdpr-modal__label {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.08);
  color: #0F172A !important;
}

body.light-mode .ar-gdpr-modal__label span,
body.light-mode #gdprModal.ar-gdpr-modal label span,
body.light-mode #gdprModal.ar-gdpr-modal .ar-gdpr-modal__label span {
  color: #0F172A !important;
}

body.light-mode .ar-gdpr-modal__label em {
  color: #64748B !important;
}

body.light-mode .ar-gdpr-modal__close,
body.light-mode #gdprModal.ar-gdpr-modal #gdprClose {
  color: #334155 !important;
}

body.light-mode .ar-gdpr-modal__close:hover,
body.light-mode #gdprModal.ar-gdpr-modal #gdprClose:hover {
  color: #0D9488 !important;
  background: rgba(13, 148, 136, 0.08) !important;
}

/* Cookie banner link — brand teal, not default blue */
.cookie-consent a,
.cookie-text a {
  color: #00E8C8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.cookie-consent a:hover,
.cookie-text a:hover {
  color: #5EEAD4 !important;
}

body.light-mode .cookie-consent a,
body.light-mode .cookie-text a {
  color: #0D9488 !important;
}

body.light-mode .cookie-consent a:hover,
body.light-mode .cookie-text a:hover {
  color: #0F766E !important;
}

body.ar-gdpr-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   Closing section — one calm composition
   ═══════════════════════════════════════════ */
.section--closing {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.75rem, 6vw, 4.25rem);
}

.ar-closing {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.ar-closing .section-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.ar-closing__title {
  margin: 0 0 1rem !important;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

.ar-closing__lead {
  margin: 0 auto 1.5rem !important;
  max-width: 34rem;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

.ar-closing__list {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  max-width: 32rem;
  margin: 0 auto 1.75rem !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left;
}

.ar-closing__list li {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

.ar-closing__list i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: #00E8C8 !important;
}

.ar-closing__actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ar-closing__note {
  margin: 0 auto !important;
  max-width: 28rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 232, 200, 0.16);
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
  font-weight: 500;
}

body:not(.light-mode) .ar-closing__lead,
body:not(.light-mode) .ar-closing__list li {
  color: #CBD5E1 !important;
}

body:not(.light-mode) .ar-closing__note {
  color: #94A3B8 !important;
  border-top-color: rgba(0, 232, 200, 0.18);
}

body:not(.light-mode) .ar-closing__title {
  color: #F8FAFC !important;
}

body.light-mode .ar-closing__lead,
body.light-mode .ar-closing__list li {
  color: #475569 !important;
}

body.light-mode .ar-closing__note {
  color: #64748B !important;
  border-top-color: rgba(13, 148, 136, 0.18);
}

body.light-mode .ar-closing__title {
  color: #0F172A !important;
}

body.light-mode .ar-closing__list i {
  color: #0D9488 !important;
}

@media (max-width: 640px) {
  .ar-closing__list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    max-width: 18rem;
  }

  .ar-closing__lead {
    font-size: 1rem !important;
  }

  .ar-closing__note {
    padding-top: 1.1rem;
    font-size: 0.92rem !important;
  }
}

/* ——— Legal page card (Impressum) ——— */
.section--legal {
  padding-top: 1.5rem !important;
  /* Extra bottom space so floating Kontakt dock never covers last legal lines */
  padding-bottom: calc(3rem + 72px) !important;
}

.legal-card {
  background: var(--ar-card);
  border: 1px solid var(--ar-border);
  border-radius: 16px;
  box-shadow: var(--ar-shadow), 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 1.75rem 1.6rem 2.75rem;
  color: var(--ar-text);
}

body:not(.light-mode) .legal-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.legal-card__header {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ar-border);
}

.legal-card__title {
  margin: 0 !important;
  font-size: 1.28rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--ar-text) !important;
}

.legal-card__block {
  margin-bottom: 1.45rem;
}

.legal-card__block--last {
  margin-bottom: 0;
}

.legal-card__heading {
  margin: 0 0 0.65rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ar-teal-bright) !important;
}

body.light-mode .legal-card__heading {
  color: var(--ar-teal-deep) !important;
}

.legal-card__brand {
  margin: 0 0 0.35rem !important;
  font-size: 1.08rem !important;
  color: var(--ar-text) !important;
}

.legal-card__text {
  margin: 0 0 0.55rem !important;
  color: var(--ar-text-muted) !important;
  line-height: 1.55 !important;
}

.legal-card__text a {
  color: var(--ar-teal-bright) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

body.light-mode .legal-card__text a {
  color: var(--ar-teal-deep) !important;
}

.legal-card__text a:hover,
.legal-card__text a:focus-visible {
  border-bottom-color: currentColor;
}

.legal-card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 0.65rem !important;
  color: var(--ar-text) !important;
  line-height: 1.5 !important;
}

.legal-card__row:last-child {
  margin-bottom: 0 !important;
}

.legal-card__icon {
  flex-shrink: 0;
  width: 1.1rem;
  margin-top: 0.2rem;
  text-align: center;
  color: var(--ar-teal-bright);
  opacity: 0.92;
}

body.light-mode .legal-card__icon {
  color: var(--ar-teal-deep);
}

.legal-card__row a {
  color: var(--ar-text) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-card__row a:hover,
.legal-card__row a:focus-visible {
  color: var(--ar-teal-bright) !important;
  border-bottom-color: currentColor;
}

body.light-mode .legal-card__row a:hover,
body.light-mode .legal-card__row a:focus-visible {
  color: var(--ar-teal-deep) !important;
}

@media (min-width: 640px) {
  .legal-card {
    padding: 2rem 2.1rem 2.75rem;
  }
}

/* ——— Contact form: compact address + single upload ——— */
.contact-form .form-address-block {
  margin: 0.15rem 0 0.55rem;
  padding: 0;
  border: none;
  min-width: 0;
}

.contact-form .form-address-block > legend.estimate-attach-legend,
.contact-form .estimate-attach-legend {
  padding: 0;
  margin: 0.15rem 0 0.35rem !important;
  float: none;
  width: 100%;
  font-size: 0.82rem !important;
}

.contact-form .form-row.form-row--address {
  display: grid !important;
  gap: 0.55rem;
  margin: 0 0 0.55rem !important;
}

.contact-form .form-row.form-row--street-nr {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.contact-form .form-row.form-row--plz-ort {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  margin-bottom: 0 !important;
}

.contact-form .form-row.form-row--address .form-field {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.contact-form .form-address-block .form-field label {
  display: block;
  margin-bottom: 0.25rem !important;
  font-size: 0.8rem !important;
}

.contact-form .form-row.two-col {
  gap: 0.55rem !important;
  margin-bottom: 0.45rem !important;
}

.contact-form .form-field {
  margin-bottom: 0.45rem !important;
}

.contact-form label:not(.contact-gdpr label):not(.gdpr-checkbox label) {
  margin-bottom: 0.25rem !important;
  font-size: 0.82rem !important;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form .contact-form-select {
  margin-bottom: 0.45rem !important;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}

.contact-form textarea {
  min-height: 110px !important;
}

.contact-form-upload.estimate-attach-block {
  margin: 0 0 0.55rem !important;
}

.contact-file-actions--single {
  display: block !important;
  margin: 0 0 0.35rem !important;
}

.contact-file-actions--single .contact-file-action-btn {
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
}

.contact-form .contact-file-hint {
  margin: 0 0 0.35rem !important;
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
}

.contact-form .gdpr-checkbox.contact-gdpr {
  margin: 0.45rem 0 0.65rem !important;
}

.contact-form h3 {
  margin: 0 0 0.65rem !important;
  font-size: 1.1rem !important;
}

@media (max-width: 420px) {
  .contact-form .form-row.form-row--street-nr,
  .contact-form .form-row.form-row--plz-ort {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   Card layout: fill available width, one gutter
   Light + dark — consistent mobile rhythm
   ═══════════════════════════════════════════ */

:root {
  --ar-card-gutter: clamp(0.75rem, 3.2vw, 1rem);
  --ar-card-pad: 1.1rem;
  --ar-card-pad-y: 1.15rem;
  --ar-card-gap: 0.85rem;
}

.card,
.service-card,
.am-card,
.contact-form-card,
.highlight-card,
.image-box,
.form-card,
.legal-card,
.ar-project-card,
.feature-box,
.offer-card,
.cert-card,
.service-note,
.hours-block,
.quick-estimate-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.grid-4 > .card,
.grid-4 > .am-card,
.services-grid > .service-card,
.services-grid > .am-card,
.feature-grid > .feature-box,
.team-grid > .team-card,
.ar-project-grid > .ar-project-card {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

/* Kill narrow centered service column on tablet/phone */
#angebote .services-grid--home-leistungen.services-grid--home-three,
#angebote .home-all-services-link {
  max-width: 100% !important;
  width: 100% !important;
  margin-inline: 0 !important;
}

.feature-info-section .feature-grid > .feature-box {
  max-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  #angebote .services-grid--home-leistungen.services-grid--home-three,
  .services-grid,
  .grid-4,
  .feature-grid,
  .team-grid,
  .ar-project-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: var(--ar-card-gap) !important;
    justify-items: stretch !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* One outer gutter only — no section + container stacking */
  .section,
  .am-section,
  .estimate-section,
  .section--legal,
  .section--closing,
  .feature-info-section,
  .page-hero {
    padding-left: max(var(--ar-card-gutter), env(safe-area-inset-left)) !important;
    padding-right: max(var(--ar-card-gutter), env(safe-area-inset-right)) !important;
  }

  .container,
  .am-container,
  .am-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-inline: 0 !important;
  }

  .card,
  .service-card,
  .am-card,
  .am-card--feature,
  .am-card--service,
  .contact-form-card,
  .highlight-card,
  .image-box,
  .form-card,
  .legal-card,
  .ar-project-card,
  .feature-box,
  .offer-card,
  .cert-card,
  .service-note,
  .hours-block,
  .quick-estimate-card,
  .step-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .card,
  .am-card--feature,
  .card.am-card.am-card--feature {
    padding: var(--ar-card-pad-y) var(--ar-card-pad) !important;
  }

  .service-card,
  .am-card--service,
  a.service-card.service-card--link {
    padding: var(--ar-card-pad-y) var(--ar-card-pad) 1.45rem !important;
  }

  .contact-form-card,
  .quick-estimate-card,
  .form-card {
    padding: 1.05rem var(--ar-card-pad) !important;
    margin: 0 !important;
  }

  .highlight-card,
  .image-box,
  .feature-box,
  .offer-card {
    padding: var(--ar-card-pad-y) var(--ar-card-pad) !important;
  }

  .legal-card {
    padding: 1.35rem var(--ar-card-pad) 2rem !important;
  }

  .ar-project-card__body {
    padding: 0.95rem var(--ar-card-pad) 1.15rem !important;
  }

  .service-note,
  .service-note--banner,
  .hours-block {
    padding: 0.9rem var(--ar-card-pad) !important;
  }

  .step-item {
    padding: 0.9rem 0.95rem !important;
  }

  .contact-left,
  .contact-right,
  .contact-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .grid-4,
  .services-grid,
  .services-grid--home-leistungen,
  .feature-grid,
  .team-grid,
  .ar-project-grid,
  .certificates-grid {
    width: 100% !important;
    max-width: 100% !important;
    gap: var(--ar-card-gap) !important;
  }

  /* Cookie sheet aligns with card gutter */
  .cookie-consent,
  .cookie-container {
    left: max(var(--ar-card-gutter), env(safe-area-inset-left)) !important;
    right: max(var(--ar-card-gutter), env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .section,
  .am-section,
  .estimate-section {
    padding-left: max(1.1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1.1rem, env(safe-area-inset-right)) !important;
  }

  .container,
  .am-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .card,
  .am-card--feature,
  .service-card,
  .am-card--service,
  .contact-form-card,
  .highlight-card,
  .feature-box {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* Leistungen hero: keep size/overlay, crop more from the bottom so the head is visible */
.hero.page-hero.hero-services,
body.light-mode .hero.page-hero.hero-services,
body:not(.light-mode) .hero.page-hero.hero-services {
  background-position: 70% 12% !important;
}

@media (max-width: 768px) {
  .hero.page-hero.hero-services,
  body.light-mode .hero.page-hero.hero-services,
  body:not(.light-mode) .hero.page-hero.hero-services {
    background-position: 68% 8% !important;
  }
}

.seo-faq-section {
  padding-top: 2.5rem;
}

.seo-faq-list {
  max-width: 44rem;
  margin: 0 auto;
}

.seo-faq {
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.35rem 0;
}

.seo-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 0.9rem 0;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq p {
  margin: 0 0 1rem;
  line-height: 1.7;
  opacity: 0.88;
}

/* Hero circles: same look as before, just docked at the bottom of the photo */
.index-hero-premium .service-circles,
.page-index .index-hero-premium .service-circles,
.index-hero-premium .hero-circles-dock {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 0 !important;
  width: max-content !important;
  max-width: calc(100% - 1rem) !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.index-hero-premium .hero-content,
.index-hero-premium .heitec-hero-content {
  padding-bottom: 0 !important;
}

/* Glass only in light mode — filled and readable */
body.light-mode .index-hero-premium .service-circle,
body.light-mode.page-index .index-hero-premium .service-circle,
html.light-mode body.page-index .index-hero-premium .service-circle {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.62) 55%, rgba(232, 255, 250, 0.7) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35) !important;
  color: #0F172A !important;
}

body.light-mode .index-hero-premium .service-circle i {
  color: #0D9488 !important;
  filter: none !important;
}

body.light-mode .index-hero-premium .service-circle span {
  color: #0F172A !important;
  text-shadow: none !important;
}

body.light-mode .index-hero-premium .service-circle:hover {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.74) 100%) !important;
}

/* Dark mode: solid filled circles, not empty glass */
body:not(.light-mode) .index-hero-premium .service-circle {
  background: rgba(20, 26, 34, 0.92) !important;
  border: 1.5px solid rgba(0, 232, 200, 0.55) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #00E8C8 !important;
}

body:not(.light-mode) .index-hero-premium .service-circle i {
  color: #00E8C8 !important;
}

body:not(.light-mode) .index-hero-premium .service-circle span {
  color: #F8FAFC !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 768px) {
  .index-hero-premium.heitec-hero,
  .hero.heitec-hero.index-hero-premium {
    padding-bottom: 7rem !important;
  }

  .index-hero-premium .service-circles,
  .index-hero-premium .hero-circles-dock {
    gap: 0.65rem !important;
    bottom: max(0.85rem, env(safe-area-inset-bottom)) !important;
  }
}

/* Headline on the photo, top under the nav, no card */
.index-hero-premium.heitec-hero,
.hero.heitec-hero.index-hero-premium {
  justify-content: flex-start !important;
  padding: 7.1rem 5% 7.25rem !important;
}

.index-hero-premium .hero-content,
.index-hero-premium .heitec-hero-content,
.hero.heitec-hero .hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  align-self: center !important;
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  max-width: 38rem !important;
  margin: 0 auto !important;
  padding: 0 0.5rem !important;
  text-align: center !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.index-hero-premium .hero-badge {
  margin: 0 0 0.65rem !important;
}

.index-hero-premium .hero-title,
.index-hero-premium.hero h1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.4rem !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.index-hero-premium .hero-title .gradient-text {
  display: block;
  font-size: clamp(2.35rem, 4.6vw, 3.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.55);
}

.index-hero-premium .hero-title-line {
  display: block;
  max-width: 22rem;
  font-size: clamp(0.98rem, 1.35vw, 1.14rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  line-height: 1.45 !important;
  color: #1E293B !important;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.7) !important;
}

body:not(.light-mode) .index-hero-premium .hero-title-line {
  color: #F8FAFC !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45) !important;
}

body.light-mode .index-hero-premium .hero-carousel::before,
body.light-mode .hero-carousel::before {
  content: "" !important;
  display: block !important;
  opacity: 1 !important;
  background: linear-gradient(
    180deg,
    rgba(244, 247, 251, 0.72) 0%,
    rgba(244, 247, 251, 0.28) 28%,
    rgba(244, 247, 251, 0.06) 52%,
    transparent 72%
  ) !important;
}

body:not(.light-mode) .index-hero-premium .hero-carousel::before {
  content: "" !important;
  display: block !important;
  opacity: 1 !important;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 20, 0.62) 0%,
    rgba(11, 15, 20, 0.28) 30%,
    rgba(11, 15, 20, 0.08) 55%,
    transparent 75%
  ) !important;
}

body.light-mode.page-index .index-hero-premium.heitec-hero::before,
body.light-mode .index-hero-premium.heitec-hero::before,
body.light-mode.page-index .index-hero-premium.heitec-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

@media (max-width: 768px) {
  .index-hero-premium.heitec-hero,
  .hero.heitec-hero.index-hero-premium {
    justify-content: flex-start !important;
    padding: 5.85rem 5% 6.75rem !important;
  }

  .index-hero-premium .hero-title .gradient-text {
    font-size: clamp(1.9rem, 8.4vw, 2.35rem) !important;
  }

  .index-hero-premium .hero-title-line {
    max-width: 18rem;
    font-size: 0.92rem !important;
  }

  .index-hero-premium .carousel-slide img,
  .index-hero-premium .carousel > .carousel-slide:first-child img,
  body.light-mode .index-hero-premium .carousel-slide img,
  body:not(.light-mode) .index-hero-premium .carousel-slide img {
    object-position: 58% 38% !important;
  }
}
