/* Atlantis Coordination - gemeinsames Stylesheet fuer Portal + Software-
   Bereich. Eine Quelle, damit jede Seite garantiert gleich aussieht -
   Aenderungen hier wirken sich auf alle Seiten aus, die diese Datei
   einbinden. */

:root {
  --bg: #040810;
  --bg2: #07101c;
  --panel: #0c1c30;
  --panel2: #112941;
  --border: #1f4259;
  --accent: #3ddbff;
  --accent-dim: #1d6b85;
  --accent-dark: #040810;
  --text: #e8f4fb;
  --text-dim: #6f93ab;
  --good: #4ade80;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(61,219,255,0.09), transparent 60%),
    radial-gradient(ellipse at 10% 110%, rgba(29,107,133,0.08), transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 32px;
}

/* --- Ring-Header (Stargate-Ring), auf jeder Seite identisch --- */
.ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  margin-bottom: 14px;
  box-shadow: 0 0 40px rgba(61,219,255,0.25), inset 0 0 30px rgba(61,219,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 40s linear infinite;
}
.ring.large { width: 150px; height: 150px; margin-bottom: 18px; }
.ring::before, .ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(61,219,255,0.35);
}
.ring::before { width: 86%; height: 86%; }
.ring::after { width: 62%; height: 62%; }
.ring .glyphs { position: absolute; inset: 0; border-radius: 50%; }
.ring .glyphs span {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  top: 50%; left: 50%;
  transform-origin: 0 0;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(61,219,255,0.5);
  font-weight: 700;
  text-align: center;
}
h1.small { font-size: 18px; letter-spacing: 2px; }
.subtitle {
  margin: 0 0 36px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-align: center;
}

/* --- Breadcrumb / Zurueck-Link, auf jeder Unterseite identisch --- */
.crumbs {
  width: 100%;
  max-width: min(1400px, 92vw);
  margin-bottom: 18px;
  font-size: 13px;
}
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--text-dim); margin: 0 6px; }
.crumbs .current { color: var(--text-dim); }

/* --- Karten-Grid (Kategorien/Links) --- */
.grid {
  width: 100%;
  max-width: min(1400px, 92vw);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.card.link { display: block; text-decoration: none; color: var(--text); cursor: pointer; }
.card.link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .icon { font-size: 26px; margin-bottom: 10px; display: block; }
.card .label { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.card .desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.card .arrow { position: absolute; right: 18px; top: 18px; color: var(--accent); opacity: 0.6; font-size: 18px; }
.card .count {
  position: absolute; right: 18px; bottom: 16px;
  font-size: 11px; color: var(--text-dim);
  background: var(--panel2); border-radius: 6px; padding: 2px 7px;
}

/* --- Status-Leiste (Portal-Startseite) --- */
.status-card {
  width: 100%;
  max-width: min(1400px, 92vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
.dot.online { background: var(--good); box-shadow: 0 0 8px var(--good); }
.status-text { font-size: 13px; color: var(--text-dim); flex: 1; }
.status-text b { color: var(--text); }
.status-stats { display: flex; gap: 18px; font-size: 12px; color: var(--text-dim); }
.status-stats span b { color: var(--accent); font-size: 14px; }

/* --- Datei-/Listenzeilen (Software-Uebersichten) --- */
.section-title {
  width: 100%;
  max-width: min(1400px, 92vw);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.section-title:first-of-type { margin-top: 0; }
.item {
  width: 100%;
  max-width: min(1400px, 92vw);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.item:hover { border-color: var(--accent); }
.item .icon { font-size: 20px; width: 32px; text-align: center; flex-shrink: 0; }
.item .meta { flex: 1; min-width: 0; }
.item .name { font-size: 14px; font-weight: 600; }
.item .desc { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.item .board {
  font-size: 11px; color: var(--text-dim);
  background: var(--panel2); border-radius: 6px; padding: 2px 7px;
  white-space: nowrap; flex-shrink: 0;
}
.item .size { font-size: 11.5px; color: var(--text-dim); width: 60px; text-align: right; flex-shrink: 0; }

.empty-hint {
  width: 100%;
  max-width: min(1400px, 92vw);
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* --- Panel (Impressum & Co.) --- */
.panel {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  line-height: 1.7;
  font-size: 14.5px;
}
.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }
.panel b { color: var(--text); }
.note { max-width: 560px; margin-top: 18px; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }

a { color: var(--accent); }

footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.6;
  text-align: center;
  letter-spacing: 0.5px;
}
footer a { color: var(--text-dim); text-decoration: underline; }
