/* Anfrage-Dialog, Kontakt-Link und Formularmeldungen (aus den Inline-Styles des Prototyps übernommen) */
/* =========================================================
   POPUP OVERLAY STYLING FÜR SETUP-ANFRAGE MODAL (VERFEINERT)
========================================================== */
#requestModal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

#requestModal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#requestModal .modal-container {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    color: #1e293b;
    box-sizing: border-box;
    margin: auto;
}

#requestModal .modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#requestModal .modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* HEADER IM MODAL */
#requestModal .calculator-header h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    padding-right: 30px; /* Platz für den Schließen-Button */
}

#requestModal .calculator-header p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* VORSCHAU-BOX */
.request-summary-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 0 24px 0;
    font-size: 0.88rem;
    color: #334155;
    text-align: left;
}

.request-summary-preview strong {
    color: var(--cosymation-green, #44A972);
    display: block;
    font-size: 1.02rem;
    margin-bottom: 4px;
    font-weight: 600;
}

/* FORMULAR ELEMENTE */
.cosy-input {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.95rem;
    margin-top: 6px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    font-family: inherit;
}

.cosy-input:focus {
    outline: none;
    border-color: var(--cosymation-green, #44A972);
    box-shadow: 0 0 0 3px rgba(68, 169, 114, 0.15);
    background: #ffffff;
}

.cosy-textarea {
    resize: vertical;
    min-height: 95px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.request-form .input-group {
    margin-bottom: 16px;
    text-align: left;
}

.request-form label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 2px;
}

/* BUTTONS UNTEN */
.modal-action-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    align-items: center;
}

.btn-secondary {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.request-submit-btn {
    flex: 1;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--cosymation-green, #44A972);
    color: #ffffff;
    transition: background 0.2s ease;
    margin-top: 0 !important;
}

.request-submit-btn:hover {
    background: #3b9463;
}
/* Styling für den anklickbaren Link-Button */
.contact-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--cosymation-green, #44A972);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-link-btn:hover {
    color: #3b9463;
}

/* Ergänzungen Neubau */
.preview-params-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #64748b;
}
.preview-params-list strong { color: #0f172a; font-weight: 600; }
.preview-params-list[hidden] { display: none; }
.form-message {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.form-message[hidden] { display: none; }
.form-message.is-success { background: rgba(68, 169, 114, 0.08); border: 1px solid rgba(68, 169, 114, 0.3); color: #2f7d52; }
.form-message.is-error { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.25); color: #b91c1c; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: #475569; line-height: 1.5; margin: 4px 0 18px; }
.consent-row input { margin-top: 3px; flex: 0 0 auto; accent-color: #44A972; }
.consent-row a { color: #44A972; }
.media-frame { margin: 48px auto 0; max-width: 1200px; }
.media-frame img { display: block; width: 100%; height: auto; }
.arch-figure { margin: 24px 0 28px; width: 100%; max-width: 1000px; align-self: stretch; box-sizing: border-box; }
.arch-figure svg { display: block; width: 100%; height: auto; }
.media-frame { width: 100%; box-sizing: border-box; }
body.modal-open { overflow: hidden; }
.mobile-drawer-section { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); }
.drawer-lang { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.02); padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); color: #444; font-family: 'Comfortaa', sans-serif; font-size: 0.9rem; }
.drawer-lang > span { font-weight: 700; }
.drawer-links { display: flex; flex-direction: column; gap: 8px; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgba(0,0,0,0.02); border-radius: 12px; color: #1a1a1a; text-decoration: none; font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 0.95rem; border: 1px solid rgba(0,0,0,0.06); }
.drawer-link > span:first-child { display: flex; align-items: center; gap: 10px; }
.drawer-link .chev { color: rgba(0,0,0,0.3); font-size: 1.2rem; }
.drawer-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 16px; background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.2); border-radius: 12px; color: #ff6b6b; font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-top: 4px; }
.dropdown-divider { margin: 6px 0; border-top: 1px solid rgba(0,0,0,0.08); }
.logout-card-link .card-icon, .logout-card-link .link-title { color: #ff6b6b; }
.inline-form { margin: 0; }
.inline-form button.card-link { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
@media (min-width: 1025px) { .mobile-drawer-section { display: none; } }
.app-navigation .drawer-link { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; }
.app-navigation .drawer-link svg { width: 16px; height: 16px; flex: 0 0 auto; color: #44A972; }
.app-navigation .drawer-logout svg { width: 16px; height: 16px; }

/* Banner zur Statistik (P-188): beide Knöpfe gleich gewichtet */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.consent-banner[hidden] { display: none; }
.consent-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 760px;
    background: #FFFFFF;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(26, 32, 44, 0.16);
    padding: 20px 24px;
    display: grid;
    gap: 10px;
    font-family: var(--font-main, 'Comfortaa', sans-serif);
    color: var(--text-main, #2D3748);
}
.consent-title { margin: 0; font-weight: 700; font-size: 1rem; }
.consent-text { margin: 0; font-size: 0.82rem; line-height: 1.6; color: var(--text-muted, #718096); }
.consent-text a { color: var(--cosymation-green, #50C878); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 4px 0 0; }
.consent-btn {
    flex: 0 1 auto;
    min-width: 180px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--text-main, #2D3748);
    background: #FFFFFF;
    color: var(--text-main, #2D3748);
    font: 700 0.88rem/1.2 var(--font-main, 'Comfortaa', sans-serif);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.consent-btn:hover, .consent-btn:focus-visible { background: var(--text-main, #2D3748); color: #FFFFFF; outline: none; }
@media (max-width: 560px) {
    .consent-inner { padding: 18px; }
    .consent-btn { flex: 1 1 100%; min-width: 0; }
}
.public-footer-links a[data-consent-open], .footer-right a[data-consent-open] { white-space: nowrap; }
.consent-details { font-size: 0.78rem; line-height: 1.55; color: var(--text-muted, #718096); }
.consent-details summary { cursor: pointer; font-weight: 700; color: var(--text-main, #2D3748); width: max-content; }
.consent-details[open] { max-height: 38vh; overflow-y: auto; padding-right: 4px; }
.consent-details p, .consent-banner .consent-details p { margin: 6px 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--text-muted, #718096); }
