/*
 * Drixity Resolve — Oberflaeche.
 *
 * Die Bildsprache folgt der Drixity-Website (DrixityIdentity/drixity-website-v2.html):
 * sehr dunkler Grund (--void), duenne helle Linien, ein Cyan-Akzent, der Farbverlauf nur als
 * Signal — nie als Flaeche. Uebernommen sind die Token, nicht das Marketing-Layout: das hier ist
 * ein Arbeitswerkzeug, das man taeglich stundenlang ansieht. Deshalb ruhigere Abstaende,
 * kraeftigere Textfarbe und keine Animation, die bei jeder Zeile mitlaeuft.
 *
 * Schriften bewusst aus dem System: die Website laedt Space Grotesk und IBM Plex Mono von
 * Google. Fuer ein internes Werkzeug waere das ein Verbindungsaufbau zu Dritten bei jedem
 * Seitenaufruf — und die Content-Security-Policy verbietet externe Quellen ohnehin. Wer die
 * Markenschrift will, legt die Dateien unter /assets/schrift/ ab und ergaenzt @font-face hier.
 */

:root {
  --ink: #f5f7ff;
  --muted: #929bb1;
  --muted-2: #687086;
  --void: #050609;
  --void-2: #090b11;
  --panel: rgba(13, 16, 25, .74);
  --panel-solid: #0e111a;
  --line: rgba(255, 255, 255, .1);
  --line-bright: rgba(255, 255, 255, .18);
  --cyan: #00d4ff;
  --blue: #3772ff;
  --violet: #795cff;
  --magenta: #e450d6;
  --orange: #ff9a62;
  --emerald: #21d69b;
  --danger: #ff6b7d;
  --accent: var(--cyan);
  --gradient: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 32%, var(--violet) 62%, var(--magenta) 82%, var(--orange) 100%);
  --container: 1320px;
  --side: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --sans: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 0%, rgba(82, 61, 255, .10), transparent 30rem),
    radial-gradient(circle at 0% 42%, rgba(0, 212, 255, .06), transparent 34rem),
    var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.glanz {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(0, 212, 255, .07), transparent 45%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Kopf */

.kopf {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 9, .82);
  backdrop-filter: blur(14px);
}

.kopf-innen {
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--side);
}

.marke { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); }
.marke:hover { text-decoration: none; }

.marke-zeichen {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--gradient);
  box-shadow: 0 0 24px rgba(0, 212, 255, .35);
}

.marke-text { font-size: 15px; letter-spacing: -.01em; }
.marke-text b { font-weight: 700; }

.nav { display: flex; gap: 4px; margin-left: 8px; }

.nav a {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.nav a:hover { color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .03); }
.nav a.aktiv { border-color: rgba(0, 212, 255, .35); color: var(--ink); background: rgba(0, 212, 255, .07); }

.abmelden { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.wer { color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; }

/* ---------------------------------------------------------------- Grundbausteine */

.huelle {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px var(--side) 64px;
}

h1 { margin: 0 0 6px; font-size: clamp(23px, 3vw, 31px); font-weight: 600; letter-spacing: -.02em; }
h2 { margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rechts { margin-left: auto; }
.leise { color: var(--muted); }
.klein { font-size: 12.5px; }

.augenbraue {
  display: inline-flex; gap: 9px; align-items: center;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}

.augenbraue::before {
  width: 20px; height: 1px;
  background: var(--gradient);
  content: "";
}

.tafel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.gitter { display: grid; gap: 14px; }
.gitter.vier { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gitter.zwei { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }

@media (max-width: 900px) { .gitter.zwei { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Kennzahl */

.kennzahl { padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.kennzahl .marke-klein { color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.kennzahl .wert { margin-top: 7px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.kennzahl.betont .wert { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- Knopf */

.knopf {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px;
  border: 0; border-radius: 11px;
  background: #f4f6ff; color: #070910;
  font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s ease, color .3s ease, border-color .3s ease;
}

.knopf:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(55, 114, 255, .22); }

.knopf.schlicht {
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, .025);
  color: #d8ddec;
}

.knopf.schlicht:hover { border-color: rgba(0, 212, 255, .45); color: #fff; box-shadow: 0 12px 34px rgba(0, 212, 255, .07); }
.knopf.gefahr { background: rgba(255, 107, 125, .12); border: 1px solid rgba(255, 107, 125, .4); color: #ffd0d6; }
.knopf:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- Formular */

input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: var(--ink);
  font-family: var(--sans); font-size: 14px;
}

textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(0, 212, 255, .55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}

label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12.5px; }
.feld { margin-bottom: 14px; }

/* ---------------------------------------------------------------- Liste */

.liste { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.posten {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  transition: background .2s ease;
}

.posten:last-child { border-bottom: 0; }
.posten:hover { background: rgba(255, 255, 255, .035); text-decoration: none; }

.punkt-neu { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(0, 212, 255, .8); }
.punkt-leer { width: 8px; }

.posten .titel { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.posten .von { color: var(--muted); font-size: 12.5px; }
.posten .vorschau { margin-top: 4px; color: var(--muted-2); font-size: 12.5px; }
.posten .meta { color: var(--muted-2); font-family: var(--mono); font-size: 11px; text-align: right; white-space: nowrap; }

/* ---------------------------------------------------------------- Marken */

.tag {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  color: #858ea2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase;
}

.tag.neu { border-color: rgba(0, 212, 255, .4); color: #7fe6ff; }
.tag.offen { border-color: rgba(33, 214, 155, .4); color: #7ff0cc; }
.tag.wartet { border-color: rgba(255, 154, 98, .4); color: #ffc9a8; }
.tag.geschlossen { color: var(--muted-2); }
.tag.spam { border-color: rgba(255, 107, 125, .45); color: #ffb3bd; }

/* ---------------------------------------------------------------- Verlauf */

.brief { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.brief-kopf { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.brief-kopf .wer2 { font-size: 13.5px; font-weight: 600; }
.brief-kopf .wann { margin-left: auto; color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.brief.aus { border-color: rgba(0, 212, 255, .25); }
.brief.aus .brief-kopf { background: rgba(0, 212, 255, .05); }

.brief-text { margin: 0; padding: 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

.rahmen { display: block; width: 100%; min-height: 420px; border: 0; background: #0b0e15; }

.hinweis {
  margin-bottom: 14px; padding: 11px 14px;
  border: 1px solid rgba(255, 154, 98, .35); border-radius: 10px;
  background: rgba(255, 154, 98, .07);
  color: #ffd8c2; font-size: 13px;
}

.hinweis.gut { border-color: rgba(33, 214, 155, .35); background: rgba(33, 214, 155, .07); color: #b6f5df; }
.hinweis.schlecht { border-color: rgba(255, 107, 125, .35); background: rgba(255, 107, 125, .07); color: #ffc9d0; }

/* ---------------------------------------------------------------- Anmelden */

.anmelde-huelle { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.anmelde-karte { width: min(400px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-solid); box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }

/* ---------------------------------------------------------------- Fuss */

.fuss {
  position: relative; z-index: 1;
  display: flex; gap: 8px; justify-content: center;
  padding: 26px var(--side) 40px;
  color: var(--muted-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}

.blaettern { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 20px; }

table.daten { width: 100%; border-collapse: collapse; font-size: 13px; }
table.daten th { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
table.daten td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.daten tr:last-child td { border-bottom: 0; }
table.daten .mono { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

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