:root {
  /* Polarstern Brand Colors (from kinderkrippe-polarstern.de + Polar Night theme) */
  --color-bg: #0f172a;
  --color-bg-deep: #090e1a;
  --color-navy: #2c344c;
  --color-slate: #405f83;
  --color-primary: #22a6a4;
  --color-primary-bright: #2dd4bf;
  --color-accent: #00c2ff;
  --color-ice: #e4f0ed;
  --color-primary-soft: rgba(34, 166, 164, 0.14);
  --color-text: #f8fafc;
  --color-text-muted: #cbd5e1;

  /* Compatibility alias so shared component styles use Polarstern Teal */
  --color-gold: #2dd4bf;
  --color-gold-soft: rgba(34, 166, 164, 0.14);

  /* Panels & Surfaces */
  --color-panel-bg: #162033;
  --color-panel-border: rgba(34, 166, 164, 0.4);
  --color-panel-hover: #1e2d47;
  --shadow-floating: 0 32px 80px rgba(4, 9, 20, 0.65);

  /* Polar Frosted Glass System */
  --liquid-glass-bg: rgba(22, 34, 56, 0.62);
  --liquid-glass-border: rgba(228, 240, 237, 0.22);
  --liquid-glass-border-hover: rgba(0, 194, 255, 0.55);
  --liquid-glass-highlight: rgba(228, 240, 237, 0.16);
  --liquid-glass-shadow: 0 16px 56px rgba(4, 9, 20, 0.55);
  --liquid-glass-blur: blur(40px) saturate(190%) brightness(1.04);
  --liquid-glass-glow: 0 0 0 1px rgba(0, 194, 255, 0.12);
  --liquid-glass-border-width: 1px;
  --liquid-glass-refraction: rgba(0, 194, 255, 0.08);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", sans-serif;

  /* Spacings */
  --space-xs: 0.5rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5.5rem;

  /* Border Radius */
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  /* Transitions */
  --transition-fast: 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-normal: 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

html, body {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.011em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
  overscroll-behavior-x: none;
}

/* ═══ POLAR NIGHT & AURORA BACKGROUND ═══ */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, #172542 0%, #0c1324 55%, #070b14 100%);
}

/* Subtle Starlight Field */
.liquid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    radial-gradient(1px 1px at 35% 8%, rgba(0, 194, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 15%, rgba(255, 255, 255, 0.45) 50%, transparent 100%),
    radial-gradient(2px 2px at 84% 28%, rgba(45, 212, 191, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 22% 65%, rgba(255, 255, 255, 0.35) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 64% 52%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 75%, rgba(0, 194, 255, 0.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 85%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.32;
  animation: liquid-float infinite alternate;
  will-change: transform;
}

.blob-1 {
  width: 1450px;
  height: 1450px;
  margin: -300px 0 0 -300px;
  background: radial-gradient(circle closest-side, rgba(34, 166, 164, 0.9) 0%, rgba(34, 166, 164, 0.65) 30%, rgba(64, 95, 131, 0.35) 60%, rgba(34, 166, 164, 0) 100%);
  top: -22%;
  left: -18%;
  animation-duration: 48s;
}

.blob-2 {
  width: 1250px;
  height: 1250px;
  margin: 0 -280px -280px 0;
  background: radial-gradient(circle closest-side, rgba(0, 194, 255, 0.35) 0%, rgba(64, 95, 131, 0.25) 35%, rgba(44, 52, 76, 0.12) 65%, rgba(0, 194, 255, 0) 100%);
  bottom: -28%;
  right: -18%;
  animation-duration: 56s;
  animation-delay: -12s;
}

.blob-3 {
  width: 1120px;
  height: 1120px;
  margin: -260px 0 0 -260px;
  background: radial-gradient(circle closest-side, rgba(45, 212, 191, 0.6) 0%, rgba(34, 166, 164, 0.35) 40%, rgba(0, 194, 255, 0.12) 72%, rgba(34, 166, 164, 0) 100%);
  top: 32%;
  left: 58%;
  opacity: 0.22;
  animation-duration: 42s;
  animation-delay: -22s;
}

@keyframes liquid-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(120px, 160px) scale(1.08); }
  66% { transform: translate(-70px, 90px) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.028em;
  margin-bottom: var(--space-sm);
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  transform: translateZ(0);
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5.2vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.85rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 600; line-height: 1.3; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
}

a {
  color: var(--color-primary-bright);
  text-decoration: none;
  transition: color var(--transition-fast), filter var(--transition-fast);
}
a:hover {
  color: var(--color-accent);
  filter: brightness(1.15);
}

/* Utilities */
.container {
  width: calc(100% - 40px);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.text-center { text-align: center; }
.text-primary,
.text-gold {
  color: var(--color-primary-bright);
}
.text-accent {
  color: var(--color-accent);
}
.text-gradient {
  background: linear-gradient(135deg, #2dd4bf 0%, #00c2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating / Header Logo */
.floating-logo {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}
.floating-logo img {
  height: 98px;
  width: 98px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(228, 240, 237, 0.16);
}

/* ═══ SECTION LAYOUTS ═══ */
.flow-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: auto;
  padding: var(--space-lg) 7vw;
  position: relative;
  z-index: 10;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}

.flow-section:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 968px) {
  .flow-section, .flow-section:nth-child(even) {
    flex-direction: column;
    text-align: left;
    padding: var(--space-md) 5vw;
    gap: var(--space-md);
  }
}

.flow-text {
  flex: 1;
  min-width: 290px;
  max-width: 620px;
  position: relative;
}

.float-element {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ═══ POLAR FROSTED GLASS CARDS ═══ */
.glass-lens {
  background: var(--liquid-glass-bg);
  backdrop-filter: var(--liquid-glass-blur);
  -webkit-backdrop-filter: var(--liquid-glass-blur);
  border: var(--liquid-glass-border-width) solid var(--liquid-glass-border);
  border-top-color: rgba(0, 194, 255, 0.38);
  border-bottom-color: rgba(34, 166, 164, 0.22);
  border-radius: 28px;
  padding: var(--space-md);
  display: inline-block;
  max-width: 100%;
  box-shadow:
    var(--liquid-glass-shadow),
    var(--liquid-glass-glow),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1.5px 1px var(--liquid-glass-highlight),
    inset 0 -2px 1px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-lens::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(0, 194, 255, 0.10) 0%,
    rgba(34, 166, 164, 0.04) 30%,
    transparent 100%
  );
  border-radius: 28px 28px 0 0;
  pointer-events: none;
  z-index: 1;
}

.glass-lens > * {
  position: relative;
  z-index: 3;
}

@media (hover: hover) {
  .glass-lens:hover {
    transform: translateY(-4px);
    background: rgba(28, 44, 72, 0.74);
    border-color: var(--liquid-glass-border-hover);
    border-top-color: rgba(0, 194, 255, 0.65);
    box-shadow:
      0 22px 64px rgba(4, 9, 20, 0.65),
      0 0 0 1.5px rgba(0, 194, 255, 0.28),
      0 0 36px rgba(34, 166, 164, 0.16),
      inset 0 2px 1px rgba(255, 255, 255, 0.22);
  }
}

/* Detail Grid Cards on Homepage */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  width: 100%;
}

.detail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: 26px;
}

.detail-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
  background: rgba(9, 14, 26, 0.6);
  border: 1px solid rgba(228, 240, 237, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-card:hover .detail-card-img-wrap img {
  transform: scale(1.04);
}

.detail-card h3 {
  color: var(--color-primary-bright);
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.detail-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Hero Badges & Pill Tags */
.polar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(34, 166, 164, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: var(--color-primary-bright);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--color-text);
}

.feature-list li .feature-icon {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

button {
  color: var(--color-text);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #178583 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(45, 212, 191, 0.45);
  text-decoration: none;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-sm);
  box-shadow: 0 8px 24px rgba(34, 166, 164, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-bright) 0%, var(--color-primary) 100%);
  color: #090e1a !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 194, 255, 0.35);
  filter: none;
}

.btn-secondary {
  background-color: rgba(44, 52, 76, 0.75);
  color: var(--color-text) !important;
  border: 1px solid rgba(228, 240, 237, 0.28);
  padding: 0.95rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(64, 95, 131, 0.85);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ═══ BUBBLE NAVIGATION (Top Right) ═══ */
.bubble-nav-container {
  position: fixed;
  top: 26px;
  right: 36px;
  z-index: 10000;
}

.bubble-btn {
  width: 52px;
  height: 52px;
  background: rgba(22, 34, 56, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  transition: all var(--transition-fast);
}

.bubble-btn:hover {
  background: rgba(34, 166, 164, 0.22);
  border-color: var(--color-accent);
  transform: scale(1.04);
}

.bubble-btn div {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary-bright);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.bubble-nav-expanded {
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(45px) saturate(200%);
  -webkit-backdrop-filter: blur(45px) saturate(200%);
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-top-color: rgba(0, 194, 255, 0.5);
  box-shadow:
    0 32px 72px rgba(4, 9, 20, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 24px 12px 24px 26px;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  right: 0;
  width: 320px;
  max-height: 82vh;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bubble-nav-container.active .bubble-nav-expanded {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bubble-nav-container.active .bubble-btn .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
  background-color: var(--color-accent);
}
.bubble-nav-container.active .bubble-btn .line2 {
  opacity: 0;
}
.bubble-nav-container.active .bubble-btn .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
  background-color: var(--color-accent);
}

.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0 14px 5px 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(82vh - 48px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(34, 166, 164, 0.45) transparent !important;
}

.nav-links::-webkit-scrollbar {
  width: 4px;
  display: block !important;
}
.nav-links::-webkit-scrollbar-thumb {
  background: rgba(34, 166, 164, 0.45);
  border-radius: 10px;
}

.nav-links li a {
  font-family: var(--font-family);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.82;
  display: block;
  padding: 0.68rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.nav-links li:last-child a {
  border-bottom: none;
}

.nav-links li a:hover,
.nav-links li a.active {
  opacity: 1;
  color: var(--color-primary-bright);
  padding-left: 0.45rem;
}

/* ═══ HERO & GRIDS ═══ */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.section {
  padding: var(--space-lg) 0;
}

.flex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ═══ PARTNER LOGOS (Transparent) ═══ */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: var(--space-md);
}
.partner-logo {
  flex: 0 1 175px;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.partner-logo:hover {
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 8px 20px rgba(0, 194, 255, 0.25));
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-primary-bright);
  margin-bottom: var(--space-sm);
  background: rgba(34, 166, 164, 0.12);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ═══ PDF CARDS (Konzepte & Vertrag) ═══ */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
  align-items: stretch;
}

.pdf-card {
  background: var(--liquid-glass-bg);
  backdrop-filter: var(--liquid-glass-blur);
  -webkit-backdrop-filter: var(--liquid-glass-blur);
  border-radius: 26px;
  padding: var(--space-md);
  border: 1px solid var(--liquid-glass-border);
  border-top-color: rgba(0, 194, 255, 0.38);
  box-shadow: var(--liquid-glass-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pdf-card:hover {
  transform: translateY(-5px);
  background: rgba(28, 44, 72, 0.78);
  border-color: var(--liquid-glass-border-hover);
  box-shadow: 0 20px 60px rgba(4, 9, 20, 0.65), 0 0 30px rgba(34, 166, 164, 0.18);
}

.pdf-icon {
  font-size: 2.8rem;
  margin-bottom: var(--space-sm);
}

.pdf-link-text {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--color-primary-bright);
  font-weight: 600;
  font-size: 1rem;
}

/* ═══ REVEAL ANIMATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  will-change: auto;
}

.hover-scale { transition: transform 0.4s ease; }
.hover-scale:hover { transform: scale(1.03); }
.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); }
.hover-lift-sm { transition: transform 0.3s ease; }
.hover-lift-sm:hover { transform: translateY(-3px); }
.hover-zoom { transition: transform 0.5s ease; }
.hover-zoom:hover { transform: scale(1.05); }

/* ═══ WHATSAPP WIDGET & RIGHT CONTACT DRAWER ═══ */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.whatsapp-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.wa-popup {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10001;
  width: 350px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  background: #e5ddd5;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all var(--transition-fast);
  transform-origin: bottom right;
}

.wa-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wa-header {
  background: #075e54;
  color: #fff;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.wa-header svg { width: 30px; height: 30px; fill: #fff; }
.wa-header h4 { margin: 0; font-size: 1.05rem; color: #fff; }
.wa-header p { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}
.wa-close:hover { opacity: 1; }

.wa-body {
  padding: 20px;
  background-color: #ece5dd;
}
.wa-message {
  background: #fff;
  color: #222;
  padding: 12px 15px;
  border-radius: 0 12px 12px 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wa-footer {
  background: #f0f0f0;
  padding: 15px;
  text-align: center;
}
.wa-start-chat {
  display: inline-block;
  background: #25d366;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-float {
  width: 48px;
  height: 48px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 26px; height: 26px; fill: currentColor; }

.unified-chat-drawer {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.chat-indent-handle {
  width: 26px;
  height: 82px;
  background: rgba(22, 34, 56, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(45, 212, 191, 0.55);
  border-right: none;
  border-radius: 40px 0 0 40px;
  box-shadow: -5px 0 18px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}

.chat-indent-handle:hover {
  background: rgba(34, 166, 164, 0.25);
  width: 30px;
  border-color: var(--color-accent);
}

.chat-indent-handle svg {
  width: 15px;
  height: 15px;
  fill: var(--color-primary-bright);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.unified-chat-drawer.open .chat-indent-handle svg {
  transform: rotate(180deg);
}

.chat-drawer-panel {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-right: none;
  border-radius: 24px 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: -10px 0 32px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
  opacity: 0;
  width: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.unified-chat-drawer.open .chat-drawer-panel {
  transform: translateX(0);
  opacity: 1;
  width: auto;
  padding: 14px;
  pointer-events: auto;
}

.unified-chat-drawer .chat-drawer-panel .whatsapp-float {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  margin: 0 !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  opacity: 1 !important;
  justify-content: center !important;
}

.scroll-speech-bubble {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.scroll-speech-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-primary);
}

.scroll-speech-bubble.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.unified-chat-drawer.open .scroll-speech-bubble,
.unified-chat-drawer.hidden-by-chat .scroll-speech-bubble {
  opacity: 0 !important;
  transform: translateY(-50%) translateX(10px) !important;
}

.unified-chat-drawer.hidden-by-chat {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(50px) !important;
  visibility: hidden !important;
}

/* ═══ GOOGLE TRANSLATE (Only loaded after Consent) ═══ */
#google_translate_element {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.goog-te-combo {
  background: rgba(22, 34, 56, 0.9);
  color: var(--color-primary-bright);
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 12px;
  padding: 9px 14px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  width: 100%;
}
.skiptranslate.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}
.skiptranslate.goog-te-gadget > span,
.goog-logo-link {
  display: none !important;
}

/* ═══ FAQ ACCORDIONS ═══ */
details.faq-item {
  border-bottom: 1px solid rgba(228, 240, 237, 0.12);
  padding: 16px 0;
  margin-bottom: 0;
}
details.faq-item:last-child {
  border-bottom: none;
}
details.faq-item summary {
  color: var(--color-primary-bright);
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  outline: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
}
details.faq-item[open] summary::after {
  content: '−';
}
details.faq-item p {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ═══ COOKIE BANNER & TWO-CLICK CONSENT ═══ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 620px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1.5px solid rgba(45, 212, 191, 0.35);
  border-radius: 26px;
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.45s ease-in-out;
  overflow: hidden;
}

.cookie-banner.hide {
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-content .cookie-text strong {
  font-size: 1.15rem;
  color: var(--color-primary-bright);
  display: block;
  margin-bottom: 8px;
}

.cookie-banner-content .cookie-text p {
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.cookie-buttons button {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0;
}

.cookie-buttons #btn-cookie-reject {
  background: rgba(44, 52, 76, 0.6);
  border: 1px solid rgba(228, 240, 237, 0.25);
  color: #fff;
}
.cookie-buttons #btn-cookie-reject:hover {
  background: rgba(64, 95, 131, 0.7);
}

.cookie-buttons #btn-cookie-accept {
  background: linear-gradient(135deg, var(--color-primary) 0%, #178583 100%);
  border: 1px solid rgba(45, 212, 191, 0.5);
  color: #fff;
}
.cookie-buttons #btn-cookie-accept:hover {
  background: linear-gradient(135deg, var(--color-primary-bright) 0%, var(--color-primary) 100%);
  color: #090e1a;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cookie-buttons {
    flex-direction: column;
  }
  .cookie-buttons button {
    width: 100%;
  }
}

.consent-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: rgba(9, 14, 26, 0.75);
  border-radius: inherit;
  overflow: hidden;
}

.consent-placeholder.consent-granted {
  background: transparent;
}

.consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-radius: inherit;
}

.consent-overlay p {
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 540px;
  font-size: 1.02rem;
  line-height: 1.55;
}

.consent-overlay .btn-accept-media {
  background: linear-gradient(135deg, var(--color-primary) 0%, #178583 100%);
  color: #fff;
  border: 1px solid rgba(45, 212, 191, 0.5);
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(34, 166, 164, 0.3);
}

.consent-overlay .btn-accept-media:hover {
  background: linear-gradient(135deg, var(--color-primary-bright) 0%, var(--color-primary) 100%);
  color: #090e1a;
  transform: translateY(-2px);
}

/* Social Links in Footer */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(34, 166, 164, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.32);
  color: var(--color-text) !important;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-link-btn:hover {
  background: rgba(34, 166, 164, 0.28);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Copy Protection & Touch Handling */
p, h1, h2, h3, h4, h5, h6, span, li, a {
  -webkit-user-select: none;
  user-select: none;
}

img, canvas {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

iframe, .glass-lens, canvas {
  touch-action: auto;
}

/* Header Collision Protection on All Pages */
body .content-wrapper > *:first-child {
  padding-top: 156px !important;
  min-height: auto !important;
}

.range-dash {
  display: inline-block;
  font-size: 0.6em;
  font-weight: 400;
  margin: 0 0.2em;
  vertical-align: 0.2em;
  opacity: 0.75;
}

/* ═══ MOBILE OPTIMIZATIONS (≤ 768px) ═══ */
@media screen and (max-width: 768px) {
  .floating-logo { top: 16px; }
  .floating-logo img { height: 78px; width: 78px; border-radius: 16px; }
  .bubble-nav-container { top: 15px; right: 15px; }

  .bubble-nav-expanded {
    width: 285px;
    max-width: calc(100vw - 30px);
    padding: 20px;
    top: 58px;
  }
  .nav-links li a { font-size: 0.98rem; padding: 0.58rem 0; }

  h1 { font-size: clamp(1.85rem, 7vw, 2.7rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 2.15rem); }
  h3 { font-size: clamp(1.15rem, 4vw, 1.55rem); }
  h4 { font-size: clamp(0.95rem, 3.5vw, 1.2rem); }
  p  { font-size: 0.96rem; }

  .glass-lens,
  .pdf-card {
    border-radius: 20px;
    padding: 1.35rem;
    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-text {
    text-align: left;
    min-width: unset;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 0.95rem 1.4rem;
    font-size: 1rem;
  }

  .whatsapp-widget { bottom: 15px; right: 15px; }
  .wa-popup { width: 290px; }

  .flex-grid,
  .pdf-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .partner-logo { flex: 0 1 135px; height: 92px; padding: 10px; }

  body .content-wrapper > *:first-child {
    padding-top: 122px !important;
    min-height: auto !important;
  }

  footer {
    padding-bottom: 100px !important;
  }
}

@supports (-moz-appearance: none) {
  .glass-lens,
  .pdf-card {
    backdrop-filter: none !important;
    background: rgba(22, 34, 56, 0.88) !important;
  }
  .bubble-nav-expanded {
    backdrop-filter: blur(16px) !important;
  }
  .liquid-blob {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-blob { animation: none !important; }
  html { scroll-behavior: auto; }
}
