/* ECHO Tools Hub – Glas-Konsole (Schibsted Grotesk): dunkles Datacenter, Glaskacheln, Blau/Violett/Cyan */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); }

:root {
  --bg: #050816;
  --glass: rgba(16, 22, 52, 0.58);
  --glass-solid: #0d1230;
  --edge: rgba(140, 170, 255, 0.2);
  --edge-hi: rgba(160, 190, 255, 0.38);
  --seam: rgba(150, 175, 255, 0.14);
  --fg: #eef2ff;
  --muted: #b6c0de;
  --dim: #8f9bc2;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #fb7185;
  --blue: #4f8cff;
  --act: #6cb6ff;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --green: #4ade80;
  --amber: #fbbf24;
  --r: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Eigenes Foto möglich: --bg-image: url("../img/hintergrund.jpg"); */
  --bg-image: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; color-scheme: dark; background: var(--bg); }
body {
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg); min-height: 100vh; line-height: 1.5;
  -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
/* Datacenter-Hintergrund: weiches Licht an den Rändern in Cyan, Violett und Blau */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--bg-image),
    radial-gradient(ellipse 30% 46% at 0% 28%, rgba(34, 211, 238, 0.55), transparent 72%),
    radial-gradient(ellipse 24% 38% at 2% 74%, rgba(255, 149, 70, 0.34), transparent 72%),
    radial-gradient(ellipse 32% 50% at 100% 34%, rgba(167, 139, 250, 0.58), transparent 72%),
    radial-gradient(ellipse 24% 38% at 98% 80%, rgba(232, 121, 249, 0.4), transparent 72%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79, 140, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(99, 102, 241, 0.34), transparent 70%),
    linear-gradient(180deg, #040714, #070b22 45%, #0a0925);
  background-size: cover;
}
::selection { background: rgba(108, 182, 255, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Glas: gemeinsamer Look für Kacheln, Chips und Streifen-Karten */
.chip, .tool, .live-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 55%), var(--glass);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chip, .tool, .live-card { background: var(--glass-solid); }
}

.page { max-width: 1400px; margin: 0 auto; padding: clamp(1rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2.5rem) 1rem; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: 1.1rem; }
.logo { width: 64px; height: 54px; flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(79, 140, 255, 0.55)); }
.brand-title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand-title span { color: var(--act); }
.brand-sub { margin-top: 0.4rem; color: var(--muted); font-size: 1rem; }
.top-info { display: flex; align-items: stretch; gap: 0.9rem; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 1.1rem; border-radius: 14px; }
.chip strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.chip small { display: block; font-size: 0.8rem; color: var(--muted); }
.chip-clock .ico { width: 30px; height: 30px; color: var(--act); filter: drop-shadow(0 0 6px rgba(108, 182, 255, 0.6)); }
.chip-status { border-color: rgba(74, 222, 128, 0.45); }
.chip-status strong { color: #b9f7cf; }

.welcome { margin: clamp(1.6rem, 4vw, 2.6rem) 0 1.4rem; }
.welcome h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
.welcome p { margin-top: 0.3rem; color: var(--muted); }

/* Status-Punkt */
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--dim); transition: background 0.3s, box-shadow 0.3s; }
.status-dot.online { background: var(--ok); box-shadow: 0 0 10px 1px rgba(74, 222, 128, 0.8); }
.status-dot.offline { background: var(--err); box-shadow: 0 0 10px 1px rgba(251, 113, 133, 0.8); }
.status-dot.idle { background: var(--warn); box-shadow: 0 0 10px 1px rgba(251, 191, 36, 0.8); }

/* Kacheln */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.tool { --accent: var(--blue); --accent2: var(--cyan);
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon text" "foot foot";
  column-gap: 1.1rem; row-gap: 0.25rem; align-content: start; min-height: 11.5rem; padding: 1.25rem 1.3rem 1.1rem; overflow: hidden;
  border-radius: var(--r); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 28px -12px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--fg); text-decoration: none; transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.tool-cyan { --accent: var(--cyan); --accent2: #38bdf8; }
.tool-blue { --accent: var(--blue); --accent2: #38bdf8; }
.tool-violet { --accent: var(--violet); --accent2: #7c6cf0; }
.tool-magenta { --accent: var(--magenta); --accent2: #a78bfa; }
.tool-green { --accent: var(--green); --accent2: #22d3ee; }
.tool-amber { --accent: var(--amber); --accent2: #fb923c; }
.tool:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 80%, transparent); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 34px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.tool-icon { grid-area: icon; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--accent), var(--accent2)); box-shadow: 0 0 18px -2px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.tool-icon .ico { width: 30px; height: 30px; stroke-width: 1.9; }
.tool-title { grid-area: title; align-self: end; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.tool-text { grid-area: text; color: var(--muted); font-size: 0.93rem; max-width: 34ch; }
.tool-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; padding-top: 1rem; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.75rem; border-radius: 999px; font-size: 0.8rem; color: var(--fg); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--edge); }
.tool-go { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; color: var(--act); background: rgba(108, 182, 255, 0.1); border: 1px solid rgba(108, 182, 255, 0.5); transition: background 0.2s, color 0.2s; }
.tool:hover .tool-go { background: var(--act); color: #04122a; }

/* Streifen: Live-Streams und Gratis-Spiele */
.live-strip { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }
.live-strip[hidden] { display: none; }
.live-card { display: flex; align-items: center; gap: 0.75rem; max-width: 100%; padding: 0.6rem 1rem; border-radius: 14px; color: var(--fg); text-decoration: none; transition: border-color 0.25s, transform 0.3s var(--ease); }
.live-card:hover { border-color: var(--act); transform: translateY(-2px); }
.live-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fecdd3; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--err); box-shadow: 0 0 8px var(--err); animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
.live-info { min-width: 0; }
.live-title { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.live-meta { font-size: 0.82rem; color: var(--muted); }
.store-chip { padding: 0.15rem 0.55rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: #04122a; background: #c9d6e8; }
.store-chip--steam { background: var(--act); }
.store-chip--epic { background: #c9d6e8; }
.store-chip--more { background: var(--violet); }

/* Fuß */
.page-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1400px; margin: 0 auto; padding: 1.6rem clamp(1rem, 3vw, 2.5rem) 2.2rem; color: var(--dim); font-size: 0.82rem; }
.page-footer > div { display: flex; flex-direction: column; }
.page-footer strong { color: var(--fg); font-size: 1rem; }
.quote { color: var(--muted); font-size: 0.95rem; }

/* Einmal beim Laden: Kacheln blenden sanft ein */
@media (prefers-reduced-motion: no-preference) {
  .tool, .chip { animation: riseIn 0.6s var(--ease) both; }
  .tool:nth-child(2) { animation-delay: 0.05s; } .tool:nth-child(3) { animation-delay: 0.1s; }
  .tool:nth-child(4) { animation-delay: 0.15s; } .tool:nth-child(5) { animation-delay: 0.2s; } .tool:nth-child(6) { animation-delay: 0.25s; }
  @keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Responsive */
@media (min-width: 1900px) {
  html { font-size: 18px; }
  .page, .page-footer { max-width: 1760px; }
}
@media (max-width: 1100px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
  .top-info { width: 100%; }
  .chip { flex: 1 1 100%; }
  .logo { width: 50px; height: 42px; }
  .live-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .live-card { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
