/* =====================================================================
   Situationspotenzial Design System
   colors_and_type.css: Tokens + Schriften (Lato, lokal, kein Google Fonts)
   Stand 2026-11-17, erste Fassung (Ulrike Kerkmann und Heinz Brasch)
   ===================================================================== */

/* ---------- Schriften: Lato lokal (OFL), DSGVO-sicher ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("fonts/lato-latin-700-italic.woff2") format("woff2"); }

:root {
  /* ---------- Leitfarbe: Teal (aus dem rechten Blütenblatt) ---------- */
  --sp-teal:        #20B3B8;  /* Flächen, Buttons, Linien, Akzente. Nicht für Fließtext. */
  --sp-teal-deep:   #167F83;  /* Text-Teal: Links, Eyebrows. Kontrast 4,8 : 1 auf Weiß */
  --sp-teal-soft:   #E4F6F6;  /* zarte Teal-Fläche, Badges, Markierungen */

  /* ---------- Akzentfarbe: Koralle (aus dem roten Blütenblatt) ---------- */
  --sp-coral:       #F47373;  /* Hover, Outline-Buttons, zweite Linie. Mitte des roten Logo-Blatts */
  --sp-coral-deep:  #C43A3A;  /* Überschriften. Rot aus dem Logo-Blatt (Farbton 0°), abgedunkelt. 5,2 : 1 auf Weiß */
  --sp-coral-soft:  #FCE9E6;  /* zarte Koralle-Fläche */

  /* ---------- Text: warmes Grau-Schwarz, nie farbig ---------- */
  --sp-ink:         #2F2B28;  /* Fließtext. 14 : 1 auf Weiß */
  --sp-ink-soft:    #6B635D;  /* Nebentext, Meta, Adresszeilen. 5,9 : 1 */
  --sp-ink-faint:   #A39B94;  /* nur Dekor, Platzhalter, nie für lesbaren Text */

  /* ---------- Flächen und Linien ---------- */
  --sp-white:       #FFFFFF;  /* Seiten-Hintergrund */
  --sp-cool:        #F2F4F5;  /* kühles Hellgrau: Bandfläche für Abschnitte, im Wechsel mit Weiß */
  --sp-line:        #ECE8E4;  /* Haarlinien, Trenner */

  /* ---------- Blütenfarben: nur Logo und seltene Kategorie-Marken ---------- */
  --sp-petal-red:    #EF1F1F;
  --sp-petal-gold:   #B08A2C;
  --sp-petal-blue:   #34B9F5;
  --sp-petal-yellow: #F5BD38;
  --sp-petal-green:  #16D14E;
  --sp-petal-teal:   #20B3B8;

  /* ---------- Semantische Zuordnung ---------- */
  --sp-heading:      var(--sp-coral-deep);
  --sp-text:         var(--sp-ink);
  --sp-text-muted:   var(--sp-ink-soft);
  --sp-link:         var(--sp-teal-deep);
  --sp-link-line:    var(--sp-teal);
  --sp-link-hover:   var(--sp-coral-deep);
  --sp-action:       var(--sp-teal);
  --sp-action-hover: var(--sp-coral);
  --sp-focus:        var(--sp-teal);

  /* ---------- Typografie ---------- */
  --sp-font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --sp-fs-xs:   0.75rem;   /* 12 */
  --sp-fs-sm:   0.875rem;  /* 14 */
  --sp-fs-base: 1rem;      /* 16 */
  --sp-fs-md:   1.125rem;  /* 18 */
  --sp-fs-lg:   1.25rem;   /* 20 */
  --sp-fs-xl:   1.625rem;  /* 26 */
  --sp-fs-2xl:  2.125rem;  /* 34 */
  --sp-fs-3xl:  2.75rem;   /* 44 */
  --sp-lh-tight: 1.2;
  --sp-lh-body:  1.7;
  --sp-measure:  62ch;

  /* ---------- Abstände ---------- */
  --sp-sp-1: 4px;  --sp-sp-2: 8px;  --sp-sp-3: 12px; --sp-sp-4: 16px;
  --sp-sp-5: 24px; --sp-sp-6: 32px; --sp-sp-7: 48px; --sp-sp-8: 64px; --sp-sp-9: 96px;

  /* ---------- Form ---------- */
  --sp-radius:      8px;
  --sp-radius-card: 12px;
  --sp-radius-pill: 999px;

  /* ---------- Bewegung ---------- */
  --sp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sp-dur-micro: 120ms;
  --sp-dur: 200ms;
}

/* ---------- Basis ---------- */
.sp-body {
  margin: 0;
  font-family: var(--sp-font);
  font-size: var(--sp-fs-base);
  line-height: var(--sp-lh-body);
  color: var(--sp-text);
  background: var(--sp-white);
  -webkit-font-smoothing: antialiased;
}
.sp-body h1, .sp-h1 { font-size: var(--sp-fs-3xl); font-weight: 700; line-height: var(--sp-lh-tight); color: var(--sp-heading); letter-spacing: -0.01em; margin: 0 0 var(--sp-sp-4); }
.sp-body h2, .sp-h2 { font-size: var(--sp-fs-2xl); font-weight: 700; line-height: var(--sp-lh-tight); color: var(--sp-heading); letter-spacing: -0.01em; margin: 0 0 var(--sp-sp-4); }
.sp-body h3, .sp-h3 { font-size: var(--sp-fs-lg);  font-weight: 700; line-height: 1.3; color: var(--sp-heading); margin: 0 0 var(--sp-sp-2); }
.sp-body h4, .sp-h4 { font-size: var(--sp-fs-md);  font-weight: 700; line-height: 1.4; color: var(--sp-ink); margin: 0 0 var(--sp-sp-2); }
.sp-body h1, .sp-body h2, .sp-body h3 { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 560px) {
  .sp-body h1, .sp-h1 { font-size: var(--sp-fs-2xl); }
  .sp-body h2, .sp-h2 { font-size: var(--sp-fs-xl); }
}
.sp-body p { margin: 0 0 var(--sp-sp-4); max-width: var(--sp-measure); }
.sp-lede { font-size: var(--sp-fs-md); font-weight: 300; color: var(--sp-ink); }
.sp-muted { color: var(--sp-text-muted); }
.sp-small { font-size: var(--sp-fs-sm); }
.sp-eyebrow {
  display: block; font-size: var(--sp-fs-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sp-teal-deep); margin: 0 0 var(--sp-sp-3);
}
.sp-body a, .sp-link {
  color: var(--sp-link); text-decoration: none;
  border-bottom: 1px solid var(--sp-link-line);
  transition: color var(--sp-dur) var(--sp-ease), border-color var(--sp-dur) var(--sp-ease);
}
.sp-body a:hover, .sp-link:hover { color: var(--sp-link-hover); border-bottom-color: var(--sp-coral); }
.sp-body :focus-visible { outline: 2px solid var(--sp-focus); outline-offset: 3px; border-radius: 4px; }
