/**
 * Schloß Binau One-Pager Theme Stylesheet
 * Inspiriert von moderner Pflegedienst-Ästhetik (vr-pflegedienst.de)
 */

:root {
  --sb-primary: #52277e;
  --sb-primary-hover: #401d64;
  --sb-primary-light: #f5f0fa;
  --sb-primary-glow: rgba(82, 39, 126, 0.18);
  --sb-accent: #e59834;
  --sb-accent-hover: #cf8422;
  --sb-accent-light: #fef7ec;
  --sb-teal: #2a837e;
  --sb-teal-light: #edf7f6;
  
  --sb-dark: #1b1924;
  --sb-body: #494850;
  --sb-muted: #74737d;
  --sb-light-bg: #fbfbfe;
  --sb-card-bg: #ffffff;
  --sb-border: #e6e4ec;
  --sb-border-focus: #b9a2d8;
  
  --sb-radius-sm: 8px;
  --sb-radius-md: 14px;
  --sb-radius-lg: 22px;
  --sb-radius-xl: 32px;
  
  --sb-shadow-subtle: 0 4px 16px rgba(27, 25, 36, 0.04);
  --sb-shadow-card: 0 10px 30px -5px rgba(82, 39, 126, 0.07);
  --sb-shadow-hover: 0 20px 40px -10px rgba(82, 39, 126, 0.16);
  --sb-shadow-active: 0 24px 48px -12px rgba(82, 39, 126, 0.22);
  
  --sb-transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --sb-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sb-body);
  background-color: var(--sb-light-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

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

a {
  color: var(--sb-primary);
  text-decoration: none;
  transition: var(--sb-transition);
}

a:hover {
  color: var(--sb-primary-hover);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--sb-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections Global */
.section {
  padding: 55px 0;
  position: relative;
}

.section-alt {
  background-color: #ffffff;
}

.section-primary-tint {
  background: linear-gradient(180deg, #fbfbfe 0%, #f6f0fa 100%);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.section-tag {
  display: none !important;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--sb-muted);
  line-height: 1.7;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--sb-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sb-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(82, 39, 126, 0.28);
}

.btn-primary:hover {
  background: var(--sb-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82, 39, 126, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--sb-primary) !important;
  border-color: var(--sb-border);
}

.btn-secondary:hover {
  border-color: var(--sb-primary);
  background: var(--sb-primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--sb-accent);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(229, 152, 52, 0.35);
}

.btn-accent:hover {
  background: var(--sb-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(229, 152, 52, 0.45);
}

.btn-play {
  background: rgba(255, 255, 255, 0.95);
  color: var(--sb-primary) !important;
  backdrop-filter: blur(8px);
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-play:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.02);
  color: var(--sb-primary-hover) !important;
}

.btn-play .play-icon {
  width: 32px;
  height: 32px;
  background: var(--sb-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--sb-transition);
}

.btn-play:hover .play-icon {
  background: var(--sb-accent);
  transform: scale(1.1);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--sb-transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 228, 236, 0.7);
}

/* WordPress Admin Bar Fix (logged-in users) */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 2px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  transition: var(--sb-transition);
}

.site-header.scrolled .nav-container {
  height: 68px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.site-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.site-logo,
.custom-logo,
.custom-logo-link img,
.site-logo-link img,
.site-brand img {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: var(--sb-transition);
}

.site-header.scrolled .site-logo,
.site-header.scrolled .custom-logo,
.site-header.scrolled .custom-logo-link img,
.site-header.scrolled .site-logo-link img,
.site-header.scrolled .site-brand img {
  height: 40px;
  max-height: 40px;
  max-width: 130px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sb-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--sb-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 20px);
  flex-shrink: 1;
  margin: 0 10px;
}

.nav-menu ul,
.sb-custom-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 20px);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-menu li,
.sb-custom-nav-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-menu li a,
.sb-custom-nav-list li a,
.nav-link {
  color: var(--sb-dark);
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  font-weight: 600;
  padding: 8px 6px;
  text-decoration: none;
  white-space: nowrap !important;
  position: relative;
  transition: var(--sb-transition);
}

.nav-menu li a:hover,
.sb-custom-nav-list li a:hover,
.nav-link:hover,
.nav-link.active {
  color: var(--sb-primary);
}

.nav-menu .sub-menu {
  display: none !important;
}

.nav-link::after,
.nav-menu li a::after,
.sb-custom-nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--sb-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-menu li a:hover::after,
.sb-custom-nav-list li a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-social {
  display: none !important;
}

.social-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sb-primary-light);
  color: var(--sb-primary);
  transition: var(--sb-transition);
  text-decoration: none;
  position: relative;
}

.social-header-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
  background: #191424;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 999999;
}

.social-header-btn::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 5px 5px 5px;
  border-style: solid;
  border-color: transparent transparent #191424 transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 999999;
}

.social-header-btn:hover::after,
.social-header-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-header-btn:hover {
  background: var(--sb-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(82, 39, 126, 0.3);
}

.social-header-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  margin: 5px 0;
  background: var(--sb-dark);
  border-radius: 3px;
  transition: var(--sb-transition);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 90px;
  background-color: #231c2e;
  background-image: 
    linear-gradient(90deg, 
      rgba(20, 15, 32, 0.74) 0%, 
      rgba(20, 15, 32, 0.52) 45%, 
      rgba(20, 15, 32, 0.15) 100%
    ), 
    url('../images/castle-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay-pattern {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.9s ease-out;
}

.hero-motto {
  display: block;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  margin-top: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #e8d5ff 28%, #ffffff 58%, #ffdca8 82%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: mottoShimmer 6s ease-in-out infinite;
}

@keyframes mottoShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.24rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Fancy Word-by-Word Build-up */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(5px);
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
  white-space: pre-wrap;
}

.hero-lead.build-in .hero-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  padding-left: 20px;
  border-left: 3.5px solid var(--sb-accent);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-anim-ready .hero-intro {
  opacity: 0;
  transform: translateY(14px);
  border-left-color: transparent;
  transition: opacity 0.65s ease-out, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease-out;
}

.hero-anim-ready .hero-intro.build-in {
  opacity: 1;
  transform: translateY(0);
  border-left-color: var(--sb-accent);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-anim-ready .hero-cta-group {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-anim-ready .hero-cta-group.build-in {
  opacity: 1;
  transform: translateY(0);
}


.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-info h4 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
}

/* CARDS GLOBAL HOVER EFFECT */
.interactive-card {
  background: var(--sb-card-bg);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  box-shadow: var(--sb-shadow-card);
  transition: var(--sb-transition);
  position: relative;
  overflow: hidden;
}

.interactive-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sb-shadow-hover);
  border-color: var(--sb-border-focus);
}

.interactive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sb-primary), var(--sb-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* VISION & MISSION SECTION */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.vm-box {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.vm-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sb-primary);
  background: var(--sb-primary-light);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.vm-badge.badge-mission {
  color: var(--sb-accent-hover);
  background: var(--sb-accent-light);
}

.vm-headline {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.vm-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sb-primary);
  margin-bottom: 18px;
}

.vm-tagline.tagline-mission {
  color: var(--sb-accent-hover);
}

.vm-box p {
  color: var(--sb-body);
  margin-bottom: 14px;
  line-height: 1.7;
}

.vm-quote-highlight {
  margin: 18px 0;
  padding: 16px 20px;
  background: #fdfaf6;
  border-left: 4px solid var(--sb-accent);
  border-radius: 0 var(--sb-radius-sm) var(--sb-radius-sm) 0;
  font-style: italic;
  font-weight: 600;
  color: var(--sb-dark);
}

/* ========================================================= */
/* VISION CARD LEADERSHIP STRIP (Armin, Fabian, Lisa)       */
/* ========================================================= */
.vm-leadership-strip {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--sb-border);
}

.vm-leadership-strip-label {
  display: block;
  font-family: var(--sb-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sb-primary);
  margin-bottom: 16px;
  text-align: center;
}

.vm-leaders-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.vm-leader-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 4px 8px;
  border-radius: var(--sb-radius-sm);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}

.vm-leader-item:hover {
  transform: translateY(-4px);
  background: rgba(82, 39, 126, 0.04);
}

.vm-leader-img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(82, 39, 126, 0.2);
  margin-bottom: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.vm-leader-item:hover .vm-leader-img {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(82, 39, 126, 0.35);
}

.vm-leader-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vm-leader-name {
  font-family: var(--sb-font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sb-dark);
  line-height: 1.25;
}

.vm-leader-role {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sb-primary);
  margin-top: 3px;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .vm-leader-img {
    width: 62px;
    height: 62px;
  }
  .vm-leader-name {
    font-size: 0.8rem;
  }
  .vm-leader-role {
    font-size: 0.7rem;
  }
}

/* Team Cards (Armin, Fabian, Lisa) */
.leadership-header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

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

.team-card {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--sb-primary), var(--sb-accent));
  margin-bottom: 20px;
  transition: var(--sb-transition);
  position: relative;
}

.team-card:hover .team-avatar-wrap {
  transform: scale(1.06);
  box-shadow: 0 8px 25px var(--sb-primary-glow);
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sb-primary);
  margin-bottom: 12px;
}

.team-desc {
  font-size: 0.9rem;
  color: var(--sb-muted);
}

/* ZIELGRUPPE SECTION */
.target-intro-box {
  background: #ffffff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-xl);
  padding: 48px;
  box-shadow: var(--sb-shadow-card);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.target-intro-text h3 {
  font-size: 1.85rem;
  margin-bottom: 16px;
  color: var(--sb-dark);
}

.target-intro-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--sb-body);
  margin-bottom: 18px;
}

.target-image-card {
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  box-shadow: var(--sb-shadow-card);
  position: relative;
  aspect-ratio: 4/3;
}

.target-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.target-image-card:hover img {
  transform: scale(1.05);
}

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

.feature-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--sb-radius-md);
  background: var(--sb-primary-light);
  color: var(--sb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: var(--sb-transition);
}

.feature-card:hover .feature-icon-box {
  background: var(--sb-primary);
  color: #ffffff;
  transform: scale(1.1) rotate(4deg);
}

.feature-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* STIMMEN / TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonials-slider-container {
  position: relative;
  overflow: hidden;
  padding: 10px 4px 20px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  gap: 24px;
}

.testimonials-track .quote-card {
  flex: 0 0 calc((100% - 48px) / 3);
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .testimonials-track .quote-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 680px) {
  .testimonials-track .quote-card {
    flex: 0 0 100%;
  }
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--sb-border);
  color: var(--sb-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--sb-transition);
  box-shadow: var(--sb-shadow-subtle);
}

.slider-btn:hover {
  background: var(--sb-primary);
  color: #ffffff;
  border-color: var(--sb-primary);
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d6e2;
  cursor: pointer;
  transition: var(--sb-transition);
}

.slider-dot.active {
  background: var(--sb-primary);
  width: 26px;
  border-radius: 12px;
}

.quote-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}


.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quote-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.quote-badge.badge-staff {
  background: #edf7f6;
  color: #1b6d68;
}

.quote-badge.badge-family {
  background: #fef7ec;
  color: #b56b0d;
}

.quote-icon {
  color: var(--sb-border);
  font-size: 2.2rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sb-body);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.quote-photo-wrap {
  margin: 0 0 20px;
  border-radius: var(--sb-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 205px;
  position: relative;
  border: 1px solid rgba(82, 39, 126, 0.06);
}

.quote-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.45s ease;
  transform-origin: center top;
}

.quote-photo.quote-photo-top,
.quote-card:nth-child(2) .quote-photo {
  object-position: center top;
}

.quote-card:hover .quote-photo {
  transform: scale(1.03);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--sb-border);
}

.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sb-primary-light);
  color: var(--sb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quote-author-info h5 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.quote-author-info p {
  font-size: 0.8rem;
  color: var(--sb-muted);
}

.stars-rating {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* STANDORT & ANFAHRT SECTION */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.location-info-card {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--sb-body);
  margin-bottom: 24px;
}

.location-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.loc-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #fbfbfe;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-md);
  transition: var(--sb-transition);
}

.loc-item:hover {
  background: #ffffff;
  border-color: var(--sb-border-focus);
  transform: translateX(4px);
  box-shadow: var(--sb-shadow-subtle);
}

.loc-item h5 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--sb-primary);
}

.loc-item p {
  font-size: 0.92rem;
  color: var(--sb-muted);
  line-height: 1.6;
}

.location-media-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========================================================= */
/* LOCATION IMAGE SLIDER                                    */
/* ========================================================= */
.location-slider {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--sb-radius-md);
  overflow: hidden;
  box-shadow: var(--sb-shadow-card);
  background: #191424;
}

.location-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.location-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.55s ease;
  pointer-events: none;
}

.location-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.location-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 24px 44px;
  background: linear-gradient(to top, rgba(16, 12, 28, 0.92) 0%, rgba(16, 12, 28, 0.5) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  z-index: 2;
}

.slide-caption-title {
  font-family: var(--sb-font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  flex: 1;
}

.slide-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.loc-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--sb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.loc-slider-nav:hover {
  background: var(--sb-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(82, 39, 126, 0.4);
}

.loc-slider-prev {
  left: 16px;
}

.loc-slider-next {
  right: 16px;
}

.loc-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 4px 10px;
  background: rgba(16, 12, 28, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.loc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loc-dot.active {
  width: 24px;
  border-radius: 5px;
  background: var(--sb-accent);
  border-color: var(--sb-accent);
  box-shadow: 0 2px 8px rgba(223, 168, 69, 0.55);
}

.map-container {
  height: 260px;
  border-radius: var(--sb-radius-md);
  overflow: hidden;
  position: relative;
  background: #e5e3df;
  border: 1px solid var(--sb-border);
}

.map-placeholder-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0edf5;
  text-align: center;
  padding: 20px;
}

.map-placeholder-overlay svg {
  width: 44px;
  height: 44px;
  fill: var(--sb-primary);
  margin-bottom: 12px;
}

.map-placeholder-overlay h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.map-placeholder-overlay p {
  font-size: 0.85rem;
  color: var(--sb-muted);
  margin-bottom: 14px;
}

/* HEIMKOSTEN SECTION */
.costs-intro-box {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 24px 30px;
  background: #ffffff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  box-shadow: var(--sb-shadow-subtle);
}

.costs-stand-badge {
  display: inline-block;
  background: var(--sb-accent-light);
  color: var(--sb-accent-hover);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.costs-intro-box p {
  font-size: 1.05rem;
  color: var(--sb-body);
}

/* 4 Cost Cards Grid */
.costs-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.cost-card {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--sb-border);
}

.cost-card.highlight-card {
  border-color: var(--sb-border);
  background: var(--sb-card-bg);
}

.cost-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.cost-period {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sb-dark);
  margin-bottom: 8px;
}

.subsidy-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--sb-primary-light);
  color: var(--sb-primary);
  margin-bottom: 22px;
}

.cost-card.highlight-card .subsidy-badge {
  background: var(--sb-primary-light);
  color: var(--sb-primary);
}

.cost-amount-wrap {
  margin-bottom: 20px;
}

.cost-amount-label {
  font-size: 0.8rem;
  color: var(--sb-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.cost-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sb-dark);
  line-height: 1;
}

.cost-period-unit {
  font-size: 0.85rem;
  color: var(--sb-muted);
  font-weight: 500;
}

.cost-meta-info {
  font-size: 0.82rem;
  color: var(--sb-muted);
  border-top: 1px solid var(--sb-border);
  padding-top: 14px;
}

/* Costs Table */
.costs-table-wrap {
  background: #ffffff;
  border-radius: var(--sb-radius-lg);
  border: 1px solid var(--sb-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--sb-shadow-subtle);
  margin-bottom: 30px;
}

.costs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.costs-table th,
.costs-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--sb-border);
}

.costs-table th {
  background: #f8f7fb;
  color: var(--sb-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.costs-table tr:last-child td {
  border-bottom: none;
}

.costs-table tr:hover td {
  background: #faf9fd;
}

.costs-table .price-cell {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sb-primary);
}

.costs-note-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--sb-primary-light);
  border-radius: var(--sb-radius-md);
  padding: 20px 28px;
}

.costs-note-box p {
  color: var(--sb-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* KARRIERE SECTION */
.career-banner {
  background: linear-gradient(135deg, #441f69 0%, #291240 100%);
  color: #ffffff;
  border-radius: var(--sb-radius-xl);
  padding: 70px 60px;
  box-shadow: var(--sb-shadow-hover);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.career-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 152, 52, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.career-content h3 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.career-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.career-perks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.perk-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #34d399;
  color: #064e3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.career-image-wrap {
  position: relative;
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
  aspect-ratio: 4/3;
  max-height: 380px;
}

.career-team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.career-image-wrap:hover .career-team-img {
  transform: scale(1.05);
}

.career-image-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(20, 15, 32, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* KONTAKT SECTION */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}

.contact-main-col {
  display: flex;
  flex-direction: column;
}

.contact-main-card {
  padding: 38px 34px;
  background: #ffffff;
  border-radius: var(--sb-radius-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--sb-border);
  box-shadow: var(--sb-shadow-card);
}

.contact-main-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.contact-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--sb-primary-light);
  color: var(--sb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(82, 39, 126, 0.12);
}

.contact-main-header h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sb-dark);
  margin-bottom: 3px;
}

.contact-main-header .dept-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sb-primary);
  margin-bottom: 0;
}

.contact-main-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--sb-body);
  margin-bottom: 26px;
}

.contact-main-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-main-links .dept-link {
  font-size: 0.98rem;
  gap: 10px;
  padding: 11px 16px;
  background: #fbfafd;
  border-radius: var(--sb-radius-sm);
  border: 1px solid rgba(82, 39, 126, 0.08);
  transition: var(--sb-transition);
}

.contact-main-links .dept-link:hover {
  background: var(--sb-primary-light);
  border-color: var(--sb-primary);
}

.contact-main-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

.contact-main-actions .btn {
  flex: 1 1 180px;
}

.contact-leaders-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-dept-card {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #ffffff;
  border-radius: var(--sb-radius-lg);
  border: 1px solid var(--sb-border);
  box-shadow: var(--sb-shadow-card);
  transition: var(--sb-transition);
}

.contact-dept-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sb-shadow-hover);
  border-color: var(--sb-primary);
}

.dept-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  border: 4px solid var(--sb-primary-light);
  box-shadow: 0 6px 18px rgba(82, 39, 126, 0.16);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.dept-details-wide {
  width: 100%;
}

.dept-icon {
  display: none;
}

.dept-details h4 {
  font-size: 1.15rem;
  margin-bottom: 3px;
  color: var(--sb-dark);
}

.dept-details .dept-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--sb-primary);
  margin-bottom: 8px;
}

.dept-contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}

.dept-link {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 3px;
  color: var(--sb-body);
}

.dept-link strong,
.contact-dept-card strong,
.dept-label {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.dept-val {
  word-break: break-all;
}

.dept-link:hover {
  color: var(--sb-primary);
}

/* Contact Form */
.contact-form-card {
  padding: 36px 32px;
  background: #ffffff;
}

.contact-form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.contact-form-card p {
  color: var(--sb-muted);
  margin-bottom: 28px;
}

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

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

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

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sb-dark);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-md);
  font-size: 0.95rem;
  color: var(--sb-dark);
  background: #fdfdfd;
  transition: var(--sb-transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--sb-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--sb-primary-glow);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--sb-muted);
}

.checkbox-group input {
  margin-top: 3px;
}

.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--sb-radius-md);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.form-alert.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* FOOTER */
.site-footer {
  background: #14121b;
  color: #b0afb8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #92909e;
  margin-bottom: 22px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--sb-transition);
  font-size: 1.1rem;
}

.social-btn:hover {
  background: var(--sb-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--sb-accent);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #92909e;
  font-size: 0.92rem;
  transition: var(--sb-transition);
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: #72707e;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: #72707e;
}

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

/* VIDEO MODAL */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 16, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 20px;
}

.video-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-dialog {
  width: 100%;
  max-width: 900px;
  background: #000000;
  border-radius: var(--sb-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: var(--sb-transition);
}

.video-modal-backdrop.active .video-modal-dialog {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--sb-transition);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.video-frame-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-frame-wrap iframe,
.video-frame-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  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;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sb-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sb-shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: var(--sb-transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--sb-accent);
  transform: translateY(-4px);
}

.btn-play .play-icon svg {
  display: block;
  fill: currentColor;
  margin-left: 2px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1260px) {
  .brand-tagline {
    display: none;
  }
  .nav-menu {
    gap: clamp(6px, 1vw, 14px);
  }
  .nav-link,
  .nav-menu li a,
  .sb-custom-nav-list li a {
    font-size: 0.84rem;
    padding: 6px 4px;
  }
  .site-logo,
  .custom-logo,
  .custom-logo-link img,
  .site-logo-link img,
  .site-brand img {
    max-width: 120px;
    height: 42px;
    max-height: 42px;
  }
}

@media (max-width: 1140px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 16px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--sb-transition);
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav-social {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(82, 39, 126, 0.12);
    width: 100%;
  }

  .mobile-nav-social-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sb-muted);
  }

  .mobile-nav-social-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .mobile-nav-social-links .social-header-btn {
    width: 44px;
    height: 44px;
    background: var(--sb-primary-light);
    color: var(--sb-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--sb-transition);
  }

  .mobile-nav-social-links .social-header-btn:hover {
    background: var(--sb-primary);
    color: #ffffff;
    transform: translateY(-2px);
  }

  .mobile-nav-social-links .social-header-btn svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 70px;
    padding: 0 16px;
  }
  
  .site-header.scrolled .nav-container {
    height: 62px;
  }
  
  .site-logo,
  .custom-logo,
  .custom-logo-link img,
  .site-logo-link img,
  .site-brand img {
    height: 38px;
    max-height: 38px;
    max-width: 110px;
  }
  
  .site-header.scrolled .site-logo,
  .site-header.scrolled .custom-logo,
  .site-header.scrolled .custom-logo-link img,
  .site-header.scrolled .site-logo-link img,
  .site-header.scrolled .site-brand img {
    height: 34px;
    max-height: 34px;
    max-width: 95px;
  }
  
  .brand-title {
    font-size: 1.05rem;
  }
  
  .brand-tagline {
    display: none !important;
  }
  
  .nav-menu {
    top: 70px;
    max-height: calc(100vh - 70px);
  }
  
  .social-header-btn {
    width: 32px;
    height: 32px;
  }
  
  .social-header-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 520px) {
  .header-social-links {
    display: none;
  }
  .nav-container {
    padding: 0 14px;
  }
}

@media (max-width: 1080px) {
  .costs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .target-intro-box {
    grid-template-columns: 1fr;
  }
  
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .location-wrapper {
    grid-template-columns: 1fr;
  }
  
  .career-banner {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    gap: 16px;
  }

  .team-grid {
    gap: 16px;
  }

  .target-features-grid {
    gap: 16px;
  }
}

@media (max-width: 880px) {
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .target-features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  /* KARRIERE SECTION MOBILE REFINEMENT */
  .career-banner {
    padding: 34px 20px;
    border-radius: var(--sb-radius-lg);
    gap: 26px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .career-content h3 {
    font-size: clamp(1.3rem, 5.2vw, 1.7rem);
    line-height: 1.3;
    margin-bottom: 14px;
    word-break: break-word;
    hyphens: auto;
  }

  .career-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .career-perks-list {
    gap: 12px;
    margin-bottom: 24px;
  }

  .perk-item {
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .perk-icon {
    width: 22px;
    height: 22px;
    font-size: 0.78rem;
    margin-top: 1px;
    flex-shrink: 0;
  }

  .career-content .btn {
    display: inline-flex;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 13px 16px;
    font-size: 0.92rem;
    line-height: 1.35;
    gap: 8px;
  }

  .career-image-wrap {
    max-height: 240px;
    border-radius: var(--sb-radius-md);
  }

  .career-image-badge {
    bottom: 10px;
    left: 10px;
    font-size: 0.74rem;
    padding: 4px 10px;
    max-width: calc(100% - 20px);
    white-space: normal;
  }

  /* KONTAKT SECTION MOBILE REFINEMENT */
  .contact-main-card {
    padding: 26px 20px;
  }

  .contact-main-header {
    gap: 14px;
    margin-bottom: 16px;
  }

  .contact-badge-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .contact-badge-icon svg {
    width: 22px;
    height: 22px;
  }

  .contact-main-header h3 {
    font-size: 1.35rem;
  }

  .contact-main-lead {
    font-size: 0.96rem;
    margin-bottom: 20px;
  }

  .contact-main-links {
    margin-bottom: 22px;
  }

  .contact-main-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
  }

  .contact-main-actions .btn {
    flex: 1 1 130px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 6px;
    white-space: nowrap;
    border-radius: 50px;
  }

  .contact-main-actions .btn svg {
    width: 16px;
    height: 16px;
  }

  .contact-dept-card {
    padding: 20px 18px;
    gap: 18px;
  }

  .dept-avatar {
    width: 78px;
    height: 78px;
  }

  .dept-details h4 {
    font-size: 1.05rem;
  }

  .dept-name {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .dept-contact-links {
    font-size: 0.85rem;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .career-banner {
    padding: 28px 16px;
  }

  .career-content h3 {
    font-size: 1.28rem;
  }

  .contact-dept-card {
    padding: 18px 14px;
    gap: 14px;
  }

  .dept-avatar {
    width: 68px;
    height: 68px;
  }

  .dept-contact-links {
    font-size: 0.82rem;
  }

  .contact-main-actions {
    gap: 8px;
  }

  .contact-main-actions .btn {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .contact-main-actions .btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 380px) {
  .career-banner {
    padding: 24px 12px;
    border-radius: var(--sb-radius-md);
  }

  .career-content .btn {
    padding: 12px 10px;
    font-size: 0.86rem;
  }

  .contact-dept-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
  }

  .dept-avatar {
    width: 62px;
    height: 62px;
    margin-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }
  
  .nav-actions .btn-header-cta {
    display: none;
  }
  
  .hero-stats-bar {
    grid-template-columns: 1fr;
  }
  
  .costs-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
  
  .costs-note-box {
    flex-direction: column;
    text-align: center;
  }
  
  .location-slider {
    height: 260px;
  }
  .loc-slider-nav {
    width: 38px;
    height: 38px;
  }
  .slide-caption-title {
    font-size: 0.92rem;
  }
}

/* ========================================================= */
/* SUBPAGE & LEGAL TEMPLATE (page.php, Impressum, Datenschutz) */
/* ========================================================= */
/* Header on standalone subpages (Impressum, Datenschutz) and while legal modal is open */
body.page:not(.home):not(.front-page) .site-header,
body.subpage .site-header,
body.legal-page .site-header,
body.legal-modal-open .site-header {
  display: none !important;
}

.subpage-main {
  padding-top: 0 !important;
  min-height: 85vh;
}

.subpage-hero {
  background: linear-gradient(135deg, #2b1442 0%, #150f24 100%);
  color: #ffffff;
  padding: 55px 0 50px;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(229, 152, 52, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

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

.subpage-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--sb-transition);
}

.subpage-back-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-4px);
}

.subpage-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.subpage-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
}

.subpage-content-section {
  padding: 60px 0 100px;
  margin-top: -30px;
}

.legal-card {
  padding: 50px;
  background: #ffffff;
  border-radius: var(--sb-radius-xl);
  box-shadow: 0 12px 40px rgba(27, 25, 36, 0.08);
  border: 1px solid var(--sb-border);
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--sb-dark);
}

.legal-content h2 {
  font-size: 1.45rem;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--sb-primary);
  border-bottom: 2px solid var(--sb-primary-light);
  padding-bottom: 8px;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--sb-dark);
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--sb-body);
}

.legal-content address {
  font-style: normal;
  line-height: 1.6;
  color: var(--sb-body);
  font-weight: 500;
}

.legal-content a {
  color: var(--sb-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--sb-accent);
}

@media (max-width: 768px) {
  .legal-card {
    padding: 30px 20px;
  }
}

/* LEGAL MODAL (PREVIEW & POPUP) */
.legal-modal-backdrop {
  z-index: 2100;
}

.legal-modal-dialog {
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: var(--sb-radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.legal-modal-header {
  padding: 22px 30px;
  background: linear-gradient(135deg, #2b1442 0%, #150f24 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-tab-btns {
  display: flex;
  gap: 12px;
}

.legal-tab-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: var(--sb-transition);
}

.legal-tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.legal-tab-btn.active {
  background: var(--sb-accent);
  color: #ffffff;
  border-color: var(--sb-accent);
  box-shadow: 0 4px 14px rgba(229, 152, 52, 0.35);
}

.legal-modal-close {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--sb-transition);
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.legal-modal-body {
  padding: 40px 44px;
  overflow-y: auto;
  flex: 1;
}

.legal-tab-content {
  display: none;
}

.legal-tab-content.active {
  display: block;
}

@media (max-width: 680px) {
  .legal-modal-body {
    padding: 24px 20px;
  }
  .legal-tab-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
}

/* ========================================================= */
/* ENTRANCE TRIGGER BUTTON & MODAL (STANDORT HAUPTEINGANG)   */
/* ========================================================= */
.entrance-trigger-wrap {
  margin: -2px 0 2px;
}

.btn-entrance-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(82, 39, 126, 0.05) 0%, rgba(229, 152, 52, 0.08) 100%);
  border: 1.5px solid rgba(82, 39, 126, 0.22);
  border-radius: var(--sb-radius-md);
  color: var(--sb-primary);
  font-family: var(--sb-font-sans);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 2px 8px rgba(82, 39, 126, 0.05);
}

.btn-entrance-trigger:hover {
  background: linear-gradient(135deg, var(--sb-primary) 0%, #3e1b61 100%);
  border-color: var(--sb-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 39, 126, 0.22);
}

.btn-entrance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--sb-primary);
  margin-right: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-entrance-trigger:hover .btn-entrance-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-entrance-label {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.btn-entrance-label strong {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
}

.btn-entrance-label small {
  font-size: 0.8rem;
  opacity: 0.82;
  font-weight: 500;
  margin-top: 2px;
}

.btn-entrance-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  margin-left: 10px;
  color: var(--sb-accent);
}

.btn-entrance-trigger:hover .btn-entrance-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

/* Entrance Modal */
.entrance-modal-backdrop {
  z-index: 2100;
}

.entrance-modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--sb-radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  animation: entranceModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes entranceModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.entrance-modal-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #2b1442 0%, #150f24 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entrance-modal-title-wrap {
  display: flex;
  flex-direction: column;
}

.entrance-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sb-accent);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.entrance-modal-title {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 0;
}

.entrance-modal-close {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--sb-transition);
}

.entrance-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.entrance-modal-body {
  padding: 22px 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.entrance-info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbf5eb;
  border-left: 4px solid var(--sb-accent);
  padding: 13px 16px;
  border-radius: var(--sb-radius-sm);
  margin-bottom: 18px;
}

.entrance-info-banner svg {
  color: var(--sb-accent);
  flex-shrink: 0;
}

.entrance-info-banner p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--sb-dark);
  line-height: 1.5;
}

.entrance-image-container {
  border-radius: var(--sb-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--sb-border);
  background: #f8f9fa;
  text-align: center;
}

.entrance-map-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 60vh;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .entrance-modal-body {
    padding: 18px 16px 22px;
  }
  .entrance-modal-header {
    padding: 14px 18px;
  }
  .btn-entrance-trigger {
    padding: 11px 14px;
  }
  .btn-entrance-label strong {
    font-size: 0.88rem;
  }
  .btn-entrance-label small {
    font-size: 0.74rem;
  }
}

/* ========================================================= */
/* LARGE SCREEN & HIGH-RES DISPLAY OPTIMIZATIONS (1400px+)    */
/* ========================================================= */
@media (min-width: 1400px) {
  html {
    scroll-padding-top: 100px;
    font-size: 17px;
  }

  /* Matching container and header widths ensure text aligns directly under the logo */
  .container {
    max-width: 1480px;
    padding: 0 36px;
  }

  .nav-container {
    max-width: 1480px;
    padding: 0 36px;
    height: 86px;
  }

  .site-header.scrolled .nav-container {
    height: 72px;
  }

  .site-brand {
    gap: 16px;
  }

  .site-logo,
  .custom-logo,
  .custom-logo-link img,
  .site-logo-link img,
  .site-brand img {
    height: 52px;
    max-height: 52px;
    max-width: 165px;
  }

  .site-header.scrolled .site-logo,
  .site-header.scrolled .custom-logo,
  .site-header.scrolled .custom-logo-link img,
  .site-header.scrolled .site-logo-link img,
  .site-header.scrolled .site-brand img {
    height: 44px;
    max-height: 44px;
    max-width: 140px;
  }

  .brand-title {
    font-size: 1.24rem;
  }

  .brand-tagline {
    font-size: 0.76rem;
    display: block !important;
  }

  /* Clustered header links without excessive spreading */
  .nav-menu {
    gap: 14px;
    margin: 0 16px;
  }

  .nav-menu ul,
  .sb-custom-nav-list {
    gap: 14px;
  }

  .nav-link,
  .nav-menu li a,
  .sb-custom-nav-list li a {
    font-size: 0.94rem;
    padding: 7px 10px;
    letter-spacing: 0.01em;
  }

  .header-social-links {
    gap: 10px;
  }

  .social-header-btn {
    width: 38px;
    height: 38px;
  }

  .social-header-btn svg {
    width: 18px;
    height: 18px;
  }

  .hero-content {
    max-width: 980px;
  }

  .section {
    padding: 68px 0;
  }

  .section-header {
    max-width: 860px;
    margin-bottom: 44px;
  }

  .section-title {
    font-size: 2.85rem;
  }

  .section-subtitle {
    font-size: 1.18rem;
  }

  .hero-title {
    font-size: 3.35rem;
  }

  .hero-lead {
    font-size: 1.28rem;
  }

  .target-intro-box {
    padding: 54px;
    gap: 48px;
  }

  .vm-box {
    padding: 46px;
  }

  .quote-card {
    padding: 38px 32px;
  }

  .quote-photo-wrap {
    height: 215px;
  }
}

@media (min-width: 1680px) {
  html {
    scroll-padding-top: 105px;
    font-size: 17.5px;
  }

  .container {
    max-width: 1580px;
    padding: 0 40px;
  }

  .nav-container {
    max-width: 1580px;
    padding: 0 40px;
    height: 88px;
  }

  .site-header.scrolled .nav-container {
    height: 74px;
  }

  .site-brand {
    gap: 16px;
  }

  .site-logo,
  .custom-logo,
  .custom-logo-link img,
  .site-logo-link img,
  .site-brand img {
    height: 52px;
    max-height: 52px;
    max-width: 170px;
  }

  .site-header.scrolled .site-logo,
  .site-header.scrolled .custom-logo,
  .site-header.scrolled .custom-logo-link img,
  .site-header.scrolled .site-logo-link img,
  .site-header.scrolled .site-brand img {
    height: 44px;
    max-height: 44px;
    max-width: 145px;
  }

  .brand-title {
    font-size: 1.28rem;
  }

  .brand-tagline {
    font-size: 0.78rem;
    display: block !important;
  }

  /* Compact, harmonious header nav links */
  .nav-menu {
    gap: 16px;
    margin: 0 20px;
  }

  .nav-menu ul,
  .sb-custom-nav-list {
    gap: 16px;
  }

  .nav-link,
  .nav-menu li a,
  .sb-custom-nav-list li a {
    font-size: 0.98rem;
    padding: 8px 12px;
    font-weight: 600;
  }

  .header-social-links {
    gap: 10px;
  }

  .social-header-btn {
    width: 40px;
    height: 40px;
  }

  .social-header-btn svg {
    width: 19px;
    height: 19px;
  }

  .hero-content {
    max-width: 1060px;
  }

  .hero-section {
    min-height: 80vh;
    padding-top: 155px;
    padding-bottom: 95px;
    background-position: center 35%;
  }

  .section {
    padding: 78px 0;
  }

  .section-title {
    font-size: 3.1rem;
  }

  .section-subtitle {
    font-size: 1.24rem;
  }

  .hero-title {
    font-size: 3.65rem;
  }

  .hero-lead {
    font-size: 1.34rem;
  }

  .hero-intro {
    font-size: 1.15rem;
  }

  .quote-photo-wrap {
    height: 225px;
  }
}

@media (min-width: 2100px) {
  html {
    scroll-padding-top: 110px;
    font-size: 18px;
  }

  .container {
    max-width: 1680px;
    padding: 0 48px;
  }

  .nav-container {
    max-width: 1680px;
    padding: 0 48px;
    height: 92px;
  }

  .site-header.scrolled .nav-container {
    height: 78px;
  }

  .site-brand {
    gap: 18px;
  }

  .site-logo,
  .custom-logo,
  .custom-logo-link img,
  .site-logo-link img,
  .site-brand img {
    height: 54px;
    max-height: 54px;
    max-width: 175px;
  }

  .site-header.scrolled .site-logo,
  .site-header.scrolled .custom-logo,
  .site-header.scrolled .custom-logo-link img,
  .site-header.scrolled .site-logo-link img,
  .site-header.scrolled .site-brand img {
    height: 46px;
    max-height: 46px;
    max-width: 150px;
  }

  .brand-title {
    font-size: 1.34rem;
  }

  .brand-tagline {
    font-size: 0.82rem;
    display: block !important;
  }

  .nav-menu {
    gap: 18px;
    margin: 0 24px;
  }

  .nav-menu ul,
  .sb-custom-nav-list {
    gap: 18px;
  }

  .nav-link,
  .nav-menu li a,
  .sb-custom-nav-list li a {
    font-size: 1.02rem;
    padding: 8px 14px;
  }

  .social-header-btn {
    width: 42px;
    height: 42px;
  }

  .social-header-btn svg {
    width: 20px;
    height: 20px;
  }

  .hero-content {
    max-width: 1140px;
  }
}



