/* 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 rgba(230,46,59,.18); }
: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: #f6c3c7; color: #a8121e; }
.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; }
