/* Artist-Dashboard Übersicht — Hero, Schnellzugriff, Setup & Wochenkalender */
.ad-page {
  flex: 1 0 auto;
  min-height: 0;
  width: 100%;
  color: var(--ad-txt, #f1f5fd);
  background: transparent;
}

.ad-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .ad-wrap {
    padding: 1.75rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }
}

/* —— Gemeinsame Oberfläche (Hero, Karten, Aktionen, KPIs) —— */
.ad-hero,
.ad-card,
.ad-action,
.ad-kpi {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(28, 32, 52, 0.92), rgba(14, 18, 30, 0.96));
  border: 1px solid rgba(138, 92, 255, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ad-hero::before,
.ad-card::before,
.ad-action::before,
.ad-kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(138, 92, 255, 0.14) 0%,
    transparent 42%,
    rgba(45, 212, 191, 0.1) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.ad-hero > *,
.ad-card > *,
.ad-action > *,
.ad-kpi > * {
  position: relative;
  z-index: 1;
}

/* —— Hero —— */
.ad-hero {
  border-radius: 24px;
  padding: 1.35rem 1.2rem;
  margin-bottom: 1.5rem;
}

.ad-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.ad-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(138, 92, 255, 0.75), rgba(45, 212, 191, 0.55));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ad-avatar-wrap:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(138, 92, 255, 0.35);
}

.ad-avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(14, 18, 30, 0.9);
  background: rgba(138, 92, 255, 0.2);
}

@media (min-width: 480px) {
  .ad-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}

.ad-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.ad-hero-body {
  flex: 1;
  min-width: 0;
}

.ad-hero h1 {
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 800;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.ad-hero-greeting {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ad-mint, #2dd4bf);
  margin: 0 0 0.15rem;
}

.ad-hero-sub {
  font-size: 0.82rem;
  color: var(--ad-muted, #8b9bb8);
  margin: 0;
  line-height: 1.45;
}

.ad-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.ad-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--ad-border, rgba(255, 255, 255, 0.09));
  background: rgba(255, 255, 255, 0.045);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ad-pill--ok {
  color: #6ee7b7;
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.1);
}

.ad-pill--warn {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.ad-pill--role {
  color: #c4b5fd;
  border-color: rgba(138, 92, 255, 0.45);
  background: rgba(138, 92, 255, 0.12);
}

.ad-hero-ring-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

@media (max-width: 479px) {
  .ad-hero-ring-wrap {
    width: 100%;
    margin-left: 0;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.ad-progress-ring {
  width: 58px;
  height: 58px;
}

.ad-progress-ring--complete .ad-ring-fg {
  stroke: #2dd4bf;
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.55));
}

.ad-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.ad-ring-fg {
  fill: none;
  stroke: url(#adGrad);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.6s ease;
}

.ad-ring-text {
  font-size: 0.62rem;
  font-weight: 800;
  fill: var(--ad-txt, #f1f5fd);
}

.ad-ring-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ad-muted, #8b9bb8);
}

/* —— Schnellzugriff —— */
.ad-actions {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}

.ad-actions::-webkit-scrollbar {
  display: none;
}

@media (min-width: 600px) {
  .ad-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    gap: 0.65rem;
  }
}

.ad-action {
  flex: 0 0 5.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--ad-touch, 88px);
  padding: 0.75rem 0.45rem;
  border-radius: var(--ad-radius, 20px);
  color: var(--ad-txt, #f1f5fd);
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 600px) {
  .ad-action {
    flex: unset;
  }
}

.ad-action:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 92, 255, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  color: var(--ad-txt, #f1f5fd);
}

.ad-action:focus-visible {
  outline: none;
  box-shadow: var(--ring, 0 0 0 3px rgba(138, 92, 255, 0.35));
}

.ad-action--primary {
  background: linear-gradient(
    145deg,
    rgba(48, 38, 78, 0.95),
    rgba(28, 32, 52, 0.92)
  );
  border-color: rgba(138, 92, 255, 0.55);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(138, 92, 255, 0.2);
}

.ad-action--primary .ad-action-icon {
  background: rgba(138, 92, 255, 0.35);
}

.ad-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138, 92, 255, 0.15);
}

.ad-action-icon i {
  font-size: 1.2rem;
  color: var(--ad-accent, #8a5cff);
}

.ad-action-label {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

.ad-action-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

.ad-action-dot--warn {
  background: #f59e0b;
  color: #1a1200;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* —— KPIs —— */
.ad-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .ad-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ad-kpi {
  padding: 0.85rem 0.65rem;
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ad-kpi:hover {
  border-color: rgba(138, 92, 255, 0.5);
  transform: translateY(-1px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(138, 92, 255, 0.15);
}

.ad-kpi-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.ad-kpi-lbl {
  font-size: 0.68rem;
  color: var(--ad-muted, #8b9bb8);
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* —— Grid & Cards —— */
.ad-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ad-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .ad-grid--single {
    grid-template-columns: 1fr;
  }
}

.ad-card {
  border-radius: var(--ad-radius, 20px);
  padding: 1.15rem;
}

.ad-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.ad-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ad-card-title i {
  color: var(--ad-accent, #8a5cff);
}

.ad-card-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ad-muted, #8b9bb8);
}

.ad-card-link {
  font-size: 0.78rem;
  color: var(--ad-mint, #2dd4bf);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.ad-card-link:hover {
  color: #5eead4;
}

.ad-setup-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1rem;
}

.ad-setup-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a5cff, #2dd4bf);
  transition: width 0.5s ease;
}

.ad-setup-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ad-setup-item:last-child {
  border-bottom: none;
}

.ad-setup-item--done {
  opacity: 0.72;
}

.ad-setup-item--todo {
  border-left: 3px solid var(--ad-warn, #fbbf24);
  padding-left: calc(0.5rem + 3px);
  background: rgba(251, 191, 36, 0.08);
}

.ad-setup-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ad-setup-check--done {
  background: rgba(45, 212, 191, 0.22);
  color: var(--ad-mint, #2dd4bf);
}

.ad-setup-check--todo {
  background: rgba(251, 191, 36, 0.14);
  color: var(--ad-warn, #fbbf24);
}

.ad-setup-body {
  flex: 1;
  min-width: 0;
}

.ad-setup-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

.ad-setup-hint {
  font-size: 0.75rem;
  color: var(--ad-muted, #8b9bb8);
  margin: 0.15rem 0 0;
}

.ad-btn-cta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ad-mint, #2dd4bf);
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ad-btn-cta:hover {
  background: rgba(45, 212, 191, 0.2);
  border-color: rgba(45, 212, 191, 0.55);
  color: #5eead4;
}

/* —— Wochenkalender —— */
.ad-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.ad-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.2rem;
  min-height: 4.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ad-week-day:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 92, 255, 0.35);
  background: rgba(138, 92, 255, 0.1);
  color: inherit;
}

.ad-week-day--today {
  border-color: rgba(138, 92, 255, 0.55);
  background: rgba(138, 92, 255, 0.14);
  box-shadow: 0 0 20px rgba(138, 92, 255, 0.22);
}

.ad-week-today-tag {
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ad-accent, #8a5cff);
  margin-bottom: 0.1rem;
  min-height: 0.7rem;
}

.ad-week-dow {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ad-muted, #8b9bb8);
  text-transform: uppercase;
}

.ad-week-num {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0.15rem 0;
  line-height: 1;
}

.ad-week-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: center;
  min-height: 10px;
}

.ad-week-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ad-mint, #2dd4bf);
  opacity: 0.9;
}

.ad-week-more {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--ad-mint, #2dd4bf);
  margin-left: 1px;
}

.ad-week-foot {
  font-size: 0.75rem;
  color: var(--ad-muted, #8b9bb8);
  margin: 0.85rem 0 0;
}

.ad-azubi-box {
  padding: 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
}
