/* ════════════════════════════════════════════════════
   JARVIS OS v2.0.1 — SHARED SKIN CSS (EXTENDED)
   Matrix/Hacker Terminal Aesthetic + Animations
   ════════════════════════════════════════════════════ */

:root {
  color-scheme: dark; /* TICK127-FARBSCHEMA - Seite ist durchgehend dunkel; Browser-Oberflaeche dunkel zeichnen */
  /* ─── Base Colors ─── */
  --bg-primary: #050505;
  --bg-panel: rgba(10, 15, 10, 0.92);
  --bg-hover: rgba(0, 255, 65, 0.06);
  --border-panel: rgba(0, 204, 51, 0.22);
  --border-bright: rgba(0, 255, 65, 0.5);
  --neon-green: #00FF41;
  --neon-dim: #00CC33;
  --neon-dark: #006622;
  --text-primary: #00FF41;
  --text-secondary: #00CC33;
  --text-dim: #008822;
  --text-muted: #004411;
  --alert-red: #FF3333;
  --alert-orange: #FFAA00;
  --alert-glow: 0 0 10px rgba(255, 51, 51, 0.6);
  --font-mono: 'Courier New', 'Consolas', 'Monaco', 'Liberation Mono', monospace;
  --transition-fast: 0.15s;
  --transition-normal: 0.25s;
  --transition-slow: 0.4s;

  /* ─── §10 — Geometry & Borders ───────────────────────── */
  /* Radien */
  --panel_radius: 10px;    /* radius for panels and HUD containers */
  --card_radius: 8px;      /* radius for cards (personas, agents, modules) */
  --button_radius: 6px;    /* radius for buttons */
  --corner_cut: 4px;       /* cut corner effect for panels */
  /* Border widths & styles */
  --border_thin: 1px solid rgba(0, 204, 51, 0.10);
  --border_active: 1px solid rgba(0, 255, 65, 0.38);
  --border_focus: 1px solid rgba(0, 255, 65, 0.50);
  /* Legacy glow aliases (kept for backward compat with existing screens) */
  --glow: 0 0 8px rgba(0, 255, 65, 0.45);
  --glow-strong: 0 0 15px rgba(0, 255, 65, 0.6);
  --glow-weak: 0 0 4px rgba(0, 255, 65, 0.2);

  /* ─── §10.5 — Glows ───────────────────────────────────── */
  --glow_green_soft: 0 0 6px rgba(0, 255, 65, 0.25);
  --glow_green_active: 0 0 14px rgba(0, 255, 65, 0.50);
  --glow_gold_soft: 0 0 6px rgba(255, 170, 0, 0.25);
  --glow_gold_active: 0 0 14px rgba(255, 170, 0, 0.50);
  --glow_error: 0 0 12px rgba(255, 51, 51, 0.60);
  --glow_voice: 0 0 18px rgba(0, 255, 65, 0.70);
  --glow_avatar: 0 0 22px rgba(0, 255, 65, 0.40);

  --bg-1: #050805; /* TICK304-VARVERTRAG */
  --font-display: 'Orbitron', 'Rajdhani', 'Inter', system-ui, sans-serif; /* TICK304-VARVERTRAG */
  --green-strong: #00FF41; /* TICK304-VARVERTRAG */
  --panel-border: rgba(0, 255, 65, 0.25); /* TICK304-VARVERTRAG */
  --text-faint: #4a5e51; /* TICK304-VARVERTRAG */
  /* TICK304: fehlende Design-Token, Hauswert aus assets/css/style.css */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

/* ═══ MATRIX BACKGROUND ═══ */
.matrix-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.06; overflow: hidden;
}
.matrix-bg::before {
  content: '1010 0101 1100 0011 1111 0000 1010 0101 1100 0011 1111 0000 1010 0101 1100 0011';
  position: absolute; top: -50%; left: 0; width: 100%; height: 200%;
  font-size: 16px; line-height: 22px; word-break: break-all;
  color: var(--neon-green); white-space: pre-wrap;
  animation: matrixScroll 25s linear infinite;
}
@keyframes matrixScroll { 0%{transform:translateY(0)} 100%{transform:translateY(-50%)} }

/* ═══ PARTICLE SYSTEM ═══ */
.particles {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--neon-green); opacity: 0;
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1.5); }
}

/* ═══ GRID OVERLAY ═══ */
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,65,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ═══ SCANLINES ═══ */
.scanlines {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,255,65,0.02) 3px, rgba(0,255,65,0.02) 6px);
}

/* ═══ APP LAYOUT ═══ */
.app { position: relative; z-index: 10; width: 100%; height: 100vh; display: flex; flex-direction: column; }

/* ═══ HEADER ═══ */
.header {
  height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; border-bottom: 1px solid var(--border-panel);
  flex-shrink: 0; background: rgba(5,5,5,0.8); backdrop-filter: blur(6px);
}
.header-left { font-size: 11px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.header-center {
  font-size: 22px; letter-spacing: 6px; font-weight: bold;
  text-transform: uppercase; color: var(--neon-green); text-shadow: var(--glow-strong);
  position: absolute; left: 50%; transform: translateX(-50%);
  animation: headerGlow 3s ease-in-out infinite;
}
@keyframes headerGlow {
  0%, 100% { text-shadow: var(--glow-strong); }
  50% { text-shadow: 0 0 25px rgba(0, 255, 65, 0.8), 0 0 40px rgba(0, 255, 65, 0.4); }
}
.header-right { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: 1px; }
.header-status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--neon-green);
  box-shadow: var(--glow); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform: scale(1)} 50%{opacity:0.3; transform: scale(0.85)} }
/* TICK252-ZEIGERZUSAGE: die Kopf-Glyphen sind DEKORATION. Sie trugen
   cursor:pointer und ein :hover-Versprechen (scale 1.1, Neon-Farbe),
   obwohl im ganzen Webroot kein Handler existiert (0 Treffer in 56
   JS-Dateien).  Ein Klick tat nichts - ohne Fehler, ohne Konsole.
   Der Zeiger-Verschein wird zurueckgenommen; es wird KEIN Handler
   erfunden.  Siehe references/klasse-178-zeiger-versprechen.md */
.header-icon { 
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; 
  cursor: default; opacity: 0.7; 
  color: var(--text-secondary); font-size: 14px; 
}
.header-icon:hover { opacity: 0.7; color: var(--text-secondary); }

/* ═══ BODY ═══ */
.body { flex: 1; display: flex; overflow: hidden; }

/* ═══ SIDEBAR ═══ */
.sidebar {
  width: 240px; flex-shrink: 0; border-right: 1px solid var(--border-panel);
  display: flex; flex-direction: column; padding: 15px 0; overflow-y: auto;
  background: rgba(5,5,5,0.6);
}
.sidebar-logo { display: flex; justify-content: center; padding: 10px 0 20px; }
.hex-logo {
  width: 60px; height: 60px; position: relative;
  filter: drop-shadow(0 0 8px rgba(0,255,65,0.4));
  transition: filter var(--transition-normal);
}
.hex-logo:hover { filter: drop-shadow(0 0 15px rgba(0,255,65,0.7)); }
.hex-logo svg { width: 100%; height: 100%; }
.hex-letter {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 28px; font-weight: bold; color: var(--neon-green); text-shadow: var(--glow-strong);
  animation: hexPulse 3s ease-in-out infinite;
}
@keyframes hexPulse { 0%,100%{text-shadow: var(--glow-strong)} 50%{text-shadow: 0 0 20px rgba(0,255,65,0.9)} }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px; margin: 1px 10px; cursor: pointer;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); border-left: 2px solid transparent;
  transition: all var(--transition-normal); text-decoration: none; border-radius: 0;
  position: relative; overflow: hidden;
}
.nav-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--neon-green); opacity: 0.1; transition: width var(--transition-normal);
}
.nav-item:hover::before, .nav-item.active::before { width: 100%; }
.nav-item:hover, .nav-item.active {
  background: var(--bg-hover); color: var(--neon-green);
  border-left: 2px solid var(--neon-green); text-shadow: var(--glow);
}
.nav-item .nav-icon { width: 18px; text-align: center; font-size: 13px; transition: transform var(--transition-fast); }
.nav-item:hover .nav-icon { transform: scale(1.15); }

.sidebar-footer {
  margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--border-panel);
  font-size: 10px; letter-spacing: 1.5px; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}

/* ═══ MAIN AREA ═══ */
.main { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 18px; }

/* ═══ FOOTER ═══ */
.footer {
  height: 36px; flex-shrink: 0; border-top: 1px solid var(--border-panel);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); background: rgba(5,5,5,0.7);
}
.footer-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; }
.footer span.g { color: var(--neon-green); text-shadow: var(--glow); }

/* ═══ PANEL (HUD CORNERS) ═══ */
.panel {
  background: var(--bg-panel);
  border: var(--border_thin);
  border-radius: var(--panel_radius);
  position: relative; margin-bottom: 16px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), border-radius var(--transition-normal);
}
.panel:hover { border-color: var(--neon-dim); box-shadow: 0 0 20px rgba(0,255,65,0.08); }
.panel::before, .panel::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border-color: var(--neon-dim); border-style: solid; transition: all var(--transition-normal);
}
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.panel:hover::before, .panel:hover::after { border-color: var(--neon-green); box-shadow: var(--glow); }

.panel-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-panel); font-size: 12px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--neon-green);
  text-shadow: var(--glow);
}
.panel-header .ph-icon { font-size: 15px; opacity: 0.9; }
.panel-header .ph-sub { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-left: auto; }
.panel-body { padding: 14px 16px; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 18px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--border-panel); background: rgba(0,255,65,0.08);
  color: var(--neon-green); border-radius: var(--button_radius);
  transition: all var(--transition-normal); text-decoration: none;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: var(--neon-green); opacity: 0;
  transition: opacity var(--transition-normal);
}
.btn:hover::before { opacity: 0.08; }
.btn:hover { background: rgba(0,255,65,0.15); border-color: var(--neon-dim); box-shadow: var(--glow); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-red { border-color: rgba(255,51,51,0.4); background: rgba(255,51,51,0.1); color: var(--alert-red); }
.btn-red:hover { background: rgba(255,51,51,0.2); box-shadow: var(--alert-glow); border-color: var(--alert-red); }
.btn-sm { padding: 5px 12px; font-size: 10px; }
.btn-start { border-color: var(--neon-dark); background: rgba(0,255,65,0.12); }
.btn-orange { border-color: rgba(255,170,0,0.4); background: rgba(255,170,0,0.1); color: var(--alert-orange); }
.btn-orange:hover { background: rgba(255,170,0,0.2); box-shadow: 0 0 10px rgba(255,170,0,0.4); border-color: var(--alert-orange); }

/* ═══ INPUTS ═══ */
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-panel); background: rgba(0,0,0,0.4);
  padding: 10px 14px; margin-bottom: 10px;
  transition: all var(--transition-normal);
}
.input-wrap .in-icon { color: var(--text-dim); font-size: 14px; transition: color var(--transition-normal); }
.input-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--font-mono); font-size: 12px; color: var(--neon-green);
}
.input-wrap input::placeholder { color: var(--text-muted); }
.input-wrap:focus-within { border-color: var(--neon-dim); box-shadow: var(--glow); }
.input-wrap:focus-within .in-icon { color: var(--neon-green); }

/* ═══ LIST ROWS ═══ */
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid rgba(0,204,51,0.08); cursor: pointer;
  transition: all var(--transition-fast);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--bg-hover); transform: translateX(2px); }
.list-row .lr-icon { font-size: 14px; color: var(--text-dim); width: 22px; text-align: center; transition: color var(--transition-fast); }
.list-row:hover .lr-icon { color: var(--neon-green); }
.list-row .lr-content { flex: 1; }
.list-row .lr-title { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
.list-row .lr-desc { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.list-row .lr-badge {
  padding: 2px 8px; border: 1px solid var(--border-panel); font-size: 10px;
  color: var(--text-dim); min-width: 28px; text-align: center;
  transition: all var(--transition-fast);
}
.list-row:hover .lr-badge { border-color: var(--neon-dim); color: var(--neon-green); }
.list-row .lr-arrow { color: var(--text-muted); font-size: 12px; transition: all var(--transition-fast); }
.list-row:hover .lr-arrow { color: var(--neon-green); transform: translateX(3px); }

/* ═══ TABS ═══ */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-panel); margin-bottom: 14px; }
.tab {
  padding: 8px 16px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all var(--transition-fast); margin-bottom: -1px;
  position: relative;
}
.tab:hover { color: var(--neon-dim); }
.tab.active { color: var(--neon-green); border-bottom-color: var(--neon-green); text-shadow: var(--glow); }
.tab::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px;
  background: var(--neon-green); transition: all var(--transition-normal);
  transform: translateX(-50%);
}
.tab:hover::after { width: 60%; opacity: 0.5; }
.tab.active::after { width: 100%; opacity: 1; }

/* ═══ PROGRESS ═══ */
.progress-track {
  height: 4px; background: rgba(0,255,65,0.08); border-radius: 0; overflow: hidden; margin-top: 6px;
}
.progress-fill {
  height: 100%; background: var(--neon-green); box-shadow: var(--glow);
  transition: width 0.5s ease;
  position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ═══ TERMINAL ═══ */
.terminal {
  background: rgba(0,0,0,0.5); border: 1px solid var(--border-panel); padding: 12px 14px;
  font-size: 11px; line-height: 1.7; color: var(--text-secondary);
  position: relative; overflow: hidden;
}
.terminal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-dim), transparent);
  animation: terminalScan 3s linear infinite;
}
@keyframes terminalScan { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.terminal .prompt { color: var(--neon-green); }
.terminal .dim { color: var(--text-dim); }
.terminal .ok { color: var(--neon-green); }
.terminal .error { color: var(--alert-red); }
.terminal .warn { color: var(--alert-orange); }

/* ═══ BLINK CURSOR ═══ */
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ═══ TABLE ═══ */
.table { width: 100%; border-collapse: collapse; font-size: 10px; }
.table th { text-align: left; padding: 6px 8px; color: var(--text-dim); letter-spacing: 1px; font-weight: normal; border-bottom: 1px solid var(--border-panel); }
.table td { padding: 6px 8px; color: var(--text-secondary); border-bottom: 1px solid rgba(0,204,51,0.06); transition: background var(--transition-fast); }
.table tr:hover td { background: var(--bg-hover); }
.tag { display: inline-block; padding: 1px 6px; font-size: 9px; letter-spacing: 1px; border: 1px solid var(--border-panel); color: var(--text-dim); }
.tag-green { border-color: var(--neon-dark); color: var(--neon-green); background: rgba(0,255,65,0.08); }
.tag-red { border-color: rgba(255,51,51,0.4); color: var(--alert-red); background: rgba(255,51,51,0.08); }
.tag-orange { border-color: rgba(255,170,0,0.4); color: var(--alert-orange); background: rgba(255,170,0,0.08); }

/* ═══ LOGS ═══ */
.log-entry { font-size: 10px; padding: 3px 0; display: flex; gap: 8px; transition: background var(--transition-fast); }
.log-entry:hover { background: rgba(0,255,65,0.03); }
.log-entry .log-time { color: var(--text-muted); min-width: 60px; }
.log-entry .log-level { min-width: 42px; }
.log-level-info { color: var(--neon-dim); }
.log-level-warn { color: var(--alert-orange); }
.log-level-err { color: var(--alert-red); }
.log-level-kali { color: var(--neon-green); }
.log-entry .log-msg { color: var(--text-dim); }

/* ═══ FLOW ITEMS ═══ */
.flow-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.flow-icon { width: 32px; height: 32px; border: 1px solid var(--border-panel); display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 50%; transition: all var(--transition-normal); }
.flow-item:hover .flow-icon { border-color: var(--neon-dim); box-shadow: var(--glow); color: var(--neon-green); }
.flow-content h4 { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--neon-green); }
.flow-content p { font-size: 10px; color: var(--text-dim); }
.flow-arrow { text-align: center; color: var(--text-muted); font-size: 16px; padding: 2px 0; }

/* ═══ TOGGLE ═══ */
.toggle { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-dim); cursor: pointer; }
.toggle-box {
  width: 32px; height: 16px; border: 1px solid var(--border-panel); position: relative;
  transition: all var(--transition-normal);
}
.toggle-box.on { border-color: var(--neon-dim); background: rgba(0,255,65,0.15); }
.toggle-box.on::after { content:''; position:absolute; right:2px; top:2px; width:10px;height:10px; background:var(--neon-green); transition: all var(--transition-normal); }
.toggle-box.off::after { content:''; position:absolute; left:2px; top:2px; width:10px;height:10px; background:var(--text-dim); transition: all var(--transition-normal); }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--neon-dark); border: 1px solid var(--text-muted); transition: background var(--transition-normal); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ═══ GRID HELPERS ═══ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mb-2 { margin-bottom: 8px; }
.p-2 { padding: 8px; } .p-3 { padding: 12px; }
.text-center { text-align: center; }
.text-glow { text-shadow: var(--glow); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* ═══ ANIMATED BORDER GLOW ═══ */
@keyframes borderGlow {
  0%, 100% { border-color: var(--border-panel); }
  50% { border-color: rgba(0, 255, 65, 0.4); }
}
.animate-border { animation: borderGlow 3s ease-in-out infinite; }

/* ═══ FADE IN ANIMATION ═══ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }

/* ═══ SHIMMER EFFECT ═══ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(0,255,65,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) {
  .sidebar { width: 200px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-center { font-size: 14px; letter-spacing: 2px; }
}

/* ════════════════════════════════════════════════════
   GLOBALE ZENTRIERUNG (alle Seiten einheitlich mittig)
   ════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 { text-align: center !important; }
p { text-align: center !important; }
.hero, .hero-eyebrow, .hero-sub, .hero-meta, .hero-tag { text-align: center !important; }
.eyebrow, .section-head, .block, .block h2, .block .sub { text-align: center !important; }
.panel-header, .panel-title { text-align: center !important; justify-content: center !important; }
.page-hero h1, .page-hero p { text-align: center !important; }
.topic-card h2, .topic-card h3, .topic-card p, .topic-card li { text-align: center !important; }
.trust, .cta-section, .cta-row { text-align: center !important; }
.price-card, .persona-card, .service-card, .why-card, .step { text-align: center !important; }
.price-features, .price-features li { text-align: center !important; list-style: none !important; padding-left: 0 !important; }
.price-features li::before { display: none !important; }
.panel-body { text-align: center !important; }
footer, .footer, .footer-bottom, .footer-grid, .footer-col { text-align: center !important; }
.footer-bottom { justify-content: center !important; }



/* === Layer Links (8 Schichten) === */
a.layer {
  display: block;
  padding: 10px 14px;
  margin-bottom: 6px;
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  background: var(--bg-panel);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}
a.layer:hover {
  border-color: var(--green-strong);
  background: rgba(0, 255, 65, 0.06);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
  transform: translateX(4px);
  color: var(--green-strong);
}
a.layer:active {
  transform: translateX(2px);
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
a.layer .layer-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.15);
  color: var(--green-strong);
  font-weight: 700;
  font-size: 0.85em;
  margin-right: 8px;
}
a.layer:hover .layer-num {
  background: var(--green-strong);
  color: var(--bg-primary);
}
a.layer .layer-body h3 {
  color: var(--text-primary);
  font-size: 0.95em;
  margin-bottom: 2px;
}
a.layer .layer-body p {
  color: var(--text-dim);
  font-size: 0.8em;
  margin: 0;
}
a.layer:hover .layer-body p {
  color: var(--text-secondary);
}

/* === QA Items (Schnellzugriff) === */
a.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 8px;
  background: var(--bg-panel);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 60px;
}
a.qa-item:hover {
  border-color: var(--green-strong);
  background: rgba(0, 255, 65, 0.06);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
a.qa-item .qa-icon {
  font-size: 1.4em;
  transition: transform 0.2s ease;
}
a.qa-item:hover .qa-icon {
  transform: scale(1.15);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}
a.qa-item span {
  font-size: 0.7em;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
a.qa-item:hover span {
  color: var(--green-strong);
}


/* TICK126-BEWEGUNGSVERTRAG - Bewegung aus, wenn das Geraet das verlangt (deckt ::before/::after mit ab) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* TICK410: .data-table fehlte im Skin.
   7 Seiten benutzen die Klasse, 6 definieren sie inline, nur
   jarvis-os/screens/screen2-dashboard.html hatte gar keine Definition.
   Rein additiv: keine bestehende Regel angefasst, kein Token geaendert. */
.data-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 11px; }
.data-table caption { caption-side: top; text-align: left; color: var(--text-muted); font-size: 10px; padding-bottom: 4px; }
.data-table th, .data-table td { padding: 5px 8px; border-bottom: 1px solid rgba(0, 204, 51, 0.12); text-align: left; vertical-align: top; }
.data-table thead th { color: var(--neon-green); font-weight: normal; letter-spacing: .5px; border-bottom-color: var(--neon-dim); }
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table td.v { color: var(--neon-green); }
.data-table .mono { font-family: var(--font-mono); }
