/**
 * Frontend CSS für Termin-Abonnement
 * Datei: /assets/css/frontend.css
 */

/* Container */
.termin-abo-container {
    max-width: 500px;
    margin: 20px 0;
}

/* Button "Termine abonnieren" */
.termin-abo-subscribe-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.termin-abo-subscribe-btn:hover {
    background: #1a4480;
}

.termin-abo-subscribe-btn:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Formular */
.termin-abo-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.termin-abo-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c5aa0;
    font-size: 18px;
}

/* Formular-Felder */
.termin-abo-field {
    margin-bottom: 15px;
}
/*
.termin-abo-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}*/

form .termin-abo-field input[type=email],
form .termin-abo-field input[type=text] {
    /*width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;*/
    background-color: white;
    border-color: #bbb;
    box-sizing: border-box;
}

.termin-abo-field input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

.termin-abo-field input:invalid {
    border-color: #d32f2f;
}

/* Aktions-Buttons */
.termin-abo-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.termin-abo-submit-btn {
    border-radius: 4px;
    /*
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 10px 20px;

    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    
     */
}

.termin-abo-submit-btn:hover:not(:disabled) {
    background: #1a4480;
}

.termin-abo-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.termin-abo-cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.termin-abo-cancel-btn:hover {
    background: #5a6268;
}

/* Nachrichten */
.termin-abo-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.termin-abo-message.termin-abo-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.termin-abo-message.termin-abo-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 600px) {
.termin-abo-container {
        margin: 10px;
    }

.termin-abo-form {
        padding: 15px;
    }

.termin-abo-actions {
        flex-direction: column;
    }

.termin-abo-actions button {
        width: 100%;
    }

.termin-abo-subscribe-btn {
        width: 100%;
        font-size: 18px;
        padding: 15px;
    }
}

/* Barrierefreiheit */
.termin-abo-field input:focus,
.termin-abo-subscribe-btn:focus,
.termin-abo-submit-btn:focus,
.termin-abo-cancel-btn:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Animation für Formular ein-/ausblenden */
.termin-abo-form {
    animation: slideIn 0.3s ease-out;
}

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

/* Loading-Zustand */
.termin-abo-loading {
    position: relative;
}

.termin-abo-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top: 2px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print-Styles */
@media print {
.termin-abo-container {
        display: none;
    }
}