/* ============================================================
   @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;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

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

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

.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(1.75rem, 4vw, 2.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;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  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);
  transition: all 0.3s ease;
}

.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;
  }
}

.navbar__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.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);
}


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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  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(60px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out alternate;
}

.hero__bg-shapes .shape-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--color-accent);
  animation-delay: 0s;
}

.hero__bg-shapes .shape-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--color-hero-warm);
  animation-delay: -5s;
}

.hero__bg-shapes .shape-3 {
  top: 40%;
  left: 60%;
  width: 40vw;
  height: 40vw;
  background: rgba(85, 107, 47, 0.05);
  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 {
  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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid var(--color-border);
  padding-top: var(--space-xl);
}

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

.team-card__photo {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius); /* 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);
  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__body {
  padding: 0 var(--space-lg) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  align-items: center;
}

.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__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.team-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  padding: 0.25em 0.75em;
  border-radius: 20px;
}

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

.team-card__contact {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--space-xs);
}

.team-card.is-open .team-card__contact {
  max-height: 200px;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.team-card__btn-contact {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-card__btn-contact:hover {
  background: var(--color-accent);
}

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

.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;
}

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

.leistung-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  color: inherit;
}

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

.leistung-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.leistung-card.is-active {
  border-color: var(--color-primary);
  background-color: var(--color-bg-alt);
}

.leistung-card__header {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.leistung-card__icon {
  width: 52px;
  height: 52px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  background: var(--color-tag-bg);
  padding: 12px;
  border-radius: 50%;
}

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

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

.leistung-card__intro {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.leistung-card__trigger {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.leistung-card__trigger::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

.leistung-card.is-active .leistung-card__trigger::after {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

/* Expansion Content Area */
.leistungen-expansion {
  grid-column: 1 / -1;
  display: none;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: 0;
  border: 0 solid transparent;
}

.leistungen-expansion.is-open {
  display: block;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  animation: expansionFadeIn 0.35s ease;
}

@keyframes expansionFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.leistungen-expansion__inner {
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.leistungen-expansion__text {
  max-width: 700px;
  margin-bottom: var(--space-xl);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.leistungen-expansion__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm) var(--space-2xl);
  margin-bottom: var(--space-2xl);
  text-align: left;
}

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

.leistungen-expansion__list li {
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

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

.leistung-card__cta {
  margin-top: auto;
}

/* ============================================================
   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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  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);
}

.kurs-card__contact {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--space-xs);
}

.kurs-card.is-open .kurs-card__contact {
  max-height: 200px;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.kurs-card__btn-contact {
  margin-top: var(--space-lg);
  width: 100%;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.kurs-card__btn-contact:hover {
  background: var(--color-accent);
}

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

.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-info {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
}

.kontakt-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-text);
  text-decoration: none;
}

.kontakt-info a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.kontakt-info__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.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 {
    min-height: 80vh;
    padding: calc(70px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  }

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

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

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

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

  .hero {
    min-height: 85vh;
  }

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

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

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

  .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
   ============================================================ */

@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;
  }

  .leistungen-expansion.is-open {
    animation: none;
  }

  .team-card__contact,
  .kurs-card__contact {
    transition-duration: 0.15s !important;
  }
}
