/* ==============================
   Global Styles – Forderungsbewertung
   Corporate Light Theme (synergie-inkasso.de)
   ============================== */

html,
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f3f3f3;
    color: #333333;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Hero Section === */
.hero-section {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    background: linear-gradient(170deg, #eaf5fd 0%, #f7f9fc 55%, #f3f3f3 100%);
    animation: fadeInUp 0.5s ease;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a2e;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    color: #2EA3F2;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #555555;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

/* === Hero Feature Bar === */
.hero-features {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #E2E2E2;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444444;
    padding: 0.25rem 1rem;
}

.hero-feature .mud-icon-root {
    color: #2EA3F2;
    font-size: 1rem !important;
    width: 18px !important;
    height: 18px !important;
}

.hero-feature-divider {
    width: 1px;
    height: 20px;
    background: #E2E2E2;
}

/* === Hero Privacy Note === */
.hero-privacy {
    font-size: 0.8rem;
    color: #999999;
    margin: 0;
    line-height: 1.5;
}

.hero-privacy .mud-icon-root {
    color: #27ae60;
    font-size: 1rem !important;
    width: 16px !important;
    height: 16px !important;
}

/* === Wizard Container === */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

/* === KPI Grid === */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #E2E2E2;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-blue::before  { background: #2EA3F2; }
.kpi-green::before { background: #27ae60; }
.kpi-orange::before{ background: #f39c12; }
.kpi-red::before   { background: #e74c3c; }

.kpi-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #333333;
}

.kpi-sub {
    font-size: 0.78rem;
    color: #999999;
    margin-top: 0.25rem;
}

/* === Chart Grid === */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* === Risk Meter === */
.risk-meter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.risk-bar {
    flex: 1;
    height: 6px;
    background: #E8E8E8;
    border-radius: 999px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.risk-fill.low       { background: #27ae60; }
.risk-fill.medium    { background: #f39c12; }
.risk-fill.high      { background: #e74c3c; }
.risk-fill.very-high { background: #c0392b; }

.risk-pct {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 38px;
    text-align: right;
    color: #666666;
}


/* === Mapping Items === */
.mapping-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #FAFAFA;
    border: 1px solid #E2E2E2;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.mapping-item.mapped {
    border-color: #27ae60;
    background: #f0faf5;
}

/* === Question Cards === */
.question-card {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #E2E2E2;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* === Stepper label colour override === */
.mud-step-label-content {
    color: #666666 !important;
}

/* === Footer === */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem 1rem;
    color: #999999;
    font-size: 0.82rem;
    border-top: 1px solid #E2E2E2;
    background: rgba(243,243,243,0.95);
    backdrop-filter: blur(4px);
    z-index: 100;
}

/* === Datenschutz-Hinweis auf Hero-Page === */
.datenschutz-hinweis {
    max-width: 680px;
    margin: 1.25rem auto 0;
    background: #f0faf5;
    border: 1px solid #a8dfc0;
    border-radius: 6px;
    padding: 14px 20px;
    text-align: left;
    font-size: 0.84rem;
    color: #1a4d2e;
}

.datenschutz-hinweis-title {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: #155d27;
}

.datenschutz-hinweis-list {
    margin: 0 0 8px 0;
    padding: 0;
    list-style: none;
    line-height: 1.8;
}

.datenschutz-hinweis-list li::before {
    content: '✓';
    color: #27ae60;
    font-weight: 700;
    margin-right: 8px;
}

.datenschutz-hinweis-para {
    margin: 0;
    line-height: 1.6;
    color: #2d6a4f;
}

/* === Datenschutz-Link im Footer === */
.datenschutz-link {
    color: #2EA3F2;
    cursor: pointer;
    text-decoration: none;
}

.datenschutz-link:hover {
    text-decoration: underline;
}


/* === Datenschutz-Modal Inhalt === */
.datenschutz-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 20px 0 6px;
}

.datenschutz-content h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    margin: 14px 0 4px;
}

.datenschutz-content p {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.6;
}

.datenschutz-content ul {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 8px 1.4em;
    padding: 0;
    line-height: 1.7;
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.4s ease; }

/* === Responsive === */
@media (max-width: 768px) {
    .chart-grid   { grid-template-columns: 1fr; }
    .kpi-grid     { grid-template-columns: repeat(2, 1fr); }
    .mapping-item { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .hero-feature-divider { display: none; }
    .hero-features { gap: 0.5rem; padding: 0.75rem 1rem; }
    .hero-feature { padding: 0.2rem 0.5rem; font-size: 0.8rem; }
}
