:root {
  --page: #eeeeee;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #606060;
  --line: #d2d2d2;
  --soft: #f7f7f4;
  --gold: #dece64;
  --gold-bright: #ffff00;
  --gold-wash: #f8f2d2;
  --success: #e9f6ec;
  --success-line: #2b7e40;
  --error: #fff0f0;
  --error-line: #a92323;
  --chart-weight: #333333;
  --chart-average: #8d7314;
  --chart-trend: #a92323;
  --header: #111111;
  --header-text: #ffffff;
  color-scheme: light;
}
[data-theme="dark"], [data-theme="night"] {
  --page: #121519;
  --surface: #1c2228;
  --ink: #edf1f4;
  --ink-soft: #d1dce4;
  --muted: #aebbc5;
  --line: #3b4650;
  --soft: #273039;
  --gold-wash: #514a2d;
  --success: #193526;
  --success-line: #73bf88;
  --error: #3b2427;
  --error-line: #ee8585;
  --chart-weight: #edf1f4;
  --chart-average: #dece64;
  --chart-trend: #ee8585;
  color-scheme: dark;
}
[data-theme="night"] {
  --page: #050505;
  --surface: #0d0c09;
  --ink: #f5f0d9;
  --ink-soft: #e9dfb5;
  --muted: #bdb69b;
  --line: #50472c;
  --soft: #1c1910;
  --gold: #e7d477;
  --gold-wash: #544922;
  --chart-weight: #75c9ff;
  --chart-average: #f2ca69;
  --chart-trend: #f39787;
  --header: #050505;
  --header-text: #fff9df;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
[data-theme="night"] body { background-image: radial-gradient(circle 480px at 88% 22%, rgba(231,212,119,.16), transparent 75%), radial-gradient(circle 440px at 5% 88%, rgba(231,212,119,.08), transparent 75%); background-attachment: fixed; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--success-line); outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1, h2 { line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 12px; font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
p { margin-bottom: 16px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
[hidden] { display: none !important; }
.layout-bar { background: var(--header); color: var(--header-text); border-bottom: 1px solid rgba(222,206,100,.2); }
.layout-controls { display: flex; align-items: center; gap: 8px; min-height: 42px; padding-block: 5px; }
.layout-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 3px 10px; border: 1px solid rgba(222,206,100,.55); border-radius: 8px; background: transparent; color: var(--gold); font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.layout-toggle:hover { background: #333333; }
.layout-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.layout-toggle svg { width: 12px; height: 12px; flex: none; }
.layout-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
html[data-menu-collapsed="true"] #site-menu,
html[data-hero-collapsed="true"] #start { display: none; }
.site-header { background: var(--header); color: var(--header-text); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--header-text); font-size: .95rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: var(--header); font-size: 1.1rem; }
.theme-picker { margin: 0; padding: 0; border: 0; }
.theme-picker legend { margin-bottom: 12px; color: var(--muted); font-size: .9rem; font-weight: 750; }
.theme-options { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid rgba(222,206,100,.55); border-radius: 16px; background: rgba(222,206,100,.08); box-shadow: 0 0 25px rgba(222,206,100,.20); }
.theme-option { position: relative; cursor: pointer; }
.theme-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-option span { display: block; min-width: 0; padding: 20px 12px; border-radius: 11px; color: var(--ink); font-size: 1.08rem; font-weight: 750; text-align: center; white-space: nowrap; }
.theme-option:hover span { background: var(--gold-wash); }
.theme-option input:checked + span { background: var(--gold); box-shadow: 0 0 19px rgba(222,206,100,.38); color: var(--header); }
.theme-option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 100px; color: var(--header-text); font-size: .9rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: #333333; color: var(--gold); }
.nav-links .nav-accent { margin-left: 8px; border: 1px solid var(--gold); color: var(--gold); }
.nav-links form { display: flex; margin: 0; }
.nav-button { padding: 9px 14px; border-radius: 100px; background: transparent; font-size: .9rem; font-weight: 650; cursor: pointer; }
.nav-button:hover { background: #333333; color: var(--gold-bright); }
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 78px) 0; background: var(--header); color: var(--header-text); }
.hero::before { content: ""; position: absolute; width: 620px; aspect-ratio: 1; right: -220px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(222,206,100,.19), transparent 68%); pointer-events: none; }
[data-theme="night"] .hero::before { background: radial-gradient(circle, rgba(231,212,119,.29), transparent 68%); }
.hero-inner { position: relative; z-index: 1; }
.hero p { max-width: 60ch; margin-bottom: 0; color: #d2d2d2; font-size: 1.08rem; }
main { padding: 14px 0 70px; }
.section { margin-top: 24px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 30px rgba(17,17,17,.045); scroll-margin-top: 24px; }
[data-theme="night"] .section { background: radial-gradient(circle 260px at 100% 0, rgba(231,212,119,.07), transparent 80%), var(--surface); box-shadow: 0 12px 36px rgba(0,0,0,.45); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head p { max-width: 48ch; margin: 0; color: var(--muted); }
.section-num { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 750; }
input[type="date"], input[type="time"], input[type="text"], input[type="number"], input[type="password"], input[type="file"], select { display: block; width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); }
input[type="date"]:hover, input[type="time"]:hover, input[type="text"]:hover, input[type="number"]:hover, input[type="password"]:hover, select:hover { border-color: var(--muted); }
input[type="date"]:focus, input[type="time"]:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus { border-color: var(--ink); outline: 3px solid var(--gold-wash); }
input::placeholder { color: var(--muted); }
input:disabled { background: var(--page); color: var(--muted); cursor: not-allowed; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin: 16px 18px 6px 0; cursor: pointer; }
.choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.field + .button-row { margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--gold); font-weight: 750; text-align: center; cursor: pointer; }
.button:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--gold-bright); }
[data-theme="dark"] .button:not(.secondary), [data-theme="night"] .button:not(.secondary) { background: var(--gold); border-color: var(--gold); color: var(--header); }
[data-theme="dark"] .button:not(.secondary):hover, [data-theme="night"] .button:not(.secondary):hover { background: #f0e183; border-color: #f0e183; color: var(--header); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.secondary:hover { background: var(--soft); border-color: var(--ink); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.message { margin: 0 0 18px; padding: 14px 17px; border: 1px solid var(--line); border-left: 4px solid var(--success-line); border-radius: 10px; background: var(--success); }
.message.error { border-left-color: var(--error-line); background: var(--error); }
.message ul { margin: 6px 0 0; }
.login-section { max-width: 620px; margin-inline: auto; }
.login-section .field + .field { margin-top: 18px; }
.password-control { position: relative; }
.password-control input { padding-right: 52px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { color: var(--ink); background: var(--soft); }
.password-toggle:focus-visible { outline: 3px solid var(--success-line); outline-offset: 0; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.entry-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.entry-fields:disabled { opacity: .45; }
.entry-weight-field, .entry-remarks-field { grid-column: 1 / -1; }
.entry-weight-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.entry-weight-control .button { white-space: nowrap; }
.demo-notice { background: var(--soft); border-left-color: var(--muted); }
.import-preview { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.import-preview table { min-width: 900px; }
.import-preview form + form { margin-top: 10px; }
.table-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 28px; }
.table-heading h2 { margin: 0; }
.table-toggle { margin: 0; padding: 0; border: 0; }
.table-toggle legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.table-toggle .theme-options { width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-color: var(--line); background: var(--soft); box-shadow: none; }
.table-toggle .theme-option span { min-width: 64px; padding: 11px 14px; color: var(--ink); font-size: 1rem; }
.table-toggle .theme-option:hover span { background: var(--gold-wash); }
.table-toggle .theme-option input:checked + span { color: var(--header); }
.pagination-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin: 18px 0 14px; }
.pagination-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.pagination-form .field { min-width: 110px; }
.pagination-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
#tageswerte { scroll-margin-top: 24px; }
.chart-wrap, .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.day-details { min-width: 280px; }
.day-details summary { width: fit-content; color: var(--ink); font-weight: 700; cursor: pointer; }
.day-details summary:hover { color: var(--gold-bright); }
.day-entries { margin-top: 12px; border-top: 1px solid var(--line); }
.day-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.day-entry:last-child { border-bottom: 0; }
.day-entry form { margin: 0; }
.day-entry .button { min-height: 36px; padding: 7px 11px; }
.remark-form { flex: 1 1 250px; min-width: 0; }
.remark-form label { display: block; margin-bottom: 6px; font-weight: 700; }
.remark-form textarea { display: block; width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.remark-form textarea:focus { border-color: var(--ink); outline: 3px solid var(--gold-wash); }
.remark-form .button { margin-top: 8px; }
.issue-form { max-width: 680px; }
.issue-form .field + .field, .issue-edit .field + .field { margin-top: 16px; }
.issue-form textarea, .issue-edit textarea { display: block; width: 100%; min-height: 110px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.issue-form textarea:focus, .issue-edit textarea:focus { border-color: var(--ink); outline: 3px solid var(--gold-wash); }
.issue-empty, .issue-table { margin-top: 30px; }
.issue-table table { min-width: 900px; }
.issue-id { max-width: 165px; overflow-wrap: anywhere; }
.issue-description { margin: 10px 0 0; white-space: normal; overflow-wrap: anywhere; }
.issue-actions { display: flex; flex-direction: column; align-items: start; gap: 8px; min-width: 180px; }
.issue-actions form { margin: 0; }
.issue-edit summary { width: fit-content; font-weight: 700; cursor: pointer; }
.issue-edit form { width: min(340px, 70vw); margin-top: 12px; }
.issue-edit .button { margin-top: 10px; }
.issue-copy-source:not([hidden]) { display: block; width: min(340px, 70vw); min-height: 150px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.issue-copy-status { margin: 0; }
.chart-wrap { position: relative; height: 370px; padding: 12px; margin-top: 12px; }
.chart-colors { margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; }
.chart-colors legend { padding: 0 5px; font-weight: 750; }
.chart-color-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.chart-color-fields label { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 650; }
.chart-color-fields input[type="color"] { width: 48px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.chart-colors p { margin: 10px 0 0; }
table { width: 100%; min-width: 480px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--soft); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--soft); }
footer { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .nav { min-height: 66px; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .nav-links { flex-basis: 100%; justify-content: flex-end; }
  .nav-links .nav-accent { margin-left: 0; }
  .fields { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
}
@media (max-width: 600px) { .entry-weight-control { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .wrap { width: min(100% - 28px, 1120px); } .hero { padding: 48px 0; } .section { margin-top: 14px; } .section-head { display: block; } .section-num { display: block; margin-top: 8px; } .button-row .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[data-theme="night"] input:disabled { background: #262626; }
