/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    color: #333333;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.form-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 40px;
    position: relative;
}

h1 {
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
    font-weight: 600;
}

h2 {
    color: #333333;
    margin-bottom: 24px;
    font-size: 1.5em;
    font-weight: 500;
}

/* Language Switcher */
.language-switcher {
    margin-bottom: 20px;
    text-align: right;
}

.language-switcher a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.language-switcher a:hover {
    color: var(--brand-primary);
}
/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

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

/* Form Groups - Modernes Design */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

/* Helper Text */
.helper-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 18px;
}

/* Input Fields - Modernes Design */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    line-height: 24px;
    transition: all 0.2s;
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Speziell für Date Input - Kalender beim Klick ins Feld */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

/* Hover State */
input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: #d1d5db;
}

/* Focus State mit Markenfarbe */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-primary, #006EB7);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 0, 110, 183), 0.1);
}

/* Placeholder */
::placeholder {
    color: #9ca3af;
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}
/* Buttons - Neutral Design mit Markenfarben */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 24px;
}

.btn-primary {
    background: var(--brand-primary, #006EB7);
    color: var(--brand-text, #fff);
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message Box */
.message {
    display: none;
    padding: 16px;
    margin-top: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
}

.message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
/* Required Field Indicator */
.required {
    color: #dc2626;
    font-weight: 400;
}

/* Checkbox und Radio Styles */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: auto;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item label,
.radio-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

/* Personenanzahl Styles */
.person-count-group {
    background: #f9fafb;
    padding: 20px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid #e5e7eb;
}

.count-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.count-row:last-child {
    margin-bottom: 0;
}

.count-row > label {
    min-width: 100px;
    margin-bottom: 0;
    font-weight: 400;
}

.count-row input[type="number"],
.count-row select {
    width: 80px;
}

/* Kinder-Alter Styles */
#children_ages {
    margin-left: 116px; /* 100px label + 16px gap */
    margin-top: -8px;
    margin-bottom: 16px;
}

.age-select {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.age-select label {
    min-width: 60px;
    margin-bottom: 0;
    font-weight: 400;
}

.age-select select {
    flex: 1;
    max-width: 150px;
}
/* Info-Nachrichten */
.info-message {
    margin-top: 8px;
}

.info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
}

.info-box.warning {
    background: #fffbeb;
    border-color: #fbbf24;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.info-box.warning h4 {
    color: #92400e;
}

.info-box p {
    font-size: 14px;
    line-height: 20px;
    color: #4b5563;
    margin-bottom: 8px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-link {
    color: var(--brand-primary, #006EB7);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.info-link:hover {
    text-decoration: underline;
}

.small-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

/* Ausgewählter Kontaktgrund Badge mit Markenfarbe */
.selected-info {
    margin-bottom: 24px;
}

.reason-badge {
    background: var(--brand-primary, #006EB7);
    color: var(--brand-text, #fff);
    padding: 12px 20px;
    border-radius: 6px;
    display: inline-block;
    font-size: 14px;
}

.reason-badge strong {
    font-weight: 600;
    color: var(--brand-text, #fff);
}
/* E-Mail-Validierung Styles */
input[type="email"]:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

input[type="email"]:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981;
}

/* Number Input Spinner Buttons */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: 30px;
    opacity: 1;
}

/* Loading Spinner mit Markenfarbe */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--brand-text, #fff);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design - Mobile optimiert */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-wrapper {
        padding: 24px 16px;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    h1 {
        font-size: 1.875em;
        margin-bottom: 24px;
    }
    
    h2 {
        font-size: 1.25em;
        margin-bottom: 20px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .person-count-group {
        padding: 16px;
    }
    
    .count-row {
        flex-wrap: wrap;
    }
    
    .count-row > label {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .count-row input[type="number"],
    .count-row select {
        width: 100%;
    }
    
    #children_ages {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .age-select {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .age-select label {
        width: 100%;
    }
    
    .age-select select {
        width: 100%;
        max-width: none;
    }
}

/* Form Row für nebeneinander angeordnete Felder */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* Datenschutz-Hinweis */
.privacy-notice {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    margin-top: 24px;
    border: 1px solid #e5e7eb;
}

.privacy-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #4b5563;
}

.privacy-notice a {
    color: var(--brand-primary, #006EB7);
    text-decoration: none;
    font-weight: 500;
}

.privacy-notice a:hover {
    text-decoration: underline;
}



/* Newsletter Form Hidden State */
.form-fields-hidden {
    display: none !important;
}

.newsletter-notice {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.newsletter-notice h3 {
    margin-top: 0;
    color: #1e40af;
    font-size: 18px;
}

.newsletter-notice p {
    margin-bottom: 0;
    color: #1f2937;
}
/* Button-Group wenn nur Zurück-Button sichtbar */
.button-group:has(.btn-primary.form-fields-hidden) {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .button-group:has(.btn-primary.form-fields-hidden) .btn-secondary {
        width: 100%;
    }
}
/* Info Text ohne Link */
.info-text {
    color: #6b7280;
    font-style: italic;
}