/* ========================================
   RZH - Rehazentrum Halderstrasse
   WordPress-ready Stylesheet
   ======================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables (Design Tokens) ---- */
:root {
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --primary: 234 41% 37%;
  --primary-foreground: 0 0% 98%;
  --secondary: 234 20% 95%;
  --secondary-foreground: 234 30% 15%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 25 95% 53%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 234 41% 37%;
  --radius: 0.75rem;
  --reha-blue-dark: 234 41% 25%;
  --reha-blue-light: 234 41% 55%;
  --reha-orange: 25 95% 53%;
  --reha-black: 0 0% 9%;
  --reha-white: 0 0% 100%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ---- Layout ---- */
.container-reha {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.min-h-screen {
  min-height: 100vh;
}

.section-padding {
  padding: 5rem 0;
}

/* ---- Grid System ---- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.lg-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .lg-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .md-grid-2 {
    grid-template-columns: 1fr;
  }

  .md-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---- Flexbox Helpers ---- */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* ---- Typography ---- */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-7xl {
  font-size: 4.5rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.italic {
  font-style: italic;
}

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

/* ---- Color Classes ---- */
.text-foreground {
  color: hsl(var(--foreground));
}

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

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

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-accent {
  color: hsl(var(--accent));
}

.text-accent-foreground {
  color: hsl(var(--accent-foreground));
}

.text-white {
  color: #fff;
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white-60 {
  color: rgba(255, 255, 255, 0.6);
}

.bg-background {
  background: hsl(var(--background));
}

.bg-primary {
  background: hsl(var(--primary));
}

.bg-secondary {
  background: hsl(var(--secondary));
}

.bg-card {
  background: hsl(var(--card));
}

.bg-accent {
  background: hsl(var(--accent));
}

.bg-reha-black {
  background: hsl(var(--reha-black));
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}

.header-topbar {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-topbar a {
  color: hsl(var(--primary-foreground));
  transition: opacity 0.3s;
}

.header-topbar a:hover {
  opacity: 0.8;
}

.header-topbar .icon {
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.main-nav {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 3.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: hsl(var(--primary));
}

.nav-cta .btn {
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 2rem 1.5rem;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  color: hsl(var(--foreground));
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.mobile-menu a:hover {
  color: hsl(var(--primary));
  background: hsl(var(--secondary));
}

@media (max-width: 1024px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .header-topbar {
    display: none;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 14px hsl(var(--primary) / 0.25);
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(var(--primary) / 0.3);
}

.btn-accent {
  background:hsl(var(--primary));
  color: hsl(var(--accent-foreground));
  box-shadow: 0 4px 14px hsl(var(--accent) / 0.25);
}

.btn-accent:hover {
  background: hsl(var(--accent) / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(var(--accent) / 0.3);
}

.btn-hero {
  background:#fff;
  color: hsl(var(--primary));
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 25px #ffffff, 0.3);
}

.btn-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px hsl(var(--accent) / 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn-xl {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  margin-top: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      hsla(234, 41%, 18%, 0.65) 0%,
      hsla(234, 41%, 37%, 0.45) 60%,
      hsla(234, 41%, 50%, 0.20) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
  padding-bottom: 5rem;
}

.hero-content .inner {
  max-width: 100%;
  padding: 0 1rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  word-break: break-word;
}

.hero h1 span {
  display: block;
  color: hsl(var(--accent));
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  position: relative;
  z-index: 5;
  margin-top: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat svg {
  width: 32px;
  height: 32px;
  color: #fff;
  margin: 0 auto 0.5rem;
}

.hero-stats .stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.30);
}

.hero-prev svg,
.hero-next svg {
  width: 20px;
  height: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.hero-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

/* Tablet */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-content .inner {
    max-width: 48rem;
    padding: 0;
  }
}

@media (max-width: 1023px) {
  .hero-content {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 5rem;
    padding-bottom: 3rem;
    align-items: flex-end;
  }
}

@media (max-width: 639px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-prev,
  .hero-next {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

/* ---- Hero Text Wrap ---- */
.hero-text-wrap {
  position: relative;
  min-height: 240px;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-text-wrap {
    min-height: 200px;
  }

  .hero {
    min-height: 100svh;
  }
}

@media (max-width: 480px) {
  .hero-text-wrap {
    min-height: 180px;
  }
}

/* ---- Service Cards ---- */
.service-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-card-img {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

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

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

.service-card-img .overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--reha-black) / 0.15);
  transition: background 0.3s;
}

.service-card:hover .service-card-img .overlay {
  background: hsl(var(--reha-black) / 0.05);
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
}

.service-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.service-card-body p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-weight: 500;
  font-size: 0.875rem;
  transition: gap 0.3s;
}

.service-card:hover .service-card-link {
  gap: 0.75rem;
}

.service-card-link svg {
  width: 14px;
  height: 14px;
}

/* ---- Section Headers ---- */
.section-label {
  color: #373F85;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-top: 0.75rem;
}

.section-title span {
  display: block;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

/* ---- Video Banner ---- */
.video-banner {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.video-banner-bg {
  position: absolute;
  inset: 0;
}

.video-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    hsla(234, 41%, 18%, 0.92) 0%,
    hsla(234, 41%, 37%, 0.75) 60%,
    hsla(234, 41%, 50%, 0.45) 100%
  );
}

.video-banner-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.video-banner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.video-banner h2 span {
  display: block;
  margin-top: 0.5rem;
  color: hsl(var(--card));
}

@media (min-width: 768px) {
  .video-banner h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .video-banner h2 {
    font-size: 3rem;
  }
}

.play-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.play-btn:hover .play-circle {
  background: hsl(var(--accent) / 0.9);
}

.play-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.play-circle svg {
  width: 32px;
  height: 32px;
  color: hsl(var(--accent-foreground));
  margin-left: 4px;
}

.play-btn span {
  color: hsl(var(--primary-foreground));
  font-weight: 500;
  font-size: 1.125rem;
}

.video-fullscreen {
  position: absolute;
  inset: 0;
  background: hsl(var(--reha-black));
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.video-fullscreen.active {
  display: flex;
}

.video-fullscreen iframe {
  width: 100%;
  max-width: 64rem;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
}

.video-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  font-size: 1.125rem;
  transition: color 0.3s;
}

.video-close:hover {
  color: hsl(var(--accent));
}

/* ---- Emotional CTA / Split Section ---- */
.split-section {
  display: grid;
  min-height: 600px;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

.split-img {
  position: relative;
  height: 400px;
}

@media (min-width: 1024px) {
  .split-img {
    height: auto;
  }
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-img .gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, hsl(var(--primary) / 0.3));
}

@media (min-width: 1024px) {
  .split-img .gradient-overlay {
    background: linear-gradient(to right, transparent, hsl(var(--primary) / 0.5));
  }
}

.floating-stat {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.floating-stat .value {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.floating-stat .label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.split-content {
  background: hsl(var(--primary));
  display: flex;
  align-items: center;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .split-content {
    padding: 4rem;
  }
}

.split-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: hsl(var(--primary-foreground));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.split-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.split-content h2 span {
  display: block;
  color: hsl(var(--accent));
}

@media (min-width: 768px) {
  .split-content h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .split-content h2 {
    font-size: 3rem;
  }
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  color: hsl(var(--accent));
}

.value-item h3 {
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}

.value-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* ---- Team Section ---- */
.team-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .team-img img {
    height: 450px;
  }
}

@media (min-width: 1024px) {
  .team-img img {
    height: 500px;
  }
}

.team-img .overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--reha-black) / 0.2);
}

.stat-box {
  text-align: center;
  padding: 1rem;
  background: hsl(var(--secondary));
  border-radius: 0.75rem;
}

.stat-box .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.stat-box .stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ---- Jobs CTA ---- */
.jobs-section {
  position: relative;
  overflow: hidden;
}

.jobs-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.jobs-bg-pattern .circle {
  position: absolute;
  border-radius: 50%;
  background: hsl(var(--accent));
}

.jobs-bg-pattern .circle-1 {
  width: 24rem;
  height: 24rem;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.jobs-bg-pattern .circle-2 {
  width: 16rem;
  height: 16rem;
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
}

.benefit-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: background 0.3s;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

.benefit-card svg {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--accent));
  margin: 0 auto 0.75rem;
}

.benefit-card span {
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

.testimonial-card .quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--accent) / 0.3);
}

.testimonial-card blockquote {
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.625;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-name {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.testimonial-role {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ---- Contact Section ---- */
.contact-icon-box {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 24px;
  height: 24px;
  color: hsl(var(--primary));
}

.contact-item h4 {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
}

.contact-item a:hover {
  color: hsl(var(--primary));
}

.contact-form {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid hsl(var(--border));
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 1rem;
  color: hsl(var(--foreground));
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.form-group textarea {
  resize: none;
}

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

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: hsl(var(--primary));
}

.checkbox-group label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.checkbox-group .required {
  color: hsl(var(--destructive));
  font-weight: 500;
}

/* ---- Footer ---- */
.site-footer {
  background: hsl(var(--reha-black));
  color: hsl(var(--primary-foreground));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-section h4 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: hsl(var(--accent));
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: hsl(var(--accent));
}

/* ---- Sticky Icons ---- */
.sticky-icons {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.sticky-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.sticky-icon:hover {
  transform: scale(1.1) translateX(-4px);
}

.sticky-icon svg {
  width: 20px;
  height: 20px;
}

.sticky-icon.phone {
  background: hsl(var(--primary));
}

.sticky-icon.phone:hover {
  background: hsl(var(--primary) / 0.8);
}

.sticky-icon.facebook {
  background: hsl(225, 65%, 50%);
}

.sticky-icon.facebook:hover {
  background: hsl(225, 65%, 40%);
}

.sticky-icon.email {
  background: hsl(var(--accent));
}

.sticky-icon.email:hover {
  background: hsl(var(--accent) / 0.8);
}

.sticky-icon.parking {
  background: hsl(var(--primary));
}

.sticky-icon.parking:hover {
  background: hsl(var(--primary) / 0.8);
}

/* ---- Sub-page Hero ---- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  margin-top: 7.5rem;
}

@media (max-width: 1024px) {
  .page-hero {
    margin-top: 5rem;
  }
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      hsla(234, 41%, 18%, 0.50) 0%,
      hsla(234, 41%, 37%, 0.35) 100%);
}

.page-hero .hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.page-hero .back-link:hover {
  color: #fff;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .page-hero h1 {
    font-size: 3.75rem;
  }
}

.page-hero-primary {
  background: hsl(var(--primary));
}

.page-hero-primary .overlay {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
}

.page-hero-primary h1 {
  color: hsl(var(--primary-foreground));
}

.page-hero-primary .back-link {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Opening Hours Table ---- */
.hours-table {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.hours-row:nth-child(odd) {
  background: hsl(var(--secondary) / 0.3);
}

.hours-row .day {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.hours-row .time {
  color: hsl(var(--muted-foreground));
}

/* ---- Info Cards ---- */
.info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: hsl(var(--secondary) / 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
}

.info-card svg {
  width: 18px;
  height: 18px;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.info-card span {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* ---- Icon Box ---- */
.icon-box {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  color: hsl(var(--primary));
}

.icon-box-sm {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-box-sm svg {
  width: 20px;
  height: 20px;
}

/* ---- Job Cards ---- */
.job-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s;
}

.job-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.job-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.job-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.job-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.job-meta svg {
  width: 14px;
  height: 14px;
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-delay-1 {
  transition-delay: 0.06s;
}

.stagger-delay-2 {
  transition-delay: 0.12s;
}

.stagger-delay-3 {
  transition-delay: 0.18s;
}

.stagger-delay-4 {
  transition-delay: 0.24s;
}

.stagger-delay-5 {
  transition-delay: 0.30s;
}

.stagger-delay-6 {
  transition-delay: 0.36s;
}

.stagger-delay-7 {
  transition-delay: 0.42s;
}

/* ---- Utility ---- */
.max-w-3xl {
  max-width: 48rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-lg {
  max-width: 32rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-lg {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: cover;
}

.border-border {
  border: 1px solid hsl(var(--border));
}

/* ---- Pulse Animation ---- */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse 3s ease-in-out infinite;
}

/* ---- Parkhaus ---- */
.parkhaus-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .parkhaus-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .sticky-map {
        position: sticky;
        top: 8rem;
    }
}

/* ---- Kursplan ---- */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid hsl(var(--border));
    padding-bottom: 0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    background: none;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s;
    border-radius: 0.5rem 0.5rem 0 0;
    font-family: inherit;
}

.tab-btn:hover {
    color: hsl(var(--primary));
    background: hsl(var(--secondary) / 0.5);
}

.tab-btn.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
    background: hsl(var(--secondary) / 0.5);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.course-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    transition: all 0.3s;
    margin-bottom: 0.75rem;
}

.course-row:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.course-time {
    min-width: 8rem;
    font-weight: 700;
    color: hsl(var(--primary));
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.course-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 1rem;
}

.course-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ---- PDF Bar (Kursplan) ---- */
.pdf-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: hsl(var(--secondary));
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pdf-bar p {
    font-weight: 600;
    color: hsl(var(--foreground));
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pdf-bar p span {
    font-size: 0.875rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
}

/* ---- FAQ (Kursplan) ---- */
.faq-item {
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: hsl(var(--foreground));
    background: hsl(var(--card));
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s;
    font-family: inherit;
}

.faq-btn:hover {
    background: hsl(var(--secondary));
}

.faq-btn.open {
    background: hsl(var(--secondary));
    color: hsl(var(--primary));
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-btn.open .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    display: none;
    padding: 0 1.5rem 1.25rem;
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
    font-size: 0.9375rem;
}

.faq-body.open {
    display: block;
}

.faq-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-body ul li {
    margin-bottom: 0.25rem;
}

.faq-body p + p {
    margin-top: 0.75rem;
}

/* ---- Kursplan Sidebar ---- */
.kursplan-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .kursplan-sidebar {
        position: sticky;
        top: 9rem;
    }
}

/* ---- Info Highlight (Kursplan sidebar) ---- */
.info-highlight {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--reha-blue-dark)));
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
}

.info-highlight h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.info-highlight p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.625;
}

/* ---- Sub-Service Page ---- */
.sub-service-intro {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 4rem;
}

.sub-service-intro .section-label {
    display: inline-block;
    margin-bottom: 1rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav .separator {
    opacity: 0.5;
}

/* ---- Responsive: Front-page & Hero ---- */
@media (max-width: 768px) {
  #kontakt .grid.lg-grid-2,
  #kontakt [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .hero-stats .stat-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .container-reha {
    padding: 0 1rem;
  }
}

@media (max-width: 639px) {
  .hero {
    height: 100svh;
    min-height: 600px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .hero-stats .stat-value {
    font-size: 1.25rem;
  }

  .hero-stats .stat-label {
    font-size: 0.7rem;
  }
}

/* ---- Submenu Desktop ---- */
.nav-item.has-submenu {
  position: relative;
}

.nav-item.has-submenu > a {
  display: flex !important;
  align-items: center;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0.75rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-item.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: hsl(var(--primary)) !important;
  transition: all 0.2s !important;
}

.submenu a:hover {
  background: hsl(var(--secondary)) !important;
  color: hsl(var(--primary)) !important;
  padding-left: 1.5rem !important;
}

/* ---- Submenu Mobile ---- */
.mobile-menu .submenu-mobile {
  display: flex !important;
  flex-direction: column !important;
  padding-left: 1rem !important;
  gap: 0 !important;
  margin-bottom: 0.5rem !important;
}

.mobile-menu .submenu-mobile a {
  font-size: 0.875rem !important;
  opacity: 0.8 !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
}
/* ============================================================
   RZH – Farbanpassung & Layout-Korrekturen
   Markenblau aus dem Bildmaterial: #1d4e9b = hsl(217 68% 36%)
   Kundenwunsch U. Lippert: positiver + kontrastreicher,
   Bewerben-Button durchgaengig orange.
   Rueckbau: diesen Block bis Dateiende loeschen.
   ============================================================ */
:root{
  --primary: 217 68% 36%;
  --primary-foreground: 0 0% 100%;
  --accent: 25 95% 53%;
  --background: 40 33% 98%;
  --secondary: 217 30% 93%;
  --muted: 40 25% 95%;
  --reha-blue-dark: 217 68% 24%;
  --reha-blue-light: 217 60% 52%;
  --reha-orange: 25 95% 53%;
  --ring: 217 68% 36%;
}

/* Hero: Markenfarbe sichtbar, Foto bleibt erkennbar */
.hero-overlay{
  background: linear-gradient(105deg,
    hsla(217, 68%, 22%, 0.72) 0%,
    hsla(217, 62%, 34%, 0.46) 50%,
    hsla(25, 95%, 53%, 0.20) 100%) !important;
}

/* Bewerben-/Karriere-Buttons durchgaengig orange */
a[href*="bewerben"], a[href*="/jobs"].btn-outline-white{
  background: hsl(var(--accent)) !important;
  border-color: hsl(var(--accent)) !important;
  color:#fff !important;
}
a[href*="bewerben"]:hover, a[href*="/jobs"].btn-outline-white:hover{
  background: hsl(25 95% 46%) !important;
  border-color: hsl(25 95% 46%) !important;
}

/* Header: ab mittleren Breiten kompakter, damit Navigation und
   Buttons in einer Zeile bleiben und nicht umbrechen */
@media (min-width: 1024px) and (max-width: 1439px){
  .nav-main a, nav a{ font-size: 0.9375rem; }
  .nav-main{ gap: 1.25rem; }
  .header-main .btn, header .btn{
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* Header: Navigation und CTA-Buttons in einer Zeile halten.
   Ohne dies stapeln sich die Buttons zwischen 1024 und 1440px
   und der Header waechst auf 119px. */
.site-header .nav-cta{ display:flex; align-items:center; gap:0.5rem; flex-shrink:0; }
.site-header .nav-cta .btn{ white-space:nowrap; }
.site-header .main-nav a{ white-space:nowrap; }
@media (min-width:1024px) and (max-width:1500px){
  .site-header .main-nav{ gap:1rem; }
  .site-header .main-nav a{ font-size:0.9rem; }
  .site-header .nav-cta .btn{ padding:0.5rem 0.8rem; font-size:0.8125rem; }
}

/* nav-cta wird an anderer Stelle auf display:block gesetzt, wodurch die
   beiden Buttons untereinander rutschen. Hier durchsetzen. */
.site-header .nav-cta{ display:flex !important; align-items:center; gap:0.5rem; flex-shrink:0; }

/* Slider-Pfeile: sassen mittig links und lagen ueber dem Hero-Text
   ("Gesundheitsfoerderung."). Nach unten versetzt, dort ist kein Text. */
.hero-prev, .hero-next{
  top: auto !important;
  bottom: 28px !important;
  width: 40px; height: 40px;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-prev{ left: 24px !important; right: auto !important; }
.hero-next{ right: 24px !important; left: auto !important; }
.hero-prev:hover, .hero-next:hover{ opacity: 1; transform: scale(1.08); }
.hero-prev:focus-visible, .hero-next:focus-visible{
  outline: 2px solid hsl(var(--accent)); outline-offset: 2px; opacity: 1;
}

/* nav-cta nur ab Desktop als Flex-Zeile. Unterhalb 1024px bleibt die
   bestehende display:none-Regel des Themes wirksam (mobiles Menue). */
@media (min-width: 1024px){
  .site-header .main-nav .nav-cta{
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
}

/* Lesbarkeit: Buttons mit dunklem Hintergrund brauchen helle Schrift.
   Im mobilen Menue stand dunkelblauer Text auf Markenblau (Kontrast 2.2). */
.mobile-menu .btn,
.site-header .nav-cta .btn{
  color: #fff !important;
}
.mobile-menu .btn-accent,
.mobile-menu a[href*="kontakt"]{
  background: hsl(var(--primary)) !important;
  border-color: hsl(var(--primary)) !important;
  color: #fff !important;
}
/* Orange minimal abgedunkelt: hebt den Kontrast zu Weiss ueber den
   WCAG-Schwellwert fuer grossen Text, Markenwirkung bleibt erhalten. */
a[href*="bewerben"], .mobile-menu a[href*="bewerben"]{
  background: hsl(25 95% 45%) !important;
  border-color: hsl(25 95% 45%) !important;
  color: #fff !important;
}

/* CTA im blauen Philosophie-Panel: weisser Button statt transparent,
   sonst geht er auf dem Markenblau unter. */
.split-section .btn-xl[href*="kontakt"],
section[style*="primary"] .btn-xl[href*="kontakt"],
.philosophy .btn-xl{
  background:#fff !important;
  border-color:#fff !important;
  color: hsl(var(--primary)) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  font-weight: 700;
}
.split-section .btn-xl[href*="kontakt"]:hover,
section[style*="primary"] .btn-xl[href*="kontakt"]:hover,
.philosophy .btn-xl:hover{
  background: hsl(var(--accent)) !important;
  border-color: hsl(var(--accent)) !important;
  color:#fff !important;
}

/* ============================================================
   DESIGN-PEP 2026-08-14 (Kundenfeedback Frau Lippert):
   mehr Blau, mehr Kontrast, peppiger, Logo groesser.
   Rueckbau: diesen Block bis Dateiende loeschen.
   ============================================================ */
:root{
  /* Kuehleres, blaeuliches Weiss statt warmem Creme */
  --background: 214 35% 98%;
  /* Sekundaerflaechen deutlich blauer */
  --secondary: 217 45% 91%;
  --muted: 214 35% 95%;
  /* Mehr Kontrast im Fliesstext */
  --muted-foreground: 217 22% 38%;
}

/* Logo groesser */
.nav-logo img{ height: 4.25rem; }
@media (max-width: 1023px){
  .nav-logo img{ height: 3.75rem; }
}

/* Section-Label als blaue Pill statt feinem Grauton */
.section-label{
  display: inline-block;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* Service-Cards: Hover kraeftiger + blauer Akzent */
.service-card{
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover{
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 24px 48px hsl(var(--primary) / 0.16);
}

/* Icon-Boxen etwas kraeftiger */
.icon-box{
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.15);
}

/* Buttons: satterer Schatten */
.btn-accent{
  box-shadow: 0 6px 18px hsl(var(--accent) / 0.35);
}
.btn-accent:hover{
  box-shadow: 0 8px 24px hsl(var(--accent) / 0.45);
}

/* Job-Cards peppiger: orangefarbene Kante + leichte Flaeche */
.job-card{
  border-top: 4px solid hsl(var(--accent));
  background: linear-gradient(180deg, hsl(var(--secondary) / 0.5), hsl(var(--card)) 40%);
}

/* CTA-Karten: blauer Rahmen-Akzent */
div[style*="0 20px 40px rgba(0,0,0,0.08)"]{
  border-top: 4px solid hsl(var(--primary)) !important;
}
