
:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --sidebar:#071421;
  --sidebar2:#030a12;
  --red:#e11d2e;
  --red-dark:#b91c1c;
  --blue:#2563eb;
  --green:#16a34a;
  --yellow:#f59e0b;
  --danger:#dc2626;
  --shadow:0 16px 38px rgba(15,23,42,.08);
  --radius:18px;
  --sidebar-width:286px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%}

body{
  background:
    radial-gradient(circle at 76% 0%, rgba(225,29,46,.08), transparent 30rem),
    linear-gradient(180deg,#f8fafc 0%,var(--bg) 100%);
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
  font-size:16px;
  line-height:1.45;
}

img{max-width:100%;height:auto}
a{color:#1d4ed8}

.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--sidebar-width);
  background:
    radial-gradient(circle at 15% 0%, rgba(225,29,46,.20), transparent 18rem),
    linear-gradient(180deg,var(--sidebar),var(--sidebar2));
  color:#fff;
  z-index:1000;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:14px 0 35px rgba(2,6,23,.18);
}

.sidebar-brand{
  height:146px;
  padding:22px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-brand img{
  display:block !important;
  width:220px !important;
  max-width:220px !important;
  max-height:96px !important;
  height:auto !important;
  object-fit:contain !important;
  filter:brightness(0) invert(1);
}

.sidebar-section{
  padding:18px 20px 8px;
  color:#94a3b8;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.08em;
  font-weight:900;
}

.side-nav{
  padding:0 14px;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.side-nav a{
  color:#dbeafe;
  text-decoration:none;
  min-height:48px;
  padding:12px 14px;
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  border:1px solid transparent;
  transition:.18s ease;
}

.side-nav a:hover{
  background:rgba(255,255,255,.09);
  color:#fff;
  transform:translateX(2px);
}

.side-nav a:first-child{
  background:linear-gradient(90deg,rgba(225,29,46,.28),rgba(255,255,255,.07));
  color:#fff;
  box-shadow:inset 4px 0 0 var(--red);
  border-color:rgba(255,255,255,.08);
}

.nav-icon{
  width:25px;
  text-align:center;
  font-size:18px;
}

.sidebar-user{
  margin-top:auto;
  padding:18px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  gap:12px;
  align-items:center;
}

.avatar{
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:50%;
  background:#243447;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.sidebar-user strong{
  display:block;
  color:#fff;
  font-size:14px;
}

.sidebar-user span{
  display:block;
  color:#94a3b8;
  font-size:13px;
}

.app-shell{
  margin-left:var(--sidebar-width);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.app-topbar{
  height:70px;
  position:sticky;
  top:0;
  z-index:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid #e2e8f0;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:22px;
}

.menu-button{
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  color:#0f172a;
  font-size:24px;
  cursor:pointer;
  border-radius:10px;
}

.menu-button:hover{background:#f1f5f9}

.top-button{
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff!important;
  text-decoration:none;
  padding:12px 18px;
  border-radius:12px;
  font-weight:900;
  box-shadow:0 12px 24px rgba(220,38,38,.24);
}

.container{
  width:100%;
  max-width:1500px;
  margin:0 auto;
  padding:24px 28px 32px;
}

.app-footer{
  padding:18px 28px 24px;
  color:#64748b;
  font-size:13px;
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:24px;
  margin-bottom:22px;
  box-shadow:var(--shadow);
}

.card .card{
  box-shadow:none;
  background:#fff;
}

h1{
  margin:0 0 18px;
  font-size:38px;
  letter-spacing:-.04em;
  line-height:1.08;
}

h2{
  margin:0 0 15px;
  font-size:28px;
  letter-spacing:-.025em;
}

h3{margin:0 0 10px;font-size:19px}

.muted{
  color:#64748b;
  font-size:14px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:18px;
}

label{
  display:block;
  font-weight:900;
  margin-top:14px;
  margin-bottom:7px;
}

input,select,textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid #cbd5e1;
  border-radius:13px;
  font-size:16px;
  background:#fff;
  color:#0f172a;
}

input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 4px rgba(225,29,46,.12);
}

textarea{min-height:100px;resize:vertical}

button,.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:white!important;
  border:0;
  text-decoration:none;
  padding:12px 18px;
  border-radius:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(37,99,235,.22);
}

button:hover,.btn:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
}

.btn.danger,button.danger{background:linear-gradient(135deg,#ef4444,#b91c1c)}
.btn.gray,button.gray{background:linear-gradient(135deg,#64748b,#475569)}
.btn.green,button.green{background:linear-gradient(135deg,#22c55e,#15803d)}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin-top:16px;
  background:#fff;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:15px;
}

.table th,.table td{
  border-bottom:1px solid #e2e8f0;
  padding:14px;
  text-align:left;
  vertical-align:middle;
}

.table th{
  background:#f1f5f9;
  font-weight:950;
}

.table tr:last-child td{border-bottom:0}
.table tr:hover td{background:#f8fafc}

.attendance{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin-top:16px;
  border:1px solid #94a3b8;
  border-radius:16px;
  overflow:hidden;
}

.attendance th,.attendance td{
  border-right:1px solid #94a3b8;
  border-bottom:1px solid #94a3b8;
  padding:13px;
  text-align:center;
}

.attendance th:last-child,.attendance td:last-child{border-right:0}
.attendance tr:last-child td{border-bottom:0}
.attendance th{background:#dbe3ed;font-weight:950}
.attendance .name{text-align:left;font-weight:950;background:#f8fafc}

.status-a{background:#bbf7d0!important}
.status-e{background:#fde68a!important}
.status-f{background:#fecaca!important}

.attendance input[type="radio"]{
  width:26px;
  height:26px;
  accent-color:#2563eb;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
}

.badge-open{background:#fef3c7;color:#92400e}
.badge-closed{background:#dcfce7;color:#166534}

.alert{
  padding:14px 16px;
  background:#fee2e2;
  border:1px solid #fecaca;
  color:#991b1b;
  border-radius:13px;
  margin-bottom:16px;
  font-weight:800;
}

.success-alert{
  position:fixed;
  top:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:9999;
  background:linear-gradient(135deg,#16a34a,#15803d);
  color:white;
  border:1px solid #15803d;
  padding:15px 20px;
  border-radius:15px;
  box-shadow:0 16px 40px rgba(0,0,0,.22);
  font-weight:900;
}

.success-alert.hide{display:none}

.vehicle-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:12px;
  margin-top:10px;
}

.vehicle-check{
  background:#f8fafc;
  border:1px solid #cbd5e1;
  border-radius:14px;
  padding:13px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:10px;
}

.vehicle-check input{
  width:auto;
  margin:0;
  accent-color:#e11d2e;
}

.login{
  max-width:460px;
  margin:64px auto;
  padding:30px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:var(--shadow);
}

.login::before{
  content:"";
  display:block;
  width:240px;
  height:92px;
  margin:0 auto 18px;
  background:url("logo-bingen.png") center/contain no-repeat;
}

@media(max-width:900px){
  .sidebar{
    transform:translateX(-100%);
    transition:.2s ease;
  }

  body.sidebar-open .sidebar{
    transform:translateX(0);
  }

  .app-shell{
    margin-left:0;
  }

  .container{
    padding:18px 12px 28px;
  }

  .app-topbar{
    padding:0 14px;
  }

  .table,.attendance{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }

  .app-footer{
    padding:16px;
    flex-direction:column;
  }
}

@media print{
  .sidebar,.app-topbar,.app-footer,button,.btn{display:none!important}
  .app-shell{margin-left:0}
  body{background:white}
  .container{margin:0;max-width:none;padding:0}
  .card{box-shadow:none;border:1px solid #ddd}
}

.hours-good{
  color:#166534;
  background:#dcfce7;
  border:1px solid #bbf7d0;
  border-radius:999px;
  padding:5px 10px;
  font-weight:900;
  display:inline-block;
}
.hours-bad{
  color:#991b1b;
  background:#fee2e2;
  border:1px solid #fecaca;
  border-radius:999px;
  padding:5px 10px;
  font-weight:900;
  display:inline-block;
}

.stats-dashboard{
  overflow:hidden;
  position:relative;
}

.stats-dashboard::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:6px;
  background:linear-gradient(90deg,#dc2626,#2563eb,#16a34a);
}

.stats-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  margin-bottom:22px;
}

.year-select{
  min-width:210px;
}

.year-select label{
  margin-top:0;
}

.stat-cards-modern{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
}

.stat-modern{
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:22px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  display:flex;
  gap:16px;
  min-height:220px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

.stat-modern.ok{
  border-color:#bbf7d0;
  background:linear-gradient(180deg,#ffffff,#f0fdf4);
}

.stat-modern.warn{
  border-color:#fecaca;
  background:linear-gradient(180deg,#ffffff,#fff7f7);
}

.stat-icon{
  width:54px;
  height:54px;
  min-width:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fee2e2;
  font-size:26px;
}

.stat-content{
  width:100%;
}

.stat-label{
  display:block;
  color:#64748b;
  font-weight:900;
  font-size:14px;
  margin-bottom:8px;
}

.stat-content strong{
  display:block;
  font-size:38px;
  line-height:1;
  letter-spacing:-.04em;
  margin-bottom:8px;
}

.stat-content small{
  color:#64748b;
  font-weight:700;
}

.progress{
  height:12px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin:18px 0 12px;
}

.progress div{
  height:100%;
  background:linear-gradient(90deg,#dc2626,#16a34a);
  border-radius:999px;
}

.progress.blue div{
  background:linear-gradient(90deg,#60a5fa,#2563eb);
}

.status-pill{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
}

.status-pill.green{
  color:#166534;
  background:#dcfce7;
}

.status-pill.red{
  color:#991b1b;
  background:#fee2e2;
}

.status-pill.blue-pill{
  color:#1d4ed8;
  background:#dbeafe;
}

.mini-grid{
  margin-top:18px;
  display:grid;
  gap:8px;
}

.mini-grid span{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border-radius:12px;
  background:#f1f5f9;
  color:#334155;
  font-weight:800;
}

@media(max-width:760px){
  .stats-head{
    flex-direction:column;
  }

  .year-select{
    width:100%;
  }

  .stat-modern{
    flex-direction:column;
  }
}


.topic-summary-list{
  margin-top:18px;
  display:grid;
  gap:10px;
}

.topic-summary-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-radius:14px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  font-weight:850;
}

.topic-summary-item span{
  color:#0f172a;
}

.topic-summary-item strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  padding:6px 10px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:16px;
}

.topic-summary-list.modern{
  margin-top:16px;
}

.topic-summary-list.modern .topic-summary-item{
  background:#ffffff;
}

.training-topics-card{
  min-height:260px;
}


/* Modernes Meine-Statistik-Dashboard */
.my-stat-card{
  border:0 !important;
  background:linear-gradient(180deg,#ffffff,#f8fafc) !important;
  overflow:hidden;
  position:relative;
}

.my-stat-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:6px;
  background:linear-gradient(90deg,#dc2626,#2563eb,#16a34a);
}

.my-stat-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  margin-bottom:22px;
}

.my-stat-header h2{
  margin-bottom:6px;
}

.my-stat-header p{
  margin:0;
  color:#64748b;
  font-weight:600;
}

.my-stat-year{
  min-width:220px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:12px;
}

.my-stat-year label{
  margin:0 0 6px;
  color:#64748b;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.my-stat-year select{
  border:0;
  background:white;
  font-weight:900;
}

.my-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.my-stat-tile{
  background:white;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:22px;
  min-height:250px;
  box-shadow:0 14px 30px rgba(15,23,42,.07);
}

.my-stat-tile.success{
  border-color:#bbf7d0;
  background:linear-gradient(180deg,#ffffff,#f0fdf4);
}

.my-stat-tile.danger{
  border-color:#fecaca;
  background:linear-gradient(180deg,#ffffff,#fff7f7);
}

.tile-top{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:18px;
}

.tile-icon{
  width:58px;
  height:58px;
  min-width:58px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  background:#fee2e2;
}

.tile-icon.blue{
  background:#dbeafe;
}

.tile-icon.purple{
  background:#ede9fe;
}

.tile-top span{
  display:block;
  color:#64748b;
  font-weight:900;
  font-size:14px;
}

.tile-top strong{
  display:block;
  font-size:38px;
  line-height:1;
  letter-spacing:-.04em;
}

.stat-progress{
  height:14px;
  border-radius:999px;
  background:#e5e7eb;
  overflow:hidden;
  margin:20px 0 14px;
}

.stat-progress div{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#dc2626,#16a34a);
}

.stat-progress.blue div{
  background:linear-gradient(90deg,#60a5fa,#2563eb);
}

.tile-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:#64748b;
  font-weight:800;
}

.text-green{
  color:#166534;
  background:#dcfce7;
  padding:6px 10px;
  border-radius:999px;
}

.text-red{
  color:#991b1b;
  background:#fee2e2;
  padding:6px 10px;
  border-radius:999px;
}

.stat-mini-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  padding:11px 13px;
  border-radius:14px;
  margin-top:9px;
  font-weight:850;
}

.stat-mini-row span{
  color:#64748b;
}

.topic-list-modern{
  display:grid;
  gap:9px;
  margin-top:16px;
}

.topic-chip{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  padding:11px 13px;
  border-radius:14px;
  font-weight:900;
}

.topic-chip b{
  background:#dbeafe;
  color:#1d4ed8;
  padding:5px 10px;
  border-radius:999px;
}

.topic-empty{
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  color:#64748b;
  padding:13px;
  border-radius:14px;
  font-weight:700;
}

@media(max-width:1100px){
  .my-stat-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .my-stat-header{
    flex-direction:column;
  }

  .my-stat-year{
    width:100%;
  }
}


/* Dunkles modernes Dashboard wie Beispielbild */
.neo-dashboard{
  background:
    radial-gradient(circle at 20% 0%, rgba(124,58,237,.35), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(34,211,238,.18), transparent 26rem),
    linear-gradient(135deg,#120735,#21104c 45%,#15113c);
  border-radius:28px;
  padding:26px;
  margin-bottom:24px;
  color:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.28);
  overflow:hidden;
}

.neo-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:24px;
}

.neo-head h2{
  margin:0;
  color:#fff;
  font-size:32px;
}

.neo-head p{
  margin:6px 0 0;
  color:#c4b5fd;
  font-weight:700;
}

.neo-year{
  width:220px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:10px;
}

.neo-year label{
  color:#c4b5fd;
  margin:0 0 6px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.neo-year select{
  border:0;
  color:#fff;
  background:rgba(255,255,255,.12);
  font-weight:900;
}

.neo-year option{
  color:#111827;
}

.neo-top-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:22px;
}

.neo-metric{
  position:relative;
  min-height:128px;
  border-radius:18px;
  padding:20px;
  overflow:hidden;
  box-shadow:0 18px 36px rgba(0,0,0,.22);
}

.neo-metric span{
  display:block;
  color:rgba(255,255,255,.85);
  font-weight:800;
  margin-bottom:8px;
}

.neo-metric strong{
  display:block;
  font-size:32px;
  line-height:1;
  letter-spacing:-.04em;
}

.neo-metric strong small{
  font-size:17px;
}

.neo-metric em{
  display:block;
  font-style:normal;
  margin-top:8px;
  color:rgba(255,255,255,.75);
  font-weight:700;
}

.gradient-purple{background:linear-gradient(135deg,#8b5cf6,#5b21b6)}
.gradient-cyan{background:linear-gradient(135deg,#22d3ee,#3b82f6)}
.gradient-red{background:linear-gradient(135deg,#fed7aa,#fb7185)}
.gradient-blue{background:linear-gradient(135deg,#c084fc,#4f46e5)}

.neo-wave{
  position:absolute;
  left:18px;
  right:18px;
  bottom:15px;
  height:24px;
  opacity:.45;
  background:
    radial-gradient(circle at 10% 80%, transparent 12px, rgba(255,255,255,.5) 13px, transparent 15px),
    radial-gradient(circle at 35% 20%, transparent 12px, rgba(255,255,255,.5) 13px, transparent 15px),
    radial-gradient(circle at 60% 75%, transparent 12px, rgba(255,255,255,.5) 13px, transparent 15px);
}

.neo-main-grid{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  margin-bottom:18px;
}

.neo-panel{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:22px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.neo-panel-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.neo-panel-title h3{
  color:#fff;
  margin:0;
  font-size:20px;
}

.neo-panel-title span{
  color:#c4b5fd;
  font-weight:800;
  font-size:13px;
}

.neo-ring-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

.neo-ring{
  --p:0;
  width:170px;
  height:170px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:
    conic-gradient(#22d3ee calc(var(--p) * 1%), #7c3aed 0 75%, rgba(255,255,255,.13) 0);
  position:relative;
}

.neo-ring::after{
  content:"";
  position:absolute;
  inset:22px;
  background:#21104c;
  border-radius:50%;
}

.neo-ring > div{
  position:relative;
  z-index:1;
  text-align:center;
}

.neo-ring strong{
  display:block;
  color:#fff;
  font-size:42px;
  line-height:1;
}

.neo-ring span{
  color:#c4b5fd;
  font-weight:800;
}

.neo-legend{
  display:grid;
  gap:8px;
  color:#ddd6fe;
  font-weight:800;
  width:100%;
}

.dot{
  width:11px;
  height:11px;
  border-radius:50%;
  display:inline-block;
  margin-right:7px;
}

.dot.green{background:#22c55e}
.dot.cyan{background:#22d3ee}
.dot.red{background:#fb7185}

.neo-bars{
  display:grid;
  gap:18px;
}

.neo-bars label{
  display:flex;
  justify-content:space-between;
  color:#ddd6fe;
  margin:0 0 8px;
}

.neo-bar{
  height:18px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  overflow:hidden;
}

.neo-bar span{
  height:100%;
  display:block;
  border-radius:999px;
  background:linear-gradient(90deg,#22d3ee,#8b5cf6);
}

.neo-bar.yellow span{
  background:linear-gradient(90deg,#fde047,#f59e0b);
}

.neo-bar.red span{
  background:linear-gradient(90deg,#fb7185,#dc2626);
}

.neo-topic-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
}

.neo-topic{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  padding:15px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

.neo-topic span{
  color:#fff;
  font-weight:900;
}

.neo-topic strong{
  background:linear-gradient(135deg,#22d3ee,#8b5cf6);
  color:#fff;
  border-radius:999px;
  padding:7px 12px;
  min-width:46px;
  text-align:center;
}

.neo-empty{
  color:#ddd6fe;
  background:rgba(255,255,255,.08);
  border:1px dashed rgba(255,255,255,.18);
  padding:15px;
  border-radius:16px;
  font-weight:800;
}

@media(max-width:1200px){
  .neo-top-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .neo-main-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .neo-dashboard{
    padding:18px;
    border-radius:20px;
  }

  .neo-head{
    flex-direction:column;
    align-items:stretch;
  }

  .neo-year{
    width:100%;
  }

  .neo-top-grid{
    grid-template-columns:1fr;
  }
}


/* Final moderne Statistik-Karten */
.stats-dashboard-pretty{
  background:
    radial-gradient(circle at 10% 0%, rgba(220,38,38,.12), transparent 28rem),
    linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid #e2e8f0;
  border-radius:26px;
  padding:28px;
  margin-bottom:24px;
  box-shadow:0 18px 45px rgba(15,23,42,.10);
  overflow:hidden;
  position:relative;
}

.stats-dashboard-pretty::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:7px;
  background:linear-gradient(90deg,#dc2626,#2563eb,#16a34a);
}

.stats-header-pretty{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  margin-bottom:24px;
}

.stats-header-pretty h2{
  margin:0;
  font-size:34px;
  letter-spacing:-.04em;
  color:#0f172a;
}

.stats-header-pretty p{
  margin:7px 0 0;
  color:#64748b;
  font-weight:700;
}

.stats-year-box{
  min-width:240px;
  padding:13px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
}

.stats-year-box label{
  margin:0 0 7px;
  color:#64748b;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.stats-year-box select{
  border:0;
  background:#f8fafc;
  font-weight:900;
}

.stats-main-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.stats-card-pretty{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:24px;
  padding:24px;
  min-height:285px;
  box-shadow:0 14px 32px rgba(15,23,42,.08);
}

.stats-card-pretty.goal-ok{
  border-color:#bbf7d0;
  background:linear-gradient(180deg,#ffffff,#f0fdf4);
}

.stats-card-pretty.goal-bad{
  border-color:#fecaca;
  background:linear-gradient(180deg,#ffffff,#fff7f7);
}

.stats-card-top{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}

.stats-icon{
  width:60px;
  height:60px;
  min-width:60px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:29px;
  background:#fee2e2;
}

.stats-icon.purple{background:#ede9fe}
.stats-icon.blue{background:#dbeafe}

.stats-label{
  display:block;
  color:#64748b;
  font-weight:900;
  font-size:14px;
  margin-bottom:8px;
}

.stats-card-top strong{
  display:block;
  font-size:38px;
  line-height:1;
  letter-spacing:-.04em;
  color:#0f172a;
}

.pretty-progress{
  height:15px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin:18px 0 14px;
}

.pretty-progress div{
  height:100%;
  border-radius:999px;
}

.pretty-progress div.red{background:linear-gradient(90deg,#fb7185,#dc2626)}
.pretty-progress div.green{background:linear-gradient(90deg,#22c55e,#16a34a)}
.pretty-progress.blue div{background:linear-gradient(90deg,#60a5fa,#2563eb)}

.stats-info-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  color:#64748b;
  font-weight:850;
  margin-bottom:18px;
}

.stats-info-row b{
  color:#0f172a;
}

.goal-badge{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  font-weight:950;
}

.goal-badge.green{
  color:#166534;
  background:#dcfce7;
}

.goal-badge.red{
  color:#991b1b;
  background:#fee2e2;
}

.stats-list{
  display:grid;
  gap:10px;
}

.stats-list div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:15px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-weight:850;
}

.stats-list b{
  color:#0f172a;
}

.theme-summary-pretty{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.theme-pill-pretty{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  padding:12px 14px;
  border-radius:16px;
  font-weight:900;
}

.theme-pill-pretty b{
  background:#dbeafe;
  color:#1d4ed8;
  padding:6px 11px;
  border-radius:999px;
  min-width:44px;
  text-align:center;
}

.theme-empty-pretty{
  color:#64748b;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  padding:14px;
  font-weight:800;
}

@media(max-width:1150px){
  .stats-main-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .stats-dashboard-pretty{
    padding:20px;
    border-radius:20px;
  }

  .stats-header-pretty{
    flex-direction:column;
  }

  .stats-year-box{
    width:100%;
  }

  .stats-card-top{
    align-items:flex-start;
  }
}


/* Themenliste Übungsdienste scrollbar ab ca. 5 Einträgen */
.theme-summary-pretty{
  max-height: 355px;
  overflow-y: auto;
  padding-right: 6px;
}

.theme-summary-pretty::-webkit-scrollbar{
  width: 8px;
}

.theme-summary-pretty::-webkit-scrollbar-track{
  background: #e5e7eb;
  border-radius: 999px;
}

.theme-summary-pretty::-webkit-scrollbar-thumb{
  background: #93c5fd;
  border-radius: 999px;
}

.theme-summary-pretty::-webkit-scrollbar-thumb:hover{
  background: #2563eb;
}

.theme-pill-pretty{
  min-height: 60px;
}


/* Übungsdienst-Karte: nur Themen anzeigen, ohne Quote und Ladebalken */
.training-topics-only-card{
  display:flex;
  flex-direction:column;
}

.training-topics-only-card .stats-card-top{
  margin-bottom:12px;
}

.training-topics-only-card .stats-card-top strong{
  font-size:34px;
}

.training-topics-hint{
  margin:0 0 16px;
  color:#475569;
  font-weight:800;
  line-height:1.45;
}

.topics-only-scroll,
.training-topics-only-card .theme-summary-pretty{
  max-height:355px;
  overflow-y:auto;
  padding-right:7px;
  margin-top:8px;
}

.topics-only-scroll::-webkit-scrollbar,
.training-topics-only-card .theme-summary-pretty::-webkit-scrollbar{
  width:8px;
}

.topics-only-scroll::-webkit-scrollbar-track,
.training-topics-only-card .theme-summary-pretty::-webkit-scrollbar-track{
  background:#e5e7eb;
  border-radius:999px;
}

.topics-only-scroll::-webkit-scrollbar-thumb,
.training-topics-only-card .theme-summary-pretty::-webkit-scrollbar-thumb{
  background:#93c5fd;
  border-radius:999px;
}

.topics-only-scroll::-webkit-scrollbar-thumb:hover,
.training-topics-only-card .theme-summary-pretty::-webkit-scrollbar-thumb:hover{
  background:#2563eb;
}

.training-topics-only-card .theme-pill-pretty{
  min-height:60px;
}

.training-topics-only-card .pretty-progress,
.training-topics-only-card .stats-info-row{
  display:none!important;
}


/* Hinweis für Standard-Übungsdienst / Sonderdienst */
.special-service-box{
  margin:18px 0;
  padding:16px 18px;
  border-radius:16px;
  background:#fff7ed;
  border:1px solid #fdba74;
  color:#7c2d12;
  font-weight:800;
  display:inline-block;
}

.special-service-box b{
  font-size:18px;
}

.special-service-label{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  background:#fed7aa;
  color:#9a3412;
  font-weight:950;
}


/* Kennzeichnung Standard/Sonderdienst in Listen */
.badge-standard{
  margin-top:6px;
  background:#e0f2fe;
  color:#075985;
  border:1px solid #bae6fd;
}

.badge-special{
  margin-top:6px;
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fdba74;
}

.table .badge-standard,
.table .badge-special{
  font-size:12px;
  padding:5px 9px;
  display:inline-flex;
  width:max-content;
}


/* Bemerkungen sichtbar anzeigen */
.list-remark{
  margin-top:8px;
  padding:8px 10px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475569;
  font-size:13px;
  line-height:1.35;
  max-width:420px;
}

.view-remark{
  margin:16px 0;
  padding:14px 16px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid #cbd5e1;
  color:#334155;
  font-weight:700;
  line-height:1.5;
  max-width:780px;
}
