/* DFZ Server Center – Glas-Konsole (Schibsted Grotesk + Martian Mono): dunkles Datacenter, Glasflächen, Blau/Violett/Cyan */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url("fonts/martian-mono.woff2") format("woff2"); }

:root {
  --bg: #050816;
  --glass: rgba(16, 22, 52, 0.58);
  --glass-hi: rgba(34, 46, 98, 0.62);
  --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;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 18px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Eigenes Foto möglich: --bg-image: url("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: Serverreihen als weiches Licht an den Rändern, Glühen in Blau, Violett, Cyan */
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; }
* { scrollbar-width: thin; scrollbar-color: rgba(150, 175, 255, 0.35) transparent; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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 Rahmen, Kacheln und Karten */
.container, .node, .service-card, .global-status, .icon-btn, .ts-overlay-panel {
  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))) {
  .container, .node, .service-card, .global-status, .icon-btn, .ts-overlay-panel { background: var(--glass-solid); }
}

.container { max-width: 1480px; margin: clamp(0.5rem, 1.6vw, 1.4rem) auto; width: calc(100% - clamp(1rem, 3vw, 2.5rem)); padding: 0.9rem clamp(0.8rem, 2vw, 1.5rem) 1.6rem; border-radius: 24px; }

/* Icon-Kacheln */
.tile { --c1: var(--blue); --c2: var(--cyan); display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 0 16px -2px var(--c1), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.tile .ico { width: 18px; height: 18px; stroke-width: 1.9; }
.tile-lg { width: 54px; height: 54px; flex-basis: 54px; border-radius: 15px; }
.tile-lg .ico { width: 30px; height: 30px; }
.tile-blue { --c1: #2563eb; --c2: #38bdf8; }
.tile-violet { --c1: #5b4bdb; --c2: #a78bfa; }
.tile-cyan { --c1: #0891b2; --c2: #22d3ee; }
.tile-magenta { --c1: #a21caf; --c2: #a78bfa; }
.tile-green { --c1: #15803d; --c2: #4ade80; }

/* Leiste oben */
.tool-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; padding: 0 0.4rem; margin-bottom: 0.3rem; }
.tool-nav-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--act); text-decoration: none; font-size: 0.9rem; padding: 0.35rem 0.5rem; border-radius: 8px; transition: color 0.15s, background 0.15s; }
.tool-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.tool-nav-path { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.nav-arrow { width: 14px; height: 14px; }

/* Kopf */
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 0.9rem 0.3rem 1.2rem; }
.page-title { display: flex; align-items: center; gap: 1rem; }
.page-header h1 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.page-header p { color: var(--muted); margin-top: 0.3rem; font-size: 0.95rem; }
.global { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.updated { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--act); cursor: pointer; transition: color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:hover:not(:disabled) { color: #fff; border-color: var(--act); box-shadow: 0 0 18px -2px rgba(108, 182, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.icon-btn:disabled { opacity: 0.5; cursor: wait; }
.global-status { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 42px; padding: 0.5rem 1.1rem; border-radius: 12px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.global-status[data-state="online"] { color: #b9f7cf; border-color: rgba(74, 222, 128, 0.55); box-shadow: 0 0 22px -4px rgba(74, 222, 128, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.global-status[data-state="idle"] { color: #fde68a; border-color: rgba(251, 191, 36, 0.55); box-shadow: 0 0 22px -4px rgba(251, 191, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.global-status[data-state="offline"] { color: #fecdd3; border-color: rgba(251, 113, 133, 0.6); box-shadow: 0 0 22px -4px rgba(251, 113, 133, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12); }

/* 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, .status-dot.starting { background: var(--warn); box-shadow: 0 0 10px 1px rgba(251, 191, 36, 0.8); }
.status-dot.unknown { background: var(--dim); box-shadow: none; }

/* Dienste-Streifen */
.topology { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.node { --glow: var(--blue); position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tile name" "tile state" "tile figure"; align-items: center; column-gap: 1rem; row-gap: 0.15rem; padding: 1rem 1.15rem; border-radius: var(--r); border-color: color-mix(in srgb, var(--glow) 45%, transparent); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 26px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.node:nth-child(2) { --glow: var(--violet); }
.node:nth-child(3) { --glow: var(--cyan); }
.node:nth-child(4) { --glow: var(--magenta); }
.node .tile { grid-area: tile; width: 56px; height: 56px; border-radius: 15px; }
.node .tile .ico { width: 30px; height: 30px; }
.node-name { grid-area: name; font-weight: 600; font-size: 1rem; }
.node-state { grid-area: state; display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--muted); }
.node-figure { grid-area: figure; display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.1rem; }
.node-figure strong { font-weight: 600; font-size: clamp(1.5rem, 1.8vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.node:has(.status-dot.offline) .node-figure strong { color: var(--err); }
.node-figure small { font-size: 0.85rem; color: var(--muted); }

/* Kartenraster: TeamSpeak | Wer ist online | Discord, darunter Root (breit) | Nitrado */
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.card-ts, .card-online, .card-discord { grid-column: span 2; }
.card-root { grid-column: span 4; }
.card-nitrado { grid-column: span 2; }

.service-card { --glow: var(--blue); display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1.3rem; border-radius: var(--r); scroll-margin-top: 1rem; border-color: color-mix(in srgb, var(--glow) 38%, transparent); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.card-online { --glow: var(--cyan); }
.card-discord { --glow: var(--violet); }
.card-root { --glow: var(--cyan); }
.card-nitrado { --glow: var(--magenta); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.card-title { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--fg); }
.card-body { flex: 1; display: flex; flex-direction: column; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--seam); font-size: 0.92rem; }
.card-body > .stat-row:first-child, .usage-header + .stat-row { border-top: 0; }
.stat-label { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--muted); }
.stat-label .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: var(--act); background: rgba(108, 182, 255, 0.1); border: 1px solid rgba(140, 170, 255, 0.2); stroke-width: 1.7; }
.card-discord .stat-label .ico { color: var(--violet); background: rgba(167, 139, 250, 0.1); }
.card-nitrado .stat-label .ico { color: var(--magenta); background: rgba(232, 121, 249, 0.09); }
.stat-value { color: var(--fg); text-align: right; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
#ts-version, #ts-hostname, .stat-value.ip { font-family: var(--mono); font-size: 0.78rem; }
.stat-value.ip, #ts-hostname { margin-left: auto; }
.muted { color: var(--dim); font-size: 0.9rem; }

.btn-copy { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.05); color: var(--act); cursor: pointer; transition: color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn-copy .ico { width: 15px; height: 15px; }
.btn-copy:hover { color: #fff; border-color: var(--act); box-shadow: 0 0 14px -2px rgba(108, 182, 255, 0.6); }
.btn-copy.copied { color: var(--ok); border-color: var(--ok); }

.card-actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.btn { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.65rem 1.1rem; border-radius: var(--r-sm); border: 1px solid var(--edge-hi); background: rgba(255, 255, 255, 0.06); color: var(--fg); font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn .ico { width: 18px; height: 18px; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: var(--act); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #1d4ed8, #0369a1); border-color: rgba(108, 182, 255, 0.7); color: #fff; font-weight: 600; box-shadow: 0 0 20px -4px rgba(56, 130, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #2563eb, #0284c7); border-color: #9ccfff; box-shadow: 0 0 26px -2px rgba(56, 130, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-secondary { color: var(--fg); }

/* TeamSpeak-Beschreibung (auch Discord-Text) */
.discord-description { display: flex; gap: 0.9rem; margin-top: 0.9rem; padding: 0.8rem 0.9rem; border-radius: 12px; background: rgba(8, 12, 34, 0.45); border: 1px solid var(--seam); font-size: 0.82rem; color: var(--muted); }
.discord-description .tile { margin-top: 0.1rem; }
.ts-description p + p { margin-top: 0.35rem; }
.ts-description strong { color: var(--fg); font-weight: 600; font-size: 0.92rem; }
.card-discord .discord-description { -webkit-line-clamp: 6; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; flex: 1; }

/* Wer ist online */
.card-online { min-height: 0; }
.ts-online-scroll { flex: 1 1 0; min-height: 16rem; overflow-y: auto; padding-right: 0.35rem; }

/* Root-Server */
.card-root .card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; }
.card-root .card-body > .muted { grid-column: 1 / -1; }
.root-capacity-section { display: flex; flex-direction: column; }
.root-usage-section { display: flex; flex-direction: column; gap: 0.2rem; padding-left: 2.2rem; border-left: 1px solid var(--seam); }
.usage-header { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--act); margin-bottom: 0.45rem; font-weight: 600; }
.usage-metric { --c1: #2563eb; --c2: #22d3ee; display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "ico row" "ico bar"; align-items: center; column-gap: 0.9rem; row-gap: 0.4rem; padding: 0.55rem 0; }
.usage-metric:nth-child(3) { --c1: #7c3aed; --c2: #c084fc; }
.usage-metric:nth-child(4) { --c1: #15803d; --c2: #4ade80; }
.usage-metric > .ico { grid-area: ico; width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 0 18px -3px var(--c2), inset 0 1px 0 rgba(255, 255, 255, 0.35); stroke-width: 1.8; }
.usage-sub { margin-left: 0.5rem; font-size: 0.78rem; color: var(--cyan); font-variant-numeric: tabular-nums; }
.usage-metric:nth-child(3) .usage-sub { color: var(--violet); }
.usage-metric:nth-child(4) .usage-sub { color: var(--ok); }
.usage-row { grid-area: row; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 0.95rem; }
.usage-label { color: var(--fg); font-weight: 500; }
.usage-value { color: var(--fg); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.usage-bar-container { grid-area: bar; height: 10px; border-radius: 999px; background: rgba(5, 8, 24, 0.7); border: 1px solid var(--seam); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); }
.usage-bar { height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 0 12px 1px var(--c2); transition: width 0.6s var(--ease); }

/* Channel-Baum (Karte und Overlay) */
.ts-channel-list { list-style: none; }
.ts-channel-item { margin: 0.1rem 0; }
.ts-channel-header { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; gap: 0.5rem; }
.ts-channel-name { font-size: 0.92rem; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-client-count { font-size: 0.75rem; font-weight: 600; color: var(--act); background: rgba(108, 182, 255, 0.1); border: 1px solid rgba(108, 182, 255, 0.45); padding: 0 0.45rem; border-radius: 7px; min-width: 1.8rem; text-align: center; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ts-spacer { margin: 0.7rem 0 0.2rem; }
.ts-spacer-label { font-size: 0.78rem; font-weight: 600; color: var(--fg); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0; border-bottom: 1px solid var(--seam); }
.ts-client-list { list-style: none; margin: 0.1rem 0 0.25rem; }
.ts-client-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.12rem 0 0.12rem 0.9rem; font-size: 0.86rem; color: var(--muted); }
.ts-client-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, 0.8); flex: 0 0 8px; }
.ts-client-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-indent-0 { padding-left: 0; } .ts-indent-1 { padding-left: 0.75rem; } .ts-indent-2 { padding-left: 1.5rem; } .ts-indent-3 { padding-left: 2.25rem; } .ts-indent-4 { padding-left: 3rem; }
.ts-overlay-empty, .ts-overlay-error, .ts-overlay-loading { padding: 1rem; color: var(--muted); font-size: 0.9rem; }
.ts-overlay-error { color: var(--err); }

/* TeamSpeak-Overlay */
.ts-overlay[hidden] { display: none; }
.ts-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ts-overlay-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 16, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn 0.2s var(--ease); }
.ts-overlay-panel { position: relative; width: min(92vw, 500px); max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); border-color: var(--edge-hi); background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 55%), rgba(12, 17, 44, 0.9); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px -12px var(--blue), inset 0 1px 0 rgba(255, 255, 255, 0.12); animation: slideUp 0.25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ts-overlay-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--seam); }
.ts-overlay-title { font-size: 1rem; font-weight: 600; }
.ts-overlay-controls { display: flex; align-items: center; gap: 0.75rem; }
.ts-show-all-toggle { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-size: 0.82rem; color: var(--muted); }
.ts-show-all-toggle input { accent-color: var(--blue); }
.ts-overlay-close { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.ts-overlay-close:hover { color: #fff; border-color: var(--act); }
.ts-overlay-status { padding: 0.4rem 1.1rem; font-size: 0.8rem; color: var(--dim); border-bottom: 1px solid var(--seam); }
.ts-overlay-status.error { color: var(--err); }
.ts-overlay-content { flex: 1; overflow-y: auto; padding: 0.7rem 1.1rem; }

/* Einmal beim Laden: Kacheln und Karten blenden sanft ein */
@media (prefers-reduced-motion: no-preference) {
  .node, .service-card { animation: riseIn 0.6s var(--ease) both; }
  .node:nth-child(2) { animation-delay: 0.06s; } .node:nth-child(3) { animation-delay: 0.12s; } .node:nth-child(4) { animation-delay: 0.18s; }
  .service-card:nth-child(2) { animation-delay: 0.1s; } .service-card:nth-child(3) { animation-delay: 0.15s; }
  .service-card:nth-child(4) { animation-delay: 0.2s; } .service-card:nth-child(5) { 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; }
  .container { max-width: 1840px; }
}
@media (max-width: 1200px) {
  .topology { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-ts, .card-online, .card-discord, .card-nitrado { grid-column: auto; }
  .card-root { grid-column: 1 / -1; }
  .ts-online-scroll { max-height: 24rem; }
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .card-root { grid-column: auto; }
  .card-root .card-body { grid-template-columns: minmax(0, 1fr); }
  .root-usage-section { padding-left: 0; border-left: 0; border-top: 1px solid var(--seam); margin-top: 0.8rem; padding-top: 0.8rem; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 1rem); border-radius: 18px; padding: 0.6rem 0.7rem 1.1rem; }
  .tool-nav-path { display: none; }
  .page-header { padding-top: 0.6rem; }
  .global { width: 100%; }
  .topology { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .service-card { padding: 1rem; }
  .btn { flex: 1 1 100%; justify-content: center; }
  .stat-row { flex-wrap: wrap; }
  .stat-value { overflow-wrap: anywhere; }
  .ts-overlay-panel { max-height: 100vh; width: 100%; height: 100vh; border-radius: 0; border: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Kopierschutz: Text nicht markierbar, Bilder/Links nicht ziehbar */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, a { -webkit-user-drag: none; }
