/* =====================================================================
   B L A C K R O C K — Deep Core Industrial
   EVE-Online-inspiriertes Design-System
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0c12;
  --bg-2: #0e101a;
  --panel: #10131d;
  --panel-2: #131625;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --muted-2: rgba(255, 255, 255, 0.4);
  --muted-3: rgba(255, 255, 255, 0.25);
  --cyan: #00d4ff;
  --orange: #ff6a00;
  --yellow: #ffcc00;
  --green: #00ff88;
  --red: #ff3b5c;
  --grey: #9ca3af;
  --nav-h: 68px;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(0, 212, 255, 0.3); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); }
.cyan { color: var(--cyan); } .orange { color: var(--orange); } .yellow { color: var(--yellow); }
.green { color: var(--green); } .red { color: var(--red); } .muted { color: var(--muted); } .muted-2 { color: var(--muted-2); }
.right { text-align: right; } .center { text-align: center; }
.upper { text-transform: uppercase; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.wrap { flex-wrap: wrap; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.col { flex-direction: column; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.grow { flex: 1; }

/* ---------- Hintergrund-Ebene ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-layer .grid-bg {
  position: absolute; inset: 0; opacity: 0.6;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-layer .glow-1 {
  position: absolute; top: -20%; left: -10%; width: 80%; height: 60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.10), transparent); filter: blur(80px);
}
.bg-layer .glow-2 {
  position: absolute; bottom: 10%; right: -15%; width: 70%; height: 50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.08), transparent); filter: blur(90px);
}
.bg-layer .star { position: absolute; width: 1px; height: 1px; background: #fff; border-radius: 50%; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
.scanline {
  position: absolute; left: 0; width: 100%; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), transparent);
  box-shadow: 0 0 18px 4px rgba(0, 212, 255, 0.28), 0 0 60px 14px rgba(0, 212, 255, 0.10);
  animation: scan 8s linear infinite;
}
.scanline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.08));
}
@keyframes scan { 0% { transform: translateY(-10vh); } 100% { transform: translateY(110vh); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .5s ease both; }
.pulse { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
@media (min-width: 768px) { .container { padding-inline: 40px; } }
.page { position: relative; z-index: 1; padding-top: var(--nav-h); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 12, 18, 0.7);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(255, 204, 0, 0.45); box-shadow: 0 0 18px rgba(255, 204, 0, 0.18); background: #000; transition: box-shadow .3s; }
.brand:hover .brand-logo { box-shadow: 0 0 26px rgba(255, 204, 0, 0.4); }
.brand-mark { width: 32px; height: 32px; border: 1px solid var(--cyan); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.brand-mark::after { content: ''; position: absolute; top: -1px; right: -1px; width: 6px; height: 6px; border-top: 1px solid var(--yellow); border-right: 1px solid var(--yellow); }
.brand-mark span { width: 12px; height: 12px; background: var(--cyan); animation: pulse 2s infinite; }
.brand-name { font-family: var(--mono); font-size: 14px; letter-spacing: .35em; font-weight: 700; line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: var(--muted-2); margin-top: 3px; white-space: nowrap; }
.nav-links { display: none; align-items: center; gap: 22px; white-space: nowrap; }
.nav-links a, .nav-links button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links button:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .15); }
.lang-switch button { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; padding: 8px 10px; color: var(--muted); transition: all .2s; }
.lang-switch button + button { border-left: 1px solid rgba(255, 255, 255, .15); }
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--cyan); color: #000; font-weight: 700; }
.mobile-menu .lang-switch { align-self: flex-start; }
.nav-status { display: none; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-right: 8px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; display: inline-block; }
.dot.sm { width: 6px; height: 6px; }
.burger { display: flex; width: 40px; height: 40px; border: 1px solid var(--line-2); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { width: 16px; height: 1px; background: #fff; transition: transform .2s, opacity .2s; }
.burger.open i:nth-child(1) { transform: rotate(45deg) translateY(4px); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: rotate(-45deg) translateY(-4px); }
.mobile-menu { border-top: 1px solid var(--line-2); background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
/* Dropdown "Nützliche Websites" */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.nav-dd-btn .chev { transition: transform .2s; }
.nav-dd.open .nav-dd-btn, .nav-dd:hover .nav-dd-btn { color: #fff; }
.nav-dd.open .nav-dd-btn .chev, .nav-dd:hover .nav-dd-btn .chev { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: -12px; min-width: 260px;
  background: var(--bg-2); border: 1px solid var(--line-2); padding: 6px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dd-menu::before { content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 15px; } /* Hover-Brücke */
.nav-dd-menu::after { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--cyan); }
.nav-dd.open .nav-dd-menu, .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--muted); transition: background .15s, color .15s;
}
.nav-dd-menu a:hover, .nav-dd-menu a:focus-visible { background: rgba(0, 212, 255, .08); color: #fff; }
.nav-dd-menu .ico, .mobile-tools .ico { flex: 0 0 auto; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--cyan); background: rgba(0, 212, 255, .06); }
.nav-dd-menu .ico svg, .mobile-tools .ico svg { width: 15px; height: 15px; }
.nav-dd-menu .txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.nav-dd-menu .txt b { font-weight: 700; color: inherit; }
.nav-dd-menu .txt small { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-2); }
.mobile-tools { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mobile-tools .label { padding: 4px 0 6px; }
.mobile-tools a { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; padding: 6px 0; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}
@media (min-width: 768px) { .nav-status { display: flex; } }
@media (min-width: 1024px) and (max-width: 1279px) { .nav-status { display: none; } .nav-links { gap: 18px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  padding: 14px 28px; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: all .25s; white-space: nowrap; text-decoration: none;
}
.btn.sm { padding: 9px 16px; font-size: 10px; }
.btn.xs { padding: 6px 10px; font-size: 9px; letter-spacing: .1em; }
.btn.primary { background: var(--cyan); color: #000; font-weight: 700; border-color: var(--cyan); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.outline { border-color: rgba(255, 255, 255, 0.2); color: #fff; backdrop-filter: blur(8px); }
.btn.outline:hover { border-color: rgba(0, 212, 255, 0.5); color: var(--cyan); }
.btn.cyan { border-color: var(--cyan); color: var(--cyan); }
.btn.cyan:hover { background: var(--cyan); color: #000; }
.btn.orange { border-color: var(--orange); color: var(--orange); background: rgba(255, 106, 0, 0.1); }
.btn.orange:hover { background: var(--orange); color: #000; }
.btn.green { border-color: var(--green); color: var(--green); }
.btn.green:hover { background: var(--green); color: #000; }
.btn.yellow { border-color: var(--yellow); color: var(--yellow); }
.btn.yellow:hover { background: var(--yellow); color: #000; }
.btn.red { border-color: var(--red); color: var(--red); }
.btn.red:hover { background: var(--red); color: #000; }
.btn.ghost { color: var(--muted); }
.btn.ghost:hover { color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--cyan); }
.eyebrow.no-line::before { display: none; }
.eyebrow.orange { color: var(--orange); } .eyebrow.orange::before { background: var(--orange); }
.eyebrow.yellow { color: var(--yellow); } .eyebrow.yellow::before { background: var(--yellow); }
.h-display { font-size: clamp(42px, 8vw, 78px); line-height: .9; }
.h-xl { font-size: clamp(36px, 5.5vw, 52px); line-height: .92; }
.h-lg { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; }
.h-md { font-size: 22px; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 520px; }
@media (min-width: 768px) { .lead { font-size: 14px; } }
.label { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.label.lg { font-size: 10px; letter-spacing: .3em; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase;
  background: var(--yellow); color: #000;
}
.tag.cyan { background: var(--cyan); }
.tag.green { background: var(--green); }
.tag.orange { background: var(--orange); }
.tag.dim { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Panels / HUD ---------- */
.panel {
  position: relative; border: 1px solid var(--line-2); background: rgba(16, 19, 29, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 24px;
}
.panel.solid { background: var(--bg-2); }
.panel.tight { padding: 16px; }
.panel.lg { padding: 32px; }
@media (min-width: 768px) { .panel.lg { padding: 40px; } }
.hud { position: relative; border: 1px solid rgba(0, 212, 255, 0.2); background: rgba(16, 19, 29, 0.8); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 1px; }
.hud::before, .hud::after { content: ''; position: absolute; top: 0; left: 0; background: var(--cyan); z-index: 2; }
.hud::before { width: 24px; height: 1px; }
.hud::after { width: 1px; height: 24px; }
.hud > .inner { background: var(--bg-2); padding: 24px; }
@media (min-width: 768px) { .hud > .inner { padding: 28px; } }
.hud.orange { border-color: rgba(255, 106, 0, 0.3); } .hud.orange::before, .hud.orange::after { background: var(--orange); }
.hud.yellow { border-color: rgba(255, 204, 0, 0.3); } .hud.yellow::before, .hud.yellow::after { background: var(--yellow); }
.hud.green { border-color: rgba(0, 255, 136, 0.3); } .hud.green::before, .hud.green::after { background: var(--green); }
.corner-tr { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-top: 1px solid var(--yellow); border-right: 1px solid var(--yellow); }
.bordered-list { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(12px); }
.bordered-list > * { border-bottom: 1px solid var(--line); }
.bordered-list > *:last-child { border-bottom: 0; }
.divider { height: 1px; background: var(--line); }
.bar { height: 2px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .6s ease; }
.bar.orange > i { background: linear-gradient(90deg, var(--orange), var(--yellow)); }

/* ---------- Stat-Kacheln ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(12px); }
.stats-row > div { padding: 16px 20px; border-right: 1px solid var(--line); }
.stats-row > div:last-child { border-right: 0; }
.stat-value { font-family: var(--mono); font-size: 18px; font-weight: 700; margin-top: 4px; }
.stat-value.lg { font-size: 22px; letter-spacing: -0.02em; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { border: 1px solid var(--line-2); background: rgba(16, 19, 29, 0.6); padding: 20px; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent, var(--cyan)); opacity: .6; }
.stat-card .stat-value { font-size: 24px; margin-top: 8px; }
.stat-card .sub { font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-top: 6px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.input, textarea.input, select.input {
  width: 100%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-2); color: #fff;
  padding: 12px 14px; font-family: var(--mono); font-size: 13px; outline: none; transition: border-color .2s; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.input:focus { border-color: rgba(0, 212, 255, 0.5); }
.input::placeholder { color: var(--muted-3); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%), linear-gradient(135deg, var(--muted-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--panel); color: #fff; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.6; }
.input.sm { padding: 8px 10px; font-size: 12px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.form-msg { font-family: var(--mono); font-size: 11px; padding: 10px 12px; border: 1px solid; line-height: 1.6; }
.form-msg.error { color: var(--red); border-color: rgba(255, 59, 92, 0.4); background: rgba(255, 59, 92, 0.08); }
.form-msg.ok { color: var(--green); border-color: rgba(0, 255, 136, 0.4); background: rgba(0, 255, 136, 0.08); }
.form-msg.info { color: var(--yellow); border-color: rgba(255, 204, 0, 0.4); background: rgba(255, 204, 0, 0.08); }
.check { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--cyan); width: 14px; height: 14px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); }
table.tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; min-width: 560px; }
.tbl th { text-align: left; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.02); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .actions .btn { margin-left: 6px; }

/* ---------- Rang-Badges ---------- */
.rank {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .15em; font-weight: 700; text-transform: uppercase; border: 1px solid; white-space: nowrap;
  color: var(--rc, var(--grey)); border-color: color-mix(in srgb, var(--rc, var(--grey)) 45%, transparent);
  background: color-mix(in srgb, var(--rc, var(--grey)) 10%, transparent);
}
.rank::before { content: ''; width: 5px; height: 5px; background: var(--rc, var(--grey)); }
.rank.lg { font-size: 11px; padding: 6px 12px; }

/* ---------- Status-Badges ---------- */
.status { font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; padding: 3px 8px; border: 1px solid; white-space: nowrap; }
.status.open, .status.planned, .status.pending { color: var(--yellow); border-color: rgba(255, 204, 0, .4); background: rgba(255, 204, 0, .08); }
.status.accepted, .status.active { color: var(--cyan); border-color: rgba(0, 212, 255, .4); background: rgba(0, 212, 255, .08); }
.status.paid, .status.done, .status.verified { color: var(--green); border-color: rgba(0, 255, 136, .4); background: rgba(0, 255, 136, .08); }
.status.rejected, .status.cancelled, .status.inactive { color: var(--red); border-color: rgba(255, 59, 92, .4); background: rgba(255, 59, 92, .08); }
.status.unverified { color: var(--muted-2); border-color: var(--line-2); }

/* ---------- Toast & Modal ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 48px); }
.toast { font-family: var(--mono); font-size: 11px; padding: 12px 16px; border: 1px solid; background: var(--bg-2); animation: fadeIn .25s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.toast.ok { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }
.toast.info { border-color: var(--cyan); color: var(--cyan); }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(5, 6, 10, 0.8); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s ease; overflow-y: auto; }
.modal { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal .inner { padding: 28px; }
.modal-title { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-close { color: var(--muted-2); font-size: 18px; line-height: 1; }
.modal-close:hover { color: #fff; }

/* ---------- Loader ---------- */
.loader { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0, 212, 255, .2); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
.empty { font-family: var(--mono); font-size: 11px; color: var(--muted-2); padding: 32px; text-align: center; border: 1px dashed var(--line-2); letter-spacing: .1em; }

/* =====================================================================
   LANDINGPAGE
   ===================================================================== */
.hero { position: relative; min-height: min(calc(92vh - var(--nav-h)), 860px); display: flex; align-items: center; padding-block: 64px; overflow: hidden; }
@media (min-width: 768px) { .hero { padding-block: 0; } }
.hero-grid { display: grid; gap: 48px; width: 100%; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-stats { margin-top: 56px; max-width: 480px; }
.telemetry-rows > div { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.telemetry-rows > div:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.feed { margin-top: 24px; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line); padding: 8px 12px; overflow: hidden; }
.feed-text { font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-art { position: absolute; top: -80px; right: -40px; width: 400px; height: 400px; opacity: .2; pointer-events: none; display: none; }
@media (min-width: 1024px) { .hero-art { display: block; } }
.hero-side { position: relative; }
@media (min-width: 1024px) { .hero-side { margin-left: 32px; } }
.hero-caption { position: absolute; bottom: -24px; left: -24px; right: 0; display: none; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: rgba(255, 255, 255, .2); white-space: nowrap; }
.hero-caption span { white-space: nowrap; }
@media (min-width: 768px) { .hero-caption { display: flex; } }

.band { border-block: 1px solid var(--line); background: rgba(14, 16, 26, 0.5); backdrop-filter: blur(8px); }
.band .container { padding-block: 64px; display: grid; gap: 40px; }
@media (min-width: 768px) { .band .container { padding-block: 96px; grid-template-columns: repeat(3, 1fr); gap: 64px; } }
.pillar { border-left: 1px solid var(--line-2); padding-left: 24px; }
.pillar .n { font-family: var(--mono); font-size: 10px; color: var(--orange); margin-bottom: 12px; }
.pillar .t { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; font-weight: 700; margin-bottom: 12px; }
.pillar .d { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, .5); }

.section { padding-block: 80px; }
@media (min-width: 768px) { .section { padding-block: 128px; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; padding: 12px 20px; border: 1px solid rgba(255, 255, 255, .15); color: var(--muted); transition: all .2s; text-transform: uppercase; }
.tabs button:hover { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.tabs button.active { background: var(--cyan); color: #000; border-color: var(--cyan); font-weight: 700; }

.ops-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .ops-grid { grid-template-columns: 1.2fr .8fr; } }
.ops-main { min-height: 420px; overflow: hidden; }
.ops-main .schematic { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: rgba(255, 255, 255, .2); }
.ops-main .dots { position: absolute; inset: 0; opacity: .15; }
.ops-pill { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(0, 212, 255, .3); background: rgba(0, 212, 255, .1); padding: 8px 16px; margin-bottom: 32px; }
.ops-pill i { width: 8px; height: 8px; background: var(--cyan); animation: pulse 2s infinite; }
.ops-pill span { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--cyan); }
.ops-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 460px; }
.ops-metrics > div { border: 1px solid var(--line-2); padding: 16px; background: rgba(0, 0, 0, .4); }
.ops-metrics .v { font-family: var(--mono); font-size: 14px; font-weight: 700; margin-top: 8px; }
.ops-side { display: grid; gap: 16px; align-content: start; }
.ops-side .panel h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.ops-side .panel p { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.7; }
.asteroid { width: 100%; height: 100%; position: absolute; inset: 0; opacity: .12; pointer-events: none; }

.chain { display: grid; gap: 16px; }
@media (min-width: 768px) { .chain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .chain { grid-template-columns: repeat(4, 1fr); } }
.chain-step { border: 1px solid var(--line-2); background: rgba(16, 19, 29, .6); padding: 24px; position: relative; transition: border-color .2s; }
.chain-step:hover { border-color: rgba(0, 212, 255, .3); }
.chain-step .n { font-family: var(--mono); font-size: 32px; font-weight: 700; color: rgba(255, 255, 255, .08); position: absolute; top: 12px; right: 16px; }
.chain-step .t { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--cyan); margin-bottom: 16px; }
.chain-step ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chain-step li { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.chain-step li::before { content: ''; width: 4px; height: 4px; background: var(--orange); flex-shrink: 0; }
.chain-step .arrow-r { display: none; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: rgba(0, 212, 255, .4); font-size: 18px; z-index: 2; }
@media (min-width: 1024px) { .chain-step:not(:last-child) .arrow-r { display: block; } }
.prod-stats { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 768px) { .prod-stats { grid-template-columns: repeat(3, 1fr); } }

.ships { display: grid; gap: 16px; }
@media (min-width: 640px) { .ships { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ships { grid-template-columns: repeat(3, 1fr); } }
.ship { border: 1px solid var(--line-2); background: rgba(16, 19, 29, .6); padding: 24px; position: relative; overflow: hidden; transition: border-color .2s; }
.ship:hover { border-color: rgba(255, 255, 255, .2); }
.ship:hover .ship-glow { opacity: .12; }
.ship-glow { position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: radial-gradient(circle, var(--cyan), transparent 70%); opacity: 0; transition: opacity .3s; }
.ship .name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ship .cls { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted-2); margin-top: 4px; text-transform: uppercase; }
.ship .role { margin-top: 16px; display: inline-block; }
.ship .name .variant { display: block; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--orange); margin-top: 2px; }
.ship-new { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; padding: 3px 7px; color: #000; background: var(--yellow); font-weight: 700; }
.ship .meta { margin-top: 16px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---- Doktrin-Schiffe: anklickbare Karte + Detailansicht ---- */
.ship { cursor: pointer; }
.ship:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.ship-more { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-3); transition: color .2s; }
.ship:hover .ship-more, .ship:focus-visible .ship-more { color: var(--cyan); }

.ship-modal .modal { max-width: 720px; }
.ship-detail { display: grid; gap: 20px; align-items: start; }
@media (min-width: 560px) { .ship-detail { grid-template-columns: 220px 1fr; } }
.ship-render { position: relative; margin: 0; border: 1px solid var(--line-2); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(0, 212, 255, .12), rgba(10, 12, 18, .92) 70%); }
.ship-render img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ship-render figcaption { position: absolute; left: 8px; bottom: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--muted-3); }
.ship-render.failed::before { content: 'NO RENDER'; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted-3); }
.ship-detail-cls { font-family: var(--mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; margin: 6px 0 14px; }
.ship-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 18px; background: var(--line-2); border: 1px solid var(--line-2); }
.ship-stat { background: var(--panel); padding: 10px 12px; }
.ship-stat .v { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--cyan); margin-top: 4px; }
.ship-text { margin-top: 26px; }
.ship-text .label { margin-bottom: 8px; }
.ship-text p { font-family: var(--mono); font-size: 11px; line-height: 1.8; color: var(--muted); margin: 0 0 22px; }
.ship-text .duty { color: rgba(255, 255, 255, .8); border-left: 2px solid var(--orange); padding-left: 12px; margin-bottom: 0; }
.ship-source { margin-top: 20px; font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-3); }

.ranks-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .ranks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ranks-grid { grid-template-columns: repeat(5, 1fr); } }
.rank-card { border: 1px solid var(--line-2); background: rgba(16, 19, 29, .6); padding: 24px; position: relative; overflow: hidden; }
.rank-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rc); }
.rank-card .lvl { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--rc); }
.rank-card .name { font-size: 20px; font-weight: 700; margin-top: 12px; }
.rank-card .desc { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.rank-card .pips { display: flex; gap: 4px; margin-top: 20px; }
.rank-card .pips i { width: 18px; height: 4px; background: rgba(255, 255, 255, .1); }
.rank-card .pips i.on { background: var(--rc); }

.recruit-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .recruit-grid { grid-template-columns: 1.6fr 1fr; } }
.req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.req-list li { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.req-list li::before { content: '▸'; color: var(--cyan); flex-shrink: 0; }
.req-list.offer li::before { content: '+'; color: var(--green); font-weight: 700; }
.steps > div { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps > div:last-child { border-bottom: 0; }
.steps .num { font-family: var(--mono); font-size: 10px; width: 28px; height: 28px; border: 1px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; flex-shrink: 0; }
.steps .t { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.steps .d { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.motto { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

.footer { border-top: 1px solid var(--line); background: rgba(10, 12, 18, .8); }
.footer .container { padding-block: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--muted-2); text-transform: uppercase; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.login-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding-block: 48px; }
.login-box { width: 100%; max-width: 440px; }
.login-box .inner { padding: 32px; }
@media (min-width: 640px) { .login-box .inner { padding: 40px; } }

/* =====================================================================
   MITGLIEDERBEREICH (Dashboard)
   ===================================================================== */
.app { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  width: 280px; flex-shrink: 0; border-right: 1px solid var(--line); background: rgba(14, 16, 26, .7); backdrop-filter: blur(12px);
  position: fixed; top: var(--nav-h); bottom: 0; left: 0; z-index: 40; overflow-y: auto; transform: translateX(-100%); transition: transform .25s;
  display: flex; flex-direction: column;
}
.sidebar.open { transform: none; }
@media (min-width: 1024px) { .sidebar { transform: none; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); } }
.sidebar-profile { padding: 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 48px; height: 48px; border: 1px solid var(--rc, var(--cyan)); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--rc, var(--cyan)); background: color-mix(in srgb, var(--rc, var(--cyan)) 10%, transparent); flex-shrink: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.side-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-nav .group { font-family: var(--mono); font-size: 8px; letter-spacing: .3em; color: var(--muted-3); text-transform: uppercase; padding: 16px 12px 6px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); border-left: 2px solid transparent; transition: all .15s; }
.side-nav a:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.side-nav a.active { color: var(--cyan); border-left-color: var(--cyan); background: rgba(0, 212, 255, .06); }
.side-nav a .cnt { font-size: 9px; padding: 2px 6px; background: var(--orange); color: #000; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; color: var(--muted-3); line-height: 1.7; letter-spacing: .05em; }
.sidebar-bg { position: fixed; inset: 0; top: var(--nav-h); background: rgba(0, 0, 0, .6); z-index: 39; }
@media (min-width: 1024px) { .sidebar-bg { display: none !important; } }
.main { flex: 1; min-width: 0; padding: 24px; }
@media (min-width: 768px) { .main { padding: 32px 40px; } }
.main-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.main-head h2 { font-size: clamp(26px, 4vw, 36px); }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2.wide { grid-template-columns: 1.6fr 1fr; } }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.panel-title { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-title b { color: #fff; font-weight: 500; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .t { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.list-row .s { font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.op-card { border: 1px solid var(--line-2); background: rgba(16, 19, 29, .6); padding: 20px; position: relative; }
.op-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--oc, var(--cyan)); }
.op-time { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--oc, var(--cyan)); }
.op-title { font-size: 18px; font-weight: 700; margin-top: 6px; }
.op-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }
.op-desc { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-family: var(--mono); font-size: 9px; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, .02); }
.announce { border: 1px solid var(--line-2); background: rgba(16, 19, 29, .6); padding: 20px 24px; position: relative; }
.announce.pinned { border-color: rgba(255, 204, 0, .35); }
.announce.pinned::before { content: 'PINNED'; position: absolute; top: -1px; right: 16px; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; padding: 2px 8px; background: var(--yellow); color: #000; font-weight: 700; }
.announce .t { font-size: 17px; font-weight: 700; }
.announce .m { font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-top: 6px; }
.announce .b { font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--muted); margin-top: 12px; white-space: pre-wrap; }
.member-card { border: 1px solid var(--line-2); background: rgba(16, 19, 29, .6); padding: 18px; display: flex; gap: 14px; align-items: center; transition: border-color .2s; cursor: pointer; }
.member-card:hover { border-color: rgba(0, 212, 255, .3); }
.member-card .n { font-weight: 700; font-size: 15px; }
.member-card .s { font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.members-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .members-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .members-grid { grid-template-columns: repeat(3, 1fr); } }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.filter-bar .input { width: auto; min-width: 180px; }
.rank-pips { display: flex; gap: 3px; }
.rank-pips i { width: 12px; height: 3px; background: rgba(255, 255, 255, .1); }
.rank-pips i.on { background: var(--rc); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-family: var(--mono); font-size: 12px; }
.kv dt { color: var(--muted-2); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; }
.audit-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.audit-row .when { color: var(--muted-3); font-size: 10px; }
.audit-row .act { color: var(--cyan); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.audit-row .det { color: var(--muted); margin-top: 3px; }
.leaderboard > div { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.leaderboard > div:last-child { border-bottom: 0; }
.leaderboard .pos { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.leaderboard .val { font-family: var(--mono); font-size: 12px; font-weight: 700; text-align: right; }

@media (max-width: 767px) {
  .stats-row { grid-template-columns: 1fr; }
  .stats-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-row > div:last-child { border-bottom: 0; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Mobile-Feinschliff ---------- */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .ops-grid > *, .recruit-grid > *, .band .container > *, .stat-grid > *, .chain > *, .ships > *, .ranks-grid > *, .members-grid > * { min-width: 0; }
.hero-side, .hud, .panel { max-width: 100%; }
.brand-name { white-space: nowrap; }
@media (max-width: 480px) {
  .brand-name { font-size: 12px; letter-spacing: .25em; }
  .brand-sub { display: none; }
  .nav .container { gap: 12px; }
  .nav-right > .btn.sm { display: none; }
  .hero-actions .btn { width: 100%; }
  .feed-text { white-space: normal; }
  .telemetry-rows > div { flex-wrap: wrap; gap: 4px; }
  .tabs button { padding: 10px 14px; }
}

/* ---------- EVE SSO / ESI ---------- */
.esi-sso { display: inline-block; line-height: 0; border: 1px solid var(--line-2); transition: box-shadow .2s, border-color .2s; }
.esi-sso:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 212, 255, .25); }
.esi-sso img { display: block; max-width: 100%; height: auto; }
.esi-box { border: 1px solid rgba(0, 212, 255, .3); background: rgba(0, 212, 255, .04); padding: 16px; position: relative; }
.esi-box::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--cyan); }
.esi-char { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.esi-char .esi-meta { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.esi-char b { font-size: 15px; }
.esi-portrait { width: 64px; height: 64px; border: 1px solid var(--line-2); background: #000; flex-shrink: 0; }
.esi-portrait.sm { width: 40px; height: 40px; }
.esi-hist { border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.esi-hist > div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.esi-hist > div:last-child { border-bottom: 0; }
.esi-hist .d { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.esi-hist .cur { color: var(--cyan); }
.esi-warn { color: var(--yellow); }

/* ---------- Erzpreise: Filter & Vorkommen ---------- */
.tabs.sm button { padding: 8px 12px; font-size: 10px; }
.tabs.sm button[style*="--sc"]:not(.active) { border-color: color-mix(in srgb, var(--sc) 40%, transparent); color: var(--sc); }
.tabs.sm button[style*="--sc"].active { background: var(--sc); border-color: var(--sc); }
.chip.sec { color: var(--sc); border-color: color-mix(in srgb, var(--sc) 45%, transparent); background: color-mix(in srgb, var(--sc) 8%, transparent); }
.chips-inline { display: flex; flex-wrap: wrap; gap: 4px; }

/* =====================================================================
   Mobile (Smartphones) – Feinschliff für Landingpage & Mitgliederbereich
   ===================================================================== */
@media (max-width: 767px) {
  /* iOS zoomt bei Eingabefeldern < 16px automatisch rein – das vermeiden */
  .input, textarea.input, select.input { font-size: 16px; }
  .input.sm { font-size: 14px; }

  /* Touch-Ziele: Buttons mindestens ~40px hoch */
  .btn { min-height: 40px; }
  .btn.xs { min-height: 34px; padding: 6px 12px; }

  /* Hero-Eyebrow: darf umbrechen, Tag in eigener Zeile */
  .eyebrow { flex-wrap: wrap; gap: 8px 10px; letter-spacing: .25em; line-height: 1.6; }
  .eyebrow::before { width: 20px; }
  .hero { padding-block: 40px 48px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-stats { margin-top: 32px; }
  .stats-row > div { padding: 12px 14px; }

  /* Ops-Kennzahlen: nicht drei enge Spalten, sondern untereinander */
  .ops-metrics { grid-template-columns: 1fr !important; gap: 8px !important; }
  .ops-metrics > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .ops-metrics .v { font-size: 14px !important; white-space: nowrap; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }

  /* Schiffskarten: zwei Spalten ab 420px, sonst eine */
  .ship .meta { flex-wrap: wrap; gap: 4px 12px; }

  /* Kennzahlen im Mitgliederbereich: Werte nicht umbrechen lassen */
  .stat-value { font-size: 16px; }
  .stat-value.lg { font-size: 18px; }
  .main { padding: 16px; }
  .main-head { margin-bottom: 20px; }
  .main-head .btn { flex: 1 1 auto; justify-content: center; }
  .hud > .inner, .panel { padding: 18px; }
  .modal .inner { padding: 18px; }
  .modal-bg { padding: 8px; align-items: flex-start; }
  .modal { max-height: calc(100vh - 16px); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { padding-top: 8px; }
  .kv dd { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .audit-row { grid-template-columns: 1fr; gap: 2px; }
  .esi-hist > div { grid-template-columns: 1fr; gap: 2px; }
  .esi-hist .d { white-space: normal; }
  .filter-bar .input { min-width: 0; flex: 1 1 100%; }
  .tabs.sm button { padding: 8px 10px; }

  /* Tabellen -> Karten (data-label wird von app.js aus dem Tabellenkopf gesetzt) */
  table.tbl.cards { min-width: 0; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
  .tbl.cards tr:last-child { border-bottom: 0; }
  .tbl.cards tr:hover td { background: none; }
  .tbl.cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); text-align: right; }
  .tbl.cards td:last-child { border-bottom: 0; }
  .tbl.cards td::before { content: attr(data-label); font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); text-align: left; flex-shrink: 0; }
  .tbl.cards td:first-child { font-size: 14px; }
  .tbl.cards td:first-child::before { display: none; }
  .tbl.cards td:first-child { justify-content: flex-start; text-align: left; padding-top: 0; }
  .tbl.cards td.actions { justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
  .tbl.cards td.actions::before { display: none; }
  .tbl.cards td.actions .btn { margin-left: 0; }
  .tbl.cards td .input { width: 100% !important; max-width: 160px; }
  .tbl.cards td[colspan] { justify-content: center; }
  .tbl.cards td[colspan]::before { display: none; }
  .tbl.cards td.chips-inline { display: flex; }
  .tbl.cards td.chips-inline > * { margin-left: 0; }
}
@media (min-width: 420px) and (max-width: 639px) {
  .ships { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ship { padding: 14px; }
}
.sidebar-logout { display: none; width: 100%; justify-content: center; }
@media (max-width: 480px) { .sidebar-logout { display: inline-flex; } }
.hud.red { border-color: rgba(255, 59, 92, 0.3); } .hud.red::before, .hud.red::after { background: var(--red); }
