/* ================================================
   BASE.CSS
   Variablen · Reset · Typografie · Nav · Footer
   Geteilte Utility-Klassen
   ================================================ */

/* ── CSS VARIABLEN ── */
:root {
  --teal-dark:       #2d6e7e;
  --teal-mid:        #4a9aaa;
  --teal-light:      #7ec8c8;
  --teal-pale:       #b8e0e0;
  --lavender:        #8b87b8;
  --lavender-light:  #c5c3e0;
  --lavender-pale:   #ede9f5;
  --sand:            #f5f0e8;
  --sand-dark:       #e8dfd0;
  --white:           #fdfcfa;
  --text-dark:       #2a2a35;
  --text-mid:        #4a4a5a;
  --text-light:      #7a7a8a;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--sand);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── PAGE SYSTEM ── */
.page { display: none; animation: fadeUp .5s ease; }
.page.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(253, 252, 250, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(126, 200, 200, .25);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 300;
  color: var(--teal-dark); letter-spacing: .06em; cursor: pointer;
}
.nav-logo span { color: var(--lavender); }

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links li a,
.nav-links li button {
  background: none; border: none; cursor: pointer; text-decoration: none;
  font-family: 'Jost', sans-serif; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mid);
  transition: color .3s; padding: .4rem 1rem;
}
.nav-links li a:hover,
.nav-links li button:hover       { color: var(--teal-dark); }
.nav-links li a.active-nav,
.nav-links li button.active-nav  { color: var(--teal-dark); font-weight: 500; }
.nav-cta {
  background: var(--teal-dark) !important;
  color: white !important;
  padding: .5rem 1.3rem !important;
  border-radius: 50px !important;
}
.nav-cta:hover { background: var(--teal-mid) !important; }

/* ── FOOTER ── */
footer {
  background: var(--teal-dark); color: rgba(255,255,255,.8);
  padding: 2.2rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 300; color: white; letter-spacing: .05em;
}
.footer-logo span { color: var(--teal-light); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .3s; font-size: .75rem; letter-spacing: .08em;
}
.footer-links a:hover { color: var(--teal-light); }

/* ── SHARED UTILITIES ── */
section { padding: 5.5rem 6rem; }
.page-hero { padding: 9.5rem 6rem 4rem; text-align: center; position: relative; overflow: hidden; }

.section-eyebrow {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: .9rem; text-align: center;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 300;
  color: var(--teal-dark); text-align: center; margin-bottom: .9rem;
}
.section-divider {
  width: 55px; height: 2px;
  background: linear-gradient(to right, var(--teal-light), var(--lavender));
  margin: 0 auto 1.4rem; border-radius: 2px;
}
.section-intro {
  text-align: center; max-width: 580px; margin: 0 auto 3.5rem;
  color: var(--text-mid); font-size: .97rem; line-height: 1.85; font-weight: 300;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal-dark); color: white;
  padding: .85rem 2.1rem; border-radius: 50px; text-decoration: none;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  transition: all .3s; box-shadow: 0 8px 24px rgba(45,110,126,.28);
  border: none; cursor: pointer; font-family: 'Jost', sans-serif; display: inline-block;
}
.btn-primary:hover {
  background: var(--teal-mid); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45,110,126,.4);
}
.btn-secondary {
  border: 1.5px solid var(--teal-light); color: var(--teal-dark);
  padding: .85rem 2.1rem; border-radius: 50px; text-decoration: none;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  transition: all .3s; background: none; cursor: pointer;
  font-family: 'Jost', sans-serif; display: inline-block;
}
.btn-secondary:hover { background: var(--teal-pale); transform: translateY(-2px); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── TESTIMONIAL (shared) ── */
.testimonial {
  background: linear-gradient(135deg, var(--teal-dark), #1d4f5e 50%, #2d3a6e);
  padding: 4.5rem 6rem; text-align: center; position: relative; overflow: hidden;
}
.testimonial::before {
  content: '"'; position: absolute; top: -2rem; left: 50%; transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif; font-size: 20rem;
  color: rgba(255,255,255,.04); line-height: 1; pointer-events: none;
}
.testimonial blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem); font-weight: 300; font-style: italic;
  color: white; max-width: 660px; margin: 0 auto 1.3rem; line-height: 1.5;
  position: relative; z-index: 1;
}
.testimonial cite { font-size: .75rem; color: var(--teal-pale); letter-spacing: .1em; text-transform: uppercase; font-style: normal; }

/* ── FORMS (shared) ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--sand-dark); border-radius: 9px;
  font-family: 'Jost', sans-serif; font-size: .88rem; color: var(--text-dark);
  background: var(--white); outline: none; transition: border-color .3s; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal-light); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chk-grp { display: flex; align-items: flex-start; gap: .75rem; margin-top: .7rem; }
.chk-grp input { width: 16px; height: 16px; accent-color: var(--teal-dark); margin-top: 2px; flex-shrink: 0; }
.chk-grp label { font-size: .8rem; color: var(--text-mid); line-height: 1.5; cursor: pointer; }
.chk-grp a { color: var(--teal-dark); }
.form-submit {
  width: 100%; background: var(--teal-dark); color: white; border: none;
  padding: .95rem; border-radius: 50px; font-family: 'Jost', sans-serif;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: all .3s; margin-top: .4rem;
}
.form-submit:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,110,126,.3); }

/* ── ABOUT STRIP (shared) ── */
.about-strip {
  background: linear-gradient(135deg, var(--teal-dark), #1d5060);
  color: white; padding: 3.5rem 6rem;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem;
}
.about-item { text-align: center; }
.about-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem; font-weight: 300; color: var(--teal-light);
  line-height: 1; margin-bottom: .4rem;
}
.about-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* ════════════════════════════════
   SPAM-SCHUTZ
   Honeypot + Mathe-Challenge
   ════════════════════════════════ */

/* Honeypot: visuell vollständig versteckt,
   aber NICHT display:none (Bots erkennen das) */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Captcha-Bereich */
.captcha-group {
  margin-top: 1.2rem;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, var(--teal-pale), var(--lavender-pale));
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: border-color .3s;
}
.captcha-group:focus-within {
  border-color: var(--teal-light);
}
.captcha-group label {
  /* überschreibt form-group label-Stil für bessere Lesbarkeit */
  font-size: .8rem !important;
  color: var(--text-dark) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: .6rem;
}
.captcha-group label strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--teal-dark);
  font-weight: 500;
}
.captcha-group input[type="number"] {
  max-width: 120px;
  text-align: center;
  font-size: 1rem !important;
  font-weight: 500;
  background: var(--white) !important;
}
/* Spinner-Buttons der number-inputs ausblenden */
.captcha-group input[type="number"]::-webkit-outer-spin-button,
.captcha-group input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.captcha-group input[type="number"] { -moz-appearance: textfield; }

.captcha-hint {
  font-size: .74rem;
  color: var(--text-light);
  margin-top: .5rem;
  font-style: italic;
}

/* Fehlerzustand */
.captcha-group.captcha-error {
  border-color: #c07060;
  animation: captchaShake .4s ease;
}
.captcha-error-msg {
  font-size: .76rem;
  color: #c07060;
  margin-top: .4rem;
  display: none;
}
.captcha-error .captcha-error-msg { display: block; }

@keyframes captchaShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}

/* ════════════════════════════════
   GESPERRTE ZEITSLOTS
   Vergangene Termine + Termine vor
   startDatum eines Kursblocks
   ════════════════════════════════ */
.z-gesperrt {
  opacity: .65;
  cursor: default !important;
  background: var(--sand) !important;
  border-color: var(--sand-dark) !important;
}
.z-gesperrt:hover { transform: none !important; box-shadow: none !important; }

.z-sperre-hint {
  font-size: .73rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: .4rem;
  padding-top: .4rem;
  border-top: 1px dashed var(--sand-dark);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.z-sperre-hint::before {
  content: '🔒';
  font-size: .75rem;
  font-style: normal;
}
