:root{
  --bg:#0d3a5a;           /* dunkles Blau */
  --bg-2:#0a2e47;
  --brand:#24a0ff;        /* Akzent */
  --brand-2:#60c1ff;
  --text:#e9f3fb;
  --muted:#9fc0d8;
  --card:#0f446f;
  --card-hover:#135586;
  --ring: rgba(36,160,255,.35);
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}

.container{
  max-width: 1150px;
  margin: 60px auto;
  padding: 0 20px;
}

.header{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin-bottom:28px;
}
.brand{
  display:flex; align-items:center; gap:14px;
}
.brand img{height:38px; width:auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3));}
.brand h1{
  font-size: clamp(22px, 3.2vw, 34px);
  margin:0; letter-spacing:.5px; font-weight:800;
}

.controls{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.search{
  position:relative; flex:1 1 280px; min-width:240px;
}
.search input{
  width:100%; border:none; outline:none;
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:12px 14px 12px 42px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.search svg{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  opacity:.6;
}
.badges{
  display:flex; gap:8px; flex-wrap:wrap;
}
.badges button{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color: var(--muted);
  padding:8px 12px; border-radius: 999px;
  cursor:pointer;
}
.badges button.active{
  color:#fff; border-color: var(--brand); box-shadow:0 0 0 3px var(--ring);
}

.grid{
  display:grid;
  grid-template-columns: repeat( auto-fill, minmax(220px, 1fr) );
  gap:18px;
}

.card{
  background: linear-gradient(180deg, var(--card) 0%, #0f3d64 100%);
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:16px 16px 14px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
  position:relative;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(36,160,255,.35);
  background: linear-gradient(180deg, var(--card-hover) 0%, #0f4470 100%);
}
.card .icon{
  font-size:28px; line-height:1; width:42px; height:42px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px; margin-bottom:10px;
}
.card h3{
  margin:4px 0 6px; font-size:18px; letter-spacing:.2px;
}
.card p{
  margin:0; color: var(--muted); font-size:14px; min-height:38px;
}
.card .meta{
  display:flex; align-items:center; justify-content:space-between; margin-top:12px;
}
.tag{
  font-size:12px; color: var(--brand-2);
  background: rgba(36,160,255,.15); border:1px solid rgba(36,160,255,.25);
  padding:4px 8px; border-radius:999px;
}
.btn{
  appearance:none; border:none; cursor:pointer; color:#0d2b43; font-weight:700;
  background: linear-gradient(180deg, #6ec5ff 0%, #24a0ff 100%);
  padding:8px 12px; border-radius:12px;
  box-shadow: 0 6px 20px rgba(36,160,255,.35);
}
.btn:focus{outline:none; box-shadow:0 0 0 4px var(--ring)}

.header .btn-secondary{
  background: rgba(255,255,255,.08);
  color:#fff; font-weight:600; box-shadow:none; border:1px solid rgba(255,255,255,.18);
}

.footer{
  margin:30px 0 10px; color:var(--muted); font-size:13px; text-align:center;
}

/* Admin modal */
.modal{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  backdrop-filter: blur(6px);
  background: rgba(5,16,26,.45);
  z-index:100;
}
.modal.open{ display:flex; }
.modal .panel{
  width:min(720px, 92vw);
  background: #0e3f66; border:1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding:18px;
  box-shadow: var(--shadow);
}
.modal h2{margin:4px 0 14px}
.tools-list{display:grid; grid-template-columns: 1fr 130px 110px 90px; gap:10px; align-items:center}
.tools-list .head{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.8px}
.tools-item{
  display:contents;
}
.tools-item input[type="text"]{
  width:100%; background: rgba(255,255,255,.06); color:#fff; border:1px solid rgba(255,255,255,.12);
  border-radius:10px; padding:8px 10px;
}
.tools-item input[type="checkbox"]{ transform:scale(1.2) }
.tools-item .drag{ cursor:grab; opacity:.7 }
.modal .actions{display:flex; justify-content:flex-end; gap:10px; margin-top:14px}
.notice{font-size:12px; color:var(--muted); margin-top:6px}
