/* mncrft.app – Website
   Gestaltung: dunkles Glas über einer live gerenderten Voxel-Welt.
   Alle Textflächen sind ausreichend kontrastreich (WCAG AA). */

:root {
  --text: #f2f7fc;
  --text-leise: #d8e5f2;
  --muted: #c8d6e6;
  --akzent: #7ee6a6;
  --akzent-tief: #2f9a63;
  --akzent-2: #79c6ff;
  --warn: #ffc46b;

  --glas: rgba(9, 15, 23, 0.77);
  --glas-hell: rgba(11, 18, 28, 0.70);
  --glas-innen: rgba(255, 255, 255, 0.045);
  --rand: rgba(255, 255, 255, 0.13);
  --rand-stark: rgba(255, 255, 255, 0.22);

  --radius: 18px;
  --radius-klein: 12px;
  --schatten: 0 18px 50px -18px rgba(0, 0, 0, 0.75), 0 2px 0 0 rgba(255, 255, 255, 0.05) inset;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: #060b12;
  line-height: 1.62;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------- Hintergrundwelt */
#welt {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
  background: #0b1220;
}
body.ist-bereit #welt { opacity: 1; }

.welt-schleier {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(4, 8, 14, 0.22), transparent 62%),
    radial-gradient(90% 70% at 50% 100%, rgba(4, 8, 14, 0.3), transparent 64%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.2) 0%, rgba(4, 8, 14, 0.06) 45%, rgba(4, 8, 14, 0.26) 100%);
}

/* Fallback, falls WebGL nicht verfügbar ist */
.welt-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background:
    radial-gradient(120% 100% at 50% 0%, #2b6a4a 0%, #123 55%, #060b12 100%),
    repeating-linear-gradient(45deg, rgba(126, 230, 166, 0.05) 0 12px, transparent 12px 24px);
}
body.ohne-webgl .welt-fallback { opacity: 1; }

/* --------------------------------------------------------------- Grundgerüst */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--akzent);
  color: #06231a;
  font-weight: 650;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

main {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.abschnitt {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 26px;
}

/* ------------------------------------------------------------------- Header */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  background: rgba(7, 12, 19, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kopf-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}
.marke-würfel { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)); }
.marke-text {
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.marke-punkt { color: var(--akzent); }
.marke-text.klein { font-size: 16px; }

.nav {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--text-leise);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav a.ist-aktiv { background: rgba(126, 230, 166, 0.14); color: var(--akzent); }

.kopf-aktionen {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--rand-stark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(1px); }

.btn-primär, .panel a.btn-primär {
  background: linear-gradient(180deg, #86ecae, #56c98b);
  border-color: transparent;
  color: #052414;
  font-weight: 700;
  box-shadow: 0 10px 26px -12px rgba(86, 201, 139, 0.9);
}
.btn-primär:hover { background: linear-gradient(180deg, #98f4bd, #63d99a); }

.btn-ghost { background: rgba(255, 255, 255, 0.04); }

.btn-klein { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }

.btn-pause {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--rand);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-leise);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.btn-pause:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-pause-icon {
  position: relative;
  width: 11px; height: 11px;
  flex: 0 0 auto;
  transition: all 0.16s ease;
}
.btn-pause-icon::before,
.btn-pause-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3.5px;
  height: 11px;
  border-radius: 1.5px;
  background: currentColor;
  transition: all 0.16s ease;
}
.btn-pause-icon::before { left: 0; }
.btn-pause-icon::after { right: 0; }
.btn-pause[aria-pressed="true"] .btn-pause-icon::before,
.btn-pause[aria-pressed="true"] .btn-pause-icon::after { content: none; }
.btn-pause[aria-pressed="true"] .btn-pause-icon {
  width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.btn-pause[aria-pressed="true"] { color: var(--akzent); border-color: rgba(126, 230, 166, 0.35); }

/* ---------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 20px 30px;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-panel {
  max-width: 800px;
  padding: 42px 44px 38px;
  border-radius: 24px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
}

.hero-titel {
  margin: 0 0 16px;
  font-size: clamp(46px, 9vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}
.hero-titel span { color: var(--akzent); }

.hero-text {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-leise);
}

.adresse {
  padding: 16px 18px;
  border-radius: var(--radius-klein);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
}
.adresse-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.adresse-wert {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.adresse-wert code {
  font-family: var(--mono);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.adresse-hinweis { margin-top: 4px; font-size: 13px; color: var(--muted); }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--rand);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-leise);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-copy svg { width: 14px; height: 14px; }
.btn-copy:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-copy.ist-kopiert { border-color: rgba(126, 230, 166, 0.5); color: var(--akzent); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 13px;
  color: var(--text-leise);
}
.chip-punkt {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--akzent);
  box-shadow: 0 0 8px rgba(126, 230, 166, 0.9);
}

.hero-aktionen { display: flex; gap: 12px; flex-wrap: wrap; }

.scroll-hinweis {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px auto 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-strich {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, var(--akzent));
}

/* --------------------------------------------------------------------- Panels */
.panel {
  position: relative;
  padding: 34px 38px;
  border-radius: var(--radius);
  background: var(--glas);
  border: 1px solid var(--rand);
  box-shadow: var(--schatten);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
}
.panel-hell { background: var(--glas-hell); }
.panel-akzent {
  border-color: rgba(126, 230, 166, 0.28);
  background: linear-gradient(180deg, rgba(20, 44, 34, 0.78), rgba(9, 15, 23, 0.82));
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 33px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: #fff;
}
.panel h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #fff;
}
.panel h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
  color: #fff;
}
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }

.lead {
  font-size: 17px;
  color: var(--text-leise);
  max-width: 74ch;
}
.klein { font-size: 14px; color: var(--muted); }
.gedämpft { color: var(--muted); }

.panel a:not(.btn) {
  color: var(--akzent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(121, 198, 255, 0.3);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.panel a:not(.btn):hover { color: #a9dcff; border-color: rgba(169, 220, 255, 0.7); }
.panel a.btn { border-bottom: 0; }

code, .code-inline {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dceaf7;
}

/* ---------------------------------------------------------------- Eckdaten */
.raster-eckdaten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.eckdatum {
  padding: 15px 16px;
  border-radius: var(--radius-klein);
  background: var(--glas-innen);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.eckdatum-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.eckdatum-wert { font-size: 15.5px; color: var(--text); font-weight: 550; }

/* ----------------------------------------------------------------- Schritte */
.schritte {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.schritt {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-klein);
  background: var(--glas-innen);
  border: 1px solid rgba(255, 255, 255, 0.075);
}
.schritt-nummer {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(126, 230, 166, 0.9), rgba(47, 154, 99, 0.9));
  color: #04220f;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 16px -8px rgba(126, 230, 166, 0.8);
}
.schritt-inhalt { flex: 1 1 auto; min-width: 0; }
.schritt-inhalt p { margin: 0 0 8px; color: var(--text-leise); }
.schritt-inhalt p:last-child { margin-bottom: 0; }

.pfade {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14.5px;
  color: var(--text-leise);
}

.schritte-kompakt .schritt { padding: 16px 18px; }

/* -------------------------------------------------------------- Varianten */
.variante { margin-top: 26px; }
.variante-titel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 4px !important;
}
.variante-tag {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(126, 230, 166, 0.18);
  border: 1px solid rgba(126, 230, 166, 0.45);
  color: var(--akzent);
  font-size: 14px;
  font-weight: 800;
}
.variante-tag-b { background: rgba(121, 198, 255, 0.16); border-color: rgba(121, 198, 255, 0.4); color: var(--akzent-2); }
.variante-note {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------------------------------------------------------------- Hinweise */
.hinweis {
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: var(--radius-klein);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--akzent-2);
  color: var(--text-leise);
  font-size: 15px;
}
.hinweis-stark {
  margin-top: 26px;
  border-left-color: var(--warn);
  background: rgba(255, 196, 107, 0.075);
}
.hinweis-titel { margin: 0 0 8px !important; font-size: 17px !important; color: #fff; }

.platzhalter {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 7px;
  border: 1px dashed rgba(255, 196, 107, 0.75);
  background: rgba(255, 196, 107, 0.12);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.88em;
}

/* ------------------------------------------------------------------ Tabelle */
.tabelle-wrap {
  margin: 18px 0 4px;
  overflow-x: auto;
  border-radius: var(--radius-klein);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.22);
}
.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}
.tabelle th, .tabelle td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.tabelle thead th {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.035);
}
.tabelle tbody th { font-weight: 600; color: #fff; }
.tabelle tbody tr:last-child th,
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: rgba(255, 255, 255, 0.035); }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-ja { background: rgba(126, 230, 166, 0.16); color: var(--akzent); border: 1px solid rgba(126, 230, 166, 0.4); }
.badge-optional { background: rgba(255, 255, 255, 0.08); color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.14); }

.dateiliste {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ------------------------------------------------------------- Fehlerkarten */
.fehlerliste {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.fehler {
  padding: 16px 18px;
  border-radius: var(--radius-klein);
  background: var(--glas-innen);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-left: 3px solid rgba(255, 196, 107, 0.65);
}
.fehler-titel {
  margin: 0 0 6px !important;
  font-size: 16px !important;
  font-weight: 650;
  color: #fff;
}
.fehler p { margin: 0; color: var(--text-leise); font-size: 15px; }

/* ------------------------------------------------------------------- Regeln */
.regeln {
  margin: 16px 0 0;
  padding: 0 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-leise);
  font-size: 16px;
}
.regeln li::marker { color: var(--akzent); }

.kurzliste {
  margin: 16px 0 0;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16.5px;
  color: var(--text-leise);
}
.kurzliste li::marker { color: var(--akzent); font-weight: 800; }

/* -------------------------------------------------------------------- Fuss */
.fuss {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  padding: 30px 20px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fuss-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.fuss-text { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 44ch; }
.fuss-meta { font-size: 13.5px; color: var(--muted); text-align: right; }
.fuss-meta p { margin: 0 0 4px; }

/* ------------------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: 11px;
  background: rgba(10, 18, 26, 0.94);
  border: 1px solid rgba(126, 230, 166, 0.45);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.ist-da { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ Reveal-Effekt */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.reveal.ist-sichtbar { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Responsiv */
@media (max-height: 720px) {
  .hero { min-height: auto; padding-top: 26px; padding-bottom: 18px; }
  .scroll-hinweis { margin-top: 16px; }
}

@media (max-width: 900px) {
  .kopf-inner { gap: 12px; padding: 9px 16px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 9px; font-size: 13.5px; }
  .hero { padding: 34px 16px 22px; min-height: 70vh; }
  .hero-panel { padding: 30px 26px 28px; }
  .panel { padding: 26px 24px; }
  .abschnitt { padding: 0 16px 22px; }
}

@media (max-width: 640px) {
  .kopf-inner { flex-wrap: wrap; gap: 8px; padding: 8px 14px 9px; }
  .nav { order: 3; width: 100%; display: flex; gap: 4px; padding-bottom: 1px;
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%); }
  .nav a { padding: 5px 9px; font-size: 13px; }
  .kopf-aktionen { margin-left: auto; }
  .btn-pause-text { display: none; }
  .hero-titel { font-size: clamp(38px, 13vw, 60px); }
  .hero-panel { padding: 24px 20px 24px; border-radius: 18px; }
  .panel { padding: 22px 18px; border-radius: 14px; }
  .schritt { padding: 15px 15px; gap: 12px; }
  .schritt-nummer { width: 28px; height: 28px; font-size: 13px; }
  .fuss-meta { text-align: left; }
  .toast { bottom: 18px; }
  .raster-eckdaten { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------- Druck */
@media print {
  #welt, .welt-schleier, .welt-fallback, .kopf, .toast, .scroll-hinweis { display: none !important; }
  body { background: #fff; color: #111; }
  .panel { background: #fff; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; color: #111; }
  .panel h2, .panel h3, .panel h4, .tabelle tbody th, .fehler-titel { color: #111; }
  .kicker { color: #333; }
  .lead, .panel p, .schritt-inhalt p, .regeln, .kurzliste, .fehler p { color: #222; }
  code { background: #eee; color: #111; }
}

/* ---------------------------------------------------------------- Kontaktformular */
.kontakt-form { margin-top: 22px; display: grid; gap: 16px; }
.form-reihe { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-reihe { grid-template-columns: 1fr; } }
.form-feld { display: grid; gap: 6px; }
.form-feld > span { font-size: 13.5px; color: var(--text-leise); letter-spacing: 0.01em; }
.form-feld input,
.form-feld textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-klein);
  border: 1px solid var(--rand);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-feld input:focus,
.form-feld textarea:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px rgba(126, 230, 166, 0.18);
}
.form-feld input::placeholder, .form-feld textarea::placeholder { color: rgba(216, 229, 242, 0.45); }
.form-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-size: 14.5px; color: var(--text-leise); min-height: 1.4em; }
.form-status.ist-ok { color: var(--akzent); }
.form-status.ist-fehler { color: var(--warn); }
.kontakt-form.sendet .btn { opacity: 0.6; pointer-events: none; }

/* ---------------------------------------------------------------- Impressum */
.impressum-raster { display: grid; gap: 18px 28px; grid-template-columns: 1fr 1fr; margin: 6px 0 14px; }
@media (max-width: 640px) { .impressum-raster { grid-template-columns: 1fr; } }
.impressum-raster h3, #impressum h3 { font-size: 15px; margin: 14px 0 4px; color: var(--text-leise); }
.impressum-raster p { margin: 0; }
.fuss-meta a { color: var(--text-leise); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.fuss-meta a:hover { color: #fff; }


/* ---------------------------------------------------------------- Nur-Welt-Modus */
body.nur-welt .kopf,
body.nur-welt main,
body.nur-welt .fuss,
body.nur-welt .welt-schleier,
body.nur-welt .scroll-hinweis,
body.nur-welt .toast { display: none !important; }
body.nur-welt { overflow: hidden; }
body.nur-welt #welt { pointer-events: auto; cursor: pointer; }
.welt-hud {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border-radius: 14px;
  background: rgba(7, 12, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-leise);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.welt-hud[hidden] { display: none; }
body.nur-welt .welt-hud { opacity: 1; pointer-events: auto; }
body.nur-welt.hud-aus .welt-hud { opacity: 0; pointer-events: none; }
.welt-hud-zeit { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.welt-hud-hinweis { opacity: 0.75; }
@media (max-width: 640px) {
  .welt-hud { gap: 10px; font-size: 13px; padding: 8px 10px 8px 14px; width: calc(100% - 24px); justify-content: space-between; }
  .welt-hud-hinweis { display: none; }
}


/* ---------------------------------------------------------------- Ton-Knopf */
.btn-ton { display: inline-flex; align-items: center; gap: 7px; }
.ton-icon { width: 14px; height: 14px; display: inline-block; position: relative; }
.ton-icon::before { content: ""; position: absolute; left: 0; top: 4px; width: 5px; height: 6px; background: currentColor; border-radius: 1px; }
.ton-icon::after { content: ""; position: absolute; left: 3px; top: 1px; border: 6px solid transparent; border-right: 6px solid currentColor; border-left: 0; }
.btn-ton.ist-an .ton-icon { color: #7fd1ff; }
.btn-ton.ist-an .ton-icon::before { animation: ton-puls 1.6s ease-in-out infinite; }
.btn-ton.wartet .ton-label::after { content: " (tippen)"; opacity: 0.6; font-size: 0.85em; }
.btn-ton.ist-an .wartet::after { content: none; }
@keyframes ton-puls { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.welt-hud .btn-ton { padding-left: 10px; padding-right: 10px; }
