/* Container-Setup */
.dm-container { 
    max-width: 650px; 
    margin: 40px auto; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* Karten-Design */
.dm-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dm-card h3 { 
    margin: 0 0 15px 0; 
    color: #004488; 
    font-size: 1.3rem;
}

/* Header-Bereich einer Karte */
.dm-card-header {
    display: flex;
    align-items: center;
}

.dm-card-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.dm-checkbox-label {
    font-weight: bold; 
    font-size: 1.1rem; 
    cursor: pointer; 
    display: block;
    color: #333;
}

/* Ausklapp-Optionen (Animation) */
.dm-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
    border-top: 1px solid #eee;
    margin-top: 0;
}

.dm-options.is-visible {
    max-height: 1200px; /* Platz für alle Module */
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
}

/* Bulk-Actions (Alle auswählen) */
.dm-bulk-actions {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #004488;
}

.dm-action-link {
    cursor: pointer;
    text-decoration: underline;
}

/* Unter-Blöcke (Inhalt des Moduls) */
.dm-sub-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dm-sub-block:last-child {
    border-bottom: none;
}

.dm-sub-left {
    display: flex;
    align-items: center;
}

.dm-sub-left input {
    margin-right: 12px;
}

.dm-sub-right select {
    min-width: 100px; /* Hier kannst du die Breite steuern */
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Formular-Elemente */
.dm-field-group { margin-bottom: 15px; }
.dm-field-group label { 
    display: block; 
    font-size: 0.9rem; 
    margin-bottom: 5px; 
    color: #666; 
    font-weight: bold; 
}

/* Button-Styling */
.dm-submit-btn {
    background-color: #004488; 
    color: white; 
    border: none; 
    padding: 20px;
    width: 100%; 
    border-radius: 10px; 
    font-size: 1.2rem; 
    font-weight: bold; 
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,68,136,0.3);
}

.dm-submit-btn:hover {
    background-color: #003366;
}

/* Container für Label und Untertitel, damit sie untereinander stehen */
.dm-sub-label-wrapper {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Der neue "Tooltip"/Untertitel unter dem Block-Namen */
.dm-sub-hint {
    font-size: 0.75rem;
    color: #999; /* Helleres Grau */
    font-weight: normal;
    margin-top: 2px;
}

/* Sicherstellen, dass die Checkbox oben ausgerichtet ist, wenn der Text zweizeilig wird */
.dm-sub-left {
    display: flex;
    align-items: flex-start; /* Oben ausrichten */
    padding-top: 4px;
}

.dm-sub-left input[type="checkbox"] {
    margin-top: 3px; /* Kleine Justierung der Checkbox-Position */
}

/* Modal/Popup für Email-Capture */
.dm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.dm-modal-overlay.is-visible {
    display: flex;
}

.dm-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.dm-modal-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.dm-modal-header h3 {
    margin: 0;
    color: #004488;
    font-size: 1.3rem;
}

.dm-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.dm-modal-close:hover {
    color: #333;
}

.dm-modal-body {
    padding: 25px;
}

.dm-modal-body p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}