:root {
    color-scheme: light;
    --background: #f4f7f8;
    --surface: #fff;
    --text: #173b45;
    --line: #cbdde1;
    --accent: #0c7280;
    --accent-dark: #123f49;
    --danger-background: #fff0f0;
    --danger-text: #8b2727;
}

@font-face {
    font-family: 'Jost';
    src: url('../../fonts/Jost-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../../fonts/Jost-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.45 'Jost', sans-serif; }
a { color: var(--accent); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 17px max(24px, calc((100% - 1600px) / 2)); background: var(--accent-dark); color: white; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand strong { font-size: 1.15rem; }
.brand span { color: #c9e0e4; font-size: .86rem; }
.user-menu { display: flex; align-items: center; gap: 14px; }
.user-menu form { margin: 0; }
.page-content { max-width: 1600px; margin: 36px auto; padding: 0 24px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.heading-actions, .detail-actions, .upload-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-heading h1 { margin-bottom: 4px; }
.page-heading p { margin: 0; color: #527078; }
.table-wrap { overflow-x: visible; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #dce8ea; }
th { background: #eaf3f5; }
.status { display: inline-block; padding: 3px 9px; border-radius: 99px; background: #edf1f2; }
.auth-page { min-height: 100vh; display: grid; place-items: center; }
.auth-card { width: min(100% - 48px, 380px); padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.product-subtitle { margin-top: -8px; color: #607c82; }
.auth-card label { display: block; margin-top: 16px; font-weight: 600; }
.auth-card input:not([type="hidden"]) { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #a9c6cc; border-radius: 5px; font: inherit; }
.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button-primary { width: 100%; margin-top: 22px; padding: 11px; border-radius: 5px; background: var(--accent); color: white; }
.button-small { width: auto; margin-top: 0; padding: 10px 16px; text-decoration: none; }
.button-secondary { padding: 10px 16px; border-radius: 5px; background: #edf3f4; color: var(--accent-dark); text-decoration: none; }
.button-danger { padding: 10px 16px; border-radius: 5px; background: var(--danger-background); color: var(--danger-text); }
.button-link { padding: 0; background: transparent; color: white; }
.header-link { color: white; text-decoration: none; }
.message { padding: 10px; }
.message-error { color: var(--danger-text); background: var(--danger-background); border: 1px solid #eccaca; }
.message-success { color: #23623d; background: #eaf7ee; border: 1px solid #b8dfc5; }
.message-info { color: #7a5316; background: #fff7e8; border: 1px solid #efd49a; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 14px; }
.filters select { min-width: 190px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; font: inherit; color: var(--text); }
.overview-table { min-width: 0; width: 100%; table-layout: fixed; }
.overview-table td, .overview-table th { overflow-wrap: anywhere; }
.format-list { display: grid; gap: 4px; }
.format-list span { white-space: normal; }
.overview-table th { white-space: nowrap; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #527078; }
.small-text, .muted { color: #6e858b; font-size: .9rem; }
.quick-status { display: grid; gap: 6px; }
.quick-check { width: 20px; height: 20px; padding: 0; border: 1px solid #7f9ba2; border-radius: 4px; background: white; color: transparent; vertical-align: middle; cursor: pointer; }
.quick-check.checked { background: var(--accent); border-color: var(--accent); color: white; }
.quick-status .inline-form { display: flex; align-items: center; gap: 6px; white-space: normal; }
.check-symbol { color: var(--accent); font-weight: 800; }
.warning-text { color: #9a6413; font-weight: 600; }
.form-page { max-width: 760px; }
.dialog-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(18,63,73,.08); }
.dialog-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-header h1 { margin: 0; font-size: 1.35rem; }
.back-link { font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: block; font-weight: 600; }
.form-field.wide { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #a9c6cc; border-radius: 5px; font: inherit; background: white; }
.form-field textarea { min-height: 100px; resize: vertical; }
.section-label { margin-top: 22px; margin-bottom: 9px; font-weight: 700; }
.field-hint { font-size: .86rem; font-weight: 400; color: #607c82; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.compact-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.compact-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.form-note { margin: 18px 0 0; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 26px; }
.dialog-actions .button-danger { margin-right: auto; }
.delete-form { display: none; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.panel { padding: 22px; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel h2 { margin-top: 0; font-size: 1.1rem; }
.table-panel { margin-top: 20px; }
.inline-form { display: inline; margin: 0; }
.detail-page { max-width: 1000px; }
.detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0; }
.detail-heading h1 { margin-bottom: 5px; }
.detail-heading p { margin: 0; color: #527078; }
.upload-form { margin-top: 18px; }
/* Entwürfe bleiben technisch verfügbar, sind bis zur fachlichen Entscheidung aber nicht im Hauptworkflow sichtbar. */
main.detail-page + .panel { display: none; }
.upload-form input[type="file"] { max-width: 100%; }
@media (max-width: 600px) { .page-heading, .dialog-header { align-items: flex-start; flex-direction: column; } .form-grid { grid-template-columns: 1fr; } .form-field.wide { grid-column: auto; } .dialog-card { padding: 20px; } .dialog-actions { flex-wrap: wrap; } }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } .detail-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 900px) { .overview-table { font-size: .86rem; } .overview-table th { font-size: .68rem; } .overview-table .button { padding: 7px 9px; font-size: .82rem; } .format-list span { white-space: normal; } }
@media (max-width: 700px) { .brand { align-items: flex-start; flex-direction: column; gap: 0; } .brand span { font-size: .75rem; } }
