/* assets/css/front.css */
/* Leads Manager Frontend Styles */

/* Allgemeine Layout-Anpassungen */
#lead-manager-frontend {
    /* Optional: Ein Container für das gesamte Frontend-Modul */
    padding: 10px;
    background-color: #000; /* Leicht grauer Hintergrund für den Bereich */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    min-height: 200px; /* Verhindert Layout-Sprünge beim Laden */
    margin-top: 20px;
}
.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filters select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    min-width: 150px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
}
#load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}
#load-more:hover:not(:disabled) {
    background-color: #005177;
}
#load-more:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Spezifische Styling-Anpassungen für Lead-Karten */
.lead-card {
    background: #ffffff; /* Weißer Hintergrund */
    border: 1px solid #e0e0e0;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333333; /* Dunkler Text für Lesbarkeit auf weißem Hintergrund */
    border-radius: 6px;
}
.lead-card h2.lead-title {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #222222; /* Noch dunkler für Titel */
}
.lead-card h2.lead-title a {
    text-decoration: none;
    color: #e80027; /* WordPress Blau für Links */
    transition: color 0.2s ease;
}
.lead-card h2.lead-title a:hover {
    color: #005177;
    text-decoration: underline;
}
.lead-card label {
    font-weight: bold;
    color: #555555;
    display: block; /* Für bessere Ausrichtung mit Inputs */
    margin-bottom: 2px;
    margin-top: 8px;
}
.lead-card select.vv-status-dropdown,
.lead-card input.vv-datetime-input,
.lead-card textarea {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f9f9f9;
    color: #333333;
    width: calc(100% - 10px); /* Adjust for padding */
    box-sizing: border-box;
    margin-top: 5px;
    font-size: 0.9em;
}
.lead-card input.vv-datetime-input {
    width: auto; /* Datetime input kann kleiner sein */
    margin-right: 5px;
}
.lead-card .status-badge {
	display: none;
/*    padding: 3px 8px;
    border-radius: 4px;
    color: #fff; /* Status-Badge Text bleibt weiß
    font-size: 0.85em;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
	
	*/
}
.lead-card .datetime-display {
    font-size: 0.9em;
    color: #555555;
    margin-top: 5px;
    display: inline-block;
    vertical-align: middle;
}
.lead-card .address,
.lead-card p {
    font-size: 0.9em;
    color: #555555;
    margin: 5px 0;
    line-height: 1.4;
}
.lead-card p strong {
    color: #333333;
}
.lead-card a {
    color: #e00000; /* Allgemeine Links in Lead-Karte */
    text-decoration: none;
}
.lead-card a:hover {
    color: #005177;
    text-decoration: underline;
}
.lead-card a[href^="https://wa.me/"] {
    color: #25d366; /* WhatsApp Grün */
}

.kl-skin--dark a {
    color: #e00000 !important;
}

.lead-card .address, .lead-card p {
    padding-top: 5px;
}

.lead-card a[href^="https://wa.me/"]:hover {
    color: #1ea64d;
}
.lead-card .comments {
    border-top: 1px solid #eeeeee;
    margin-top: 15px;
    padding-top: 15px;
}
.lead-card .comments h4 {
    margin-top: 0;
    color: #222222;
    font-size: 1.1em;
}
.lead-card .comments > div { /* Das Scrollfeld für Notizen */
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #f1f1f1;
    padding: 10px;
    margin-bottom: 10px;
    background: #fdfdfd;
    color: #333333;
    border-radius: 4px;
}
.lead-card .comments div > div { /* Einzelne Notiz-Einträge */
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
    word-wrap: break-word; /* Lange Wörter umbrechen */
    font-size: 0.9em;
    color: #444;
}
.lead-card .comments div > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.lead-card .comments p.no-notes-message {
    color: #999;
    font-style: italic;
    text-align: center;
}
.lead-card .add-note-btn {
    background-color: #cd2122; /* Grüner Button */
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}
.lead-card .add-note-btn:hover {
    background-color: #1a8b81;
}

/* Styling für kleinere Bildschirme */
@media (max-width: 768px) {
    .leads-grid {
        grid-template-columns: 1fr;
    }
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filters select {
        width: 100%;
        margin-bottom: 5px;
    }
}