/* ══════════════════════════════════════════════════════════════════════════
   Venture — netzwerk.retov.de
   ══════════════════════════════════════════════════════════════════════════

   Das Panel (admin.retov.de) ist ein Werkzeug: dicht, sachlich, viele
   Zahlen. Das hier ist das Gegenteil — ein Ort, an dem Leute lesen. Andere
   Aufgabe, anderes Gesicht: viel Weissraum, eine ruhige Spalte in der
   Mitte, und Farbe nur dort, wo sie etwas bedeutet (die Profilfarbe des
   Autors).

   Farben: ein tiefes Nachtblau als Grund, ein warmes Sandweiss als Karte,
   ein einziger Akzent in Korallrot. Kein Verlauf über die halbe Seite --
   die Bilder der Leute sollen das Bunteste auf dem Schirm sein.
*/

:root {
  color-scheme: light;
  --grund:      #f2f0ec;
  --karte:      #ffffff;
  --rand:       #e2ded7;
  --text:       #191714;
  --leise:      #6c665e;
  --akzent:     #d94f36;
  --akzent-weich:#fdeeeb;
  --nacht:      #14212e;
  --gruen:      #2f7d5d;
  --schatten:   0 1px 2px rgba(20,33,46,.05), 0 8px 24px rgba(20,33,46,.06);
  --radius:     14px;
  --schrift:    'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif:      'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund:  #10161d;
    --karte:  #18212b;
    --rand:   #26333f;
    --text:   #eceae6;
    --leise:  #97a2ad;
    --akzent: #ff7a5e;
    --akzent-weich:#2a1d1a;
    --nacht:  #0a0f14;
    --gruen:  #56b58b;
    --schatten: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: var(--schrift); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ── Knöpfe ─────────────────────────────────────────────────────────── */
.knopf {
  border: 1px solid transparent; background: var(--akzent); color: #fff;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 600;
  transition: transform .12s ease, filter .12s ease;
}
.knopf:hover { filter: brightness(1.06); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .55; cursor: default; }
.knopf.gross { padding: 12px 18px; width: 100%; font-size: 15.5px; }
.knopf.leise { background: transparent; color: var(--leise); border-color: var(--rand); }
.knopf.leise:hover { color: var(--text); border-color: var(--leise); }
.knopf.breit { width: 100%; margin-top: 14px; }
.knopf.klein { padding: 5px 12px; font-size: 13.5px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ══ Anmeldung ═══════════════════════════════════════════════════════════ */
.tor { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 100vh; }
.tor-bild {
  background: var(--nacht); color: #f6f3ee; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 52px;
}
/* Ein einziger, weicher Lichtschein statt eines Verlaufs über die ganze
   Fläche -- der Bildschirm soll wie ein Raum wirken, nicht wie ein Plakat. */
.tor-glanz {
  position: absolute; width: 720px; height: 720px; border-radius: 50%;
  top: -240px; right: -180px; pointer-events: none;
  background: radial-gradient(circle, rgba(217,79,54,.30), rgba(217,79,54,0) 68%);
}
.tor-marke {
  font-family: var(--serif); font-size: 13px; letter-spacing: .42em;
  opacity: .62; margin-bottom: 16px;
}
.tor-spruch {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 50px); line-height: 1.12;
  margin: 0; text-wrap: balance;
}
.tor-form {
  background: var(--karte); padding: 52px 46px; display: flex;
  flex-direction: column; justify-content: center; max-width: 520px; width: 100%;
}
.tor-titel { font-family: var(--serif); font-size: 34px; margin: 0 0 6px; }
.tor-unter { color: var(--leise); margin: 0 0 26px; max-width: 42ch; }
.reiter { display: flex; gap: 4px; background: var(--grund); padding: 4px;
          border-radius: 999px; margin-bottom: 20px; }
.reiter-knopf {
  flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px;
  cursor: pointer; color: var(--leise); font-weight: 600;
}
.reiter-knopf.an { background: var(--karte); color: var(--text); box-shadow: var(--schatten); }
.feld-gruppe { display: flex; flex-direction: column; gap: 14px; }
.feld { display: flex; flex-direction: column; gap: 5px; }
.feld > span { font-size: 12.5px; font-weight: 700; color: var(--leise);
               letter-spacing: .04em; text-transform: uppercase; }
.feld input, .feld textarea, .suche input {
  border: 1px solid var(--rand); background: var(--grund); color: var(--text);
  border-radius: 10px; padding: 11px 13px; width: 100%;
}
.feld input:focus, .feld textarea:focus { border-color: var(--akzent); outline: none;
                                          background: var(--karte); }
.tor-fehler { color: var(--akzent); background: var(--akzent-weich);
              border-radius: 10px; padding: 10px 13px; margin: 16px 0 0; font-size: 14px; }

@media (max-width: 860px) {
  .tor { grid-template-columns: 1fr; }
  .tor-bild { min-height: 240px; padding: 30px; }
  .tor-form { max-width: none; padding: 32px 24px; }
}

/* ══ Kopf ════════════════════════════════════════════════════════════════ */
.kopf {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  gap: 18px; padding: 11px 22px; background: color-mix(in srgb, var(--karte) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rand);
}
.marke {
  border: 0; background: transparent; cursor: pointer; font-family: var(--serif);
  font-size: 17px; letter-spacing: .3em; color: var(--text); padding: 0;
}
.suche { flex: 1; max-width: 420px; }
.suche input { padding: 8px 13px; border-radius: 999px; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ══ Bühne ═══════════════════════════════════════════════════════════════ */
.buehne {
  display: grid; grid-template-columns: 210px minmax(0, 620px) 260px;
  gap: 26px; justify-content: center; padding: 26px 22px 80px; align-items: start;
}
.spalte-links, .spalte-rechts { position: sticky; top: 74px; display: flex;
                                flex-direction: column; gap: 10px; }
.mitte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

@media (max-width: 1080px) {
  .buehne { grid-template-columns: minmax(0, 620px); }
  .spalte-links, .spalte-rechts { display: none; }
}

/* ── Karten ──────────────────────────────────────────────────────────── */
.karte {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); overflow: hidden;
}
.karte-innen { padding: 16px 18px; }
.karte-titel { font-size: 12px; font-weight: 800; letter-spacing: .09em;
               text-transform: uppercase; color: var(--leise); margin: 0 0 10px; }

/* ── Schreiben ───────────────────────────────────────────────────────── */
.schreiben textarea {
  width: 100%; border: 0; background: transparent; resize: vertical;
  min-height: 76px; padding: 0; font-size: 16.5px; line-height: 1.5;
}
.schreiben textarea:focus { outline: none; }
.schreiben-fuss { display: flex; align-items: center; gap: 10px; margin-top: 12px;
                  padding-top: 12px; border-top: 1px solid var(--rand); }
.zaehler { margin-left: auto; font-size: 13px; color: var(--leise);
           font-variant-numeric: tabular-nums; }
.zaehler.knapp { color: var(--akzent); font-weight: 700; }
.bild-vorschau { margin-top: 12px; position: relative; }
.bild-vorschau img { border-radius: 10px; max-height: 340px; width: auto; }
.bild-weg { position: absolute; top: 8px; left: 8px; }

/* ── Beitrag ─────────────────────────────────────────────────────────── */
.beitrag { display: flex; gap: 13px; padding: 16px 18px; }
.beitrag + .beitrag { border-top: 1px solid var(--rand); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  font-size: 16px; overflow: hidden; user-select: none;
}
.avatar.klein { width: 30px; height: 30px; flex-basis: 30px; font-size: 12.5px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.beitrag-koerper { min-width: 0; flex: 1; }
.beitrag-kopf { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.name { font-weight: 700; }
.handle, .wann { color: var(--leise); font-size: 13.5px; }
.marke-spiel {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gruen); border: 1px solid currentColor; border-radius: 999px;
  padding: 1px 7px; line-height: 1.5;
}
.beitrag-text { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.beitrag-bild { margin-top: 11px; border-radius: 12px; overflow: hidden;
                border: 1px solid var(--rand); }
.beitrag-fuss { display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.tat {
  border: 0; background: transparent; color: var(--leise); cursor: pointer;
  padding: 5px 10px; border-radius: 999px; font-size: 13.5px; display: flex;
  align-items: center; gap: 6px;
}
.tat:hover { background: var(--grund); color: var(--text); }
.tat.an { color: var(--akzent); font-weight: 700; }
.tat .zahl { font-variant-numeric: tabular-nums; }

/* ── Kommentare ──────────────────────────────────────────────────────── */
.kommentare { border-top: 1px solid var(--rand); background: var(--grund); }
.kommentar { display: flex; gap: 10px; padding: 11px 18px; }
.kommentar + .kommentar { border-top: 1px solid var(--rand); }
.kommentar-text { margin: 2px 0 0; overflow-wrap: anywhere; }
.kommentar-schreiben { display: flex; gap: 9px; padding: 12px 18px;
                       border-top: 1px solid var(--rand); }
.kommentar-schreiben input {
  flex: 1; border: 1px solid var(--rand); background: var(--karte);
  border-radius: 999px; padding: 9px 14px;
}

/* ── Profil ──────────────────────────────────────────────────────────── */
.profil-kopf { padding: 24px 20px; display: flex; gap: 16px; align-items: center; }
.profil-kopf .avatar { width: 72px; height: 72px; flex-basis: 72px; font-size: 26px; }
.profil-name { font-family: var(--serif); font-size: 25px; margin: 0; }
.profil-bio { margin: 7px 0 0; color: var(--leise); overflow-wrap: anywhere; }
.zahlen { display: flex; gap: 20px; padding: 0 20px 20px; }
.zahl-block { display: flex; flex-direction: column; }
.zahl-block b { font-size: 19px; font-variant-numeric: tabular-nums; }
.zahl-block span { font-size: 12.5px; color: var(--leise); }

/* ── Seitenspalten ───────────────────────────────────────────────────── */
.menue { display: flex; flex-direction: column; gap: 2px; }
.menue button {
  border: 0; background: transparent; text-align: left; padding: 10px 13px;
  border-radius: 10px; cursor: pointer; color: var(--leise); font-weight: 600;
}
.menue button:hover { background: var(--karte); color: var(--text); }
.menue button.an { background: var(--karte); color: var(--text); box-shadow: var(--schatten); }
.person { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.person + .person { border-top: 1px solid var(--rand); }
.person-namen { min-width: 0; }
.person-namen div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Zustände ────────────────────────────────────────────────────────── */
.leer { text-align: center; padding: 44px 22px; color: var(--leise); }
.leer h3 { font-family: var(--serif); font-size: 21px; color: var(--text); margin: 0 0 6px; }
.laedt { text-align: center; padding: 30px; color: var(--leise); }

.hinweis {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--nacht); color: #fff; padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--schatten); z-index: 60; max-width: 90vw;
}
.hinweis.schlecht { background: var(--akzent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
