/* ══════════════════════════════════════════
   Gemeinsame Stile für alle Seiten
   Wird nach dem seiteneigenen <style> geladen und hat deshalb Vorrang.
   ══════════════════════════════════════════ */

/* ── Lesetext ──
   Längere Texte in Literata, gut lesbar am Bildschirm.
   Überschriften, Navigation, Zitate und Beschriftungen bleiben in Cormorant Garamond. */
.intro p,
.block p,
.definition,
.lede,
main p,
#text-block > p:not(.coda):not(.hinweis),
.group li,
.quellen li {
  font-family: 'Literata', Georgia, serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* Einleitungen etwas größer als der übrige Text */
.intro p { font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem); }

/* Quellenangaben kleiner */
.quellen li { font-size: 0.85rem; line-height: 1.7; }

/* Hervorhebungen: Literata hat 300 und 400, also 400 für fett */
.intro p strong, .block p strong, .definition strong, .lede strong,
main p strong, #text-block > p strong, .group li strong { font-weight: 400; }

/* ── Kupfer ──
   Ein einziger Kupferton für Text (Seitennamen, Signatur, Hinweise). */
:root { --kupfer: #b0603a; }

/* ── Kleine Beschriftungen ──
   Mindestgröße und genug Kontrast, damit sie auf Schwarz lesbar bleiben. */
#page-name {
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  color: var(--kupfer);
}

/* Bildunterschriften zu den Animationen (unten links) */
#lorenz-note, #benard-note, #turing-note, #ulam-note, #gol-note, #chladni-note, #perc-note {
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  color: rgba(232,214,186,0.68);
}

/* Kleine Rubriken und Kopfzeilen */
.site-name, .label, .section-label, .roman, .nav-card-num, .field-label, .quellen h3 {
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  color: rgba(232,214,186,0.55);
}

/* Nebentexte, Quellen, Zitatangaben */
.nav-card-sub, .thinkers, .mandelbrot-caption, .essay-title .subtitle, .hinweis, .note, blockquote cite {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  color: rgba(232,214,186,0.6);
}
.quellen li, .quellen li a { color: rgba(232,214,186,0.6); }
#btn-reset { color: rgba(232,214,186,0.55); }
#hint-begriffe { font-size: clamp(0.72rem, 1vw, 0.85rem); color: var(--kupfer); }

/* ── Links im Fließtext ── */
.block p a {
  color: var(--kupfer);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(176,96,58,0.45);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.block p a:hover { color: #d08a60; border-bottom-color: #d08a60; }

/* ── Fußzeile ──
   Leise Querverbindung zu den fünf Bereichen, auf allen Leseseiten. */
.site-footer {
  position: relative; z-index: 10;
  max-width: 900px; margin: 0 auto;
  padding: clamp(2rem,5vh,3.5rem) clamp(24px,5vw,60px) clamp(2.5rem,6vh,4rem);
  text-align: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  text-transform: lowercase;
}
.site-footer::before {
  content: ''; display: block;
  width: 3rem; margin: 0 auto clamp(1.5rem,3vh,2.2rem);
  border-top: 0.5px solid rgba(232,224,208,0.22);
}
.site-footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5em 1.7em;
}
.site-footer a {
  color: rgba(232,214,186,0.62); text-decoration: none;
  font-size: clamp(0.88rem,1.2vw,1.02rem); letter-spacing: 0.22em;
  border: none;
  transition: color 0.3s ease;
}
.site-footer a:hover, .site-footer a:focus-visible { color: rgba(240,224,196,1); }
.site-footer a[aria-current="page"] { color: var(--kupfer); }
.site-footer .meta {
  margin-top: 1.1em;
  font-size: clamp(0.72rem,1vw,0.85rem); letter-spacing: 0.18em;
  color: rgba(232,214,186,0.35);
}
.site-footer .meta a { font-size: inherit; letter-spacing: inherit; color: rgba(232,214,186,0.45); }
#panel .site-footer { padding-bottom: 0; }

/* ── Seitenname auf schmalen Bildschirmen ──
   Der fixierte Name oben rechts liegt sonst über dem scrollenden Text.
   Er bekommt dieselbe dunkle Unterlage wie der Zurück-Link. */
@media (max-width: 760px) {
  #page-name {
    padding: 0.35em 0.75em;
    top: clamp(8px,1.6vh,18px);
    right: clamp(8px,2vw,30px);
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 0 8px #000;
    line-height: 1.9;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }
  /* dunkles Band hinter beiden Beschriftungen, nach unten weich auslaufend */
  html:has(#page-name)::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 19;
  }
}

/* ── Glossar-Verweise im Fließtext ──
   Leiser als normale Links: Textfarbe bleibt, nur eine gepunktete Kupferlinie. */
a.glossar, .block p a.glossar, section p a.glossar, p a.glossar {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(176,96,58,0.75);
}
a.glossar:hover, a.glossar:focus-visible,
.block p a.glossar:hover, section p a.glossar:hover {
  color: #d08a60;
  border-bottom-style: solid;
}

/* Hinweis auf planet.emergenz.art (Punkt-Rubrik), ergänzt 2026-11-21 */
.planet-hinweis { font-family: 'Cormorant Garamond', serif; font-size: clamp(0.85rem, 1.2vw, 0.98rem); letter-spacing: 0.04em; color: rgba(232,224,208,0.5); margin-top: 0.9em; }
.planet-hinweis p { font-size: inherit !important; color: inherit !important; line-height: 1.8; }
.planet-hinweis a { color: #c8784f; text-decoration: none; border-bottom: 1px solid rgba(200,120,79,0.4); }
.planet-hinweis a:hover { color: #e0956b; border-bottom-color: currentColor; }
