/* Brautmoden-beratung Form Styling - Herzlich Braut Design */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #ffffff;
    color: #54595F;
    line-height: 1.6;
    width: 100%; /* iframe responsive support */
}

/* Banner Section */
.banner {
    background-color: #f8f8f8;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cta-link {
    display: inline-block;
    color: #901C58; /* Brombeer-Pink accent */
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
}

.cta-link:hover {
    color: #BC78AA;
}

.contact-icons {
    display: inline-block;
    margin-left: 30px;
}

.icon {
    font-size: 1.5em;
    vertical-align: middle;
}

/* Navigation Menüs */
.primary-menu, .secondary-menu {
    background-color: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

primary-menu ul, secondary-menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

primary-menu li a, secondary-menu li a {
    color: #54595F;
    text-decoration: none;
    font-weight: normal;
}

static-text {
    color: #7A7A7A;
    font-style: italic;
}

dropdown {
    position: relative;
}

/* Main Content */
main {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

heading-level-1 {
    font-size: 2.5em;
    color: #54595F;
    margin-bottom: 20px;
    text-align: center;
}

heading-level-2 {
    font-size: 1.8em;
    color: #7A7A7A;
    margin-bottom: 15px;
}

emotional-branding, welcome-message {
    font-size: 1.1em;
    color: #7A7A7A;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================
   FORM SECTION - Fancy Redesign (Punkte 2-9)
   ============================================ */

/* Punkt 2: Container-Hintergrund mit Gradient & Schatten */
.brautmodenberatung-form {
    background: linear-gradient(135deg, #ffffff 0%, #DCC9D1 50%, #F6CEE3 100%);
    border: none;
    box-shadow: 0 8px 32px rgba(144, 28, 88, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 10px 20px 10px 20px;
}

/* Punkt 3: Input-Felder - Pillen-Design mit Fokus-Animation */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #DCC9D1;
    border-radius: 12px;
    font-size: 0.95em;
    background-color: #fffdf9;
    transition: all 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="date"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #901C58;
    box-shadow: 0 0 0 4px rgba(144, 28, 88, 0.1);
    background-color: #ffffff;
}

/* Punkt 4: Label-Styling mit Akzentfarbe */
.form-field label-text {
    display: block;
    font-weight: 600;
    color: #54595F;
    margin-bottom: 8px;
    font-size: 0.9em;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.form-field label-text.clickable:hover {
    color: #BC78AA;
}

/* Strich unter Labels */
.form-field label-text::after {
    content: '';
    display: block;
    width: 0px;
    height: 2px;
    background-color: #BC78AA;
    transition: width 0.3s ease;
}

.form-field:hover label-text.clickable::after,
.form-field:focus-within label-text::after {
    width: 60%;
}

/* Punkt 5: Pflichtfeld-Markierung - Rosé Deko-Linie */
.form-field.required {
    border-left: none;
    background-image: linear-gradient(to right, rgba(144, 28, 88, 0.04), transparent);
}

/* Punkt 8: Optional-Felder - Dezente Trennung */
.form-field.optional {
    border-left: none;
    background-color: rgba(188, 120, 170, 0.06);
    /* border-radius: 10px; */
    /* padding: 12px 16px 12px 0; /* links ohne Padding für gleichen Start wie andere Felder */ */
}

/* Punkt 6: Checkbox-Redesign */
.form-field input[type="checkbox"] {
    /* echte Checkbox optisch verstecken */
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* eigenes Kästchen mit Rosé-Rand */
.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #BC78AA;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    margin-right: 10px;
}

/* Häkchen anzeigen, wenn checked */
.form-field input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* exakte Zentrierung */
    font-size: 24px; /* etwas größer */
    color: #ffffff; /* weißes Häkchen auf Brombeer-Pink Hintergrund */
    font-weight: 900; /* besonders fett */
    margin-right: 10px;
}

/* Roter Rahmen für unchecked required checkboxes - wird per JS gesetzt */
/* CSS-Selektor entfernt: JS steuert roten Rahmen via .custom-checkbox.style.border */

.form-field input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

.form-field input[type="checkbox"]:checked {
    background-color: #901C58;
    border-color: #901C58;
    /* SVG checkmark as background image */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

/* Checkbox mark span - visible checkmark */
.checkbox-mark {
    display: inline-block;
    width: 22px;
    height: 22px;
    position: relative;
    margin-right: 10px;
}

.form-field input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

/* Punkt 7: Submit-Button mit Gradient & Hover-Effekt */
#submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #901C58 0%, #7A1B4D 50%, #5F143E 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(144, 28, 88, 0.3);
    transition: all 0.3s ease;
}

#submit-btn:hover {
    background: linear-gradient(135deg, #7A1B4D 0%, #5F143E 50%, #901C58 100%);
    box-shadow: 0 6px 24px rgba(144, 28, 88, 0.45);
    transform: translateY(-2px);
}

#submit-btn:active {
    transform: translateY(0);
}

/* Punkt 9: Textarea mit Zeilen-Zeichen */
.form-field textarea {
    min-height: 100px;
    resize: vertical;
    background-image: repeating-linear-gradient(transparent, transparent 27px, #DCC9D1 28px);
    line-height: 28px;
}

/* ============================================
   Legacy Styles (behalten für andere Seiten)
   ============================================ */

/* Legacy element-level selectors removed — they conflict with .form-field rules above.
   Other pages still get these styles via their own custom HTML tags. */

button-send {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #901C58; /* Brombeer-Pink button */
    color: #ffffff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

button-send:hover {
    background-color: #BC78AA;
}

/* reCAPTCHA Placeholder */
reCAPTCHA-presentational {
    display: block;
    width: 300px;
    height: 60px;
    margin-bottom: 15px;
    border: none;
}

/* Contact Info Footer */
contact-details-footer {
    background-color: #f8f8f8;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

contact-details-footer ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
}

static-text {
    color: #7A7A7A;
}

link {
    color: #901C58;
    text-decoration: none;
}

link:hover {
    color: #BC78AA;
}

/* Footer/Contentinfo */
contentinfo {
    background-color: #f8f8f8;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

contentinfo ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
}

footer-menu {
    margin-top: 20px;
}

footer-menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
}

dialog-datenschutz-preferenz {
    display: block;
    width: auto;
    padding: 10px;
    background-color: #e0e0e0;
    color: #333333;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

/* iframe Embedding Support */
iframe-responsive {
    /* JavaScript for responsive width adjustment */
}

/* Accessibility Features */
/* Clear labels, required field (*) markers, clickable labels */
/* Privacy Focus: Datenschutz consent prominently displayed */

/* Clean & Structured Design */
/* Minimal clutter, clear visual hierarchy */
/* Emotional Branding: Warm, friendly tone styling */

/* Responsive Support for iframe */
@media (max-width: 600px) {
    body {
        width: 100%;
        padding: 20px;
    }
    
    heading-level-1 {
        font-size: 2em;
    }
    
    heading-level-2 {
        font-size: 1.5em;
    }
    
    form-field {
        margin-bottom: 15px;
    }
}

/* iframe Height Support */
/* Minimum height: 600-800px for form visibility */
body {
    min-height: 800px; /* iframe compatibility */
}

/* Color Palette */
/* Brombeer-Pink (#901C58) for branding */
/* White background (#ffffff) for clean design */
/* Gray tones (#7A7A7A, #DCC9D1) for structure */
/* Dark text (#54595F) for readability */

/* Typography */
/* Arial/H Helvetica sans-serif for clean typography */
/* Line-height 1.6 for readability */
/* Font sizes: 2.5em (Level 1), 1.8em (Level 2), 1.1em (paragraphs), 1em (inputs) */

/* Design Principles */
/* Clean & Structured: Minimal clutter, clear visual hierarchy ✓ */
/* Emotional Branding: Warm, friendly tone styling ✓ */
/* Accessibility: Clear labels, required field (*) markers ✓ */
/* Privacy Focus: Datenschutz consent prominently displayed ✓ */

/* 2-Spalten Layout für Formularelemente */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-field {
    flex: 1;
    min-width: 0;
}

/* Responsive für mobile Geräte */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}
