/* Deepen. Projekte – Download-Seite (Entwurf)
   Farbwelt: Nacht, Glut und Bronze. Schriften liegen lokal (Server erlaubt nur eigene Schriften). */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --nacht: #0b0907;
  --kohle: #14100c;
  --flaeche: #1b1510;
  --flaeche-hell: #241b13;
  --linie: rgba(255, 196, 150, 0.12);
  --linie-stark: rgba(255, 196, 150, 0.22);
  --text: #f4ede4;
  --text-leise: #b6a796;
  --text-still: #8a7c6d;
  --glut: #f2741f;
  --glut-hell: #ffa04d;
  --glut-tief: #c4520e;
  --bronze: #6b3d17;

  --rand: clamp(16px, 5vw, 72px);
  --breite: 1240px;
  --schrift-titel: "Bricolage", "Arial Narrow", sans-serif;
  --schrift-text: "Atkinson", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* feines Filmkorn über allem */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }

.punkt { color: var(--glut); }

:focus-visible {
  outline: 2px solid var(--glut-hell);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Kopf ---------- */
.kopf {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 28px var(--rand);
}

.marke {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.marke__zeichen { width: 40px; height: 40px; flex: none; }
.marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.marke__name {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.marke__zusatz {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-top: 3px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status__licht {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glut);
  box-shadow: 0 0 0 0 rgba(242, 116, 31, 0.6);
  animation: puls 2.4s ease-out infinite;
}
/* Knopf „← Startseite“ oben rechts auf der Download-Seite */
.status--link {
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.status--link:hover,
.status--link:focus-visible { border-color: var(--glut); color: var(--glut-hell); }
.status__pfeil { width: 16px; height: 16px; color: var(--glut); }
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(242, 116, 31, 0.6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(242, 116, 31, 0); }
}

/* ---------- Bühne ---------- */
.buehne {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(140px, 18vw, 200px) var(--rand) clamp(72px, 10vw, 120px);
  background:
    radial-gradient(55% 60% at 82% 78%, rgba(242, 116, 31, 0.30), transparent 70%),
    radial-gradient(30% 30% at 88% 70%, rgba(255, 160, 77, 0.20), transparent 70%),
    radial-gradient(70% 50% at 10% 0%, rgba(107, 61, 23, 0.28), transparent 70%),
    linear-gradient(180deg, var(--nacht) 0%, #120d09 55%, #1e130a 100%);
  border-bottom: 1px solid var(--linie);
}

/* architektonisches Raster, das nach oben verblasst */
.buehne__raster {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 196, 150, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 196, 150, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 80%, transparent 100%);
}

.buehne__innen {
  max-width: var(--breite);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.vorzeile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--glut-hell);
}
.strich {
  width: 40px;
  height: 1px;
  background: var(--glut);
}

h1 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.4rem, 10.5vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1 .zeile { display: block; }
h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--glut-hell) 0%, var(--glut) 55%, var(--glut-tief) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.einleitung {
  max-width: 34em;
  margin: 32px 0 40px;
  color: var(--text-leise);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

/* Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.knopf svg { width: 20px; height: 20px; }
.knopf--primaer {
  background: linear-gradient(180deg, var(--glut-hell), var(--glut) 60%, var(--glut-tief));
  color: #1a0d03;
  box-shadow: 0 10px 30px -10px rgba(242, 116, 31, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.knopf--primaer:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(242, 116, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.knopf--rahmen {
  border: 1px solid rgba(255, 160, 77, 0.55);
  color: var(--text);
  background: rgba(242, 116, 31, 0.06);
  padding: 15px 27px;
}
.knopf--rahmen svg { color: var(--glut-hell); }
.knopf--rahmen:hover {
  transform: translateY(-2px);
  border-color: var(--glut-hell);
  background: rgba(242, 116, 31, 0.14);
}
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopfhinweis {
  margin: 14px 0 0 !important;
  font-size: 0.85rem;
  color: var(--text-still) !important;
}

/* Kennzahlen-Tafel */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--linie-stark);
  background: linear-gradient(160deg, rgba(36, 27, 19, 0.75), rgba(20, 16, 12, 0.55));
  backdrop-filter: blur(10px);
  border-radius: 4px;
  position: relative;
}
.kennzahlen::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 56px;
  height: 2px;
  background: var(--glut);
}
.kennzahl {
  padding: 28px 20px 24px;
  border-right: 1px solid var(--linie);
}
.kennzahl:nth-child(2) { border-right: 0; }
.kennzahl__wert {
  display: block;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
}
.kennzahl__wert small { font-size: 0.5em; color: var(--glut); margin-left: 2px; }
.kennzahl__name {
  display: block;
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.merkmale {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  border-top: 1px solid var(--linie);
  font-size: 0.85rem;
  color: var(--text-leise);
}
.merkmale li { display: flex; align-items: center; gap: 8px; }
.merkmale svg { width: 18px; height: 18px; color: var(--glut); }

/* ---------- Bereiche ---------- */
.bereich {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--rand) 0;
}
.bereich__kopf {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.nummer {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--glut);
  letter-spacing: 0.1em;
}
h2 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.linie {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--linie-stark), transparent);
  align-self: center;
}

/* Bühnenkarte (ausgewähltes Projekt) */
.buehnenkarte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--linie);
  background: var(--kohle);
  border-radius: 4px;
  overflow: hidden;
}
.buehnenkarte__bild {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(242, 116, 31, 0.35), transparent 70%),
    linear-gradient(180deg, #17110c, #23170d);
  border-right: 1px solid var(--linie);
}
.buehnenkarte__bild img {
  width: min(320px, 78%);
  border-radius: 3px;
  box-shadow:
    0 40px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.buehnenkarte:hover .buehnenkarte__bild img { transform: rotate(0deg) translateY(-6px); }

.buehnenkarte__text {
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.etikett {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.buehnenkarte h3 {
  margin: 0 0 18px;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.buehnenkarte__text > p:not(.etikett) { margin: 0 0 28px; color: var(--text-leise); max-width: 32em; }

.daten {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  margin: 0 0 36px;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.daten div { padding: 14px 28px 14px 0; }
.daten div + div { padding-left: 28px; border-left: 1px solid var(--linie); }
.daten dt {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-still);
}
.daten dd { margin: 4px 0 0; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.buehnenkarte .knopf { align-self: flex-start; }

/* Querformat-Variante (Spiel-Screenshot) */
.buehnenkarte--quer { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.buehnenkarte--quer .buehnenkarte__bild {
  align-content: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
}
.buehnenkarte--quer .buehnenkarte__bild img {
  width: 100%;
  border-radius: 4px;
  transform: perspective(1200px) rotateY(6deg) rotate(-1deg);
}
.buehnenkarte--quer:hover .buehnenkarte__bild img { transform: perspective(1200px) rotateY(0deg) translateY(-6px); }

.siegel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.siegel li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  background: rgba(11, 9, 7, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.siegel svg { width: 16px; height: 16px; color: var(--glut-hell); }

/* Patchnotes unter dem Spielbild */
.buehnenkarte--quer .buehnenkarte__bild { align-content: start; }
.patch {
  position: relative;
  width: 100%;
  padding: 26px 26px 22px;
  border: 1px solid var(--linie-stark);
  border-radius: 4px;
  background: linear-gradient(170deg, rgba(20, 16, 12, 0.92), rgba(11, 9, 7, 0.88));
  text-align: left;
}
.patch::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 56px;
  height: 2px;
  background: var(--glut);
}
.patch__kopf { padding-bottom: 18px; border-bottom: 1px solid var(--linie); }
.patch__marke {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--glut-hell);
}
.patch__version {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}
.patch__neu {
  padding: 4px 8px 3px;
  border-radius: 2px;
  background: var(--glut);
  color: #1a0d03;
  font-family: var(--schrift-text);
  font-size: 0.6rem;
  font-stretch: 100%;
  letter-spacing: 0.18em;
}
.patch__zeit { margin: 8px 0 0; font-size: 0.8rem; color: var(--text-still); }

.patch__gruppe { padding: 18px 0 2px; }
.patch__gruppe + .patch__gruppe { border-top: 1px solid var(--linie); margin-top: 16px; }
.patch h5 {
  margin: 0 0 10px;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.patch__gruppe > ul:not(.patch__faehigkeiten) {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.patch__gruppe > ul:not(.patch__faehigkeiten) li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-leise);
}
.patch__gruppe > ul:not(.patch__faehigkeiten) li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--glut);
}

.patch__faehigkeiten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.faehigkeit {
  --ton: var(--glut-hell);
  display: grid;
  gap: 2px;
  padding: 12px 12px 11px;
  border: 1px solid var(--linie);
  border-top: 2px solid var(--ton);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
}
.faehigkeit svg { width: 22px; height: 22px; margin-bottom: 6px; color: var(--ton); }
.faehigkeit strong { font-size: 0.86rem; color: var(--text); }
.faehigkeit span { font-size: 0.74rem; line-height: 1.35; color: var(--text-still); }
.faehigkeit--feuer { --ton: #ff8a3d; }
.faehigkeit--frost { --ton: #8fd3f0; }
.faehigkeit--arkan { --ton: #c7a6ff; }
/* Patchnotes: nur Kopf sichtbar, alles unter dem Strich klappt auf */
.patch__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.patch__kopf::-webkit-details-marker { display: none; }
.patch:not([open]) .patch__kopf { padding-bottom: 0; border-bottom: 0; }
.patch__titel { display: block; }
.patch__marke, .patch__zeit { display: block; }
.patch__version { transition: color 0.2s ease; }
.patch__kopf:hover .patch__version { color: var(--glut-hell); }
.patch__pfeil {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  color: var(--glut);
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1), border-color 0.2s ease;
}
.patch__kopf:hover .patch__pfeil { border-color: var(--glut); }
/* Zweiter Kasten: Patchnotes der Version davor, schlichter */
.patch + .patch { margin-top: 12px; }
.patch--davor::before { background: var(--linie-stark); }
.patch--davor .patch__marke { color: var(--text-still); }
.patch--davor .patch__version { font-size: 1.35rem; }
.patch[open] .patch__pfeil { transform: rotate(180deg); }
.patch[open] .patch__inhalt { animation: aufklappen 0.35s cubic-bezier(.2, .7, .2, 1); }
@keyframes aufklappen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* GRONK-Text: eingeklappt mittig, ausgeklappt fest oben */
.buehnenkarte--quer:has(.patch[open]) .buehnenkarte__text { justify-content: flex-start; }

.patch__notiz { margin: 10px 0 0; font-size: 0.78rem; color: var(--text-still); }
.patch__fuss {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
  font-size: 0.78rem;
  color: var(--text-still);
}

.buehnenkarte .untertitel {
  margin: -8px 0 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--glut-hell);
}

.anleitung {
  margin-top: 28px;
  border-top: 1px solid var(--linie);
  padding-top: 18px;
}
.anleitung summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.anleitung summary::-webkit-details-marker { display: none; }
.anleitung summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  color: var(--glut);
  font-size: 0.95rem;
  letter-spacing: 0;
  transition: transform 0.25s ease;
}
.anleitung[open] summary::before { content: "–"; }
.anleitung summary:hover { color: var(--text); }
.anleitung ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
  display: grid;
  gap: 14px;
}
.anleitung li {
  position: relative;
  padding-left: 40px;
  font-size: 0.93rem;
  color: var(--text-leise);
  counter-increment: schritt;
}
.anleitung li::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--glut);
}
.anleitung li strong { color: var(--text); }
.pruefsumme {
  margin: 18px 0 0 !important;
  font-size: 0.72rem !important;
  color: var(--text-still) !important;
  overflow-wrap: anywhere;
}
.pruefsumme code { font-family: ui-monospace, Consolas, monospace; }

/* ---------- Ideen-Zeile (GRONK-Karte, linke Spalte unten) ---------- */
/* Linke Spalte als Stapel: die Zeile sitzt am unteren Rand und wächst nach oben in die freie Fläche */
.buehnenkarte--quer .buehnenkarte__bild {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.idee {
  position: relative;
  width: 100%;
  margin: auto 0 0;
  text-align: left;
}

.idee__zeile {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 5px 5px 5px 18px;
  border: 1px solid var(--linie-stark);
  border-radius: 22px;
  background: rgba(11, 9, 7, 0.82);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.idee__zeile:focus-within {
  border-color: rgba(255, 160, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 116, 31, 0.14), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
.idee textarea {
  flex: 1;
  min-width: 0;
  max-height: calc(8 * 1.45em + 14px); /* ca. 8 Zeilen, danach scrollt das Feld */
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* nicht kleiner, sonst zoomt das iPhone beim Antippen */
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--linie-stark) transparent;
}
.idee textarea::placeholder { color: var(--text-still); opacity: 1; }
.idee textarea:focus-visible { outline: none; } /* Fokus zeigt die ganze Zeile */

.idee__senden {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--glut-hell), var(--glut) 60%, var(--glut-tief));
  color: #1a0d03;
  box-shadow: 0 8px 20px -8px rgba(242, 116, 31, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.idee__senden svg { width: 20px; height: 20px; }
.idee__senden:hover:not(:disabled) { transform: translateY(-1px); }
.idee__senden:focus-visible { outline-offset: 2px; border-radius: 50%; }
.idee__senden:disabled {
  background: rgba(255, 196, 150, 0.08);
  color: var(--text-still);
  box-shadow: inset 0 0 0 1px var(--linie);
  cursor: default;
}
.idee__schloss { display: none; }
.idee--gesperrt .idee__pfeil { display: none; }
.idee--gesperrt .idee__schloss { display: block; }
.idee--gesperrt textarea { cursor: default; }
.idee--gesperrt textarea::placeholder { color: var(--text-leise); }

/* Lockfeld für Spam-Programme: für Menschen unsichtbar */
.idee__lockfeld {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.idee__hinweis {
  margin: 8px 18px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--glut-hell);
}
.idee__hinweis:empty { display: none; }
.idee__fuss {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 18px 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-still);
}
.idee__fuss a { text-decoration-color: var(--linie-stark); text-underline-offset: 3px; }
.idee__fuss a:hover { color: var(--text); }
.idee__zaehler { font-variant-numeric: tabular-nums; }
.idee__zaehler[hidden] { display: none; }

/* Kleiner Chatverlauf über der Zeile (nur nach dem Absenden) */
.idee__verlauf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.idee__verlauf[hidden] { display: none; }
.idee__nachricht {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  animation: blase-rein 0.35s cubic-bezier(.2, .7, .2, 1) both;
}
.idee__nachricht--ich { justify-content: flex-end; padding-left: 15%; }
.idee__nachricht--christian { padding-right: 8%; }
.idee__marke { flex: none; width: 28px; height: 28px; }
.idee__blase {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}
.idee__nachricht--ich .idee__blase {
  border: 1px solid rgba(255, 160, 77, 0.32);
  border-radius: 16px 16px 4px 16px;
  background: rgba(242, 116, 31, 0.14);
}
.idee__gekuerzt {
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.idee__nachricht--christian .idee__blase {
  border: 1px solid var(--linie-stark);
  border-radius: 16px 16px 16px 4px;
  background: var(--flaeche-hell);
}
.idee__blase--schreibt {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 43px;
}
.idee__punkt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-leise);
  animation: tippen 1s ease-in-out infinite;
}
.idee__punkt:nth-child(2) { animation-delay: 0.15s; }
.idee__punkt:nth-child(3) { animation-delay: 0.3s; }
@keyframes tippen {
  0%, 60%, 100% { transform: none; opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes blase-rein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Liste */
.liste {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linie);
}
.eintrag {
  position: relative;
  display: grid;
  grid-template-columns: 56px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  padding: 26px 20px;
  border-bottom: 1px solid var(--linie);
  transition: background 0.3s ease;
}
.eintrag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glut);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
}
.eintrag:hover { background: linear-gradient(90deg, rgba(242, 116, 31, 0.08), transparent 70%); }
.eintrag:hover::before { transform: scaleY(1); }

.eintrag__nr {
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--glut);
}
.eintrag__symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--linie-stark);
  border-radius: 3px;
  color: var(--glut-hell);
}
.eintrag__symbol svg { width: 24px; height: 24px; }
.eintrag__text h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}
.eintrag__text p { margin: 2px 0 0; color: var(--text-leise); font-size: 0.95rem; }
.eintrag__text .eintrag__daten {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.eintrag__daten span {
  padding: 2px 9px;
  border: 1px solid var(--linie);
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-still);
}

.eintrag__knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.eintrag__knopf svg { width: 18px; height: 18px; color: var(--glut); transition: color 0.25s ease, transform 0.25s ease; }
a.eintrag__knopf:hover {
  background: var(--glut);
  border-color: var(--glut);
  color: #1a0d03;
}
a.eintrag__knopf:hover svg { color: #1a0d03; transform: translateY(2px); }

.eintrag__knoepfe { display: flex; flex-direction: column; gap: 8px; }
.eintrag__knoepfe .eintrag__knopf { justify-content: space-between; }
.eintrag__vorschau {
  display: block;
  max-width: 420px;
  margin-top: 16px;
  border: 1px solid var(--linie-stark);
  border-radius: 2px;
  overflow: hidden;
}
.eintrag__vorschau img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.eintrag__vorschau:hover img { transform: scale(1.03); }

.eintrag--bald { opacity: 0.55; }
.eintrag--bald:hover { background: none; }
.eintrag--bald:hover::before { transform: scaleY(0); }
.eintrag__knopf--bald { border-style: dashed; color: var(--text-still); }
.eintrag__knopf--bald svg { color: var(--text-still); }

/* ---------- Band ---------- */
.band {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(80px, 12vw, 140px);
  padding: 34px var(--rand);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.25)),
    linear-gradient(180deg, #8a4e1c, var(--bronze) 60%, #4d2b10);
  border-top: 1px solid rgba(255, 196, 150, 0.25);
}
.band p {
  margin: 0;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: #fbe9d6;
}
.band .punkt { color: #ffd1a6; }
.band__pfad { text-transform: none; color: #ffd1a6; }
.band__trenner { color: rgba(251, 233, 214, 0.5); margin: 0 0.4em; }
.band__linie { flex: 1; height: 1px; background: rgba(251, 233, 214, 0.35); }

/* ---------- Fuß ---------- */
.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 28px var(--rand) 36px;
  font-size: 0.85rem;
  color: var(--text-still);
}
.fuss p { margin: 0; }
.fuss a { text-decoration-color: var(--linie-stark); text-underline-offset: 3px; }
.fuss a:hover { color: var(--text); }

/* ---------- Rechtstext (datenschutz.html) ---------- */
.rechtstext {
  max-width: calc(46rem + 2 * var(--rand));
  margin: 0 auto;
  padding: clamp(130px, 16vw, 180px) var(--rand) clamp(56px, 8vw, 96px);
}
.rechtstext h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
.rechtstext .einleitung { margin: 24px 0 8px; }
.rechtstext h2 {
  margin: clamp(40px, 6vw, 56px) 0 14px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  white-space: normal;
}
.rechtstext p, .rechtstext li { color: var(--text-leise); }
.rechtstext p { margin: 0 0 14px; max-width: 40em; }
.rechtstext ul { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; }
.rechtstext strong { color: var(--text); }
.rechtstext a { color: var(--glut-hell); text-underline-offset: 3px; }
.rechtstext code { font-family: ui-monospace, Consolas, monospace; font-size: 0.88em; color: var(--text); }
.rechtstext .zurueck {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--glut-hell);
}
.rechtstext .zurueck:hover { color: var(--text); }

/* ---------- Auftritt ---------- */
@media (prefers-reduced-motion: no-preference) {
  .vorzeile, h1 .zeile, .einleitung, .buehne .knopf, .kennzahlen {
    animation: auftritt 0.9s cubic-bezier(.2, .7, .2, 1) both;
  }
  h1 .zeile:nth-child(1) { animation-delay: 0.08s; }
  h1 .zeile:nth-child(2) { animation-delay: 0.16s; }
  .einleitung { animation-delay: 0.26s; }
  .buehne .knopf { animation-delay: 0.34s; }
  .kennzahlen { animation-delay: 0.42s; }
}
@keyframes auftritt {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .buehnenkarte--quer { grid-template-columns: 1fr; }
  .buehnenkarte--quer .buehnenkarte__bild { border-right: 0; border-bottom: 1px solid var(--linie); }
  .buehnenkarte--quer .buehnenkarte__bild img { max-width: 720px; justify-self: center; }
}
@media (max-width: 900px) {
  .buehne__innen { grid-template-columns: 1fr; align-items: start; }
  .buehnenkarte { grid-template-columns: 1fr; }
  .buehnenkarte__bild { border-right: 0; border-bottom: 1px solid var(--linie); }
}
@media (max-width: 640px) {
  .kopf { padding-top: 20px; gap: 10px; }
  .marke { gap: 10px; }
  .marke__zeichen { width: 36px; height: 36px; }
  .marke__name { font-size: 1.2rem; }
  .marke__zusatz { white-space: nowrap; font-size: 0.58rem; letter-spacing: 0.22em; }
  .status { padding: 6px 10px; gap: 7px; letter-spacing: 0.1em; font-size: 0.56rem; }
  .status__licht { width: 6px; height: 6px; }
  .kennzahl { padding: 20px 14px 18px; }
  .eintrag {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "nr text" "nr knopf";
    gap: 6px 14px;
    padding: 22px 4px 22px 12px;
  }
  .eintrag__nr { grid-area: nr; align-self: start; font-size: 1.6rem; }
  .eintrag__symbol { display: none; }
  .eintrag__text { grid-area: text; }
  .eintrag__knopf { grid-area: knopf; justify-self: start; margin-top: 10px; }
  .eintrag__knoepfe { grid-area: knopf; flex-direction: row; flex-wrap: wrap; margin-top: 10px; }
  .eintrag__knoepfe .eintrag__knopf { margin-top: 0; padding: 10px 14px; }
  .daten { grid-template-columns: 1fr; }
  .daten div, .daten div + div { padding: 12px 0; border-left: 0; }
  .daten div + div { border-top: 1px solid var(--linie); }
  .patch { padding: 22px 18px 18px; }
  .patch__faehigkeiten { grid-template-columns: 1fr; }
  .faehigkeit { grid-template-columns: 26px auto; column-gap: 12px; align-items: center; }
  .faehigkeit svg { grid-row: span 2; margin: 0; }
  .band { flex-direction: column; gap: 14px; }
  .band__linie { width: 60px; flex: none; }
}

/* ---------- Handy-Feinschliff (nur bis 640 px, PC-Ansicht bleibt unberührt) ---------- */
@media (max-width: 640px) {
  /* Bühne kompakter, damit mehr vom Inhalt auf den ersten Bildschirm passt */
  .buehne { padding: 108px 16px 52px; }
  .buehne__innen { gap: 32px; }
  .vorzeile { margin-bottom: 20px; }
  .einleitung { margin: 20px 0 28px; }

  /* Abstände zwischen den Bereichen etwas enger */
  .bereich { padding-top: 56px; }
  .bereich__kopf { margin-bottom: 24px; }

  /* GRONK-Karte neu sortiert: Bild → Siegel → Text mit Download → Patchnotes → Ideen-Zeile */
  .buehnenkarte--quer {
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(120% 34% at 50% 14%, rgba(242, 116, 31, 0.30), transparent 72%),
      linear-gradient(180deg, #17110c 0%, var(--kohle) 38%);
  }
  .buehnenkarte--quer .buehnenkarte__bild { display: contents; }
  .buehnenkarte--quer .buehnenkarte__bild img {
    order: 1;
    width: auto;
    max-width: none;
    margin: 22px 16px 0;
    transform: none;
  }
  .buehnenkarte--quer:hover .buehnenkarte__bild img { transform: none; }
  .buehnenkarte--quer .siegel { order: 2; margin: 16px 12px 0; gap: 6px; }
  .buehnenkarte--quer .buehnenkarte__text {
    order: 3;
    padding: 26px 20px 28px;
  }
  .buehnenkarte--quer .patch {
    order: 4;
    width: auto;
    margin: 0 12px 12px;
  }
  .buehnenkarte--quer .idee {
    order: 5;
    width: auto;
    margin: 12px 12px 18px;
  }
  .idee__zeile { gap: 6px; padding-left: 14px; }
  .idee__hinweis, .idee__fuss { margin-left: 14px; margin-right: 14px; }

  /* Siegel kleiner, damit sie nebeneinander passen */
  .siegel li { padding: 5px 10px 5px 8px; font-size: 0.6rem; letter-spacing: 0.08em; gap: 6px; }
  .siegel svg { width: 13px; height: 13px; }

  /* Version / Datei / System nebeneinander statt untereinander */
  .buehnenkarte--quer .daten { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }
  .buehnenkarte--quer .daten div,
  .buehnenkarte--quer .daten div + div { padding: 12px 8px; border-top: 0; }
  .buehnenkarte--quer .daten div:first-child { padding-left: 0; }
  .buehnenkarte--quer .daten div + div { border-left: 1px solid var(--linie); padding-left: 12px; }
  .buehnenkarte--quer .daten dt { letter-spacing: 0.14em; }
  .buehnenkarte--quer .daten dd { white-space: normal; font-size: 0.8rem; }

  /* Buttons volle Breite, Text bleibt einzeilig */
  .knopfreihe { flex-direction: column; gap: 10px; }
  .knopfreihe .knopf { justify-content: center; width: 100%; }
}
