/* ==========================================================================
   DenClean Gebäudereinigung — 3D & Motion Redesign Stylesheet
   Brand Palette preserved from denclean.de:
   - Primary Cyan: #0891B2 | Highlight Cyan: #22D3EE
   - Dark Slate: #565D68 | Ink: #1F2937 | Deep Navy: #001D4B / #003A96
   - Ice / Off-White Surfaces: #F8FAFC / #FFFFFF (>70% Whitespace Ratio)
   ========================================================================== */

:root {
  --cyan-primary: #0891B2;
  --cyan-dark: #0E7490;
  --cyan-glow: #22D3EE;
  --cyan-soft: #ECFEFF;
  --navy-deep: #001D4B;
  --navy-mid: #003A96;
  --slate-brand: #565D68;
  --slate-muted: #8C9299;
  --slate-border: #CBD5E1;
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-600: #475569;
  --surface-ice: #F8FAFC;
  --surface-light: #FBFDFF;
  --surface-white: #FFFFFF;
  --success: #059669;
  --success-soft: #ECFDF5;
  --warning-soft: #FFFBEB;
  --radius-card: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 20px rgba(0, 29, 75, 0.05);
  --shadow-md: 0 16px 40px rgba(0, 29, 75, 0.08);
  --shadow-lg: 0 28px 64px rgba(0, 29, 75, 0.14);
  --font-display: "Montserrat", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Poppins", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Open Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1220px;
  --header-height: 78px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background-color: var(--surface-white);
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: #0E7490;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #075985;
}

:focus-visible {
  outline: 3px solid var(--cyan-glow);
  outline-offset: 3px;
}

button:disabled,
.btn:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn:active,
button:not(:disabled):active {
  transform: translateY(0) scale(0.99);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

.container {
  width: min(var(--container-max), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 8.5vw, 116px) 0;
  position: relative;
}

.section--ice {
  background: linear-gradient(180deg, var(--surface-ice) 0%, var(--surface-white) 100%);
}

.section--navy {
  background: radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.16), transparent 45%),
              linear-gradient(135deg, #001436 0%, var(--navy-deep) 55%, #063554 100%);
  color: #fff;
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(8, 145, 178, 0.1);
  color: var(--cyan-dark);
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section--navy .eyebrow {
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan-glow);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.38rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--ink-600);
  margin: 0;
}

.section--navy .lead {
  color: #D1D5DB;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-nav);
  font-size: 0.96rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.btn--primary {
  background: #0E7490;
  color: #FFFFFF;
  border-radius: 60px;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.28);
}

.btn--primary:hover {
  background: #075985;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(7, 89, 133, 0.36);
}

.btn--glow {
  background: linear-gradient(135deg, #38BDF8 0%, #67E8F9 100%);
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn--glow:hover {
  background: linear-gradient(135deg, #67E8F9 0%, #A5F3FC 100%);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.48);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--cyan-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: #0E7490;
  color: #0E7490;
}

.btn--outline:hover {
  background: #0E7490;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 700;
  color: #0E7490;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s ease, gap 0.2s ease;
}

.btn-text-link:hover {
  color: #075985;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Header (#site-header) — Luminous Minimalist Glass Header & Single CTA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 29, 75, 0.08);
  box-shadow: 0 4px 20px rgba(0, 29, 75, 0.04);
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(8, 145, 178, 0.18);
  box-shadow: 0 10px 30px rgba(0, 29, 75, 0.09);
}

.site-header .container {
  width: min(1340px, calc(100% - 28px));
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--cyan-primary);
}

.brand-logo__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 3px;
  object-fit: contain;
  border: 1px solid rgba(8, 145, 178, 0.2);
  box-shadow: 0 4px 14px rgba(0, 29, 75, 0.08);
  flex-shrink: 0;
}

.brand-logo__accent {
  color: var(--cyan-primary);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.primary-nav__link {
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 11px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.primary-nav__link:hover {
  color: var(--navy-deep);
  background: rgba(8, 145, 178, 0.08);
  border-color: transparent;
}

.primary-nav__link[aria-current="page"] {
  color: var(--cyan-dark);
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(8, 145, 178, 0.24);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
}

.header-actions .btn--primary {
  background: linear-gradient(135deg, #0E7490 0%, var(--navy-deep) 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.28);
  font-weight: 700;
}

.header-actions .btn--primary:hover {
  background: linear-gradient(135deg, #075985 0%, #022B69 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 29, 75, 0.28);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-deep);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(8, 145, 178, 0.07);
  border: 1px solid rgba(8, 145, 178, 0.2);
  white-space: nowrap;
}

.header-phone:hover {
  background: rgba(8, 145, 178, 0.14);
  border-color: var(--cyan-primary);
  color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 29, 75, 0.16);
  background: rgba(248, 250, 252, 0.95);
  color: var(--navy-deep);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--cyan-soft);
  border-color: #0E7490;
  color: #0E7490;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  padding: 24px 20px 40px;
  z-index: 1100;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.mobile-drawer__link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-nav);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--surface-ice);
  border: 1px solid transparent;
}

.mobile-drawer__link:hover {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.mobile-drawer__link[aria-current="page"] {
  background: var(--cyan-soft);
  color: #0E7490;
  border-color: rgba(14, 116, 144, 0.28);
  font-weight: 700;
}

@media (max-width: 1440px) {
  .header-phone {
    display: none;
  }
  .site-header__inner {
    gap: 10px;
  }
}

@media (max-width: 1240px) {
  .primary-nav__link {
    padding: 6px 8px;
    font-size: 0.81rem;
  }
  .header-actions {
    gap: 6px;
  }
}

@media (max-width: 1140px) {
  .site-header__inner {
    gap: 8px;
  }
  .primary-nav__list {
    gap: 2px;
  }
  .primary-nav__link {
    padding: 6px 6px;
    font-size: 0.77rem;
  }
  .header-actions .btn--sm {
    padding: 7px 10px;
    font-size: 0.76rem;
  }
}

@media (max-width: 980px) {
  .primary-nav,
  .header-actions .header-portal-link {
    display: none;
  }
  .header-actions .btn--primary,
  .site-header--legal .header-actions .btn {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    gap: 8px;
  }
  .brand-logo {
    font-size: 1.06rem;
    gap: 8px;
  }
  .brand-logo__mark {
    width: 38px;
    height: 38px;
  }
  .header-actions .btn--primary,
  .site-header--legal .header-actions .btn {
    padding: 9px 12px;
    font-size: 0.76rem;
    min-height: 44px;
  }
}

/* ==========================================================================
   Hero Section (#hero) — Varianta A + B + C:
   Luminous Split-Screen (>70% Whitespace) & Framed Architectural 3D Portal
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(580px, 74vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(36px, 4.5vh, 60px) 0 clamp(68px, 7.5vh, 96px);
  background:
    radial-gradient(circle at 12% 18%, rgba(8, 145, 178, 0.07), transparent 42%),
    radial-gradient(circle at 82% 52%, rgba(0, 58, 150, 0.06), transparent 48%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 56%, #F4F9FD 100%);
  color: var(--navy-deep);
  overflow: hidden;
}

.hero__banner-art,
.hero__scrim {
  display: none;
}

.hero__fallback-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 76% 44%, rgba(34, 211, 238, 0.14), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(8, 145, 178, 0.06), transparent 50%);
  pointer-events: none;
}

/* Framed Architectural 3D Portal on the right half of desktop Hero */
.hero__canvas-wrap {
  position: absolute;
  top: clamp(28px, 4vh, 48px);
  bottom: clamp(48px, 6vh, 72px);
  right: max(16px, calc((100% - var(--container-max)) / 2 + 8px));
  width: clamp(340px, 43vw, 540px);
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(34, 211, 238, 0.24) 0%, transparent 52%),
    linear-gradient(145deg, #0B356B 0%, #052046 58%, #03132B 100%);
  border: 1px solid rgba(14, 165, 233, 0.34);
  box-shadow:
    0 28px 64px rgba(0, 29, 75, 0.16),
    0 6px 20px rgba(8, 145, 178, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  pointer-events: auto;
}

.hero__canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  pointer-events: none;
}

.hero__content,
.hero__hud,
.hero__kpi-strip,
.hero-kpis,
.hero-path-switcher {
  pointer-events: auto;
}

.hero__content {
  max-width: 610px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(8, 145, 178, 0.09);
  border: 1px solid rgba(8, 145, 178, 0.26);
  color: var(--cyan-dark);
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero__pulse {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.7);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(8, 145, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0); }
}

.hero__title {
  color: var(--navy-deep);
  margin-bottom: 18px;
  text-shadow: none;
  font-size: clamp(1.95rem, 3.8vw, 3.35rem);
  line-height: 1.13;
}

.hero__title-highlight {
  background: linear-gradient(95deg, var(--navy-deep) 0%, var(--cyan-primary) 58%, #0284C7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.04rem, 1.38vw, 1.2rem);
  color: var(--ink-700);
  max-width: 56ch;
  margin: 0 0 24px;
  line-height: 1.62;
}

/* Interactive B2B / B2C Quick Path Switcher in Hero (Varianta C) */
.hero-path-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  max-width: 560px;
}

.hero-path-switcher [data-hero-segment],
.hero-path-card,
.hero-path-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(8, 145, 178, 0.22);
  box-shadow: 0 8px 24px rgba(0, 29, 75, 0.06);
  color: var(--navy-deep);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.22s ease,
              box-shadow 0.25s var(--ease-out), background-color 0.22s ease;
}

.hero-path-switcher [data-hero-segment]:hover,
.hero-path-switcher [data-hero-segment].is-active,
.hero-path-switcher [data-hero-segment][aria-pressed="true"],
.hero-path-switcher [data-hero-segment][aria-selected="true"],
.hero-path-card:hover,
.hero-path-card.is-active {
  border-color: var(--cyan-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDFA 100%);
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.16);
  transform: translateY(-2px);
}

.hero-path-switcher [data-hero-segment] strong,
.hero-path-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.hero-path-switcher [data-hero-segment] span,
.hero-path-switcher [data-hero-segment] small,
.hero-path-card__sub,
.hero-path-card__desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-600);
  font-weight: 600;
}

.hero-path-card__tag,
.hero-path-switcher__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.1);
  color: var(--cyan-dark);
  font-family: var(--font-nav);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero__actions .btn--glow {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0E7490 100%);
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(0, 29, 75, 0.22);
}

.hero__actions .btn--glow:hover {
  background: linear-gradient(135deg, #001436 0%, #075985 100%);
  color: #FFFFFF;
  box-shadow: 0 18px 38px rgba(14, 116, 144, 0.34);
}

.hero__actions .btn--ghost-light {
  background: #FFFFFF;
  border-color: rgba(0, 29, 75, 0.18);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}

.hero__actions .btn--ghost-light:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-primary);
  color: var(--navy-deep);
}

.hero__micro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
}

.hero__micro-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__check {
  color: var(--cyan-primary);
  font-weight: 800;
}

/* Clean KPI Strip (or compact base bar if .hero__hud is used) */
.hero__kpi-strip,
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 145, 178, 0.2);
  box-shadow: var(--shadow-sm);
}

.hero__hud {
  align-self: end;
  justify-self: end;
  width: min(440px, 100%);
  margin-top: 0;
  margin-bottom: 120px;
  background: rgba(4, 22, 50, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 20px;
  padding: 16px 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px rgba(0, 15, 41, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero__hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hero__hud-label {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-glow);
}

.hero__hud-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FDE68A;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero__hud-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.hud-stat {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 1240px) {
  .hero__hud-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hud-stat__val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.hud-stat__lbl {
  display: block;
  font-size: 0.68rem;
  color: #CBD5E1;
  margin-top: 2px;
  line-height: 1.25;
}

.hero__hud-note {
  font-size: 0.78rem;
  color: #E2E8F0;
  margin: 0 0 6px;
  line-height: 1.4;
}

.hero__hud-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--cyan-glow);
  opacity: 0.92;
}

@media (max-width: 920px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 32px 0 64px;
  }
  .hero__container {
    order: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__canvas-wrap {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(calc(100% - 32px), 680px);
    height: 280px;
    margin: 22px auto 0;
    border-radius: 22px;
  }
  .hero__hud {
    justify-self: start;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }
  .hero__hud-stats,
  .hero__kpi-strip,
  .hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-path-switcher {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Trust & Credentials Bar (#vertrauen)
   ========================================================================== */
.trust-bar {
  position: relative;
  z-index: 5;
  margin-top: -36px;
  margin-bottom: 12px;
}

.trust-bar__grid {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(8, 145, 178, 0.16);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px;
}

.trust-badge__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 2px;
}

.trust-badge__desc {
  font-size: 0.78rem;
  color: var(--ink-600);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .trust-bar__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .trust-bar {
    margin-top: -22px;
  }
  .trust-bar__grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
}

/* ==========================================================================
   3D Tilt & Specular Glare Card System
   ========================================================================== */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  will-change: transform;
  position: relative;
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.24),
    transparent 55%
  );
  opacity: var(--glare-opacity, 0);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* ==========================================================================
   Section 2: About Teaser (#ueber-uns) — Rounded 20px 2-column card
   ========================================================================== */
.about-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.45);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.about-visual {
  position: relative;
  background: linear-gradient(145deg, #E2E8F0 0%, #001D4B 100%);
  border-radius: var(--radius-card);
  color: #fff;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(8, 145, 178, 0.16);
}

.about-visual__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(1.04) contrast(1.02);
  transition: transform 0.6s var(--ease-out);
}

.about-visual:hover .about-visual__photo {
  transform: scale(1.03);
}

.about-visual__overlay {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 20, 54, 0.58) 32%, rgba(0, 22, 56, 0.88) 100%);
}

.about-visual__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .about-visual__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about-pillar {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-pillar strong {
  display: block;
  font-size: 0.84rem;
  color: #67E8F9;
  margin-bottom: 2px;
}

.about-pillar span {
  font-size: 0.75rem;
  color: #F1F5F9;
  line-height: 1.35;
  display: block;
}

.about-content__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-ice);
  border: 1px solid rgba(8, 145, 178, 0.2);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-deep);
}

@media (max-width: 880px) {
  .about-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Section 3: Services Overview (#leistungen)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.5);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow: var(--shadow-md);
}

.service-card--extra[hidden] {
  display: none;
}

.service-card__media {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--surface-ice);
  border: 1px solid rgba(195, 198, 202, 0.35);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-soft), #CFFAFE);
  color: var(--cyan-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(16px);
}

.service-card__tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-ice);
  color: var(--cyan-dark);
  border: 1px solid rgba(8, 145, 178, 0.2);
}

.service-card__desc {
  color: var(--ink-600);
  font-size: 0.94rem;
  margin: 0 0 18px;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__list li::before {
  content: "✓";
  color: var(--cyan-primary);
  font-weight: 800;
}

.service-card__foot {
  padding-top: 16px;
  border-top: 1px solid rgba(195, 198, 202, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.services-cta-wrap {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Section 3b: 4-Step Workflow ("In 4 Schritten zur strahlenden Sauberkeit" #ablauf)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

.process-step {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid rgba(8, 145, 178, 0.18);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.25s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-primary);
  box-shadow: var(--shadow-md);
}

.process-step__num,
.process-step__number,
.process-step__badge,
.process-step__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-soft) 0%, #CFFAFE 100%);
  border: 1px solid rgba(8, 145, 178, 0.28);
  color: var(--cyan-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
}

.process-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.process-step h3,
.process-step__title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}

.process-step p,
.process-step__desc,
.process-step__text {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-600);
  margin: 0;
}

.process-step__meta,
.process-step__tag {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(203, 213, 225, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-dark);
}

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

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Interactive Festpreis-Orientierungsrechner (#rechner)
   ========================================================================== */
.calculator-shell {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(8, 145, 178, 0.2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.calc-controls {
  padding: clamp(24px, 4vw, 40px);
}

.calc-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 5px;
  border-radius: 20px;
  background: var(--surface-ice);
  border: 1px solid rgba(195, 198, 202, 0.5);
  margin-bottom: 24px;
}

.calc-tab {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-brand);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.calc-tab:not([aria-selected="true"]):hover {
  background: rgba(14, 116, 144, 0.09);
  color: var(--navy-deep);
}

.calc-tab[aria-selected="true"] {
  background: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.calc-field {
  margin-bottom: 20px;
}

.calc-field label,
.calc-field__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.calc-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--slate-border);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink-900);
  background: #fff;
}

.calc-range {
  width: 100%;
  min-height: 44px;
  accent-color: #0E7490;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.calc-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
}

.calc-freq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.freq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1.5px solid var(--slate-border);
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.freq-chip:hover {
  border-color: #0E7490;
  background: rgba(14, 116, 144, 0.06);
  color: var(--navy-deep);
}

.freq-chip.is-active {
  border-color: #0E7490;
  background: var(--cyan-soft);
  color: #0E7490;
}

.freq-chip__badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.freq-chip.is-active .freq-chip__badge {
  background: #0E7490;
  color: #fff;
}

.calc-consult-box {
  background: var(--surface-ice);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-left: 4px solid var(--cyan-primary);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.55;
}

.calc-consult-box[hidden],
.calc-method-note[hidden],
.calc-field[hidden] {
  display: none;
}

.calc-consult-box strong {
  display: block;
  color: var(--navy-deep);
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.calc-method-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.22);
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-700);
}

.calc-method-note strong {
  color: var(--navy-deep);
}

.calc-result {
  background: linear-gradient(155deg, var(--navy-deep) 0%, #0A385C 100%);
  color: #fff;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.calc-price-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 16px;
  padding: 20px;
}

.calc-price-box__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-glow);
  font-weight: 700;
}

.calc-price-box__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  margin: 6px 0;
  color: #fff;
}

.calc-price-box__sub {
  font-size: 0.86rem;
  color: #CBD5E1;
  margin: 0;
}

.calc-tax-banner {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #ECFDF5;
}

.calc-tax-banner[hidden] {
  display: none;
}

.calc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: #E2E8F0;
}

.calc-actions,
.calc-result__actions {
  display: grid;
  gap: 10px;
}

#calc-whatsapp-btn,
.btn--whatsapp {
  background: #047857;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.28);
}

#calc-whatsapp-btn:hover,
.btn--whatsapp:hover {
  background: #065F46;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(4, 120, 87, 0.38);
}

@media (max-width: 900px) {
  .calculator-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Portfolio & Vorher/Nachher Slider (#portfolio)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, 0.25);
  box-shadow: var(--shadow-lg);
  user-select: none;
  -webkit-user-select: none;
  background: #0F172A;
}

.ba-layer {
  position: absolute;
  inset: 0;
  user-select: none;
  -webkit-user-select: none;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.ba-layer--after {
  clip-path: inset(0 0 0 var(--split, 52%));
}

.ba-label {
  position: absolute;
  top: 16px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
}

.ba-label--before {
  left: 16px;
}

.ba-label--after {
  right: 16px;
  background: rgba(14, 116, 144, 0.96);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 52%);
  width: 3px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ba-slider:focus-within .ba-handle {
  outline: 2px solid #0E7490;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.45), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

.method-cards {
  display: grid;
  gap: 16px;
}

.method-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(195, 198, 202, 0.5);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.method-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.method-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Reviews (#bewertungen)
   ========================================================================== */
.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(8, 145, 178, 0.25);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

.stars {
  color: #F59E0B;
  letter-spacing: 2px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.5);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.review-card__quote {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.6;
}

.review-card__author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-deep);
}

.review-card__meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-600);
}

@media (max-width: 1040px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Compact Regional Coverage Strip (#einsatzgebiet)
   ========================================================================== */
.region-strip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.30);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3.5vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(10px);
}

.region-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #FFFFFF;
  font-family: var(--font-nav);
  font-size: 0.88rem;
  font-weight: 600;
}

.region-pill__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* ==========================================================================
   FAQ Accordion (#faq)
   ========================================================================== */
.faq-list {
  max-width: 880px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(195, 198, 202, 0.55);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-deep);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-trigger:hover {
  background: var(--surface-ice);
  color: #0E7490;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--cyan-primary);
  color: #fff;
}

.faq-panel {
  padding: 0 24px 20px;
  color: var(--ink-600);
  font-size: 0.95rem;
}

.faq-panel[hidden] {
  display: none;
}

/* ==========================================================================
   Contact Section (#kontakt) & Karriere Strip (#karriere)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(155deg, var(--navy-deep) 0%, #07385B 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-lg);
}

.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 14px;
}

.contact-detail-list a {
  color: var(--cyan-glow);
  font-weight: 600;
}

.contact-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.55);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--slate-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: #fff;
}

.form-control:focus {
  border-color: var(--cyan-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-notice {
  background: var(--surface-ice);
  border-left: 4px solid var(--cyan-primary);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--ink-700);
  margin-bottom: 16px;
}

.form-feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--success-soft);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-feedback[hidden] {
  display: none;
}

.karriere-strip {
  margin-top: 32px;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(8, 145, 178, 0.22);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Section 4: Social Strip (#social) & Footer (#site-footer)
   ========================================================================== */
.social-strip {
  background: var(--surface-white);
  border-top: 1px solid rgba(195, 198, 202, 0.4);
  padding: 44px 0;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(195, 198, 202, 0.65);
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.social-pill:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
  transform: translateY(-2px);
}

.site-footer {
  background: #565D68;
  color: #E5E7EB;
  padding: 56px 0 116px;
}

#rechner,
#preisrechner,
#kontakt,
#bewerbung,
#contact-form,
#career-form {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.site-footer .brand-logo__accent {
  color: #67E8F9;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 0.9rem;
}

.footer-list a {
  color: #F3F4F6;
}

.footer-list a:hover {
  color: var(--cyan-glow);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: #E5E7EB;
}

.footer-bottom a {
  color: #F3F4F6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--cyan-glow);
}

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

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Sticky Dual-Action Funnel
   ========================================================================== */
.sticky-funnel {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  z-index: 940;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 29, 75, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
}

.sticky-funnel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.drawer-open .sticky-funnel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-funnel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-nav);
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

.sticky-funnel__btn--wa {
  background: #047857;
}

.sticky-funnel__btn--wa:hover {
  background: #065F46;
  color: #fff;
}

.sticky-funnel__btn--call {
  background: rgba(255, 255, 255, 0.12);
}

.sticky-funnel__btn--call:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.sticky-funnel__btn--quote {
  background: #67E8F9;
  color: var(--navy-deep);
  font-weight: 700;
}

.sticky-funnel__btn--quote:hover {
  color: var(--navy-deep);
  background: #A5F3FC;
}

@media (min-width: 641px) {
  .footer-bottom {
    padding-right: 170px;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    min-height: 44px;
  }
  .contact-form label a,
  .wix-check-label a,
  .calc-auth-consent a {
    display: inline-block;
    padding: 14px 4px;
    margin: -14px -4px;
  }
}

@media (max-width: 640px) {
  .hero__badge,
  .region-pill,
  .reviews-summary {
    border-radius: 16px;
  }
  .sticky-funnel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 6px;
    gap: 6px;
    justify-content: space-between;
  }
  .sticky-funnel__btn {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 0.8rem;
  }
  .sticky-funnel__hide-xs {
    display: none;
  }
  .site-footer {
    padding-bottom: 120px;
  }
}

/* ==========================================================================
   Scroll-Reveal Choreography
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ==========================================================================
   Legal / Subpage Container
   ========================================================================== */
.legal-hero {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: center;
  background: linear-gradient(128deg, #565D68 0%, #1A3A57 58%, var(--navy-deep) 100%);
  color: #fff;
  padding: 56px 0 44px;
  overflow: hidden;
}

.legal-hero .container,
.subpage-hero .container {
  position: relative;
  z-index: 3;
}

.subpage-3d-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.subpage-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.subpage-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(16, 24, 38, 0.90) 0%, rgba(24, 38, 58, 0.56) 52%, rgba(0, 29, 75, 0.14) 100%);
  pointer-events: none;
}

.subpage-hero::after,
.legal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0%, var(--cyan-glow) 50%, transparent 100%);
  opacity: 0.65;
}

.legal-hero .eyebrow {
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan-glow);
}

.legal-hero .lead {
  color: #E5E7EB;
}

.legal-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.5);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  overflow-wrap: break-word;
}

.legal-card h2 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--navy-deep);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.05rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--cyan-dark);
}

.legal-card p,
.legal-card li {
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.subpage-hero {
  position: relative;
  background: linear-gradient(128deg, #565D68 0%, #6D7480 20%, #1A3A57 62%, #001D4B 100%);
  color: #fff;
  padding: clamp(52px, 6.5vw, 82px) 0;
  overflow: hidden;
}

.subpage-hero .eyebrow {
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan-glow);
}

.subpage-hero .lead {
  color: #E2E8F0;
  max-width: 64ch;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan-glow);
  margin-bottom: 16px;
}

.subpage-back:hover {
  color: #fff;
}

.subpage-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.b2b-highlight-strip {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.30);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: #E2E8F0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.5);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.case-card__visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 210px;
  position: relative;
}

.case-card__half {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.78rem;
  font-weight: 700;
}

.case-card__half img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-card__badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.case-card__half--before {
  background: #334155;
  color: #E2E8F0;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
}

.case-card__half--before .case-card__badge {
  background: rgba(15, 23, 42, 0.84);
  color: #F9FAFB;
}

.case-card__half--after {
  background: #0891B2;
  color: #fff;
}

.case-card__half--after .case-card__badge {
  background: rgba(14, 116, 144, 0.96);
  color: #FFFFFF;
}

/* ==========================================================================
   Team Banner & 6-Member Team Gallery (ueber-uns.html)
   ========================================================================== */
.team-banner-figure {
  margin: 0 0 36px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(195, 198, 202, 0.5);
  box-shadow: var(--shadow-md);
  background: var(--slate-brand);
}

.team-banner-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
}

.team-banner-figure figcaption {
  padding: 14px 22px;
  background: #fff;
  color: var(--ink-700);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.5);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.team-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-ice);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-card__monogram {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #565D68 0%, #0E7490 60%, #0891B2 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.team-card__monogram-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(34, 211, 238, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.team-card__body {
  padding: 20px 22px;
}

.team-card__role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-dark);
  margin: 0;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-ice);
  border: 1px solid rgba(195, 198, 202, 0.35);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.google-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.google-review-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.case-card__body {
  padding: 22px;
  flex: 1;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.blog-filter-btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--slate-border);
  background: #fff;
  color: var(--ink-700);
  font-family: var(--font-nav);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-filter-btn:not(.is-active):hover {
  border-color: #0E7490;
  background: var(--cyan-soft);
  color: var(--navy-deep);
}

.blog-filter-btn.is-active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(195, 198, 202, 0.5);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.blog-card[hidden] {
  display: none;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-600);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 0;
  color: var(--navy-deep);
}

.blog-card__title a {
  color: inherit;
}

.blog-card__title a:hover {
  color: #0E7490;
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-600);
  line-height: 1.55;
  flex: 1;
}

.tax-highlight-card {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  color: #ECFDF5;
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.tax-highlight-card__cta {
  text-align: right;
}

@media (max-width: 1020px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pillars-grid,
  .cases-grid,
  .team-grid,
  .jobs-grid,
  .blog-grid,
  .tax-highlight-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .tax-highlight-card__cta {
    text-align: left;
  }
}

.ba-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ba-switcher__btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(8, 145, 178, 0.28);
  background: #fff;
  color: var(--navy-deep);
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ba-switcher__btn:hover {
  border-color: var(--cyan-primary);
  background: var(--cyan-soft);
}

.ba-switcher__btn.is-active {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  color: #fff;
}

@media (max-width: 520px) {
  .ba-label {
    max-width: 44%;
    font-size: 0.66rem;
    padding: 4px 8px;
    top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ba-label--before {
    left: 10px;
  }
  .ba-label--after {
    right: 10px;
  }
  .ba-switcher__btn {
    min-height: 44px;
    font-size: 0.76rem;
    padding: 8px 12px;
  }
  .calc-tab,
  .freq-chip,
  .subpage-hero__actions .btn {
    min-height: 44px;
  }
  .legal-card {
    padding: 22px 16px;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion Fallback
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__pulse {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-tilt] {
    transform: none !important;
    transition: none !important;
  }
  .btn,
  .social-pill {
    transition: none;
  }
}

/* ==========================================================================
   Wix Headless Forms & Blog Extensions
   ========================================================================== */
.wix-req {
  color: #dc2626;
  font-weight: 700;
}

.wix-field-hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--ink-600);
}

.wix-field-error,
.wix-form-error {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
}

.wix-form-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.wix-form-fields[hidden],
.wix-form-actions[hidden],
.wix-field-error[hidden],
.wix-form-error[hidden] {
  display: none !important;
}

.wix-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.wix-reset-btn {
  margin-top: 12px;
}

.wix-check-label,
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding-block: 6px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-700);
  cursor: pointer;
}

.wix-check-input,
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #0E7490;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wix-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.wix-choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--slate-border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  cursor: pointer;
}

.wix-home-post-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--surface-ice);
}

.wix-home-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wix-blog-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.wix-empty-note {
  color: var(--ink-600);
  font-size: 0.98rem;
}

/* Single Post Detail (post.html) */
.post-article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 44px);
  box-shadow: 0 18px 42px rgba(0, 29, 75, 0.06);
}

.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  font-size: 0.92rem;
  color: var(--ink-600);
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-900);
}

.post-author__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.post-cover {
  margin: 0 0 28px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-ice);
}

.post-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink-700);
}

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--navy-deep);
  font-family: var(--font-display);
  margin: 1.7em 0 0.6em;
  line-height: 1.3;
}

.post-body p {
  margin: 0 0 1.15em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.post-body li {
  margin-bottom: 0.45em;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.2em 0;
}

.post-body a {
  color: var(--cyan-dark);
  text-decoration: underline;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.post-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.post-like-btn.is-liked {
  background: var(--cyan-soft);
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
  font-weight: 700;
}

.post-comments {
  max-width: 820px;
  margin: 36px auto 0;
  background: #fff;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.post-comments__title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--navy-deep);
}

.post-comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.post-comment-form .btn {
  align-self: flex-start;
}

.post-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-comment-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-light);
  border: 1px solid #e5e7eb;
}

.post-comment-meta {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.post-comment-text {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.55;
}

.post-related {
  margin-top: 56px;
}

.post-related .section-title {
  margin-bottom: 24px;
}

/* ==========================================================================
   Calculator Extensions & Form PDF Bridge
   ========================================================================== */
.calc-price-box__value {
  user-select: none;
  -webkit-user-select: none;
}

.calc-size-hint {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-700);
}

.calc-size-hint[hidden],
.calc-period-box[hidden],
.calc-materials-field[hidden] {
  display: none;
}

.calc-materials-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: var(--surface-ice);
  font-size: 0.85rem;
  color: var(--ink-700);
  cursor: pointer;
}

.calc-materials-box input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--cyan-primary);
  flex-shrink: 0;
}

.calc-materials-box__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-600);
  margin-top: 2px;
}

.calc-period-box {
  margin-top: 12px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
}

.calc-period-box__eyebrow {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cyan-glow);
  font-weight: 700;
}

.calc-period-box__value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  margin: 4px 0 2px;
  user-select: none;
}

.calc-period-box__sub {
  margin: 0;
  font-size: 0.8rem;
  color: #CBD5E1;
}

.calc-tax-note {
  display: block;
  margin-top: 6px;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #D1FAE5;
}

.wix-file-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(8, 145, 178, 0.4);
  background: var(--surface-ice);
}

.wix-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.wix-file-input:focus-visible + label {
  outline: 2px solid #0E7490;
  outline-offset: 2px;
}

.wix-file-badge {
  font-size: 0.84rem;
  color: var(--ink-600);
  font-weight: 500;
}

.wix-file-clear {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.career-pdf-bridge {
  margin-top: 20px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 16px;
  border: 1.5px solid rgba(14, 165, 233, 0.28);
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
}

.career-pdf-bridge h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.career-pdf-bridge__desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-600);
  line-height: 1.55;
}

.career-pdf-bridge__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.career-pdf-bridge__status {
  margin: 10px 0 0;
  font-size: 0.83rem;
  color: var(--cyan-dark);
  font-weight: 600;
}

/* ==========================================================================
   KUNDENPORTAL & 10 % EMPFEHLUNGSPROGRAMM
   ========================================================================== */
.header-portal-link {
  border-color: rgba(8, 145, 178, 0.32);
  color: var(--navy-deep);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled .header-portal-link,
.site-header.scrolled .header-portal-link,
.header-portal-link[aria-current="page"] {
  border-color: rgba(8, 145, 178, 0.52);
  background: rgba(8, 145, 178, 0.12);
  color: var(--cyan-dark);
}

.header-portal-link:hover {
  border-color: var(--cyan-primary);
  background: rgba(8, 145, 178, 0.16);
  color: var(--navy-deep);
}

.ref-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(0, 29, 75, 0.06));
  border: 1px solid rgba(8, 145, 178, 0.38);
  color: var(--navy-deep);
}

.ref-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-primary), var(--navy-deep));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.ref-banner__text {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ref-banner__close {
  border: 0;
  background: transparent;
  color: var(--ink-600);
  font-size: 1.25rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}

.ref-banner__close:hover {
  background: rgba(0, 29, 75, 0.08);
  color: var(--navy-deep);
}

.portal-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 29, 75, 0.1);
  border-radius: 22px;
  padding: 36px 28px;
  box-shadow: 0 20px 50px rgba(0, 29, 75, 0.08);
}

.portal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  text-align: center;
  color: var(--ink-700);
}

.portal-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(8, 145, 178, 0.2);
  border-top-color: var(--cyan-primary);
  animation: portalSpin 0.85s linear infinite;
}

@keyframes portalSpin {
  to { transform: rotate(360deg); }
}

.portal-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.portal-perk-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.portal-perk-list li {
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 145, 178, 0.16);
  color: var(--ink-700);
  font-size: 0.94rem;
  line-height: 1.5;
}

.portal-perk-list li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy-deep);
}

.portal-auth-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 29, 75, 0.1);
  box-shadow: 0 20px 50px rgba(0, 29, 75, 0.09);
}

.portal-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #F1F5F9;
}

.portal-tab-btn {
  border: 0;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  color: var(--ink-600);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.portal-tab-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy-deep);
}

.portal-tab-btn.is-active {
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(0, 29, 75, 0.08);
}

.portal-auth-form,
.portal-req-form {
  display: grid;
  gap: 14px;
}

.portal-dashboard {
  display: grid;
  gap: 24px;
}

.portal-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy-deep), #042F5E);
  color: #fff;
  box-shadow: 0 20px 44px rgba(0, 29, 75, 0.18);
}

.portal-topbar__who h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.55rem;
}

.portal-topbar__who p {
  margin: 4px 0 0;
  color: #CBD5E1;
  font-size: 0.9rem;
}

.portal-topbar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.portal-seg-badge,
.portal-code-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-seg-badge {
  background: rgba(34, 211, 238, 0.2);
  color: #67E8F9;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.portal-code-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.portal-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-topbar__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.portal-topbar__actions .btn--outline:hover {
  border-color: var(--cyan-glow);
  background: rgba(34, 211, 238, 0.18);
  color: #fff;
}

.portal-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(0, 29, 75, 0.08);
}

.portal-nav-tab {
  border: 0;
  border-radius: 11px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-nav-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy-deep);
}

.portal-nav-tab.is-active {
  background: linear-gradient(135deg, var(--cyan-primary), var(--navy-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.25);
}

.portal-panel {
  display: grid;
  gap: 20px;
}

.portal-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.portal-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-filter-btn {
  border: 1px solid rgba(0, 29, 75, 0.14);
  background: #fff;
  color: var(--ink-700);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-filter-btn:not(.is-active):hover {
  border-color: #0E7490;
  background: var(--cyan-soft);
  color: var(--navy-deep);
}

.portal-filter-btn.is-active {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
}

.portal-reward-banner {
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #064E3B;
  font-size: 0.95rem;
  line-height: 1.5;
}

.portal-share-card,
.portal-section-box {
  padding: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 29, 75, 0.1);
  box-shadow: 0 12px 32px rgba(0, 29, 75, 0.06);
}

.portal-share-card h3,
.portal-section-box h3 {
  margin-top: 0;
  color: var(--navy-deep);
}

.portal-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.portal-code-chip {
  padding: 11px 18px;
  border-radius: 12px;
  background: #0F172A;
  color: #67E8F9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.portal-share-input {
  flex: 1;
  min-width: 240px;
  font-size: 0.88rem;
  background: #F8FAFC;
}

.portal-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.portal-table th,
.portal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 29, 75, 0.08);
}

.portal-table th {
  color: var(--navy-deep);
  font-weight: 700;
  background: rgba(241, 245, 249, 0.7);
}

.portal-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(8, 145, 178, 0.12);
  color: var(--cyan-dark);
}

.portal-status--rechnungbezahlt,
.portal-status--10rabattgutgeschrieben,
.portal-status--abgeschlossen,
.portal-status--freigeschaltet,
.portal-status--bezahlt {
  background: rgba(16, 185, 129, 0.16);
  color: #065F46;
}

.portal-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.portal-doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 29, 75, 0.1);
  box-shadow: 0 10px 26px rgba(0, 29, 75, 0.05);
}

.portal-doc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-doc-type {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(8, 145, 178, 0.12);
  color: var(--cyan-dark);
}

.portal-doc-date {
  font-size: 0.82rem;
  color: var(--ink-600);
}

.portal-doc-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-600);
  flex: 1;
}

.portal-req-list {
  display: grid;
  gap: 12px;
}

.portal-req-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid rgba(0, 29, 75, 0.08);
}

.portal-req-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.portal-req-item__meta {
  font-size: 0.85rem;
  color: var(--ink-600);
}

.portal-empty,
.portal-empty-card {
  padding: 24px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(0, 29, 75, 0.2);
  color: var(--ink-600);
  text-align: center;
}

@media (max-width: 900px) {
  .portal-auth-grid {
    grid-template-columns: 1fr;
  }
  .header-portal-link {
    display: none;
  }
}

@media (max-width: 640px) {
  .portal-topbar,
  .portal-auth-card,
  .portal-share-card,
  .portal-section-box {
    padding: 20px 16px;
  }
  .ref-banner {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   AI BERATER WIDGET (ETAPA 2) — Bottom-right on desktop, compact above funnel on mobile
   ========================================================================== */
.ai-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 950;
  font-family: var(--font-body);
}

.ai-widget__fab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-deep), #074166);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 29, 75, 0.34);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.ai-widget__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.38);
}

.ai-widget__fab-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.ai-widget__drawer {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(380px, calc(100vw - 28px));
  max-height: min(460px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(8, 145, 178, 0.28);
  box-shadow: 0 24px 60px rgba(0, 29, 75, 0.26);
}

.ai-widget__drawer[hidden] {
  display: none;
}

.ai-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  background: linear-gradient(135deg, var(--navy-deep), #042F5E);
  color: #fff;
}

.ai-widget__head-info {
  display: flex;
  flex-direction: column;
}

.ai-widget__title {
  font-size: 0.98rem;
  font-weight: 700;
}

.ai-widget__sub {
  font-size: 0.76rem;
  color: #A5F3FC;
}

.ai-widget__close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ai-widget__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.ai-widget__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
}

.ai-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.48;
  white-space: pre-line;
}

.ai-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(0, 29, 75, 0.1);
  color: var(--ink-900);
}

.ai-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0E7490, var(--navy-deep));
  color: #fff;
}

.ai-msg--typing {
  color: var(--ink-600);
  font-style: italic;
}

.ai-msg__text {
  margin: 0;
}

.ai-msg__action {
  margin-top: 8px;
  border: 0;
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: #0E7490;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ai-msg__action:hover {
  background: rgba(14, 116, 144, 0.2);
  color: var(--navy-deep);
}

.ai-widget__quick,
.ai-widget__qrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 29, 75, 0.08);
}

.ai-widget__qbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(14, 116, 144, 0.35);
  background: var(--cyan-soft);
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ai-widget__qbtn:hover {
  background: #CFFAFE;
  border-color: #0E7490;
  color: var(--navy-deep);
}

.ai-widget__consent {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(8, 145, 178, 0.3);
  font-size: 0.82rem;
  color: var(--ink-700);
}

.ai-widget__consent p {
  margin: 0 0 10px;
}

.ai-widget__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 29, 75, 0.08);
}

.ai-widget__form[hidden] {
  display: none;
}

.ai-widget__input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .ai-widget {
    right: 14px;
    bottom: 16px;
    transition: bottom 0.28s var(--ease-out);
  }
  body.has-sticky-funnel .ai-widget {
    bottom: 74px;
  }
  .ai-widget__drawer {
    bottom: 54px;
    max-height: min(440px, calc(100dvh - 156px));
  }
}

@media (max-width: 640px) {
  .ai-widget {
    right: 12px;
    bottom: 16px;
  }
  body.has-sticky-funnel .ai-widget {
    bottom: 74px;
  }
  .ai-widget__fab {
    padding: 9px 14px;
    font-size: 0.84rem;
    min-height: 44px;
  }
  .ai-widget__drawer {
    bottom: 54px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(410px, calc(100dvh - 156px));
  }
}


/* Protected Configurator Auto-Account Gate & Distance Toggle */
.calc-auth-badge {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ECFDF5;
  font-size: 0.84rem;
  line-height: 1.45;
}

.calc-auth-badge a {
  color: #67E8F9;
  font-weight: 700;
  text-decoration: underline;
}

.calc-auth-gate {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.35);
  backdrop-filter: blur(8px);
}

.calc-auth-gate[hidden] {
  display: none;
}

.calc-auth-gate__head {
  margin-bottom: 12px;
}

.calc-auth-gate__title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
}

.calc-auth-gate__sub {
  margin: 0;
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.4;
}

.calc-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  background: rgba(0, 15, 42, 0.45);
  padding: 4px;
  border-radius: 10px;
}

.calc-auth-tab {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.calc-auth-tab:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.calc-auth-tab.is-active {
  background: rgba(34, 211, 238, 0.22);
  color: #FFFFFF;
}

.calc-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.calc-auth-grid--full {
  grid-template-columns: 1fr;
}

.calc-auth-grid .pass-field-wrap {
  grid-column: 1 / -1;
}

.calc-auth-grid[hidden],
.calc-recaptcha-box[hidden],
.pass-field-wrap[hidden],
.calc-auth-consent[hidden] {
  display: none;
}

.calc-recaptcha-box {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 440px) {
  .calc-recaptcha-box > div {
    transform: scale(0.82);
    transform-origin: left top;
    margin-bottom: -12px;
  }
}

.calc-auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-auth-field--full {
  grid-column: 1 / -1;
}

.calc-auth-field[hidden] {
  display: none;
}

.calc-auth-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(10, 22, 48, 0.75);
  color: #FFFFFF;
  font-size: 0.86rem;
}

.calc-auth-input::placeholder {
  color: #94A3B8;
}

.calc-auth-input:focus {
  outline: 2px solid #22D3EE;
  outline-offset: 1px;
  border-color: #22D3EE;
}

.calc-auth-verify-hint {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: #E2E8F0;
  line-height: 1.45;
}

.calc-auth-forgot {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  margin-top: 2px;
  color: #67E8F9;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calc-auth-forgot:hover {
  color: #A5F3FC;
}

.calc-auth-forgot[hidden] {
  display: none;
}

.pass-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pass-field-wrap .calc-auth-input,
.pass-field-wrap .form-control {
  padding-right: 48px;
}

.pass-toggle-btn {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  z-index: 2;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.pass-toggle-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.pass-toggle-btn svg {
  pointer-events: none;
}

.pass-toggle-btn:hover {
  color: #FFFFFF;
  background: rgba(148, 163, 184, 0.18);
}

.pass-toggle-btn:focus-visible {
  color: #FFFFFF;
  background: rgba(148, 163, 184, 0.22);
  outline: 2px solid #0E7490;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45);
}

.pass-toggle-btn--light {
  color: var(--ink-500, #64748B);
}

.pass-toggle-btn--light:hover {
  color: var(--navy-900, #0F172A);
  background: rgba(15, 23, 42, 0.06);
}

.pass-toggle-btn--light:focus-visible {
  color: var(--navy-900, #0F172A);
  background: rgba(15, 23, 42, 0.06);
  outline: 2px solid #0E7490;
  outline-offset: 2px;
  box-shadow: none;
}

.pass-toggle-btn .icon-eye-off {
  display: none;
}

.pass-toggle-btn.is-visible .icon-eye {
  display: none;
}

.pass-toggle-btn.is-visible .icon-eye-off {
  display: block;
}

.calc-auth-badge.is-celebrate {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.55);
  color: #ECFDF5;
}

.portal-celebrate-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--navy-900, #0F172A);
  font-size: 0.94rem;
  line-height: 1.5;
}

.calc-auth-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  padding-block: 6px;
  gap: 8px;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.4;
  margin-top: 2px;
  cursor: pointer;
}

.calc-auth-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #22D3EE;
}

.calc-auth-consent[hidden] {
  display: none;
}

.calc-auth-consent a {
  color: #67E8F9;
  text-decoration: underline;
}

.calc-auth-msg {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.calc-auth-msg.is-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #FEE2E2;
}

.calc-auth-msg.is-info {
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.45);
  color: #ECFEFF;
}

@media (max-width: 540px) {
  .calc-auth-grid {
    grid-template-columns: 1fr;
  }
}