/* assets/css/abos.css */

/* --- Grid Layout für die Karten --- */
.abos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* --- Abo Karte Design --- */
.abo-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 1.8rem;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.abo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

/* Kategorien Badges */
.abo-category-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.cat-ballroom { background: rgba(121, 47, 97, 0.1); color: var(--accent-1); }
.cat-tanzfit { background: rgba(242, 162, 62, 0.15); color: #d68910; }
.cat-workshops { background: rgba(76, 175, 80, 0.1); color: #2e7d32; }

/* Typographie Karte */
.abo-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

.abo-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-1);
    margin: 0.5rem 0;
}

.abo-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.abo-details {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    flex-grow: 1; /* Schiebt Actions nach unten */
}

/* Actions Buttons in der Karte */
.card-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.2rem;
}

.btn-card {
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-edit {
    background: rgba(255,255,255,0.6);
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.05);
}
.btn-edit:hover { background: #fff; transform: translateY(-2px); }

.btn-delete {
    background: rgba(244, 67, 54, 0.08);
    color: #d32f2f;
}
.btn-delete:hover { background: rgba(244, 67, 54, 0.15); transform: translateY(-2px); }


/* --- MODAL (POPUP) DESIGN --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* KORREKTUR: Overlay ist wieder dunkel/neutral, NICHT lila */
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    
    /* KORREKTUR: Die Box selbst ist jetzt Lila (App-Farbe) */
    background: var(--accent-1); 
    /* Ein leichter Gradient für mehr Tiefe */
    background: linear-gradient(145deg, var(--accent-1), #5c234a);
    
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    /* Heller Border als Kontrast */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white; /* Text weiß auf lila */
    
    transform: scale(0.9);
    opacity: 0;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes zoomIn { to { transform: scale(1); opacity: 1; } }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Hellere Trennlinie */
}

.modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: white; /* Weiß auf Lila */
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: rgba(255,255,255,0.7); /* Hellgrau */
    cursor: pointer;
    line-height: 0.5;
    padding: 0;
    transition: color 0.2s;
}
.close-btn:hover { color: white; }

/* --- FORMULAR STYLING IM MODAL --- */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500; /* Etwas dünner für Eleganz */
    color: rgba(255,255,255,0.9); /* Fast weiß */
    margin-bottom: 0.5rem;
    margin-left: 4px;
}

/* Inputs auf dem lila Hintergrund */
.modal-card input, 
.modal-card select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    background-color: #ffffff; /* Weißer Hintergrund für Kontrast */
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333333; /* Dunkler Text im weißen Input */
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-card input::placeholder {
    color: #aaa;
}

/* Focus State mit Glow */
.modal-card input:focus, 
.modal-card select:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3); /* Weißer Glow */
}

.input-row {
    display: flex;
    gap: 1.2rem;
}

.span-half {
    flex: 1;
}

/* Modal Footer */
.modal-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Buttons im Modal anpassen für lila Hintergrund */
.modal-footer .btn-secondary {
    border-color: rgba(255,255,255,0.4);
    color: white;
}
.modal-footer .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.modal-footer .btn-primary {
    background: white;
    color: var(--accent-1);
}
.modal-footer .btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
}