@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/lora-500.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/lora-600.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lora-700.ttf") format("truetype");
}

@font-face {
  font-family: "Yeseva One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/yeseva-one-400.ttf") format("truetype");
}

:root {
  --blue: #0a3d3d;
  --cloud: #E3EBF2;
  --mauve: #C79A99;
  --maroon: #3B0A0A;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  position: relative;
  background: transparent;
  color: #000000;
}

.home-page {
  overflow-x: clip;
}

.page-background {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  transform: none !important;
  background-color: #faf9ef;
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.305'/></svg>"),
    radial-gradient(circle at 84% 74%, rgba(199, 154, 153, 0.34) 0%, rgba(199, 154, 153, 0.18) 18%, rgba(199, 154, 153, 0.06) 34%, rgba(199, 154, 153, 0) 52%);
  background-size: 120px 120px, auto;
  background-blend-mode: overlay, normal;
}

header {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background-color: rgba(227, 235, 242, 0.68);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--mauve);
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.site-logo-line,
.site-logo-subline {
  display: block;
}

.site-logo-line {
  font-family: "Yeseva One", Georgia, serif;
  color: var(--maroon);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-logo-subline {
  font-family: "Lora", Georgia, serif;
  margin-top: 6px;
  color: #000000;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: none;
}

header > a {
  color: var(--maroon);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #000000;
  text-decoration: none;
  background-color: transparent;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  background-color: var(--mauve);
  border-color: var(--mauve);
  color: var(--blue);
  transform: translateY(-1px);
}

nav a.cta-link {
  background-color: var(--maroon);
  color: var(--cloud);
}

nav a.cta-link:hover,
nav a.cta-link:focus-visible {
  background-color: var(--maroon);
  border-color: transparent;
  color: var(--cloud);
}

nav a.cta-link[aria-current="page"] {
  background-color: var(--mauve);
  border-color: var(--mauve);
  color: var(--blue);
  transform: translateY(-1px);
}

main {
  padding: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.hero-background-section {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 52vw, 620px);
  overflow: hidden;
}

.hero-background-image {
  position: absolute;
  inset: 0;
  background-image: url("Hintergrund.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: rgba(255, 255, 255, 0.42);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 56px 24px 72px;
  overflow: hidden;
}

.intro-copy {
  min-height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  background-color: #faf9ef;
}

.home-page .intro-copy {
  background-color: transparent;
}

.intro-copy-content {
  display: grid;
  gap: 18px;
}

.intro-copy-content h2 {
  margin: 0;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  color: var(--maroon);
}

.intro-copy-content p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #000000;
}

.legal-section {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.legal-section .intro-copy {
  display: block;
}

.legal-content {
  display: grid;
  gap: 28px;
}

.legal-content h1,
.legal-content h2 {
  margin: 0;
  font-family: "Yeseva One", Georgia, serif;
  line-height: 1.2;
  color: var(--maroon);
}

.legal-content h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.legal-content h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.legal-content section,
.legal-details {
  display: grid;
  gap: 14px;
}

.legal-content p,
.legal-content ul {
  margin: 0;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content a {
  color: var(--maroon);
  font-weight: 700;
}

.intro-team-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--mauve);
  border-radius: 999px;
  color: #000000;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.intro-team-link:hover,
.intro-team-link:focus-visible {
  background-color: var(--mauve);
  color: #000000;
}

.intro-image-wrap {
  justify-self: end;
  position: relative;
  width: 100%;
  isolation: isolate;
}

.intro-image-wrap::before {
  content: "";
  position: absolute;
  top: 42%;
  right: -64%;
  width: min(178vw, 1240px);
  aspect-ratio: 1;
  z-index: -1;
  transform: translateY(-50%) rotate(-9deg);
  border-radius: 58% 42% 61% 39% / 43% 57% 43% 57%;
  pointer-events: none;
  filter: blur(5px);
  background:
    radial-gradient(circle at 49% 48%, rgba(199, 154, 153, 0.76) 0%, rgba(216, 180, 179, 0.62) 31%, rgba(235, 211, 210, 0.3) 56%, rgba(250, 249, 239, 0) 75%),
    radial-gradient(circle at 30% 32%, rgba(225, 192, 191, 0.48) 0%, rgba(225, 192, 191, 0) 42%),
    radial-gradient(circle at 71% 63%, rgba(178, 122, 120, 0.3) 0%, rgba(178, 122, 120, 0) 38%);
}

.intro-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(39, 32, 48, 0.14);
}

.intro-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
  border: 2px dashed rgba(59, 10, 10, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--maroon);
  font-family: "Lora", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

.birth-comparison-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

/* Keep the spaces between the three homepage sections consistent. */
.home-page .intro-section {
  padding-bottom: 168px;
  overflow: visible;
}

.home-page .birth-comparison-section {
  padding-bottom: 168px;
}

.care-area-section {
  position: relative;
  z-index: 1;
  display: grid;
  /* Matches the right edge of the first course card above. */
  grid-template-columns: minmax(320px, 562px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 88px;
  overflow: hidden;
}

.care-area-image-wrap {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: 100%;
}

.care-area-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(39, 32, 48, 0.14);
}

.care-area-copy {
  min-height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  background-color: #faf9ef;
}

.care-area-copy-content {
  display: grid;
  gap: 18px;
}

.care-area-copy-content h2 {
  margin: 0;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  color: var(--maroon);
}

.care-area-copy-content p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #000000;
}

.birth-comparison-heading {
  margin: 0 0 28px;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  text-align: center;
  color: var(--maroon);
}

.birth-comparison-subheading {
  margin: 0 0 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  color: #000000;
}

.birth-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.birth-comparison-card {
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto auto;
  align-content: start;
}

.birth-comparison-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.birth-comparison-card:first-child .birth-comparison-actions {
  position: relative;
  isolation: isolate;
}

.birth-comparison-card:first-child .birth-comparison-actions::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -30px;
  width: min(92vw, 560px);
  aspect-ratio: 1 / 1.08;
  z-index: -1;
  border-radius: 61% 39% 58% 42% / 39% 54% 46% 61%;
  transform: rotate(-12deg);
  pointer-events: none;
  filter: blur(4px);
  background:
    radial-gradient(circle at 46% 42%, rgba(153, 198, 199, 0.7) 0%, rgba(171, 209, 210, 0.54) 32%, rgba(207, 230, 231, 0.26) 58%, rgba(250, 249, 239, 0) 78%),
    radial-gradient(circle at 24% 66%, rgba(184, 217, 218, 0.42) 0%, rgba(184, 217, 218, 0) 44%),
    radial-gradient(circle at 76% 28%, rgba(112, 168, 170, 0.25) 0%, rgba(112, 168, 170, 0) 38%);
}

.birth-comparison-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(39, 32, 48, 0.12);
}

.birth-comparison-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 372px;
  object-fit: contain;
}

.birth-comparison-card figcaption {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: "Lora", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--maroon);
  padding-bottom: 20px;
}

.birth-comparison-card figcaption::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 192px;
  height: 2px;
  background-color: var(--mauve);
  transform: translateX(-50%);
}

.birth-comparison-card figcaption::after {
  bottom: 0;
}

.birth-comparison-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  width: min(100%, 420px);
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid var(--maroon);
  border-radius: 0;
  background-color: #faf9ef;
  color: #000000;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(39, 32, 48, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.birth-comparison-button-label,
.birth-comparison-button-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.birth-comparison-button-label {
  display: inline-block;
}

.birth-comparison-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  color: var(--maroon);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.birth-comparison-button:hover,
.birth-comparison-button:focus-visible {
  border-color: var(--maroon);
  background-color: #faf9ef;
  color: #000000;
  box-shadow: 0 20px 38px rgba(39, 32, 48, 0.16);
  transform: translateY(-2px);
}

.birth-comparison-button:hover .birth-comparison-button-label,
.birth-comparison-button:focus-visible .birth-comparison-button-label,
.birth-comparison-button:hover .birth-comparison-button-icon,
.birth-comparison-button:focus-visible .birth-comparison-button-icon {
  transform: translateX(4px);
}

.betreuungshilfe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.betreuungshilfe-layout button:first-of-type {
  justify-self: end;
}

.betreuungshilfe-layout button:last-of-type {
  justify-self: start;
}

.betreuungshilfe-platzhalter {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue);
  font-size: 1.1rem;
}

.care-request {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.care-request h1 {
  margin: 0 0 28px;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--maroon);
}

.care-request p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.care-request-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.care-request-contact a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}

.care-request-contact a:hover,
.care-request-contact a:focus-visible {
  color: var(--blue);
}

.care-request-instagram {
  display: inline-flex;
}

.care-request-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: var(--maroon);
  color: var(--cloud);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.care-request-cta:hover,
.care-request-cta:focus-visible {
  background-color: var(--mauve);
  border-color: var(--mauve);
  color: var(--blue);
  transform: translateY(-1px);
}

.not-found {
  width: min(1120px, calc(100% - 48px));
  min-height: 62vh;
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 8vw, 112px);
}

.not-found-number {
  color: var(--mauve);
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(7rem, 21vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-shadow: 12px 12px 0 rgba(59, 10, 10, 0.08);
}

.not-found-eyebrow {
  margin: 0 0 12px;
  color: #000000;
  font-family: "Lora", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 0;
  color: #000000;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 400;
  line-height: 1.08;
}

.not-found-copy > p:not(.not-found-eyebrow) {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 1.1rem;
  line-height: 1.65;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.not-found-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.not-found-primary {
  background-color: var(--maroon);
  color: var(--cloud);
}

.not-found-primary:hover,
.not-found-primary:focus-visible {
  background-color: var(--mauve);
  border-color: var(--mauve);
  color: var(--blue);
  transform: translateY(-1px);
}

.course-detail-page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.course-page-title {
  margin: 0 0 42px;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--maroon);
}

.course-detail-placeholder {
  margin: 0;
  color: var(--blue);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 72px;
  align-items: start;
}

.course-detail-column {
  display: grid;
  gap: 30px;
}

.course-detail-block h1,
.course-detail-block h2 {
  margin: 0 0 14px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: #000000;
}

.course-detail-block h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.course-detail-block p,
.course-detail-list {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.6;
  color: #000000;
}

.course-detail-block p + p {
  margin-top: 16px;
}

.course-detail-story {
  max-width: 780px;
}

.course-detail-list + p {
  margin-top: 16px;
}

.course-detail-list {
  padding: 0;
  list-style: none;
}

.course-detail-list li {
  position: relative;
  padding-left: 38px;
}

.course-detail-list li + li {
  margin-top: 12px;
}

.course-detail-list li::before {
  content: "\2192";
  position: absolute;
  left: 4px;
  top: 0;
  color: #f4a091;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
}

.course-detail-page-animated-dots .course-detail-list li {
  padding-left: 28px;
}

.course-detail-page-animated-dots .course-detail-list li::before {
  content: "";
  left: 6px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mauve);
  transform: translateY(-50%);
  clip-path: inset(0 100% 0 0);
  animation: course-detail-dot-draw 0.25s ease-out both;
}

.course-detail-page-animated-dots .course-detail-column:not(.course-detail-sidebar) .course-detail-list {
  --course-detail-dot-start: 0.1s;
}

.course-detail-page-animated-dots .course-detail-sidebar .course-detail-block:nth-child(1) .course-detail-list {
  --course-detail-dot-start: 1.75s;
}

.course-detail-page-six-content-dots .course-detail-sidebar .course-detail-block:nth-child(1) .course-detail-list {
  --course-detail-dot-start: 2.1s;
}

.course-detail-page-seven-content-dots .course-detail-sidebar .course-detail-block:nth-child(1) .course-detail-list {
  --course-detail-dot-start: 2.43s;
}

.course-detail-page-animated-dots .course-detail-sidebar .course-detail-block:nth-child(2) .course-detail-list {
  --course-detail-dot-start: 3.4s;
}

.course-detail-page-animated-dots .course-detail-list li:nth-child(1)::before {
  animation-delay: var(--course-detail-dot-start);
}

.course-detail-page-animated-dots .course-detail-list li:nth-child(2)::before {
  animation-delay: calc(var(--course-detail-dot-start) + 0.33s);
}

.course-detail-page-animated-dots .course-detail-list li:nth-child(3)::before {
  animation-delay: calc(var(--course-detail-dot-start) + 0.66s);
}

.course-detail-page-animated-dots .course-detail-list li:nth-child(4)::before {
  animation-delay: calc(var(--course-detail-dot-start) + 0.99s);
}

.course-detail-page-animated-dots .course-detail-list li:nth-child(5)::before {
  animation-delay: calc(var(--course-detail-dot-start) + 1.32s);
}

.course-detail-page-animated-dots .course-detail-list li:nth-child(6)::before {
  animation-delay: calc(var(--course-detail-dot-start) + 1.65s);
}

.course-detail-page-animated-dots .course-detail-list li:nth-child(7)::before {
  animation-delay: calc(var(--course-detail-dot-start) + 1.98s);
}

@keyframes course-detail-dot-draw {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

.course-detail-sidebar {
  gap: 40px;
}

.course-detail-lead {
  font-size: 1.12rem;
}

.course-detail-accent {
  color: #f4a091;
  font-weight: 700;
}

.course-detail-person-link {
  text-decoration: none;
}

.course-detail-person-link:hover,
.course-detail-person-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.course-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: var(--maroon);
  color: var(--cloud);
  text-decoration: none;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.course-detail-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.course-detail-cta:hover,
.course-detail-cta:focus-visible {
  background-color: var(--maroon);
  border-color: transparent;
  color: var(--cloud);
  transform: translateY(-1px);
}

.course-detail-cta:hover .course-detail-cta-icon,
.course-detail-cta:focus-visible .course-detail-cta-icon {
  transform: translate(2px, -2px);
}

.course-next-date {
  margin-top: 72px;
  display: grid;
  justify-items: start;
  gap: 12px;
}

.course-next-date h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
  color: #000000;
}

.course-next-date-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  max-width: 100%;
  padding: 18px 22px;
  border: 2px solid var(--mauve);
  background-color: #ffffff;
  color: var(--maroon);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

main button {
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: var(--maroon);
  color: var(--cloud);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

main button:hover,
main button:focus-visible {
  background-color: var(--maroon);
  color: var(--cloud);
  border-color: var(--mauve);
}

.team-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.team-section-intro {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.team-eyebrow {
  margin: 0 0 12px;
  font-family: "Lora", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}

.team-section h1 {
  margin: 0;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  color: #000000;
}

.team-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 18px 0 28px;
}

.team-grid::before {
  content: none;
}

.team-card {
  position: relative;
  margin: 0;
  z-index: 1;
}

.team-card-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.team-card-button:hover .team-photo,
.team-card-button:focus-visible .team-photo {
  transform: scale(1.12);
}

.team-card-button:focus-visible {
  outline: 3px solid rgba(59, 10, 10, 0.32);
  outline-offset: 6px;
}

.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(39, 32, 48, 0.14);
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.45s ease;
}

.team-card-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: none;
}

.team-card-hint-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--maroon);
  box-shadow: 0 14px 30px rgba(39, 32, 48, 0.16);
  transform: scale(0.88);
  transition: transform 0.32s ease, background-color 0.32s ease, color 0.32s ease;
}

.team-card-hint-icon {
  width: 100%;
  height: 100%;
}

.team-card-hint-ring,
.team-card-hint-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.32s ease;
}

.team-card-hint-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.team-card-hint-arrow {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.team-card-button:hover .team-card-hint,
.team-card-button:focus-visible .team-card-hint {
  opacity: 1;
}

.team-card-button:hover .team-card-hint-circle,
.team-card-button:focus-visible .team-card-hint-circle {
  transform: scale(1);
  background: #ffffff;
}

.team-card-button:hover .team-card-hint-ring,
.team-card-button:focus-visible .team-card-hint-ring,
.team-card-button:hover .team-card-hint-arrow,
.team-card-button:focus-visible .team-card-hint-arrow {
  stroke-dashoffset: 0;
}

.team-name {
  margin-top: 14px;
  font-family: "Lora", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
}

body.overlay-open {
  overflow: hidden;
}

body.overlay-open header,
body.overlay-open .site-footer {
  z-index: 0;
}

.team-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.team-overlay[hidden] {
  display: none;
}

.team-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 32, 48, 0);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.42s ease, background-color 0.42s ease;
}

.team-side-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(680px, 92vw);
  height: 100vh;
  border: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  pointer-events: none;
  outline: none;
  will-change: transform, opacity;
}

@keyframes team-panel-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

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

@keyframes team-panel-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.team-side-panel-inner {
  height: 100%;
  padding: 28px 28px 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(227, 235, 242, 0.96)),
    var(--cloud);
  box-shadow: -18px 0 48px rgba(39, 32, 48, 0.2);
  overflow-y: auto;
}

.team-overlay.is-open {
  pointer-events: auto;
}

.team-overlay.is-open .team-overlay-backdrop {
  opacity: 1;
  background: rgba(39, 32, 48, 0.54);
}

.team-overlay.is-open .team-side-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.team-side-panel.is-entering {
  animation: team-panel-slide-in 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-side-panel.is-exiting {
  opacity: 0;
  transform: translateX(100%);
  animation: team-panel-slide-out 0.46s cubic-bezier(0.64, 0, 0.78, 0);
}

.team-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 2;
  margin-left: auto;
  width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--maroon);
  box-shadow: 0 10px 24px rgba(39, 32, 48, 0.12);
}

.team-panel-close span {
  font-size: 1.9rem;
  line-height: 1;
}

.team-panel-hero {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-top: 8px;
  margin-bottom: 32px;
}

.team-panel-image-wrap {
  position: relative;
}

.team-panel-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px 18px;
  height: 58%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(199, 154, 153, 0.35), rgba(39, 32, 48, 0.1));
  z-index: -1;
}

.team-panel-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(39, 32, 48, 0.18);
}

.team-panel-head h2 {
  margin: 0 0 14px;
  font-family: "Yeseva One", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: #000000;
}

.team-overlay-eyebrow {
  margin: 0 0 10px;
  font-family: "Lora", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}

.team-panel-intro {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
  color: #000000;
}

.team-panel-intro-highlight {
  font-weight: 600;
}

#team-detail-description {
  white-space: pre-line;
}

.team-panel-body {
  display: grid;
  gap: 22px;
}

.team-panel-section {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(39, 32, 48, 0.07);
}

.team-panel-section h3 {
  margin: 0 0 12px;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--maroon);
}

.team-panel-section p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #000000;
}

.team-detail-list {
  margin: 0;
  padding-left: 20px;
  color: #000000;
}

.team-detail-list li + li {
  margin-top: 8px;
}

.team-contact-list {
  display: grid;
  gap: 10px;
}

.team-contact-list a {
  color: #000000;
  text-decoration: none;
  word-break: break-word;
}

.team-contact-list a:hover,
.team-contact-list a:focus-visible {
  color: var(--maroon);
}

.team-instagram {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background-color: var(--blue);
  color: var(--cloud);
}

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

.footer-address p {
  margin: 0;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 12px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cloud);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  color: var(--mauve);
  transform: translateY(-1px);
}

.instagram-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.instagram-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-button {
  color: var(--cloud);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  header {
    align-items: center;
    flex-direction: column;
    padding: 18px 20px;
  }

  .site-logo {
    align-self: center;
  }

  header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    text-align: center;
  }

  header nav a.cta-link {
    grid-column: 1 / -1;
  }

  .birth-comparison-card:first-child .birth-comparison-actions::before {
    content: none;
  }

  .not-found {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding: 64px 0;
  }

  .not-found-number {
    font-size: clamp(7rem, 32vw, 10rem);
  }

  .betreuungshilfe-layout {
    grid-template-columns: 1fr;
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px 56px;
  }

  .home-page .intro-section {
    overflow: hidden;
  }

  .intro-image-wrap::before {
    right: -22%;
    width: min(132vw, 760px);
  }

  .course-detail-page {
    width: min(100% - 40px, 1240px);
    padding: 40px 0 64px;
  }

  .course-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .course-next-date {
    margin-top: 48px;
  }

  .birth-comparison-section {
    padding: 0 20px 64px;
  }

  .home-page .intro-section,
  .home-page .birth-comparison-section {
    padding-bottom: 108px;
  }

  .care-area-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px 64px;
  }

  .care-area-copy {
    order: -1;
  }

  .birth-comparison-heading {
    margin-bottom: 24px;
  }

  .birth-comparison-subheading {
    margin-bottom: 24px;
  }

  .birth-comparison-grid {
    grid-template-columns: 1fr;
  }

  .birth-comparison-image-wrap {
    min-height: 320px;
    padding: 20px;
  }

  .birth-comparison-image {
    max-height: 280px;
  }

  .team-section {
    width: min(100% - 40px, 1200px);
    padding: 40px 0 56px;
  }

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

  .team-card-hint {
    right: 12px;
    bottom: 12px;
    opacity: 1;
  }

  .team-card-hint-circle {
    width: 42px;
    height: 42px;
    background: #ffffff;
    transform: scale(1);
  }

  .team-card-hint-ring,
  .team-card-hint-arrow {
    stroke-dashoffset: 0;
  }

  .team-side-panel {
    width: min(100vw, 620px);
  }

  .team-side-panel-inner {
    padding: 22px 20px 28px;
  }

  .team-panel-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-panel-image-wrap {
    max-width: 320px;
  }

  .intro-image-wrap {
    justify-self: stretch;
  }

  .care-area-image-wrap {
    justify-self: stretch;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-button {
    width: min(100%, 320px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    align-self: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .footer-social {
    margin: 0;
  }

  .betreuungshilfe-layout button:first-of-type,
  .betreuungshilfe-layout button:last-of-type {
    justify-self: center;
  }
}

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

  .team-side-panel {
    width: 100vw;
  }

  .team-side-panel-inner {
    padding: 18px 16px 22px;
  }

  .team-panel-section {
    padding: 18px;
    border-radius: 20px;
  }

  .team-panel-close {
    width: 48px;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-overlay-backdrop,
  .team-side-panel {
    transition: none;
  }
}
