/* Weboberfläche des Servers und Grundlage der Anmeldeseite. Grundlage und alle Bausteine: basis.css (docs/DESIGN.md).
   Hier steht nur, was es nur im Browser gibt. */

/* Anmeldung und Einrichtung: Fenster in der Mitte, dahinter der Serverraum. */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(6, 14, 36, .2), rgba(3, 6, 14, .8)), url(serverraum.svg) center / cover no-repeat #070b16; }
.gate .center { margin: 0; padding: 0; width: 100%; }
.gate section.card { margin: 0; padding: 28px 28px 22px; border-color: rgba(255, 255, 255, .14); border-radius: var(--radius-xl); box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  background: var(--koernung), linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 45%), rgba(10, 18, 40, .78); box-shadow: var(--glas-kante), 0 30px 90px rgba(0, 0, 0, .65); }
.gate section.card h2 { background: linear-gradient(180deg, #fff, #e4ecfb 50%, #a9c3f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate section.card h2::before { -webkit-text-fill-color: initial; }
.gate section.card h2 { font-size: var(--fs-xl); margin-bottom: var(--s4); display: flex; align-items: center; gap: 12px; }
.gate section.card h2::before { content: ""; width: 34px; height: 34px; border-radius: 10px; flex: none; background: url(icon.svg) center / cover no-repeat; box-shadow: var(--shadow-1); }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.qr { display: flex; justify-content: center; margin: 8px 0; }
.qr svg { border-radius: 10px; max-width: 100%; height: auto; }

/* Dateien, die noch hochgeladen werden */
tr.coming td { color: var(--muted); background: color-mix(in srgb, var(--accent) 4%, transparent); }
tr.coming .coming-name { font-style: italic; display: inline-flex; gap: 8px; align-items: center; }
tr.coming .bar { display: inline-block; width: 70px; vertical-align: middle; margin-right: 6px; }
.chip.coming { color: var(--accent); background: var(--accent-soft); margin-left: 6px; }

/* Fassungen vergleichen */
.diff-abschnitt { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: var(--s3) 0; overflow: hidden; }
.diff-kopf { padding: 6px 10px; background: var(--well); color: var(--muted); font-size: var(--fs-xs); border-bottom: 1px solid var(--line); }
table.diff { font-family: var(--mono); font-size: 12.5px; border-collapse: collapse; width: 100%; }
table.diff td { padding: 1px 8px; border: 0; vertical-align: top; }
table.diff tr:hover { background: none; }
table.diff .diff-nr { width: 1%; color: var(--faint); text-align: right; user-select: none; white-space: nowrap; }
table.diff .diff-art { width: 1%; user-select: none; font-weight: 700; }
table.diff .diff-text { white-space: pre-wrap; word-break: break-word; }
tr.diff-plus { background: var(--ok-soft); } tr.diff-plus .diff-art, tr.diff-plus .diff-text { color: var(--ok); }
tr.diff-minus { background: var(--danger-soft); } tr.diff-minus .diff-art, tr.diff-minus .diff-text { color: var(--danger); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 45%, transparent); }
tr.diff-gleich .diff-text { color: var(--muted); }

/* Wiederherstellungscodes (CD-36, 29 Zeichen): nie mitten im Code umbrechen */
pre.copy.codes { word-break: normal; overflow-wrap: normal; white-space: pre; overflow-x: auto; letter-spacing: .02em; line-height: 1.7; }
