/* vr-seite.css – gemeinsames Layout für die Seiten im Ordner VR
   Ersetzt das frühere Tabellen-Layout. Pfade beziehen sich auf diese Datei (css/). */

:root {
  --text: #000;
  --grau: #555;
  --rot: #b00000;
  --gruen: #006000;
  --lila: #7a0099;
  --gold: #6b5000;
  --link: #0b5e0b;
  --link-besucht: #4a2db8;
  --link-aktiv: #b34700;
  --hintergrund: #ccc;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 1rem 0.75rem 2rem;
  background: var(--hintergrund) url("../grau-w.jpg");
  color: var(--text);
  font: 1.125rem/1.6 Georgia, "Times New Roman", Times, serif;
}

a { color: var(--link); }
a:visited { color: var(--link-besucht); }
a:hover, a:focus-visible { color: var(--link-aktiv); }
a:focus-visible { outline: 3px solid var(--link-aktiv); outline-offset: 2px; }

img { max-width: 100%; height: auto; }
figure { margin: 1.25rem auto; text-align: center; }
figure img { display: inline-block; vertical-align: middle; }
figcaption { color: var(--grau); font-size: 0.95rem; margin-top: 0.4rem; }

.kopf { text-align: center; margin: 0 auto 1rem; }
.kopf img { display: block; margin: 0 auto 0.75rem; }

h1 { font-size: 1.6rem; font-weight: normal; margin: 0.5rem 0 1rem; text-align: center; }
h2 { font-size: 1.5rem; text-align: center; margin: 2rem 0 1rem; }
h3 { font-size: 1.15rem; text-align: center; margin: 1.5rem 0 0.75rem; }
h2 .unter { display: block; font-size: 1.1rem; margin-top: 0.25rem; }

.seite {
  text-align: center;          /* wie im Original: Text mittig */
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--hintergrund) url("../grau-w_s.jpg");
  border: 3px solid #000;
}

.trenner {
  height: 7px;
  border: 0;
  margin: 1.75rem 0;
  background: url("../grau-w.jpg") center / 100% 100% no-repeat;
}

.mitte { text-align: center; }
.klein { font-size: 0.95rem; color: var(--grau); }
.rot { color: var(--rot); }
.gruen { color: var(--gruen); font-weight: bold; }
.lila { color: var(--lila); }
.gelb { color: var(--gold); font-weight: bold; }
.hinweis { color: var(--grau); text-align: center; font-size: 0.95rem; margin: 0.5rem 0 1.25rem; }

/* Bühne für den Wasser-Effekt */
.buehne {
  max-width: 34rem;
  margin: 1rem auto 0.25rem;
  padding: 10px;
  background: #000;
  border: 5px ridge #999;
  text-align: center;
}
.wasser { line-height: 0; }
.wasser img, .wasser canvas { display: inline-block; max-width: 100%; height: auto; }
.wasser-aktiv canvas { cursor: crosshair; touch-action: pan-y; }

/* 3D-Szene (js/szene3d.js) */
.szene-figur { max-width: 38rem; }
.szene-titel { font-size: 1.05rem; color: var(--text); margin: 0 0 0.5rem; }
.szene3d {
  position: relative;
  aspect-ratio: 5 / 3;
  width: 100%;
  background: #000 center / cover no-repeat;
  border: 5px ridge #999;
}
.szene3d canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.szene3d canvas:active { cursor: grabbing; }
.szene3d canvas:focus-visible { outline: 3px solid #ffb000; outline-offset: -3px; }
.szene-ersatz { display: none; position: absolute; inset: 0; margin: 0; padding: 1rem; color: #ddd; align-content: center; text-align: center; font-size: 0.95rem; }
.szene3d-fehler .szene-ersatz { display: grid; }
.szene3d-fehler canvas { display: none; }
.szene-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
.szene-knoepfe button { font: inherit; font-size: 0.95rem; padding: 0.35rem 0.8rem; min-height: 2.5rem; border: 2px solid #333; border-radius: 4px; background: #eee; color: #000; cursor: pointer; }
.szene-knoepfe button:hover { background: #fff; }
.szene-knoepfe button:focus-visible { outline: 3px solid var(--link-aktiv); outline-offset: 2px; }

/* Tabellen */
.tabellenrahmen { overflow-x: auto; margin: 1rem auto; }
table { border-collapse: collapse; }
.info { width: 100%; max-width: 100%; margin: 1rem auto; }
.info th, .info td { border: 1px solid #333; padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.info th { font-weight: normal; }
.merksatz { width: 100%; max-width: 32rem; margin: 0.75rem auto; }
.merksatz td { border: 1px solid #333; padding: 0.4rem 0.75rem; text-align: center; color: var(--grau); }
.raster { margin: 1rem auto; width: 100%; max-width: 25rem; }
.raster td { border: 1px solid #333; padding: 0.35rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Kasten "Evolution" */
.kasten {
  margin: 1.5rem auto;
  padding: 0.5rem 1.25rem 1rem;
  max-width: 36rem;
  border: 3px solid #000;
  background: var(--hintergrund) url("../grau-w.jpg");
}
.kasten h2 { margin-top: 1rem; }
.kasten h2 + p { margin-top: 0; }

/* Fußnavigation */
.nav {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: var(--hintergrund);
  border: 1px solid #000;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav img { display: block; max-height: 66px; width: auto; }

.weiter { text-align: center; }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; padding: 0.5rem 0.25rem 1.5rem; }
  .seite { padding: 0.9rem 0.8rem 0.8rem; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---- Ergänzungen für wirklich.htm, inform.htm u. a. ---- */
.titel-gross { font-size: clamp(1.6rem, 5vw, 2.6rem); color: #c44f00; margin: 0.5rem 0 0.25rem; }
.untertitel { color: #8a5320; font-size: 1.15rem; }
.buehne.breit { max-width: 40rem; }
.kasten-text { border: 5px solid #000; padding: 0.75rem 1rem; font-size: 1.15rem; }
.links-text { text-align: left; }
.links-text h2, .links-text h3 { text-align: left; }
.links-text ul { padding-left: 1.5rem; }
.orange { color: #c44f00; }
.rotbraun { color: #a02800; }
.blau { color: #1f497d; }
.gross { font-size: 1.25rem; }
.hervor { color: #a65200; font-size: 1.1em; }
.person-a { color: #c00; font-weight: bold; }
.person-b { color: #1f4fd0; font-weight: bold; }
.vergleich { width: 100%; }
.vergleich th, .vergleich td { border: 1px solid #333; padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; width: 50%; }
.vergleich thead th { background: rgba(0,0,0,0.08); font-weight: bold; }
.formel { font-family: "Cambria Math", "STIX Two Math", Georgia, serif; white-space: nowrap; }

/* inform/inform.htm */
body.inform { background: #f4f4f4 url("../inform/Zahlen.jpg"); }
.seite.textur { border: 16px solid #cc0; border-image: url("../inform/Q_textur.gif") 16 round; background: #fff; }
.textur-balken { height: 16px; border: 0; margin: 2rem -1.25rem; background: url("../inform/Q_textur.gif") repeat-x; }
.schwarz { color: #000; }
.riesig { font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1.1; margin: 0.25rem 0; }
.formelzeile { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 0.6rem; }
.formelzeile .riesig { margin: 0; }
.gruen-text { color: #008000; }
.mittig-liste { list-style: none; padding: 0; }
.inline-bild { vertical-align: middle; }
.definition { font-weight: bold; color: var(--lila); }
@media (max-width: 40rem) {
  .seite.textur { border-width: 10px; }
  .textur-balken { margin-left: -0.8rem; margin-right: -0.8rem; }
}

/* mind/leben1.htm – Der kreative Kosmos */
body.kosmos { background: #9cc url("../../mind/1aqua.jpg"); }
.gruen-dunkel { color: #006633; }
.kosmos-text { color: #0b3d22; }
.kosmos-text h2 { color: #006633; font-size: 1.6rem; margin-top: 2.5rem; }
.kosmos-text h3 { color: #006600; }
.kasten.hell { background: #fff; }
.vorkenntnisse { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; }
.vorkenntnisse a { display: inline-flex; align-items: center; gap: 0.5rem; }
.trennsymbol { margin: 2rem 0 0; }
.zitat { margin: 1.25rem auto; max-width: 32rem; font-style: italic; font-size: 1.15rem; }
.zitate li { margin: 0.4rem 0; font-weight: bold; color: #006633; }
.gestaucht { width: 400px; height: 86px; max-width: 100%; object-fit: fill; }
.ebenen th { width: 4rem; white-space: nowrap; }
.muenz-tafel { display: grid; grid-template-columns: 1fr 2.5fr 1fr; gap: 0.75rem; align-items: center; background: #000; color: #eee; padding: 0.75rem; margin: 1.25rem 0 0.25rem; border-radius: 4px; }
.muenz-tafel h3 { color: #9f9; margin-top: 0; }
.muenz-tafel img { max-width: 100%; height: auto; background: #fff; }
.muenz-rand { font-size: 0.95rem; }
@media (max-width: 40rem) { .muenz-tafel { grid-template-columns: 1fr; } }

/* Puzzle (js/puzzle.js) */
.puzzle { max-width: 300px; margin: 0.5rem auto 0; padding: 10px; border: 5px ridge #999; background: #000 center / cover; }
.puzzle img { display: block; margin: 0 auto; }
.puzzle-brett { display: grid; aspect-ratio: 250 / 248; width: 100%; gap: 1px; background: #000; }
.puzzle-brett.fertig { gap: 0; }
.puzzle-teil { appearance: none; border: 0; padding: 0; margin: 0; cursor: pointer; background-repeat: no-repeat; outline-offset: -3px; touch-action: manipulation; }
.puzzle-teil:hover { filter: brightness(1.15); }
.puzzle-teil.gewaehlt { outline: 3px solid #ffd400; filter: brightness(1.25); }
.puzzle-teil:focus-visible { outline: 3px solid #ffb000; }
.puzzle-info { color: #fff; font-size: 0.9rem; margin: 0.5rem 0 0.25rem; text-shadow: 0 1px 2px #000; }
.puzzle-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.puzzle-knoepfe button { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.6rem; min-height: 2.25rem; border: 2px solid #333; border-radius: 4px; background: #eee; cursor: pointer; }
.puzzle-knoepfe button[hidden] { display: none; }
