/* Mystery Globe: gemeinsames Aussehen aller Seiten */

@font-face {
  font-family: 'Geist';
  src: url('../vendor/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('../vendor/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --nacht: #0e0c16;
  --nacht-2: #161322;
  --flaeche: rgba(18, 15, 28, 0.9);
  --flaeche-hell: rgba(36, 31, 52, 0.92);
  --linie: rgba(233, 226, 208, 0.14);
  --linie-stark: rgba(233, 226, 208, 0.28);
  --text: #ebe4d3;
  --text-leise: #b1abbf;
  --bernstein: #e3a84e;
  --bernstein-hell: #f3c77e;
  --lila: #a98be8;
  --lila-hell: #c2abf5;
  --rot: #c8603f;
  --gruen: #7fb489;
  --papier: #efe3c6;
  --papier-tinte: #2b2117;
  --schatten: 0 18px 50px rgba(0, 0, 0, 0.55);
  --rund: 14px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bernstein-hell); }
a:hover { color: #fff; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--linie-stark);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.knopf:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--text-leise); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible, .rund:focus-visible { outline: 2px solid var(--bernstein); outline-offset: 2px; }
.knopf.haupt {
  background: var(--bernstein);
  border-color: var(--bernstein);
  color: #1c140a;
  font-weight: 600;
}
.knopf.haupt:hover { background: var(--bernstein-hell); border-color: var(--bernstein-hell); color: #1c140a; }
.knopf i { font-size: 1.15em; }

/* Größere Schrift, wenn man sie unter „Schrift“ gewählt hat */
html.schrift-gross, html.schrift-gross body { font-size: 18px; }
html.schrift-sehr-gross, html.schrift-sehr-gross body { font-size: 20px; }

/* Ein Vorlese-Knopf, während er gerade vorliest: zeigt ein Stopp-Zeichen und leuchtet sanft */
.liest { border-color: var(--bernstein) !important; color: var(--bernstein-hell) !important; animation: liest-puls 1.8s ease-in-out infinite; }
@keyframes liest-puls { 50% { box-shadow: 0 0 0 5px rgba(227, 168, 78, 0.22); } }

.rund {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--linie-stark);
  background: var(--flaeche);
  display: inline-grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.rund:hover { background: var(--flaeche-hell); color: #fff; }
.rund[aria-pressed='true'] { border-color: var(--bernstein); color: var(--bernstein-hell); }

.marke {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--lila-hell);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* MysteryGlobe in einem Wort: Mystery lila, Globe bernsteinfarben */
.marke span { color: var(--bernstein); }
.marke:hover { color: var(--lila-hell); filter: brightness(1.12); }

.ki-hinweis {
  font-size: 0.78rem;
  color: var(--text-leise);
}

/* Globus */
#globus {
  position: fixed;
  inset: 0;
}
.maplibregl-ctrl-attrib {
  background: rgba(14, 12, 22, 0.7) !important;
  color: var(--text-leise) !important;
}
.maplibregl-ctrl-attrib a { color: var(--text-leise) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

/* Sichtbar nur für Vorleseprogramme */
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
