/* style.css */
:root{
  --bg:#0b1220;
  --panel: rgba(255,255,255,.08);
  --panel-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.14);
  --text:#eaf2ff;
  --muted: rgba(234,242,255,.72);
  --accent:#66a6ff;
  --accent2:#9ad5ff;
  --shadow: rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}

/* wichtig: html nicht auf 100% zwingen, sonst wirkt der BG bei langen Seiten gern "abgeschnitten" */
html{background:none}
body{min-height:100%}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color:var(--text);

  /* wichtig: Canvas ist der bewegte Hintergrund, also Body-Background schlicht halten */
  background: var(--bg);
  background-attachment: fixed;

  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

/* optional: wenn du den Glow weiterhin willst, mach ihn als Overlay, nicht als body bg */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 800px at 15% 0%, rgba(102,166,255,.18), transparent 60%),
    radial-gradient(900px 650px at 95% 10%, rgba(154,213,255,.10), transparent 60%),
    radial-gradient(900px 650px at 50% 120%, rgba(102,166,255,.10), transparent 60%);
  opacity:1;
}

/* links */
a{
  color:var(--text);
  text-decoration:none;
  border-bottom: 2px solid rgba(102,166,255,.8);
  padding-bottom:1px;
}
a:hover{
  background: linear-gradient(180deg, rgba(102,166,255,.22), rgba(102,166,255,0));
}

.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:14px;
  top:14px;
  width:auto;
  height:auto;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:10px;
  z-index:9999;
}

/* Canvas: strikt an Viewport koppeln, nie an Dokumenthöhe */
#bg-net{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  z-index:0;
  pointer-events:none;
  opacity:.9;
}

/* Content immer über Canvas + Glow-Overlay */
.wrap{
  position:relative;
  z-index:2;
  max-width:1120px;
  margin:0 auto;
  padding:28px 18px 96px;
}

.panel{
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:24px;
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(10px);
}

header{margin-bottom:18px}
section{margin-top:18px}
footer{margin-top:18px}

.nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:40px;
}

.brandname{
  font-weight:600;
  letter-spacing:.2px;
  opacity:.95;
}

.navlinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.navlinks a{
  display:inline-block;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transition: transform .12s ease, background .12s ease;
}
.navlinks a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
}

h1{
  margin:10px 0 10px 0;
  font-size:clamp(28px,4.6vw,46px);
  line-height:1.12;
  letter-spacing:.2px;
}
h2{
  margin:10px 0 12px 0;
  font-size:clamp(20px,3vw,28px);
  line-height:1.25;
}
h3{
  margin:0 0 6px 0;
  font-size:18px;
  line-height:1.35;
}
.lead{color:var(--muted); font-size:clamp(16px,2.3vw,18px); margin-bottom:6px}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-size:12px;
  margin-right:8px;
}

.card{padding:22px}

.highlight{
  background: rgba(102,166,255,.10);
  border-left:4px solid rgba(102,166,255,.9);
  padding:12px 14px;
  border-radius:14px;
}

.list{
  margin:12px 0 12px 18px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  margin-top:14px;
}

.entry{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  border-radius:16px;
  padding:16px;
}
.entry-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.entry-link{
  white-space:nowrap;
  border-bottom:2px solid rgba(154,213,255,.85);
}

.entry-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(102,166,255,.25), rgba(102,166,255,.10));
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(102,166,255,.30), rgba(102,166,255,.12));
}
.btn-ghost{
  background: rgba(255,255,255,.03);
}
.btn-small{
  padding:8px 12px;
  border-radius:11px;
}

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.impressum{
  margin-top:8px;
  background: rgba(255,255,255,.04);
  border:1px dashed rgba(255,255,255,.18);
  border-radius:14px;
  padding:14px;
  color:var(--text);
  text-align:left;
}

.footnote{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
}

/* iOS/Safari Edge-Case: fixed background kann ruckeln */
@supports (-webkit-touch-callout: none) {
  body{background-attachment: scroll}
}

/* Responsive */
@media (min-width: 880px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
}
