/* public/css/registration-modern.css */

/* Allgemeine Schriftarten und Box-Modell */
body {
    font-family: 'Open Sans', Arial, sans-serif; /* Beispielhafte Schriftart */
    line-height: 1.6;
    color: #333;
}

.vereinsverwaltung-registration-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.vereinsverwaltung-registration-wrapper h2 {
    text-align: center;
    color: #4CAF50; /* Ein freundliches Grün */
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
}

.vereinsverwaltung-registration-wrapper p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

/* Formulargruppen */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

.form-group label .required {
    color: #e74c3c; /* Rot für Pflichtfelder */
    font-weight: bold;
}

/* Textfelder und Select-Boxen */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* Checkbox-Gruppen */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Stellt sicher, dass das Label oben beginnt */
    margin-top: 15px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px; /* Etwas Platz zur Label-Text-Oberkante */
    margin-right: 10px;
    min-width: 18px; /* Für eine bessere Klickfläche */
    min-height: 18px;
    accent-color: #4CAF50; /* Färbt die Checkbox selbst */
}

.checkbox-group label {
    margin-bottom: 0; /* Kein zusätzlicher Abstand unter dem Label */
    font-weight: normal;
    font-size: 0.9em;
}

.checkbox-group label a {
    color: #0073aa; /* WordPress-Standardlinkfarbe oder passend zum Design */
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* SEPA Felder */
#sepa_fields {
    border: 1px dashed #cccccc;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-top: 25px;
    margin-bottom: 25px;
}

#sepa_fields legend {
    font-size: 1.1em;
    font-weight: bold;
    color: #4CAF50;
    padding: 0 10px;
    margin-left: -10px; /* Leichte Anpassung für die Position des Legends */
}

/* Submit Button */
.submit-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #FFA726; /* Ein warmes Orange/Gelb wie auf der Beispielseite */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: #FB8C00; /* Etwas dunkleres Orange beim Hover */
    transform: translateY(-2px);
}

/* Nachrichtenbox (Erfolg/Fehler) */
.message-box {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

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

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

/* Responsivität */
@media (max-width: 768px) {
    .vereinsverwaltung-registration-wrapper {
        margin: 20px;
        padding: 20px;
    }
    .vereinsverwaltung-registration-wrapper h2 {
        font-size: 1.8em;
    }
    .submit-button {
        padding: 12px 15px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .vereinsverwaltung-registration-wrapper {
        margin: 15px;
        padding: 15px;
    }
    .vereinsverwaltung-registration-wrapper h2 {
        font-size: 1.5em;
    }
}

/*
 * Styles for the Beitrage selection buttons
 */

.beitrag-option-group {
    display: flex; /* Arranges buttons in a row */
    flex-wrap: wrap; /* Allows buttons to wrap to the next line on smaller screens */
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
}

.beitrag-button {
    /* Base button styling */
    flex: 1; /* Distribute space equally among buttons */
    min-width: 150px; /* Minimum width to prevent squishing */
    padding: 10px 15px;
    border: none; /* Light grey border, adjust if your theme has specific border colors */
    border-radius: 5px; /* Slightly rounded corners */
    background-color: #98d4b3;
    color: #000;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease; /* Smooth transitions for hover/focus */
    position: relative; /* For hiding the radio input */
    display: flex;
    flex-direction: column; /* Stack text and input vertically if needed */
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Hide the actual radio input */
.beitrag-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none; /* Make it not interactable */
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Style for the text inside the button */
.beitrag-button span {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: #000;
}


/* Hover and Focus states */
.beitrag-button:hover,
.beitrag-button:focus-within {
    border-color: #0073aa; /* Example hover border color (WordPress blue), adjust to theme's hover color */
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3); /* Subtle blue glow on hover/focus */
    background-color: #2E8B57; /* Slightly darker background on hover */
    transform: translateY(-2px);
}

/* Selected state */
.beitrag-button.selected {
    border-color: #0073aa; /* Active border color */
    background-color: #e6f2fa; /* Light blue background for selected, adjust to theme's primary color or highlight */
    color: #0073aa; /* Active text color */
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5); /* More prominent shadow for selected */
}

/* Specific styling for the "Anderer Betrag" option */
.beitrag-button.other-option {
    flex-grow: 2; /* Allow it to take more space if available */
    min-width: 200px;
    display: flex;
    flex-direction: row; /* Keep content in a row for this button */
    align-items: center;
    justify-content: space-between;
}

.beitrag-button.other-option span {
    margin-right: 10px;
    font-weight: normal; /* Less bold for "Anderer Betrag" text */
}

/* Style for the custom input field within the "other" button */
.beitrag-custom-input {
    width: 80px; /* Adjust width as needed */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    text-align: right;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    /* Initially hidden by JavaScript, but ensure it looks good when shown */
    display: none; /* Overridden by JS when 'other' is selected */
}

.beitrag-custom-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .beitrag-option-group {
        flex-direction: column; /* Stack buttons vertically on small screens */
    }
    .beitrag-button {
        flex: none; /* Remove flex grow */
        width: 100%; /* Full width */
    }
    .beitrag-button.other-option {
        flex-direction: column; /* Stack span and input vertically on small screens */
        align-items: flex-start;
    }
    .beitrag-custom-input {
        width: 100%;
        margin-top: 5px;
    }
}
