/*
  schoolando.de — Marketing-Site (Apex). Eine Stil-Quelle für index + Unterseiten.
  06_BRAND_REFRESH: Sora (Headlines/Wortmarke) + DM Sans (Body), Brand Blue #2563EB,
  Navy #0D1B2A, Slate-Skala. DSGVO: Fonts self-hosted (same-origin) — NULL externe Requests.
*/

/* === Brand-Fonts, self-hosted (kein Google-CDN → keine Besucher-IP an Dritte) === */
@font-face {
  font-family: 'Sora';
  src: url('/fonts/Sora-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/fonts/Sora-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --navy: #0d1b2a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --paper: #ffffff;
  --surface: #f7f9fc;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Reserviert den Scrollbalken-Platz immer → kein horizontaler Shift zwischen Seiten mit/ohne Scrollbalken. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Wortmarke (s + o in Brand Blue, .de in Slate-700; 06 §8.1) === */
.brand-hl {
  color: var(--brand);
}
.brand-tld {
  color: var(--slate-700);
}

/* === Kopfzeile / Navigation (einheitlich auf allen Seiten) === */
.topbar {
  border-bottom: 1px solid var(--slate-200);
  background: var(--paper);
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  min-height: 4rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.nav-brand:hover {
  text-decoration: none;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.nav-links a {
  color: var(--slate-700);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
}
.nav-links a[aria-current='page'] {
  /* Aktiv-Zustand nur über Farbe (navy), Gewicht bleibt 500 → Nav bleibt seitenübergreifend
     gewichts-identisch (Spec: Nav-Links überall font-weight 500). */
  color: var(--navy);
}
.nav-links .signin {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.08);
}
.nav-links .signin:hover {
  background: var(--brand-hover);
  color: #fff;
  text-decoration: none;
}

/* === Hero (nur index) === */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  gap: 1.5rem;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(1.875rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  max-width: 36rem;
  margin: 0;
}
.tagline {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.1875rem);
  line-height: 1.5;
  color: var(--slate-700);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.8rem 1.9rem;
  border-radius: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.12);
}
.cta:hover {
  background: var(--brand-hover);
  color: #fff;
  text-decoration: none;
}
.cta-ghost {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--slate-200);
}
.cta-ghost:hover {
  background: var(--slate-50);
  color: var(--brand-hover);
}

/* === Trust-Karten-Grid + Feature-Karte (Startseite) === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 860px;
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.card-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

.features-card {
  width: 100%;
  max-width: 860px;
  text-align: left; /* hebt die .hero-Zentrierung auf — Darstellung wie preise.html */
}

/* === Bw-Anker (exakt einmal, unteres Drittel; 06 §2.3) === */
.anchor-line {
  margin: 2.5rem auto 0;
  max-width: 34rem;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--slate-600);
}

/* === Inhalts-Seiten (Preise/Kontakt/Impressum/Datenschutz) === */
.page {
  flex: 1;
  padding: 3.5rem 1.5rem 4rem;
}
.page-inner {
  max-width: 44rem;
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}
.page h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1rem;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--slate-700);
  margin: 0 0 2rem;
}
.page h2,
.features-card h2 {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}
.page p {
  color: var(--slate-700);
  margin: 0 0 1rem;
}
.page address {
  font-style: normal;
  color: var(--slate-700);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.muted {
  color: var(--slate-500);
  font-size: 0.9375rem;
}
.page dl {
  margin: 0 0 1rem;
  color: var(--slate-700);
}
.page dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 1rem;
}
.page dd {
  margin: 0.15rem 0 0;
}
.card {
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
}
.card .price {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.check-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5rem 0;
  color: var(--slate-700);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* === Kontaktformular === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.form-row .optional {
  font-weight: 400;
  color: var(--slate-500);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.contact-form .cta {
  align-self: flex-start;
  margin-top: 0.25rem;
  border: 0;
  cursor: pointer;
}
/* Honeypot — visuell versteckt, für Bots sichtbar (Anti-Spam, kein externer Dienst). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0.25rem 0 0;
  min-height: 1.2em;
  font-size: 0.9375rem;
}
.form-status--ok {
  color: #047857; /* emerald-700: AA-tauglich als Text auf Hell (06 §3.1: helles Emerald nicht) */
}
.form-status--err {
  color: #b91c1c; /* rose-700 (06 §3.5) */
}

/* === Cal.com Inline-Embed === */
.booking {
  margin: 2.5rem 0 0;
}
.cal-embed {
  min-height: 40rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.placeholder {
  color: var(--slate-500);
  background: var(--slate-100);
  border-radius: 0.25rem;
  padding: 0 0.3rem;
}
.back-home {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* === Fußzeile (einheitlich) === */
.footer {
  border-top: 1px solid var(--slate-200);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer a {
  color: var(--slate-600);
  font-size: 0.875rem;
}
.footer a:hover {
  color: var(--navy);
}
.footer .copy {
  font-size: 0.875rem;
  color: var(--slate-500);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
