/* =========================================================================
   LERNOVUS AKADEMIE – Design System
   Basis: Brand-CI-Guide (Navy + Himmelblau ~80 %, bunte Akzente ~20 %)
   Fonts: Baloo 2 (Headlines) · Nunito Sans (Text) – selbst gehostet
   ========================================================================= */

/* ---------- 1 · Design Tokens ---------- */
:root {
  /* Markenfarben */
  --c-navy:      #1C2E63;
  --c-sky:       #33A1E0;
  --c-sky-light: #7FC4EC;
  --c-green:     #5DB945;
  --c-gold:      #F6B012;
  --c-petrol:    #159FA6;
  --c-magenta:   #E63C7E;
  --c-orange:    #F0781C;
  --c-purple:    #7A3C9E;

  /* Funktionsfarben */
  --c-text:      #1C2E63;   /* Navy als Fließtext-Anker */
  --c-text-soft: #47536f;
  --c-bg:        #ffffff;
  --c-bg-soft:   #f3f8fd;   /* sehr helles Himmelblau */
  --c-bg-navy:   #1C2E63;
  --c-border:    #e2ebf5;
  --c-cta:       #E63C7E;   /* Magenta = Call-to-Action / STRAHLEN */
  --c-cta-hover: #c92e69;

  /* Typo */
  --font-head: "Baloo 2", "Trebuchet MS", Verdana, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Verdana, sans-serif;

  /* Maße */
  --wrap: 1160px;
  --wrap-narrow: 780px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 18px 45px -22px rgba(28,46,99,.35);
  --shadow-sm: 0 8px 24px -14px rgba(28,46,99,.30);
  --space: clamp(3.5rem, 8vw, 6.5rem); /* vertikaler Sektions-Abstand */
}

/* ---------- 2 · Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-sky); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- 3 · Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section--soft { background: var(--c-bg-soft); }
.section--navy { background: var(--c-bg-navy); color: #eaf2fb; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--c-sky);
  margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--c-sky-light); }
.lead { font-size: 1.2rem; color: var(--c-text-soft); }
.section--navy .lead { color: #c7d6ec; }
.center { text-align: center; }
.center .lead { margin-inline: auto; max-width: 60ch; }

/* ---------- 4 · Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  padding: .95rem 1.8rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--cta { background: var(--c-cta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--cta:hover { background: var(--c-cta-hover); }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--ghost:hover { background: var(--c-navy); color: #fff; }
.btn--light { background: #fff; color: var(--c-navy); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1eb356; }
.btn--green { background: var(--c-green); color: #fff; }   /* alle "Schnupperstunde"-CTAs */
.btn--green:hover { background: #4ca337; color: #fff; }
.btn--lg { font-size: 1.15rem; padding: 1.1rem 2.2rem; }

/* ---------- 5 · Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.site-brand img { height: 52px; width: auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--c-navy); border-radius: 3px; margin: 5px 0; transition: .25s; }
.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--c-navy); font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.main-nav a:hover { color: var(--c-sky); text-decoration: none; }
.main-nav .btn { color: #fff; }
.main-nav .btn:hover { color: #fff; }

/* ---------- 6 · Footer ---------- */
.site-footer { background: var(--c-navy); color: #c7d6ec; padding-block: 3.5rem 2rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer__logo { height: 60px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity:.95; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; justify-content: space-between; font-size:.9rem; }

/* ---------- 6b · Textseiten (Impressum, Datenschutz, Hausordnung) ---------- */
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 2.2rem; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--c-border); margin: 2.5rem 0; }
.entry-content a { color: var(--c-sky); text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-bg-soft); font-family: var(--font-head); }
.page .section > .wrap--narrow > h1 { margin-bottom: 1.5rem; }

/* ---------- 7 · Utilities ---------- */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background:#fff; padding:.5rem 1rem; z-index:100; border-radius:8px; }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 2px; }

/* ---------- 8 · Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 74px; left: 0; right: 0; background:#fff; border-bottom:1px solid var(--c-border); transform: translateY(-120%); transition: transform .3s ease; }
  .main-nav[data-open="true"] { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; }
  .main-nav li { border-bottom: 1px solid var(--c-border); }
  .main-nav a { display: block; padding: .9rem .25rem; }
  .main-nav .btn { justify-content: center; margin-top: .8rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================================================
   9 · Startseiten-Komponenten
   ========================================================================= */

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, #eaf5fd 0%, #f3f8fd 55%, #fff 100%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; padding-block: clamp(2.5rem,6vw,4.5rem) clamp(3.5rem,7vw,5.5rem); }
.hero__badge { display: inline-block; background: #fff; border: 1px solid var(--c-border); color: var(--c-navy); font-family: var(--font-head); font-weight: 600; padding: .45rem 1rem; border-radius: var(--radius-pill); font-size: .95rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl { color: var(--c-orange); }
.hero .lead { max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.3rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; font-family: var(--font-head); font-weight: 600; color: var(--c-navy); }
.hero__media { justify-self: center; }
.hero__media img { width: min(100%, 460px); filter: drop-shadow(0 24px 40px rgba(28,46,99,.18)); }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: #fff; clip-path: ellipse(75% 100% at 50% 100%); }

/* 3er-Karten (Problem) */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.pain-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.pain-card__icon { font-size: 2.2rem; display: block; margin-bottom: .6rem; }

/* Loesung / Ueber-uns Split */
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.solution__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.solution__list li { background: #fff; border-left: 4px solid var(--c-sky); border-radius: var(--radius-sm); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.solution__list strong { color: var(--c-navy); }

/* Kompass */
.kompass { margin-top: 2.5rem; display: grid; gap: 1rem; max-width: 820px; margin-inline: auto; }
.kompass__step { display: flex; gap: 1.3rem; align-items: flex-start; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); }
.kompass__num { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--c-sky); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.kompass__step:nth-child(2) .kompass__num { background: var(--c-green); }
.kompass__step:nth-child(3) .kompass__num { background: var(--c-gold); }
.kompass__step:nth-child(4) .kompass__num { background: var(--c-petrol); }
.kompass__step:nth-child(5) .kompass__num { background: var(--c-magenta); }
.kompass__step h3 { margin-bottom: .3rem; }

/* Kompetenzen */
.comp-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.2rem; margin-top: 2.5rem; }
.comp { text-align: center; }
.comp__ic { width: 84px; height: 84px; margin: 0 auto .7rem; display: grid; place-items: center; font-size: 2.4rem; background: #fff; border-radius: 50%; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); border: 3px solid var(--ic, var(--c-sky)); }
.comp h3 { color: #fff; font-size: 1.05rem; }

/* Preise */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.price { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); text-align: center; }
.price--featured { border: 2px solid var(--c-magenta); box-shadow: var(--shadow); transform: translateY(-6px); }
.price__flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--c-magenta); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: .35rem 1rem; border-radius: var(--radius-pill); white-space: nowrap; }
.price__name { font-size: 1.4rem; margin-bottom: .4rem; }
.price__amount { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--c-navy); line-height: 1; margin-bottom: 1.3rem; }
.price__amount span { font-size: 1rem; font-weight: 600; color: var(--c-text-soft); }
.price__feat { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem; text-align: left; }
.price__feat li { padding-left: 1.7rem; position: relative; }
.price__feat li::before { content: "\2713"; position: absolute; left: 0; color: var(--c-green); font-weight: 800; }
.price-note { margin-top: 1.8rem; color: var(--c-text-soft); }

/* Garantie */
.guarantee { display: flex; gap: 1.6rem; align-items: flex-start; background: linear-gradient(120deg,#fff, #f3f8fd); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.guarantee__ic { font-size: 3rem; line-height: 1; }
.guarantee__deal { background: #fff6e6; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-top: 1rem; }

/* Ueber uns – Gruender-Foto */
.about__media { order: -1; }
.about__figure { margin: 0; max-width: 420px; margin-inline: auto; }
.about__photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.about__figure figcaption { margin-top: .8rem; text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--c-navy); font-size: .95rem; }
/* Foto-Platzhalter (Fallback, aktuell ungenutzt) */
.about__photo-placeholder { aspect-ratio: 4/3; border-radius: var(--radius); background: repeating-linear-gradient(45deg,#e7f1fb,#e7f1fb 14px,#dcebf8 14px,#dcebf8 28px); display: grid; place-content: center; text-align: center; color: var(--c-sky); font-family: var(--font-head); font-weight: 700; border: 2px dashed var(--c-sky-light); }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 0 1.3rem; margin-top: .8rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--c-navy); padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--c-sky); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 1.2rem; margin: 0; color: var(--c-text-soft); }

/* Kontakt / Formular */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
.contact__form { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--c-navy); margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font: inherit; color: var(--c-text); background: #fbfdff; }
.field input:focus, .field textarea:focus { border-color: var(--c-sky); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.form-note { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 600; }
.form-note--ok { background: #e6f6e2; color: #2b6a1c; }
.form-note--err { background: #fde4ee; color: #a01a4d; }
.form-privacy { font-size: .85rem; color: var(--c-text-soft); margin-top: 1rem; }
.contact__intro .lead, .contact__intro p { color: #c7d6ec; }

/* Responsive */
@media (max-width: 980px) {
  .comp-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__media { order: -1; }
  .hero__media img { width: min(72%, 320px); }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero .lead { margin-inline: auto; }
  .cards-3, .price-grid { grid-template-columns: 1fr; }
  .solution, .contact { grid-template-columns: 1fr; }
  .price--featured { transform: none; }
  .comp-grid { grid-template-columns: repeat(2,1fr); }
  .field-row { grid-template-columns: 1fr; }
}
