/**
 * Visual refresh overrides — load AFTER bewerbung.css in indexnew.html.
 * Reversible: index.html stays unchanged.
 */
:root {
    --brand-primary: #0f766e;
    --brand-primary-light: #14b8a6;
    --brand-primary-dark: #115e59;
    --brand-accent: #d97706;
    --brand-accent-light: #f59e0b;
    --brand-surface: #f0fdfa;
    --brand-surface-alt: #ccfbf1;
    --brand-text: #134e4a;
    --brand-muted: #5eead4;
    --brand-radius: 12px;
    --brand-radius-lg: 16px;
    --brand-shadow: 0 4px 24px rgba(15, 118, 110, 0.12);
    --field-highlight-border: #14b8a6;
    --field-highlight-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    background-color: #fafafa;
}

.logo-icon {
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-light));
    border-radius: var(--brand-radius);
}

.logo-accent {
    color: var(--brand-primary);
}

.hero {
    background: linear-gradient(160deg, #f0fdfa 0%, #e0f2fe 45%, #fafafa 100%);
}

.hero-slogan {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: none;
}

.hero-title {
    color: #0f172a;
    letter-spacing: -0.02em;
}

.form-container,
.hero-form .form-container {
    border-radius: var(--brand-radius-lg);
    box-shadow: var(--brand-shadow);
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.form-step-indicator .step.active,
.form-step-indicator .step.completed {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.duration-option input:checked + label,
.duration-card.selected,
.rate-option.selected {
    border-color: var(--brand-primary);
    background: rgba(15, 118, 110, 0.06);
}

.duration-option input:checked + label .rate,
.rate-highlight {
    color: var(--brand-accent);
}

.btn-primary,
.submit-btn,
.login-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    border: none;
    border-radius: var(--brand-radius);
}

.btn-primary:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
}

.btn-secondary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.trust-badge i,
.feature-icon i,
.success-icon i {
    color: var(--brand-primary);
}

.section-title::after {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent-light));
}

.feature-card {
    border-radius: var(--brand-radius-lg);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    border-color: rgba(15, 118, 110, 0.25);
    box-shadow: var(--brand-shadow);
}

.rate-preview,
.calculator-result,
.interest-summary {
    background: var(--brand-surface);
    border-color: var(--brand-surface-alt);
}

.calculator-result .highlight,
.interest-amount {
    color: var(--brand-primary-dark);
}

.footer {
    background: #0f172a;
}

.footer .logo-accent {
    color: var(--brand-muted);
}

.scroll-to-top {
    background: var(--brand-primary);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary-light);
    box-shadow: inset 0 0 0 2px rgba(20, 184, 166, 0.35);
}

.popup-content .rate-preview {
    background: var(--brand-surface);
    border-color: var(--brand-surface-alt);
}

.popup-content .rate-preview-content {
    color: var(--brand-primary-dark);
}

.popup-subtitle {
    color: var(--brand-primary);
}

/* ── Form area: replace all blues with teal ── */

.form-card,
.hero-form .form-card {
    border-color: rgba(15, 118, 110, 0.12);
}

.duration-btn:hover {
    border-color: var(--brand-primary-light) !important;
    background: var(--brand-surface) !important;
}

.duration-btn:has(input[type="radio"]:checked) {
    border-color: var(--brand-primary-dark) !important;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)) !important;
    color: #fff !important;
}

.duration-btn:not(:has(input[type="radio"]:checked)) .duration-rate {
    color: var(--brand-primary) !important;
}

.btn-primary,
.hero-form .btn-primary,
.popup-content .btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)) !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3) !important;
}

.btn-primary:hover:not(:disabled),
.hero-form .btn-primary:hover:not(:disabled),
.popup-content .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary)) !important;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35) !important;
}

.btn-primary:focus,
.hero-form .btn-primary:focus,
.popup-content .btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35) !important;
}

#amountInput:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
}

.checkbox-label input[type="checkbox"],
.popup-content input[type="checkbox"] {
    accent-color: var(--brand-primary) !important;
}

.link-button,
.form-card .link-button,
.popup-content .link-button {
    color: var(--brand-primary) !important;
}

.link-button:hover,
.form-card .link-button:hover,
.popup-content .link-button:hover {
    color: var(--brand-primary-dark) !important;
}

.progress-fill {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)) !important;
}

.disclaimer {
    border-left-color: var(--brand-primary) !important;
    background-color: var(--brand-surface) !important;
}

#amount-warning {
    color: var(--brand-primary) !important;
}

.popup-content select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
}

.popup-content .checkbox-group input[type="checkbox"] {
    accent-color: var(--brand-primary) !important;
}

.popup-content .checkbox-group label a {
    color: var(--brand-primary) !important;
}

.popup-content .checkbox-group label a:hover {
    color: var(--brand-primary-dark) !important;
}

.hero-form *:focus,
.form-card *:focus,
.popup-content *:focus {
    outline-color: var(--brand-primary) !important;
}

.hero {
    background: linear-gradient(160deg, #ecfdf5 0%, #f0fdfa 50%, #fff 100%) !important;
}

.hero-slogan {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-light) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.form-card {
    border-radius: var(--brand-radius-lg);
    box-shadow: var(--brand-shadow);
}

.scroll-to-top {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)) !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3) !important;
}

.scroll-to-top:hover {
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35) !important;
}

.theme-disclaimer {
    border-left-color: var(--brand-primary) !important;
}

.theme-accent-text {
    color: var(--brand-primary) !important;
}

/* Range slider — color only (geometry unchanged from bewerbung.css) */
#amountSlider::-webkit-slider-thumb {
    background: var(--brand-primary) !important;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3) !important;
}

#amountSlider::-moz-range-thumb {
    background: var(--brand-primary) !important;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3) !important;
}

/* "In 3 einfachen Schritten" step icons */
.step-icon {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)) !important;
}

.step-card:hover {
    border-color: rgba(15, 118, 110, 0.2);
}

/* Footer — dark teal instead of blue accents */
.footer {
    background: linear-gradient(180deg, #134e4a 0%, #0c2f2c 100%) !important;
}

.footer .logo-icon {
    background: linear-gradient(145deg, var(--brand-primary-light), var(--brand-primary)) !important;
}

.footer .logo-accent {
    color: var(--brand-muted) !important;
}

.footer-email i,
.footer-email a {
    color: var(--brand-muted) !important;
}

.footer-email a:hover {
    color: #99f6e4 !important;
}

.footer-bottom {
    border-top-color: rgba(94, 234, 212, 0.2) !important;
}

.footer-section a:hover {
    color: var(--brand-muted) !important;
}

/* Global focus ring (step 2 auto-focus flash) */
*:focus {
    outline-color: var(--brand-primary) !important;
}

.btn:focus,
input:focus,
button:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--brand-primary) !important;
    outline-offset: 2px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none !important;
}

/* Popup step 2 — zins preview box */
.popup-content .rate-preview {
    background: var(--brand-surface) !important;
    border-color: var(--brand-surface-alt) !important;
}

.popup-content .rate-preview-content {
    color: var(--brand-primary-dark) !important;
}

.popup-content input[type="text"]:focus,
.popup-content input[type="email"]:focus,
.popup-content input[type="tel"]:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
}

.popup-content .privacy-link {
    color: var(--brand-primary) !important;
}

.popup-content .privacy-link:hover {
    color: var(--brand-primary-dark) !important;
}

/* Popup success (Vielen Dank) */
.popup-success-box {
    text-align: center;
    padding: 2rem;
    background: var(--brand-surface);
    border-radius: var(--brand-radius-lg);
    border: 2px solid var(--brand-primary-light);
}

.popup-success-icon {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.popup-success-title {
    color: var(--brand-primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.popup-success-text {
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.popup-success-text-last {
    margin-bottom: 1.5rem;
}

.popup-success-btn {
    width: auto;
    min-width: 140px;
    margin-bottom: 0 !important;
}
