:root{
  --magenta:#e600a9;
  --blue:#2155ff;
  --sky:#4fd3ff;
  --dark:#17172a;
  --muted:#6b7280;
  --soft:#f7f8ff;
  --white:#fff;
  --green:#12b76a;
  --red:#ef4444;
  --shadow:0 18px 45px rgba(20,20,60,.16);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--dark);
  background:
    radial-gradient(circle at top left, rgba(230,0,169,.22), transparent 32%),
    radial-gradient(circle at top right, rgba(79,211,255,.25), transparent 30%),
    linear-gradient(135deg,#fdf7ff,#eef8ff 45%,#f8fbff);
  min-height:100vh;
}
.page{width:min(1100px,92vw);margin:0 auto;padding:34px 0}
.hero,.admin-hero{
  background:linear-gradient(135deg,var(--magenta),var(--blue) 58%,var(--sky));
  color:#fff;border-radius:28px;padding:34px;box-shadow:var(--shadow);margin-bottom:24px
}
.hero h1,.admin-hero h1{margin:0 0 8px;font-size:clamp(28px,4vw,46px)}
.hero p,.admin-hero p{margin:0;opacity:.92}
.card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.75);
  border-radius:24px;padding:24px;box-shadow:var(--shadow);margin-bottom:20px
}
.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.grid-2{grid-template-columns:1fr}}
label{display:block;font-weight:700;margin:0 0 7px}
input,textarea{
  width:100%;border:1px solid #d9def0;border-radius:15px;
  padding:13px 14px;font-size:15px;background:#fff;outline:none
}
textarea{min-height:120px;resize:vertical}
input:focus,textarea:focus{border-color:var(--magenta);box-shadow:0 0 0 4px rgba(230,0,169,.12)}
.form-row{margin-bottom:16px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:15px;padding:13px 18px;font-weight:800;color:#fff;
  text-decoration:none;background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky));
  cursor:pointer;box-shadow:0 10px 24px rgba(33,85,255,.25)
}
.btn.secondary{background:#fff;color:var(--blue);border:1px solid #d9def0;box-shadow:none}
.btn.danger{background:linear-gradient(90deg,#ef4444,#f97316)}
.btn.small{padding:8px 11px;border-radius:11px;font-size:13px}
.notice{padding:13px 16px;border-radius:16px;background:#eafff4;border:1px solid #b7f7d4;color:#027a48;margin-bottom:18px}
.error{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.autocomplete{position:relative}
.suggestions{
  position:absolute;left:0;right:0;top:100%;z-index:50;background:#fff;
  border:1px solid #d9def0;border-radius:16px;margin-top:6px;overflow:hidden;box-shadow:var(--shadow)
}
.suggestion{padding:12px 14px;cursor:pointer;border-bottom:1px solid #eef1fb}
.suggestion:hover{background:#f4f7ff}
.topnav{
  width:100%;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px;
  margin:0 0 24px;
  padding:14px;
  border-radius:24px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}
.topnav a{
  text-decoration:none;
  background:linear-gradient(135deg,#fff,#f3f7ff);
  color:var(--blue);
  padding:13px 14px;
  border-radius:15px;
  font-weight:900;
  text-align:center;
  box-shadow:0 8px 20px rgba(20,20,60,.08);
  border:1px solid #e8edff;
}
.topnav a:hover{
  background:linear-gradient(135deg,var(--magenta),var(--blue),var(--sky));
  color:#fff;
}
.status-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
.status-card{
  border:0;border-radius:22px;padding:18px;color:#fff;text-decoration:none;
  font-weight:900;box-shadow:var(--shadow);cursor:pointer;text-align:left
}
.status-card span{display:block;font-size:30px;margin-top:8px}
.status-card.active{outline:4px solid rgba(255,255,255,.9)}
.status-new{background:linear-gradient(135deg,var(--magenta),#ff77d7)}
.status-show{background:linear-gradient(135deg,var(--blue),#5f8cff)}
.status-archive{background:linear-gradient(135deg,#02aeea,var(--sky))}
.status-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:14px;
}
.status-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:7px 9px;
  border-radius:10px;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  box-shadow:none;
}
.request{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:start}
.request h3{margin:0 0 8px}
.meta{color:var(--muted);font-size:14px}
.greeting-highlight{
  margin-top:14px;
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(230,0,169,.10),rgba(79,211,255,.16));
  border:2px solid rgba(230,0,169,.18);
  font-size:17px;
  line-height:1.5;
  font-weight:700;
  color:#17172a;
}
.greeting-highlight:before{
  content:"Grusstext";
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--magenta);
  margin-bottom:6px;
  font-weight:900;
}
.actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.table{width:100%;border-collapse:collapse;overflow:hidden;border-radius:16px}
.table th,.table td{padding:12px;border-bottom:1px solid #eef1fb;text-align:left}
.table th{background:#f4f7ff}
.badge{
  display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;color:#fff
}
.badge.active{background:var(--green)}.badge.inactive{background:#9ca3af}
.login-wrap{width:min(430px,92vw);margin:8vh auto}


.filter-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.filter-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d9def0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:900;
  text-decoration:none;
  color:var(--blue);
  background:#fff;
  cursor:pointer;
}
.filter-btn.active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky));
  box-shadow:0 10px 24px rgba(33,85,255,.25);
}
select{
  width:100%;
  border:1px solid #d9def0;
  border-radius:15px;
  padding:13px 14px;
  font-size:15px;
  background:#fff;
  outline:none;
}
select:focus{
  border-color:var(--magenta);
  box-shadow:0 0 0 4px rgba(230,0,169,.12);
}


/* V6: Backend-Menü einzeilig und stabil */
.topnav{
  width:100%;
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px;
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:thin;
}
.topnav a{
  flex:1 0 auto;
  min-width:max-content;
  padding:12px 14px;
}

/* V6: Einheitliche Filter-Buttons ohne störende Randstreifen */
.filter-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.filter-buttons .btn,
.filter-buttons .filter-btn{
  width:112px;
  min-width:112px;
  height:44px;
  padding:0 14px;
  border-radius:14px;
  box-shadow:none;
  border:1px solid #d9def0;
  line-height:1;
}
.filter-buttons .btn{
  box-shadow:0 8px 18px rgba(33,85,255,.18);
}
.filter-btn.active{
  border:1px solid transparent;
}

/* V6: Status-Minibuttons in Wunschliste einheitlich */
.status-mini{
  width:104px;
  min-width:104px;
  height:34px;
  padding:0 8px;
  line-height:1;
}

/* V6: Songarchiv-Tabelle fixieren */
.song-table{
  table-layout:fixed;
}
.song-table th:nth-child(1),
.song-table td:nth-child(1){
  width:110px;
}
.song-table th:nth-child(2),
.song-table td:nth-child(2){
  width:28%;
}
.song-table th:nth-child(3),
.song-table td:nth-child(3){
  width:32%;
}
.song-table th:nth-child(4),
.song-table td:nth-child(4){
  width:360px;
}
.song-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
}
.song-actions .btn{
  width:112px;
  min-width:112px;
  height:36px;
  padding:0 8px;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
  box-shadow:none;
}
.song-actions .btn.toggle{
  width:128px;
  min-width:128px;
}
.song-actions .btn.danger{
  width:86px;
  min-width:86px;
}
@media(max-width:850px){
  .topnav a{flex:0 0 auto}
  .song-table th:nth-child(4),
  .song-table td:nth-child(4){width:320px}
}


/* V6 CSS-FIX: saubere Button-Ränder ohne Farbstreifen */
.btn,
.filter-btn,
.status-card,
.status-mini,
.badge,
.topnav a,
.song-actions .btn{
  position:relative;
  overflow:hidden;
  background-clip:padding-box !important;
  -webkit-background-clip:padding-box !important;
  border-style:solid;
  border-width:0;
  outline:none;
  text-decoration:none;
}

/* Filter-Buttons: keine transparente Border, damit am Rand nichts durchscheint */
.filter-btn,
.filter-buttons .filter-btn,
.filter-buttons .btn{
  border:0 !important;
  background-clip:border-box !important;
  -webkit-background-clip:border-box !important;
}

.filter-btn{
  background:#ffffff !important;
  color:var(--blue);
}

.filter-btn.active{
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky)) !important;
  color:#ffffff !important;
  border:0 !important;
}

/* Normale Buttons ebenfalls sauber clippen */
.btn{
  border:0 !important;
  background-clip:border-box !important;
  -webkit-background-clip:border-box !important;
}

.btn.secondary{
  background:#ffffff !important;
  color:var(--blue) !important;
  border:1px solid #d9def0 !important;
  background-clip:padding-box !important;
  -webkit-background-clip:padding-box !important;
}

.btn.danger{
  background:linear-gradient(90deg,#ef4444,#f97316) !important;
  color:#ffffff !important;
  border:0 !important;
}

/* Status-Buttons in Wunschübersicht ohne Rand-Artefakte */
.status-mini,
.status-card{
  border:0 !important;
  background-clip:border-box !important;
  -webkit-background-clip:border-box !important;
}

/* Badges im Songarchiv: fester Hintergrund, keine Gradientenreste */
.badge.active{
  background:#12b76a !important;
}
.badge.inactive{
  background:#9ca3af !important;
}

/* Tabellenaktionen stabil und ohne sichtbare Randreste */
.song-actions .btn{
  border:0 !important;
}
.song-actions .btn.secondary{
  border:1px solid #d9def0 !important;
}


/* V6 CSS FIX V2: Aktiv/Inaktiv Filterbuttons wie Bearbeiten/Deaktivieren */
.filter-btn{
  border:1px solid #d9def0 !important;
  background:#ffffff !important;
  color:var(--blue) !important;
  box-shadow:none !important;
  height:44px;
  min-width:112px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.filter-btn.active{
  border:1px solid #d9def0 !important;
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky)) !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

/* Gleiche Optik wie Bearbeiten/Deaktivieren */
.song-actions .btn.secondary,
.filter-btn{
  border-radius:14px !important;
}

/* Einheitliche Hover-Optik */
.filter-btn:hover{
  opacity:.96;
}


/* V6 CSS FIX V3: Sichtbarer Border bei aktivem Filterbutton */
.filter-btn.active{
  border:1px solid rgba(255,255,255,.65) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 0 0 1px rgba(217,222,240,.9) !important;
}


/* V6 CSS FIX V4: Filter aktiv = Suchen-Button, inaktiv = Hilfslinie */
.filter-buttons .filter-btn{
  border:1px solid #d9def0 !important;
  background:#ffffff !important;
  color:var(--blue) !important;
  box-shadow:none !important;
}

.filter-buttons .filter-btn.active{
  border:0 !important;
  outline:0 !important;
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky)) !important;
  color:#ffffff !important;
  box-shadow:0 8px 18px rgba(33,85,255,.18) !important;
}

/* Entfernt alte Zusatz-Outlines aus CSS-FIX V3 */
.filter-btn.active{
  outline:0 !important;
}


/* V6 CSS FIX V5: Benutzer-Seite Header + Buttons */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.section-head h2{
  margin:0;
}

.user-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
}

.user-actions .btn{
  width:104px;
  min-width:104px;
  height:36px;
  padding:0 8px;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
  box-shadow:none !important;
}

.user-actions .btn.danger{
  width:86px;
  min-width:86px;
  box-shadow:none !important;
}


/* V6 CSS FIX V6: Statistik meistgewünschte Songs */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px;
}

.stat-box{
  background:linear-gradient(135deg,#ffffff,#f4f8ff);
  border:1px solid #e3e9fb;
  border-radius:22px;
  padding:20px;
  box-shadow:0 10px 26px rgba(20,20,60,.08);
}

.stat-box strong{
  display:block;
  font-size:30px;
  line-height:1;
  margin-bottom:8px;
  color:var(--blue);
}

.stat-box span{
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}

.rank-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--magenta),var(--blue),var(--sky));
  color:#fff;
  font-weight:900;
}

.stats-filter{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.stats-filter .filter-btn{
  width:auto;
  min-width:116px;
}

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

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


/* V7 BUTTON FIX: saubere rechte Kanten ohne Magenta-Streifen */
.filter-btn.active,
.stats-filter .filter-btn.active,
.filter-buttons .filter-btn.active{
  position:relative;
  border:none !important;
  outline:none !important;
  overflow:hidden !important;
  isolation:isolate;
  background:transparent !important;
  box-shadow:0 8px 18px rgba(33,85,255,.18) !important;
}

.filter-btn.active::before,
.stats-filter .filter-btn.active::before,
.filter-buttons .filter-btn.active::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:14px;
  background:linear-gradient(90deg,var(--magenta) 0%,var(--blue) 55%,var(--sky) 100%);
  z-index:-1;
}

/* verhindert Hintergrund-Artefakte am Rand */
.filter-btn,
.filter-buttons .filter-btn,
.stats-filter .filter-btn{
  transform:translateZ(0);
  backface-visibility:hidden;
}


/* V8: Header mit Logout rechts unten */
.admin-hero{
  position:relative;
  padding-right:190px;
}

.header-logout{
  position:absolute;
  right:24px;
  bottom:22px;
  min-width:120px;
  height:40px;
  padding:0 16px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  color:var(--blue);
  font-weight:900;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(20,20,60,.12);
  border:1px solid rgba(255,255,255,.7);
}

.header-logout:hover{
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky));
  color:#ffffff;
}

@media(max-width:720px){
  .admin-hero{
    padding-right:34px;
    padding-bottom:88px;
  }

  .header-logout{
    left:24px;
    right:24px;
    bottom:24px;
    width:auto;
  }
}


/* V9: Schlager Nova Logo im Header */
.header-logo{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  text-decoration:none;
  margin-bottom:14px;
}

.header-logo img{
  width:320px;
  max-width:100%;
  height:auto;
  display:block;
}

.admin-hero p{
  margin:0;
  opacity:.95;
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
}

@media(max-width:720px){
  .header-logo img{
    width:240px;
  }
}


/* V9_1: kompakter Header ohne Layout-Shift */
.admin-hero{
  min-height:142px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
}

.header-logo{
  display:flex;
  width:220px;
  height:78px;
  align-items:center;
  justify-content:flex-start;
  margin:0 0 10px;
  line-height:0;
}

.header-logo img{
  width:220px !important;
  height:auto;
  max-height:78px;
  display:block;
  object-fit:contain;
}

.header-subline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  min-height:24px;
  color:#ffffff;
  font-size:15px;
  font-weight:800;
  line-height:1.3;
}

.header-user{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  font-size:13px;
  font-weight:900;
}

.admin-hero p{
  display:none;
}

@media(max-width:720px){
  .admin-hero{
    min-height:178px;
  }

  .header-logo{
    width:185px;
    height:66px;
  }

  .header-logo img{
    width:185px !important;
    max-height:66px;
  }
}


/* V9_2: Logout Unterkante auf Höhe Musikwunsch Admin/User */
.header-logout{
  bottom:34px !important;
  height:34px;
  min-width:118px;
}

/* V9_2: Wunschkarte Layout - Grusstext volle Breite bis Buttonkante */
.request{
  grid-template-columns:1fr !important;
  gap:16px;
  position:relative;
}

.request .actions{
  position:absolute;
  top:24px;
  right:24px;
  justify-content:flex-end;
}

.request h3,
.request .meta{
  padding-right:260px;
}

.greeting-highlight{
  width:100%;
  max-width:none;
}

@media(max-width:760px){
  .request .actions{
    position:static;
    justify-content:flex-start;
  }

  .request h3,
  .request .meta{
    padding-right:0;
  }
}


/* V9_3: Einheitliche Aktionsreihe */
.request{
  position:relative;
}

.request .actions{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
  position:static !important;
  margin-top:14px;
}

.request-actions-row{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
  margin-top:14px;
}

.request-actions-row .status-mini,
.request-actions-row .btn{
  height:36px;
  min-width:108px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  white-space:nowrap;
}

.request-actions-row .btn.danger{
  box-shadow:none !important;
  min-width:92px;
}

.request h3,
.request .meta{
  padding-right:0 !important;
}

@media(max-width:920px){
  .request-actions-row{
    flex-wrap:wrap;
  }
}


/* V9_4: Backend Wunsch anlegen */
.btn-no-shadow{
  box-shadow:none !important;
}

.form-row label,
.card > label{
  color:var(--dark);
}


/* V9_5: Songarchiv Buttons ohne Schatten */
.song-actions .btn,
.song-actions .btn.secondary,
.song-actions .btn.danger,
.song-actions .btn.toggle,
.filter-buttons .btn,
.filter-buttons .filter-btn,
.filter-btn,
.filter-btn.active{
  box-shadow:none !important;
}


/* V9_6 Header Layout */
.admin-hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:170px;
  padding:28px 34px;
}

.header-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.header-logo{
  margin:0 0 8px !important;
  justify-content:center !important;
}

.header-subline{
  justify-content:center !important;
  text-align:center;
  width:100%;
}

.header-subline span{
  font-size:16px;
  font-weight:900;
  color:#ffffff;
}

.header-right{
  position:absolute;
  right:24px;
  top:24px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.header-user-card{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  color:#ffffff;
  font-size:13px;
  font-weight:900;
  backdrop-filter:blur(8px);
}

.header-logout{
  position:static !important;
  min-width:118px;
  height:34px;
  box-shadow:none !important;
}

@media(max-width:760px){

  .admin-hero{
    padding-top:120px;
    min-height:220px;
  }

  .header-right{
    left:24px;
    right:24px;
    top:24px;
    align-items:stretch;
  }

  .header-user-card,
  .header-logout{
    width:100%;
  }
}


/* V9_7: User + Logout unten rechts im Header */
.header-right{
  position:absolute;
  right:24px;
  bottom:24px;
  top:auto !important;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-end;
  gap:10px;
}

@media(max-width:760px){

  .header-right{
    left:24px;
    right:24px;
    bottom:24px;
    top:auto !important;
    align-items:stretch;
  }

  .admin-hero{
    padding-bottom:120px;
  }
}


/* V9_8 FIX: Header wieder wie stabile V9_7-Version */
.header-right{
  position:absolute !important;
  right:24px !important;
  bottom:24px !important;
  top:auto !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:flex-end !important;
  gap:10px !important;
}

.header-user-card{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:34px !important;
  padding:6px 14px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  color:#ffffff !important;
  font-size:13px !important;
  font-weight:900 !important;
  backdrop-filter:blur(8px);
}

/* Logout wieder sauber sichtbar, ohne Pseudo-Element/Artefakte */
.header-logout{
  position:static !important;
  min-width:118px !important;
  height:34px !important;
  padding:0 16px !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#ffffff !important;
  color:var(--blue) !important;
  font-weight:900 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  border:1px solid rgba(255,255,255,.75) !important;
  overflow:hidden !important;
  isolation:auto !important;
}

.header-logout::before{
  display:none !important;
  content:none !important;
}

.header-logout:hover{
  background:#ffffff !important;
  color:var(--blue) !important;
}

/* Menü direkt an Header anheften, aber Header selbst stabil lassen */
.admin-hero{
  margin-bottom:0 !important;
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
}

.topnav{
  margin-top:0 !important;
  border-top-left-radius:0 !important;
  border-top-right-radius:0 !important;
}

/* Mobile bleibt wie V9_7 */
@media(max-width:760px){
  .header-right{
    left:24px !important;
    right:24px !important;
    bottom:24px !important;
    top:auto !important;
    align-items:stretch !important;
  }

  .header-user-card,
  .header-logout{
    width:100% !important;
  }

  .admin-hero{
    padding-bottom:120px !important;
  }
}


/* V9_9: Audio Preview im Songarchiv */
.audio-preview{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:180px;
}

.audio-preview audio{
  width:180px;
  height:34px;
}

.audio-empty{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.file-hint{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:13px;
}

.preview-remove{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-weight:800;
  color:var(--dark);
}

.preview-remove input{
  width:auto;
}

.song-table th:nth-child(4),
.song-table td:nth-child(4){
  width:230px;
}

.song-table th:nth-child(5),
.song-table td:nth-child(5){
  width:360px;
}


/* V9_10: Audio Preview im Frontend */
.frontend-preview-wrap{
  margin-top:12px;
}

.frontend-preview-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(230,0,169,.10),rgba(79,211,255,.16));
  border:1px solid rgba(230,0,169,.18);
}

.frontend-preview-label{
  font-weight:900;
  color:var(--magenta);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  white-space:nowrap;
}

.frontend-preview-card audio{
  width:260px;
  height:34px;
}

@media(max-width:620px){
  .frontend-preview-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .frontend-preview-card audio{
    width:100%;
  }
}


/* V9_11: Honeypot unsichtbar für Nutzer */
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
  tabindex:-1;
}


/* V9_13: Eleganter Custom Audio Player */
.custom-audio-player{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:360px;
  padding:9px 12px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(230,0,169,.10),rgba(79,211,255,.18));
  border:1px solid rgba(33,85,255,.14);
}

.custom-play{
  width:38px;
  min-width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:900;
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky));
  cursor:pointer;
  box-shadow:none;
}

.custom-timeline{
  flex:1;
  min-width:120px;
}

.custom-seek{
  width:100%;
  height:7px;
  padding:0;
  margin:0;
  border:0;
  border-radius:999px;
  accent-color:var(--blue);
  cursor:pointer;
}

.custom-time{
  display:flex;
  justify-content:space-between;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.frontend-preview-card{
  align-items:center;
}

.frontend-preview-card .custom-audio-player{
  max-width:360px;
}

.audio-preview{
  min-width:260px;
}

@media(max-width:620px){
  .frontend-preview-card .custom-audio-player{
    max-width:100%;
  }
}


/* V9_15: Wunsch bearbeiten Buttons */
.form-actions-equal{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.form-actions-equal .btn{
  width:132px;
  min-width:132px;
  height:42px;
  padding:0 18px;
  box-shadow:none !important;
}

.btn-no-shadow{
  box-shadow:none !important;
}


/* V9_17: Alle genannten Buttons ohne Schatten */
.song-actions .btn,
.song-actions .btn.secondary,
.song-actions .btn.danger,
.song-actions .btn.toggle,
.filter-buttons .btn,
.filter-buttons .filter-btn,
.filter-btn,
.filter-btn.active,
.stats-filter .filter-btn,
.stats-filter .filter-btn.active,
.search-form .btn,
.csv-import-form .btn,
.user-actions .btn,
.user-actions .btn.secondary,
.user-actions .btn.danger,
.song-save-actions .btn,
.song-save-actions .btn.secondary,
.card .btn,
.card .btn.secondary{
  box-shadow:none !important;
}

/* Song bearbeiten Buttons gleich gross */
.song-save-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.song-save-actions .btn,
.song-save-actions .btn.secondary{
  width:132px;
  min-width:132px;
  height:42px;
  padding:0 18px;
  justify-content:center;
  text-align:center;
  box-shadow:none !important;
}


/* V9_18: PDF Export Statistik */
.pdf-export-btn{
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky)) !important;
  color:#ffffff !important;
  border:0 !important;
  box-shadow:none !important;
}


/* V9_19: PDF Export Button rechts beim Statistik-Titel */
.section-head .pdf-export-btn{
  width:auto;
  min-width:132px;
  height:42px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:none !important;
}


/* V9_20: Mehr Abstand PDF Export Button */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}

.section-head .pdf-export-btn{
  margin-left:20px;
}


/* V9_21: Statistik-Leerraum reduzieren */
body .page .card:has(.stats-filter){
  padding-bottom:22px;
}

.stats-filter{
  align-items:center;
}

.stats-grid{
  margin-top:0;
}

/* Fallback falls :has nicht unterstützt wird */
.stats-compact{
  padding-bottom:22px !important;
}

/* V9_21: Logout Animation wiederherstellen */
.header-logout{
  transition:all .18s ease !important;
}

.header-logout:hover{
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky)) !important;
  color:#ffffff !important;
  transform:translateY(-1px);
}


/* V9_24: Logout wieder im Menü, Header nur mit User unten rechts */
.header-right{
  position:absolute !important;
  right:24px !important;
  bottom:24px !important;
  top:auto !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:flex-end !important;
  gap:0 !important;
}

.header-user-card{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:34px !important;
  padding:6px 14px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  color:#ffffff !important;
  font-size:13px !important;
  font-weight:900 !important;
  backdrop-filter:blur(8px);
}

.header-logout{
  display:none !important;
}

/* V9_24: Einheitliche Button-Typografie im ganzen Script */
button,
.btn,
.filter-btn,
.status-card,
.status-mini,
.topnav a,
.song-actions .btn,
.user-actions .btn,
.form-actions-equal .btn,
.song-save-actions .btn,
.pdf-export-btn,
input[type="submit"]{
  font-family:Arial, Helvetica, sans-serif !important;
  font-size:14px !important;
  font-weight:900 !important;
  letter-spacing:0 !important;
  line-height:1 !important;
  text-rendering:geometricPrecision;
}

/* Kleine Statusbuttons dürfen kompakter bleiben, aber gleiche Schrift */
.status-mini{
  font-size:12px !important;
}

/* V9_24: Songarchiv Filter/Search Buttons definitiv ohne Schatten */
.filter-buttons .btn,
.filter-buttons .filter-btn,
.filter-btn,
.filter-btn.active,
.stats-filter .filter-btn,
.stats-filter .filter-btn.active{
  box-shadow:none !important;
  -webkit-box-shadow:none !important;
  filter:none !important;
}

/* Filterbuttons gleiche Höhe und Schrift wie Suchen */
.filter-buttons .btn,
.filter-buttons .filter-btn{
  height:44px !important;
  min-width:112px !important;
  padding:0 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Menü-Logout optisch wie andere Menüpunkte */
.topnav a[href="logout.php"]{
  color:var(--blue);
}

/* Mobile Header */
@media(max-width:760px){
  .header-right{
    left:24px !important;
    right:24px !important;
    bottom:24px !important;
    top:auto !important;
    align-items:stretch !important;
  }

  .header-user-card{
    width:100% !important;
  }

  .admin-hero{
    padding-bottom:86px !important;
  }
}


/* V9_25: Logout exakt wie restliche Backend-Menüpunkte */
.topnav a[href="logout.php"]{
  text-decoration:none !important;
  background:linear-gradient(135deg,#fff,#f3f7ff) !important;
  color:var(--blue) !important;
  padding:13px 14px !important;
  border-radius:15px !important;
  font-weight:900 !important;
  text-align:center !important;
  box-shadow:0 8px 20px rgba(20,20,60,.08) !important;
  border:1px solid #e8edff !important;
}

.topnav a[href="logout.php"]:hover{
  background:linear-gradient(135deg,var(--magenta),var(--blue),var(--sky)) !important;
  color:#fff !important;
}

/* V9_25: Sortierbare Tabellenköpfe im Songarchiv */
.sort-link{
  color:var(--dark);
  text-decoration:none;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.sort-link:hover{
  color:var(--blue);
}

.sort-indicator{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:8px;
  background:#eef3ff;
  color:var(--blue);
  font-size:12px;
  font-weight:900;
}


/* V9_26: Sortier-Icons eleganter */
.sort-link{
  gap:8px;
}

.sort-indicator{
  width:24px !important;
  height:24px !important;
  border-radius:999px !important;
  background:#eef3ff !important;
  color:var(--blue) !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1 !important;
  transition:all .15s ease;
}

.sort-indicator.active{
  background:linear-gradient(90deg,var(--magenta),var(--blue),var(--sky)) !important;
  color:#ffffff !important;
}

.sort-link:hover .sort-indicator{
  transform:translateY(-1px);
}

/* V9_26: CSV Import Button beim Titel */
.section-head .btn-no-shadow{
  box-shadow:none !important;
}

/* V9_26: einheitliche Labels im Songbereich */
.audio-empty{
  font-family:Arial, Helvetica, sans-serif !important;
}


/* V9_27: Statistik Box kompakter */
.stats-compact{
  padding-top:26px !important;
  padding-bottom:12px !important;
}

.stats-compact .section-head{
  margin-bottom:4px !important;
  align-items:flex-start !important;
}

.stats-compact p,
.stats-compact .muted,
.stats-compact .stats-subtitle{
  margin-bottom:0 !important;
}

.stats-filter{
  margin-bottom:0 !important;
}

.stats-grid{
  margin-top:8px !important;
}


/* V9_28 Moderator Notizen */
.moderator-note-box{
  margin-top:12px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff7e8;
  border:1px solid #ffd69b;
  color:#5a3d00;
  line-height:1.5;
  font-size:14px;
}

.moderator-note-box strong{
  display:block;
  margin-bottom:4px;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.08em;
  color:#c77700;
}


/* V9_29 Interne Notiz kompakter */
.moderator-note-box{
  padding:14px 18px !important;
}

.moderator-note-box strong{
  display:block;
  margin-bottom:2px !important;
  line-height:1.1 !important;
}

.moderator-note-box br{
  display:none;
}


.moderator-note-text{
  margin-top:4px;
}


/* V9_34: Benutzer Header-Kachel kompakter */
.users-head-card{
  padding-top:24px !important;
  padding-bottom:20px !important;
  margin-bottom:18px !important;
}

.users-head-card .section-head{
  margin-bottom:0 !important;
  align-items:center !important;
}

.users-head-card h2{
  margin:0 !important;
}


/* V9_36 Fehlermeldung einheitliche Schrift */
.notice-line{
  font-size:15px !important;
  line-height:1.45 !important;
  font-weight:500;
}

.notice-line + .notice-line{
  margin-top:2px;
}


/* V9_37 Wunsch-Buttons gleiche Grösse wie Bearbeiten/Löschen */
.request-actions .status-mini,
.request-actions .status-card,
.request-actions .btn,
.request-actions a{
  min-width:110px !important;
  height:48px !important;
  padding:0 18px !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

/* gleiche Innenabstände */
.request-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

/* Archiv / Neue Wünsche optisch exakt mittig */
.request-actions .status-mini span,
.request-actions .status-card span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  text-align:center;
}


/* V9_38 Schriftgrösse Wunschbuttons angleichen */
.request-actions .status-mini,
.request-actions .status-card{
  font-size:13px !important;
  font-weight:800 !important;
  font-family:Arial, Helvetica, sans-serif !important;
  letter-spacing:0 !important;
}

.request-actions .status-mini span,
.request-actions .status-card span{
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
}


/* V9_39 FINAL: Wunschübersicht Aktionsbuttons wirklich identisch */
.request-actions-row a,
.request-actions-row .btn,
.request-actions-row .status-mini,
.request-actions-row .status-new,
.request-actions-row .status-show,
.request-actions-row .status-archive{
  width:112px !important;
  min-width:112px !important;
  max-width:112px !important;
  height:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  padding:0 10px !important;
  margin:0 !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  font-family:Arial, Helvetica, sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  white-space:nowrap !important;
  text-decoration:none !important;
  vertical-align:middle !important;
}

/* Text innerhalb von Statusbuttons überschreibt keine andere Grösse mehr */
.request-actions-row a *,
.request-actions-row .status-mini *,
.request-actions-row .btn *{
  font-family:Arial, Helvetica, sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
}

/* Neue Wünsche darf wegen zwei Worten nicht grösser/anders wirken */
.request-actions-row .status-new{
  white-space:normal !important;
  line-height:1.05 !important;
}

/* Aktionsreihe sauber ausrichten */
.request-actions-row{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:wrap !important;
}
