/* Einheitliche Status-Badges für Artists, Organizers & Master */

.status-badge,
.tender-status-badge,
.status-tag,
.assignment-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
    white-space: nowrap;
}

/* Position für Karten-Badges (top-right) – nur Gig-/Tender-Karten; Event-Karten (Veranstalter) nutzen Flex/Spalte rechts */
.gig-item .status-badge,
.gig-item .tender-status-badge,
.tender-card .status-badge,
.tender-card .tender-status-badge {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 10;
}

.artist-card .assignment-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.search-card.artist .assignment-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

/* Farben - einheitlich */
.status-badge.pending,
.tender-status-badge.new,
.status-tag.Anstehend { background-color: #f97316; }
/* Master-Event: Veranstalter soll bestätigen (gelb, gut lesbar) */
.status-badge.prompt-confirm {
    background-color: #eab308;
    color: #422006;
    text-transform: none;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 5px rgba(234, 179, 8, 0.35);
}
/* Veranstalter: aktive Ausschreibung – Label z. B. „Suche läuft ...“, Plattform sucht, keine Aktion nötig */
.status-badge.seeking-artists {
    background-color: #22c55e;
    text-transform: none;
    letter-spacing: 0.02em;
}
/* Veranstalter: Vorschläge vorhanden – Musiker in der Planung auswählen */
.status-badge.select-musician {
    background-color: #f97316;
    text-transform: none;
    letter-spacing: 0.02em;
}
/* Veranstalter: Anfrage an einen Musikschaffenden gesendet – eigene Auswahl erledigt */
.status-badge.musician-selected {
    background-color: #22c55e;
    text-transform: none;
    letter-spacing: 0.02em;
}
.status-badge.confirmed,
.tender-status-badge.applied,
.status-tag.Erledigt,
.status-tag.Abgeschlossen { background-color: #22c55e; }
.status-badge.rejected,
.status-tag.Abgelehnt,
.status-tag.Offen { background-color: #ef4444; }
.status-badge.inactive,
.status-badge[style*="9ca3af"] { background-color: #9ca3af !important; }
.status-tag.Storniert { background-color: #9ca3af; }
/* Passiver Warte-/Info-Zustand (z. B. „Warte auf Rückmeldung“, analog Veranstalter „Suche läuft …“) */
.status-badge.passive {
    background-color: #e5e7eb;
    color: #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-transform: none;
    letter-spacing: 0.02em;
}
.status-tag.Gesendet,
.status-tag.In-Bearbeitung,
.status-tag.new { background-color: #3b82f6; }
.status-tag.In-Kontakt-gebracht { background-color: #815da7; }
.assignment-status-badge.status-assigned { background-color: #815da7; }
.assignment-status-badge.status-interested { background-color: #22c55e; }
.assignment-status-badge.status-rejected { background-color: #ef4444; }
.assignment-status-badge.status-applied { background-color: #3b82f6; }

/* Event-Master: Status-Badges (Warte auf Bestätigung, Bestätigt, Abgelehnt, etc.) */
.event-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.event-status-badge.wartet {
    background-color: #ffedd5;
    color: #c2410c;
}

.event-status-badge.zur-pruefung {
    background-color: #f3f4f6;
    color: #6b7280;
}

.event-status-badge.sichtbar {
    background-color: #dcfce7;
    color: #166534;
}

.event-status-badge.abgelehnt {
    background-color: #fee2e2;
    color: #b91c1c;
}

.event-status-badge.inaktiv {
    background-color: #f3f4f6;
    color: #9ca3af;
}

.event-status-badge.presse-fehlt {
    background-color: #ffedd5;
    color: #c2410c;
}

.event-status-badge.presse-ok {
    background-color: #dcfce7;
    color: #166534;
}

.event-status-badge.press-photo-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    gap: 2px;
}

.press-photo-badge-main {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.press-photo-badge-reminder {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.2;
}

.event-status-badge.plakat-angefragt {
    background-color: #f5f0fa;
    color: #815da7;
    border: 1px solid #d8c4ef;
}

.event-status-badge.poster-request-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    gap: 2px;
}

.poster-request-badge-main {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Veranstalter „Meine Events“ / In Planung: gleiche Pill-Breite, normale Groß-/Kleinschreibung */
.event-item .status-badge.organizer-planung-pill {
    min-width: 15.75rem;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Kein fixes min-width: verhindert Überlappung mit Titel in schmaler Ansicht */
    .event-item .status-badge.organizer-planung-pill {
        min-width: 0;
        max-width: 100%;
        width: fit-content;
        margin-left: auto;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.3;
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Mobile: etwas kompakter */
@media (max-width: 768px) {
    .gig-item .status-badge,
    .gig-item .tender-status-badge,
    .tender-card .status-badge,
    .tender-card .tender-status-badge {
        top: 15px;
        right: 15px;
        font-size: 11px;
        padding: 4px 10px;
    }
}
