@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300..900;1,9..40,300..900&display=swap');

/* --- 1. DESIGN SYSTEM & RESET --- */
:root {
  /* Farbpalette - Reduziert auf 3 Hauptrollen */
  --bg-color: #FAF8F5;       /* Warmes, edles Sand-Offwhite */
  --text-color: #1E1B18;     /* Warmes Anthrazit/Dunkelbraun für hohen Kontrast */
  --accent-color: #DB9121;   /* Original Ocker/Goldgelb als Akzent */
  --accent-hover: #C48F3C;   /* Helleres Bronze-Gold für Hover */
  --accent-active: #A86F18;  /* Dunklerer Ocker für Klick-Feedback */
  
  --white: #FFFFFF;
  --border-color: rgba(30, 27, 24, 0.08);
  --border-color-strong: rgba(30, 27, 24, 0.16);
  --selection-bg: rgba(219, 145, 33, 0.15);
  
  /* Typografie */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --section-padding: clamp(80px, 8vw, 120px);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-pill: 9999px;
  
  /* Motion Curves (Emil Kowalski / Jakub Krehel Gewichtung) */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--text-color);
}

/* --- 2. TYPOGRAFIE MIT HALTUNG --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  letter-spacing: -0.02em;
}

p {
  max-w: 65ch; /* Optimale Zeilenlänge */
  color: rgba(30, 27, 24, 0.8);
  font-size: 1.0625rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

strong {
  font-weight: 700;
}

/* --- 3. LAYOUT KOMPONENTEN --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.section-divider {
  height: 1px;
  background-color: var(--border-color);
  width: 100%;
  border: none;
}

/* --- 4. KNÖPFE & INTERAKTIVITÄT (Tactile Feedback) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(219, 145, 33, 0.15);
}

.btn-primary:active {
  background-color: var(--accent-active);
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color-strong);
  color: var(--text-color);
}

.btn-secondary:hover {
  border-color: var(--text-color);
  background-color: rgba(30, 27, 24, 0.02);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* --- 5. HEADER & NAVIGATION --- */
.header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

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

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(30, 27, 24, 0.7);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--text-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

/* Burger Menu */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  transition: var(--transition-smooth);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- 6. HERO SECTION --- */
.hero {
  padding-top: clamp(60px, 6vw, 100px);
  padding-bottom: clamp(60px, 6vw, 100px);
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  position: relative;
}

@media (min-width: 1025px) {
  .hero {
    background-image: 
      linear-gradient(to right, var(--bg-color) 38%, rgba(250, 248, 245, 0.9) 60%, rgba(250, 248, 245, 0.15) 100%), 
      url('https://physioworld-regensburg.de/templates/yootheme/cache/81/physioworld-regensburg-physiotherapiepraxis-home-819b4d67.jpeg');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

.hero-grid {
  display: grid;
  grid-template-cols: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

@media (min-width: 1025px) {
  .hero-grid {
    grid-template-cols: 1fr;
  }
  .hero-image-container {
    display: none;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 1025px) {
  .hero-content {
    max-width: 620px;
  }
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
}

.hero-subtext {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(30, 27, 24, 0.75);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.hero-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(30, 27, 24, 0.05);
  background-color: var(--border-color);
  aspect-ratio: 4 / 3;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-container:hover .hero-image {
  transform: scale(1.05);
}

/* --- 7. PAIN POINTS & USPs --- */
.usps {
  background-color: var(--white);
}

.usps-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.usps-header {
  position: sticky;
  top: 120px;
  width: 100%;
}

.usps-header-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.usps-header-inner p {
  font-size: 1.125rem;
}

.usps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.usp-item {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.usp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.usp-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.usp-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.usp-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usp-content h3 {
  font-size: 1.25rem;
}

/* --- 8. ASYMMETRISCHES LEISTUNGS-GRID --- */
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 27, 24, 0.04);
  border-color: rgba(30, 27, 24, 0.15);
}

/* Asymmetrische Spaltenverteilung (Bento-artig, kein Standard-Layout) */
.service-card.col-6 { grid-column: span 6; }
.service-card.col-4 { grid-column: span 4; }
.service-card.col-8 { grid-column: span 8; }
.service-card.col-12 { grid-column: span 12; }

.service-img-container {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: var(--bg-color);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
}

.service-title {
  font-size: 1.375rem;
}

.service-desc {
  font-size: 0.975rem;
  color: rgba(30, 27, 24, 0.7);
}

.service-footer {
  margin-top: auto;
  padding-top: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-color);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--transition-fast);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* --- 9. TECHNOLOGIE & INNOVATION --- */
.tech {
  background-color: #1E1B18;
  color: var(--white);
}

.tech h2, .tech h3, .tech h4, .tech p {
  color: var(--white);
}

.tech p {
  color: rgba(255, 255, 255, 0.75);
}

.tech-grid {
  display: grid;
  grid-template-cols: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.tech-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tech-intro h2 {
  margin-bottom: 16px;
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-feature-item {
  display: flex;
  gap: 20px;
}

.tech-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.tech-feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-feature-text h3 {
  font-size: 1.125rem;
}

.tech-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tech-visual-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-visual-card.span-2 {
  grid-column: span 2;
}

.tech-visual-metric {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

/* --- 10. TEAM-BEREICH (Stilvolle Asymmetrie) --- */
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
}

.team-header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.team-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

/* Rhythmus-Variation in der Team-Anzeige (Bento-artig) */
.team-grid .team-card:nth-child(even) {
  margin-top: 24px;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(30, 27, 24, 0.03);
  border-color: rgba(30, 27, 24, 0.12);
}

.team-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-color);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--transition-smooth);
}

.team-card:hover .team-img {
  transform: scale(1.03);
}

.team-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.team-name {
  font-size: 1.1875rem;
  font-weight: 600;
}

.team-role {
  font-size: 0.875rem;
  color: var(--accent-color);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- 11. BGF / PARTNER-LOGOS (Logo-only rule) --- */
.partners {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.partners-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(30, 27, 24, 0.4);
  margin-bottom: 48px;
}

.partners-slider {
  display: flex;
  width: 200%;
  overflow: hidden;
}

.partners-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  animation: scrollLogos 30s linear infinite;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: var(--transition-fast);
}

.partner-logo:hover {
  opacity: 0.9;
  filter: grayscale(0%);
}

/* --- 12. CALL TO ACTION & CONTACT --- */
.cta-section {
  background-color: var(--white);
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 60px 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color-strong);
  background-color: var(--bg-color);
}

.cta-box h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
}

.cta-box p {
  font-size: 1.125rem;
  color: rgba(30, 27, 24, 0.7);
  margin-bottom: 8px;
}

.cta-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- 13. NEWSLETTER --- */
.newsletter {
  border-top: 1px solid var(--border-color);
}

.newsletter-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.newsletter-form {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(30, 27, 24, 0.02);
}

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

.form-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color-strong);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(219, 145, 33, 0.15);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
  border-radius: var(--border-radius-sm);
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.8125rem;
  color: rgba(30, 27, 24, 0.6);
  line-height: 1.4;
}

.form-checkbox-label a {
  text-decoration: underline;
  color: var(--text-color);
}

/* --- 14. FOOTER --- */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-color-strong);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-cols: 1.2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(30, 27, 24, 0.7);
  font-size: 0.9375rem;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--accent-color);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.footer-contact-text p {
  font-size: 0.9375rem;
  color: rgba(30, 27, 24, 0.7);
}

.footer-opening-list {
  display: grid;
  grid-template-cols: auto 1fr;
  gap: 8px 16px;
  font-size: 0.9375rem;
  color: rgba(30, 27, 24, 0.7);
}

.footer-opening-day {
  font-weight: 600;
  color: var(--text-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(30, 27, 24, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link {
  font-size: 0.875rem;
  color: rgba(30, 27, 24, 0.5);
}

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

/* --- 15. COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 420px;
  background-color: var(--white);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  z-index: 1000;
  box-shadow: 0 15px 35px rgba(30, 27, 24, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.cookie-desc {
  font-size: 0.875rem;
  color: rgba(30, 27, 24, 0.7);
}

.cookie-desc a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.875rem;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cookie-btn-accept {
  background-color: var(--accent-color);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: var(--accent-hover);
}

.cookie-btn-deny {
  background-color: transparent;
  border-color: var(--border-color-strong);
  color: var(--text-color);
}

.cookie-btn-deny:hover {
  background-color: rgba(30, 27, 24, 0.02);
  border-color: var(--text-color);
}

/* --- 16. SCROLL REVEAL ANIMATIONS (Intersection Observer classes) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active > * {
  opacity: 1;
  transform: none;
}

/* Dynamische Transition Delays für Stagger */
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.55s; }

/* --- 17. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-cols: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .usps-grid {
    grid-template-cols: 1fr;
    gap: 60px;
  }
  
  .usps-header {
    position: static;
  }
  
  .services-grid {
    gap: 24px;
  }
  
  .service-card.col-4,
  .service-card.col-6,
  .service-card.col-8 {
    grid-column: span 6;
  }
  
  .tech-grid {
    grid-template-cols: 1fr;
    gap: 50px;
  }
  
  .team-grid {
    grid-template-cols: repeat(3, 1fr);
    gap: 24px;
  }
  
  .team-grid .team-card:nth-child(even) {
    margin-top: 0; /* Rhythmus-Resets für kleinere Screens */
  }
  
  .newsletter-grid {
    grid-template-cols: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 72px;
  }
  
  .burger {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 60px 40px;
    gap: 40px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  .service-card.col-4,
  .service-card.col-6,
  .service-card.col-8 {
    grid-column: span 12;
  }
  
  .team-grid {
    grid-template-cols: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-cols: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-cols: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* preferences reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .partners-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
}
