/* ============================================
   Zahnarztpraxis Pein - Main Stylesheet
   Modern, clean design system
   ============================================ */

/* Farbpalette: wird in jeder Seite als eigenes <link> VOR main.css geladen.
   Kein @import - das erzwaengt sonst eine zweite, serielle Anfrage und
   blockiert das Rendering um eine komplette Roundtrip-Zeit. */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
               'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
               sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--weiss);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

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

/* ============================================
   CUSTOM PROPERTIES - Design System
   ============================================ */

:root {
  /* Spacing Scale (based on 8px grid) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  --space-4xl: 8rem;     /* 128px */

  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-2xl: 1.5rem;  /* 24px */
  --radius-full: 9999px;

  /* Shadows - Subtle depth */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
               0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
               0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
               0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
               0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Max Widths */
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-2xl: 1536px;

  /* Content container */
  --container-padding: var(--space-lg);
  --container-max-width: var(--max-width-xl);

  /* Responsive Breakpoints (for media queries) */
  /* Mobile: < 768px */
  /* Tablet: 768px - 1023px */
  /* Desktop: >= 1024px */
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--tief);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* Lead text (intro paragraphs) */
.lead {
  font-size: var(--text-lg);
  color: var(--grau);
  line-height: var(--leading-relaxed);
}

/* Small text */
.text-small {
  font-size: var(--text-sm);
  color: var(--grau);
}

/* Links */
a:hover {
  color: var(--blau);
}

a:focus-visible {
  outline: 2px solid var(--hks40-100);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

/* Tablet and up */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-xl);
  }

  h1 {
    font-size: var(--text-6xl);
  }
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

/* Container - centers content with max-width */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section spacing */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

/* Section with background */
.section--alt {
  background-color: var(--hks40-6);
}

/* Centered text */
.text-center {
  text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--blau);
  color: var(--weiss);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--blau-dunkel);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--weiss);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--weiss);
  color: var(--blau);
  border: 2px solid var(--blau);
}

.btn-secondary:hover {
  background-color: var(--hks40-6);
  border-color: var(--blau-dunkel);
  color: var(--blau-dunkel);
}

/* Button sizes */
.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--weiss);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.card__image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

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

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

.card__title {
  font-size: var(--text-2xl);
  color: var(--tief);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text);
  line-height: var(--leading-relaxed);
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

/* 2 columns on tablet and up */
.grid-cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 columns on desktop */
.grid-cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4 columns on desktop */
.grid-cols-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Larger gap */
.grid-gap-xl {
  gap: var(--space-xl);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--hks40-6) 0%, var(--weiss) 100%);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-size: var(--text-5xl);
  color: var(--tief);
  margin-bottom: var(--space-md);
  line-height: var(--leading-tight);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--grau);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-6xl);
  }

  .hero__subtitle {
    font-size: var(--text-2xl);
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
  animation-fill-mode: both;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
  animation-fill-mode: both;
}

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

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

/* Stagger animations for list items */
.stagger-animation > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Smooth transitions for interactive elements */
button, a, .card {
  transition: all var(--transition-base);
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--hks40-100);
  outline-offset: 2px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--weiss);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

/* Logo - doubled in size; header bar grows to fit it fully */
.header__logo {
  display: flex;
  align-items: center;
  height: 108px;
}

.header__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav__link {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text);
  transition: color var(--transition-base);
  position: relative;
}

.nav__link:hover {
  color: var(--blau);
}

/* Active page indicator */
.nav__link--active {
  color: var(--blau);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--blau);
}

/* Mobile Menu Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--tief);
  transition: all var(--transition-base);
}

/* Hamburger animation when open */
.menu-toggle--active .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.menu-toggle--active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle--active .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Navigation */
.nav--mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--weiss);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 999;
  padding-top: 100px;
  overflow-y: auto;
}

.nav--mobile.nav--open {
  transform: translateX(0);
}

.nav--mobile .nav__list {
  flex-direction: column;
  gap: 0;
  padding: var(--space-lg);
}

.nav--mobile .nav__link {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-xl);
  border-bottom: 1px solid var(--hks40-12);
}

/* Tablet and up - Show desktop nav */
@media (min-width: 768px) {
  .header__logo {
    height: 126px;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

  .nav--mobile {
    display: none;
  }
}

/* Desktop - Larger spacing */
@media (min-width: 1024px) {
  .nav__list {
    gap: var(--space-2xl);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--hks40-6);
  border-top: 1px solid var(--hks40-12);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.footer__container {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

.footer__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--tief);
  margin-bottom: var(--space-xs);
}

.footer__text {
  color: var(--text);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.footer__link {
  color: var(--blau);
  font-size: var(--text-base);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--blau-dunkel);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hks40-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--grau);
}

.footer__partner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--grau);
}

.footer__partner img {
  height: 30px;
  width: auto;
}

/* Tablet and up - Multi-column layout */
@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop - More spacing */
@media (min-width: 1024px) {
  .footer__container {
    gap: var(--space-2xl);
  }
}

/* ============================================
   MODERN HOMEPAGE COMPONENTS
   ============================================ */

/* Modern Hero with overlay */
.hero--modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hks40-6) 0%, var(--weiss) 100%);
}

.hero--modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(2, 171, 220, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.hero--with-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero--with-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  z-index: 1;
}

.hero__content--modern {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.hero__text {
  max-width: 600px;
}

.hero__image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Glass morphism cards */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-5px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
}

/* Feature cards with icons */
.feature-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--weiss);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hks40-100), var(--blau));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--hks40-100), var(--blau));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--weiss);
}

.feature-card__title {
  font-size: var(--text-2xl);
  color: var(--tief);
  margin-bottom: var(--space-md);
}

.feature-card__text {
  color: var(--text);
  line-height: var(--leading-relaxed);
}

/* Statistics section */
.stats-section {
  background: linear-gradient(135deg, var(--hks40-100), var(--blau));
  color: var(--weiss);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

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

.stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-lg);
  opacity: 0.95;
}

/* Services preview grid */
.services-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .services-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--weiss);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.service-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.service-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.service-card:hover .service-card__overlay {
  opacity: 1;
}

.service-card__content {
  padding: var(--space-lg);
}

.service-card__title {
  font-size: var(--text-xl);
  color: var(--tief);
  margin-bottom: var(--space-sm);
}

.service-card__text {
  color: var(--grau);
  font-size: var(--text-base);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--hks40-12), var(--weiss));
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--hks40-32) 0%, transparent 70%);
  opacity: 0.3;
  animation: float 15s ease-in-out infinite reverse;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-4xl);
  color: var(--tief);
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Badge */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, var(--hks40-100), var(--blau));
  color: var(--weiss);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Decorative blob shapes */
.blob-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--hks40-100);
  top: -200px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--hks40-70);
  bottom: -150px;
  left: -150px;
  animation: float 25s ease-in-out infinite reverse;
}

/* ============================================
   TEAM MEMBER ROWS
   ============================================ */

.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl) var(--space-2xl);
}

.team-member {
  text-align: center;
  width: 140px;
}

.team-member img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-sm);
  box-shadow: var(--shadow-md);
}

.team-member h4 {
  font-size: var(--text-sm);
}

.team-member__placeholder {
  width: 110px;
  height: 140px;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-sm);
  box-shadow: var(--shadow-md);
  background: var(--hks40-12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grau);
  font-size: var(--text-xs);
  line-height: 1.3;
  text-align: center;
}

.team-member h4 {
  margin-bottom: 0;
}

/* ============================================
   TEAM CAROUSEL
   ============================================ */

.team-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.team-carousel {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: var(--space-sm) var(--space-xs) var(--space-lg);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}

.team-carousel .team-member {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.team-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--weiss);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hks40-32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--blau);
  cursor: pointer;
  transition: all var(--transition-base);
}

.team-carousel-btn:hover {
  background: var(--hks40-6);
  border-color: var(--blau);
}

@media (min-width: 768px) {
  .team-carousel-wrapper {
    gap: var(--space-lg);
  }
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */

.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(4, 61, 80, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox-overlay--active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  cursor: default;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.lightbox-overlay--active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--weiss);
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-base);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
  .lightbox-close {
    top: var(--space-xl);
    right: var(--space-xl);
  }
}
