/* Sex'n'Gears – Schrift und Lesetypografie (plg_system_sngoberflaeche)

   Zwei Schriften, klare Rollen:
   - Vollkorn (Friedrich Althausen, SIL OFL) für alles, was man LIEST: Fließtext, Wiki, Blog, Metazeilen.
     Vom eigenen Server; ersetzt Trebuchet MS (fehlt auf Android → jedes Gerät sah anders aus)
     und den System-Font-Stapel des Wikis.
   - Montserrat (wie bisher) für alles, was man SCANNT: Überschriften, Navigation, Knöpfe, Beschriftungen.

   :root vor den Selektoren hebt die Spezifität über das Theme-CSS, das nach dieser Datei geladen wird. */

@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/vollkorn-regular.woff2) format('woff2'); }
@font-face { font-family: 'Vollkorn'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/vollkorn-italic.woff2) format('woff2'); }
@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/vollkorn-semibold.woff2) format('woff2'); }
@font-face { font-family: 'Vollkorn'; font-style: italic; font-weight: 500 800; font-display: swap; src: url(fonts/vollkorn-semibolditalic.woff2) format('woff2'); }

:root {
    --sng-lesen: 'Vollkorn', Georgia, 'Times New Roman', serif;
    --sng-scannen: Montserrat, 'Trebuchet MS', sans-serif;
}

/* ---------- Grundschrift ---------- */
html:root,
:root .uk-font-default,
:root .uk-text-meta,
:root .uk-article-meta,
:root .uk-search-medium .uk-search-input {
    font-family: var(--sng-lesen);
}

/* Fließtext etwas größer und luftiger – nur, wo nichts eine eigene Größe setzt.
   (Die Wurzelgröße bleibt 15 px, weil das Theme über 1.000 Maße in rem rechnet.) */
:root body {
    font-size: 17px;
    line-height: 1.65;
}
@media (max-width: 639px) {
    :root body { font-size: 16.5px; }
}
:root #tm-main :is(p, li, dd, blockquote) { font-variant-numeric: oldstyle-nums proportional-nums; }
:root #tm-main :is(p, li) :is(strong, b) { font-weight: 600; }

/* Überschriften ohne eigene Schriftklasse fielen auf Trebuchet MS zurück */
:root :is(h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6):not([class*="uk-font-"]) {
    font-family: var(--sng-scannen);
}

/* Lange Lesetexte: angenehme Zeilenlänge */
:root .uk-article > :is(p, ul, ol, blockquote) { max-width: 70ch; }

/* ---------- Martyria-Wiki: Eintrag ---------- */
:root .martyria-wiki-card {
    --wiki-font: var(--sng-lesen);
    font-size: 17px;
}
:root :is(.martyria-wiki-title, .martyria-wiki-section-title) {
    font-family: var(--sng-lesen);
    letter-spacing: .01em;
}
:root .martyria-wiki-section-content {
    font-size: 17px;
    line-height: 1.7;
    hyphens: auto;
    -webkit-hyphens: auto;
}
@media (max-width: 639px) {
    /* Blocksatz erzeugt auf schmalen Bildschirmen Löcher im Text */
    :root .martyria-wiki-section-content { text-align: left; font-size: 16.5px; }
}
/* Infobox: Werte lesen, Bezeichnungen scannen */
:root .martyria-infobox-label {
    font-family: var(--sng-scannen);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
:root .martyria-infobox-value { font-size: 15.5px; }

/* ---------- Martyria-Wiki: Übersicht/Karten ---------- */
:root .martyria-wiki-dashboard { font-family: var(--sng-lesen); }
:root .martyria-wiki-dashboard :is(input, select, button) { font-family: var(--sng-scannen); }
:root :is(.martyria-infobox-header, .martyria-infobox-section-header) { font-family: var(--sng-scannen); letter-spacing: .05em; }

/* Überschriften mit YOOtheme-„Standardschrift“ (uk-font-default) bleiben serifenlos wie alle Überschriften –
   „Standard“ heißt hier nur: nicht die Akzentschrift. */
:root :is(h1, h2, h3, h4, h5, h6, [class*="uk-h"], [class*="uk-heading"]).uk-font-default {
    font-family: var(--sng-scannen);
}

/* Video-Hero der Startseite bleibt exakt wie gestaltet (Simon): dort gilt die alte Grundschrift weiter */
:root .uk-section:has(#hero-txt) {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
:root .uk-section:has(#hero-txt) :is(p, li) { font-variant-numeric: normal; }
:root .uk-section:has(#hero-txt) :is(p, li) :is(strong, b) { font-weight: revert; }
