/* Crewyard – Gestaltung Müller Aarberg AG (Schwarz / Weiss / Rot)
   Crewyard by RST Tools */
:root {
  --acc: #e62e3b; --acc-ink: #fff; --acc-soft: #fde7e9;
  --ink: #141414; --ink-2: #3a3a3a; --muted: #6b6b6b; --line: #e3e3e3; --line-2: #d0d0d0;
  --bg: #f3f3f1; --card: #ffffff; --soft: #f7f7f5; --black: #111111;
  --ok: #1d7a3e; --ok-bg: #e2f3e8; --bad: #b3261e; --bad-bg: #fbe3e1; --warn: #8a5a00; --warn-bg: #fbefd2; --info: #1f5aa6; --info-bg: #e3edfa;
  --r: 12px; --r-sm: 8px; --sh: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Arial Narrow", "Helvetica Neue Condensed", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mut { color: var(--muted); }
.small { font-size: .85rem; }
.hidden, [hidden] { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.sp { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.pri:hover { filter: brightness(.94); }
.btn.dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { color: var(--bad); border-color: #efc2be; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--acc); cursor: pointer; text-decoration: underline; }

/* Formulare */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 20%, transparent); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 0; }
.chk input { width: 18px; height: 18px; accent-color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; }
fieldset.aud { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 14px; }
fieldset.aud legend { font-weight: 600; font-size: .88rem; padding: 0 4px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* Karten, Tabellen, Meldungen */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card + .card { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 14px; font-weight: 600; background: var(--ok-bg); color: var(--ok); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }
.flash.info { background: var(--info-bg); color: var(--info); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
table.t tr:hover td { background: var(--soft); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.tag.acc { background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 30%, #fff); color: color-mix(in srgb, var(--acc) 75%, #000); }
.tag.ok { background: var(--ok-bg); border-color: #bfe2cc; color: var(--ok); }
.tag.warn { background: var(--warn-bg); border-color: #efd9a4; color: var(--warn); }
.tag.dark { background: var(--black); border-color: var(--black); color: #fff; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: #fff; font-size: .72rem; font-weight: 800; font-style: normal; }
.av { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; font-weight: 800; font-size: .95rem; color: #fff; background: hsl(var(--hue, 0) 35% 38%); }
.av.sm { width: 32px; height: 32px; font-size: .75rem; }
.av.lg { width: 84px; height: 84px; font-size: 1.6rem; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--acc); }

/* RST-Hinweis */
.rst { display: inline-flex; align-items: center; text-decoration: none; opacity: .9; }
.rst:hover { opacity: 1; }
.rst img { height: 34px; width: auto; display: block; }

/* ================= Zentrale ================= */
.z-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.z-side { background: var(--black); color: #e6e6e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.z-brand { display: block; padding: 18px 18px 14px; text-decoration: none; border-bottom: 1px solid #2a2a2a; }
.z-brand img { display: block; background: #fff; padding: 7px 10px; border-radius: 6px; height: 46px; width: auto; }
.z-brand span { display: block; margin-top: 8px; font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #9a9a9a; }
.z-side nav { padding: 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.z-grp { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7a7a7a; padding: 14px 12px 4px; }
.z-side nav a, .z-tool { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #d6d6d6; font-weight: 500; }
.z-side nav a:hover, .z-tool:hover { background: #222; color: #fff; }
.z-side nav a.on { background: var(--acc); color: #fff; font-weight: 700; }
.z-side nav a .badge { margin-left: auto; background: #fff; color: var(--acc); }
.z-side nav a.on .badge { background: #fff; }
.z-side-foot { padding: 12px 16px 18px; border-top: 1px solid #2a2a2a; display: flex; flex-direction: column; gap: 12px; }
.z-tool { padding: 8px 4px; }
.z-main { min-width: 0; }
.z-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.z-top h1 { margin: 0; font-size: 1.45rem; font-family: var(--font-head); letter-spacing: .01em; }
.z-top h1::before { content: ""; display: inline-block; width: 5px; height: 1em; background: var(--acc); margin-right: 10px; vertical-align: -2px; border-radius: 2px; }
.z-user { display: flex; align-items: center; gap: 10px; }
.z-user span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.2; }
.z-user small { color: var(--muted); font-weight: 500; }
.z-content { padding: 24px 28px 60px; max-width: 1280px; }
.z-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px 18px; text-decoration: none; border-top: 4px solid var(--black); }
.kpi.acc { border-top-color: var(--acc); }
.kpi b { display: block; font-size: 2rem; font-family: var(--font-head); line-height: 1.1; }
.kpi span { color: var(--muted); font-weight: 600; font-size: .88rem; }
.wk { display: grid; grid-template-columns: 170px repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.wk > div { padding: 6px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 38px; font-size: .86rem; }
.wk .wh { background: var(--black); color: #fff; font-weight: 700; font-size: .8rem; }
.wk .wh.today { background: var(--acc); }
.wk .wl { font-weight: 700; background: var(--soft); }
.wk .wb { background: #f0f0f0; border-left: 4px solid var(--black); border-radius: 4px; padding: 2px 6px; font-weight: 600; font-size: .8rem; margin: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk .wb.app { border-left-color: var(--acc); background: var(--acc-soft); }
.print-only { display: none; }
@media print {
  .z-side, .z-top, .z-actions, .noprint, .tabs, .flash { display: none !important; }
  .z-shell { display: block; } .z-content { padding: 0; max-width: none; } body { background: #fff; font-size: 12px; }
  .card { box-shadow: none; border: 0; padding: 0; } .print-only { display: block; }
  .pbreak { page-break-before: always; }
}
@media (max-width: 860px) {
  .z-shell { grid-template-columns: 1fr; }
  .z-side { position: static; height: auto; }
  .z-side nav { flex-direction: row; flex-wrap: wrap; }
  .z-content, .z-top { padding-left: 14px; padding-right: 14px; }
}

/* ================= Login ================= */
body.login { min-height: 100vh; display: grid; place-items: center; background: var(--black); padding: 20px; }
.login-box { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 28px 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.4); border-top: 6px solid var(--acc); }
.login-box img.logo { display: block; height: 58px; margin: 0 auto 6px; }
.login-box h1 { text-align: center; font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.login-foot { margin-top: 18px; display: flex; justify-content: center; }

/* ================= App (Handy) ================= */
body.app { background: var(--bg); padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.a-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--black); color: #fff; min-height: 56px; }
.a-top h1 { flex: 1; margin: 0; font-size: 1.08rem; font-family: var(--font-head); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-logo { height: 32px; background: #fff; padding: 4px 7px; border-radius: 5px; }
.a-back { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: #fff; margin-left: -8px; }
.a-back .ic { width: 26px; height: 26px; }
.a-me { display: inline-flex; text-decoration: none; }
.a-me .av { border: 2px solid #fff; }
.a-main { max-width: 680px; margin: 0 auto; padding: 14px 12px 20px; }
.a-tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
.a-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; }
.a-tabs a .ic { width: 25px; height: 25px; }
.a-tabs a.on { color: var(--acc); }
.a-tabs a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; background: var(--acc); border-radius: 0 0 3px 3px; }
.a-tabs .badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: .66rem; }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 20px 4px 8px; }
.sec h2 { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sec a { font-size: .85rem; font-weight: 700; color: var(--acc); text-decoration: none; }
.hello { background: var(--black); color: #fff; border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; background: var(--acc); transform: rotate(45deg); opacity: .9; }
.hello h2 { position: relative; z-index: 1; margin: 0 0 4px; font-size: 1.35rem; font-family: var(--font-head); }
.hello p { position: relative; z-index: 1; margin: 0; color: #cfcfcf; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1 / .92; background: #fff; border-radius: var(--r); box-shadow: var(--sh); text-decoration: none; font-weight: 700; font-size: .8rem; text-align: center; padding: 8px; position: relative; color: var(--ink); }
.tile .ic { width: 30px; height: 30px; color: var(--acc); }
.tile .badge { position: absolute; top: 8px; right: 8px; }
.list { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.li:last-child { border-bottom: 0; }
.li .grow { min-width: 0; }
.li b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .ic.go { color: var(--line-2); transform: rotate(180deg); }
a.li:active { background: var(--soft); }

/* News */
.post { background: #fff; border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 14px; overflow: hidden; }
.post.imp { box-shadow: 0 0 0 2px var(--acc), var(--sh); }
.post-h { display: flex; gap: 10px; align-items: center; padding: 12px 14px 6px; }
.post-h b { display: block; line-height: 1.2; }
.post-h small { color: var(--muted); }
.post-b { padding: 4px 14px 10px; }
.post-b h3 { font-size: 1.08rem; margin: 2px 0 6px; }
.post-img { display: block; width: 100%; max-height: 460px; object-fit: cover; background: var(--soft); }
.post-f { display: flex; gap: 4px; padding: 4px 8px 8px; border-top: 1px solid var(--line); }
.post-f button, .post-f a { background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: .9rem; }
.post-f .on { color: var(--acc); }
.post-f .on .ic { fill: var(--acc-soft); }
.chan-pill { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--acc); }
.imp-flag { display: inline-flex; align-items: center; gap: 4px; background: var(--acc); color: #fff; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.comments { padding: 4px 14px 12px; background: var(--soft); }
.cm { display: flex; gap: 8px; padding: 8px 0; }
.cm .bub { background: #fff; border-radius: 12px; padding: 6px 10px; flex: 1; }
.cm .bub b { font-size: .85rem; }
.att { display: flex; align-items: center; gap: 8px; margin: 6px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; background: #fff; }
.chan-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.chan-strip a { flex: none; padding: 7px 14px; background: #fff; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .86rem; border: 1.5px solid var(--line); }
.chan-strip a.on { background: var(--black); border-color: var(--black); color: #fff; }

/* Chat */
.chat-wrap { display: flex; flex-direction: column; height: calc(100dvh - 56px - 68px - env(safe-area-inset-bottom) - env(safe-area-inset-top)); margin: -14px -12px -20px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 82%; align-self: flex-start; background: #fff; border-radius: 16px 16px 16px 4px; padding: 7px 12px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg.me { align-self: flex-end; background: var(--black); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg small { display: block; font-size: .7rem; opacity: .65; margin-top: 2px; }
.msg .who { font-size: .74rem; font-weight: 800; color: var(--acc); }
.msg-day { align-self: center; font-size: .74rem; color: var(--muted); font-weight: 700; margin: 8px 0; }
.composer { display: flex; gap: 8px; padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); }
.composer textarea { min-height: 44px; height: 44px; max-height: 120px; border-radius: 22px; padding: 10px 14px; }
.composer button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--acc); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }

/* Reservation */
.res-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 12px 14px; margin-bottom: 10px; border-left: 5px solid var(--acc); }
.res-card .d { text-align: center; min-width: 52px; font-family: var(--font-head); line-height: 1.05; }
.res-card .d b { display: block; font-size: 1.5rem; }
.res-card .d small { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .72rem; }
.avail { display: grid; grid-template-columns: 1fr repeat(5, 34px); gap: 3px; align-items: center; font-size: .8rem; }
.avail .h { font-weight: 800; text-align: center; color: var(--muted); font-size: .7rem; }
.avail .h.today { color: var(--acc); }
.avail .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.avail .c { height: 28px; border-radius: 6px; background: var(--ok-bg); border: 1px solid #bfe2cc; }
.avail .c.x { background: #2a2a2a; border-color: #2a2a2a; }
.avail .c.me { background: var(--acc); border-color: var(--acc); }
.avail .c.past { opacity: .35; }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin: 8px 0; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg a, .seg button { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .88rem; border: 0; background: none; cursor: pointer; font-family: inherit; color: var(--muted); }
.seg .on { background: var(--black); color: #fff; }

/* Kleider */
.kgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kart { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.kart img { aspect-ratio: 1; object-fit: contain; background: #fff; width: 100%; padding: 6px; }
.kart .kb { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kart b { font-size: .86rem; line-height: 1.25; }
.kart small { color: var(--muted); font-size: .74rem; }
.kart select { min-height: 38px; padding: 6px 8px; }
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 15; max-width: 656px; margin: 0 auto; }
@media (min-width: 900px) { .kgrid { grid-template-columns: repeat(3, 1fr); } }

/* Karten (Wertschätzung) */
.wcard { border-radius: var(--r); padding: 18px; color: #fff; position: relative; overflow: hidden; min-height: 150px; box-shadow: var(--sh); }
.wcard .mo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 8px; position: relative; }
.wcard p { position: relative; margin: 0 0 10px; }
.wcard small { position: relative; opacity: .85; font-weight: 600; }
.wcard .em { position: absolute; right: 10px; bottom: -14px; font-size: 5.5rem; opacity: .22; line-height: 1; }
.m-danke { background: linear-gradient(135deg, #e62e3b, #a3121d); }
.m-top { background: linear-gradient(135deg, #1b1b1b, #444); }
.m-team { background: linear-gradient(135deg, #1f5aa6, #0f2f5a); }
.m-sicher { background: linear-gradient(135deg, #1d7a3e, #0d3f1f); }
.m-hilfe { background: linear-gradient(135deg, #c27a00, #7a4a00); }
.m-willkommen { background: linear-gradient(135deg, #6b3fa0, #3a1f60); }
.motifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.motifs label { display: block; cursor: pointer; }
.motifs input { position: absolute; opacity: 0; }
.motifs span { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; padding: 12px 4px; color: #fff; font-weight: 800; font-size: .78rem; text-align: center; min-height: 74px; border: 3px solid transparent; }
.motifs span i { font-style: normal; font-size: 1.6rem; }
.motifs input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }

/* Umfragen */
.opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; background: #fff; }
.opt input { width: 20px; height: 20px; accent-color: var(--acc); }
.bar { position: relative; background: var(--soft); border-radius: 8px; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--line); }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--acc-soft); }
.bar span { position: relative; display: flex; justify-content: space-between; padding: 9px 12px; font-weight: 600; }

/* Kleines */
.fab { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 12; width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(230,46,59,.45); text-decoration: none; border: 0; }
.fab .ic { width: 28px; height: 28px; }
.app-foot { display: flex; justify-content: center; margin: 26px 0 6px; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.status.neu { background: var(--acc); color: #fff; }
.status.bearbeitung { background: var(--warn-bg); color: var(--warn); }
.status.erledigt { background: var(--ok-bg); color: var(--ok); }
.install-hint { background: var(--info-bg); color: var(--info); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
dl.kv dt { font-weight: 700; color: var(--muted); }
dl.kv dd { margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--black); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 50; box-shadow: var(--sh); max-width: 90vw; }
.search { position: relative; margin-bottom: 10px; }
.search .ic { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.search input { padding-left: 40px; border-radius: 999px; }

/* Instagram in der App */
.igrow { display: flex; gap: 10px; overflow-x: auto; padding: 2px 4px 12px; scroll-snap-type: x mandatory; }
.igitem { flex: 0 0 62%; max-width: 240px; scroll-snap-align: start; background: var(--card, #fff); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.igitem img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.igitem span { display: block; padding: 8px 10px; font-size: .8rem; line-height: 1.3; }

/* Tablet und breite Bildschirme: App nutzt die Breite */
@media (min-width: 760px) {
  .a-main { max-width: 1000px; padding: 20px 24px 24px; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tile { aspect-ratio: auto; min-height: 104px; font-size: .85rem; }
  .post-img { max-height: 380px !important; object-fit: contain !important; }
  .a-tabs { left: 50%; right: auto; transform: translateX(-50%); width: min(1000px, 100%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 14px 14px 0 0; }
  .a-tabs a { flex-direction: row; justify-content: center; gap: 8px; font-size: .85rem; padding: 12px 4px; }
  .a-tabs .badge { left: auto; right: 18%; }
  .igitem { flex-basis: 30%; }
  .cartbar { max-width: 976px; }
}
@media (min-width: 1100px) {
  .a-main { max-width: 1180px; }
  .a-tabs { width: 1180px; }
}

.sitepick { display: flex; flex-direction: column; gap: 6px; }
.sitepick input[hidden] { display: none; }

/* Baggerprogramm in der Zentrale: planen per Klick, Farben wie am Board */
.bgp { --si: #5d6f1e; --hb: #2d5ea6; --tb: #8a5527; --ub: #7a4b9e; --wm: #0f766e; --wh: #46525b; --srv: #8fb8e0; --rep: #f0b400; --def: #c9302c;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.bgr { display: grid; grid-template-columns: 200px repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); min-height: 40px; }
.bgr > .lbl { grid-row: 1; grid-column: 1; padding: 8px 10px; background: var(--soft); border-right: 1px solid var(--line); font-size: .86rem; }
.bgr.sub > .lbl { padding-top: 4px; padding-bottom: 4px; }
.bgr .cell { grid-row: 1; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; min-height: 38px; }
.bgr .cell:hover:not([disabled]) { background: color-mix(in srgb, var(--acc) 8%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--acc) 35%, transparent); }
.bgr .cell[disabled] { cursor: default; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,.025) 8px 16px); }
.bgr .bar { grid-row: 1; z-index: 1; margin: 4px 5px; border: 0; border-radius: 6px; padding: 4px 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: inherit; font-weight: 700; font-size: .82rem; color: #fff; text-align: left; cursor: pointer; background: var(--wh); min-width: 0; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.bgr .bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgr .bar .att { flex: none; background: #fff; color: #111; border-radius: 4px; padding: 1px 6px; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; }
.bgr .bar[disabled] { cursor: default; opacity: .55; }
.bgr .bar:hover:not([disabled]) { filter: brightness(1.08); }
.c-si { background: var(--si) !important; } .c-hb { background: var(--hb) !important; } .c-tb { background: var(--tb) !important; } .c-ub { background: var(--ub) !important; }
.c-wm { background: var(--wm) !important; } .c-wh, .c-none { background: var(--wh) !important; } .c-srv { background: var(--srv) !important; color: #0e1b28 !important; }
.c-rep { background: var(--rep) !important; color: #1a1400 !important; } .c-def { background: var(--def) !important; }
.bgh { background: var(--black); color: #fff; font-weight: 700; font-size: .8rem; min-height: 0; }
.bgh > div { padding: 8px 10px; border-right: 1px solid #333; }
.bgh > div.today { background: var(--acc); }
.bgg { background: #2a2a2a; color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 6px 10px; }
.bgp.archiv { filter: grayscale(.6); opacity: .85; }
dialog.dlg { border: 0; border-radius: 16px; padding: 22px 22px 18px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.dlg::backdrop { background: rgba(0,0,0,.45); }
dialog.dlg h2 { margin: 0 0 2px; }
@media print { .bgr .cell { display: none; } .bgr .bar { color: #000 !important; background: #eee !important; border-left: 4px solid #000; } }

tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: color-mix(in srgb, var(--acc) 6%, #fff); }
tr.rowlink.sel td { background: var(--acc-soft); }
@media (min-width: 1000px) { .sticky-form { position: sticky; top: 16px; } }

/* Aushang (Board-Mitte) */
.postcard { box-sizing: border-box; width: 100%; height: auto; background: var(--pbg); color: var(--pfg); border: 6px solid var(--pbd); border-radius: 12px; padding: 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; overflow: hidden; }
.postcard .pimg { width: 100%; height: 180px; flex: none; display: flex; justify-content: center; }
.postcard .pimg img { width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; }
.postcard .ptt { font-weight: 800; font-size: 32px; line-height: 1.08; overflow-wrap: anywhere; }
.postcard .ptb { font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.postprev { max-width: 400px; margin: 0 auto; }
.postmini { width: 84px; }
.postwrap { max-width: 520px; margin: 0 auto 14px; }
.postcard .ptt { font-family: var(--font-display, inherit); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 8px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches i { display: block; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.swatches input:checked + i { outline: 3px solid var(--ink, #111); outline-offset: 2px; }
.swatches input:focus-visible + i { outline: 3px solid var(--acc); outline-offset: 2px; }

/* App Reservieren: Fahrzeug-Infos */
.avail .vbtn { border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 0; cursor: pointer; text-decoration: underline dotted rgba(0,0,0,.35); text-underline-offset: 3px; font-weight: 700; min-width: 0; }
.avail .vbtn[aria-expanded="true"] { color: var(--acc); font-weight: 800; }
.avail .vdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad, #c62828); vertical-align: middle; }
.avail .vi { grid-column: 1 / -1; background: var(--surface-2, #f6f6f4); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 2px 0 6px; font-size: .9rem; }
.vi-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 6px 0 0; }
.vi-dl dt { color: var(--muted); } .vi-dl dd { margin: 0; font-weight: 600; }
.vi-dmg { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--bad, #c62828); }
.vi-dmg div { color: var(--ink, #111); }

/* Zentrale Dispoboard-Seite */
.dispo-grid { align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .dispo-grid { grid-template-columns: minmax(0, 1fr); } }
.dispo-grid > .card { min-width: 0; margin: 0; }
.dispo-grid code { overflow-wrap: anywhere; word-break: break-all; white-space: normal; }
.dispo-grid .kv dd { min-width: 0; overflow-wrap: anywhere; }
.dispo-grid .tscroll { max-height: 420px; overflow: auto; }
.dispo-grid .tscroll td:first-child { width: 1%; }
details.more summary { cursor: pointer; font-weight: 700; font-size: .9rem; }

/* Demo-Zugänge */
.demo-req { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.demo-req:last-child { border-bottom: 0; }
.tscroll { overflow: auto; max-height: 520px; }
/* Aktions-Spalten in Tabellen: Zelle bleibt Tabellenzelle, damit die Linien durchgehen */
table.t td.row { display: table-cell; white-space: nowrap; text-align: right; }
table.t td.row > * { display: inline-flex; vertical-align: middle; margin: 0 0 0 6px; }
@media print { table.t td.row.noprint { display: none; } }

/* Danke-Karten: Löschen-Knopf oben rechts */
.wcard { position: relative; }
.wcard .wdel { position: absolute; top: 8px; right: 8px; margin: 0; }
.wcard .wdel .btn { background: rgba(255,255,255,.9); color: #111; border: 0; padding: 5px 8px; }

/* App installieren */
dialog.inst { max-width: 420px; }
.inst-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.inst-ic { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.18); flex: none; }
.inst-steps { margin: 6px 0 4px; padding-left: 22px; line-height: 1.55; }
.inst-steps li { margin: 4px 0; }
.inst .ishare { width: 20px; height: 20px; vertical-align: -4px; color: #0a7aff; }
.list button.li { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.inst [hidden], .li[hidden] { display: none !important; }

/* QR-Code auf dem Startcode-Blatt */
.qrrow { display: flex; gap: 16px; align-items: center; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.qrrow p { margin: 0; }
.qrbox { flex: none; width: 150px; height: 150px; }
.qrbox svg { display: block; width: 150px; height: 150px; }
@media print { .qrrow { break-inside: avoid; } }

/* Material & Transporte (Bestellung neutral, Retoure leicht rot, Transport grau) */
.mk-order { --mk: #2f5d8a; --mkbg: #eef3f8; } .mk-return { --mk: #c4141f; --mkbg: #fdecee; } .mk-transport { --mk: #555; --mkbg: #f1f1ef; }
.mattiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mattile { background: var(--mkbg); border: 2px solid var(--mk); border-radius: 14px; padding: 14px 10px; text-align: center; text-decoration: none; color: var(--ink, #111); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mattile svg { width: 28px; height: 28px; color: var(--mk); } .mattile b { font-size: 1rem; } .mattile small { font-size: .74rem; color: var(--muted); }
.mathead { background: var(--mkbg); border-left: 6px solid var(--mk); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: .92rem; }
.mathead b { color: var(--mk); letter-spacing: .04em; }
.matcard { border-left: 6px solid var(--mk); background: var(--mkbg); }
.matli { border-left: 5px solid var(--mk); }
.matsearch { width: 100%; margin-bottom: 10px; }
.matgrp { background: #fff; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.matgrp > summary { padding: 12px 14px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.matgrp > summary::-webkit-details-marker { display: none; }
.matgrp[open] > summary { border-bottom: 1px solid var(--line); }
.matsub { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px 4px; }
.matrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.matimg { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #f3f3f1; display: grid; place-items: center; }
.matimg img { width: 100%; height: 100%; object-fit: cover; } .matimg.none svg { width: 22px; height: 22px; color: #bbb; }
.matname { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.matq { display: flex; gap: 6px; align-items: center; }
.matq input[type=number] { width: 74px; min-height: 40px; padding: 6px 8px; text-align: right; }
.matq select { min-height: 40px; padding: 4px 6px; max-width: 110px; }
.matu { font-size: .85rem; color: var(--muted); min-width: 34px; }
.matdel { display: inline-flex; align-items: center; gap: 2px; color: var(--bad, #c62828); cursor: pointer; }
.matdel input { width: 18px; height: 18px; }
.matbar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 10px 0; }
.prep { border-top: 1px solid var(--line); padding: 10px 4px; }
.prep.done { background: #e7f6ec; }
.prepchk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .prepchk input { width: 24px; height: 24px; flex: none; accent-color: #16653a; }
.prepx { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0 0 34px; font-size: .85rem; }
.prepx input[type=number] { width: 80px; min-height: 36px; padding: 4px 8px; } .prepx input[type=text] { flex: 1 1 180px; min-height: 36px; padding: 4px 8px; }
.li .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; }
.tag.bad { background: #fdecee; color: #c4141f; }
@media (max-width: 420px) { .mattiles { grid-template-columns: 1fr; } .mattile { flex-direction: row; text-align: left; } }
.matz { border-left: 5px solid var(--mk); background: var(--mkbg); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }

/* ---------- 0.10: Sicherheit & Schulungen, fixe Fahrzeuge ---------- */
.tabs.sub { margin-top: -6px; border-bottom-width: 1px; }
.tabs.sub a { padding: 6px 12px; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.bad b { color: #c4141f; }
.prose { line-height: 1.55; }
.prose p { margin: 0 0 10px; } .prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 10px; padding-left: 22px; } .prose li { margin: 3px 0; }
.prose h3 { font-size: 1rem; margin: 14px 0 6px; }
.prose a.tel { display: inline-block; font-weight: 700; color: #a10f19; background: #fff0f0; border: 1px solid #f2c2c5; border-radius: 99px; padding: 1px 10px; margin: 2px 0; text-decoration: none; white-space: nowrap; }
.prose a.tel::before { content: "\260E\FE0E  "; font-weight: 400; }
.vid { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin: 10px 0; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vidf { width: 100%; border-radius: 12px; background: #000; margin: 10px 0; }
.secq { border: 0; border-top: 1px solid var(--line); padding: 14px 0 6px; margin: 0; }
.secq legend { font-weight: 600; padding: 0; margin-bottom: 8px; line-height: 1.4; }
.secq-img { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; margin: 0 0 10px; }
.secopt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.secopt input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.secopt:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.sec-alarm { border: 2px solid #c4141f; background: #fff4f4; }
.sec-alarm b { color: #a10f19; }
.audit-h { margin: 18px 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.audit-it { border-left: 5px solid var(--line); }
.audit-it.st-ok { border-left-color: #1d8a4b; }
.audit-it.st-bad { border-left-color: #c4141f; }
.audit-it.st-na { border-left-color: #aaa; }
.aseg { display: flex; gap: 6px; flex-wrap: wrap; }
.aseg label { flex: 1; min-width: 92px; }
.aseg input { position: absolute; opacity: 0; pointer-events: none; }
.aseg span { display: block; text-align: center; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; font-size: .9rem; cursor: pointer; background: #fff; }
.aseg-ok input:checked + span { background: #e7f6ec; border-color: #1d8a4b; color: #146b38; }
.aseg-bad input:checked + span { background: #fdecee; border-color: #c4141f; color: #a10f19; }
.aseg-na input:checked + span { background: #f0f0f0; border-color: #999; color: #555; }
.audit-ph { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.audit-ph span { display: flex; flex-direction: column; gap: 2px; }
.audit-ph img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.avail-cat { grid-column: 1 / -1; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 0 2px; border-bottom: 1px solid var(--line); }
/* Vorlagen-Bibliothek */
a.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; color: inherit; text-decoration: none; }
a.chip.on { background: var(--ink, #141414); border-color: var(--ink, #141414); color: #fff; }
.libit .tag { margin: 3px 3px 0 0; font-weight: 600; }

/* Auf Handy und Tablet (Touch ohne Maus) nicht nötig, z. B. der Link zur Zentrale */
@media (hover: none) and (pointer: coarse) { .no-touch { display: none !important; } }
