html {
    box-sizing: border-box;
    font-size: 16px;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fa;
    color: #444;
    margin: 0;
    min-height: 100vh;
}
header, footer {
    background: #337ecc;
    color: #fff;
    padding: 1.4em 1em 1.1em 1em;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 2px 10px #cdd6df;
    text-align: center;
}
main {
    max-width: 96vw;
    margin: 0 auto;
    padding: 1.5em 0 2em 0;
}
h1, h2, h3 {
    margin-top: 0;
    color: #337ecc;
    letter-spacing: .01em;
}
h1 { font-size: 1.35em; }
h2 { font-size: 1.1em; }
h3 { font-size: .98em; }
a, a:visited {
    color: #337ecc;
    text-decoration: none;
    transition: color .14s;
}
a:hover {
    color: #1760ad;
    text-decoration: underline;
}
nav {
    margin: 0.6em 0 0 0;
}
nav a {
    display: inline-block;
    margin-right: 0.9em;
    padding: 0.55em 1.1em;
    background: #fff;
    border-radius: 9px;
    font-weight: 500;
    font-size: 1.02em;
    color: #337ecc;
    box-shadow: 0 1px 7px #e6eaf0;
    transition: background .13s, color .13s;
    border: 1px solid #e5e8f1;
}
nav a:last-child { margin-right: 0; }
nav a:hover {
    background: #337ecc;
    color: #fff;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 11px 0 #e2e8f7;
    padding: 1.2em 1em 1em 1em;
    margin: 1em 0;
}
form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #e2eaf7;
    padding: 1em 1em 1em 1em;
    max-width: 450px;
    margin: 1em auto;
}
label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
    font-size: 1.04em;
}
input, button, select, textarea {
    font-size: 1.07em;
    width: 100%;
    margin-top: .33em;
    padding: 0.7em 0.8em;
    border-radius: 8px;
    border: 1px solid #c7d0db;
    margin-bottom: .8em;
    background: #f6fafd;
    box-sizing: border-box;
    transition: border .13s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #337ecc;
    background: #f0f7ff;
}
button, .btn {
    background: #337ecc;
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 1em 0;
    border-radius: 9px;
    margin-top: .7em;
    margin-bottom: 1.1em;
    width: 100%;
    font-size: 1.12em;
    cursor: pointer;
    box-shadow: 0 1px 7px #c7d0db;
    transition: background .15s, box-shadow .15s;
    display: block;
}
button:hover, .btn:hover {
    background: #1760ad;
    color: #fff;
    box-shadow: 0 2px 13px #b9d8ee;
}
.error {
    background: #ffeaea;
    color: #b50000;
    padding: .7em 1em;
    border-radius: 8px;
    font-size: 1.05em;
    margin: .8em 0;
}
.success {
    background: #e7ffe7;
    color: #238047;
    padding: .7em 1em;
    border-radius: 8px;
    font-size: 1.05em;
    margin: .8em 0;
}
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 7px #e7e9ee;
    overflow: hidden;
    margin-bottom: 1.6em;
}
th, td {
    padding: 0.9em 0.5em;
    border-bottom: 1px solid #f1f3f7;
    text-align: left;
    font-size: 1.02em;
}
th {
    background: #f7f8fa;
    font-weight: 700;
    color: #337ecc;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: #f1f6fb;
    transition: background 0.13s;
}
.status-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.3em 0 1.1em 0;
}
.status-label {
    font-size: 1.09em;
    font-weight: 600;
    color: #337ecc;
    margin-bottom: 0.25em;
    letter-spacing: 0.02em;
}
.status-badge {
    display: inline-block;
    font-size: 1.13em;
    font-weight: 700;
    padding: 0.35em 1.05em;
    border-radius: 2em;
    margin: 0 0 .7em 0;
    letter-spacing: 0.01em;
    background: #e9f5ff;
    box-shadow: 0 2px 6px #e5edf7;
    border: none;
}
.status-badge.bearbeitung {
    background: #fff8e1;
    color: #a68c00;
    border: 1.5px solid #ffeaa7;
}
.status-badge.abgeschlossen {
    background: #eaffea;
    color: #238047;
    border: 1.5px solid #b5dabb;
}
.status-btn {
    color: #fff !important;
    background: #337ecc !important;
    display: block !important;
    font-size: 1.1em !important;
    text-align: center !important;
    width: 90% !important;
    max-width: 300px !important;
    margin: 2em auto 1em auto !important;
    border-radius: 9px !important;
    padding: 1em 0 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 7px #c7d0db !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.status-btn:hover, .status-btn:active {
    background: #1760ad !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}


@media (max-width: 600px) {
    main { padding: .3em 0; }
    .card, form { padding: 1em .2em; }
    h1 { font-size: 1.03em; }
    h2 { font-size: 0.97em; }
    .status-badge { font-size: 0.97em; padding: .22em .7em; }
    th, td { padding: 0.4em 0.2em; font-size: .94em;}
}
.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.13em;
    gap: 0.7em;
    margin-top: 1.3em;
    margin-bottom: 2em;
}
.checkbox-label input[type="checkbox"] {
    width: 1.3em;
    height: 1.3em;
    accent-color: #337ecc;
}
.menu-doc-btn {
    background: #e4eafd;
    color: #337ecc;
    border-radius: 8px;
    padding: 0.45em 1.1em;
    font-size: 0.99em;
    font-weight: 500;
    margin-left: 1em;
    box-shadow: 0 1px 4px #e3e8ef;
    border: 1px solid #e0e6f6;
    transition: background 0.13s, color 0.13s;
    display: inline-block;
}
.menu-doc-btn:hover {
    background: #337ecc;
    color: #fff;
    text-decoration: none;
}
