/* Alan – Zuschauer-Website
   Grauer Tag an einer Straßenecke: Asphalt, bedeckter Himmel, und ein einziges
   warmes Licht, das der Natriumlaterne – das gehört allein Alan.
   Schriften kommen vom Gerät der Besucher: keine fremden Server, nichts zu laden. */

:root {
  --grund: #e6e9e5;    /* bedeckter Himmel */
  --flaeche: #f1f3f0;
  --tinte: #22292b;    /* Asphalt */
  --leise: #5f6966;
  --linie: #bcc4c0;
  --licht: #9a6410;    /* Natriumlaterne – nur für Alan */
  --schrift: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --spalte: 38rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #161b1d;
    --flaeche: #1d2326;
    --tinte: #dce1de;
    --leise: #919c98;
    --linie: #343d40;
    --licht: #e3a443;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font: 1.125rem/1.6 var(--schrift);
  font-kerning: normal;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 2px; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Werbeplatz: fest, gerahmt, ruhig ---------- */
.werbung {
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0 1rem;
}
.werbung-hinweis {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--leise);
}
.werbeplatz {
  width: 970px;
  height: 90px;               /* Größe steht fest, bevor etwas geladen ist */
  overflow: hidden;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  display: grid;
  place-items: center;
}
/* Schmalere Bildschirme: jeweils das nächstkleinere Standardformat */
@media (max-width: 1010px) {
  .werbeplatz { width: 728px; height: 90px; }
}
@media (max-width: 780px) {
  .werbeplatz { width: 320px; height: 100px; }
}
.hausanzeige { font-size: 0.95rem; color: var(--leise); text-align: center; padding: 0 1rem; }
.hausanzeige strong { color: var(--tinte); font-weight: 600; margin-right: 0.35em; }

/* ---------- Kopf ---------- */
.kopf {
  max-width: var(--spalte);
  margin: 3.5rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 1rem;
}
.marke {
  grid-column: 1;
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.unterzeile { grid-column: 1; margin: 0.4rem 0 0; color: var(--leise); }
.kopf nav { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.sprachen { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.9rem; font-size: 0.95rem; }
.sprachen a { text-decoration: none; color: var(--leise); }
.sprachen a:hover { color: var(--tinte); text-decoration: underline; }
.sprachen a[aria-current="page"] { color: var(--tinte); text-decoration: underline; }
/* Rubriken: Begegnungen · Playground Forming */
.kopf .rubriken { grid-column: 1 / -1; grid-row: 3; align-self: start; margin-top: 1.6rem; }
.rubriken ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.rubriken a { text-decoration: none; color: var(--leise); padding-bottom: 0.15rem; border-bottom: 1px solid transparent; }
.rubriken a:hover { color: var(--tinte); border-bottom-color: var(--linie); }
.rubriken a[aria-current="page"] { color: var(--tinte); border-bottom-color: var(--tinte); }
@media (max-width: 520px) {
  .kopf { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .kopf nav { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .kopf .rubriken { grid-row: auto; margin-top: 1.25rem; }
}

main { max-width: var(--spalte); margin: 0 auto; padding: 0 1rem; }

.einleitung { margin: 2.5rem 0 3rem; }
.einleitung p { margin: 0 0 0.6rem; }
.leitsatz { font-size: 1.35rem; line-height: 1.4; }
.hinweis { margin: 0 0 1.5rem; color: var(--leise); font-size: 0.95rem; }

/* ---------- Begegnungen ---------- */
.begegnung {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--linie);
}
.begegnung .ort {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--leise);
}
.gespraech p { margin: 0 0 0.85rem; }

/* Zwei Stimmen, nur durch ihre Seite unterschieden. Das Zeichen ist für beide
   dasselbe – ein Kreis mit zwei Gesichtern, gespiegelt. Wer spricht, verrät es nicht. */
.rede { display: flex; gap: 0.7rem; align-items: baseline; max-width: 85%; }
.rede.rechts { margin-left: auto; flex-direction: row-reverse; }
.zeichen {
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transform: translateY(0.02em);
}
.rede.rechts .zeichen { background: linear-gradient(270deg, currentColor 50%, transparent 50%); }
.still .worte { color: var(--leise); letter-spacing: 0.15em; }

.ereignis {
  text-align: center;
  font-style: italic;
  color: var(--leise);
  font-size: 0.95rem;
  margin: 1.1rem auto !important;
  max-width: 30rem;
}
.untertitel {
  display: block;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--leise);
  margin-top: 0.15rem;
}
.ende { text-align: center; color: var(--leise); font-size: 0.875rem; margin-top: 1.4rem !important; }

.alan { margin: 1.5rem 0 0; color: var(--licht); }
.alan-name { font-weight: 600; margin-right: 0.3em; }

.leer { color: var(--leise); }

/* ---------- Playground Forming ---------- */
.etikett {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leise);
}
.neu { margin: -1.5rem 0 3rem; }
.neu .etikett { display: block; margin-bottom: 0.15rem; }
.schritt { padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--linie); }
.schritt h2 { margin: 0 0 1.5rem; font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.schritt .datum { display: block; font-size: 0.95rem; color: var(--leise); margin-bottom: 0.2rem; }
/* Die Anweisung richtet sich an die Maschine und an Menschen, die sie lesen:
   abgesetzt wie ein Zettel am Rand, nicht wie Rede. */
.anweisung { border-left: 2px solid var(--tinte); padding: 0.1rem 0 0.1rem 1rem; margin: 0 0 2rem; }
.anweisung p { margin: 0; }
.anweisung .uebersetzung { margin-top: 0.6rem; font-size: 0.95rem; color: var(--leise); }
.schritt .begegnung { border-top: 0; padding: 0; }
/* Die Macher: sichtbar, wer spricht – anders als in den Begegnungen */
.austausch { margin: 0 0 2rem; }
.wort { margin: 0 0 0.55rem; font-size: 0.95rem; }
.wer {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.5em;
}
.anweisung .gestrichen { margin: 0 0 0.6rem; color: var(--leise); }
.anweisung del { text-decoration-thickness: 1px; }
.bild { margin: 0 0 1.5rem; }
/* Das Bild darf breiter sein als die Textspalte, bleibt aber im Fenster */
.bild img {
  display: block;
  width: min(56rem, calc(100vw - 2rem));
  height: auto;
  margin-left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--linie);
}
.bild figcaption { margin-top: 0.4rem; font-size: 0.75rem; color: var(--leise); }
.bild figcaption a { color: inherit; }
.schritt .begegnung .ort { margin-bottom: 1rem; }

/* ---------- Textseiten ---------- */
.text { margin: 2.5rem 0 3rem; }
.text h1 { font-size: 1.75rem; font-weight: 400; margin: 0 0 1.5rem; }
.text h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.text p { margin: 0 0 1rem; }

/* ---------- Fuß ---------- */
.fuss {
  max-width: var(--spalte);
  margin: 3rem auto 0;
  padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--linie);
  color: var(--leise);
  font-size: 0.875rem;
}
.fuss ul { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; gap: 1.25rem; }
.fuss p { margin: 0; }

.einstieg { padding-top: 4rem; }
.einstieg ul { list-style: none; padding: 0; }
.einstieg li { margin: 0 0 0.75rem; }
