:root {
    --navy: #173c57;
    --navy-dark: #102f46;
    --navy-light: #285873;

    --gold: #c58a12;
    --gold-light: #e8bf62;

    --background: #f3f6f8;
    --surface: #ffffff;
    --border: #dce4e9;

    --text: #183247;
    --muted: #6d7f8d;

    --green: #18864b;
    --red: #c94444;
    --orange: #d38a17;

    --shadow: 0 3px 16px rgba(20, 48, 68, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
}

.app {
    display: flex;
    min-height: 100vh;
}

/* Navigation */

.sidebar {
    width: 235px;
    background: linear-gradient(180deg, var(--navy-dark), var(--navy));
    color: white;
    display: flex;
    flex-direction: column;
}

.brand {
    padding: 26px 22px 30px;
}

.brand-title {
    font-weight: 700;
    font-size: 18px;
}

.brand-subtitle {
    font-size: 12px;
    opacity: .7;
    margin-top: 5px;
}

.navigation {
    padding: 0 12px;
}

.navigation a {
    color: rgba(255,255,255,.86);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 7px;
    margin-bottom: 4px;
    font-size: 14px;
}

.navigation a:hover,
.navigation a.active {
    background: rgba(255,255,255,.12);
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 26px;
    font-size: 13px;
    opacity: .8;
}

/* Hauptbereich */

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
}

.user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy-light);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
}

.user-text strong {
    display: block;
    font-size: 13px;
}

.user-text span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.content {
    padding: 34px;
    max-width: 1500px;
}

/* Überschrift */

.hero {
    padding: 8px 0 28px;
}

.hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

/* Karten */

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.metric {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: #edf3f6;
    color: var(--navy);
}

.metric-icon.gold {
    background: #fff4dc;
    color: var(--gold);
}

.metric-value {
    font-size: 25px;
    font-weight: 700;
}

.metric-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
}

/* Panels */

.grid-two {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.panel-body {
    padding: 20px;
}

/* Tabellen */

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    text-align: left;
    padding: 11px 12px;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid #edf1f3;
}

.status {
    font-weight: 600;
}

.status.green {
    color: var(--green);
}

.status.gold {
    color: var(--gold);
}

/* Buttons */

.btn {
    border: 0;
    border-radius: 7px;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--navy);
    color: white;
}

.btn-primary:hover {
    background: var(--navy-dark);
}

.btn-gold {
    background: var(--gold);
    color: white;
}

.btn-light {
    background: #edf2f5;
    color: var(--text);
}

/* Fortschrittsanzeige */

.stepper {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.step {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e3e9ed;
    font-weight: 700;
}

.step.active {
    color: var(--text);
    font-weight: 600;
}

.step.active .step-number {
    background: var(--navy);
    color: white;
}

/* Upload */

.upload-layout {
    display: grid;
    grid-template-columns: minmax(500px, 2fr) minmax(260px, 1fr);
    gap: 22px;
}

.upload-box {
    min-height: 330px;
    border: 2px dashed #b7c8d3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fbfcfd;
    text-align: center;
}

.upload-icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.upload-box h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.upload-box p {
    color: var(--muted);
    margin: 4px;
}

.info-box {
    background: #edf4f7;
    border-radius: 10px;
    padding: 18px;
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 1050px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-two,
    .upload-layout {
        grid-template-columns: 1fr;
    }
}
