/* --- LUXURY NEXUS MASTER VARIABLES --- */
:root { --primary-color: #D9B46A; --secondary-color: #ffffff; --background-color: #f8f8f8; --text-color: #333333; --accent-color: #b88a44; --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; --dark-bg: #1e1e1e; --dark-text: #e0e0e0; --dark-card: #2c2c2c; --dark-border: #444; }

/* --- CORE ELEMENTS --- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-family); background-color: var(--background-color); color: var(--text-color); margin: 0; padding: 0; line-height: 1.6; -webkit-text-size-adjust: 100%; transition: background 0.3s ease, color 0.3s ease; }
.container { width: 100%; max-width: 800px; margin: auto; padding: 20px; background-color: var(--secondary-color); min-height: 100vh; }

/* --- HEADER & LOGO --- */
.header-bar { background-color: var(--primary-color); padding: 25px 15px; text-align: center; border-bottom: 2px solid var(--accent-color); }
.logo-link { display: inline-block; text-decoration: none; transition: transform 0.3s ease; }
.logo-link:hover { transform: scale(1.05); }
.logo { max-height: 80px; width: auto; display: block; margin: 0 auto 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
/* Bugfix 2026-07-20: Platzhaltertext war nie ausgeblendet, lief live neben dem echten Logo mit. */
.logo-placeholder { display: none; }
.header-bar h1 { margin: 0; font-size: 1.8em; color: var(--text-color); }

/* --- SPRACHBUTTONS --- */
.language-switcher { margin-top: 15px; display: flex; justify-content: center; gap: 8px; }
.language-switcher button { -webkit-appearance: none; appearance: none; width: 48px; height: 38px; border: 1px solid rgba(184, 138, 68, 0.4); background-color: rgba(255, 255, 255, 0.4); color: var(--accent-color); cursor: pointer; border-radius: 6px; font-weight: bold; font-family: inherit; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.language-switcher button:hover, .language-switcher button.active { background-color: var(--secondary-color); border-color: var(--primary-color); color: var(--text-color); }

/* --- STEPPER --- */
.stepper-wrapper { display: flex; width: 100%; margin: 30px 0 40px 0; position: relative; justify-content: space-between; }
.stepper-wrapper::before { content: ""; position: absolute; top: 16px; left: 10%; right: 10%; height: 2px; background-color: #ddd; z-index: 1; }
.stepper-item { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.step-counter { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; border-radius: 50%; background-color: #eee; color: #999; font-weight: bold; border: 2px solid #fff; transition: all 0.3s ease; }
.step-name { margin-top: 10px; font-size: 0.75rem; color: #999; text-transform: uppercase; text-align: center; }
.stepper-item.active .step-counter, .stepper-item.completed .step-counter { background-color: var(--primary-color); color: white; }
.stepper-item.active .step-name { color: var(--accent-color); font-weight: bold; }

/* --- SLIDER --- */
input[type="range"] { -webkit-appearance: none; width: 100%; height: 12px; background: linear-gradient(to right, var(--primary-color), var(--accent-color)); border-radius: 8px; outline: none; margin: 25px 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; background: var(--accent-color); border: 3px solid #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

/* --- FORMULAR ELEMENTE --- */
.form-section { background-color: var(--secondary-color); padding: 25px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.062); margin-bottom: 30px; }
label { font-weight: bold; display: block; margin-top: 15px; }
input, select { -webkit-appearance: none; appearance: none; width: 100%; padding: 12px; margin: 8px 0 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; background-color: #fff; }
button { -webkit-appearance: none; background-color: var(--primary-color); color: white; border: none; padding: 18px; font-size: 1.1rem; font-weight: bold; border-radius: 8px; width: 100%; cursor: pointer; transition: background 0.3s ease; }
button:hover { background-color: var(--accent-color); }

/* --- AUXILIARY ELEMENTS --- */
.wa-icon { width: 24px !important; height: 24px !important; flex-shrink: 0; fill: #25D366; display: inline-block; vertical-align: middle; }
.wa-floating-btn { display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border: 1px solid rgba(217, 180, 106, 0.4); padding: 18px 25px; border-radius: 50px; text-decoration: none; color: var(--text-color); font-weight: bold; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin: 30px auto; max-width: 350px; transition: 0.3s ease; }
.highlight { color: var(--accent-color); font-weight: bold; font-size: 1.4rem; }

/* --- LEGAL CONTENT STYLES --- */
.legal-content { background: #ffffff; border: 1px solid #e0e0e0; border-top: 4px solid var(--primary-color); border-radius: 6px; padding: 40px; margin-top: 20px; margin-bottom: 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); line-height: 1.7; }
.legal-content h1 { font-size: 1.8rem; color: #222; margin-bottom: 25px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; }
.legal-content h2 { font-size: 1.25rem; color: var(--accent-color); margin-top: 30px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.legal-content p, .legal-content li { font-size: 0.95rem; color: #444; margin-bottom: 15px; text-align: justify; }
.legal-content .section-number { font-weight: bold; color: var(--primary-color); margin-right: 5px; }
.action-bar { display: flex; gap: 15px; margin-bottom: 20px; }
.btn-print { background-color: #333; color: white; width: auto; padding: 12px 25px; display: inline-flex; align-items: center; gap: 10px; }
.btn-back { background-color: var(--accent-color); width: auto; padding: 12px 25px; text-decoration: none; display: inline-flex; color: white; border-radius: 8px; font-weight: bold; }

/* --- LANDINGPAGE SPEZIFISCHES LAYOUT --- */
.site-header { background-color: var(--secondary-color); border-bottom: 2px solid var(--primary-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.05); padding: 15px 20px; }
.header-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 15px; text-decoration: none; margin-bottom: 15px; }
.brand-logo img { height: 50px; width: auto; }
.brand-name { font-size: 1.8rem; font-weight: 800; color: var(--text-color); letter-spacing: 1.5px; text-transform: uppercase; }
.main-nav { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.main-nav a { text-decoration: none; color: #555; font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; padding: 5px 0; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.main-nav a:hover { color: var(--accent-color); border-bottom: 2px solid var(--primary-color); }
.hero { position: relative; background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.9)), url('../img/nexusFin_erfolg.jpeg') center/cover no-repeat; padding: 100px 20px; text-align: center; border-bottom: 1px solid #eee; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; color: #222; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: #555; margin-bottom: 40px; line-height: 1.6; }
.btn-hero { display: inline-block; background-color: var(--primary-color); color: white; text-decoration: none; padding: 18px 40px; font-size: 1.2rem; font-weight: bold; border-radius: 8px; box-shadow: 0 6px 15px rgba(217, 180, 106, 0.4); transition: transform 0.3s, background 0.3s; }
.btn-hero:hover { background-color: var(--accent-color); transform: translateY(-3px); }
.section-padding { padding: 80px 20px; }
.content-wrapper { max-width: 1200px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: -50px; position: relative; z-index: 10; }
.info-card { background: white; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 4px solid var(--primary-color); text-align: center; transition: transform 0.3s; }
.info-card:hover { transform: translateY(-5px); }
.info-card h3 { color: var(--accent-color); margin-bottom: 15px; font-size: 1.4rem; }
.info-card p { color: #666; margin-bottom: 25px; }
.info-card a { color: #222; font-weight: bold; text-decoration: none; border-bottom: 1px solid var(--primary-color); padding-bottom: 2px; }
.section-title { text-align: center; font-size: 2.2rem; color: #222; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary-color); margin: 15px auto 0; }
.text-content { max-width: 800px; margin: 0 auto; text-align: justify; color: #555; font-size: 1.1rem; line-height: 1.8; }

/* --- CALCULATOR LANDING ADDITIONS --- */
.mini-calc { background: #fdfaf2; border: 1px solid var(--primary-color); border-radius: 12px; padding: 40px; max-width: 600px; margin: 40px auto 0; box-shadow: 0 10px 25px rgba(217, 180, 106, 0.15); }
.calc-row { margin-bottom: 25px; }
.calc-row label { display: flex; justify-content: space-between; font-weight: bold; color: #333; margin-bottom: 10px; }
.calc-val { color: var(--accent-color); font-size: 1.2rem; }
.housing-toggle { display: flex; gap: 15px; margin-bottom: 30px; }
.housing-toggle input[type="radio"] { display: none; }
.housing-toggle label { flex: 1; text-align: center; padding: 14px; border: 2px solid #ddd; border-radius: 8px; cursor: pointer; font-weight: bold; color: #666; background: #fff; transition: all 0.3s; margin: 0 !important; display: block !important; }
.housing-toggle input[type="radio"]:checked + label { border-color: var(--primary-color); background-color: #ffffff; color: var(--accent-color); box-shadow: 0 4px 10px rgba(217, 180, 106, 0.15); }
.calc-result { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px dashed #ccc; }
.calc-result span { display: block; color: #666; font-size: 0.9rem; margin-bottom: 5px; }
.calc-result strong { font-size: 2.5rem; color: #222; }
.disclaimer { font-size: 0.8rem; color: #999; text-align: center; margin-top: 15px; }
.partner-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.partner-form input, .partner-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 1rem; }
.partner-form textarea { resize: vertical; min-height: 120px; }

/* --- FOOTER STYLES --- */
.site-footer { background: #1e1e1e; color: #ccc; padding: 60px 20px 30px; text-align: center; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 40px; text-align: left; }
.footer-grid h4 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.2rem; }
.footer-grid p, .footer-grid a { color: #bbb; text-decoration: none; line-height: 1.8; display: block; }
.footer-grid a:hover { color: white; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* --- SUMMARY MODULE --- */
.hero-image-container { text-align: center; margin-bottom: 35px; padding: 0 10px; }
.hero-image { max-width: 100%; height: auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid rgba(217, 180, 106, 0.2); }
.data-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.data-card { background: #ffffff; border: 1px solid #e0e0e0; border-top: 4px solid var(--primary-color); border-radius: 6px; padding: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.card-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-color); margin-bottom: 18px; border-bottom: 1px solid #eee; padding-bottom: 10px; font-weight: 800; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f9f9f9; font-size: 1rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #666; font-weight: 500; }
.info-value { color: #222; font-weight: 700; text-align: right; }
.rate-highlight-box { background: #fdfaf2; padding: 15px; border-radius: 6px; margin-top: 15px; border: 1px dashed var(--primary-color); text-align: center; }

/* --- REPAYMENT TABLES --- */
.repayment-table-container { overflow-x: auto; margin-top: 25px; border-radius: 8px; border: 1px solid #eee; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: #fdfaf2; padding: 15px 12px; text-align: left; border-bottom: 2px solid var(--primary-color); color: #333; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; }
td { padding: 14px 12px; border-bottom: 1px solid #f2f2f2; color: #444; }
tr:nth-child(even) { background: #fafafa; }
tr:last-child td { font-weight: bold; background: #fffde7; }
tfoot tr td { background: #fdfaf2 !important; border-top: 2px solid var(--primary-color); font-weight: 800 !important; color: #222; }

/* --- IBAN CONTAINER --- */
.iban-container { background: #fff; border: 2px solid var(--primary-color); border-radius: 10px; padding: 25px; margin-top: 20px; margin-bottom: 35px; }
.iban-input { width: 100%; padding: 18px; font-size: 1.3rem; border: 1px solid #ccc; border-radius: 8px; letter-spacing: 2px; text-transform: uppercase; font-family: 'Courier New', Courier, monospace; font-weight: bold; }
.iban-input.valid { border-color: #28a745; background-color: #f4fff4; }
.iban-input.invalid { border-color: #dc3545; background-color: #fff4f4; }

/* --- PDF EXPORT OVERRIDES --- */
#pdf-only-title { display: none; }
body.pdf-export-mode table th { padding: 6px 8px !important; font-size: 0.65rem !important; }
body.pdf-export-mode table td { padding: 5px 8px !important; font-size: 0.75rem !important; }
body.pdf-export-mode .data-container { gap: 10px !important; }
body.pdf-export-mode .data-card { padding: 15px !important; }
.scroll-hint { display: none; text-align: center; font-size: 0.7rem; color: #999; margin-top: 10px; text-transform: uppercase; }

/* --- FORM.HTML SPECIFICS --- */
.form-section label { display: block !important; margin-top: 15px !important; margin-bottom: 5px !important; font-weight: bold; text-align: left; }
.form-section input { display: block !important; width: 100% !important; padding: 12px !important; border: 1px solid #ddd; border-radius: 8px; font-size: 16px !important; box-sizing: border-box; -webkit-appearance: none; }
.toggle-btn, .turbo-btn { flex: 1; padding: 14px; border: 2px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; font-weight: bold; transition: all 0.3s; text-align: center; color: #666; display: flex; align-items: center; justify-content: center; }
.toggle-btn.active, .turbo-btn:hover { border: 2px solid var(--primary-color, #D9B46A) !important; color: var(--accent-color, #b88a44); background-color: #fff; box-shadow: 0 4px 10px rgba(217, 180, 106, 0.15); }
.file-input-wrapper { position: relative; margin-bottom: 15px; }
.file-input-wrapper input[type="file"] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.custom-file-btn { display: block; padding: 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px; text-align: center; color: #555; font-weight: 600; transition: all 0.3s; }
.dsgvo-container { margin: 30px 0; padding: 20px; background: #fdfaf2; border: 2px solid var(--primary-color, #D9B46A) !important; border-radius: 10px; }
.checkbox-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; cursor: pointer; }
input[type="checkbox"] { width: 28px !important; height: 28px !important; -webkit-appearance: checkbox !important; appearance: checkbox !important; cursor: pointer; flex-shrink: 0 !important; margin: 0 !important; }

/* --- OVERLAYS & LOADER --- */
#loader-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.98); z-index: 99999; flex-direction: column; justify-content: center; align-items: center; }
#loader-overlay.active { display: flex; }
.spinner { width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid var(--primary-color, #D9B46A); border-radius: 50%; animation: spin 1s linear infinite; }
#ocr-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 100000; }
#ocr-frame { width: 100%; height: 100%; border: none; }
.close-ocr { position: absolute; top: 20px; right: 20px; color: white; font-size: 35px; cursor: pointer; }

/* --- WHITELABEL KONSOLIDIERUNG INDEX.HTML --- */
.brand-text { color: #fff; font-weight: 800; font-size: 1.4rem; text-transform: uppercase; margin-left: 10px; }
.language-switcher button.active { background-color: var(--primary-color, #D9B46A) !important; color: white !important; border-color: var(--primary-color, #D9B46A) !important; }
.landing-hero-section { text-align: center; margin-top: 20px; padding: 40px 20px; }
.intro-paragraph { margin-bottom: 30px; }
#secret-trigger { cursor: pointer; font-weight: inherit; }
.btn-primary-large { font-size: 1.2rem !important; padding: 20px 40px !important; width: auto !important; max-width: 100%; }
#location-info { margin-top: 20px; font-size: 0.95rem; color: #888; opacity: 0; transition: opacity 1s ease-in; display: block; }
#user-city { color: var(--primary-color, #D9B46A); font-weight: 800; }

/* --- EXPANDED UTILITIES: SWITCHES & KREDITRECHNER.HTML --- */
.insurance-section-wrapper { margin-top: 30px; margin-bottom: 25px; }
.switch-container { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding: 15px 10px; background-color: #fdfaf2; border-radius: 8px; border: 1px solid rgba(217, 180, 106, 0.3); }
.switch-container-dashed { margin-top: 10px; border-style: dashed; }
.switch-label { font-size: 0.9rem; color: #333; font-weight: 600; flex: 1; padding-right: 10px; line-height: 1.4; }
.switch-action-wrapper { display: flex; align-items: center; }
.switch-status-label { font-weight: 800; font-size: 0.9rem; margin-right: 12px; min-width: 35px; text-align: right; transition: color 0.3s; }
.status-yes { color: var(--primary-color, #D9B46A); }
.status-no { color: #999; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 28px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--primary-color, #D9B46A); }
input:checked + .slider:before { transform: translateX(22px); }
.downsell-wrapper { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-out; }
.downsell-wrapper.visible { max-height: 150px; opacity: 1; }
.btn-submit-full { width: 100% !important; }

/* --- EXPANDED UTILITIES: FORM.HTML SURGICAL ENTSCHLACKUNG --- */
.loader-text { margin-top: 15px; font-weight: bold; }
.rescan-link-container { text-align: right; margin-bottom: 10px; display: none; }
.rescan-link { font-size: 0.85rem; color: var(--accent-color, #b88a44); text-decoration: underline; cursor: pointer; font-weight: bold; }
.rescan-link:hover { color: var(--primary-color, #D9B46A); }
.speed-up-widget-box { background: #fdfaf2; border: 1px dashed var(--primary-color); text-align: center; }
.turbo-desc-text { font-size: 0.9rem; margin-bottom: 10px; }
.flex-row-half { display: flex; gap: 12px; width: 100%; }
.flex-row-plz-ort { display: flex; gap: 10px; margin-top: 10px; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.upload-status-ready { display: none; color: #28a745; font-weight: bold; }
.st-ge-margin { margin-top: -10px; margin-bottom: 15px; }
.st-au-margin { margin-top: -10px; margin-bottom: 5px; }
.label-ausweis-spacing { margin-top: 5px !important; }
.checkbox-label { font-size: 0.95rem; color: #333; margin-top: 0 !important; cursor: pointer; display: flex; align-items: center; }
.legal-link-inline { color: var(--accent-color, #b88a44); text-decoration: underline; font-weight: bold; }
.btn-submit-large { height: 60px !important; }

/* --- REGRESSION HOTFIX: EMAIL CONFIRMATION CODE LAYOUT --- */
.email-verify-box { display: none; margin-top: 15px; background: #fdfaf2; padding: 15px; border: 1px dashed var(--primary-color, #D9B46A); border-radius: 8px; }
.email-verify-label { margin-top: 0; font-size: 0.9rem; color: var(--accent-color, #b88a44); }
.email-verify-row { display: flex !important; flex-direction: row !important; gap: 10px !important; margin-top: 5px !important; width: 100% !important; }
.email-verify-row input.email-code-input { display: block !important; width: 0 !important; flex: 2 !important; margin: 0 !important; }
.email-verify-row button.btn-verify-submit { flex: 1 !important; padding: 12px !important; margin: 0 !important; font-size: 1rem !important; border-radius: 8px; background-color: var(--primary-color, #D9B46A); color: white; border: none; font-weight: bold; cursor: pointer; transition: background 0.3s ease; }
.email-verify-row button.btn-verify-submit:hover { background-color: var(--accent-color, #b88a44); }

/* --- EXPANDED UTILITIES: FINANZEN.HTML ENTSCHLACKUNG --- */
.logo-navbar { height: 45px !important; }
.form-section-heading { background: #2c3e50 !important; color: white !important; padding: 12px 18px !important; border-radius: 8px; font-size: 1.1rem; margin-top: 30px !important; margin-bottom: 15px !important; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: block !important; box-sizing: border-box; }
.multiplier-btns { display: flex; gap: 8px; margin-top: 8px; }
.mult-btn { flex: 1; padding: 12px 0; border: 1px solid #ddd; border-radius: 10px; background: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 800; text-align: center; transition: all 0.2s; }
.mult-btn.active { background: var(--primary-color, #D9B46A) !important; color: white !important; border-color: var(--primary-color, #D9B46A) !important; }
.sub-section { background: #fdfaf2; padding: 20px; border-radius: 12px; border: 1px dashed var(--primary-color, #D9B46A); margin-top: 15px; display: none; }
.chf-input { position: relative; }
.chf-input::after { content: "CHF"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #aaa; font-weight: 700; z-index: 1; font-size: 0.85rem; pointer-events: none; }
.chf-input input { padding-right: 55px !important; font-weight: 700; color: #222; }
.budget-check-info { margin-top: 25px; padding: 20px; background: #f4f7f9; border-radius: 12px; border-left: 6px solid #2c3e50; display: none; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.budget-label { font-size: 0.95rem; font-weight: bold; color: #555; }
.budget-value { font-size: 1.2rem; font-weight: 800; color: var(--primary-color, #D9B46A); }
.btn-submit-premium { -webkit-appearance: none; background-color: var(--primary-color); color: white; border: none; padding: 20px; font-size: 1.4rem !important; font-weight: 800 !important; border-radius: 12px; width: 100%; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); margin-top: 30px; margin-bottom: 60px; }
.btn-submit-premium:active { transform: scale(0.97); }

/* --- EXPANDED UTILITIES: BERUF.HTML ENTSCHLACKUNG --- */
.kids-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.readonly-field { background-color: #f9f9f9 !important; color: #777 !important; cursor: not-allowed; }
.pac-container { z-index: 10000 !important; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-family: inherit; }

/* --- EXPANDED UTILITIES: ZUSAMMENFASSUNG.HTML ENTSCHLACKUNG --- */
.hidden-element { display: none; }
.bank-name-top { font-size: 0.95rem; font-weight: bold; color: var(--primary-color, #D9B46A); margin-bottom: 6px; min-height: 1.2em; text-align: center; }
.bank-name-display { margin-top: 6px; font-size: 0.85rem; color: #28a745; font-weight: bold; min-height: 1.1em; text-align: center; }
.rate-row-summary { display: flex !important; border: none !important; padding: 0 !important; justify-content: center !important; gap: 10px !important; }
.rate-label-summary { font-weight: bold !important; }
.rate-value-summary { font-size: 1.4rem !important; color: var(--primary-color, #D9B46A) !important; }
.success-receipt-container { background: #f0fdf4; border: 2px solid #2e7d32; padding: 20px; border-radius: 12px; text-align: center; margin-top: 20px; }
.success-receipt-title { color: #166534; margin-bottom: 5px; }
.success-receipt-text { font-size: 0.9rem; margin-bottom: 15px; }
.success-receipt-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-pdf-success, .btn-home-success, .btn-whatsapp-success { display: block; width: 100%; padding: 14px; border-radius: 8px; font-weight: bold; text-align: center; text-decoration: none; cursor: pointer; border: none; transition: 0.3s; }
.btn-pdf-success { background-color: var(--primary-color); color: white; }
.btn-whatsapp-success { background-color: #25D366; color: white; }
.btn-home-success { background-color: #333; color: white; }

/* --- UNCOUPLED SILOS: TOGGLE & TURBO (NEXUS 4.2) --- */
.toggle-group { display: flex !important; flex-direction: row !important; gap: 12px; margin-top: 5px; width: 100%; }
.turbo-group { display: flex !important; flex-direction: row !important; gap: 12px; margin-top: 5px; width: 100%; }

/* --- NEXUS HYBRID OCR COMPONENTS (PROCURATION v4.4.0) --- */
#scan-method-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; }
.modal-content { background: #ffffff; padding: 30px; border-radius: 12px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.modal-title { margin-bottom: 20px; font-weight: bold; color: var(--text-color); }
.modal-close-link { display: inline-block; margin-top: 20px; font-size: 0.85rem; color: #888; text-decoration: underline; cursor: pointer; }
.ocr-badge { display: none; background: #e8f5e9; border: 1px solid #2e7d32; color: #2e7d32; padding: 15px; border-radius: 8px; margin-top: 10px; font-weight: bold; text-align: center; }

/* --- SURGICAL HOTFIX: SIGNATURE CLEAR BUTTON (NEXUS 4.4) --- */
/* Selektor button.btn-clear-minimal (Spezifität 0,1,1) übersteuert globales button { } (0,0,1) */
/* Befreit den Löschen-Button unter dem Signatur-Canvas von den globalen Button-Defaults */
/* Affected ONLY: #clearBtn in zusammenfassung.html — alle anderen Buttons unangetastet */
.sig-action-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
button.btn-clear-minimal { width: auto; padding: 6px 14px; font-size: 0.85rem; font-weight: 500; background-color: transparent; color: #888; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; line-height: 1.4; }
button.btn-clear-minimal:hover { background-color: #f5f5f5; color: #333; border-color: #bbb; }
button.btn-clear-minimal:active { transform: scale(0.97); }

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) { .hero h1 { font-size: 2rem; } .grid-3 { margin-top: 30px; } .main-nav { gap: 15px; } .housing-toggle { flex-direction: column; gap: 10px; } }
@media (max-width: 600px) { .scroll-hint { display: block; } .btn-primary-large { width: 100% !important; padding: 18px 20px !important; } }
@media (max-width: 480px) { .container { padding: 12px !important; } .form-section { padding: 15px !important; margin-bottom: 20px !important; } .header-bar { padding: 15px 10px !important; } .logo { max-height: 55px !important; margin-bottom: 5px !important; } .header-bar h1 { font-size: 1.5em !important; } .stepper-wrapper { margin: 20px 0 25px 0 !important; } .toggle-group { gap: 8px !important; } .toggle-btn { padding: 12px 4px !important; font-size: 13px !important; white-space: normal !important; line-height: 1.2 !important; min-height: 45px !important; } .turbo-group { flex-direction: column !important; gap: 8px !important; } .turbo-btn { width: 100% !important; padding: 12px !important; font-size: 14px !important; } .btn-submit-full { margin-top: 25px !important; margin-bottom: 50px !important; padding: 18px !important; font-size: 1.1rem !important; width: 100% !important; } .switch-container { padding: 12px 8px !important; } .switch-label { font-size: 0.8rem !important; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ==========================================================================
   NEXUS 4.4.2: ISOLATED LUXURY FOOTER SILO (REGRESSION PROTECTED)
   ========================================================================== */
.nexus-f-container {
  margin-top: 60px;
  padding: 30px 20px;
  border-top: 1px solid #e3e3e5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #86868b;
  font-size: 0.75rem;
  line-height: 1.6;
}
.nexus-f-inner {
  max-width: 800px;
  margin: 0 auto;
}
.nexus-f-text {
  margin: 0 0 12px 0;
  color: #86868b;
}
.nexus-f-warning {
  margin: 0 0 20px 0;
  color: #86868b;
  font-size: 0.72rem;
}
.nexus-f-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #e3e3e5;
  padding-top: 15px;
}
.nexus-f-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nexus-f-divider {
  color: #e3e3e5;
}
.nexus-f-link {
  color: var(--primary-color, #D9B46A) !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}
.nexus-f-link:hover {
  color: var(--accent-color, #b88a44) !important;
  text-decoration: underline;
}
/* ===== PROGRESS BAR (nexusFin v4.5) ===== */
.progress-bar-wrap {
  margin: 8px 0 14px;
  padding: 0 4px;
}
.progress-bar-track {
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent-color, #b88a44);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.progress-bar-label {
  font-size: 0.72rem;
  color: var(--text-muted, #888);
  margin-top: 5px;
  text-align: right;
}

/* ===== TRUST-LEISTE SUBMIT (nexusFin v4.5) ===== */
.trust-submit-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 9px 12px;
}
.tsb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--text-muted, #888);
  padding: 3px 10px;
  white-space: nowrap;
}
.tsb-item i {
  color: var(--accent-color, #b88a44);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.tsb-divider {
  width: 1px;
  height: 16px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}
