:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #101827;
    --muted: #5b6472;
    --border: #d9dee8;
    --primary: #d97706;
    --primary-dark: #b45309;
    --green: #16a34a;
    --yellow: #ca8a04;
    --red: #dc2626;
    --green-bg: #ecfdf3;
    --yellow-bg: #fffbeb;
    --red-bg: #fef2f2;
    --shadow: 0 18px 50px rgba(16, 24, 39, 0.10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

.topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
}
.topbar-action {
    padding: 9px 13px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 750;
    font-size: 14px;
}

.wizard-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.wizard-hero {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 850;
}
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: 0; margin-bottom: 20px; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin-bottom: 14px; }
.hero-copy p:not(.eyebrow), .wizard-step p, .after-check p { color: var(--muted); font-size: 17px; }
.hero-note {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.wizard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.step-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}
.step-tab {
    border: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    padding: 16px 12px;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.step-tab:last-child { border-right: 0; }
.step-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
}
.step-tab.active { color: var(--primary); background: #fff7ed; }
.wizard-step { display: none; padding: clamp(22px, 4vw, 38px); }
.wizard-step.active { display: block; }
.wizard-step ul { margin: 18px 0 26px; padding-left: 22px; color: var(--muted); }
.wizard-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.btn {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 11px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { background: white; border-color: var(--border); color: var(--text); }
.btn:disabled { opacity: .55; cursor: wait; }

.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.traffic-card {
    min-height: 128px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.traffic-card strong { display: block; margin-bottom: 8px; }
.traffic-card span { color: var(--muted); font-size: 14px; }
.traffic-card.green { background: var(--green-bg); border-color: #bbf7d0; }
.traffic-card.yellow { background: var(--yellow-bg); border-color: #fde68a; }
.traffic-card.red { background: var(--red-bg); border-color: #fecaca; }
.fineprint { font-size: 14px !important; }

.upload-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 22px;
}
.upload-box input { position: absolute; opacity: 0; pointer-events: none; }
.upload-box label {
    min-height: 76px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 14px 16px;
    border: 1px dashed var(--primary);
    border-radius: 8px;
    background: #fff7ed;
    cursor: pointer;
}
.upload-box label span { color: var(--muted); font-size: 14px; }

.status-box {
    display: none;
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: #fafbfc;
    font-weight: 700;
}
.status-box.active { display: block; }
.status-box.error { border-color: #fecaca; background: var(--red-bg); color: #991b1b; }

.result-panel {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.result-head {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 18px;
    align-items: center;
}
.ampel {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
}
.ampel.gruen { background: var(--green); }
.ampel.gelb { background: var(--yellow); }
.ampel.rot { background: var(--red); }
.result-body { border-top: 1px solid var(--border); padding: 16px 18px; background: #fafbfc; }
.result-body dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.result-body dt { color: var(--muted); }
.result-body dd { margin: 0; font-weight: 750; }
.result-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }

.after-check {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 32px;
    align-items: start;
    padding: 0 0 64px;
}
.mini-table {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}
.mini-table div { display: grid; gap: 2px; padding: 16px; border-bottom: 1px solid var(--border); }
.mini-table div:last-child { border-bottom: 0; }
.mini-table span { color: var(--muted); font-size: 13px; }

.footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 4vw, 56px);
    background: #101827;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: white; }

@media (max-width: 900px) {
    .wizard-hero, .after-check { grid-template-columns: 1fr; }
    .wizard-hero { padding: 34px 0; }
}

@media (max-width: 620px) {
    .topbar { height: 58px; }
    .topbar-action { display: none; }
    .wizard-page { width: min(100% - 20px, 1180px); }
    .step-tab { font-size: 13px; padding: 12px 6px; }
    .traffic-grid, .upload-box { grid-template-columns: 1fr; }
    .upload-box .btn { width: 100%; }
    .result-body dl { grid-template-columns: 1fr; gap: 3px; }
    .footer { flex-direction: column; }
}
