:root {
  --bg-dark: #0c0c0c;
  --bg-dark-sec: #131313;
  --bg-dark-card: #1a1a1a;
  --bg-light: #f7f3ee;
  --bg-light-card: #ffffff;
  --blue: #1e5fa8;
  --blue-light: #4a90d9;
  --blue-dark: #123f73;
  --blue-subtle: rgba(30, 95, 168, 0.08);
  --blue-border: rgba(30, 95, 168, 0.2);
  --accent-warm: #e8926a;
  --accent-warm-subtle: rgba(232, 146, 106, 0.1);
  --text-light: #e8e2da;
  --text-light-m: #8a837a;
  --text-dark: #1a1a1a;
  --text-dark-m: #6b6560;
  --border-light: rgba(0, 0, 0, 0.06);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ====== Scrollbar ====== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-dark);
  border-radius: 3px;
}

/* ====== Header ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
  display: flex;
  align-items: center;
}

.header.scrolled {
  border-bottom-color: var(--blue-border);
  background: rgba(12, 12, 12, 0.95);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}

.logo span {
  font-weight: 300;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  display: block;
  margin-top: -2px;
}

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

.nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-m);
  transition: color 0.3s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--text-light);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.header-contact a {
  font-size: 0.75rem;
  color: var(--text-light-m);
  transition: color 0.3s;
  white-space: nowrap;
}

.header-contact a:hover {
  color: var(--blue);
}

.lang-btn {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 6px 14px;
  border-radius: 2px;
  transition: all 0.3s;
  white-space: nowrap;
}

.lang-btn:hover {
  background: var(--blue);
  color: var(--bg-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--text-light);
  transition: all 0.3s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ====== Mobile Menu Fixes ====== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(30px);
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 769px) {

  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
  }
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-light-m);
  transition: color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--blue);
}

.mobile-menu .mobile-contact {
  margin-top: 40px;
  text-align: center;
}

.mobile-menu .mobile-contact a {
  font-family: var(--sans);
  font-size: 0.9rem;
  display: block;
  margin: 8px 0;
  color: var(--text-light-m);
}

.mobile-menu .mobile-contact a:hover {
  color: var(--blue);
}

/* ====== Seiten-Container ====== */
/* ====== Seiten-Container & Cinematic Page Transitions ====== */
.page {
  display: none;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.page.active {
  display: block;
}

.page.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ====== Hero ====== */
/* ====== Hero Parallax & Ambient Cinematic Depth ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  perspective: 1200px;
}

.hero-bg {
  position: absolute;
  inset: -35px;
  background: url('images/hero.jpg') center/cover no-repeat;
  will-change: transform;
  transform: translate3d(var(--hero-bg-x, 0px), var(--hero-bg-y, 0px), 0) scale(1.05);
  transition: transform 0.16s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.88) 0%, rgba(12, 12, 12, 0.65) 50%, rgba(12, 12, 12, 0.8) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
  will-change: transform;
  transform: translate3d(var(--hero-content-x, 0px), var(--hero-content-y, 0px), 0);
  transition: transform 0.18s ease-out;
}

/* Cinematic Staggered Entrance for Hero */
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 6px 18px;
  margin-bottom: 32px;
  border-radius: 1px;
  animation: heroEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  will-change: transform, opacity;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 24px;
  animation: heroEntrance 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
  will-change: transform, opacity;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-light-m);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  animation: heroEntrance 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
  will-change: transform, opacity;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: heroEntrance 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
  will-change: transform, opacity;
}

/* ====== Buttons ====== */
/* ====== Tactical 3D & Magnetic Buttons ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--bg-dark);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-light);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

/* Subtle luxury sheen glint */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
}

.btn-primary:hover::after {
  left: 200%;
  transition: left 0.75s ease-in-out;
}

.btn-primary:active {
  transform: translate3d(0, 2px, 0) scale(0.975) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}

.btn-primary span {
  position: relative;
  z-index: 1;
  display: inline-block;
  will-change: transform;
  transform: translateZ(6px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--blue-border);
  color: var(--blue);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, background 0.35s;
  position: relative;
  will-change: transform;
  transform-style: preserve-3d;
}

.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(201, 169, 110, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.btn-secondary:active {
  transform: translate3d(0, 2px, 0) scale(0.975) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}

.btn-secondary span {
  display: inline-block;
  will-change: transform;
  transform: translateZ(6px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ====== Sektionen (Hell/Dunkel) ====== */
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 100px 40px;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 100px 40px;
}

.section-dark-sec {
  background: var(--bg-dark-sec);
  color: var(--text-light);
  padding: 100px 40px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 12px;
  display: block;
}

.section-dark .section-tag,
.section-dark-sec .section-tag {
  color: var(--blue);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dark-m);
  max-width: 560px;
  line-height: 1.7;
}

.section-dark .section-subtitle,
.section-dark-sec .section-subtitle {
  color: var(--text-light-m);
}

.gold-line {
  width: 0;
  height: 1px;
  background: var(--blue);
  margin: 24px 0 32px;
  transition: width 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  will-change: width;
}

.fade-in.visible .gold-line {
  width: 60px;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

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

.section-header.center .gold-line {
  margin: 24px auto 32px;
}

/* ====== Service-Karten (Home) ====== */
/* ====== 3D Perspective & Spatial Grid Containers ====== */
.services-grid,
.why-grid,
.about-detail-grid,
.patients-grid,
.contact-grid {
  perspective: 1200px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-light-card);
  padding: 40px 32px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

/* Specular reflection sheen layer on cards */
.service-card::after,
.why-item::after,
.about-detail-card::after,
.patient-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.service-card:hover::after,
.why-item:hover::after,
.about-detail-card:hover::after,
.patient-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(30, 95, 168, 0.18);
}

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

.service-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--blue-dark);
  transform: translateZ(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: translateZ(24px) scale(1.05);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  transform: translateZ(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-dark-m);
  line-height: 1.7;
  transform: translateZ(6px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-more {
  text-align: center;
  margin-top: 48px;
}

/* ====== Warum Wir ====== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.why-item {
  display: flex;
  gap: 24px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  border-radius: 4px;
}

.why-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--accent-warm);
  line-height: 1;
  min-width: 60px;
  opacity: 0.6;
  transform: translateZ(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.why-item:hover .why-num {
  opacity: 0.95;
  transform: translateZ(24px);
}

.why-item h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-light-m);
  line-height: 1.7;
}

/* ====== Über uns kurz ====== */
.about-brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ====== 3D Clinic Image Frames with Parallax Depth ====== */
.about-brief-img {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-brief-img:hover {
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.22);
}

.about-brief-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1) translateZ(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-brief-img:hover img {
  transform: scale(1.035) translateZ(10px);
}

.about-brief-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  pointer-events: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
}

.about-brief-img:hover::after {
  border-color: rgba(74, 144, 217, 0.45);
  box-shadow: inset 0 0 25px rgba(74, 144, 217, 0.1);
}

.about-brief-text p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-dark-m);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ====== Services Detail ====== */
.services-detail-list {
  display: flex;
  flex-direction: column;
}

.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.service-detail:first-child {
  border-top: 1px solid var(--border-light);
}

.service-detail h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding-left: 20px;
}

.service-detail h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--blue-dark);
  border-radius: 50%;
}

.service-detail p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark-m);
  line-height: 1.8;
}

/* ====== About Detail ====== */
.about-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.about-detail-card {
  padding: 36px;
  border-radius: 4px;
  background: rgba(201, 169, 110, 0.04);
  border: 1px solid var(--blue-border);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.about-detail-card:hover {
  border-color: rgba(74, 144, 217, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.about-detail-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--blue-light);
}

.about-detail-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-light-m);
  line-height: 1.7;
}

/* ====== Für deutsche Patienten ====== */
.patients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.patient-card {
  padding: 32px;
  border-radius: 4px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.patient-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.patient-card:hover {
  border-color: var(--blue-border);
}

.patient-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--blue);
}

.patient-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-light-m);
  line-height: 1.7;
}

/* ====== Formulare ====== */
.form-card {
  background: var(--bg-light-card);
  padding: 48px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.section-dark .form-card,
.section-dark-sec .form-card {
  background: var(--bg-dark-card);
  border-color: rgba(255, 255, 255, 0.04);
}

.form-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.section-dark .form-card h3,
.section-dark-sec .form-card h3 {
  color: var(--text-light);
}

.form-card .form-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-dark-m);
  margin-bottom: 32px;
}

.section-dark .form-card .form-sub,
.section-dark-sec .form-card .form-sub {
  color: var(--text-light-m);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1/-1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-m);
}

.section-dark .form-group label,
.section-dark-sec .form-group label {
  color: var(--text-light-m);
}

.form-group label .req {
  color: var(--blue-dark);
}

.section-dark .form-group label .req,
.section-dark-sec .form-group label .req {
  color: var(--blue);
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 300;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  background: var(--bg-light);
  color: var(--text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.section-dark .form-input,
.section-dark .form-select,
.section-dark .form-textarea,
.section-dark-sec .form-input,
.section-dark-sec .form-select,
.section-dark-sec .form-textarea {
  background: var(--bg-dark-sec);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #c45c5c;
}

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

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a837a' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error {
  font-size: 0.75rem;
  color: #c45c5c;
  display: none;
  margin-top: 2px;
}

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

.form-submit {
  margin-top: 28px;
}

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ====== Footer ====== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 60px 40px 32px;
  color: var(--text-light-m);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-light-m);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 300;
}

/* ====== Success Overlay ====== */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  padding: 56px 48px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.4s;
}

.success-overlay.show .success-card {
  transform: translateY(0);
}

.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-check svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
}

.success-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.success-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-light-m);
  line-height: 1.7;
  margin-bottom: 28px;
}

.success-close {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 12px 32px;
  border-radius: 2px;
  transition: all 0.3s;
}

.success-close:hover {
  background: var(--blue);
  color: var(--bg-dark);
}

/* ====== Fade-In Animation ====== */
/* ====== Cinematic Staggered Scroll Reveals ====== */
.fade-in {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
.fade-in-d4 { transition-delay: 0.4s; }

/* ====== Page-Title-Banner ====== */
.page-banner {
  padding: 160px 40px 60px;
  background: var(--bg-dark-sec);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* ====== Flaggen-Button Stile ====== */
/* ====== Clean Borderless Language Switcher ====== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.flag-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 30px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 3px !important;
  cursor: pointer;
  transition: opacity 0.25s ease;
  transform: none !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  overflow: hidden;
}

.flag-btn .flag-img {
  width: 40px !important;
  height: 30px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 3px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: opacity 0.25s ease;
}

/* Active flag: full color, 100% opacity, exact same size, NO borders */
.flag-btn.active-lang {
  opacity: 1 !important;
  filter: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.flag-btn.active-lang .flag-img {
  opacity: 1 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Inactive flag: softly dimmed, exact same size, NO borders, never small */
.flag-btn.backward-lang {
  opacity: 0.5 !important;
  filter: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.flag-btn.backward-lang .flag-img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.flag-btn.backward-lang:hover {
  opacity: 0.85 !important;
  background: transparent !important;
  border: none !important;
}

/* Mobile language switcher */
.mobile-lang-switcher {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.mobile-lang-switcher .lang-switcher {
  gap: 16px;
}

.mobile-lang-switcher .flag-btn,
.mobile-lang-switcher .flag-btn .flag-img {
  width: 44px !important;
  height: 33px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 33px !important;
  max-height: 33px !important;
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .header-contact {
    display: none;
  }

  /* Top-bar flags stay hidden on mobile — the same DE/EN switcher
     already lives inside the mobile menu below, no need to show it twice. */
  .header-right .lang-switcher {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

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

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-light,
  .section-dark,
  .section-dark-sec {
    padding: 60px 20px;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .form-card {
    padding: 28px 20px;
  }

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

  .about-detail-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 40px 20px 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-banner {
    padding: 120px 20px 40px;
  }
}
/* ====== Fixed Responsive Layout for Service Page ====== */

@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .service-detail.reverse {
    direction: ltr !important;
  }
}

.service-detail {
  width: 100%;
  overflow: hidden;
}

.service-detail-img {
  width: 100%;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail-img:hover {
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
}

.service-detail-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  will-change: transform;
  transform: scale(1) translateZ(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail-img:hover img {
  transform: scale(1.035) translateZ(10px);
}

.service-detail-content {
  width: 100%;
  min-width: 0;
}

/* ====== Dedicated Legal Pages (Imprint, Privacy, Terms) ====== */

/* Section formatting inside single legal page */
.legal-doc-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.legal-doc-heading {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.legal-doc-heading::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
}

.legal-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 90px;
}

.legal-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-light);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(74, 144, 217, 0.08);
  border: 1px solid rgba(74, 144, 217, 0.22);
  transition: all 0.22s ease;
}

.legal-back-btn:hover {
  color: #ffffff;
  background: rgba(74, 144, 217, 0.2);
  border-color: var(--blue-light);
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(74, 144, 217, 0.25);
}

.legal-pills {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-nav-pill {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light-m);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.legal-nav-pill:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
}

.legal-nav-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1e5fa8 0%, #123f73 100%);
  box-shadow: 0 4px 14px rgba(30, 95, 168, 0.4);
  font-weight: 600;
}

.legal-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 34px 38px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-light) 0%, rgba(201, 169, 110, 0.4) 100%);
  opacity: 0.4;
  transition: opacity 0.25s;
}

.legal-card:hover {
  border-color: rgba(74, 144, 217, 0.35);
}

.legal-card:hover::before {
  opacity: 1;
}

.legal-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  letter-spacing: 0.02em;
}

.legal-card h4 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--blue-light);
  margin: 22px 0 8px;
  letter-spacing: 0.01em;
}

.legal-card p {
  color: var(--text-light-m);
  font-size: 0.94rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card p strong {
  color: var(--text-light);
  font-weight: 600;
}

.legal-card ul {
  margin: 12px 0 18px 22px;
  color: var(--text-light-m);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legal-card li {
  margin-bottom: 8px;
  position: relative;
}

.legal-card a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-card a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  
/* Section formatting inside single legal page */
.legal-doc-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.legal-doc-heading {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.legal-doc-heading::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
}

.legal-container {
    padding: 24px 16px 60px;
  }
  .legal-card {
    padding: 24px 20px;
  }
  .legal-subnav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .legal-pills {
    width: 100%;
    display: flex;
  }
  .legal-nav-pill {
    padding: 7px 10px;
    font-size: 0.78rem;
    text-align: center;
    flex: 1;
  }
}

/* ====== Legal Modal ====== */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.legal-modal-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalScale 0.3s ease forwards;
}

@keyframes modalScale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light-m);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.legal-modal-close:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

.legal-modal-tabs {
  display: flex;
  gap: 8px;
}

.legal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-light-m);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.legal-tab-btn:hover {
  color: var(--text-light);
}

.legal-tab-btn.active {
  color: var(--blue-light);
  border-bottom-color: var(--blue-light);
}

.legal-modal-content {
  padding: 24px;
  overflow-y: auto;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-modal-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-light);
}

.legal-modal-content h4 {
  font-size: 1.05rem;
  margin: 18px 0 6px;
  color: var(--blue-light);
}

.legal-modal-content p {
  margin-bottom: 12px;
  color: var(--text-light-m);
}

.legal-modal-content ul {
  margin: 8px 0 16px 20px;
  color: var(--text-light-m);
}

.legal-modal-content li {
  margin-bottom: 6px;
}

/* ====== Tactile Form Interactions ====== */
.form-input,
.form-textarea,
.form-select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.2s ease;
  will-change: transform, box-shadow;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15), 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

@keyframes inputErrorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  animation: inputErrorShake 0.4s ease;
}

/* ====== Accessibility: Prefers-Reduced-Motion Guard ====== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-tag,
  .hero h1,
  .hero-sub,
  .hero-btns {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .gold-line {
    width: 60px !important;
    transition: none !important;
  }
  .hero-bg,
  .hero-content {
    transform: none !important;
  }
}

/* ====== Luxury Custom Calendar (Matching Clinic Dark Aesthetic) ====== */
:root {
  color-scheme: dark;
}


.date-input-wrap.cal-open,
.date-input-wrap:focus-within {
  z-index: 2000;
}

.form-group:has(.cal-open),
.form-row:has(.cal-open) {
  z-index: 2000;
  position: relative;
}

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

.date-input-wrap .form-input.date-field {
  width: 100%;
  padding-right: 46px;
  cursor: pointer;
  background-color: var(--bg-dark-sec);
  color: var(--text-light);
  font-family: var(--sans);
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.date-input-wrap .form-input.date-field:hover {
  border-color: rgba(74, 144, 217, 0.4);
}

.date-input-wrap .form-input.date-field:focus,
.date-input-wrap .form-input.date-field.cal-active {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.18), 0 4px 16px rgba(0, 0, 0, 0.35);
  background-color: #161616;
}

.date-picker-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--blue-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.date-picker-icon-btn:hover {
  color: #ffffff;
  background: rgba(74, 144, 217, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.date-picker-icon-btn svg {
  display: block;
  stroke: currentColor;
  transition: stroke 0.2s;
}

/* Calendar Popup Card */
.luxury-calendar-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 318px;
  max-width: calc(100vw - 32px);
  background: #131313;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 14px 12px;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -6px, 0) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.luxury-calendar-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

/* Header */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.cal-select {
  background: #1c1c1c;
  border: 1px solid rgba(74, 144, 217, 0.25);
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.cal-select:hover,
.cal-select:focus {
  border-color: var(--blue-light);
  background: #222222;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.15);
}

.cal-select option {
  background: #181818;
  color: var(--text-light);
}

.cal-month-select {
  flex: 1.3;
}

.cal-year-select {
  flex: 1;
}

.cal-nav-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light-m);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.cal-nav-btn:hover {
  color: #ffffff;
  border-color: var(--blue-light);
  background: rgba(74, 144, 217, 0.2);
  transform: scale(1.05);
}

.cal-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Weekday header row */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  margin-bottom: 6px;
}

.cal-weekday {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: #c9a96e;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Days Grid */
.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-light);
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  outline: none;
}

.cal-day:hover:not(.disabled):not(.other-month) {
  background: rgba(74, 144, 217, 0.22);
  border-color: var(--blue-light);
  color: #ffffff;
  transform: scale(1.06);
  z-index: 2;
}

.cal-day.today:not(.selected) {
  border-color: rgba(232, 146, 106, 0.6);
  color: var(--accent-warm);
  font-weight: 600;
}

.cal-day.today:not(.selected)::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.cal-day.selected {
  background: linear-gradient(135deg, #2a75ca 0%, #1e5fa8 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(74, 144, 217, 0.55);
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.cal-day.disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
  color: var(--text-light-m);
}

.cal-day.other-month {
  opacity: 0.12;
  cursor: not-allowed;
  pointer-events: none;
}

/* Footer note & actions */
.cal-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-quick-btn {
  background: transparent;
  border: none;
  color: var(--blue-light);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.cal-quick-btn:hover {
  color: #ffffff;
  background: rgba(74, 144, 217, 0.15);
}

.cal-quick-btn.secondary {
  color: var(--text-light-m);
}

.cal-quick-btn.secondary:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  .luxury-calendar-popup {
    left: 50%;
    transform: translate3d(-50%, -6px, 0) scale(0.97);
    width: min(320px, calc(100vw - 24px));
  }
  .luxury-calendar-popup.open {
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}
