/* ============================================
   ROOTBLAUI RUNDI – Anmeldeformular Styles
   ============================================ */

/* Reset und Basis */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    min-height: 100vh;
}

@media (min-width: 768px) {
    body {
        padding: 2rem;
    }
    .container {
        margin: 2rem auto;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        min-height: auto;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #d41920; /* FCB Rot */
}

h1 {
    color: #001f5b; /* FCB Blau */
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.event-date {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Hauptinhalt */
main {
    margin-bottom: 2rem;
}

h2 {
    color: #001f5b;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
}

/* Event-Beschreibung */
.event-description {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.event-description p {
    margin: 0 0 1rem 0;
}

.event-description p:last-child {
    margin-bottom: 0;
}

.event-details {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #001f5b;
}

.event-details p {
    margin: 0.25rem 0;
}

/* Anmelde-Hinweise */
.registration-info {
    background: #fff8e1;
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f9a825;
}

.registration-info h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.registration-info ul {
    margin: 0;
    padding-left: 1.25rem;
}

.registration-info li {
    margin-bottom: 0.5rem;
}

.registration-info li:last-child {
    margin-bottom: 0;
}

/* Plätze-Info */
.seats-info {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #001f5b;
    margin-bottom: 1.5rem;
}

/* Nachrichten */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.message p {
    margin: 0;
}

.message.error {
    background: #ffebee;
    border-left: 4px solid #d41920;
    color: #b71c1c;
}

.message.success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}

/* Grosse Erfolgsmeldung für Bestätigungsseite */
.message.success.large {
    padding: 2rem;
    text-align: center;
    border-left: none;
    border: 2px solid #2e7d32;
}

.message.success.large p:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.message.success.large p:last-child {
    font-size: 1rem;
    margin: 0;
}

/* Bestätigungsseite */
.confirmation {
    padding: 2rem 0;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: #001f5b;
    font-weight: 500;
}

/* Formular */
form {
    margin-top: 1rem;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin: 0 0 1.5rem 0;
}

legend {
    font-weight: 600;
    color: #001f5b;
    padding: 0 0.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
}

label:first-of-type {
    margin-top: 0;
}

/* Radio-Buttons */
.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    transition: background 0.2s;
}

.radio-option:hover {
    background: #e3f2fd;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

/* Eingabefelder */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #001f5b;
    box-shadow: 0 0 0 3px rgba(0, 31, 91, 0.1);
}

select {
    background: white;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Gruppengrösse-Container */
#group-size-container {
    background: #fff8e1;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

#group-size-container label {
    margin-top: 0;
}

/* Hinweis-Text */
.hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Datenschutz-Checkbox */
.privacy-checkbox {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.privacy-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.privacy-checkbox a {
    color: #001f5b;
}

/* Buttons */
.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: #d41920; /* FCB Rot */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #b71518;
}

.btn-submit:active {
    transform: translateY(1px);
}

/* Footer */
footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #001f5b;
}

/* Rechtliche Texte (Datenschutz) */
.legal-text {
    font-size: 0.95rem;
}

.legal-text h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
}

.legal-text ul {
    padding-left: 1.25rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: #001f5b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    fieldset {
        padding: 0.75rem;
    }
    
    .radio-option {
        padding: 0.5rem;
    }
    
    .message.success.large {
        padding: 1.5rem;
    }
    
    .message.success.large p:first-child {
        font-size: 1.25rem;
    }
}
