:root{
  --bg0:#050814;
  --bg1:#071027;
  --bg2:#0b1b2e;
  --ink:#eaf2ff;
  --muted:#b7c6e0;
  --dim:#92a4c4;

  --a0:#00d4ff;
  --a1:#26ffb1;
  --a2:#ffd36b;

  --glass: rgba(255,255,255,.06);
  --glass2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(0,212,255,.22);
  --shadow: 0 20px 70px rgba(0,0,0,.45);

  --r: 18px;
  --r2: 26px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(1200px 700px at 20% 20%, rgba(0,212,255,.12), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(38,255,177,.10), transparent 55%),
    radial-gradient(800px 700px at 70% 80%, rgba(255,211,107,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  overflow-x:hidden;
}

.wrap{
  width:min(1160px, calc(100% - 32px));
  margin:0 auto;
}

.bg-sparkles{
  position:fixed;
  inset:-20%;
  pointer-events:none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,.35) 45%, transparent 50%),
    radial-gradient(1px 1px at 62% 22%, rgba(0,212,255,.45) 45%, transparent 50%),
    radial-gradient(2px 2px at 78% 66%, rgba(38,255,177,.40) 45%, transparent 50%),
    radial-gradient(1px 1px at 33% 72%, rgba(255,211,107,.35) 45%, transparent 50%),
    radial-gradient(1px 1px at 88% 40%, rgba(255,255,255,.25) 45%, transparent 50%);
  opacity:.45;
  filter: blur(.2px);
  animation: float 18s ease-in-out infinite alternate;
}
@keyframes float{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(-2%,1%,0) scale(1.03)}
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,8,20,.82), rgba(5,8,20,.55));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);
}
.brand__sigil{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(38,255,177,.12));
  border:1px solid rgba(0,212,255,.20);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.brand__text{display:flex;flex-direction:column;line-height:1.1}
.brand__name{font-weight:800; letter-spacing:.3px}
.brand__sub{font-size:12px;color:var(--muted);opacity:.9}

.nav{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.nav__link{
  color:var(--muted);
  text-decoration:none;
  font-weight:650;
  font-size:13px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid transparent;
  background: transparent;
  transition: .18s ease;
}
.nav__link:hover{
  color:var(--ink);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.nav__link.is-active{
  color:var(--ink);
  background: linear-gradient(135deg, rgba(0,212,255,.16), rgba(38,255,177,.10));
  border-color: rgba(0,212,255,.24);
}

.hero{
  margin:26px 0 18px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(0,212,255,.22), transparent 55%),
    radial-gradient(420px 240px at 70% 15%, rgba(38,255,177,.18), transparent 60%),
    radial-gradient(560px 260px at 70% 120%, rgba(255,211,107,.14), transparent 60%);
  opacity:.55;
  pointer-events:none;
}
.card__inner{position:relative; padding:22px}
.h-title{
  font-size:34px;
  margin:0 0 8px;
  letter-spacing:.2px;
}
.h-sub{
  margin:0 0 16px;
  color:var(--muted);
  max-width:70ch;
  line-height:1.45;
}

.pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-weight:650;
  font-size:13px;
}
.pill__dot{
  width:9px;height:9px;border-radius:50%;
  background: rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}
.pill.ok{border-color: rgba(38,255,177,.22)}
.pill.ok .pill__dot{background: rgba(38,255,177,.9); box-shadow:0 0 0 4px rgba(38,255,177,.14)}
.pill.bad{border-color: rgba(255,96,96,.24)}
.pill.bad .pill__dot{background: rgba(255,96,96,.9); box-shadow:0 0 0 4px rgba(255,96,96,.12)}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin: 14px 0 24px;
}
.span-8{grid-column: span 8}
.span-4{grid-column: span 4}
.span-6{grid-column: span 6}
.span-12{grid-column: span 12}
@media(max-width: 920px){
  .span-8,.span-4,.span-6{grid-column: span 12}
}

.section-title{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.25px;
  color: var(--ink);
}
.section-muted{margin:0 0 12px; color:var(--muted); line-height:1.45}

.btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--ink);
  text-decoration:none;
  font-weight:750;
  transition:.18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(0,212,255,.18);
}
.btn--primary{
  background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(38,255,177,.12));
  border-color: rgba(0,212,255,.22);
}
.btn--ghost{background: transparent}
.btn--small{padding:9px 12px; border-radius: 12px; font-weight:700; font-size:13px}
.btn__icon{opacity:.9}

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.item{
  padding:12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.14);
  border:1px solid rgba(255,255,255,.09);
}
.item__top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.item__title{font-weight:800}
.item__meta{font-size:12px; color:var(--dim)}
.item__desc{margin-top:6px; color:var(--muted); line-height:1.45}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{
  text-align:left;
  font-size:12px;
  color:var(--dim);
  font-weight:800;
  padding:0 10px;
}
.table td{
  padding:12px 10px;
  background: rgba(0,0,0,.14);
  border:1px solid rgba(255,255,255,.09);
}
.table tr td:first-child{border-top-left-radius:14px;border-bottom-left-radius:14px}
.table tr td:last-child{border-top-right-radius:14px;border-bottom-right-radius:14px}

.input, .select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--ink);
  outline:none;
}
.input::placeholder{color: rgba(183,198,224,.6)}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media(max-width: 620px){ .form-row{grid-template-columns:1fr} }

.footer{
  margin-top: 26px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
  backdrop-filter: blur(10px);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 0;
}
.footer__title{font-weight:900}
.footer__muted{color:var(--muted); font-size:13px; margin-top:4px}
.footer__chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
/* ===== KalUI Skin Buttons ===== */
.kal-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 10px 18px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
  user-select: none;
}

.kal-btn::before{
  content:"";
  position:absolute;
  inset: 0;
  background: url("../img/kalui/B03-default.png") center / 100% 100% no-repeat;
  z-index: 0;
  opacity: .95;
}

.kal-btn > span{ position: relative; z-index: 1; }

/* Hover/Active: modern statt "klick mich tot" */
.kal-btn:hover{ transform: translateY(-1px); }
.kal-btn:hover::before{ filter: brightness(1.06) saturate(1.05); }
.kal-btn:active{ transform: translateY(0px); }
.kal-btn:active::before{ filter: brightness(.92) saturate(1.0); }

/* Small/Secondary Skin */
.kal-btn--mini{
  padding: 7px 14px;
  min-height: 30px;
  font-weight: 750;
  font-size: 13px;
}
.kal-btn--mini::before{
  background-image: url("../img/kalui/B4-mini-default.png");
  opacity: .92;
}

/* Arrow Buttons */
.kal-arrow{
  width: 44px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}
.kal-arrow--left{ background: url("../img/kalui/Arrow_Left.png") center/contain no-repeat; }
.kal-arrow--right{ background: url("../img/kalui/Arrow_Right.png") center/contain no-repeat; }
.kal-arrow:hover{ transform: translateY(-1px); }
.kal-arrow:active{ transform: translateY(0px); filter: brightness(.9) drop-shadow(0 10px 22px rgba(0,0,0,.45)); }
