/* Frühes Theme-Setzen + Schriften des aktiven Modus laden (ohne Cookies). */
(function () {
  'use strict';
  var key = 'mm-wirkung';
  var valid = ['monolith', 'editorial'];
  var v = null;
  try { v = localStorage.getItem(key); } catch (_) {}
  if (valid.indexOf(v) === -1) v = 'monolith';
  document.documentElement.setAttribute('data-theme', v);

  [
    './assets/fonts/fonts-shared.css',
    './assets/fonts/fonts-' + v + '.css'
  ].forEach(function (href) {
    var link = document.createElement('link');
    link.rel = 'stylesheet';
    link.href = href;
    document.head.appendChild(link);
  });
})();
