@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root{
  --bg: #070b12;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --line: rgba(255,255,255,.12);

  /* Türkis/Teal Accent */
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-soft: rgba(45,212,191,.14);

  --danger: #ff8e8e;
  --shadow: 0 18px 55px rgba(0,0,0,.38);

  --radius: 18px;
  --radius-sm: 12px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

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

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: var(--bg);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: .01em;
  overflow-x: hidden; /* wichtig fürs off-canvas */
}

a{color:inherit; text-decoration:none}
.small{font-size:12px;color:var(--muted)}
.mt{margin-top:10px}

/* ===== App Layout ===== */
.app{
  min-height:100vh;
  display:grid;
  grid-template-columns: 280px 1fr;
}

/* ===== Sidebar ===== */
.sidebar{
  position: sticky;
  top: 0;

  height: 100vh;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  padding: 18px 14px;
  border-right: 1px solid var(--line);

  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}

.sidebar__brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 10px 14px 10px;
  border-bottom:1px solid var(--line);
  margin-bottom:14px;
}

.brandmark{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:14px;
  background: rgba(45,212,191,.16);
  box-shadow: inset 0 0 0 1px rgba(45,212,191,.22);
  font-size:22px;
}

.brandname{font-weight:800; letter-spacing:.2px}
.brandmeta{font-size:12px; color:var(--muted); margin-top:2px}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
  min-height:0;
  overflow:auto;
  padding-bottom:14px;
}

.nav__section{
  margin:14px 10px 6px 10px;
  font-size:11px;
  color:rgba(255,255,255,.52);
  text-transform:uppercase;
  letter-spacing:.12em;
}

.nav__item{
  display:flex; align-items:center; gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:rgba(255,255,255,.88);
  border:1px solid transparent;
}

.nav__item:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.06);
}

.nav__item.is-active{
  background: rgba(45,212,191,.12);
  border-color: rgba(45,212,191,.28);
}

.nav__icon{width:22px; text-align:center}

.sidebar__footer{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--line);
}

/* ===== Main ===== */
.main{
  display:flex;
  flex-direction:column;
  min-width:0;
}

/* ===== Icon Button ===== */
.iconbtn{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.iconbtn:hover{background: rgba(255,255,255,.07)}

/* Sidebar collapse button (in brand) */
.iconbtn--sidebar{
  margin-left:auto;
  width:36px;
  height:36px;
  border-radius:12px;
}

/* Floating menu button (immer fix oben links)
   - Mobile: immer sichtbar
   - Desktop: nur sichtbar, wenn Sidebar zu ist (siehe media query unten) */
.iconbtn--floating{
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100; /* über allem */
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(45,212,191,.35);
  background: rgba(45,212,191,.14);
  color:var(--text);
  font-weight:700;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.btn:hover{
  border-color: rgba(45,212,191,.65);
  background: rgba(45,212,191,.20);
  transform: translateY(-1px);
}

.btn--primary{
  border-color: rgba(45,212,191,.55);
  background: linear-gradient(135deg, rgba(45,212,191,.26), rgba(20,184,166,.16));
}

.btn--primary:hover{
  border-color: rgba(45,212,191,.85);
  background: linear-gradient(135deg, rgba(45,212,191,.34), rgba(20,184,166,.22));
}

a:focus-visible, button:focus-visible{
  outline: 2px solid rgba(45,212,191,.85);
  outline-offset: 3px;
  border-radius: 14px;
}

/* ===== Content ===== */
.content{
  padding:22px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  flex: 1;
}

.grid{
  display:grid;
  gap:18px;
  grid-template-columns: repeat(12, 1fr);
}

/* ===== Cards ===== */
.card{
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card--hero{ grid-column: span 12; }

.card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 0 18px;
}

.card__title{
  margin:0;
  font-size:18px;
  font-weight:800;
  letter-spacing:.01em;
}

.card--hero .card__title{ font-size:24px; }

.card__desc{
  margin:8px 0 0 0;
  color: var(--muted);
  font-size:13.5px;
  line-height:1.45;
}

.card__body{ padding:16px 18px 18px 18px; }

.kicker{
  font-size:11px;
  color:rgba(255,255,255,.55);
  letter-spacing:.12em;
  text-transform:uppercase;
}

.pillwrap{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  white-space:nowrap;
}

/* ===== Quick Actions ===== */
.quick{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  padding:18px;
}

.qbtn{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;

  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(45,212,191,.55);

  background: linear-gradient(135deg, rgba(45,212,191,.30), rgba(45,212,191,.12));
  box-shadow: 0 14px 35px rgba(0,0,0,.28);

  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.qbtn:hover{
  transform: translateY(-2px);
  border-color: rgba(45,212,191,.85);
  background: linear-gradient(135deg, rgba(45,212,191,.38), rgba(45,212,191,.16));
  box-shadow: 0 20px 48px rgba(0,0,0,.34);
}

.qbtn__icon{
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  font-size:18px;
  margin-bottom: 6px;
}

.qbtn__label{ font-size: 14px; font-weight: 800; }
.qbtn__meta{ font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== Lists ===== */
.list{display:flex; flex-direction:column; gap:10px}

.list__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:12px 12px;
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.list__item:hover{
  border-color: rgba(45,212,191,.40);
  background: rgba(45,212,191,.10);
  transform: translateY(-1px);
}

.list__main{min-width:0}
.list__title{font-weight:800}
.list__desc{margin-top:3px; font-size:12.5px; color: var(--muted); line-height:1.35}
.list__go{opacity:.9}

/* ===== Button rows, dividers, hints ===== */
.btnrow{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}

.divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin:16px 0;
}

.hint{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.hint__icon{
  width:36px; height:36px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(45,212,191,.14);
  box-shadow: inset 0 0 0 1px rgba(45,212,191,.22);
}

.hint__title{font-weight:800}
.hint__text{margin-top:2px; font-size:12.5px; color: var(--muted); line-height:1.4}

/* ===== Responsive (Mobile off-canvas Sidebar) ===== */
@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }

  .sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width: 290px;
    transform: translateX(-102%);
    transition:.18s ease;
    z-index:90;
    display:flex;
    flex-direction:column;
  }
  .sidebar.is-open{ transform: translateX(0); }

  .card{ grid-column: span 12; }
  .quick{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
  .content{ padding:16px; }
  .quick{ grid-template-columns: 1fr; }
  .pillwrap{ justify-content:flex-start; }
}

/* ===== Sidebar collapse (Desktop) ===== */
@media (min-width: 981px){
  /* Desktop: Floating Button nur sichtbar wenn Sidebar geschlossen */
  .app:not(.is-sidebar-closed) .iconbtn--floating{ display:none; }

  .app.is-sidebar-closed{
    grid-template-columns: 1fr;
  }

  .app.is-sidebar-closed .sidebar{
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-102%);
  }
}

.footer{
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,.02);
}

/* ===== Sidebar Scrollbar: slim & clean ===== */
.nav{
  scrollbar-width: thin;                       /* Firefox */
  scrollbar-color: rgba(255,255,255,.18) transparent;
}

.nav::-webkit-scrollbar{
  width: 8px;
}
.nav::-webkit-scrollbar-track{
  background: transparent;
}
.nav::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.nav::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.22);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ===== Form controls (select/options) ===== */
select{
  color: var(--text);
  background: rgba(0,0,0,.08);
  border: 1px solid var(--line);
}
select:focus{
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-color: rgba(45,212,191,.45);
}
select option{
  background: #0b1220;
  color: rgba(255,255,255,.92);
}
