/* Intranet Bestattung Julia Döhla – Gestaltung nach dem Briefpapier (Olivgrün, Creme, Julius Sans One / Work Sans) */

@font-face { font-family: "Julius Sans One"; src: url(fonts/julius-sans-one.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(fonts/work-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(fonts/work-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(fonts/work-sans-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --olive: #445D25;
  --olive-700: #34481B;
  --olive-900: #243212;
  --olive-50: #EEF1E6;
  --olive-100: #E2E8D5;
  --cream: #F3EBC2;
  --cream-50: #FBF8EA;
  --paper: #F6F4EC;
  --card: #FFFFFF;
  --ink: #232B1A;
  --ink-2: #4A5240;
  --muted: #7A8070;
  --line: #E3E4DA;
  --amber: #A9781E;
  --amber-50: #F8EED6;
  --red: #A23B2A;
  --red-50: #F6E3DE;
  --green: #3E6B2A;
  --green-50: #E5EEDC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 50, 18, .05), 0 4px 18px rgba(36, 50, 18, .06);
  --display: "Julius Sans One", "Optima", "Candara", sans-serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--olive); }
h1, h2, h3 { margin: 0; font-weight: 500; }
code { background: var(--olive-50); padding: 2px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.green-t { color: var(--green); }
.amber-t { color: var(--amber); }
.ic { flex: none; }
[hidden] { display: none !important; }

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--olive-900) 264px, transparent 264px); }
.side { align-self: start; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--olive-900);
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(243, 235, 194, .10), transparent 60%);
  color: #E9EBDD; padding: 22px 16px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); padding: 4px 8px 22px; border-bottom: 1px solid rgba(243, 235, 194, .14); margin-bottom: 14px; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.brand b { display: block; font: 400 19px/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.brand small { color: rgba(243, 235, 194, .72); letter-spacing: .04em; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #D9DDCB; text-decoration: none; font-weight: 500; transition: background .15s, color .15s;
}
.side nav a:hover { background: rgba(243, 235, 194, .08); color: #fff; }
.side nav a.on { background: var(--cream); color: var(--olive-900); }
.side nav a.on .ic { color: var(--olive); }
.navsec { margin: 18px 12px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 235, 194, .5); }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid rgba(243, 235, 194, .14); }
.me b { display: block; font-size: 14px; color: #fff; font-weight: 500; }
.me small { color: rgba(243, 235, 194, .65); }
.me > div { flex: 1; min-width: 0; }
.me .iconbtn { color: #D9DDCB; }
.me .iconbtn:hover { background: rgba(243, 235, 194, .1); }

main { padding: 28px 36px 24px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; align-items: flex-start; gap: 14px; }
.top h1 { font: 400 30px/1.15 var(--display); letter-spacing: .06em; color: var(--olive-900); }
.top .sub { margin: 6px 0 0; color: var(--muted); }
.iconbtn.burger { display: none; }
.foot { margin-top: auto; padding-top: 22px; text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: .03em; }

/* ---------- Elemente ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.card.narrow { max-width: 480px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head .card-h { margin: 0; }
.card-head select { width: auto; height: 34px; font-size: 13.5px; }
.card-h { display: flex; align-items: center; gap: 10px; font: 600 15.5px/1.3 var(--sans); color: var(--olive-900); margin-bottom: 14px; flex-wrap: wrap; }
.card-h .ic { color: var(--olive); }
.section { font: 400 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-top: 6px; }
.eyebrow { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 500 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: #C9CCBC; background: var(--cream-50); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn.primary:hover { background: var(--olive-700); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--olive-50); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.block { width: 100%; height: 46px; font-size: 15px; }
.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent;
  color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.iconbtn:hover { background: var(--olive-50); color: var(--olive); }
.iconbtn.danger:hover { background: var(--red-50); color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--olive-50); color: var(--ink-2); white-space: nowrap; }
.pill.green { background: var(--green-50); color: var(--green); }
.pill.amber { background: var(--amber-50); color: var(--amber); }
.pill.red { background: var(--red-50); color: var(--red); }
.badge { position: absolute; top: 16px; right: 16px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--amber); color: #fff; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; }
.badge.inline { position: static; display: inline-grid; }

.chip {
  --c: var(--olive); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 9px 2px 7px; border-radius: 7px;
  background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 80%, black);
  font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.chip.mine { background: var(--c); color: #fff; }
.chip.mine::before { background: #fff; }
.chip.empty { background: transparent; border: 1px dashed #CDBF8A; color: var(--amber); }
.chip.empty::before { display: none; }
.chip .ini { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.avatar { --c: var(--olive); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; flex: none; box-shadow: 0 0 0 2px rgba(243, 235, 194, .35); }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; box-shadow: none; display: grid; border-radius: 50%; }

.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--green-50); color: var(--green); border: 1px solid #CFDDC2; }
.flash.err { background: var(--red-50); color: var(--red); border-color: #EBCBC3; }
.flash .ic { margin-top: 1px; }

/* Formulare */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
label > span:first-child:not(.money) { display: inline-flex; align-items: center; gap: 6px; }
input:not([type=checkbox]):not([type=radio]), select {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #D6D8CC; border-radius: 10px; background: #fff;
  font: 400 15px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(68, 93, 37, .15); }
input[type=checkbox], input[type=radio] { accent-color: var(--olive); width: 17px; height: 17px; margin: 0; }
label.check, label.radio { flex-direction: row; align-items: center; gap: 9px; font-weight: 400; font-size: 14.5px; color: var(--ink); cursor: pointer; }
label.check.mt { margin-top: 26px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
form.inline select { height: 40px; min-width: 200px; }
.money { position: relative; display: block; }
.money input { padding-right: 64px !important; text-align: right; font-variant-numeric: tabular-nums; }
.money i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 13px; pointer-events: none; }

/* Dialoge */
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(20, 28, 10, .3); color: var(--ink); }
.dlg::backdrop { background: rgba(28, 38, 15, .45); backdrop-filter: blur(2px); }
.dlg form { padding: 24px; }
.dlg h2 { font: 400 21px/1.2 var(--display); letter-spacing: .05em; color: var(--olive-900); }

/* Tabellen */
.tablewrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid #EFF0E8; vertical-align: middle; }
.table th.right, .table td.right { text-align: right; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { border-top: 1.5px solid var(--olive); font-weight: 600; padding-top: 12px; }
.table.hover tbody tr { cursor: pointer; transition: background .12s; }
.table.hover tbody tr:hover { background: var(--cream-50); }
.table tr.sel { background: var(--olive-50); }
.table form { display: inline; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EFF0E8; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.date { width: 44px; height: 44px; flex: none; display: grid; place-items: center; align-content: center; border-radius: 10px; background: var(--cream-50); border: 1px solid #EEE6C2; line-height: 1; }
.date b { font-size: 17px; color: var(--olive-900); }
.date small { font-size: 11px; color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.monthnav { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.monthnav b { min-width: 150px; text-align: center; font-weight: 600; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { padding: 7px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.stat b { color: var(--olive-900); }
.stat.warn { background: var(--amber-50); border-color: #EBDDB5; }
.stat.warn b { color: var(--amber); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend.small { margin-top: 12px; }
.lg { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.tel { background: var(--olive); }
.lg.fah { background: #B9C2A6; }

/* ---------- Übersicht ---------- */
.duty {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 24px 28px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--olive) 0%, var(--olive-700) 70%);
}
.duty::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 300px; opacity: .10;
  background: url(img/emblem.png) center / contain no-repeat;
}
.duty .eyebrow { color: rgba(243, 235, 194, .8); }
.duty-slots { display: flex; gap: 14px; flex-wrap: wrap; }
.slot { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(243, 235, 194, .2); border-radius: 14px; padding: 12px 18px 12px 12px; min-width: 230px; }
.slot-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--cream); color: var(--olive-900); }
.slot small { display: block; color: rgba(243, 235, 194, .8); font-size: 12px; }
.slot b { font-size: 18px; font-weight: 500; }
.duty-next { position: relative; z-index: 1; text-align: right; }
.duty-next p { margin: 0 0 8px; }
.duty-next .muted { color: rgba(243, 235, 194, .6); }
.duty .link { color: var(--cream); text-decoration: none; font-weight: 500; }
.duty .link:hover { text-decoration: underline; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; min-height: 186px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); border-color: #CFD5BF; box-shadow: 0 10px 30px rgba(36, 50, 18, .1); }
.tile-ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--cream); color: var(--olive); margin-bottom: 8px; }
.tile.alt .tile-ic { background: var(--olive-50); }
.tile h3 { font: 600 16.5px/1.3 var(--sans); color: var(--olive-900); }
.tile p { margin: 0; color: var(--muted); font-size: 13.5px; }
.tile-stat { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--olive); }
.meter { display: block; height: 7px; border-radius: 99px; background: var(--olive-50); overflow: hidden; margin-top: auto; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7B9152, var(--olive)); }
.meter.over > span { background: linear-gradient(90deg, var(--olive), var(--amber)); }
.tile .meter + .tile-stat { margin-top: 0; padding-top: 6px; }

/* ---------- Kalender ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { text-align: center; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-d {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 10px; min-height: 108px;
  display: flex; flex-direction: column; gap: 5px; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.cal-d[data-edit] { cursor: pointer; }
.cal-d[data-edit]:hover, .cal-d[data-edit]:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(68, 93, 37, .12); outline: none; }
.cal-d.pad { background: transparent; border: 0; }
.cal-d.samstag, .cal-d.sonntag { background: var(--cream-50); }
.cal-d.feiertag { background: #FBF3DA; border-color: #EBDDB0; }
.cal-d.today { border: 2px solid var(--olive); padding: 7px 7px 9px; }
.cal-d.mine .cal-n { background: var(--olive); color: #fff; }
.cal-top { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.cal-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; font-size: 13px; color: var(--olive-900); flex: none; }
.cal-f { font-size: 10.5px; color: var(--amber); font-weight: 600; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.cal-e { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--olive); background: var(--olive-50); border-radius: 6px; padding: 1px 5px; }
.cal-slot { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); }
.cal-slot .chip { font-size: 11.5px; flex: 0 1 auto; min-width: 0; }
.cal-slot.tel .chip:not(.empty):not(.mine) { font-weight: 600; }
.conflict { color: var(--red); display: inline-flex; }
.cal-note { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Urlaub ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.kpi b { font: 400 34px/1.2 var(--display); color: var(--olive-900); margin-right: 6px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.accent { background: var(--olive); border-color: var(--olive); }
.kpi.accent small, .kpi.accent span { color: rgba(243, 235, 194, .85); }
.kpi.accent b { color: #fff; }
.requests { display: flex; flex-direction: column; gap: 10px; }
.request { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-50); }
.request-who { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.request-what { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.request-what .pill { align-self: flex-start; margin-top: 4px; }
.request-act { display: flex; gap: 8px; align-items: center; }
.request-act input { width: 190px; height: 40px; }

/* ---------- Abrechnung ---------- */
.limit { margin: 4px 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--cream-50); border: 1px solid #EEE6C2; }
.limit-bar { position: relative; height: 12px; border-radius: 99px; background: #E9E4CB; }
.limit-bar { display: flex; overflow: visible; }
.limit-bar .pay { height: 100%; border-radius: 99px 0 0 99px; background: linear-gradient(90deg, #7B9152, var(--olive)); }
.limit-bar .pay.full { border-radius: 99px; }
.limit-bar .carry { height: 100%; border-radius: 0 99px 99px 0; background: repeating-linear-gradient(135deg, var(--amber) 0 6px, #C99A45 6px 12px); }
.limit-bar .mark { font-style: normal; position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--olive-900); }
.limit-bar .mark b { position: absolute; top: -20px; right: 6px; font-size: 11.5px; white-space: nowrap; color: var(--olive-900); }
.limit { padding-top: 30px; }
.limit-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.limit-legend b { color: var(--olive-900); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: #999; }
.dot.bereitschaft { background: var(--olive); }
.dot.einsatz { background: #4C5C8A; }
.dot.sarg { background: #7A5C2E; }
.dot.buero { background: #2F6F73; }
.dot.sonstig, .dot.korrektur { background: var(--amber); }

/* ---------- Mitarbeiter ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; }
.person .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.col-actions .btn { white-space: nowrap; }
.person { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.person.off { opacity: .55; }
.person b { display: block; }
.person .row { margin-top: 8px; gap: 6px; }
.col-actions { display: flex; flex-direction: column; gap: 6px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatches input:checked + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Einstellungen ---------- */
.settings { display: flex; flex-direction: column; gap: 20px; }
.settings .card > label, .settings .card > .grid2, .settings .card > .grid3 { margin-top: 14px; }
.seg { display: inline-flex; background: var(--olive-50); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { flex-direction: row; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { padding: 8px 14px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.seg input:checked + span { background: #fff; color: var(--olive-900); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-weight: 600; }
.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.rate { background: var(--cream-50); border: 1px solid #EEE6C2; border-radius: 12px; padding: 12px; }
.rate small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rate input { font-size: 20px !important; font-weight: 600; color: var(--olive-900) !important; background: #fff; }
.example { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--olive); background: var(--olive-50); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-2); }
.hint { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hint summary { cursor: pointer; font-weight: 600; color: var(--olive); }
.savebar { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; }
.savebar .btn { box-shadow: 0 8px 24px rgba(36, 50, 18, .25); height: 46px; }

/* ---------- Anmeldung ---------- */
.loginpage { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); background-image: radial-gradient(80% 60% at 100% 0%, #EDE6C4 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #E2E8D5 0%, transparent 60%); }
.login { display: grid; grid-template-columns: 1fr 1fr; width: min(940px, 100%); min-height: 560px; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(36, 50, 18, .18); }
.login-brand {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 36px; gap: 14px;
  background: var(--olive-900); color: var(--cream);
  background-image: radial-gradient(100% 70% at 50% 0%, rgba(243, 235, 194, .14), transparent 70%);
}
.login-brand img { width: 118px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.login-brand h2 { font: 400 30px/1.15 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.login-brand h2 span { font-size: 24px; letter-spacing: .12em; }
.login-brand > p { margin: 0; color: rgba(243, 235, 194, .75); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.login-tools { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 330px; }
.login-tools li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(243, 235, 194, .18); border-radius: 10px; font-size: 13px; color: #E7E9DA; text-align: left; }
.login-tools .ic { color: var(--cream); }
.login-form { padding: 52px 48px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.login-form h1 { font: 400 32px/1.1 var(--display); letter-spacing: .06em; color: var(--olive-900); }
.login-form > .muted { margin: 0 0 8px; }
.login-form form { margin-top: 8px; }
.login-foot { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--muted); }

/* ---------- Ergänzungen: Rechte, Abo, Abrechnung gruppiert ---------- */
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: #8a3123; }
label.check.top { align-items: flex-start; }
label.check.top input { margin-top: 3px; }
label.check.top span { display: flex; flex-direction: column; gap: 1px; }
label.check.top b { font-weight: 600; font-size: 14px; }
.checklist { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; }
.right-pill { background: var(--cream); color: var(--olive-900); }
.dlg-body { padding: 24px; }
.abo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-50); }
.abo b { display: block; }
.table.posten tr.grp td { background: #FBF7E6; }
.table.posten tr.grp:not(.sub) td { border-bottom-color: transparent; }
.table.posten tr.sub td { padding-top: 6px; color: var(--ink-2); }
.table.posten tr.sub td:nth-child(2) { padding-left: 26px; }
.sub-arrow { color: var(--olive); font-weight: 600; margin-right: 6px; }
.dot.leistung { background: #7A5C2E; }
.katalog input, .katalog select { height: 38px; }
.katalog tr.off input:not([type=checkbox]) { color: var(--muted); text-decoration: line-through; }
.katalog tr.new input { border-style: dashed; background: var(--cream-50); }
.katalog td { padding: 6px; }

/* Entscheidungsseite aus der E-Mail */
.decide { width: min(480px, 100%); background: var(--card); border-radius: 22px; padding: 30px 30px 22px; box-shadow: 0 30px 80px rgba(36, 50, 18, .18); display: flex; flex-direction: column; gap: 14px; }
.decide-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1.5px solid var(--olive); color: var(--olive); font: 400 16px/1.25 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.decide-head b { font-weight: 400; font-size: 19px; }
.decide h1 { font: 400 28px/1.15 var(--display); letter-spacing: .05em; color: var(--olive-900); }
.decide .eyebrow { margin-bottom: -6px; }
.decide-facts { display: flex; flex-direction: column; gap: 10px; background: var(--cream-50); border: 1px solid #EEE6C2; border-radius: 14px; padding: 14px 16px; }
.decide-facts small { display: block; color: var(--muted); font-size: 12px; }
.decide-facts b { font-weight: 500; }
.decided { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; }
.decided.yes { background: var(--green-50); color: var(--green); }
.decided.no { background: var(--red-50); color: var(--red); }
.decided b { display: block; font-size: 17px; }
.decided span { color: var(--ink-2); font-size: 14px; }
.decide a { text-decoration: none; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .rates { grid-template-columns: repeat(2, 1fr); }
  .request { grid-template-columns: 1fr; }
  .request-act { flex-wrap: wrap; }
  .request-act input { flex: 1 1 100%; width: auto; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  #navtoggle:checked + .shell .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .iconbtn.burger { display: inline-grid; margin-left: -8px; }
  .shell { background: none; }
  main { padding: 18px 16px; gap: 16px; }
  .top h1 { font-size: 23px; }
  .cols, .grid2 { grid-template-columns: 1fr; }
  .duty { grid-template-columns: 1fr; padding: 20px; }
  .duty-next { text-align: left; }
  .slot { min-width: 0; flex: 1 1 100%; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 32px 24px; }
  .login-tools { display: none; }
  .login-form { padding: 32px 24px; }
  .cal { gap: 3px; }
  .cal-d { min-height: 76px; padding: 4px; border-radius: 8px; }
  .cal-slot .ic, .cal-f, .cal-note { display: none; }
  .cal-slot .chip { font-size: 10.5px; padding: 1px 5px; font-weight: 600; }
  .cal-slot .chip .full { display: none; }
  .cal-slot .chip .ini { display: inline; }
  .cal-e .ic { display: none; }
  .cal-n { width: 20px; height: 20px; font-size: 12px; }
  .chip::before { display: none; }
  .tablewrap { margin: 0 -16px; padding: 0 16px; }
  .card { padding: 16px; }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid3 { grid-template-columns: 1fr; }
  .monthnav b { min-width: 120px; }
  .toolbar > .btn { flex: 1; }
}
.zeitspanne { display: flex !important; align-items: center; gap: 8px; }
.zeitspanne input { flex: 1; min-width: 0; }
.zeitspanne i { font-style: normal; color: var(--muted); font-size: 13px; }
.dot.akut { background: #8C4A3C; }
code { white-space: nowrap; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid #D6D8CC; border-radius: 10px; background: #fff; font: 400 15px var(--sans); color: var(--ink); resize: vertical; }
textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(68, 93, 37, .15); }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; }

/* Bearbeiten + Löschen nebeneinander */
td.nowrap { white-space: nowrap; }
form.inline { display: inline; }

/* Einstellungen: Reiter */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 5px; background: var(--olive-50); border-radius: 14px; }
.tabs .tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.tabs .tab:hover { color: var(--olive-900); }
.tabs .tab.active { background: #fff; color: var(--olive-900); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.mailwege { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mailweg { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line, #E6E2CF); border-radius: 14px; background: #FDFCF6; }
.mailweg > b { display: flex; align-items: center; gap: 8px; color: var(--olive-900); }
h3.sub { font-size: 15px; margin: 18px 0 4px; color: var(--olive-900); }
@media (max-width: 700px) {
  .mailwege { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs .tab { white-space: nowrap; }
}

.flash.info { background: var(--olive-50); color: var(--olive-900); border-color: #E6E2CF; margin: 0 0 18px; }

/* Kühlung */
.table th.num, .table td.num { text-align: right; }
.table td.right { text-align: right; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.toolbar + .kuehl-grid, .toolbar + .card { margin-top: 18px; }
.kuehl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 18px; }
.kuehl-card { --c: var(--green); --c50: var(--green-50); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.kuehl-card.st-gelb { --c: #C08A1C; --c50: var(--amber-50); }
.kuehl-card.st-rot { --c: var(--red); --c50: var(--red-50); }
.kuehl-card.st-grau { --c: var(--muted); --c50: var(--olive-50); }
.kuehl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.kuehl-top b { display: block; font-size: 16px; color: var(--olive-900); }
.kuehl-top small { display: block; font-size: 12.5px; }
.ampel { display: inline-flex; flex-direction: column; gap: 3px; padding: 5px; background: #2B2F25; border-radius: 9px; flex: none; }
.ampel i { width: 11px; height: 11px; border-radius: 50%; background: #4A4E42; }
.st-rot .ampel .r { background: #E2533D; box-shadow: 0 0 6px #E2533D; }
.st-gelb .ampel .y { background: #F2B632; box-shadow: 0 0 6px #F2B632; }
.st-gruen .ampel .g { background: #6BBF48; box-shadow: 0 0 6px #6BBF48; }
.kuehl-zahl { display: flex; align-items: baseline; gap: 6px; }
.kuehl-zahl b { font-size: 34px; line-height: 1; color: var(--ink); font-weight: 600; }
.kuehl-zahl span { color: var(--muted); font-size: 14px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slots span { width: 24px; height: 24px; border-radius: 6px; background: #fff; border: 1.5px solid var(--line); }
.slots span.voll { background: var(--c); border-color: var(--c); }
.kuehl-status { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--c); background: var(--c50); }
.dlg-del { margin-top: 6px; text-align: center; }
.link.danger, button.link { background: none; border: 0; padding: 4px; font: inherit; font-size: 13.5px; color: var(--red); cursor: pointer; text-decoration: underline; }
.tile-ampeln { display: flex; flex-wrap: wrap; gap: 6px; }
.tile-ampeln span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--green-50); color: var(--green); }
.tile-ampeln span i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tile-ampeln .st-gelb { background: var(--amber-50); color: var(--amber); }
.tile-ampeln .st-rot { background: var(--red-50); color: var(--red); }
.tile-ampeln .st-grau { background: var(--olive-50); color: var(--muted); }
input.narrow { width: 80px; }
@media (max-width: 700px) {
  .row-actions { margin-left: 0; width: 100%; }
  .row-actions .btn, .row-actions form { flex: 1; }
  .row-actions form .btn { width: 100%; }
}

.mailweg.wide { grid-column: 1 / -1; }
.mailweg textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; resize: vertical; }
.mailblock { display: flex; flex-direction: column; gap: 10px; }
.mailblock > b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--olive-900); }
.kuehl-edit td:first-child input { min-width: 210px; }
.kuehl-edit select { min-width: 150px; }
.kuehl-edit .money { min-width: 104px; }
.kuehl-edit td:nth-child(2) input { min-width: 120px; }
