:root {
    --bg-body: transparent;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --accent: #38bdf8;
    --accent-dark: #0284c7;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

.rnd-calculator {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    max-width: 1200px;
    margin: 0 auto;
}

.section-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-header h2 { font-size: 1.1rem; font-weight: 600; margin: 0; color: var(--text-primary); }
.section-header span { font-size: 0.85rem; color: var(--text-muted); }

.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }

.form-input, .form-select {
    padding: 10px 12px; border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); font-size: 0.95rem;
    background: white; color: var(--text-primary); min-height: 44px;
    box-sizing: border-box; width: 100%;
}

.form-input:focus, .form-select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-help { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }

.action-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.action-row.center { justify-content: center; }

.btn-primary {
    border: none; border-radius: 999px; padding: 12px 24px;
    font-weight: 600; font-size: 0.95rem;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: white; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(8, 47, 73, 0.4); }

.btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.65); border-radius: 999px;
    padding: 12px 24px; font-weight: 600; font-size: 0.95rem;
    background: white; color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(56, 189, 248, 0.1); }

.mod-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mod-item { background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 10px; }
.mod-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.mod-btn-group { display: flex; gap: 2px; padding: 4px; }
.mod-btn {
    border: none; background: transparent; border-radius: var(--radius-sm);
    padding: 6px 2px; cursor: pointer; font-size: 0.8rem; font-weight: 600;
    color: var(--text-secondary); flex: 1; min-width: 0; text-align: center; line-height: 1.2;
    transition: all 0.15s;
}
.mod-btn:hover { background: rgba(56, 189, 248, 0.1); color: var(--text-primary); }
.mod-btn.active { background: var(--accent); color: #0b1120; }
.mod-btn span { font-size: 0.6rem; }

.kist-card {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    background: white; border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); cursor: pointer;
}
.kist-text { font-size: 0.9rem; color: var(--text-primary); cursor: pointer; }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.result-block { background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 14px; }
.result-block-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.result-label { font-size: 0.8rem; color: var(--text-secondary); }
.result-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.result-main { color: var(--accent-dark); font-size: 1rem; }

.chart-wrap { height: 240px; margin-top: 16px; }
.chart-wrap-econ { height: 300px; margin-top: 16px; }
.section-subtitle { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 20px 0 10px; }

/* Lead Box */
.lead-box {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: var(--radius-md); padding: 24px; margin-top: 24px; color: white;
}
.lead-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.lead-text { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; }
.lead-actions { display: flex; gap: 10px; }

/* Lead Form Panel - KORREKT mit max-height Animation */
.lead-form-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 20px;
}
.lead-form-panel.open {
    max-height: 3000px;
    opacity: 1;
}

.lead-placeholder {
    background: #1e293b;
    border-radius: var(--radius-md);
    padding: 24px;
    color: #e2e8f0;
    min-height: 200px;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
    display: none;
}
.warning-title { font-weight: 600; color: #92400e; margin-bottom: 4px; }
.warning-text { font-size: 0.85rem; color: #78350f; }

.negative { color: #ef4444 !important; }

/* Responsive */
@media (max-width: 768px) {
    .grid-two { grid-template-columns: 1fr; }
    .mod-list { grid-template-columns: 1fr; }
    .result-grid { grid-template-columns: 1fr; }
    .action-row { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
}