:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --line: rgba(255,255,255,.10);
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.55);
  --brand:#7C5CFF;
  --brand2:#00D4FF;
  --ok:#37E6A6;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(900px 700px at 90% 15%, rgba(0,212,255,.18), transparent 55%),
    radial-gradient(900px 700px at 55% 95%, rgba(55,230,166,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.wrap{max-width:1180px;margin:0 auto;padding:28px 18px 70px}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,10,18,.75), rgba(7,10,18,.45));
  border-bottom:1px solid var(--line);
}
.topbarInner{
  max-width:1180px;margin:0 auto;padding:14px 18px;
  display:flex;align-items:center;gap:14px;justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:12px;min-width:220px}
.brand img{width:40px;height:40px;object-fit:contain;filter: drop-shadow(0 10px 24px rgba(124,92,255,.25));}
.brand .t1{font-weight:800;letter-spacing:.4px}
.brand .t2{font-size:12px;color:var(--muted2);margin-top:2px}

.nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.chip{
  padding:10px 12px;border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius:999px;color:var(--muted);
  transition:.18s ease;font-weight:650;font-size:13px;
}
.chip:hover{transform:translateY(-1px);background: rgba(255,255,255,.07);color:var(--text)}
.chip.active{
  color:#fff;background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
  box-shadow: 0 10px 30px rgba(124,92,255,.12);
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(124,92,255,.92), rgba(0,212,255,.78));
  box-shadow: 0 16px 45px rgba(124,92,255,.18);
  font-weight:800;color:#fff; /* Buttons immer weiß */
  transition:.18s ease;cursor:pointer;white-space:nowrap;
}
.btn:hover{transform: translateY(-1px);filter:saturate(1.05)}
.btn.ghost{background: rgba(255,255,255,.06);box-shadow:none;border:1px solid rgba(255,255,255,.14)}
.btn.ghost:hover{background: rgba(255,255,255,.10)}
.btn.danger{background: rgba(255,90,90,.16); border-color: rgba(255,90,90,.28); box-shadow:none}
.btn.danger:hover{background: rgba(255,90,90,.22)}
.btn.small{padding:9px 11px;border-radius:12px;font-weight:850;font-size:12px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(800px 200px at 20% 0%, rgba(124,92,255,.22), transparent 50%),
              radial-gradient(900px 260px at 90% 10%, rgba(0,212,255,.16), transparent 55%);
  pointer-events:none; opacity:.7;
}
.cardInner{position:relative;padding:22px}

h1{margin:0;font-size: clamp(30px, 4.2vw, 52px);letter-spacing:-.6px;line-height:1.06}
h2{margin:0 0 10px;font-size:20px;letter-spacing:-.2px}
.lead{margin:12px 0 0;font-size:16px;color:var(--muted);max-width:70ch;line-height:1.6}

.ph{
  border:1px dashed rgba(255,255,255,.22);
  border-radius:18px;background: rgba(255,255,255,.04);
  min-height:220px;
  display:flex;align-items:center;justify-content:center;
  color: var(--muted2); font-weight:800; text-align:center; padding:16px;
}

.contentGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
@media (max-width: 980px){ .contentGrid{grid-template-columns:1fr} }
.infoCard{
  padding:18px;border:1px solid var(--line);border-radius: 20px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 14px 45px rgba(0,0,0,.35);
}
.infoCard p{margin:0;color:var(--muted);line-height:1.7}
.infoCard ul{margin:12px 0 0;padding-left:18px;color:rgba(234,240,255,.82);line-height:1.7}

.block{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  border-radius: 20px;
  overflow:hidden;
}
.blockIn{padding:18px}
.blockTitle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.blockTitle .k{font-weight:900;color:#fff;letter-spacing:.2px}
.blockText{color:var(--muted);line-height:1.7}
.blockText p{margin:0}

.blockImgWrap{
  width:100%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.blockImg{
  width:100%;
  height: 320px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 980px){ .blockImg{height: 240px;} }

.blockImgText{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:stretch;
}
@media (max-width: 980px){ .blockImgText{grid-template-columns:1fr} }

/* ----- Editor UI ----- */
.editorShell{display:grid;grid-template-columns: 320px 1fr 380px; gap:14px; min-height: calc(100vh - 70px);}
@media (max-width: 1180px){ .editorShell{grid-template-columns: 1fr; } }
.panel{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  border-radius: 20px;
  overflow:hidden;
}
.panelHd{padding:14px 14px;border-bottom:1px solid rgba(255,255,255,.10);display:flex;gap:10px;align-items:center;justify-content:space-between}
.panelHd .t{font-weight:950}
.panelBd{padding:14px}

.list{display:grid;gap:10px}
.item{
  padding:12px 12px;border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  transition:.12s ease;
}
.item:hover{background: rgba(255,255,255,.06)}
.item.active{border-color: rgba(124,92,255,.35); background: rgba(124,92,255,.10)}
.item .meta{font-size:12px;color: var(--muted2);margin-top:4px}
.row{display:flex;gap:10px;flex-wrap:wrap}
.field{display:grid;gap:6px;margin-bottom:12px}
label{font-size:12px;color:var(--muted2);font-weight:800}
input[type="text"], textarea, select{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
textarea{min-height:120px;resize:vertical}
.hint{font-size:12px;color:var(--muted2);line-height:1.5}
hr{border:none;border-top:1px solid rgba(255,255,255,.10);margin:14px 0}

footer{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color: var(--muted2);
  display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;
  font-size:12px;
}
.fine a{color:rgba(234,240,255,.78);text-decoration:underline;text-underline-offset:3px}
