:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --line: #e3e7ed;
  --gold: #34507f;          /* Akzent: Stahlblau passend zum Graphitblau des Eingangs */
  --gold-soft: #e8edf5;
  --side: #111827;
  --side-ink: #9ca3af;
  --ok: #2f7d55;     --ok-soft: #e3f2ea;
  --warn: #9a6a12;   --warn-soft: #fbf0d9;
  --bad: #b23b3b;    --bad-soft: #f8e4e2;
  --info: #3b5ea8;   --info-soft: #e5ecf8;
  --t-vacation: #3f8f6b; --t-sick: #c25450; --t-child_sick: #d98a5f; --t-special: #6b62b5;
  --t-overtime: #3b7ea8; --t-training: #8a7a52; --t-unpaid: #7d7f88; --t-absent: #9a9ca5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 2px 8px rgba(17, 24, 39, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111d; --surface: #111827; --surface-2: #172031; --ink: #f3f4f6; --ink-2: #b6bdc9; --ink-3: #6b7280;
    --line: #1f2937; --gold: #8fa9d8; --gold-soft: #1a2640; --side: #070b14; --side-ink: #9ca3af;
    --ok: #5cc28d; --ok-soft: #1a2e23; --warn: #e0b25a; --warn-soft: #2f2615; --bad: #ef7f7a; --bad-soft: #351c1c;
    --info: #86a6ea; --info-soft: #1b2438; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0b111d; --surface: #111827; --surface-2: #172031; --ink: #f3f4f6; --ink-2: #b6bdc9; --ink-3: #6b7280;
    --line: #1f2937; --gold: #8fa9d8; --gold-soft: #1a2640; --side: #070b14; --side-ink: #9ca3af;
    --ok: #5cc28d; --ok-soft: #1a2e23; --warn: #e0b25a; --warn-soft: #2f2615; --bad: #ef7f7a; --bad-soft: #351c1c;
    --info: #86a6ea; --info-soft: #1b2438; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 16px; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: #fff; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--gold); color: #17181c; display: grid; place-items: center; font-weight: 800; font-size: 10.5px; letter-spacing: -.03em; }
.brand b { display: block; font-size: 14px; } .brand span { font-size: 12px; color: var(--side-ink); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: #374151; color: #fff; }
.nav a.on .ico { color: #fff; }
.nav .sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 6px; }
.nav .cnt { margin-left: auto; background: #4b5563; color: #fff; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 7px; }
.ico { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot form { display: inline; }
.linkbtn { background: none; border: 0; color: var(--side-ink); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.main { padding: 28px 32px 60px; max-width: 1280px; width: 100%; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head .sub { color: var(--ink-2); margin-top: 4px; }
.mobilebar { display: none; }

/* ---------- Komponenten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card, .grid + .card, .card + .grid, .grid + .grid { margin-top: 16px; }
.grid > .card { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.kpi { padding: 16px 18px; }
.kpi .v { font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .l { color: var(--ink-2); font-size: 13px; }
.kpi .s { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.kpi.accent { border-color: transparent; background: #1f2937; color: #fff; }
.kpi.accent .l, .kpi.accent .s { color: rgba(255, 255, 255, .6); }
.kpi.accent .v.pos { color: #6ee7a8; } .kpi.accent .v.neg { color: #fca5a5; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.gold { background: #1f2937; color: #fff; border-color: #1f2937; }
.btn.gold:hover { background: #374151; border-color: #374151; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.gold { background: #374151; border-color: #4b5563; } :root:not([data-theme="light"]) .btn.gold:hover { background: #4b5563; } }
:root[data-theme="dark"] .btn.gold { background: #374151; border-color: #4b5563; } :root[data-theme="dark"] .btn.gold:hover { background: #4b5563; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
tbody tr:hover { background: var(--surface-2); }
.rowlink { text-decoration: none; font-weight: 550; }
.rowlink:hover { text-decoration: underline; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.b-pending { background: var(--warn-soft); color: var(--warn); }
.b-approved { background: var(--ok-soft); color: var(--ok); }
.b-rejected { background: var(--bad-soft); color: var(--bad); }
.b-cancelled { background: var(--surface-2); color: var(--ink-3); text-decoration: line-through; }
.b-role { background: var(--gold-soft); color: var(--gold); }
.b-off { background: var(--surface-2); color: var(--ink-3); }
.dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }

.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.note { background: var(--info-soft); color: var(--info); padding: 11px 14px; border-radius: 8px; font-size: 13.5px; }

.testbar { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 16px; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { min-height: 70px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
.typepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.typepick label { min-width: 0; hyphens: auto; overflow-wrap: anywhere; margin: 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 550; cursor: pointer; }
.typepick input { accent-color: var(--gold); }
.typepick label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.calc { font-size: 14px; color: var(--ink-2); margin: -4px 0 14px; min-height: 20px; }
.calc b { color: var(--ink); }
.inline-form { display: inline; }
fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- Login ---------- */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 20px; }
body:has(.auth) { background: #111827; overflow: hidden; }
.particles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.particles .pt { position: absolute; animation: pwFloat 8s ease-in-out infinite; }
.particles svg { display: block; }
@keyframes pwFloat { 0% { transform: translateY(0) rotate(0deg); } 33% { transform: translateY(-20px) rotate(15deg); } 66% { transform: translateY(10px) rotate(-10deg); } 100% { transform: translateY(0) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .particles .pt { animation: none; } }
.auth .card { width: 100%; max-width: 380px; padding: 40px 36px 30px; background: #1f2937; border: 0; border-radius: 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .6); color: #fff; }
.auth .brand { justify-content: center; align-items: center !important; text-align: center; padding: 0 0 24px; text-decoration: none; }
.auth .logo-brand img { width: 190px; }
.auth .logo-brand span { color: #6b7280 !important; letter-spacing: 1.5px; }
.auth h1 { color: #fff; font-size: 20px; text-align: center; }
.auth .muted, .auth p { color: #9ca3af !important; }
.auth label { color: #9ca3af; }
.auth input[type=email], .auth input[type=password], .auth input[type=text] { background: #111827; border: 1.5px solid #374151; color: #fff; border-radius: 7px; }
.auth input:focus { outline: none; border-color: #6b7280; }
.auth .btn.primary { background: #374151; border-color: #374151; color: #fff; border-radius: 7px; }
.auth .btn.primary:hover { background: #4b5563; }
.auth a { color: #d1d5db; }
.auth .flash.error { background: rgba(248, 113, 113, .12); color: #f87171; }

/* ---------- Urlaubskonto ---------- */
.meter { height: 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: flex; margin: 10px 0 8px; }
.meter i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }

/* ---------- Kalender ---------- */
.cal { overflow-x: auto; }
.cal table { border-collapse: separate; border-spacing: 0; min-width: 900px; }
.cal th, .cal td { padding: 0; border-bottom: 1px solid var(--line); text-align: center; }
.cal th.name, .cal td.name { text-align: left; padding: 6px 12px 6px 0; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; white-space: nowrap; font-size: 13.5px; }
.cal th.d { font-size: 11px; color: var(--ink-3); font-weight: 600; padding: 6px 0; text-transform: none; letter-spacing: 0; min-width: 27px; }
.cal th.d b { display: block; font-size: 13px; color: var(--ink); }
.cal th.d.we b, .cal th.d.hol b { color: var(--ink-3); }
.cal th.d.holsome b { color: var(--warn); }
.cal th.d.today { background: var(--gold-soft); border-radius: 6px 6px 0 0; }
.cal td.c { height: 34px; padding: 2px 1px; }
.cal td.off { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, transparent 4px 8px); }
.cal .chip { display: grid; place-items: center; height: 26px; border-radius: 5px; font-size: 10.5px; font-weight: 700; color: #fff; }
.cal .chip.pending { background: color-mix(in srgb, var(--c) 12%, transparent) !important; border: 2px dashed var(--c); }
.cal .chip.half { background-image: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.35) 50%); }
.t-vacation { --c: var(--t-vacation); } .t-sick { --c: var(--t-sick); } .t-child_sick { --c: var(--t-child_sick); }
.t-special { --c: var(--t-special); } .t-overtime { --c: var(--t-overtime); } .t-training { --c: var(--t-training); }
.t-unpaid { --c: var(--t-unpaid); } .t-absent { --c: var(--t-absent); }
.t-vacation, .t-sick, .t-child_sick, .t-special, .t-overtime, .t-training, .t-unpaid, .t-absent { background-color: var(--c); }
.cal .chip.pending { color: var(--c); }

/* ---------- Charts ---------- */
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 190px; padding-top: 10px; }
.bars > div { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.bars .col { display: flex; flex-direction: column; justify-content: flex-end; flex: 1; gap: 2px; min-height: 0; }
.bars .seg { border-radius: 3px 3px 0 0; flex: none; }
.bars .seg + .seg { border-radius: 0; }
.bars .lab { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.bars .val { font-size: 11px; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar-h { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; min-width: 60px; }
.bar-h i { display: block; height: 100%; background: var(--t-sick); border-radius: 4px; }

.empty { color: var(--ink-3); text-align: center; padding: 26px 10px; font-size: 14px; }
.pw-box { font: 600 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 8px; padding: 12px 14px; letter-spacing: .04em; user-select: all; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; font-weight: 550; font-size: 14px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--gold); }
details > summary { cursor: pointer; font-weight: 600; }

@media (max-width: 1050px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 0; display: none; }
  .side.open { display: flex; padding: 14px; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; background: var(--side); color: #fff; padding: 12px 16px; }
  .mobilebar .brand { padding: 0; }
  .mobilebar button { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; }
  .main { padding: 20px 16px 50px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .tablewrap { margin: 0 -16px; padding: 0 16px; }
  h1 { font-size: 21px; }
}
@media print { .side, .mobilebar, .btns, form { display: none !important; } .app { display: block; } .card { box-shadow: none; } }

/* ---------- Arbeitszeit ---------- */
.neg { color: var(--bad); } .pos { color: var(--ok); }
.nowrap { white-space: nowrap; }
.clock { margin-bottom: 16px; }
.clock-status { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; flex: none; }
.pulse.off { background: var(--ink-3); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.stamp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.btn.stamp { flex-direction: column; justify-content: center; gap: 2px; padding: 14px 10px; font-size: 15px; white-space: normal; text-align: center; }
.btn.stamp .em { font-size: 22px; line-height: 1; }
.btn.stamp small { font-size: 13px; font-weight: 500; opacity: .85; }
.btn.big { padding: 11px 20px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.clock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.clock-stats > div { display: flex; flex-direction: column; }
.clock-stats .l { font-size: 12.5px; color: var(--ink-2); }
.clock-stats b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.clock-stats .s { font-size: 12px; color: var(--ink-3); }
.modes { display: flex; gap: 14px; font-size: 15px; margin-top: 6px; } .modes b { font-size: 22px; font-variant-numeric: tabular-nums; }
.timetable td { vertical-align: top; }
.timetable tr.off td { background: var(--surface-2); }
.timetable tr.is-today td { background: var(--gold-soft); }
.tline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.tline + .tline { margin-top: 4px; }
.tt { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 92px; }
.mode { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.m-office { color: var(--gold); } .m-home { color: var(--t-vacation); } .m-mobile { color: var(--t-overtime); }
input[type=time] { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; width: 100%; }
@media (max-width: 560px) { .stamp-grid { grid-template-columns: 1fr; } .btn.stamp { flex-direction: row; gap: 8px; } .clock-stats b { font-size: 18px; } }

/* Logo im Kopf */
.logo-brand { flex-direction: column; align-items: flex-start; gap: 7px; }
.logo-brand img { display: block; width: 150px; height: auto; }
.logo-brand span { font-size: 10.5px !important; letter-spacing: .32em; text-transform: uppercase; color: #6b7280 !important; }
.mobilebar .logo-brand { flex-direction: row; align-items: center; gap: 12px; }
.mobilebar .logo-brand img { width: 120px; }
.auth .logo-brand img { width: 170px; }

@media (max-width: 600px) { .particles .pt:nth-child(2n), .particles .pt:nth-child(3n) { display: none; } }

/* Hinweis vor der automatischen Abmeldung */
.idle-warn { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 32px); background: #1f2937; color: #fff; padding: 14px 18px; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.idle-warn span { color: rgba(255, 255, 255, .75); }
.idle-warn button { background: #374151; color: #fff; border: 1px solid #4b5563; border-radius: 7px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.idle-warn button:hover { background: #4b5563; }

/* Piktogramme Arbeitsort */
.mi, .pin { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.25em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pin { width: 1.05em; height: 1.05em; vertical-align: -.18em; stroke-width: 2; opacity: .7; }
.btn.stamp .em { line-height: 0; }
.btn.stamp .em .mi { width: 50px; height: 50px; stroke-width: 2.1; vertical-align: 0; margin-bottom: 4px; }
.modes .mi { width: 22px; height: 22px; vertical-align: -4px; color: var(--ink-2); }
th .mi { width: 15px; height: 15px; vertical-align: -3px; }
.typepick .mi { width: 20px; height: 20px; }

/* Feiertage, Geburtstage & Jubiläen */
.evi { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; color: var(--ink-2); }
.evi svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
tr.ev-today td { background: var(--gold-soft); }

/* Breite Bildschirme: Inhalt mittig und mitwachsend */
.main { max-width: 1680px; margin: 0 auto; }
.gauto { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (min-width: 1500px) { .main { padding: 32px 44px 64px; } }
@media (min-width: 2000px) { .main { max-width: 1960px; } body { font-size: 16px; } }
@media (max-width: 860px) { .gauto { grid-template-columns: 1fr; } }

/* Umschalter Hell / Dunkel */
.theme-switch { display: flex; gap: 2px; margin-top: 12px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.theme-switch button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; color: var(--side-ink); font: inherit; font-size: 12px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.theme-switch button:hover { color: #fff; }
.theme-switch button[aria-pressed="true"] { background: #374151; color: #fff; }
.theme-switch svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
