/* ── Animations ─────────────────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ── Layout ────────────────────────────────────────────────────── */

section {
  width: 100%;
  padding: var(--space-2xl) var(--space-m);
}

.section--surface {
  background-color: var(--bg-surface);
}

.section--gray {
  background-color: var(--bg-gray);
}

.section--primary {
  background-color: var(--primary);
}

.container {
  width: 100%;
  max-width: var(--max-screen-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.container--centered {
  align-items: center;
  text-align: center;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: center;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-s) var(--space-l);
  font-size: var(--text-m);
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background-color: var(--primary-d-1);
  transform: translateY(-1px);
}

.btn--light {
  background-color: var(--light);
  color: var(--text-body);
}

.btn--light:hover {
  background-color: var(--primary-l-4);
  transform: translateY(-1px);
}

/* ── Header ────────────────────────────────────────────────────── */

.site-header {
  background-color: var(--bg-surface);
  padding: var(--space-s) var(--space-m);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-s);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max-screen-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.site-header__brand {
  font-size: var(--text-m);
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.2;
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  background-image: url('images/rueckenschmerzen-header-mit-Logo.webp');
  background-position: center left;
  background-size: cover;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary-90);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero__container {
  width: 100%;
  max-width: var(--max-screen-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-l);
  align-items: start;
}

.hero__title {
  color: var(--light);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
}

.hero__content {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  color: var(--light);
}

.hero__content p {
  font-weight: 500;
  max-width: 55ch;
}

.hero__badges {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-width: 400px;
}

.hero__badge {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-full);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--light);
  text-align: center;
  font-weight: 600;
}

.hero__form {
  grid-column: 5 / 8;
  background-color: var(--bg-surface);
  border-radius: 24px;
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.hero__form-label {
  font-size: var(--text-l);
  font-weight: 500;
  color: var(--text-title);
}

.hero__form-address {
  font-size: var(--text-s);
  color: var(--text-muted);
}

.hero__voucher-badge {
  background-color: var(--primary);
  color: var(--light);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: var(--text-s);
  font-weight: 500;
}

.hero__price {
  font-size: var(--text-m);
}

.hero__price del {
  color: var(--text-muted);
}

.hero__price span {
  color: var(--error);
  font-weight: 600;
}

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

  .hero__content {
    grid-column: 1;
  }

  .hero__form {
    grid-column: 1;
  }

  .hero__badges {
    grid-template-columns: 1fr 1fr;
    max-width: 320px;
  }
}

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

  .hero__badge {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ── Form ──────────────────────────────────────────────────────── */

.form {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.form__group {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  padding-left: 6px;
  padding-right: 6px;
  width: 100%;
}

.form__group--half {
  width: 50%;
}

.form__group--full {
  width: 100%;
}

.form__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 4px;
}

.form__input,
.form__select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-primary);
  background-color: #fafafa;
  font-size: 15px;
  font-family: inherit;
  padding: 8px 4px;
  color: var(--text-body);
  transition: border-color 0.2s ease;
  outline: none;
}

.form__input::placeholder {
  color: var(--text-muted);
}

.form__input:focus,
.form__select:focus {
  border-bottom-color: var(--primary);
}

.form__select {
  appearance: none;
  cursor: pointer;
}

.form__submit {
  width: 100%;
  padding: var(--space-s) var(--space-m);
  background-color: var(--primary);
  color: var(--light);
  font-size: var(--text-m);
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: var(--space-xs);
}

.form__submit:hover {
  background-color: var(--primary-d-1);
}

.form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form__success {
  color: var(--success);
  font-size: var(--text-m);
  text-align: center;
  padding: var(--space-m);
  font-weight: 600;
}

.form__error-msg {
  color: var(--error);
  font-size: var(--text-s);
  text-align: center;
  padding: var(--space-s);
}

/* ── Stats ─────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-m);
}

.stats__number {
  font-size: 70px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-title);
}

.stats__label {
  font-size: var(--text-m);
  color: var(--text-muted);
  margin-top: 4px;
}

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

/* ── Indications ───────────────────────────────────────────────── */

.indications__images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-m);
  height: 340px;
}

.indications__img--1,
.indications__img--2,
.indications__img--3 {
  overflow: hidden;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
}

.indications__img--3 {
  margin-top: 40px;
}

.indications__img--1 img,
.indications__img--2 img,
.indications__img--3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.indications__heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
}

.indications__heading p {
  color: var(--text-muted);
  max-width: 50ch;
}

.indications__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.indication-card {
  background-color: var(--bg-surface);
  border-radius: 24px;
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.indication-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 36px;
  background-image: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  flex-shrink: 0;
}

.indication-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--light);
}

.indication-card h3 {
  font-size: var(--text-l);
  line-height: 1.3;
}

.indication-card p {
  font-size: var(--text-m);
  color: var(--text-muted);
  max-width: 100%;
}

@media (max-width: 900px) {
  .indications__images {
    grid-template-columns: 1fr 1fr;
    height: 280px;
  }

  .indications__img--3 {
    display: none;
  }

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

@media (max-width: 600px) {
  .indications__images {
    grid-template-columns: 1fr;
    height: 220px;
  }

  .indications__img--2 {
    display: none;
  }

  .indications__img--3 {
    display: none;
  }

  .indications__cards {
    grid-template-columns: 1fr;
  }
}

/* ── Testimonials ──────────────────────────────────────────────── */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.testimonial {
  background-color: var(--bg-gray);
  border-radius: 18px;
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  box-shadow: var(--shadow-card);
}

.testimonial__quote-icon svg {
  width: 44px;
  height: 44px;
  fill: var(--primary-90);
}

.testimonial__text {
  font-size: var(--text-m);
  color: var(--text-body);
  flex: 1;
  max-width: 100%;
}

.testimonial__author {
  font-size: var(--text-m);
  font-weight: 700;
  color: var(--text-title);
}

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

  .testimonials .testimonial:last-child {
    grid-column: 1 / 3;
  }
}

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

  .testimonials .testimonial:last-child {
    grid-column: 1;
  }
}

/* ── Process ───────────────────────────────────────────────────── */

.process__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  left: 37px;
  top: 75px;
  width: 3px;
  height: calc(100% - 150px);
  background-color: var(--border-primary);
  z-index: 0;
}

.process__step {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: var(--space-m);
  align-items: start;
  position: relative;
}

.process__step-number {
  width: 75px;
  height: 75px;
  border-radius: 36px;
  background-image: var(--primary-gradient);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.process__step-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.process__step-content h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
}

.process__step-content p {
  color: var(--text-muted);
  max-width: 100%;
}

@media (max-width: 480px) {
  .process__step {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
  }

  .process__step-number {
    margin-inline: auto;
  }

  .process__steps::before {
    display: none;
  }
}

/* ── About ─────────────────────────────────────────────────────── */

.about__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
}

.about__logo {
  width: 120px;
  height: 120px;
}

.about__header address {
  font-style: normal;
  color: var(--text-muted);
  font-size: var(--text-m);
}

.about__content {
  display: flex;
  gap: var(--space-l);
  align-items: flex-start;
}

.about__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  flex-shrink: 0;
}

.about__photo {
  border-radius: 24px;
  width: 100%;
  max-width: 380px;
  min-height: 380px;
  object-fit: cover;
}

.about__photo-name {
  font-weight: 700;
  text-align: center;
  font-size: var(--text-m);
}

.about__bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.about__bio p {
  max-width: 100%;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .about__content {
    flex-direction: column;
    align-items: center;
  }

  .about__photo-wrap {
    width: 100%;
  }

  .about__photo {
    max-width: 100%;
    min-height: 250px;
  }
}

/* ── CTA Section ───────────────────────────────────────────────── */

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-m);
}

.cta-section h2 {
  color: var(--light);
}

.cta-section p {
  color: var(--light-90);
  max-width: 50ch;
}

/* ── Footer ────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-primary);
  padding: var(--space-m);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--max-screen-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-l);
  flex-wrap: wrap;
}

.site-footer__inner a {
  color: var(--text-muted);
  font-size: var(--text-s);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__inner a:hover {
  color: var(--primary);
}

/* ── Floating WhatsApp Button ──────────────────────────────────── */

.whatsapp-fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-l);
  z-index: 200;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  background-color: #1da851;
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: white;
}
