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

:root {
  --bg: #f5f5f5;
  --bg2: #ffffff;
  --bg3: #f8f8fa;
  --header-bg: rgba(245, 245, 245, 0.85);
  --border: rgba(26, 26, 46, 0.1);
  --accent:    #3b82f6;
  --accent-text: #295cae;
  --accent3:   #8b5cf6;
  --prompt:    #10b981;
  --text: #1a1a2e;
  --text-muted:#64748b;
  --text-dim:  #94a3b8;
  --radius:    12px;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: rgba(59,130,246,.08); top: -150px; left: -100px; animation-duration: 14s; }
.orb-2 { width: 400px; height: 400px; background: rgba(139,92,246,.06); bottom: -100px; right: -80px; animation-duration: 11s; animation-delay: -4s; }
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.08); }
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px rgba(59,130,246,.25);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}
.header-tagline {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .08em;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

/* ── MAIN ── */
main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 52px;
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent-text);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-title span {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-sub {
  font-size: .95rem;
  color: var(--text-dim);
  font-weight: 300;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent-text);
  margin-top: 14px;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
}
.empty-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,130,246,.3); }

/* ── GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── MITARBEITER KARTE ── */
.ma-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  animation: cardIn .5s both;
}
.ma-card:hover {
  border-color: rgba(59,130,246,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(59,130,246,.08);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ma-cover {
  height: 60px;
  background: linear-gradient(135deg, #0f1825 0%, #1a2540 50%, #0f1520 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ma-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,.15) 0%, transparent 60%);
}
.ma-cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

.ma-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -28px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.ma-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 2px solid var(--bg2);
  box-shadow: 0 0 0 1px var(--border), 0 4px 12px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-text);
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f, #2d4a7a);
  transition: all .3s;
}
.ma-card:hover .ma-avatar {
  box-shadow: 0 0 0 1px rgba(59,130,246,.3), 0 4px 16px rgba(59,130,246,.15);
}
.ma-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ma-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ma-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -.01em;
}
.ma-position {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--accent-text);
  letter-spacing: .08em;
  text-align: center;
  margin-bottom: 10px;
}
.ma-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4px 0 10px;
}
.ma-email {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .78rem;
  color: var(--text-muted);
  transition: all .2s;
}
.ma-card:hover .ma-email {
  border-color: rgba(59,130,246,.2);
  color: var(--text-dim);
}
.ma-email-icon { font-size: .85rem; flex-shrink: 0; }
.ma-email-val {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ma-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-muted);
  transition: all .25s;
  letter-spacing: .06em;
}
.ma-card:hover .ma-arrow {
  color: var(--accent-text);
  transform: translateX(4px);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-text {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 16px;
  font-size: .65rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent-text); }

/* ── Desktop ── */
@media (min-width: 1024px) {
  main { max-width: 1200px; }
}

/* ── Tablet ── */
@media (max-width: 768px) {
  header { padding: 14px 20px; }
  main { padding: 32px 20px; }
  footer { padding: 14px 20px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .page-header { margin-bottom: 36px; }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  header { padding: 12px 16px; gap: 10px; }
  .header-tagline { display: none; }
  main { padding: 24px 14px; }
  footer { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .team-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 1.8rem; }
  .page-header { margin-bottom: 28px; }
  .empty-state { padding: 48px 20px; }
}

/* ── Sehr kleine Screens ── */
@media (max-width: 360px) {
  main { padding: 20px 10px; }
  .brand-name { font-size: .9rem; }
}
