:root {
  --bg: #0f111a;
  --text: #e6e6e6;
  --muted: #a7b0c0;
  --accent: #1e90ff;
  --accent-2: #4aa3ff;
  --card-bg: #161925;
  --card-stroke: rgba(255,255,255,.06);
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px;
}

:root.light {
  --bg: #f2f5f8;
  --text: #121212;
  --muted: #4b5563;
  --accent: #0d6efd;
  --accent-2: #3d8bfd;
  --card-bg: #ffffff;
  --card-stroke: rgba(0,0,0,.08);
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Inter", Arial;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent);
  z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: center;
  padding: 2.4rem 1rem 1rem;
  position: relative;
}
.brand-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--accent);
  letter-spacing: .2px;
}
.brand-sub {
  margin: .25rem 0 0;
  color: var(--muted);
}
.menu-toggle {
  position: absolute; right: 1rem; top: 1.4rem;
  background: transparent; border: 1px solid var(--card-stroke);
  color: var(--text); font-size: 1.1rem; border-radius: 10px;
  padding: .35rem .55rem; cursor: pointer;
}

/* Sidebar (unchanged behaviour) */
.sidebar {
  position: fixed; right: -260px; top: 0; width: 260px; height: 100%;
  background: var(--card-bg); box-shadow: -4px 0 16px rgba(0,0,0,.35);
  transition: right .28s ease; z-index: 999;
  border-left: 1px solid var(--card-stroke);
}
.sidebar.open { right: 0; }
.sidebar-content { padding: 1.2rem; }
.sidebar-btn {
  display: block; width: 100%; margin-bottom: 10px; padding: 12px;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); font-size: 1rem; border-radius: 10px; cursor: pointer;
}
.sidebar-btn:hover { background: var(--accent); color: var(--bg); }

/* Hero */
.hero { padding: 1rem 0 2rem; }
.hero .container {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}
.hero-title {
  font-size: clamp(22px, 3vw, 28px);
  margin: .5rem 0 0;
}
.hero-text { color: var(--muted); margin: .6rem 0 1rem; }
.pill {
  background: rgba(30,144,255,.12);
  border: 1px solid rgba(30,144,255,.25);
  padding: .15rem .5rem; border-radius: 999px; font-size: .95rem;
}

.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; cursor: pointer; font-weight: 600;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); color: var(--bg); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.05); }

.hero-card {
  background: radial-gradient(1000px 400px at 20% -30%, rgba(30,144,255,.12), transparent),
              var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.mini-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.mini-card {
  padding: .9rem; border: 1px solid var(--card-stroke); border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.mini-title { font-weight: 700; }
.mini-sub { color: var(--muted); font-size: .92rem; margin-top: .15rem; }

/* Sections */
.section { padding: 1rem 0 1.4rem; }
.section-title { margin: 0 0 .8rem; font-size: 1.2rem; color: var(--accent); }

/* Cards */
.cards { display: grid; gap: 1rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  padding: 1.1rem;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.card:hover { transform: translateY(-2px); border-color: rgba(30,144,255,.45); }
.card-icon { font-size: 1.4rem; margin-bottom: .35rem; }
.card-title { margin: 0 0 .25rem; font-size: 1.05rem; }
.card-text { margin: 0; color: var(--muted); }
.card-disabled { opacity: .75; pointer-events: none; }

.chip {
  position: absolute; right: .9rem; top: .9rem;
  font-size: .85rem; padding: .2rem .5rem; border-radius: 999px;
  border: 1px solid var(--card-stroke); color: var(--muted);
}
.chip-ok { border-color: rgba(0,180,95,.35); color: #7bdc9b; }

/* Timeline */
.timeline { display: grid; gap: .9rem; }
.tl-item { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; align-items: start; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: .35rem; }
.tl-content { border: 1px solid var(--card-stroke); border-radius: 10px; padding: .7rem .9rem; background: var(--card-bg); }
.tl-head { display: flex; align-items: center; gap: .6rem; justify-content: space-between; }
.tl-title { font-weight: 700; }
.tl-time { color: var(--muted); font-size: .9rem; }

/* About */
.about {
  display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: center;
  border: 1px solid var(--card-stroke); background: var(--card-bg); padding: 1rem; border-radius: var(--radius);
}
.about-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(30,144,255,.25), rgba(30,144,255,.05));
  border: 1px solid var(--card-stroke); font-weight: 800; color: var(--accent);
}
.about-text { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 1.2rem; border-top: 1px solid var(--card-stroke); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1rem; padding: 1.1rem 0;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 800; color: var(--accent); }
.footer-sub { color: var(--muted); }
.footer-head { font-weight: 700; margin-bottom: .4rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: .25rem 0; }
.footer-list a { color: var(--text); }
.footer-list a:hover { color: var(--accent-2); }

copyright, .copyright {
  text-align: center; color: var(--muted); font-size: .9rem; padding: .9rem 0 1.4rem;
}

/* Background Canvas */
#dot-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* Admin / Layout helpers */
.page { margin-left: 260px; padding: 24px; }
.page.center { display: grid; place-items: center; min-height: 100dvh; }

.page-header { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom: 16px; }
.chip { padding:4px 10px; border:1px solid #2a2a2a; border-radius:999px; background:#121212; opacity:.9; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.card {
  background:#151515; border:1px solid #2a2a2a; border-radius:14px; padding:16px;
}

.stat-card { text-align:left; }
.stat-card .stat { font-size:2rem; font-weight:700; margin:.25rem 0 0; }

.cards.two-col {
  display:grid; grid-template-columns: 1fr 1fr; gap:12px;
}
@media (max-width: 960px) {
  .cards.two-col { grid-template-columns: 1fr; }
}

.nice-table { width:100%; border-collapse: collapse; }
.nice-table th, .nice-table td { border-bottom:1px solid #2a2a2a; padding:8px 10px; text-align:left; }
.nice-table thead th { font-weight:600; opacity:.9; }

.form input { width:100%; margin:.4rem 0; padding:.7rem; border:1px solid #2a2a2a; border-radius:10px; background:#0f0f0f; color:#eaeaea; }
.form .primary { width:100%; padding:.8rem; border:none; border-radius:10px; background:#4f46e5; color:#fff; font-weight:600; cursor:pointer; }
.muted { opacity:.75; }

/* Active button style (optional) */
.sidebar-btn-active { outline: 2px solid #4f46e5; }

/* Seitenlayout (Sidebar + Content) */
.page { margin-left: 260px; padding: 24px; }
.center-grid { display:grid; place-items:center; min-height:100dvh; }

/* Karten & Buttons – falls nicht schon definiert */
.card { background:#151515; border:1px solid #2a2a2a; border-radius:14px; padding:16px; }
.form input { width:100%; margin:.4rem 0; padding:.7rem; border:1px solid #2a2a2a; border-radius:10px; background:#0f0f0f; color:#eaeaea; }
.primary { padding:.8rem 1rem; border:none; border-radius:10px; background:#4f46e5; color:#fff; font-weight:600; cursor:pointer; }

/* Flash */
.flash-list { list-style:none; padding:0; margin:0 0 10px; }
.flash { padding:.6rem .8rem; border-radius:10px; border:1px solid #2a2a2a; background:#151515; }
.flash-success { border-color:#2e7d32; }
.flash-danger  { border-color:#b00020; }
.flash-warning { border-color:#a68b00; }
.flash-info    { border-color:#1e88e5; }

