/* ============ schoolymindo — mindo-Familie ============
   Design-Basis: mindo-Design-System (assets/mindo-core.css zuerst einbinden).
   Die bestehenden Variablennamen bleiben als Aliase erhalten und zeigen auf die
   offizielle mindo-Palette — KEIN Rot (Rot ist der Sprachschule Durlach vorbehalten). */
:root {
  --primary:      var(--mindo-violet, #7B2FF7);   /* Marken-Akzent = mindo-Violett */
  --primary-dark: #5b21c9;
  --primary-soft: #F2ECFE;
  --orange:       var(--mindo-orange, #FF9500);   /* primäre CTA-Farbe */
  --teal:         var(--mindo-teal, #17BEBB);
  --yellow:       #FFCF8A;                          /* weiche Orange-Markierung statt Gelb */
  --pink:         var(--mindo-magenta, #E5007E);
  --green:        var(--mindo-teal, #17BEBB);       /* kein Grün in der Palette → Türkis */
  --blue:         var(--mindo-blue, #2E7CF6);
  --red:          var(--mindo-magenta, #E5007E);    /* KEIN Rot → Magenta */
  --gold:         var(--mindo-orange, #FF9500);
  --navy:         var(--mindo-navy, #1E2A5A);
  --text:         var(--mindo-ink, #1D2433);
  --text-soft:    var(--mindo-gray, #5B6472);
  --bg:           #FFFFFF;
  --white:        #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(30, 42, 90, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 42, 90, 0.14);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section { padding: 72px 0; }
.section-alt { background: var(--primary-soft); }
.section-sub { color: var(--text-soft); max-width: 640px; margin-bottom: 2rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #E88600; }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(43, 43, 69, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-img { height: 68px; width: auto; display: block; }
.logo-text { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.5px; }
.logo-text strong { color: var(--primary); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg) 60%);
  padding: 72px 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.highlight {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  padding: 0 4px;
}
.hero-sub { color: var(--text-soft); font-size: 1.1rem; margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-cards { display: flex; flex-direction: column; gap: 14px; }
.hero-cards-label { font-weight: 600; color: var(--text-soft); font-size: 0.9rem; }
.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  border-left: 6px solid var(--primary);
}
.mini-card:hover { transform: translateX(4px); }
.mini-card-2 { border-left-color: var(--teal); }
.mini-card-3 { border-left-color: var(--green); }
.mini-emoji { font-size: 1.8rem; }
.mini-card small { color: var(--text-soft); }

/* ---- Fakten ---- */
.facts { background: var(--navy); color: var(--white); padding: 28px 0; }
.facts-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fact { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 130px; }
.fact-big { font-size: 1.3rem; font-weight: 700; }
.fact span:last-child { opacity: 0.85; font-size: 0.9rem; }

/* ---- Kursfilter ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); }

/* ---- Kurskarten ---- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card.featured { outline: 3px solid var(--yellow); }
.course-head {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.course-emoji { font-size: 2.6rem; }
.course-head-red { background: linear-gradient(120deg, var(--red), #F49CC4); }
.course-head-teal { background: linear-gradient(120deg, var(--teal), #6ADCD1); }
.course-head-green { background: linear-gradient(120deg, var(--primary), #B79CFB); }
.course-head-blue { background: linear-gradient(120deg, var(--blue), #7FB4FF); }
.course-head-pink { background: linear-gradient(120deg, var(--pink), #F894C0); }
.course-head-orange { background: linear-gradient(120deg, var(--orange), #FFB27E); }
.course-head-gold { background: linear-gradient(120deg, var(--gold), #F0C378); }
.course-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { margin-bottom: 10px; font-size: 1.25rem; }
.course-body > p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 14px; }
.course-meta { list-style: none; font-size: 0.9rem; color: var(--text-soft); margin-bottom: 18px; }
.course-meta li { padding: 2px 0; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.course-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.buchen-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--text-soft); }
.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-light { background: rgba(255, 255, 255, 0.9); color: var(--text); }
.catalog-note { margin-top: 28px; color: var(--text-soft); font-style: italic; }

/* ---- Ablauf ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }

/* ---- Warum ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--primary);
}
.why-card:nth-child(2) { border-top-color: var(--teal); }
.why-card:nth-child(3) { border-top-color: var(--orange); }
.why-card:nth-child(4) { border-top-color: var(--green); }
.why-card:nth-child(5) { border-top-color: var(--pink); }
.why-card:nth-child(6) { border-top-color: var(--gold); }
.why-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.why-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.why-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---- Plattform ---- */
.platform-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.check-list { list-style: none; margin: 16px 0; }
.check-list li { padding: 6px 0; }
.platform-note {
  background: var(--primary-soft);
  border-left: 5px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}
.platform-visual svg { width: 100%; height: auto; }

/* ---- Preise ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; }
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card-featured { outline: 3px solid var(--orange); }
.badge-featured {
  position: absolute;
  top: -14px; left: 24px;
  background: var(--orange);
  color: var(--white);
}
.price-big { font-size: 2.6rem; font-weight: 800; color: var(--primary); margin: 10px 0; }
.price-big small { font-size: 1rem; font-weight: 500; color: var(--text-soft); }
.price-card .btn { margin-top: 12px; }

/* ---- FAQ ---- */
.faq-item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.4rem;
  color: var(--primary);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: var(--text-soft); }

/* ---- Kontakt ---- */
.section-cta { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.contact-box { text-align: center; color: var(--white); }
.contact-box h2 { color: var(--white); }
.contact-box p { margin: 14px auto 24px; max-width: 560px; opacity: 0.95; }
.contact-mail { font-weight: 600; margin-top: 18px !important; }

/* ---- Footer ---- */
.site-footer { background: var(--text); color: #C9C9DC; padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text strong { color: var(--yellow); }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #C9C9DC; text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-note { margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; font-size: 0.85rem; }

/* ---- Rechtsseiten ---- */
.legal-page { padding: 56px 0; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal-page p, .legal-page ul { margin-bottom: 12px; color: var(--text-soft); }
.legal-page ul { padding-left: 22px; }

/* ---- Unterseiten ---- */
.main-nav a.active { color: var(--primary); font-weight: 700; }
.page-hero { background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg) 70%); padding: 56px 0 44px; }
.page-hero h1 { font-size: 2.3rem; margin-bottom: 10px; }
.page-hero p { color: var(--text-soft); max-width: 680px; font-size: 1.08rem; }
.breadcrumbs { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* ---- Footer-Spalten ---- */
.footer-head { display: block; font-weight: 700; color: var(--white); margin-bottom: 4px; font-size: 0.95rem; }

/* ---- Teaser-Karten (Startseite) ---- */
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.teaser-more { margin-top: 28px; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-head { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-head-violet { background: linear-gradient(120deg, var(--primary), #B79CFB); }
.blog-head-teal { background: linear-gradient(120deg, var(--teal), #6ADCD1); }
.blog-head-blue { background: linear-gradient(120deg, var(--blue), #7FB4FF); }
.blog-head-orange { background: linear-gradient(120deg, var(--orange), #FFB27E); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h2, .blog-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.blog-card-body p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 14px; }
.blog-meta { margin-top: auto; font-size: 0.85rem; color: var(--text-soft); }
.blog-readmore { color: var(--primary); font-weight: 600; }

/* ---- Blog-Artikel ---- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
.article h1 { font-size: 2.2rem; margin-bottom: 12px; }
.article-meta { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 28px; }
.article-body h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.article-body h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--primary); }
.article-box {
  background: var(--primary-soft);
  border-left: 5px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}
.article-cta {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0 8px;
  text-align: center;
}
.article-cta h2 { color: var(--white); margin: 0 0 8px; font-size: 1.4rem; }
.article-cta p { opacity: 0.95; margin-bottom: 16px; }
.article-footer-nav { max-width: 760px; margin: 0 auto; padding: 0 20px 48px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.article-footer-nav a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ---- Vergleichstabelle ---- */
.compare-wrap { overflow-x: auto; margin: 24px 0; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #E7E9F0; font-size: 0.95rem; }
.compare-table th { background: var(--primary-soft); color: var(--text); }
.compare-table td:first-child { font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner, .platform-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .btn-header { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 18px 24px;
    gap: 14px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .main-nav.open { display: flex; }
}
