/* Datenschutz-Einwilligung Frontend Styles */

.dse-formular-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Datenschutztext */
.dse-datenschutz-text {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
}

.dse-datenschutz-text h2 {
    color: #004085;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.dse-datenschutz-text h3 {
    color: #004085;
    font-size: 18px;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 600;
}

.dse-adresse {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.dse-abschnitt {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 5px;
}

.dse-abschnitt h4 {
    color: #004085;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #004085;
    padding-bottom: 5px;
}

.dse-abschnitt p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

.dse-abschnitt ul {
    margin: 15px 0;
    padding-left: 25px;
}

.dse-abschnitt li {
    margin: 8px 0;
    line-height: 1.5;
}

.dse-einwilligung-box {
    background: #e7f3ff !important;
    border: 2px solid #004085 !important;
    margin-top: 30px;
}

.dse-einwilligung-box p {
    font-weight: 500;
}

/* Formular */
.dse-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dse-form-section {
    margin-bottom: 40px;
}

.dse-form-section h3 {
    color: #004085;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid #004085;
    padding-bottom: 10px;
}

.dse-form-group {
    margin-bottom: 20px;
}

.dse-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.dse-form-group input[type="text"],
.dse-form-group input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.dse-form-group input[type="text"]:focus,
.dse-form-group input[type="date"]:focus {
    outline: none;
    border-color: #004085;
}

.dse-form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Unterschriftenfeld */
.dse-signature-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-left: 4px solid #004085;
    border-radius: 3px;
}

.dse-signature-wrapper {
    position: relative;
    background: white;
    padding: 20px;
    border: 2px solid #004085;
    border-radius: 8px;
}

.dse-signature-canvas {
    display: block;
    width: 100%;
    height: 200px;
    border: 2px dashed #004085;
    border-radius: 5px;
    cursor: crosshair;
    background: #fafafa;
    touch-action: none;
}

.dse-btn-clear {
    margin-top: 15px;
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.dse-btn-clear:hover {
    background: #c82333;
}

/* Checkbox */
.dse-checkbox-group {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.dse-checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.dse-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Submit Button */
.dse-form-actions {
    text-align: center;
    margin-top: 30px;
}

.dse-btn-submit {
    background: #004085;
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dse-btn-submit:hover {
    background: #003066;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.dse-btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Nachrichten */
.dse-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dse-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.dse-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dse-formular-container {
        padding: 15px;
    }
    
    .dse-datenschutz-text {
        padding: 20px 15px;
    }
    
    .dse-form {
        padding: 20px 15px;
    }
    
    .dse-abschnitt {
        padding: 15px;
    }
    
    .dse-signature-canvas {
        height: 150px;
    }
    
    .dse-btn-submit {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .dse-datenschutz-text h2 {
        font-size: 20px;
    }
    
    .dse-datenschutz-text h3 {
        font-size: 16px;
    }
    
    .dse-form-section h3 {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .dse-btn-clear,
    .dse-btn-submit,
    .dse-form-actions {
        display: none;
    }
    
    .dse-formular-container {
        max-width: 100%;
    }
}
