/* ==========================================================================
   Royal House Berlin - Contact Module Stylesheet (Mobile Overrides Fix)
   ========================================================================== */

/* 1. HONEYPOT */
.rh-c-hp {
    display: none !important;
    visibility: hidden !important;
}

/* 2. MAINGROUP WRAPPER */
#content.rh-c-wrapper,
.rh-c-wrapper {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px;
    box-sizing: border-box;
    float: none !important;
}

/* 3. HEADER BEREICH */
.rh-c-header {
    padding: 40px;
    background: #141414 !important;
    border: 1px solid #D9AF62 !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Haupttitel "ROYAL CHANCERY..." (Durch alle CSS-Ebenen erzwungenes Gold) */
html body #mainContent #content .rh-c-header h2.rh-c-title,
html body .rh-c-header h2.rh-c-title,
html body h2.rh-c-title,
.rh-c-title {
    color: #D9AF62 !important;
    font-family: 'Cinzel', 'Georgia', serif !important;
    font-size: 2em !important;
    letter-spacing: 1px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    text-transform: uppercase;
    -webkit-text-fill-color: #D9AF62 !important; /* Verhindert iOS Text-Fill Bugs */
}

.rh-c-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #D9AF62, transparent) !important;
    margin: 20px 0 25px 0;
}

/* Beschreibungstext (Erzwungenes Gold/Helligkeit) */
html body #mainContent #content .rh-c-header p.rh-c-description,
html body .rh-c-header p.rh-c-description,
html body p.rh-c-description,
.rh-c-description {
    font-size: 1.05em !important;
    line-height: 1.8 !important;
    color: #C59B27 !important;
    text-align: center !important;
    max-width: 750px;
    margin: 0 auto !important;
    -webkit-text-fill-color: #C59B27 !important;
}

/* 4. FEEDBACK-BOXEN */
.rh-c-feedback {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.rh-c-feedback.success {
    background: rgba(217, 175, 98, 0.15);
    border: 1px solid #D9AF62;
    color: #D9AF62 !important;
}

.rh-c-feedback.error {
    background: rgba(217, 83, 79, 0.15);
    border: 1px solid #d9534f;
    color: #d9534f !important;
}

/* 5. FORMULAR-CARD */
.rh-c-card {
    background: #141414 !important;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto 40px auto;
    box-sizing: border-box;
}

.rh-c-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rh-c-row-double {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.rh-c-group {
    flex: 1;
    min-width: 250px;
}

html body #mainContent #content .rh-c-card label.rh-c-label,
html body .rh-c-card label.rh-c-label,
html body label.rh-c-label {
    display: block;
    color: #D9AF62 !important;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: #D9AF62 !important;
}

.rh-c-input,
.rh-c-select,
.rh-c-textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0a0a0a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    -webkit-text-fill-color: #ffffff !important;
}

.rh-c-select {
    cursor: pointer;
}

.rh-c-textarea {
    resize: vertical;
    line-height: 1.5;
}

.rh-c-input:focus,
.rh-c-select:focus,
.rh-c-textarea:focus {
    outline: none;
    border-color: #D9AF62 !important;
    box-shadow: 0 0 8px rgba(217, 175, 98, 0.2);
}

/* 6. BUTTON */
.rh-c-btn-container {
    text-align: center;
    margin-top: 15px;
}

.rh-c-btn {
    background: linear-gradient(135deg, #D9AF62 0%, #A67437 100%) !important;
    color: #000000 !important;
    border: none;
    padding: 14px 40px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 175, 98, 0.3);
    -webkit-text-fill-color: #000000 !important;
}

.rh-c-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 175, 98, 0.5);
}

/* 7. GALERIE TITELLINIE (In Desktop und Mobil auf weißem Grund = Schwarz) */
html body #mainContent h2.rh-c-symbols-title,
html body h2.rh-c-symbols-title,
.rh-c-symbols-title {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-align: center !important;
    font-family: inherit;
}

/* 8. MOBILE ANPASSUNGEN (Überschreibt jegliche globale Theme-Media-Queries) */
@media screen and (max-width: 1024px) {
    
    /* Header-Farben erzwingen */
    html body #mainContent #content .rh-c-header h2.rh-c-title,
    html body .rh-c-header h2.rh-c-title,
    html body h2.rh-c-title {
        color: #D9AF62 !important;
        -webkit-text-fill-color: #D9AF62 !important;
        font-size: 1.4em !important;
        line-height: 1.3 !important;
    }

    html body #mainContent #content .rh-c-header p.rh-c-description,
    html body .rh-c-header p.rh-c-description,
    html body p.rh-c-description {
        color: #C59B27 !important;
        -webkit-text-fill-color: #C59B27 !important;
        font-size: 0.95em !important;
        line-height: 1.6 !important;
    }

    /* Formular Labels erzwingen */
    html body #mainContent #content .rh-c-card label.rh-c-label,
    html body .rh-c-card label.rh-c-label {
        color: #D9AF62 !important;
        -webkit-text-fill-color: #D9AF62 !important;
    }

    /* Container Abstände für Mobilgeräte */
    .rh-c-wrapper {
        padding: 10px !important;
    }

    .rh-c-header {
        padding: 25px 15px !important;
    }

    .rh-c-card {
        padding: 20px 15px !important;
    }

    .rh-c-row-double {
        flex-direction: column;
        gap: 15px;
    }

    .rh-c-group {
        min-width: 100%;
    }

    .rh-c-btn {
        width: 100%;
        padding: 15px;
    }
}