:root{
  --bg1:#0b1020;
  --bg2:#111a35;
  --card:rgba(255,255,255,.08);
  --card2:rgba(255,255,255,.10);
  --text:#e9ecff;
  --muted:rgba(233,236,255,.72);
  --accent:#7c5cff;
  --accent2:#22c55e;
  --danger:#ef4444;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
}

.bg{
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(124,92,255,.35), transparent 55%),
    radial-gradient(900px 500px at 80% 25%, rgba(34,197,94,.20), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.shell{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}

.card{
  width:min(920px, 100%);
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:22px;
  padding:22px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

@media (max-width: 860px){
  .card{grid-template-columns:1fr}
}

.hero{
  padding:18px;
  border-radius:14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}

h1{margin:0 0 10px;font-size:28px;letter-spacing:.2px}
p{margin:0;color:var(--muted);line-height:1.5}

.form{
  padding:18px;
  border-radius:14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}

.label{display:block;margin:12px 0 6px;color:var(--muted);font-size:13px}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,12,24,.55);
  color: var(--text);
  outline:none;
}
.input:focus{border-color: rgba(124,92,255,.65); box-shadow: 0 0 0 4px rgba(124,92,255,.18)}

.row{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:14px;flex-wrap:wrap}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(124,92,255,.85);
  color:white;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn.secondary{background: rgba(255,255,255,.10)}
.smalllink{color:var(--muted);text-decoration:none}
.smalllink:hover{color:var(--text)}

.flash{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
}
.flash.ok{border-color: rgba(34,197,94,.5)}
.flash.err{border-color: rgba(239,68,68,.55)
}
.panel{
  width:min(1200px, 100%);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.10));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  padding:18px;
}

.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:8px 6px 14px;
}

.head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.muted{color:var(--muted)}

.tablewrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

.tbl{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 920px;
}

.tbl th, .tbl td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:middle;
  font-size:14px;
}

.tbl th{
  position:sticky;
  top:0;
  background: rgba(10,12,24,.75);
  backdrop-filter: blur(8px);
  font-size:13px;
  color: rgba(233,236,255,.78);
}

.tbl tr:hover td{
  background: rgba(255,255,255,.03);
}

.btnrow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn.mini{
  padding:9px 10px;
  border-radius:10px;
  font-size:12px;
}

.btn.danger{
  background: rgba(239,68,68,.85);
}
.btn.danger:hover{filter:brightness(1.05)}

.b{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  font-size:12px;
  color: rgba(233,236,255,.9);
}
.b.ok{border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.12)}
.b.warn{border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.12)}
.b.err{border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.12)
}

/* === Phase 1.1/1.2 UI (bestehende styles bleiben) === */

/* Passwort-Box mit Eye-Button */
.pwbox{
  position:relative;
}
.pwbox .input{
  padding-right:44px;
}
.pwbtn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(233,236,255,.85);
  cursor:pointer;
}
.pwbtn:hover{filter:brightness(1.08)
}
/* === Phase 2.0 append (optional) ===
   Wenn du willst, kopiere diesen Block ans ENDE deiner style.css.
   (Keine Pflicht – nur kleine Komfort-Styles.)
*/

.btnrow form{margin:0
}

/* === Phase 2.1 UI (Append) ===
   Kopiere diesen Block ans ENDE deiner bestehenden style.css.
*/

body.bg{
  background:
    linear-gradient(rgba(6,10,26,.72), rgba(6,10,26,.72)),
    url("../img/astro_bg.svg") center / cover fixed no-repeat;
}

.panel, .card, .form, .hero, .tablewrap{
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

.panel{ animation: floatIn .7s ease-out; }

@keyframes floatIn{
  from{ opacity:0; transform: translateY(22px); }
  to{ opacity:1; transform: translateY(0); }
}

/* nicer select */
.select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(233,236,255,.92);
}
.textarea{
  width:100%;
  min-height:110px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(233,236,255,.92);
  resize: vertical;
}
/* Phase 2.2: Dropdown lesbar + City Autocomplete */
.select{ color: rgba(233,236,255,.92); background: rgba(0,0,0,.18); }
select option{ background:#0b1022; color:#e9ecff; }
select{ color-scheme: dark; }

.citybox{ position:relative; }
.cityresults{
  position:absolute; left:0; right:0; top:calc(100% + 8px);
  border-radius:14px; overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(6,10,26,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  z-index: 50;
}
.cityitem{
  padding:10px 12px; cursor:pointer;
  color: rgba(233,236,255,.92);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.cityitem:hover{ background: rgba(168,85,247,.18); }
.cityitem:last-child{ border-bottom:0; 
}

/* Phase 2.2.1 Fixes
   - Dropdown/Options lesbar
   - City-Autocomplete sichtbar (kein Clipping)
   - Kleine Badges + Layout-Hilfen
   -> Bitte ans ENDE von public/assets/css/style.css kopieren
*/

.select{ color: rgba(233,236,255,.92); background: rgba(0,0,0,.18); }
select option{ background:#0b1022; color:#e9ecff; }
select{ color-scheme: dark; }

/* Wichtig: Autocomplete darf nicht vom Container abgeschnitten werden */
.panel, .card, .form, .hero{ overflow: visible !important; }

.citybox{ position:relative; }
.cityresults{
  position:absolute; left:0; right:0; top:calc(100% + 8px);
  border-radius:14px; overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(6,10,26,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  z-index: 9999;
}
.cityitem{
  padding:10px 12px; cursor:pointer;
  color: rgba(233,236,255,.92);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.cityitem:hover{ background: rgba(168,85,247,.18); }
.cityitem:last-child{ border-bottom:0; }
.cityhint{ margin-top:8px; font-size: 12px; color: rgba(233,236,255,.70); }
.cityhint.warn{ color: rgba(255, 220, 120, .95); }

/* kleine Status-Badges */
.b{ display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; border:1px solid rgba(255,255,255,.14); }
.b.ok{ background: rgba(16,185,129,.18); }
.b.warn{ background: rgba(245,158,11,.18); }
.b.err{ background: rgba(239,68,68,.18); }


