/* ==========================
   Design Tokens
   ========================== */
:root{
  --bg: #0a0c12;                 /* deep space */
  --text: #e7ebf2;               /* soft white */
  --muted: #a5afc2;
  --card: rgba(20,24,34,0.55);   /* glass */
  --stroke: rgba(255,255,255,0.12);
  --brand: #7af0ff;              /* neon cyan */
  --brand-2: #ff8bff;            /* neon magenta */
  --brand-3: #ffa14d;            /* neon orange */
  --shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.06);
  --radius: 18px;
  --blur: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==========================
   Stage: full-bleed video bg
   ========================== */
.stage{
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(1200px 600px at 70% 30%, rgba(122,240,255,.18), transparent 60%),
              radial-gradient(900px 500px at 20% 70%, rgba(255,139,255,.12), transparent 60%),
              linear-gradient(180deg, #0a0c12 0%, #0a0c12 60%, #0d0f16 100%);
}
.stage video{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) contrast(1.05) brightness(.8);
}
.vignette{ position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(1200px 800px at 50% 40%, transparent 0%, rgba(0,0,0,.2) 70%),
              linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 100%);
}
.noise{ position: fixed; inset: 0; opacity:.06; mix-blend-mode: overlay; pointer-events: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.35"/></svg>'); background-size: 200px; z-index: 10; }

/* ==========================
   Navigation (glass + neon)
   ========================== */
.nav{
  position: sticky; top: 0; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  background: linear-gradient(180deg, rgba(10,12,18,.8), rgba(10,12,18,.35));
  border-bottom: 1px solid var(--stroke); z-index: 50;
}
.nav-inner{
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 20px;
}
.logo{
  font-weight: 800; letter-spacing: .5px; font-size: 18px; display: inline-flex; align-items:center; gap:10px;
}
.logo .dot{ width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 14px var(--brand); }

.nav ul{ list-style: none; display: flex; margin: 0 0 0 auto; padding: 0; gap: 12px; align-items:center; }
.nav a{
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 999px; position: relative; display: inline-flex; align-items: center; gap:8px;
}
.nav a::after{ content:''; position:absolute; inset:0; border-radius:999px; border:1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, radial-gradient(100% 100% at 50% 0%, var(--brand), var(--brand-2)) border-box; opacity:.0; transition: opacity .25s ease; }
.nav a:hover::after{ opacity:.6; }

.nav .cta{ padding: 10px 14px; border: 1px solid var(--stroke); background: linear-gradient(180deg, rgba(122,240,255,.15), rgba(255,139,255,.12)); box-shadow: var(--shadow); }
.nav .toggle{ border:1px solid var(--stroke); padding: 8px 10px; border-radius: 12px; font-size: 13px; cursor:pointer; background: rgba(255,255,255,.03); }

/* ==========================
   Hero
   ========================== */
.hero{
  min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 120px 24px 64px;
}
.hero h1{
  font-size: clamp(36px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 18px; text-shadow: 0 6px 40px rgba(0,0,0,.4);
}
.hero p{
  max-width: 680px; margin: 0 auto 28px; font-size: clamp(16px, 2.2vw, 20px); color: var(--muted);
}
.actions{ display:flex; gap:12px; justify-content:center; flex-wrap: wrap; }
.btn{
  --ring: var(--brand);
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 18px; border-radius: 14px; border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: var(--text); text-decoration:none; font-weight:700; letter-spacing:.2px; position:relative;
  box-shadow: var(--shadow);
}
.btn .pulse{ width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--ring), transparent 60%); box-shadow: 0 0 18px var(--ring), 0 0 48px var(--ring); }
.btn.primary{ border: 1px solid transparent; background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box; }

/* ==========================
   Sections (glass cards)
   ========================== */
section{ scroll-margin-top: 72px; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grid{
  display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr);
}
.card{
  grid-column: span 4; min-height: 240px; padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--stroke); box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); position:relative; overflow:hidden;
}
.card h3{ margin: 6px 0 6px; font-size: 18px; letter-spacing:.2px; }
.card p{ color: var(--muted); font-size: 14px; }

.tag{ position:absolute; top:12px; right:12px; padding:6px 10px; font-size:12px; border-radius:999px; border:1px solid var(--stroke); background: rgba(255,255,255,.05); }
.glow{ position:absolute; inset:auto auto -30% -30%; width: 60%; height: 60%; background: radial-gradient(50% 50% at 50% 50%, rgba(122,240,255,.25), transparent 60%); transform: rotate(12deg); filter: blur(20px); }

/* responsive columns */
@media (max-width: 1100px){ .card{ grid-column: span 6; } }
@media (max-width: 700px){ .card{ grid-column: span 12; } }

/* ==========================
   Parallax layers
   ========================== */
.parallax{
  position: relative; height: 50vh; margin: 80px 0; overflow: hidden; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.layer{ position:absolute; inset:0; background-position: center; background-size: cover; opacity:.35; }
.l1{ background-image: radial-gradient(900px 400px at 20% 50%, var(--brand), transparent 60%); mix-blend-mode: screen; }
.l2{ background-image: radial-gradient(900px 400px at 80% 60%, var(--brand-2), transparent 60%); mix-blend-mode: screen; }
.l3{ background-image: radial-gradient(900px 400px at 50% 40%, var(--brand-3), transparent 60%); mix-blend-mode: screen; opacity:.25; }

/* ==========================
   Footer
   ========================== */
footer{ margin: 80px 0 40px; }
.footer-inner{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; color: var(--muted); display:flex; gap:16px; align-items:center; justify-content:space-between; }
.mini{ font-size: 12px; }

/* ==========================
   Motion preferences
   ========================== */
@media (prefers-reduced-motion: reduce){
  html:focus-within { scroll-behavior: auto; }
  .stage video{ animation: none !important; }
}

/* === Crossfade Layering for background videos === */
.stage { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.stage .bgVideo{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease; /* Crossfade-Dauer */
  filter: saturate(1.2) contrast(1.05) brightness(.8);
  pointer-events: none;
}
.stage .bgVideo.active{ opacity: 1; }

.stage .bgVideo{ will-change: opacity; }

/* === Nav Enhancements: Suche, Dropdown, Neon-Toggle === */
.nav-inner { gap: 14px; }
.nav .logo { text-decoration: none; color: var(--text); }

/* Menügruppe eigenständige Klasse */
.menu { list-style: none; display: flex; margin: 0 8px 0 auto; padding: 0; gap: 12px; align-items: center; }
.menu > li { position: relative; }

/* Dropdown */
.has-dd > .dropdown{
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 8px;
  opacity: 0; transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.has-dd:hover > .dropdown,
.has-dd:focus-within > .dropdown,
.has-dd.open > .dropdown {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown a{
  display: block; color: var(--text); text-decoration: none;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.dropdown a:hover{ background: rgba(255,255,255,.05); }

/* Suche */
.search{
  position: relative; display: flex; align-items: center;
  margin-left: 8px;
}
.search input{
  width: 210px; max-width: 38vw;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color: var(--text); outline: none;
  padding: 10px 36px 10px 12px; border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600; letter-spacing:.1px;
}
.search input::placeholder{ color: var(--muted); }
.search .slash{
  position: absolute; right: 8px;
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--stroke); border-bottom: 3px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.05);
  padding: 2px 6px; border-radius: 6px; user-select: none;
}

/* Neon Toggle – besser lesbar */
.neon-toggle{
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--stroke); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  padding: 8px 12px; cursor: pointer; font-weight: 800;
  letter-spacing: .2px; color: var(--text);
  box-shadow: var(--shadow);
}
.neon-toggle .badge{
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 12px var(--brand), 0 0 24px var(--brand-2);
}
.neon-toggle .label{ font-size: 13px; opacity: .92; }

/* Touch: Dropdown soll Breite einhalten */
@media (hover:none){
  .dropdown{ min-width: 260px; }
}

/* Performance-Tipp für Crossfade */
.stage .bgVideo{ will-change: opacity; }



/* === Mobile Burger & Slide-Over === */
body.no-scroll { overflow: hidden; }
.burger{
  display: none; margin-left: 8px;
  width: 42px; height: 36px; border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: var(--shadow); cursor: pointer;
}
.burger span{ display:block; height:2px; margin:6px 10px; background: var(--text); }
@media (max-width: 980px){
  .menu{ display:none; }
  .search{ display:none; }
  .neon-toggle{ display:none; }
  .burger{ display:block; }
}

.overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 60;
}
.overlay.show{ opacity:1; pointer-events: auto; }

.sideover{
  position: fixed; top:0; right:0; height:100vh; width: min(86vw, 360px);
  background: var(--card); border-left:1px solid var(--stroke);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  transform: translateX(100%); transition: transform .25s ease; z-index: 70;
  display:flex; flex-direction: column;
}
.sideover.open{ transform: translateX(0); }
.sideover-head{ display:flex; align-items:center; justify-content:space-between; padding:14px; border-bottom:1px solid var(--stroke); }
.logo-mini{ display:flex; align-items:center; gap:10px; font-weight:800; }
.logo-mini .dot{ width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 14px var(--brand); }
.sideover-head .close{ width:36px; height:36px; border-radius:10px; border:1px solid var(--stroke); background: rgba(255,255,255,.06); color: var(--text); font-size:20px; cursor:pointer; }
.sideover-body{ padding: 14px; overflow:auto; display:flex; flex-direction:column; gap:8px; }
.sideover-body .link{ color: var(--text); text-decoration:none; font-weight:700; padding:10px 12px; border-radius:12px; }
.sideover-body .link:hover{ background: rgba(255,255,255,.06); }
.sideover-body details{ border:1px solid var(--stroke); border-radius:12px; padding:8px 10px; }
.sideover-body summary{ list-style:none; cursor:pointer; font-weight:700; }
.sideover-body .sublink{ display:block; padding:8px 10px; color: var(--text); text-decoration:none; border-radius:8px; }
.sideover-body .sublink:hover{ background: rgba(255,255,255,.05); }
.sideover .row{ margin-top: 6px; }
.neon-toggle.full{ width:100%; justify-content:center; }
.search.mobile input{ width:100%; }

/* === Dropdown (bereits vorhanden) Tweaks for touch width === */
@media (hover:none){ .dropdown{ min-width: 260px; } }

/* === Command Palette === */
.cmdk-overlay{
  position: fixed; inset:0; background: rgba(0,0,0,.5);
  opacity:0; pointer-events:none; transition: opacity .2s ease; z-index: 80;
}
.cmdk-overlay.show{ opacity:1; pointer-events:auto; }
.cmdk{
  position: fixed; inset:0; display:flex; align-items:flex-start; justify-content:center;
  padding: min(10vh, 80px) 16px 16px; z-index: 81; pointer-events:none; opacity:0; transition: opacity .2s ease;
}
.cmdk.show{ opacity:1; pointer-events:auto; }
.cmdk-inner{
  width: min(800px, 96vw); background: var(--card); border:1px solid var(--stroke); border-radius: 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.cmdk-input-row{ display:flex; align-items:center; gap:10px; padding:12px; border-bottom:1px solid var(--stroke); }
.cmdk-icon{ font-size: 12px; padding:4px 6px; border:1px solid var(--stroke); border-radius:6px; background: rgba(255,255,255,.06); }
#cmdkInput{ flex:1; padding:10px 12px; border:1px solid var(--stroke); background: rgba(255,255,255,.04); color: var(--text); border-radius:10px; outline:none; }
.cmdk-close{ width:36px; height:36px; border-radius:10px; border:1px solid var(--stroke); background: rgba(255,255,255,.06); color: var(--text); font-size:18px; cursor:pointer; }

.cmdk-list{ max-height: 50vh; overflow:auto; padding:6px; display:grid; gap:6px; }
.cmdk-item{
  display:block; padding:10px 12px; border-radius:12px; text-decoration:none; color: var(--text);
  border:1px solid transparent;
}
.cmdk-item:hover{ background: rgba(255,255,255,.05); }
.cmdk-item.active{ background: rgba(255,255,255,.08); border-color: var(--stroke); }
.cmdk-help{ color: var(--muted); font-size: 12px; padding: 10px 12px 14px; }

/* === Suche / Dropdown / Neon schon vorhanden, kleine Ergänzungen === */
.nav-inner { gap: 14px; }
.nav .logo { text-decoration: none; color: var(--text); }
.menu { list-style: none; display: flex; margin: 0 8px 0 auto; padding: 0; gap: 12px; align-items: center; }
.menu > li { position: relative; }
.has-dd > .dropdown{
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px; background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  padding: 8px; opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.has-dd:hover > .dropdown,
.has-dd:focus-within > .dropdown,
.has-dd.open > .dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dropdown a{ display: block; color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.dropdown a:hover{ background: rgba(255,255,255,.05); }

/* Suche (Desktop) */
.search{ position: relative; display: flex; align-items: center; margin-left: 8px; }
.search input{
  width: 210px; max-width: 38vw; border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color: var(--text); outline: none; padding: 10px 36px 10px 12px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; letter-spacing:.1px;
}
.search input::placeholder{ color: var(--muted); }
.search .slash{
  position: absolute; right: 8px; font-size: 11px; color: var(--muted);
  border: 1px solid var(--stroke); border-bottom: 3px solid rgba(255,255,255,.05); background: rgba(255,255,255,.05);
  padding: 2px 6px; border-radius: 6px; user-select: none;
}

/* Neon Toggle – besser lesbar */
.neon-toggle{
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--stroke); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  padding: 8px 12px; cursor: pointer; font-weight: 800; letter-spacing: .2px; color: var(--text);
  box-shadow: var(--shadow);
}
.neon-toggle .badge{
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 12px var(--brand), 0 0 24px var(--brand-2);
}
.neon-toggle .label{ font-size: 13px; opacity: .92; }

/* Performance-Tipp für Crossfade */
.stage .bgVideo{ will-change: opacity; }


/* TEMP: Burger immer zeigen, bis alles passt */
.burger{ display:block !important; }


/* Command-Palette Button im Top-Nav */
.cmdk-btn-top{
  margin-left: 6px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  color: var(--text);
  padding: 8px 12px;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.cmdk-btn-top:hover{ background: rgba(255,255,255,.12); }

/* ==========================
   Detailseite – Prose / Artikel
   ========================== */

/* Grundtypografie innerhalb des Artikels */
article.card{
  grid-column: 1 / -1;
  padding: clamp(24px, 3vw, 44px);
  font-size: 17px;
  line-height: 1.7;
}

article.card :is(h2,h3,h4){
  margin: 1.6em 0 .6em;
  line-height: 1.2;
  letter-spacing: -.01em;
}
article.card h2{ font-size: clamp(22px, 2.6vw, 30px); }
article.card h3{ font-size: clamp(19px, 2.2vw, 24px); }
article.card h4{ font-size: clamp(17px, 2vw, 20px); }

article.card p{ margin: .9em 0; color: var(--text); }
article.card p.lead{ font-size: 18px; color: var(--muted); }

/* Links im Fließtext */
article.card p a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--brand);
  padding-bottom: 2px;
}
article.card p a:hover{
  border-bottom-style: solid;
  text-shadow: 0 0 18px rgba(122,240,255,.25);
}

/* Medien */
article.card img,
article.card video,
article.card iframe{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  margin: 24px 0;
}

/* Wide / Full-bleed Helferklassen (optional im Content verwenden) */
.media-wide{ width: min(1100px, 100%); margin: 28px auto; }
.media-full{ position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; }

/* Figuren & Bildunterschriften */
article.card figure{ margin: 24px 0; }
article.card figcaption{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Zitate */
article.card blockquote{
  margin: 20px 0;
  padding: 14px 16px 14px 18px;
  border-left: 3px solid var(--brand);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  color: var(--muted);
}

/* Code */
article.card code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 85%;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
}
article.card pre{
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.35);
  box-shadow: var(--shadow);
  margin: 18px 0;
}
article.card pre code{
  border: none; background: transparent; padding: 0; font-size: 90%;
}

/* Tabellen */
article.card table{
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
article.card thead th{
  text-align: left;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  background: rgba(255,255,255,.05);
}
article.card th, article.card td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
}
article.card tbody tr:hover{ background: rgba(255,255,255,.03); }

/* Tags (Ergänzung, falls im Hero benutzt) */
.tag{
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.tag::before{
  content:''; width:8px; height:8px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--brand), var(--brand-2));
  box-shadow: 0 0 12px var(--brand), 0 0 24px var(--brand-2);
}

/* Related Cards als Links (smooth hover) */
a.card{ text-decoration: none; color: var(--text); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
a.card:hover{
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--stroke), var(--brand) 30%);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

/* Mini-Metas (Autor/Datum) – optional */
.meta{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  font-size: 13px; color: var(--muted);
}
.pill{
  border:1px solid var(--stroke);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-weight: 700;
}

/* Keyboard-Hinweise (⌘K etc.) – optional im Text */
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  padding: 2px 6px; border-radius: 6px;
  color: var(--muted);
}

/* Hover-Lift auch für generische .card auf der Detailseite */
.card{ transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.card:hover{ transform: translateY(-1px); }

/* Responsive Feinschliff */
@media (max-width: 700px){
  article.card{ font-size: 16px; padding: 22px; }
  article.card :is(h2,h3,h4){ margin-top: 1.2em; }
}

/* --- Prose Typo for article body --- */
.prose { line-height: 1.65; font-size: 1.05rem; color: var(--text, #eaeaea); }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.25; margin: 1.2em 0 .4em; }
.prose p { margin: .9em 0; }
.prose ul { margin: .8em 0 .8em 1.2em; padding: 0; }
.prose li { margin: .3em 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { padding: .1em .3em; border: 1px solid var(--stroke,#333); border-radius: .35rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { padding: 12px; overflow:auto; border: 1px solid var(--stroke,#333); border-radius: 12px; }


/* ==========================
   Neon-Balken (Detail-Drawer)
   ========================== */
.neon-rail{
  --rail-max: 80vh;
  --rail-min: 2px;

  margin: 40px auto 0;
  max-width: var(--maxw);
  padding: 0 24px;

  /* nur der Strich sichtbar */
  max-height: var(--rail-min);
  overflow: hidden;
  border-top: 2px solid color-mix(in oklab, var(--brand) 60%, var(--brand-2) 40%);
  transition: max-height .35s ease, border-color .2s ease, box-shadow .2s ease;
}
.neon-rail.is-open{
  max-height: var(--rail-max);
}

.neon-rail__inner{
  border: 1px solid var(--stroke);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
}

.neon-rail__head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  background:
    linear-gradient(180deg, rgba(10,12,18,.9), rgba(10,12,18,.55));
  z-index: 1;
}
.neon-rail__title{
  font-weight: 800;
  letter-spacing: .2px;
}
.neon-rail__spacer{ flex: 1; }
.neon-rail__close{
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.neon-rail__body{
  padding: clamp(16px, 2vw, 24px);
  overflow: auto;
  max-height: calc(var(--rail-max) - 52px);
}

/* Platzhalter & Fehler */
.neon-rail__placeholder,
.neon-rail__error{
  color: var(--muted);
  font-size: 14px;
  padding: 8px 2px;
}

/* Mobile-Finetuning */
@media (max-width: 700px){
  .neon-rail{
    padding: 0 16px;
    --rail-max: 75vh;
  }
  .neon-rail__body{ max-height: calc(var(--rail-max) - 50px); }
}

