/* ==========================================================================
   FC Betreuung - Styles
   Modern, warm, professional care service homepage
   Final polished version with high-end visual refinements
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Original Brand Orange */
  --c-primary: #F26522;
  --c-primary-600: #E05A1C;
  --c-primary-700: #CC4F17;
  --c-primary-100: #FDF2EC;
  --c-primary-50: #FEF9F6;
  --c-bg: #FFFFFF;
  --c-surface: #FAFBFC;
  --c-surface-warm: #FDF9F7;
  --c-text: #1A1D21;
  --c-text-secondary: #4A5568;
  --c-muted: #6B7280;
  --c-border: #E8EAED;
  --c-border-light: #F3F4F6;
  --c-white: #FFFFFF;

  /* Border Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --sh-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --sh-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --sh-primary: 0 4px 14px rgba(242, 101, 34, 0.35);

  /* Spacing Scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 80px;
  --s-10: 120px;

  /* Container */
  --container: 1180px;
  --container-padding: var(--s-5);

  /* Font Sizes */
  --fs-xs: 0.8125rem;
  /* 13px */
  --fs-sm: 0.875rem;
  /* 14px */
  --fs-1: 1rem;
  /* 16px - Body */
  --fs-2: 1.125rem;
  /* 18px - Large body */
  --fs-3: 1.25rem;
  /* 20px - H4 */
  --fs-4: 1.5rem;
  /* 24px - H3 */
  --fs-5: 2.25rem;
  /* 36px - H2 */
  --fs-6: 3rem;
  /* 48px - H1 */

  /* Line Heights */
  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* Letter Spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.01em;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Font Stack */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent horizontal scroll */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image: url('../img/bg-landscape.png');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent horizontal scroll on all devices */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Mobile landscape background */
@media (max-width: 767px) {
  body {
    background-image: url('../img/bg-landscape-mobile.png');
    background-size: cover;
  }
}

body.nav-open {
  overflow-y: hidden;
  /* Allow horizontal for menu sliding, but prevent vertical scroll */
}

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

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

ul,
ol {
  list-style: none;
}

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

strong {
  font-weight: 600;
  color: var(--c-text);
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  z-index: 9999;
  padding: var(--s-3) var(--s-5);
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--s-4);
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* --------------------------------------------------------------------------
   Scroll Offset for Anchor Links (accounts for fixed header)
   -------------------------------------------------------------------------- */
section[id],
[id]:target {
  scroll-margin-top: 120px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
}

h1 {
  font-size: clamp(2rem, 6vw, var(--fs-6));
}

h2 {
  font-size: clamp(1.75rem, 4vw, var(--fs-5));
}

h3 {
  font-size: var(--fs-4);
}

h4 {
  font-size: var(--fs-3);
}

.text-primary {
  color: var(--c-primary);
}

p {
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   Buttons - with 3D Press Effect
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-size: var(--fs-1);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--r-md);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition:
    transform 250ms ease,
    box-shadow 300ms ease,
    background-color 200ms ease;
  will-change: transform, box-shadow;
}

/* 3D Base Shadow */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0.15em 0.15em -0.05em rgba(0, 0, 0, 0.2),
    0 0.25em 0.5em -0.1em rgba(0, 0, 0, 0.15);
  transition: box-shadow 300ms ease, opacity 300ms ease;
  opacity: 1;
}

.btn:hover::before {
  box-shadow:
    0 0.05em 0.05em -0.02em rgba(0, 0, 0, 0.15),
    0 0.1em 0.15em -0.05em rgba(0, 0, 0, 0.1);
  opacity: 0.8;
}

.btn:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
}

/* Primary Button */
.btn--primary {
  background-color: var(--c-primary);
  color: var(--c-white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(242, 101, 34, 0.3);
}

.btn--primary:hover {
  background-color: var(--c-primary-600);
  transform: translateY(2px) scale(0.98);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(242, 101, 34, 0.2);
}

.btn--primary:active {
  background-color: var(--c-primary-700);
  transform: translateY(3px) scale(0.97);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Secondary Button - Glass Effect */
.btn--secondary {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--c-primary);
  border: 2px solid rgba(242, 101, 34, 0.3);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--c-primary);
  transform: translateY(2px) scale(0.98);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn--secondary:active {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(3px) scale(0.97);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn--lg {
  padding: var(--s-4) var(--s-6);
  font-size: var(--fs-2);
  border-radius: var(--r-lg);
}

.btn--sm {
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
  border-radius: var(--r-md);
}

/* Modal CTA Button */
.services-modal__cta {
  margin-top: var(--s-2);
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Logo Component
   -------------------------------------------------------------------------- */
.logo-text {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  font-size: var(--fs-2);
  border-radius: var(--r-md);
  font-style: italic;
}

.logo-name {
  font-size: var(--fs-2);
  font-weight: 600;
  color: var(--c-text);
  font-style: italic;
}

.logo-text--light .logo-icon {
  background-color: var(--c-white);
  color: var(--c-primary);
}

.logo-text--light .logo-name {
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9997;
  /* Above modals, below nav menu/toggle */
  width: calc(100% - var(--s-6));
  max-width: calc(var(--container) + var(--s-6));
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--r-full);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-smooth);
  overflow: visible;
  /* Allow menu to extend beyond header */
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--s-4);
  padding-inline: var(--s-5);
  overflow: visible;
  /* Allow menu to extend beyond header inner */
}

.header__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header__logo {
  order: 1;
}

/* Header Games Link */
.header__games-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
  overflow: visible;
  /* Mobile: place left of navigation (hamburger) */
  order: 2;
  margin-left: auto;
  margin-right: -16px;
  /* Closer to burger menu */
}



.header__games-link:hover {
  background: transparent;
  border-color: transparent;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: none;
}

.header__games-link:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

.header__games-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-fast);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header__games-link:hover .header__games-icon {
  transform: rotate(-8deg) scale(1.1);
}

.header__cta {
  display: none;
  border-radius: var(--r-full);
  padding: var(--s-3) var(--s-5);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  order: 3;
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 9999;
  /* Always above ALL content, modals, and forms */
  border-radius: var(--r-md);
  transition: background-color var(--transition-fast);
  pointer-events: auto;
  /* Ensure always clickable */
}

.nav__toggle:hover {
  background-color: var(--c-surface);
}

.nav__toggle:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--c-text);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  position: absolute;
}

.nav__toggle-icon::before {
  transform: translateY(-7px);
}

.nav__toggle-icon::after {
  transform: translateY(7px);
}

/* Toggle Open State */
.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
  background-color: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
  transform: rotate(45deg);
  background-color: var(--c-text);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
  transform: rotate(-45deg);
  background-color: var(--c-text);
}

/* Mobile Menu */
.nav__menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  /* Full screen width on mobile */
  max-width: 100vw;
  /* Full viewport on mobile */
  height: 100vh;
  height: 100dvh;
  padding: var(--s-6) var(--s-6) var(--s-6);
  /* Premium Glassmorphism Background */
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  box-shadow:
    -10px 0 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: 9998;
  /* Ensure menu is above all modals and forms */
  overflow-y: auto;
  overflow-x: hidden;
  /* Prevent horizontal overflow */
  pointer-events: none;
  /* Disable clicks when closed */
  will-change: transform;
  /* Optimize slide animation */
  visibility: hidden;
  /* Hide completely when closed */
}

/* Desktop: limit to 360px width */
@media (min-width: 769px) {
  .nav__menu {
    max-width: 360px;
    background: var(--c-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav__menu.is-open {
  transform: translateX(0);
  pointer-events: auto;
  /* Enable clicks when open */
  visibility: visible;
  /* Show when open */
}

.nav__link {
  display: block;
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-2);
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-lg);
  /* Glass card for each link on mobile */
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all var(--transition-smooth);
  margin-bottom: var(--s-2);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-5px);
  box-shadow: 0 4px 16px rgba(242, 101, 34, 0.15);
}

.nav__link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 4px;
}

/* Larger text on mobile fullscreen menu */
@media (max-width: 768px) {
  .nav__link {
    font-size: var(--fs-3);
    padding: var(--s-5) var(--s-6);
  }
}

/* Mobile Menu Logo - Hidden on Desktop */
.nav__menu-logo {
  display: none;
}

@media (max-width: 768px) {
  .nav__menu-logo {
    display: flex;
    justify-content: flex-start;
    padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-3);
    border-bottom: 1px solid rgba(242, 101, 34, 0.15);
  }

  .nav__menu-logo a {
    display: block;
  }

  .nav__menu-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: 120px var(--s-8);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: left;
}

/* Premium White Glass Card */
.hero__card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: var(--r-2xl);
  padding: var(--s-7) var(--s-6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  margin-bottom: var(--s-5);
  color: var(--c-text-dark);
  line-height: 1.15;
  font-weight: 600;
  font-style: normal;
  text-shadow: none;
}

.text-highlight {
  color: var(--c-primary);
  font-style: normal;
  font-weight: 600;
}

.hero__text {
  font-size: var(--fs-2);
  color: var(--c-text-secondary);
  margin-bottom: var(--s-6);
  line-height: var(--lh-relaxed);
  text-shadow: none;
}

.hero__text strong {
  color: var(--c-text-dark);
  font-weight: 700;
}

/* Subtext Wrapper with Figures */
.hero__subtext-wrapper {
  position: relative;
  margin-bottom: var(--s-6);
}

/* Subtext - More Transparent Glass Card */
.hero__subtext {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-xl);
  font-size: var(--fs-2);
  color: var(--c-text);
  line-height: var(--lh-relaxed);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
}

.hero__subtext strong {
  color: var(--c-text);
  font-weight: 700;
}

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

/* Character Figures */
.hero__figure {
  position: absolute;
  width: 80px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.hero__figure--top-left {
  top: -30px;
  left: -10px;
  width: 55px;
  transform: rotate(-5deg);
}

.hero__figure--bottom-right {
  bottom: 15px;
  right: 15px;
  width: 60px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
}

/* Pill Button Variants */
.btn--pill {
  border-radius: var(--r-full);
  padding: var(--s-4) var(--s-6);
  font-size: var(--fs-1);
}

.btn--outline {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  box-shadow: none;
}

.btn--outline:hover {
  background-color: var(--c-white);
  box-shadow: var(--sh-md);
}

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.trust {
  position: relative;
  padding-block: var(--s-9);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.trust__bg-decor {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 1600px;
  z-index: 0;
  opacity: 0.35;
  filter: blur(8px);
  pointer-events: none;
}

.trust__bg-decor img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.trust__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-7);
}

/* 3D Rolling Title Container */
.trust__title-tube {
  position: relative;
  perspective: 600px;
  margin-bottom: var(--s-5);
}

.trust__title {
  color: var(--c-primary);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  margin: 0;
  line-height: 1.2;
}

.trust__title-line {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.trust__title-line div,
.trust__char {
  display: inline-block;
  backface-visibility: hidden;
}

.trust__text {
  font-size: var(--fs-2);
  color: var(--c-text-secondary);
  margin-bottom: var(--s-4);
  line-height: var(--lh-relaxed);
}

.trust__image {
  display: flex;
  justify-content: center;
}

.trust__image img {
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-lg);
  object-fit: cover;
  object-position: center top;
  max-width: 280px;
  aspect-ratio: 1;
}

/* Pflegegrad Visual Graphic - Modern Subtle Design */
.trust__pflegegrad-visual {
  margin-top: var(--s-4);
}

.trust__pflegegrad-intro {
  font-size: var(--fs-0);
  color: var(--c-text-secondary);
  margin-bottom: var(--s-2);
}

.trust__pflegegrad-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.trust__pflegegrad-card {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: var(--s-2) var(--s-4);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(242, 101, 34, 0.4);
  border-radius: var(--r-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all var(--transition-smooth);
}

.trust__pflegegrad-card:hover {
  background: rgba(242, 101, 34, 0.15);
  border-color: var(--c-primary);
  box-shadow: 0 6px 20px rgba(242, 101, 34, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.trust__pflegegrad-card:hover .trust__pflegegrad-label {
  color: var(--c-primary);
}

.trust__pflegegrad-card:hover .trust__pflegegrad-number {
  color: var(--c-primary);
}

.trust__pflegegrad-label {
  font-size: var(--fs-0);
  font-weight: 500;
  color: var(--c-text-secondary);
  transition: color var(--transition-smooth);
}

.trust__pflegegrad-number {
  font-size: var(--fs-1);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  transition: color var(--transition-smooth);
}

.trust__pflegegrad-note {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-0);
  color: var(--c-text-secondary);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.trust__pflegegrad-dot {
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Certification Badges - now positioned above text */
.trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}

.trust__badge {
  width: 100px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-smooth);
}

.trust__badge:hover {
  transform: scale(1.05);
}

/* Insurance Company Logos */
.trust__logos {
  margin-top: var(--s-8);
  text-align: center;
}

.trust__logos-label {
  font-size: var(--fs-1);
  color: var(--c-text-secondary);
  margin-bottom: var(--s-5);
  font-weight: 500;
  text-align: center;
  max-width: 100%;
}

.trust__logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-5);
}

.trust__logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--r-md);
  background-color: var(--c-white);
  padding: var(--s-2);
  box-shadow: var(--sh-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.trust__logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
  padding-block: var(--s-8) var(--s-10);
  background-color: transparent;
  min-height: 85vh;
}

.services__header {
  text-align: center;
  margin-bottom: var(--s-5);
}

.services__title {
  color: var(--c-primary);
  font-style: normal;
  margin-bottom: var(--s-4);
}

.services__subtitle {
  font-size: var(--fs-2);
  color: var(--c-text-secondary);
  max-width: 70ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

.services__grid {
  display: grid;
  gap: var(--s-5);
}

/* GSAP Flip Cards Grid */
.services__flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: 800px;
  margin-inline: auto;
}

.flip-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
}

.flip-box__preview {
  width: 100%;
  aspect-ratio: 1;
  max-width: 160px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background-size: 65%;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.flip-box__preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.flip-box:hover .flip-box__preview {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(242, 101, 34, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(242, 101, 34, 0.3);
}

.flip-box__title {
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--c-primary);
  text-align: center;
  margin: 0;
  transition: color var(--transition-smooth);
}

.flip-box:hover .flip-box__title {
  color: var(--c-primary-dark);
}

/* Services Modal */
.services-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.services-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.services-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
}

.services-modal.is-active .services-modal__overlay {
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.services-modal__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  padding: var(--s-6);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.1) brightness(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.1) brightness(1.05);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 80px rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.services-modal.is-active .services-modal__content {
  transform: scale(1);
  opacity: 1;
}

.services-modal__image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.services-modal__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-4);
  position: relative;
}

.services-modal__title {
  color: var(--c-primary);
  font-size: var(--fs-5);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.services-modal__text {
  color: var(--c-text-secondary);
  font-size: var(--fs-2);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.services-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 101, 34, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--c-primary);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.services-modal__close:hover {
  background: var(--c-primary);
  color: var(--c-white);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .services__flip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
  }

  .flip-box__preview {
    max-width: 130px;
  }

  .services-modal__content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--s-4);
  }

  .services-modal__image {
    min-height: 200px;
  }

  .services-modal__title {
    font-size: var(--fs-4);
  }
}

@media (max-width: 480px) {
  .services__flip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
  }

  .flip-box__preview {
    max-width: 130px;
  }

  .flip-box__title {
    font-size: var(--fs-0);
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.card__image {
  height: 180px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth);
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__content {
  padding: var(--s-5);
}

.card__title {
  color: var(--c-primary);
  font-size: var(--fs-3);
  margin-bottom: var(--s-3);
  font-weight: 600;
}

.card__text {
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-1);
}

/* --------------------------------------------------------------------------
   Billing Marquee Ticker
   -------------------------------------------------------------------------- */
.billing-marquee {
  padding-block: var(--s-4) var(--s-5);
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.08) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(242, 101, 34, 0.08) 100%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(242, 101, 34, 0.15);
  border-bottom: 1px solid rgba(242, 101, 34, 0.15);
  overflow: hidden;
  position: relative;
}

/* Marquee Intro Text */
.marquee-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding-inline: var(--s-4);
}

.marquee-intro__text {
  font-size: var(--fs-2);
  font-weight: 500;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-full);
  border: 1px solid rgba(242, 101, 34, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.marquee-intro__dot {
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(242, 101, 34, 0.3);
}

@keyframes dot-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  /* Force GPU acceleration and prevent animation glitches */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0) translateZ(0);
  }

  100% {
    transform: translateX(-50%) translateZ(0);
  }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding-inline: var(--s-6);
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.marquee-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(242, 101, 34, 0.15);
  border-color: rgba(242, 101, 34, 0.3);
}

.marquee-item__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.marquee-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.marquee-item__title {
  font-size: var(--fs-2);
  font-weight: 600;
  color: var(--c-text);
}

.marquee-item__subtitle {
  font-size: var(--fs-0);
  color: var(--c-primary);
  font-weight: 500;
}

.marquee-divider {
  font-size: 1.5rem;
  color: var(--c-primary);
  opacity: 0.5;
}

@media (max-width: 768px) {

  /* Vertical stacked layout on mobile */
  .billing-marquee {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding-block: var(--s-4) var(--s-5);
  }

  /* No animation on mobile */
  .marquee-track {
    animation: none !important;
    display: block;
    width: 100%;
  }

  /* Hide duplicate content */
  .marquee-content[aria-hidden="true"] {
    display: none !important;
  }

  /* Stack cards vertically */
  .marquee-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding-inline: var(--s-4);
  }

  .marquee-item {
    padding: var(--s-3) var(--s-4);
    gap: var(--s-2);
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .marquee-item__icon {
    width: 40px;
    height: 40px;
  }

  .marquee-item__text {
    text-align: center;
    align-items: center;
  }

  .marquee-item__title {
    font-size: var(--fs-1);
    text-align: center;
  }

  .marquee-item__subtitle {
    font-size: var(--fs-0);
    text-align: center;
  }

  .marquee-intro__text {
    font-size: 0.85rem;
    padding: var(--s-2) var(--s-4);
    text-align: center;
  }

  .marquee-intro__dot {
    display: none;
  }

  .marquee-divider {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .marquee-item {
    padding: var(--s-2) var(--s-3);
    gap: var(--s-2);
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .marquee-item__icon {
    width: 36px;
    height: 36px;
  }

  .marquee-item__text {
    text-align: center;
    align-items: center;
  }

  .marquee-item__title {
    font-size: var(--fs-0);
    text-align: center;
  }

  .marquee-item__subtitle {
    font-size: 0.7rem;
    text-align: center;
  }

  .marquee-intro__text {
    font-size: 0.8rem;
    padding: var(--s-2) var(--s-3);
  }
}

/* --------------------------------------------------------------------------
   Private Section
   -------------------------------------------------------------------------- */
.private {
  padding-block: var(--s-6);
  background: transparent;
}

.private__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.private__title {
  color: var(--c-primary);
  font-style: normal;
  margin-bottom: var(--s-3);
  text-align: center;
}

.private__text {
  font-size: var(--fs-2);
  color: var(--c-text-secondary);
  margin-bottom: var(--s-2);
  line-height: var(--lh-relaxed);
  text-align: center;
  max-width: 100%;
}

.private__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.private__highlight {
  font-size: var(--fs-3);
  color: var(--c-primary);
  margin-bottom: var(--s-4);
  text-align: center;
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   Pflegebox Section
   -------------------------------------------------------------------------- */
.pflegebox {
  padding-block: var(--s-9);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.pflegebox__header {
  text-align: center;
  margin-bottom: var(--s-8);
}

.pflegebox__title {
  font-size: clamp(1.5rem, 4vw, var(--fs-5));
  margin-bottom: var(--s-4);
  line-height: var(--lh-snug);
}

.pflegebox__intro {
  font-size: var(--fs-2);
  color: var(--c-text-secondary);
  max-width: 70ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

.pflegebox__grid {
  display: grid;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}

.pflegebox__info h3,
.pflegebox__steps h3 {
  color: var(--c-primary);
  font-style: italic;
  margin-bottom: var(--s-4);
  font-size: var(--fs-4);
}

.pflegebox__info h4 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
  font-size: var(--fs-3);
}

.pflegebox__info p {
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-3);
}

.pflegebox__info ul {
  margin-bottom: var(--s-4);
}

.pflegebox__info li {
  position: relative;
  padding-left: var(--s-6);
  margin-bottom: var(--s-2);
  color: var(--c-text-secondary);
  line-height: var(--lh-normal);
}

.pflegebox__info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--c-primary);
  border-radius: var(--r-full);
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.step__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  font-size: var(--fs-2);
  border-radius: var(--r-full);
  box-shadow: var(--sh-primary);
}

.step__content strong {
  font-size: var(--fs-2);
  display: block;
  margin-bottom: var(--s-1);
}

.step__content p {
  color: var(--c-text-secondary);
  font-size: var(--fs-1);
  line-height: var(--lh-normal);
}

/* Benefits */
.pflegebox__benefits {
  display: grid;
  gap: var(--s-7);
  padding: var(--s-7);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.pflegebox__benefits h3 {
  color: var(--c-primary);
  font-style: italic;
  margin-bottom: var(--s-5);
  font-size: var(--fs-4);
}

.check-list li {
  position: relative;
  padding-left: var(--s-7);
  margin-bottom: var(--s-3);
  font-size: var(--fs-2);
  color: var(--c-text);
  line-height: var(--lh-normal);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
  font-size: var(--fs-2);
}

.pflegebox__benefits .btn {
  margin-top: var(--s-5);
}

.pflegebox__benefits-image {
  display: flex;
  justify-content: center;
}

.pflegebox__benefits-image img {
  border-radius: var(--r-2xl);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  max-width: 280px;
  box-shadow: var(--sh-lg);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-block: var(--s-9);
  background-color: #F26522;
  color: var(--c-white);
  text-align: center;
  overflow: hidden;
}

/* Vector Decorations */
.cta__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cta__decor--left {
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: auto;
  opacity: 1;
}

.cta__decor--right {
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: auto;
  opacity: 1;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: var(--fs-5);
  margin-bottom: var(--s-4);
  color: var(--c-white);
}

.cta__text {
  font-size: var(--fs-2);
  opacity: 0.95;
  margin-bottom: var(--s-6);
  max-width: 50ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
}

.cta .btn--primary {
  background-color: var(--c-white);
  color: var(--c-primary);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cta .btn--primary:hover {
  background-color: var(--c-surface);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta .btn--secondary {
  background: transparent;
  border: 2px solid var(--c-white);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--c-white);
}

/* --------------------------------------------------------------------------
   Footer - Premium Design
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-block: var(--s-6) var(--s-5);
  background: linear-gradient(180deg, #CC4F17 0%, #B8431A 100%);
  color: var(--c-white);
  overflow: visible;
}

/* Premium Glow Effect */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.footer__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.footer__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
}

.footer__logo {
  width: auto;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Footer Figures - Premium Positioned */
.footer__figure {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.footer__figure--left {
  left: 2%;
  top: -60px;
  width: 70px;
  height: auto;
}

.footer__figure--right {
  right: 550px;
  bottom: 20px;
  width: 80px;
  height: auto;
}

.footer__tagline {
  font-size: var(--fs-sm);
  opacity: 0.9;
  max-width: 250px;
  line-height: var(--lh-relaxed);
  text-align: center;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
}

.footer__nav a {
  font-weight: 500;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer__nav a:hover {
  opacity: 1;
}

.footer__nav a:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 4px;
}

.footer__legal {
  display: flex;
  justify-content: center;
  gap: var(--s-5);
}

.footer__legal a {
  font-size: var(--fs-sm);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer__legal a:hover {
  opacity: 1;
}

.footer__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
}

/* Footer Social Links (Instagram) */
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 0;
  margin-left: var(--s-1);
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  transition: all var(--transition-fast);
  vertical-align: middle;
}

.footer__social:hover {
  background: var(--c-white);
  color: var(--c-primary);
  transform: scale(1.1);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__copyright-bar {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--s-5);
  margin-top: var(--s-5);
}

/* Premium Separator Line */
.footer__copyright-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 30%, rgba(255, 255, 255, 0.25) 70%, transparent 100%);
}

.footer__copyright {
  position: relative;
  z-index: 2;
  font-size: var(--fs-xs);
  opacity: 0.6;
  text-align: center;
  letter-spacing: 0.02em;
  padding-top: var(--s-3);
  margin-top: var(--s-2);
}

/* ==========================================================================
   Mobile Footer Optimization
   ========================================================================== */
@media (max-width: 768px) {

  /* Hide footer figures on mobile */
  .footer__figure {
    display: none;
  }

  /* Reset footer brand positioning for mobile */
  .footer__brand {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    order: 1;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--s-4);
    text-align: center;
  }

  .footer__left,
  .footer__right {
    align-items: center;
    order: 2;
  }

  .footer__nav {
    order: 3;
  }

  .footer__nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .footer__logo {
    height: 50px;
  }

  .footer__copyright {
    padding-top: var(--s-2);
  }
}

/* Prevent horizontal overflow on mobile */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* Ensure all sections and containers stay within viewport */
section,
.container,
main,
header,
footer {
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  padding-inline: var(--container-padding);
}

/* Prevent any element from extending beyond viewport on mobile */
@media (max-width: 768px) {
  * {
    max-width: 100vw;
  }

  .hero,
  .trust,
  .services,
  .billing-marquee,
  .private,
  .cta,
  .footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .marquee-track {
    max-width: none;
    /* Allow marquee to scroll */
  }

  /* Allow mobile menu and header to work properly */
  .nav__menu,
  .header,
  .nav__toggle {
    max-width: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 480px+ */
@media (min-width: 480px) {
  :root {
    --container-padding: var(--s-6);
  }

  .card__image {
    height: 200px;
  }
}

/* 768px+ */
@media (min-width: 768px) {
  :root {
    --s-9: 100px;
  }

  .header__inner {
    height: 80px;
  }

  .header__logo {
    order: 1;
  }

  .nav {
    order: 2;
    position: absolute;
    /* Absolute centering for perfect independence */
    left: 48.5%;
    /* Shift slightly left */
    transform: translateX(-50%);
    width: auto;
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .header__games-link {
    order: 3;
    margin-right: 0;
    /* Directly next to CTA button */
    width: 100px;
    /* Slightly bigger than original, not oversized */
    height: 75px;
    margin-left: auto;
    /* Push to the right group if needed */
    align-self: center;
    /* Vertically center in flexbox - will overflow equally top/bottom */
  }

  .header__cta {
    display: inline-flex;
    order: 4;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    justify-content: center;
    /* Ensure items are centered */
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    gap: var(--s-5);
    transform: none;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    padding: var(--s-2) 0;
    font-size: var(--fs-1);
    border-bottom: none;
  }

  .hero__content {
    max-width: 580px;
  }

  .trust__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--s-8);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
  }

  .billing__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--s-8);
  }

  .private__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }

  .pflegebox__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }

  .pflegebox__benefits {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--s-8);
  }

  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }

  .footer__nav {
    order: 2;
  }

  .footer__brand {
    order: 1;
  }

  .footer__brand img {
    margin-inline: 0;
  }

  .footer__legal {
    order: 3;
    justify-content: flex-end;
  }

  .footer__copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--s-4);
  }
}

/* 1024px+ */
@media (min-width: 1024px) {
  :root {
    --s-9: 120px;
  }

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

  .card__image {
    height: 180px;
  }
}

/* 1280px+ */
@media (min-width: 1280px) {
  :root {
    --container-padding: var(--s-7);
  }

  .hero__content {
    max-width: 600px;
  }
}

/* Mobile: Hide "Jetzt kontaktieren" button on game pages */
@media (max-width: 768px) {
  .games-page-body .header__cta {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Large Desktop Optimization (1600px+)
   Controls spacing and scaling for large/ultra-wide screens
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root {
    /* Cap spacing variables for large screens */
    --s-8: 80px;
    /* Was 64px on mobile, cap at 80px */
    --s-9: 100px;
    /* Was 80px on mobile, cap at 100px */
    --s-10: 140px;
    /* Was 120px on mobile, cap at 140px */
    --container: 1400px;
    /* Increase max content width */
  }

  /* Prevent excessive vertical spacing in sections */
  .hero {
    padding-block: 140px 100px;
  }

  .trust {
    padding-block: 100px;
  }

  .services {
    padding-block: 100px 120px;
  }

  .private {
    padding-block: 80px;
  }

  .cta {
    padding-block: 100px;
  }

  /* Keep content centered and readable */
  .container {
    padding-inline: var(--s-8);
  }

  /* Optimize service grid for larger displays */
  .services__flip-grid {
    max-width: 1000px;
  }

  .flip-box__preview {
    max-width: 200px;
  }
}

/* --------------------------------------------------------------------------
   Ultra-Wide Desktop Optimization (2000px+)
   Maximum constraints for ultra-wide displays
   -------------------------------------------------------------------------- */
@media (min-width: 2000px) {
  :root {
    /* Hard cap on spacing for ultra-wide screens */
    --s-8: 90px;
    --s-9: 110px;
    --s-10: 150px;
    --container: 1600px;
    /* Maximum content width */
  }

  /* Maintain consistent section spacing */
  section {
    max-width: 100%;
  }

  /* Ensure visual balance on ultra-wide screens */
  .hero__content {
    max-width: 800px;
  }

  .services__flip-grid {
    max-width: 1200px;
  }
}