/* Startseite: Hero, Willkommen, Therapiekarte, Erfahrung */

.hero {
  position: relative;
  display: flex;
  min-height: clamp(360px, 24.06vw, 616px);
  align-items: center;
  overflow: hidden;
  background: var(--farbe-dunkel);
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 26, 52, 0.84) 0%, rgba(8, 26, 52, 0.58) 45%, rgba(8, 26, 52, 0.14) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--content-width) + 40px);
  margin: 0 auto;
  padding: 28px 20px;
}

.hero-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--farbe-weiss);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hero-brand:hover {
  color: var(--farbe-weiss);
}

.hero :focus-visible {
  outline-color: var(--farbe-weiss);
}

.hero-brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-brand-role {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-title {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--farbe-weiss);
  font-size: clamp(2.15rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(4, 15, 32, 0.18);
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: #e8f1fb;
  font-size: 20px;
  line-height: 1.6;
}

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

.hero-brand,
.hero-title,
.hero-lead,
.hero-actions {
  animation: heroFadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  animation-delay: 1100ms;
}

.hero-title {
  animation-delay: 1200ms;
}

.hero-lead {
  animation-delay: 1300ms;
}

.hero-actions {
  animation-delay: 1400ms;
}

@keyframes heroZoom {
  from {
    transform: scale(1.03) translateX(-0.6%);
  }

  to {
    transform: scale(1.1) translateX(0.6%);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Willkommen und Therapien */

.welcome-section {
  padding: var(--section-padding-desktop) 0;
  background: var(--farbe-weiss);
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--column-gap);
  align-items: start;
}

.welcome-copy h2 {
  margin-bottom: 22px;
}

.welcome-copy p {
  max-width: 620px;
}

.welcome-copy .text-link {
  margin-top: 10px;
}

.therapy-card {
  padding: 28px 30px 10px;
  border: 1px solid #d6e6f7;
  border-radius: var(--radius-card);
  background: var(--farbe-karte);
  box-shadow: 0 14px 34px rgba(18, 58, 99, 0.06);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.therapy-card h2 {
  padding-bottom: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid #d6e6f7;
  font-size: 26px;
}

.therapy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.therapy-list li {
  border-bottom: 1px solid #d6e6f7;
}

.therapy-list li:last-child {
  border-bottom: 0;
}

.therapy-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  margin: 0 -8px;
  padding: 18px 8px;
  border-radius: 12px;
  color: var(--farbe-text);
  transition: background-color var(--transition), transform var(--transition);
}

.therapy-item:hover {
  color: var(--farbe-text);
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(2px);
}

.therapy-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.therapy-item:hover img,
.therapy-item:focus-visible img {
  transform: scale(1.06);
}

.therapy-item-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.therapy-item-title {
  color: var(--farbe-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.therapy-item-text {
  color: var(--farbe-text-leise);
  font-size: 15px;
  line-height: 1.45;
}

.therapy-item-arrow {
  width: 22px;
  height: 22px;
  color: var(--farbe-haupt-1);
  transition: transform var(--transition);
}

.therapy-item:hover .therapy-item-arrow,
.therapy-item:focus-visible .therapy-item-arrow {
  transform: translateX(4px);
}

/* Erfahrung und Schwerpunkte */

.trust-section {
  padding: 60px 0;
  background: var(--farbe-hintergrund-1);
}

.trust-intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.trust-intro h2 {
  margin-bottom: 12px;
}

.trust-intro p:last-child {
  color: var(--farbe-text-leise);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.trust-item {
  padding-top: 20px;
  border-top: 3px solid var(--farbe-akzent);
}

.trust-number {
  display: block;
  margin-bottom: 10px;
  color: var(--farbe-haupt-2);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.trust-item p {
  max-width: 280px;
  color: var(--farbe-text);
  font-size: 16px;
  line-height: 1.6;
}

.trust-item strong {
  color: var(--farbe-haupt-2);
  font-weight: 600;
}

@media (max-width: 1023px) {
  .hero {
    min-height: 360px;
  }

  .hero-inner {
    padding: 28px 20px;
  }

  .hero-brand {
    margin-bottom: 22px;
    font-size: 21px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .welcome-copy p {
    max-width: 680px;
  }

  .therapy-card {
    width: 100%;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  .trust-grid {
    gap: 24px;
  }

  .trust-number {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 580px;
  }

  .hero-media {
    inset: 0;
  }

  .hero-media img {
    object-position: center 62%;
    animation: heroZoom 20s ease-out forwards;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 26, 52, 0.58) 0%, rgba(8, 26, 52, 0.66) 58%, rgba(8, 26, 52, 0.8) 100%);
  }

  .hero-inner {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-brand {
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
  }

  .hero-brand-divider {
    height: 18px;
  }

  .hero-brand-role {
    font-size: 13px;
  }

  .hero-title {
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.14;
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .welcome-section {
    padding: var(--section-padding-mobile) 0;
  }

  .welcome-grid {
    gap: 28px;
  }

  .welcome-copy h2 {
    margin-bottom: 18px;
  }

  .therapy-card {
    padding: 22px 20px 8px;
  }

  .therapy-card h2 {
    padding-bottom: 14px;
    font-size: 23px;
  }

  .therapy-item {
    grid-template-columns: 64px minmax(0, 1fr) 20px;
    gap: 12px;
    margin: 0 -6px;
    padding: 14px 6px;
  }

  .therapy-item img {
    width: 64px;
    height: 64px;
  }

  .therapy-item-title {
    font-size: 16px;
  }

  .therapy-item-text {
    font-size: 14px;
  }

  .therapy-item-arrow {
    width: 20px;
    height: 20px;
  }

  .trust-section {
    padding: 40px 0;
  }

  .trust-intro {
    margin-bottom: 28px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-top: 16px;
  }

  .trust-number {
    margin-bottom: 0;
    font-size: 40px;
  }

  .trust-item p {
    max-width: none;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
    transform: scale(1);
  }

  .hero-brand,
  .hero-title,
  .hero-lead,
  .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 359px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-title-break {
    display: none;
  }
}
