/* =========================================================
   LeiKit - Typografie nach Brand & Style Guide v1.1
   Stand: November 2026

   Einfuegen: Design > Customizer > Zusaetzliches CSS
   (ganz ans Ende, nach dem Newsletter- und Footer-CSS)

   Schriftgroessen wachsen fliessend von 375 px Bildschirm-
   breite (Smartphone) bis 1280 px (Desktop).

   Warum !important? Divi setzt Schriftgroessen an mehreren
   Stellen gleichzeitig (Theme, Modul-Vorlagen, eine eigene
   Regel mit !important fuer H1 auf Tablet und Handy). Nur so
   gelten die Werte aus dem Styleguide ueberall.
   ========================================================= */


/* ---------- 1. Werte aus dem Styleguide ---------- */
:root {
  /* Schriftgroessen: mobil -> desktop */
  --lk-fs-h1:      clamp(2.125rem, 1.6588rem + 1.989vw, 3.25rem);    /* 34 -> 52 px */
  --lk-fs-h2:      clamp(1.75rem, 1.4392rem + 1.326vw, 2.5rem);      /* 28 -> 40 px */
  --lk-fs-h3:      clamp(1.375rem, 1.2196rem + 0.663vw, 1.75rem);    /* 22 -> 28 px */
  --lk-fs-h4:      clamp(1.1875rem, 1.1098rem + 0.3315vw, 1.375rem); /* 19 -> 22 px */
  --lk-fs-bereich: clamp(1rem, 0.9482rem + 0.221vw, 1.125rem);       /* 16 -> 18 px */
  --lk-fs-text:    clamp(1.0625rem, 1.0366rem + 0.1105vw, 1.125rem); /* 17 -> 18 px */
  --lk-fs-form:    1rem;                                              /* 16 px fest  */

  /* Zeilenabstaende */
  --lk-lh-head: 1.3;
  --lk-lh-text: 1.7;

  /* Schriften */
  --lk-font-head: Quicksand, Helvetica, Arial, sans-serif;
  --lk-font-text: "Roboto VariableFont", Roboto, Helvetica, Arial, sans-serif;

  /* Farben */
  --lk-primary:        #6D37F1;
  --lk-primary-dunkel: #63568F;
  --lk-text:           #1C1B20;
}


/* ---------- 2. Ueberschriften H1 bis H3: Quicksand Bold ---------- */
body #page-container h1,
body #page-container h2,
body #page-container h3 {
  font-family: var(--lk-font-head) !important;
  font-weight: 700 !important;          /* Quicksand gibt es nur bis 700 */
  line-height: var(--lk-lh-head) !important;
  text-wrap: balance;
}

body #page-container h1 { font-size: var(--lk-fs-h1) !important; }
body #page-container h2 { font-size: var(--lk-fs-h2) !important; }
body #page-container h3 { font-size: var(--lk-fs-h3) !important; }


/* ---------- 3. H4 und Bereichstitel: Roboto SemiBold ---------- */
body #page-container h4,
body #page-container h5,
body #page-container h6 {
  font-family: var(--lk-font-text) !important;
  font-weight: 600 !important;
  line-height: var(--lk-lh-head) !important;
}

body #page-container h4 { font-size: var(--lk-fs-h4) !important; }

/* Bereichstitel (auf der Seite als H5 angelegt, z. B. "Alles was du brauchst, an einem Ort") */
body #page-container h5,
body #page-container h6 { font-size: var(--lk-fs-bereich) !important; }


/* ---------- 4. Hilfsklassen ----------
   Fuer Faelle, in denen die Optik nicht zur HTML-Ebene passt.
   In Divi: Modul > Erweitert > CSS-ID und Klassen > CSS-Klasse    */
body #page-container .lk-h1 :is(h1, h2, h3, h4, h5, h6),
body #page-container .lk-h2 :is(h1, h2, h3, h4, h5, h6),
body #page-container .lk-h3 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--lk-font-head) !important;
  font-weight: 700 !important;
  line-height: var(--lk-lh-head) !important;
}
body #page-container .lk-h1 :is(h1, h2, h3, h4, h5, h6) { font-size: var(--lk-fs-h1) !important; }
body #page-container .lk-h2 :is(h1, h2, h3, h4, h5, h6) { font-size: var(--lk-fs-h2) !important; }
body #page-container .lk-h3 :is(h1, h2, h3, h4, h5, h6) { font-size: var(--lk-fs-h3) !important; }

body #page-container .lk-bereichstitel :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--lk-font-text) !important;
  font-weight: 600 !important;
  font-size: var(--lk-fs-bereich) !important;
  line-height: var(--lk-lh-head) !important;
}


/* ---------- 5. Ueberschriften-Farbe ---------- */
/* Primary dunkel auf hellem Grund. Auf dunklen Flaechen bleibt Divi bei Weiss. */
body #page-container .et_pb_bg_layout_light :is(h1, h2, h3, h4, h5, h6) {
  color: var(--lk-primary-dunkel);
}

/* Startseite: zweite Hero-Zeile "in der Kindertagespflege" bewusst in Secondary
   (bewusste Abweichung vom Styleguide). Die Farbe kommt aus dem Divi-Modul;
   diese Regel stellt sicher, dass sie erhalten bleibt. */
body.page-id-14 #page-container .et_pb_heading_1 .et_pb_heading_container :is(h1, h2, h3) {
  color: #00B4CD !important;   /* Secondary */
}

/* Startseite: Die Hero-Ueberschrift besteht aus zwei Divi-Modulen.
   Divi setzt 30 px Abstand dazwischen; so stehen beide Zeilen wie eine.
   Kann entfallen, sobald die Ueberschrift ein einziges Modul ist. */
body.page-id-14 #page-container .et_pb_heading_0 + .et_pb_heading_1 {
  margin-top: -30px !important;
}


/* ---------- 6. Fliesstext: Roboto, 17 -> 18 px, Zeilenabstand 1,7 ---------- */
body #page-container .et_pb_text_inner,
body #page-container .et_pb_text_inner p,
body #page-container .et_pb_text_inner li,
body #page-container .et_pb_blurb_description,
body #page-container .et_pb_blurb_description p,
body #page-container .et_pb_promo_description p,
body #page-container .et_pb_team_member_description p,
body #page-container .entry-content p,
body #page-container .entry-content li {
  font-family: var(--lk-font-text);
  font-size: var(--lk-fs-text) !important;
  font-weight: 400;
  line-height: var(--lk-lh-text) !important;
}

/* Textfarbe auf hellem Grund (Divi-Vorlage setzte #222222) */
body #page-container .et_pb_bg_layout_light .et_pb_text_inner p,
body #page-container .et_pb_bg_layout_light .et_pb_text_inner li,
body #page-container .et_pb_bg_layout_light .et_pb_blurb_description p,
body #page-container .et_pb_bg_layout_light .et_pb_team_member_description p {
  color: var(--lk-text);
}

/* Fliesstext auf dunklen Flaechen weiss (z. B. "Vielleicht kennst du das auch").
   Nur p und li samt Auszeichnungen darin: Divi markiert auch Buttons als
   "dunkles Modul", deren Text darf hiervon nicht erfasst werden. */
body #page-container .et_pb_bg_layout_dark :is(p, li),
body #page-container .et_pb_bg_layout_dark :is(p, li) :is(strong, em, span, b, i) {
  color: #FFFFFF !important;
}

/* Untertitel im Team-Modul (Jan): war hellgrau #AAAAAA, Kontrast zu gering */
body #page-container .et_pb_member_position {
  color: var(--lk-text) !important;
}


/* ---------- 7. Navigation: Roboto, Farbe Text, aktiv in Primary ---------- */
body #main-header #top-menu > li > a,
body #main-header .et_mobile_menu li a {
  font-family: var(--lk-font-text) !important;
  font-size: var(--lk-fs-text) !important;
  font-weight: 500 !important;
  color: var(--lk-text) !important;
  opacity: 1;
}

body #main-header #top-menu > li > a:hover,
body #main-header #top-menu > li.current-menu-item > a,
body #main-header .et_mobile_menu li a:hover {
  color: var(--lk-primary) !important;
  opacity: 1;
}

body #main-header #top-menu > li > a:focus-visible,
body #main-header .et_mobile_menu li a:focus-visible {
  outline: 3px solid #CDBDFF;
  outline-offset: 4px;
  border-radius: 4px;
}


/* ---------- 8. Footer ---------- */
body #footer-bottom #footer-info {
  font-family: var(--lk-font-text);
  color: var(--lk-text);
}


/* ---------- 9. Formulare: 16 px fest ---------- */
/* Darunter zoomt das iPhone beim Antippen eines Feldes in die Seite. */
body #page-container input[type=text],
body #page-container input[type=email],
body #page-container input[type=tel],
body #page-container input[type=search],
body #page-container textarea,
body #page-container select {
  font-size: var(--lk-fs-form);
}
