/* =========================
   GLOBAL
========================= */
body {
  background: #0d0d0d;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Ubuntu, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   LAYOUT
========================= */
.wrap {
  max-width: 900px;
}

.card-bg {
  background: #1f1f23;
  border-radius: 12px;
  border: 1px solid #333;
}

.muted {
  color: #cfcfcf; /* heller als vorher */
}

/* =========================
   TOPBAR
========================= */
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand {
  font-weight: 900;
  font-size: 24px;
  margin: 0;
  color: #ffffff;
}

/* =========================
   GRID
========================= */
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* =========================
   DASHBOARD BUTTONS
========================= */
.dash-btn {
  display: block;
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 95px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .08s ease, filter .12s ease;
  color: #ffffff;
}

.dash-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Titel */
.dash-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff; /* WICHTIG: hell */
}

/* Beschreibung */
.dash-desc {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.9); /* deutlich heller */
}

/* Icon */
.iconbox {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  flex: 0 0 auto;
}

/* =========================
   LOGOUT BUTTON
========================= */
.logout {
  background: #111;
  border: 1px solid #333;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
}

.logout:hover {
  border-color: #666;
}


/* =========================
   KALENDER (Startseite)
========================= */
.calendar-wrap{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.calendar-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.calendar-title{
  font-weight: 900;
  font-size: 18px;
  color:#fff;
}

.calendar-box{
  background: #141417;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px;
}

/* FullCalendar Dark */
.fc, .fc * { color: #ffffff; }
.fc a { color: #ffffff; }

.fc .fc-toolbar-title{
  font-size: 18px;
  font-weight: 900;
}

.fc .fc-button{
  background: #111 !important;
  border: 1px solid #333 !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
}
.fc .fc-button:hover{ border-color:#666 !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active{
  background:#537791 !important;
  border-color:#537791 !important;
}

.fc .fc-daygrid-day-number{ color:#fff; opacity: 0.95; }
.fc .fc-col-header-cell-cushion{ color:#fff; opacity: 0.9; font-weight: 700; }

.fc .fc-scrollgrid,
.fc .fc-scrollgrid td,
.fc .fc-scrollgrid th{
  border-color: rgba(255,255,255,0.10) !important;
}

/* =========================
   BADGE (Zähler am Button)
========================= */
.dash-btn--badge{
  position: relative;
}

.dash-badge{
  position: absolute;
  top: 10px;
  right: 12px;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}


/* =========================================================
   TERMINPLANER
========================================================= */

.subnav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.btn-nav{
  background:#111;
  border:1px solid #333;
  color:#fff;
  border-radius:10px;
  padding:10px 14px;
  font-weight:700;
}
.btn-nav:hover{border-color:#666;}

.panel{
  background:#141417;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  padding:14px;
}

.label{
  color:#fff;
  font-weight:800;
  margin-bottom:6px;
}

.form-control,
.form-select{
  background:#0f0f12;
  color:#fff;
  border:1px solid #333;
}
.form-control:focus,
.form-select:focus{
  border-color:#555;
  box-shadow:none;
}

.editor-toolbar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.toolbtn{
  background:#111;
  border:1px solid #333;
  color:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  font-size:13px;
}
.toolbtn:hover{border-color:#666;}

.editor{
  min-height:160px;
  border:1px solid #333;
  border-radius:12px;
  padding:12px;
  background:#0f0f12;
  color:#fff;
  outline:none;
}

.list-item{
  background:#141417;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  padding:14px;
  margin-top:12px;
}

.title-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.item-title{
  font-size:18px;
  font-weight:900;
  margin:0;
  color:#fff;
}

.item-desc{
  color:rgba(255,255,255,0.95);
  margin-top:10px;
}

.done-line{
  text-decoration:line-through;
  opacity:.75;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.18);
  font-weight:800;
  font-size:12px;
  color:#fff;
}

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

.btn-small{
  padding:8px 12px;
  border-radius:10px;
  font-weight:900;
  border:1px solid rgba(255,255,255,0.16);
  background:#111;
  color:#fff;
}
.btn-small:hover{border-color:#666;}

.btn-done{
  background:#2e7d32;
  border-color:#2e7d32;
}

.btn-del{
  background:#c62828;
  border-color:#c62828;
}

.btn-save{
  background:#537791;
  border:none;
  border-radius:10px;
  padding:10px 14px;
  font-weight:900;
  color:#fff;
}
.btn-save:hover{
  background:#fec697;
  color:#111;
}

.rec-box{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}

audio{width:100%;}


