/* ============================================================
   @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-text:       #2d2d2d;
  --color-text-light:  #6b6b6b;
  --color-text-muted:  #8c8c8c;
  --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;
  --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;
}


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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 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);
}

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

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


/* ============================================================
   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 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(160deg, #fdfbf7 0%, #f5efe4 35%, #e8ddd0 100%);
  text-align: center;
}

.hero__content {
  max-width: 700px;
}

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


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

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

.team-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-accent);
  position: relative;
}

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

.team-card__photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__photo--fallback::after {
  content: attr(data-initials);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.6;
}

.team-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card__name {
  margin-bottom: var(--space-sm);
}

.team-card__bio {
  font-size: 0.925rem;
  color: var(--color-text-light);
  flex: 1;
}

.team-card__contact {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.team-card__link {
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.team-card__link--tel::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  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: 16px;
  height: 16px;
  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);
}

.leistung-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.leistung-card__title {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
}

.leistung-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}


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

.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);
  padding: var(--space-xl);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}

.kurs-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.kurs-card__title-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.kurs-card h3 {
  font-size: 1.15rem;
  flex: 1;
}

.kurs-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  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__termine {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.kurs-card__termine li {
  display: inline-block;
  background: var(--color-bg-alt);
  padding: 0.35em 0.75em;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.kurs-card__details {
  font-size: 0.925rem;
  color: var(--color-text-light);
  flex: 1;
  margin-bottom: var(--space-lg);
}

.kurs-card__anmeldung {
  font-size: 0.9rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.kurs-card__anmeldung span {
  color: var(--color-text-muted);
  font-weight: 400;
}


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


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

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

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

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

  .hero {
    min-height: 80vh;
    padding: var(--space-3xl) var(--space-xl);
  }

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

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

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

  .leistungen-grid .leistung-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

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

  .hero {
    min-height: 85vh;
  }

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

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

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

  .leistungen-grid .leistung-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

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

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

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


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

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

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