:root {
    --cdu-schwarz: #1A1A1A;
    --cdu-blau: #1F2A38;
    --cdu-blau-dunkel: #12181F;
    --cdu-blau-hell: #34455A;
    --cdu-rot: #E2001A;
    --cdu-akzent: #439DDD;
    --cdu-akzent-dunkel: #347AAC;
    --bg: #F4F5F6;
    --bg-utility: #EDEEEF;
    --card-bg: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #6B7280;
    --border: #E3E5E8;
    --gruen: #2E8B57;
    --gelb: #E8A020;
    --rot: #C0392B;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 1px 3px rgba(26,26,26,.07), 0 1px 2px rgba(26,26,26,.05);
    --btn-radius: 6px;
    --btn-font-size: 14px;
    --btn-font-weight: 700;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

a { color: var(--cdu-blau); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--cdu-blau); font-weight: 700; letter-spacing: -.01em; margin: 0 0 10px; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }

.utility {
    background: var(--bg-utility);
    border-bottom: 1px solid var(--border);
    padding: 7px 20px;
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

header.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    width: 42px;
    height: 42px;
    background: var(--cdu-blau);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -.5px;
}

.brand-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--cdu-blau);
    line-height: 1.2;
}

.brand-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

nav.main {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

nav.main a {
    color: #1A1A1A;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

nav.main a.active {
    color: var(--cdu-blau);
    border-bottom-color: var(--cdu-akzent);
}

nav.main a:hover {
    color: var(--cdu-blau);
    text-decoration: none;
}

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin-bottom: 22px;
}

.page-header {
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--cdu-akzent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    min-height: 40px;
    border-radius: var(--btn-radius);
    border: 1px solid transparent;
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary { background: var(--cdu-blau); color: #fff; }
.btn-primary:hover { background: var(--cdu-blau-hell); text-decoration: none; }

.btn-akzent { background: var(--cdu-akzent); color: #fff; }
.btn-akzent:hover { background: var(--cdu-akzent-dunkel); text-decoration: none; }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--cdu-blau); text-decoration: none; }

.btn-sm { padding: 6px 13px; font-size: 13px; min-height: 34px; }

/* Workflow / Stationen */
.workflow {
    display: flex;
    gap: 6px;
    margin: 16px 0 20px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.step {
    flex: 1;
    min-width: 88px;
    text-align: center;
    padding: 10px 4px;
    background: #EEF0F2;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 2px solid transparent;
}

.step .num { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.step.done { background: #E7F4EC; color: #1F6B42; border-color: #B8E0D2; }
.step.current {
    background: var(--cdu-akzent);
    color: #fff;
    font-weight: 600;
    border-color: var(--cdu-akzent);
    box-shadow: 0 0 0 3px rgba(67,157,221,.25);
}
.step.return { background: #FCEAEA; color: #A5231F; border-color: #F5C6C0; }

.next-action {
    background: #FEF3DD;
    border-left: 4px solid var(--gelb);
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0 16px;
    font-weight: 500;
}

/* Klassen & Ampel */
.klasse {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.klasse.A { background: #FCEAEA; color: #A5231F; }
.klasse.B { background: #EBEFF3; color: var(--cdu-blau); }
.klasse.C { background: #E7F4EC; color: #1F6B42; }

.eil { background: var(--gelb); color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 3px; margin-left: 6px; }

.ampel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ampel .dot { width: 12px; height: 12px; border-radius: 50%; }
.ampel.gruen .dot { background: var(--gruen); }
.ampel.gelb .dot { background: var(--gelb); }
.ampel.rot .dot { background: var(--rot); }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #F4F5F6; color: var(--cdu-blau); font-weight: 600; }

@media (max-width: 700px) {
    main { padding: 20px 16px; }
    .workflow { flex-wrap: wrap; }
}
