/**
 * mr-typography.css
 * Globale Typografie-Standards für Victoria Moretti
 *
 * Regeln:
 *  - Heroes, große Headline-Sections bleiben unangetastet (explizit ausgenommen)
 *  - Content-Bereiche (Widgets, Cards, Fließtext, Tabellen) werden vereinheitlicht
 *  - Alle Werte nutzen die :root-Variablen aus style.css
 *  - Mobile-First via max-width Breakpoints
 *
 * @package morretti
 */

/* ============================================================
   1. BODY & BASIS
   ============================================================ */
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. ÜBERSCHRIFTEN – nur in klar definierten Content-Bereichen
   (Keine nackten h2/h3/h4-Selektoren – die würden alle Widgets zerstören)
   ============================================================ */

/* WP-Standardinhalt (Seiten/Beiträge ohne Custom Template) */
.entry-content h2,
.wp-block-heading:is(h2) {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.entry-content h3,
.wp-block-heading:is(h3) {
  font-family: var(--font-sans);
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.entry-content h4,
.wp-block-heading:is(h4) {
  font-family: var(--font-sans);
  font-size: var(--h4);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

/* ============================================================
   3. FLIESSTEXT – Widget-Bereiche
   ============================================================ */

/* Elementor-Widget-Text */
.elementor-widget p,
.elementor-widget li,
.elementor-widget td,
.elementor-widget th {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--color-text);
}

/* Editorial Hero & Leitfaden Intro: Serif-Standard (Elementor-Stil überschreibt) */
.mr-gl-hero .mr-gl-hero__intro,
.mr-lfe-intro .mr-lfe-dropcap__text,
.mr-lfe-intro .mr-lfe-dropcap__text p {
  font-family: var(--font-display);
}

/* Honorare: Fließtext-Stil per Elementor (nicht .elementor-widget p) */
.elementor-widget-mr_honorar_levels .mr-hon-ed-cats__footnote-notice p,
.elementor-widget-mr_honorar_levels .mr-hon-ed-cats__note p,
.elementor-widget-mr_honorar_levels .mr-hon-matrix__intro p,
.elementor-widget-mr_honorar_levels .mr-hon-matrix__extra-text p,
.elementor-widget-mr_honorar_levels .mr-hon-matrix__cats-note p,
.elementor-widget-mr_honorare_sections .mr-hon-ed-sec__body p {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Theme-eigene Container */
.container p,
.scp-about p,
.scp-card p,
.scp-card li,
.mr-wysiwyg-inline p,
.mr-wysiwyg-inline li {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--color-text);
}

/* Gedämpfte / sekundäre Texte */
.elementor-widget .mr-muted,
.description,
.mr-faqk-a,
.scp-about-lead,
.mr-me-section p,
.scp-contact-left p {
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  color: var(--color-muted);
  line-height: 1.72;
}

/* ============================================================
   4. LABELS, MICRO-TEXT, BADGES
   ============================================================ */
.scp-contact-micro,
.scp-facts-title,
.mr-me-faq-question,
.mr-hon-card-title,
.mr-faqk-sub,
.scp-breadcrumbs,
.mr-mag-ed-field label,
.mr-admin-tabs .mr-tab-btn,
.mr-hon-table thead th {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   5. KARTEN & WIDGET-ÜBERSCHRIFTEN
   (Ersetzen inkonsistente Einzeldefinitionen)
   ============================================================ */

/* Karten-Titel in Theme-Widgets */
.scp-card-title,
.mr-faqk-q {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Widget-Sektionsüberschriften (H2-Karten in Seiten-Widgets) */
.mr-faqk-head h2,
.scp-about-copy h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* Honorar-Karten: Farbe pro Karte via Backend (--mr-hlev-title-color) */
.mr-hlev2-card-title {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 500;
  color: var(--mr-hlev-title-color, var(--color-text));
  letter-spacing: 0.02em;
}

/* ============================================================
   6. TABELLEN
   ============================================================ */
table:not(.scp-facts-table):not(.mr-hon-table) {
  font-family: var(--font-sans);
  font-size: var(--t-sm);
}

.scp-facts-table th,
.scp-facts-table td {
  font-family: var(--font-sans);
  font-size: var(--t-sm);
}

/* ============================================================
   7. LISTEN
   ============================================================ */
.scp-list li,
.mr-me-faq-answer li,
.mr-me-faq-answer p {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.68;
  color: var(--color-text);
}

/* ============================================================
   8. ZITATE / BLOCKQUOTES
   ============================================================ */
blockquote,
.mr-me-quote,
.scp-about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--color-text);
}

/* ============================================================
   9. BUTTONS (Text-Konsistenz)
   ============================================================ */
.scp-btn-primary,
.scp-btn-secondary,
.scp-contact-card-btn,
.mr-hlev2-btn,
.mr-me-cta-btn,
.mr-faqk-btn {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   10. GLOSSAR / IMPRESSUM / DATENSCHUTZ (Legacy)
   ============================================================ */
.glossar-page p,
.glossar-page li,
.impressum-page p,
.impressum-page li,
.datenschutz-page p,
.datenschutz-page li {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.8;
  color: var(--color-text);
}

.glossar-page h2,
.impressum-page h2,
.datenschutz-page h2 {
  font-family: var(--font-sans);
  font-size: var(--h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.glossar-page h3,
.impressum-page h3,
.datenschutz-page h3 {
  font-family: var(--font-sans);
  font-size: var(--h4);
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================================
   11. MOBILE ÜBERSTEUERUNGEN
   ============================================================ */
@media (max-width: 768px) {

  body {
    font-size: calc(var(--t-base) * 1.04); /* ~14.9px – besser lesbar auf kleinen Screens */
    line-height: 1.72;
  }

  .entry-content h2,
  .wp-block-heading:is(h2) {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    letter-spacing: 0.01em;
  }

  .entry-content h3,
  .wp-block-heading:is(h3) {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  /* Karten-Text auf Mobile: etwas größer für Lesekomfort */
  .elementor-widget p,
  .scp-card p,
  .mr-wysiwyg-inline p,
  .container p {
    font-size: 0.92rem;
    line-height: 1.72;
  }

  /* Labels / Meta auf Mobile: nicht kleiner als 11px */
  .scp-contact-micro,
  .scp-facts-title,
  .mr-faqk-sub,
  .scp-breadcrumbs {
    font-size: max(0.68rem, 11px);
  }

  /* Buttons auf Mobile: etwas größer für Touch */
  .scp-btn-primary,
  .scp-btn-secondary,
  .scp-contact-card-btn,
  .mr-hlev2-btn {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {

  body {
    font-size: 0.94rem; /* ~15px auf sehr kleinen Phones */
  }

  .elementor-widget p,
  .scp-card p,
  .container p {
    font-size: 0.94rem;
  }
}

/* ============================================================
   12. AUSDRÜCKLICH AUSGENOMMENE BEREICHE
   (Heroes & große Display-Sektionen – werden NICHT überschrieben)
   ============================================================ */

/*
  Folgende Klassen werden bewusst NICHT durch dieses Stylesheet beeinflusst,
  da sie eigene Hero/Display-Typografie haben:

  .scp-h1              → Setcard-Name (Cormorant Garamond, sehr groß)
  .mr-me-hero h1       → Magazin-Artikel Hero
  .mr-faqk-hero-copy   → FAQ Hero-Bereich
  .scp-intro           → Kursiver Setcard-Einleitungssatz (Cormorant)
  .mr-hlev2-card-title → Honorar-Level-Überschriften (bewusst uppercase serif)
  .alice-faq-card      → Älterer FAQ-Block (eigenes Design)
  .mr-regional-*       → Regional-Widgets (eigenes Design)

  Für diese Bereiche gelten die jeweiligen Stylesheet-Definitionen weiterhin.
*/
