:root {
  --bg:#f6f5f1; --card:#fff; --ink:#1f2a24; --muted:#6a746d; --line:#e3e1d8;
  --accent:#2f6f4e; --accent-ink:#fff; --warn:#b4531f; --full:#e9ece8;
}
* { box-sizing:border-box; }
body { overflow-wrap:anywhere; margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
.wrap { max-width:760px; margin:0 auto; padding:20px 16px 80px; }
header.top { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:10px; flex-wrap:wrap; }
header.top a.logo { color:var(--ink); text-decoration:none; font-weight:700; }
h1 { font-size:26px; margin:0 0 4px; }
h2 { font-size:19px; margin:28px 0 10px; }
h3.day { font-size:15px; margin:18px 0 8px; color:var(--accent); text-transform:capitalize; border-bottom:1px solid var(--line); padding-bottom:4px; }
svg.icon { vertical-align:-3px; margin-right:4px; }
.muted { color:var(--muted); }
.muted + .card { margin-top:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:10px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.row > div { min-width:0; }
input, select, textarea { overflow-wrap:normal; }
.slot-title { font-weight:600; }
.time { font-variant-numeric:tabular-nums; color:var(--muted); font-size:14px; }
.bar { height:6px; background:var(--full); border-radius:9px; overflow:hidden; margin-top:8px; }
.bar > i { display:block; height:100%; background:var(--accent); }
.people { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; }
.chip { background:var(--full); border-radius:99px; padding:2px 10px; font-size:14px; display:inline-flex; gap:6px; align-items:center; flex-wrap:wrap; }
.chip small { color:var(--muted); }
.chip button { all:unset; cursor:pointer; color:var(--warn); font-weight:700; }
button.btn, a.btn { background:var(--accent); color:var(--accent-ink); border:0; border-radius:9px; padding:9px 14px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; display:inline-block; }
button.btn.ghost, a.btn.ghost { background:transparent; color:var(--accent); border:1px solid var(--accent); }
button.btn.small, a.btn.small { padding:5px 10px; font-size:14px; min-height:32px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; }
button.btn.danger { background:transparent; color:var(--warn); border:1px solid var(--warn); }
button.btn.small.icon { padding:0; width:32px; height:32px; line-height:0; }
button.btn.small.icon svg { margin:0; }
button.btn .icon, button.iconbtn .icon { vertical-align:middle; }
h1 { overflow-wrap:anywhere; }
button.iconbtn.titleedit { padding:4px; margin-left:4px; vertical-align:middle; color:var(--accent); }
button.iconbtn.titleedit:hover, button.iconbtn.titleedit:focus-visible { background:var(--full); color:var(--accent); }
.vsep { width:1px; height:22px; background:var(--line); align-self:center; margin:0 2px; }
.linkitem { margin:10px 0; }
.linkitem .hint2 { margin-top:4px; }
.hint2 { display:block; color:var(--muted); font-size:13px; }
button.iconbtn.titleedit svg { width:20px; height:20px; }
.segment { display:inline-flex; align-items:stretch; border:1px solid var(--accent); border-radius:9px; overflow:hidden; margin:8px 0; }
.segment .seglabel { padding:5px 12px; font-size:14px; font-weight:600; color:var(--accent); display:flex; align-items:center; }
.segment button { all:unset; cursor:pointer; color:var(--accent); padding:5px 12px; border-left:1px solid var(--accent); display:flex; align-items:center; line-height:0; }
.segment button svg { margin:0; width:18px; height:18px; }
.segment button:hover, .segment button:focus-visible { background:var(--full); }
.copyrow { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 0; flex-wrap:wrap; }
.copyrow > span:first-child { min-width:0; flex:1 1 180px; }
.inlinerow { display:flex; align-items:center; gap:12px; margin:8px 0; flex-wrap:wrap; }
.btngroup { display:inline-flex; gap:8px; }
button:disabled { opacity:.45; cursor:default; }
label { display:block; font-size:14px; font-weight:600; margin:10px 0 3px; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=tel], input[type=email], select, textarea {
  width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; color:var(--ink);
}
textarea { min-height:70px; resize:vertical; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.grid3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
@media (max-width:560px){ .grid2,.grid3{grid-template-columns:1fr;} }
.hint { font-size:13px; color:var(--muted); margin-top:4px; }
.consent { display:flex; gap:8px; align-items:flex-start; font-weight:400; font-size:13px; color:var(--muted); margin-top:10px; }
.consent input { margin-top:3px; }
.notice { background:#fff7e6; border:1px solid #f0d9a8; border-radius:10px; padding:10px 12px; font-size:14px; margin:12px 0; }
.error { background:#fdeceb; border:1px solid #f0b8b3; color:#8a2a22; border-radius:10px; padding:10px 12px; font-size:14px; margin:12px 0; }
.linkbox { display:flex; gap:8px; margin:6px 0 12px; }
.linkbox input { flex:1; font-size:13px; }
.contact { font-size:13px; color:var(--accent); }
.contact a, .crow a { color:var(--accent); }
dialog { border:0; border-radius:14px; padding:20px; max-width:480px; width:calc(100% - 32px); box-shadow:0 10px 40px rgba(0,0,0,.25); max-height:90vh; overflow:auto; }
dialog::backdrop { background:rgba(0,0,0,.4); }
dialog.wide { max-width:640px; }
.row > div:last-child { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.toolbar { display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 4px; }
.empty { text-align:center; padding:20px; color:var(--muted); }
footer { margin-top:40px; font-size:12px; color:var(--muted); text-align:center; }
footer a { color:var(--muted); }
.tabs { display:flex; gap:8px; overflow-x:auto; margin:14px 0 0; padding:8px 0 6px; position:sticky; top:0; z-index:5; background:var(--bg); }
button.tab { border:1px solid var(--accent); background:transparent; color:var(--accent); border-radius:99px; padding:8px 14px; min-height:42px; font:inherit; font-weight:600; cursor:pointer; white-space:nowrap; flex:0 0 auto; }
button.tab.on { background:var(--accent); color:#fff; }
/* Helfer-Ansicht: offene Schichten und Spenden hervorheben, volle zurücknehmen */
.card.open { background:#fff6e5; border-color:#f0c878; border-left:6px solid #e8a33d; }
.card.open .status { color:#8a5200; font-weight:700; }
.card.done { background:var(--full); }
.card.done .chip { background:#fff; }
.card.done .status { color:var(--accent); font-weight:600; }
.legend { display:flex; gap:14px; flex-wrap:wrap; font-size:13px; color:var(--muted); margin:8px 0 0; }
.legend i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:5px; vertical-align:-1px; }
.avv-text { max-height:46vh; overflow:auto; border:1px solid var(--line); border-radius:10px; padding:10px 14px; font-size:14px; background:#fbfbf9; }
.avv-text p { margin:8px 0; }
.avv-text h3 { font-size:16px; margin:6px 0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:10px 16px; border-radius:10px; font-size:14px; max-width:calc(100% - 32px); z-index:50; }
.toast.err { background:var(--warn); }
@media (max-width:560px) {
  .wrap { padding:14px 12px 60px; }
  h1 { font-size:22px; }
  button.btn.small, a.btn.small { padding:10px 14px; min-height:42px; }
  button.btn.small.icon { width:42px; height:42px; }
  .copyrow { flex-direction:column; align-items:flex-start; gap:6px; margin:12px 0; }
  .copyrow > span:first-child { flex:none; }
  .segment .seglabel, .segment button { padding:10px 14px; }
  .chip { padding:4px 12px; }
  .chip button { padding:4px 8px; font-size:18px; line-height:1; }
  .linkbox { flex-direction:column; }
  .toolbar button { flex:1 1 auto; }
  .row > div:last-child { display:flex; gap:8px; flex-wrap:wrap; }
  dialog { padding:16px; }
}

/* Kontaktübersicht, Kalender, Vergangenes, Rechtstexte */
.crow { display:flex; flex-wrap:wrap; gap:4px 14px; align-items:center; padding:6px 0; border-bottom:1px solid var(--line); }
.crow:last-child { border-bottom:0; }
.ct { white-space:nowrap; }
button.iconbtn { all:unset; cursor:pointer; color:var(--muted); padding:4px; border-radius:6px; line-height:0; }
button.iconbtn:hover, button.iconbtn:focus-visible { background:var(--full); color:var(--ink); }
button.iconbtn svg { margin:0; }
.card.past { opacity:.7; }
.legal h2 { margin:20px 0 6px; font-size:17px; }
.legal h2:first-child { margin-top:0; }
.legal ul { padding-left:20px; margin:6px 0; }
@media (max-width:560px) { .ct { white-space:normal; } }
