/* ============================================================
   @font-face – Lokale Fonts (Playfair Display + Inter)
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgFE_.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ============================================================
   Custom Properties
   ============================================================ */

:root {
  --color-bg:         #fdfbf7;
  --color-bg-alt:     #f6f2ea;
  --color-primary:    #556b2f;
  --color-primary-rgb: 85, 107, 47;
  --color-primary-dark: #445724;
  --color-accent:      #e8ddd0;
  --color-hero-warm:   #f5efe4;
  --color-text:       #2d2d2d;
  --color-text-light:  #525252;
  --color-text-muted:  #5f5f5f;
  --color-tag-bg:      #f0f2ec;
  --color-tag-text:    #4a5d29;
  --color-white:      #ffffff;
  --color-border:     #e0d8cc;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width:  1200px;
  --max-width-narrow: 820px;
  --max-width-unified: 1200px;
  --radius-lg:  16px;
  --radius:     8px;
  --radius-sm:  4px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --shadow-sm: 0 2px 8px rgba(85, 107, 47, 0.04);
  --shadow-md: 0 8px 24px rgba(85, 107, 47, 0.08);
  --shadow-lg: 0 16px 32px rgba(85, 107, 47, 0.1);
}


/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(70px + var(--space-lg));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* === PREMIUM-POLISH #1+#7: Specific transition props + animated underline thickness === */
a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              text-decoration-thickness 0.25s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration-thickness: 2px;
}
/* === END PREMIUM-POLISH #1+#7 === */

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === PREMIUM-POLISH #5: Branded text selection === */
::selection {
  background: rgba(var(--color-primary-rgb), 0.18);
  color: var(--color-text);
}
/* === END PREMIUM-POLISH #5 === */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.text-italic {
  font-style: italic;
  font-weight: 400;
}

p + p {
  margin-top: var(--space-md);
}

address {
  font-style: normal;
}

ul, ol {
  padding-left: var(--space-lg);
}


/* ============================================================
   Utility: Container
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}


/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  cursor: pointer;
  /* === PREMIUM-POLISH #2: Premium button easing === */
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* === END PREMIUM-POLISH #2 === */
  border: none;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.97);
}

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

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

.btn--primary:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

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

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


/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 216, 204, 0.5);
  /* === PREMIUM-POLISH #1: Kill transition:all on navbar === */
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  /* === END PREMIUM-POLISH #1 === */
}

/* === PREMIUM-POLISH #8: Navbar scrolled state === */
.navbar.is-scrolled {
  box-shadow: 0 1px 12px rgba(85, 107, 47, 0.06);
  background: rgba(253, 251, 247, 0.95);
}
/* === END PREMIUM-POLISH #8 === */

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.navbar__brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.navbar__brand:hover {
  color: var(--color-primary-dark);
}

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

@media (min-width: 48em) {
  .navbar__links {
    display: flex;
  }
}

/* === PREMIUM-POLISH #3: Animated underline on nav links === */
.navbar__links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__links a:hover::after,
.navbar__links a:focus-visible::after {
  width: 100%;
}
/* === END PREMIUM-POLISH #3 === */

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

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar__toggle:hover,
.navbar__toggle:focus-visible {
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
}

.navbar__toggle svg {
  width: 24px;
  height: 24px;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-icon--open {
  display: none;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-icon--close {
  display: block;
}

.navbar__toggle-icon--close {
  display: none;
}

.navbar__toggle-icon--open {
  display: block;
}

@media (min-width: 48em) {
  .navbar__toggle {
    display: none;
  }
}

.navbar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.navbar__overlay.is-active {
  display: block;
}

@media (min-width: 48em) {
  .navbar__overlay {
    display: none !important;
  }
}

@media (max-width: 47.9375em) {
  .navbar__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 0;
    width: min(280px, 80vw);
    height: calc(100vh - 70px);
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
  }

  .navbar__links.is-open {
    display: flex;
    transform: translateX(0);
  }

  .navbar__links a {
    font-size: 1.1rem;
    padding: var(--space-sm) 0;
  }
}


/* ============================================================
   Sections
   ============================================================ */

.section {
  padding-block: var(--space-3xl);
}

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

.section__headline {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: calc(70px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  background-color: var(--color-bg);
  text-align: center;
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.85;
  animation: float 20s infinite ease-in-out alternate;
}

.hero__bg-shapes .shape-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: rgba(85, 107, 47, 0.10);
  animation-delay: 0s;
}

.hero__bg-shapes .shape-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: rgba(232, 221, 208, 0.85);
  animation-delay: -5s;
}

.hero__bg-shapes .shape-3 {
  top: 40%;
  left: 60%;
  width: 35vw;
  height: 35vw;
  background: rgba(85, 107, 47, 0.06);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero__headline {
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.hero__intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}

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

.btn--tel {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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


/* ============================================================
   Team
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: var(--max-width-unified);
  margin-inline: auto;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* === PREMIUM-POLISH #4: Premium card hover easing === */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  /* === END PREMIUM-POLISH #4 === */
  border: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px; /* Eckig mit leichten Rundungen wie die Karten */
  overflow: hidden;
  background-color: var(--color-accent);
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 0 4px rgba(85, 107, 47, 0.08); /* warm ring */
  margin-bottom: var(--space-lg);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card__img--martha {
  object-position: 50% 20% !important;
}

.team-card__photo--fallback::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary);
}

.team-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.team-card__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  flex: 1;
}

.team-card__name {
  margin-bottom: var(--space-xs);
  font-size: 1.4rem;
}

.team-card__role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.team-card__location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-tag-bg);
  padding: 0.35em 0.85em;
  border-radius: 20px;
  margin: 0 auto var(--space-md);
  line-height: 1.4;
}

.team-card__meta-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0 auto var(--space-xs);
  line-height: 1.5;
  flex-wrap: wrap;
}

.team-card__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.team-card__flag {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  vertical-align: middle;
}

.team-card__bio {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.team-card__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.team-card__links-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  overflow: hidden;
  width: 100%;
}

.team-card__link {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-text);
  white-space: nowrap;
}

.team-card__link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.team-card__link--tel::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  mask-size: contain;
}

.team-card__link--email::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  mask-size: contain;
}


/* ============================================================
   Leistungen
   ============================================================ */

.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: var(--max-width-unified);
  margin-inline: auto;
  align-items: start;
}

@media (min-width: 64em) {
  .leistungen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === PREMIUM-POLISH #4: Premium card hover easing + leistung hover lift === */
.leistung-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* === END PREMIUM-POLISH #4 === */

.leistung-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.leistung-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.leistung-card__list li {
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
}

.leistung-card__list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ============================================================
   Kurse (dynamisch aus JSON)
   ============================================================ */

.kurse__intro {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  color: var(--color-text-light);
  font-size: 0.95rem;
}

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

.kurs-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-muted);
  font-style: italic;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.kurs-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  /* === PREMIUM-POLISH #4: Premium card hover easing === */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  /* === END PREMIUM-POLISH #4 === */
  overflow: hidden;
}

.kurs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.kurs-card__header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.kurs-card__icon {
  width: 42px;
  height: 42px;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}

.kurs-card__icon svg {
  width: 100%;
  height: 100%;
}

.kurs-card__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: 4px;
}

.kurs-card h3 {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.3;
}

.kurs-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.kurs-card__badge--inline {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  vertical-align: middle;
  margin: 0 2px;
}

.kurs-card__badge[title] {
  cursor: help;
}

.kurs-card__meta {
  padding: 0 var(--space-lg) var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.kurs-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.kurs-card__tag--alt {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-left: 0.5em;
  vertical-align: middle;
}

.kurs-card__tag svg {
  color: var(--color-primary);
}

.kurs-card__termine {
  list-style: none;
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.kurs-card__termine li {
  display: inline-block;
  background: var(--color-bg-alt);
  padding: 0.25em 0.6em;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.kurs-card__body {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  flex-grow: 1;
}

.kurs-card__details {
  font-size: 0.925rem;
  color: var(--color-text-light);
  margin: 0;
}

.kurs-card__footer {
  padding: var(--space-lg);
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  margin-top: auto;
}

.kurs-card__dozent {
  color: var(--color-text);
}

/* ---- Contact reveal (grid-rows technique: no dead time on close) ---- */

.kurs-card__contact {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  /* Closing: smooth, slightly quicker collapse */
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.kurs-card.is-open .kurs-card__contact {
  grid-template-rows: 1fr;
  /* Opening: gentle deceleration for a premium feel */
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kurs-card__contact-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(-4px);
  /* Closing: content fades out quickly before the container collapses */
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.kurs-card.is-open .kurs-card__contact-inner {
  opacity: 1;
  transform: translateY(0);
  /* Opening: content appears with a slight delay after expansion begins */
  transition:
    opacity 0.3s ease 0.1s,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* ---- Toggle button ---- */

.kurs-card__btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-lg);
  width: 100%;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.kurs-card__btn-contact::after {
  content: '';
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kurs-card__btn-contact:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
}

.kurs-card__btn-contact:active {
  transform: scale(0.98);
}

.kurs-card.is-open .kurs-card__btn-contact {
  background: var(--color-primary);
  color: var(--color-white);
}

.kurs-card.is-open .kurs-card__btn-contact::after {
  transform: rotate(-135deg);
}

.kurs-card__link {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-text);
  white-space: nowrap;
}

.kurs-card__link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.kurs-card__link--tel::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  mask-size: contain;
}

.kurs-card__link--email::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  mask-size: contain;
}


/* ============================================================
   Kontakt
   ============================================================ */

.kontakt-content {
  text-align: center;
}

.kontakt-address {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.kontakt-address strong {
  font-size: 1.1rem;
}

.kontakt-hours {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-style: italic;
}


/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding-block: var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-decoration: none;
}

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


/* ============================================================
   Legal Pages (Impressum / Datenschutz)
   ============================================================ */

.page-legal {
  background-color: var(--color-bg);
}

.page-legal .navbar {
  position: relative;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-legal .navbar__container {
  height: 60px;
}

.legal-content {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
  padding: var(--space-3xl) var(--space-lg);
}

.legal-back {
  display: inline-block;
  margin-bottom: var(--space-xl);
  font-size: 0.9rem;
}

.legal-content h1 {
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p,
.legal-content ul {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.legal-content ul {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.legal-content ul li {
  margin-bottom: var(--space-xs);
}


/* ============================================================
   Media Queries
   ============================================================ */

/* Small mobile – stack multi-phone rows */
@media (max-width: 25em) {
  .team-card__links-row {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* Tablet (≥ 768px) */
@media (min-width: 48em) {

  .container {
    padding-inline: var(--space-xl);
  }

  .hero {
    padding: calc(70px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  }

  .section {
    padding-block: var(--space-3xl);
  }

  .team-grid {
    /* 1 Spalte: jede Hebamme als eigene Zeile (Links Foto, Rechts Details) */
  }

  .team-card {
    display: grid;
    grid-template-columns: minmax(0, 240px) 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .team-card__media,
  .team-card__details {
    min-width: 0;
  }

  .team-card__media {
    align-items: flex-start;
    text-align: left;
  }

  .team-card__details {
    align-self: stretch;
    align-items: flex-start;
    text-align: left;
  }

  .team-card__location-pill,
  .team-card__meta-line {
    margin-inline: 0;
  }

  .team-card__meta-line {
    justify-content: flex-start;
  }

  .team-card__contact {
    align-items: flex-start;
  }

  .team-card__links-row {
    justify-content: flex-start;
  }

  /* Alternierendes Layout: gerade Karten → Foto rechts, Details links.
     Die Spaltenbreiten müssen mitgespiegelt werden, da `order` nur die
     Belegungsreihenfolge ändert – sonst landen die Details in der
     schmalen Fotospalte und der Bio-Text wird gequetscht. */
  .team-card:nth-child(even) {
    grid-template-columns: 1fr minmax(0, 240px);
  }

  .team-card:nth-child(even) .team-card__media {
    order: 2;
  }

  .team-card:nth-child(even) .team-card__details {
    order: 1;
  }

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

/* Desktop (≥ 1024px) */
@media (min-width: 64em) {

  .section {
    padding-block: var(--space-4xl);
  }

  .team-grid {
    max-width: var(--max-width-unified);
    margin-inline: auto;
  }

  .team-card {
    grid-template-columns: minmax(0, 300px) 1fr;
    gap: var(--space-2xl);
  }

  .team-card:nth-child(even) {
    grid-template-columns: 1fr minmax(0, 300px);
  }

  .team-card__name {
    font-size: 1.6rem;
  }

  .team-card__bio {
    max-width: 65ch;
  }

  .leistungen-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kurse-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--max-width-unified);
    margin-inline: auto;
  }

  .kurse-grid .kurs-card:last-child:nth-child(3n - 1) {
    grid-column: span 1;
  }

  .container {
    padding-inline: var(--space-2xl);
  }
}

/* ============================================================
   Animations
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Reduced Motion
   ============================================================ */

/* === PREMIUM-POLISH #6: Disable hover effects on touch devices === */
@media (hover: none) {
  .team-card:hover,
  .kurs-card:hover,
  .leistung-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .btn:active,
  .kurs-card__btn-contact:active {
    transform: none;
  }

  .btn--secondary:hover,
  .btn--tel:hover,
  .kurs-card__btn-contact:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: none;
  }

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

  .navbar__links a:hover::after,
  .navbar__links a:focus-visible::after {
    width: 0;
  }

  a:hover {
    text-decoration-thickness: 1px;
  }
}
/* === END PREMIUM-POLISH #6 === */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .animate-on-scroll {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__bg-shapes .shape {
    animation: none !important;
  }

  .kurs-card__contact,
  .kurs-card__contact-inner,
  .kurs-card__btn-contact,
  .kurs-card__btn-contact::after {
    transition-duration: 0.01ms !important;
  }
}
