:root{
  --card: rgba(10, 25, 45, 0.75);
  --line: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: #cbd5e1;
  --accent: #3b82f6;
  --shadow: 0 20px 60px rgba(0,0,0,.6);
  --r: 18px;
}

.brand{
  font-weight:700;
  background: var(--grad-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background-image: url("/bilder/hintergrund.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.25)
  );
  pointer-events: none;
  z-index: -1;
}

a{ color:var(--text); text-decoration:none; }

.topbar{
  height:56px;
  display:flex;
  align-items:center;
  padding: 0 16px;
  gap: 10px;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid var(--line);
}

.brand{ font-weight:700; }
.spacer{ flex:1; }

.btn{
  border: 3px solid rgba(0, 195, 255, 0.363);
  background: rgba(8, 103, 180, 0.219);
  color: var(--text);
  border-radius: 999px;   /* original */
  padding: 8px 14px;      /* original */
  cursor: pointer;
  transition: .2s;
}

.btn:hover{
  background: rgba(8, 120, 210, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform: none;        /* wichtig */
  box-shadow: none;       /* wichtig */
}

/* Varianten bleiben */
.btn.small{ 
  padding:6px 10px; 
  font-size:13px; 
}

.btn.danger{ 
  border-color: rgba(239,68,68,.35); 
}

.btn.danger:hover{ 
  background: rgba(239,68,68,.18); 
}

.container{
  max-width:600px;   /* vorher 900px */
  margin: 80px auto;
  padding:0 20px;
}

.card{
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgb(0, 195, 255);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0);
  padding: 22px 26px;
  text-align: center;
}

.center{ text-align:center; }
.h1{ font-size:42px; margin:0 0 10px; }
.h2{ font-size:22px; margin:0 0 10px; }
.muted{ color:var(--muted); margin-bottom:18px; }

.sep{
  border:0;
  height:1px;
  background: var(--line);
  margin:18px 0;
}

.linktree{
  display:flex;
  flex-direction:column;
  gap:15px;
  margin-top:10px;
}

.linkbtn{
  display:block;
  padding:14px;
  border-radius:14px;
  background: rgba(8, 103, 180, 0.219);
  border: 1px solid rgba(0, 195, 255, 0.363);
  font-weight:600;
  transition:.2s;
}

.linkbtn:hover{
  background: rgba(8, 120, 210, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Sidebar */
.sidebar{
  position:fixed;
  top:0;
  left:0;
  width:260px;
  height:100%;
  background: rgba(0,0,0,0.65); /* transparenter */
  backdrop-filter: blur(12px);
  transform: translateX(-100%);
  transition:.2s;
  padding:20px;
  z-index:100;
}
.sidebar.open{ transform: translateX(0); }

.navbtn{
  display:block;
  width:100%;
  margin-bottom:10px;
  padding:10px;
  border-radius:10px;

  border: 1px solid rgba(0,195,255,0.45);
  background: rgba(8, 103, 180, 0.219);
  color: var(--text);

  cursor:pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}

.navbtn:hover{
  background: rgba(8, 120, 210, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.navbtn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.6);
  z-index:90;
}

.row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.field{
  flex:1;
  min-width:220px;
}
.field label{
  display:block;
  font-size:13px;
  color: var(--muted);
  margin-bottom:6px;
}
.field input, .field select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color:var(--text);
  outline:none;
}

.item{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding:14px;
  margin-top:12px;
}
.item-top{
  display:flex;
  align-items:center;
  gap:10px;
}
.item-title{
  font-weight:900;
  flex:1;
}
.item-meta{
  margin-top:10px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color: var(--muted);
}
.item-meta a{ text-decoration: underline; }

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

.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.06);
}
.badge.done{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.14); }
.badge.open{ border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.14); }
.badge.arch{ border-color: rgba(168,85,247,.35); background: rgba(168,85,247,.14); }

.toast{
  margin-top:14px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,0.45);
}

/* Avatar */
.avatarBig{
  width:72px;
  height:72px;
  border-radius:999px;
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:26px;
  background: rgba(255,255,255,0.06);
}

.modalOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.70);
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.modal{
  width:min(520px, 96vw);
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(10, 25, 45, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding:18px;
}

.modalTitle{
  font-size:18px;
  font-weight:900;
  margin:0 0 8px;
}

.modalText{
  color: var(--muted);
  margin:0 0 16px;
  line-height:1.4;
}

.modalActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

select, option{
  background-color: rgba(0,0,0,0.85) !important;
  color: #fff !important;
}

select{
  border: 1px solid var(--line);
}

select:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}