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

:root {
  --bg:        #080c10;
  --surface:   #0d1117;
  --surface2:  rgba(13,17,23,0.88);
  --border:    rgba(0,255,150,0.15);
  --green:     #00ff96;
  --green-dim: #00cc78;
  --cyan:      #00e5ff;
  --white:     #e8edf2;
  --muted:     #5a6570;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--white);
  min-height: 100vh;
}

/* ─── Matrix Canvas ─── */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.30;
}

/* ─── Vignette overlay ─── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center,
    transparent 20%,
    rgba(8,12,16,0.65) 65%,
    rgba(8,12,16,0.95) 100%);
  pointer-events: none;
}

/* ─── Page content wrapper ─── */
.page-content {
  position: relative;
  z-index: 2;
}

/* ─── Header ─── */
header {
  padding: 72px 20px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ─── AI Badge ─── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(0,255,150,0.05);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2.2rem;
  animation: fadeSlideDown 0.8s ease both;
}
.ai-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ─── Brand ─── */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s 0.1s ease both;
}
.brand-mark {
  width: 48px; height: 48px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}
.brand-name span { color: var(--green); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ─── Headline ─── */
.headline {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeSlideDown 0.8s 0.2s ease both;
}
.headline h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding-bottom: 0.15em;
  background: linear-gradient(135deg, var(--white) 30%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.headline p {
  margin-top: 0.9rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ─── Features row ─── */
.features {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0;
  animation: fadeSlideDown 0.8s 0.3s ease both;
  flex-wrap: wrap;
  justify-content: center;
}
.feature {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.feature .icon { color: var(--green); font-size: 0.85rem; }

/* ─── Container ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ─── Search ─── */
.search {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  color: var(--white);
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeSlideUp 0.8s 0.35s ease both;
}
.search::placeholder { color: var(--muted); }
.search:focus {
  border-color: rgba(0,255,150,0.4);
  box-shadow: 0 0 0 3px rgba(0,255,150,0.08), 0 0 20px rgba(0,255,150,0.06);
}

/* ─── Alphabet ─── */
.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s 0.45s ease both;
}
.alphabet button {
  background: rgba(13,17,23,0.7);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.alphabet button:hover {
  color: var(--green);
  border-color: rgba(0,255,150,0.4);
  background: rgba(0,255,150,0.06);
}

/* ─── Grid ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  animation: fadeSlideUp 0.8s 0.55s ease both;
}

/* ─── Card ─── */
.card {
  background: var(--surface2);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 0 24px rgba(0,255,150,0.04), 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,150,0.35);
  box-shadow: 0 0 32px rgba(0,255,150,0.08), 0 12px 32px rgba(0,0,0,0.4);
}
.term {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--white);
}
.definition {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.875rem;
}

/* ─── Article ─── */
.article {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface2);
  backdrop-filter: blur(16px);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0,255,150,0.05), 0 16px 48px rgba(0,0,0,0.4);
  line-height: 1.75;
  animation: fadeSlideUp 0.5s ease both;
}
.article h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 40%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.article h4 { margin-top: 1.2rem; color: var(--white); }
.article p, .article li { color: #8b98a6; }
.article ul { padding-left: 1.4rem; }
.article li { margin-bottom: 0.3rem; }
.article a { color: var(--green); text-decoration: none; }
.article a:hover { text-decoration: underline; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(0,255,150,0.04);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.back:hover {
  color: var(--green);
  border-color: rgba(0,255,150,0.35);
}

.faq {
  background: rgba(8,12,16,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 0.875rem;
  color: #8b98a6;
}
.faq strong { color: var(--white); }

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid rgba(0,255,150,0.07);
}
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--green); }
.sep { opacity: 0.3; }

/* ─── Impressum Modal ─── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(0,255,150,0.08), 0 24px 48px rgba(0,0,0,0.6);
  animation: fadeSlideUp 0.25s ease both;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}
.modal-header .tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,255,150,0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0.2rem;
}
.modal-close:hover { color: var(--white); }
.modal-body {
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #8b98a6;
}
.modal-body h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 1.25rem 0 0.5rem;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { color: #8b98a6; }
.modal-body a { color: var(--muted); text-decoration: none; }
.modal-body a:hover { color: var(--green); }
.modal-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ─── Animations ─── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ─── Custom Cursor ─── */
@keyframes softBlink {
  0%, 100% { color: var(--muted); }
  50%       { color: #9d0b0e; }
}
.powered-link { animation: softBlink 2.8s ease-in-out infinite; transition: none; }
.powered-link:hover { color: var(--green) !important; animation-play-state: paused; }
body.custom-cursor, body.custom-cursor * { cursor: none !important; }
#cursor-dot, #cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; transform: translate(-50%,-50%); z-index: 9999; }
#cursor-dot { width: 8px; height: 8px; background: #9d0b0e; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
#cursor-ring { width: 30px; height: 30px; border: 2px solid #9d0b0e; border-radius: 50%; opacity: 0; transition: width 0.2s, height 0.2s, opacity 0.3s; }
#cursor-dot.is-hovering { animation: cursorPulse 0.7s ease-in-out infinite; }
#cursor-ring.is-hovering { width: 42px; height: 42px; opacity: 0.35; }
@keyframes cursorPulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 50% { transform: translate(-50%,-50%) scale(1.9); opacity: 0.5; } }

/* ─── Validation Mode (DB vs Template) ─── */
.validation-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin: 0 0 18px;
  border-radius: 10px;
  border: 1px dashed rgba(0, 255, 150, 0.35);
  background: rgba(0, 255, 150, 0.05);
  font-size: 0.82rem;
  color: var(--white);
  font-family: var(--font-mono);
}
.validation-banner .vb-label {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 255, 150, 0.15);
  color: var(--green);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 255, 150, 0.35);
}
.validation-banner strong { color: var(--green); }

.src-db, .src-empty, .src-template {
  position: relative;
  padding: 12px 14px;
  margin: 8px 0 18px;
  border-radius: 8px;
  border-left: 4px solid;
  font-size: 0.9rem;
  line-height: 1.6;
}
.src-db {
  border-left-color: var(--green);
  background: rgba(0, 255, 150, 0.06);
}
.src-empty {
  border-left-color: #555a62;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-style: italic;
}
.src-template {
  border-left-color: #ffaa00;
  background: rgba(255, 170, 0, 0.06);
}

.src-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
}
.src-db > .src-label {
  color: var(--green);
  background: rgba(0, 255, 150, 0.12);
  border: 1px solid rgba(0, 255, 150, 0.35);
}
.src-empty > .src-label {
  color: #9aa2ad;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.src-template > .src-label {
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.12);
  border: 1px solid rgba(255, 170, 0, 0.35);
}

.src-db p, .src-db li, .src-template p, .src-template li {
  color: #b0bcc9;
}
.src-db ul, .src-template ul { margin-top: 0.4rem; padding-left: 1.2rem; }

/* Link-Meta */
.link-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  margin-right: 0.4rem;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}
.link-provider { color: var(--muted); font-size: 0.85rem; }
.badge-official {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(0, 255, 150, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 150, 0.35);
}
.link-tag, .tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  margin: 0 0.25rem 0.25rem 0;
  border-radius: 999px;
  background: rgba(0, 255, 150, 0.06);
  color: var(--green-dim);
  border: 1px solid var(--border);
}
.relation-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .features { flex-direction: column; align-items: center; gap: 0.5rem; }
  .article { padding: 24px 18px; }
  .brand-name { font-size: 1.4rem; }
}
