/* cued – Neon-Arkade */

:root {
  --grund: #0A0D14;
  --flaeche: #121725;
  --flaeche-hell: #18203A;
  --linie: #22304A;
  --linie-hell: #3A4A66;
  --text: #E6EEF8;
  --text-gedaempft: #8A9BB4;
  --text-schwach: #5D6B82;
  --tuerkis: #2EE6D6;
  --tuerkis-hell: #9FF7EF;
  --magenta: #FF4FD8;
  --gelb: #E8E36A;
  --orange: #F0A35E;
  --rot: #FF6B7A;
  --schrift-titel: 'Chakra Petch', 'Segoe UI', sans-serif;
  --schrift-text: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --radius: 12px;
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--grund);
  background-image:
    linear-gradient(rgba(46, 230, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 214, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 16px;
  line-height: 1.45;
}

a { color: var(--tuerkis); }
a:hover { color: var(--tuerkis-hell); }

h1, h2, h3 { font-family: var(--schrift-titel); margin: 0; }

.seite {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 640px) {
  .seite { padding: 16px 16px 48px; gap: 24px; }
}

/* ---------- Kopfzeile ---------- */

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linie);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.logo-wort {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--tuerkis);
  text-shadow: 0 0 18px rgba(46, 230, 214, 0.55);
}
.logo-zusatz {
  font-size: 13px;
  color: var(--text-gedaempft);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav a, .nav span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  color: #B7C4D8;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a.aktiv { color: var(--tuerkis); border-bottom-color: var(--tuerkis); }
.nav span.bald { color: var(--text-schwach); cursor: default; }
.nav .bald-marke {
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--linie-hell);
  border-radius: 4px;
  color: var(--text-schwach);
}

.nutzer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nutzer-text { display: flex; flex-direction: column; line-height: 1.2; }
.nutzer-name { font-weight: 600; color: var(--text); text-decoration: none; }
.nutzer-rolle { font-size: 12px; color: var(--magenta); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Bausteine ---------- */

.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--schrift-titel);
  font-weight: 700;
}
.avatar.gross { width: 44px; height: 44px; border: 2px solid currentColor; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--tuerkis);
  background: transparent;
  color: var(--tuerkis);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}
.knopf:hover { background: rgba(46, 230, 214, 0.1); box-shadow: 0 0 18px rgba(46, 230, 214, 0.3); color: var(--tuerkis); }
.knopf.voll { background: var(--tuerkis); color: var(--grund); }
.knopf.voll:hover { background: var(--tuerkis-hell); color: var(--grund); }
.knopf.magenta { border-color: var(--magenta); background: var(--magenta); color: var(--grund); }
.knopf.leise { border-color: var(--linie-hell); color: #B7C4D8; font-weight: 600; }
.knopf.leise:hover { background: var(--flaeche-hell); box-shadow: none; color: var(--text); }
.knopf.klein { min-height: 36px; padding: 0 12px; font-size: 13px; }
.knopf:disabled, .knopf.aus { border-color: var(--linie); color: var(--text-schwach); background: transparent; box-shadow: none; cursor: default; }

.dabei {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(46, 230, 214, 0.12);
  color: var(--tuerkis);
  font-weight: 600;
}

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.marke {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.marke.online { background: var(--tuerkis); color: var(--grund); }
.marke.arbeit, .marke.geplant { border: 1px solid var(--linie-hell); color: var(--text-gedaempft); }

.gedaempft { color: var(--text-gedaempft); }
.leer { color: var(--text-gedaempft); padding: 16px 20px; }

.abschnitt { display: flex; flex-direction: column; gap: 14px; }
.abschnitt-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.abschnitt-kopf h2 {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.seitenleiste h2 { font-size: 18px; }

.begruessung h1 { font-weight: 700; font-size: 56px; line-height: 1.05; }
.begruessung h1 span { color: var(--tuerkis); }
.begruessung p { margin: 6px 0 0; font-size: 18px; color: var(--text-gedaempft); }
@media (max-width: 640px) { .begruessung h1 { font-size: 40px; } }

.spalten {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.hauptspalte { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.seitenleiste { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.kasten { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hinweise (Meldungen, Einladungen) ---------- */

.hinweis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--magenta);
  border-radius: var(--radius);
  background: rgba(255, 79, 216, 0.08);
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.2);
}
.hinweis p { margin: 0; flex: 1 1 280px; font-size: 17px; }
.hinweis.erfolg { border-color: var(--tuerkis); background: rgba(46, 230, 214, 0.08); box-shadow: 0 0 28px rgba(46, 230, 214, 0.15); }
.hinweis.fehler { border-color: var(--rot); background: rgba(255, 107, 122, 0.08); box-shadow: none; }

/* ---------- Events ---------- */

.event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
}
.event-datum {
  width: 64px;
  text-align: center;
  font-family: var(--schrift-titel);
  line-height: 1;
  text-transform: uppercase;
}
.event-datum .tag-name, .event-datum .monat { font-size: 13px; letter-spacing: 2px; }
.event-datum .tag-name { color: var(--tuerkis); }
.event-datum .monat { color: var(--text-gedaempft); }
.event-datum .tag { font-size: 34px; font-weight: 700; }
.event-text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-text h3 { font-family: var(--schrift-text); font-size: 19px; font-weight: 600; }
.event-text h3 a { color: var(--text); text-decoration: none; }
.event-text h3 a:hover { color: var(--tuerkis); }
.event-text p { margin: 0; color: var(--text-gedaempft); font-size: 15px; }
.event.vorbei { opacity: 0.6; }

.event-detail { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.event-detail h1 { font-size: 40px; line-height: 1.1; }
.eckdaten { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--text-gedaempft); }
.eckdaten span { display: inline-flex; align-items: center; gap: 8px; }
.beschreibung { white-space: pre-line; font-size: 17px; max-width: 70ch; }

/* ---------- Spiele ---------- */

.spiele { display: flex; flex-wrap: wrap; gap: 16px; }
.spiel {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  color: var(--text);
}
.spiel.online { border-color: var(--tuerkis); box-shadow: 0 0 22px rgba(46, 230, 214, 0.18); }
.spiel-bild {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #0E1424;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--schrift-titel);
  font-size: 28px;
  font-weight: 700;
  color: var(--linie-hell);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.spiel-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spiel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spiel-name { font-family: var(--schrift-titel); font-weight: 700; font-size: 18px; }
.spiel-info { font-size: 14px; color: var(--text-gedaempft); }

/* ---------- Mitglieder & Listen ---------- */

.person { display: flex; align-items: center; gap: 12px; }
.person-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.person-name { font-weight: 600; }
.person-info { font-size: 13px; color: var(--text-gedaempft); }

.kasten-titel { font-size: 18px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.person-info.frei { color: var(--tuerkis); }
.person-info.beschaeftigt { color: var(--orange); }
.leer-eintrag { padding: 4px 0; }

.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.teilnehmer { display: flex; flex-wrap: wrap; gap: 10px; }
.teilnehmer li { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--flaeche-hell); }
.teilnehmer .avatar { width: 32px; height: 32px; font-size: 14px; }

/* ---------- Chat ---------- */

.nav .zaehler {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--magenta);
  color: var(--grund);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-spalte { gap: 14px; }
.chat-titel { font-weight: 600; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; }
.chat-verlauf {
  height: min(62vh, 640px);
  min-height: 320px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-tag {
  align-self: center;
  margin: 12px 0 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--flaeche-hell);
  color: var(--text-gedaempft);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.chat-nachricht { display: flex; gap: 12px; align-items: flex-start; padding: 6px 8px; border-radius: 10px; }
.chat-nachricht:not(.folge) { margin-top: 8px; }
.chat-nachricht.folge { padding-left: 60px; padding-top: 1px; }
.chat-nachricht:hover { background: rgba(255, 255, 255, 0.025); }
.chat-nachricht.eigene .chat-kopf strong { color: var(--tuerkis); }
.chat-inhalt { min-width: 0; }
.chat-kopf { display: flex; gap: 10px; align-items: baseline; }
.chat-kopf span { font-size: 12px; color: var(--text-schwach); }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.chat-eingabe { display: flex; gap: 10px; }
.chat-eingabe input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--linie-hell);
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
}
.chat-eingabe input:focus { outline: none; border-color: var(--tuerkis); box-shadow: 0 0 0 3px rgba(46, 230, 214, 0.25); }

/* ---------- Tabellen (Rangliste) ---------- */

.tabelle-kasten { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th, .tabelle td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle thead th { font-family: var(--schrift-titel); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-gedaempft); }
.tabelle tbody tr:last-child td, .tabelle tbody tr:last-child th { border-bottom: 0; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle .wertung { font-family: var(--schrift-titel); font-weight: 700; font-size: 17px; color: var(--tuerkis); }
.tabelle .platz { font-family: var(--schrift-titel); font-weight: 700; width: 56px; }
.tabelle .platz-1 { color: var(--gelb); }
.tabelle .platz-2 { color: #B7C4D8; }
.tabelle .platz-3 { color: #C98B5A; }
.tabelle tr.ich td { background: rgba(46, 230, 214, 0.06); }
.tabelle .person { gap: 10px; }
.tabelle.vergleich td.selbst { color: var(--text-schwach); }
.tabelle.vergleich tbody th { font-weight: 600; }
.avatar.klein { width: 28px; height: 28px; font-size: 13px; }
.rang-zeile { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.rang-zeile:last-child { border-bottom: 0; }
.rang-zeile .platz { width: 22px; font-family: var(--schrift-titel); font-weight: 700; color: var(--text-gedaempft); }
.rang-zeile .wert { font-family: var(--schrift-titel); font-weight: 600; }

/* ---------- Formulare ---------- */

.formular-seite {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.formular-karte {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.formular-karte .logo { justify-content: center; }
.formular-karte .logo-wort { font-size: 56px; }
.formular-karte h1 { font-size: 22px; font-weight: 600; letter-spacing: 1px; text-align: center; }
.formular-karte p { margin: 0; color: var(--text-gedaempft); text-align: center; }

form.felder { display: flex; flex-direction: column; gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-weight: 600; font-size: 15px; }
.feld input, .feld textarea, .feld select {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--linie-hell);
  background: var(--grund);
  color: var(--text);
  font: inherit;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none;
  border-color: var(--tuerkis);
  box-shadow: 0 0 0 3px rgba(46, 230, 214, 0.25);
}
.feld .hilfe { font-size: 13px; color: var(--text-gedaempft); }
.feld .hilfe ul { margin: 4px 0 0; padding-left: 18px; }
.feld .fehler, .formfehler { font-size: 14px; color: var(--rot); }
.formfehler ul { margin: 0; padding-left: 18px; }

.zeile-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.zeile-form .feld { flex: 1 1 240px; }

.einladung-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; }
.einladung-zeile .person-text { flex: 1 1 220px; }
.link-feld {
  flex: 2 1 320px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--linie);
  background: var(--grund);
  color: var(--tuerkis);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 13px;
}

.fuss {
  padding-top: 16px;
  border-top: 1px solid var(--linie);
  color: var(--text-schwach);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.fuss a { color: var(--text-gedaempft); }

.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

:focus-visible { outline: 2px solid var(--tuerkis); outline-offset: 2px; }
