/* Aussehen der festen Textseiten der Website (Steckbriefe, Übersichten, Rechtliches).
   Wird von tools/website-bauen.mts als /seiten.css in den Ordner website/ kopiert.
   Bewusst nur ein dunkles Aussehen - passend zum 3D-Modell. Keine fremden Schriften, keine fremden Dateien. */

:root {
  color-scheme: dark;
  --grund: #05070f;
  --flaeche: #0d1122;
  --flaeche-2: #141a31;
  --rand: rgba(255, 255, 255, 0.12);
  --text: #eef1f8;
  --text-leise: #a9b2c9;
  --gold: #ffcf5a;
  --blau: #8fc4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(64, 86, 160, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(120, 70, 150, 0.12), transparent 60%),
    var(--grund);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
}

a {
  color: var(--blau);
  text-underline-offset: 2px;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-inline: 18px;
}

/* --- Kopfzeile --- */

.oben {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 15, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}

.oben .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding-block: 8px;
}

.marke-name {
  flex: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.oben nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.oben nav::-webkit-scrollbar {
  display: none;
}

.oben nav a {
  flex: none;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-leise);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.oben nav a:hover,
.oben nav a[aria-current] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Knöpfe --- */

.knopf {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gold);
}

.knopf:hover {
  background: #ffe08c;
  color: #1a1408;
}

.knopf--klein {
  flex: none;
  padding: 6px 13px;
  font-size: 0.85rem;
}

.knopf--leer {
  background: transparent;
  color: var(--text);
  border-color: var(--rand);
  font-weight: 500;
}

.knopf--leer:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* --- Inhalt --- */

.seite {
  padding-block: 22px 60px;
}

.krumen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 0.8rem;
  color: var(--text-leise);
}

.krumen a {
  color: var(--text-leise);
}

h1 {
  margin: 4px 0 14px;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 {
  margin: 40px 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
  text-wrap: balance;
}

h2 a {
  color: inherit;
}

h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 8px;
  font-size: 1.08rem;
}

p,
ul,
ol,
dl {
  max-width: 72ch;
}

.vorzeile {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.einstieg {
  font-size: 1.12rem;
  color: #dfe5f5;
}

.klein {
  font-size: 0.86rem;
  color: var(--text-leise);
}

.kopf {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.kopf > div {
  min-width: 0;
}

.kopf:not(:has(figure)) {
  grid-template-columns: 1fr;
}

figure {
  margin: 0;
}

.kopf figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--rand);
  background: #000;
}

figcaption {
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-leise);
}

figcaption a {
  color: inherit;
}

.kugel {
  display: block;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--farbe) 70%, #fff), var(--farbe) 45%, color-mix(in srgb, var(--farbe) 35%, #000) 100%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--farbe) 35%, transparent);
}

.kugel--gross {
  width: min(240px, 60vw);
  height: auto;
  aspect-ratio: 1;
  margin: 18px auto;
}

/* --- Steckbrief --- */

.fakten {
  display: grid;
  grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 4px 16px;
  border-radius: 12px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
}

.fakten dt,
.fakten dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fakten dt {
  padding-right: 18px;
  color: var(--text-leise);
  font-size: 0.9rem;
}

.fakten dd {
  font-variant-numeric: tabular-nums;
}

.fakten dt:nth-last-of-type(1),
.fakten dd:nth-last-of-type(1) {
  border-bottom: 0;
}

li {
  margin: 6px 0;
}

/* --- Kacheln --- */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.kachel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  color: var(--text);
  text-decoration: none;
}

.kachel:hover {
  border-color: var(--gold);
  background: var(--flaeche-2);
}

.kachel img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.kachel > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kachel small {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-leise);
}

.kachel .zeichen {
  flex: none;
  width: 56px;
  font-size: 2rem;
  text-align: center;
}

.kacheln--stern {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.kachel--stern {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

/* --- Sternkarte --- */

.sternkarte {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #101838, #060914 75%);
  border: 1px solid var(--rand);
}

.sternkarte line {
  stroke: rgba(143, 196, 255, 0.55);
  stroke-width: 1.2;
}

.sternkarte circle {
  fill: #fff7e0;
}

.sternkarte text {
  fill: #c9d3ea;
  font-size: 11px;
  font-family: inherit;
}

.kachel--stern .sternkarte text {
  display: none;
}

/* --- Listen aus Verweisen --- */

.linkliste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linkliste li {
  margin: 0;
}

.linkliste a,
.linkliste span {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--rand);
  background: var(--flaeche);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.linkliste a:hover {
  border-color: var(--gold);
}

/* --- Stationen einer Mission oder Tour --- */

.stationen {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--rand);
}

.stationen li {
  position: relative;
  margin: 0;
  padding: 0 0 18px 20px;
}

.stationen li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.stationen time {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stationen p {
  margin: 4px 0 0;
}

.stationen .ort {
  font-size: 0.86rem;
  color: var(--text-leise);
}

.stationen--tour {
  counter-reset: station;
}

.stationen--tour li {
  counter-increment: station;
}

.stationen--tour li > b::before {
  content: counter(station) '. ';
  color: var(--gold);
}

/* --- Aufbau --- */

.aufbau {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.aufbau svg {
  width: 100%;
}

.aufbau ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.punkt {
  display: inline-block;
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* --- Karte mit Orten --- */

.karte > div {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rand);
}

.karte img {
  display: block;
  width: 100%;
}

.karte span {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.7);
}

.marke-meer { background: #5fb4ff; }
.marke-krater { background: #ffd166; }
.marke-berg { background: #ff8a5c; }
.marke-region { background: #b9f18c; }
.marke-sturm { background: #f4f4f4; }
.marke-landung { background: #ff5ca8; }
.marke-sonst { background: #d0c4ff; }

.orte {
  max-width: none;
  margin: 0;
  columns: 2 320px;
  column-gap: 34px;
}

.orte dt {
  margin-top: 10px;
  font-weight: 600;
  break-after: avoid;
}

.orte dd {
  margin: 0 0 4px;
  color: #d5dbec;
  font-size: 0.94rem;
  break-inside: avoid;
}

.lexikon dt {
  scroll-margin-top: 70px;
  color: var(--gold);
}

/* --- Fragen --- */

.fragen {
  display: grid;
  gap: 8px;
  max-width: 72ch;
}

details {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 8px 0 2px;
}

/* --- Tabellen --- */

.rollen {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 14px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
}

th {
  color: var(--text-leise);
  font-weight: 500;
  white-space: nowrap;
}

/* --- Blättern, Sponsoren, Unterstützen --- */

.blaettern {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.sponsor {
  margin: 18px 0 0;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px dashed var(--rand);
  font-size: 0.88rem;
  color: var(--text-leise);
}

.sponsor .marke {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stuetze {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.stuetze section {
  padding: 6px 20px 16px;
  border-radius: 14px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
}

.stuetze h2 {
  margin-top: 14px;
}

/* --- Rechtliches (derselbe Inhalt wie im Fenster der App) --- */

.recht h4 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
}

.recht__hinweis {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
}

.recht__liste {
  padding-left: 20px;
}

.recht__klein {
  font-size: 0.84rem;
  color: var(--text-leise);
}

.recht details {
  margin: 10px 0;
  overflow-x: auto;
}

.recht__tabelle {
  font-size: 0.84rem;
}

/* --- Fusszeile --- */

footer {
  border-top: 1px solid var(--rand);
  padding-block: 22px 34px;
  font-size: 0.84rem;
  color: var(--text-leise);
}

footer p {
  max-width: none;
  margin: 6px 0;
}

/* --- Schmale Bildschirme --- */

@media (max-width: 760px) {
  .kopf,
  .aufbau {
    grid-template-columns: 1fr;
  }

  .aufbau svg {
    max-width: 200px;
    margin: 0 auto;
  }

  .kopf figure img {
    max-height: 60vh;
    object-fit: contain;
  }

  .fakten {
    grid-template-columns: 1fr;
    padding: 4px 14px;
  }

  .fakten dt {
    padding: 8px 0 0;
    border-bottom: 0;
  }

  .fakten dd {
    padding-top: 0;
  }

  .knopf--klein {
    display: none;
  }
}

/* --- Projekt unterstützen: Auswahl des Zahlungswegs, QR-Code --- */

#spWege {
  margin-top: 14px;
}

.weg-frage {
  margin: 0 0 8px;
  font-weight: 600;
}

.weg-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weg-knopf {
  cursor: pointer;
  font: inherit;
}

.weg-knopf[aria-pressed='true'] {
  border-color: var(--gold);
  color: var(--gold);
}

.weg-feld {
  margin-top: 16px;
}

.weg-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.weg-qr {
  flex: none;
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.weg-bank .fakten {
  flex: 1;
  min-width: 240px;
}

button.knopf {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

/* Häufige Fragen (Steckbrief-Seiten) */
.faq h3 {
  display: block;
  margin: 20px 0 4px;
}

.faq p {
  margin-top: 0;
}
