/* Schriften liegen in der App (wie Mitra Time) – keine Verbindung zu Google, auch ohne Netz */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/barlow-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/barlow-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/barlow-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/barlow-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-semi-condensed-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Mitra Lager – Oberfläche im Look von Mitra Time und Bautagesbericht */
:root, [data-theme="light"] {
  --bg: #eef1f5; --surface: #ffffff; --surface2: #f6f8fb; --fg: #14213a; --muted: #5a677d; --line: #d9dfe8; --line2: #e8ecf2;
  --accent: #1d4a8f; --accent-fg: #ffffff; --accent-soft: #e3ebf7; --ink: #14213a; --ink-fg: #ffffff;
  --ok: #17803d; --ok-soft: #e1f2e6; --warn: #a65a00; --warn-soft: #fdf0de; --err: #b42318; --err-soft: #fbe4e1;
  --gold: #FBB300; --input: #b9c3d3; --shade: rgba(0, 15, 44, .5);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b1324; --surface: #131e33; --surface2: #18253d; --fg: #e8edf6; --muted: #a3afc4; --line: #2a3a57; --line2: #223150;
  --accent: #6f9ce6; --accent-fg: #0b1324; --accent-soft: #1d3157; --ink: #e8edf6; --ink-fg: #0b1324;
  --ok: #5cc985; --ok-soft: #173a27; --warn: #f0a650; --warn-soft: #3d2a12; --err: #f2867b; --err-soft: #43201d;
  --input: #3a4c6d; --shade: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #0b1324; --surface: #131e33; --surface2: #18253d; --fg: #e8edf6; --muted: #a3afc4; --line: #2a3a57; --line2: #223150;
    --accent: #6f9ce6; --accent-fg: #0b1324; --accent-soft: #1d3157; --ink: #e8edf6; --ink-fg: #0b1324;
    --ok: #5cc985; --ok-soft: #173a27; --warn: #f0a650; --warn-soft: #3d2a12; --err: #f2867b; --err-soft: #43201d;
    --input: #3a4c6d; --shade: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; overflow-x: clip; }
:root { --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }   /* kein Auto-Zoom auf dem iPhone */
[hidden] { display: none !important; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; }
h1, h2, h3 { margin: 0; }
.h1 { font-family: 'Barlow Semi Condensed', Barlow, sans-serif; font-weight: 700; font-size: 24px; line-height: 1.15; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 12px 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); min-width: 0; }
.brand .logo { height: 22px; width: auto; }
/* Logo in der Nachtschicht wie Mitra Time: Schrift weiß, das goldene Zeichen bleibt gold (Bild entsteht in der App) */
[data-theme="dark"] img.mitra-logo { content: var(--logo-dark); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] img.mitra-logo { content: var(--logo-dark); } }
.brandtxt { font-family: 'Barlow Semi Condensed', Barlow, sans-serif; font-weight: 700; font-size: 18px; white-space: nowrap; }
/* Sync-Knopf genau wie Mitra Time / Bautagesbericht: neutrale Pille, nur der Punkt zeigt den Zustand */
.sync { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 9px 5px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.sync:hover { border-color: var(--accent); }
.sync:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sync .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sync.wait .dot { background: var(--warn); }
.sync.error .dot { background: var(--err); }
.sync.error { border-color: var(--err); }
.sync .syncico { width: 14px; height: 14px; color: var(--muted); flex: 0 0 auto; }
.sync.busy .syncico { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sync.busy .syncico { animation: none; } }
@media (max-width: 759px) { .sync .synctxt { display: none; } .sync { padding: 5px 7px; } }
@media (min-width: 760px) and (max-width: 1219px) { .sync .synctxt { display: none; } }
@media (max-width: 340px) { .sync .syncico { display: none; } .sync { padding: 5px 6px; } }
@keyframes spin { to { transform: rotate(360deg); } }
.icon { width: 36px; height: 36px; border: 0; background: none; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; flex-shrink: 0; }
.icon.on { color: var(--accent); }
.tabs { display: none; }
@media (max-width: 380px) { .brandtxt { display: none; } }
@media (max-width: 340px) { .top .icon[data-a="lang"] { display: none; } }

/* ---------- Leisten ---------- */
.installbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--accent); color: var(--accent-fg); }
.installbar span { flex: 1; font-size: 14px; line-height: 1.3; }
.installbar .btn { height: 34px; padding: 0 12px; background: var(--surface); color: var(--accent); border: 0; }
.installbar .icon { color: var(--accent-fg); }
.banner { padding: 10px 16px; background: var(--warn-soft); color: var(--warn); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.banner.info { background: var(--accent-soft); color: var(--accent); }
.banner .btn { height: 32px; }

/* ---------- Inhalt ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.card.pad { padding: 12px 14px; }
.card > .head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 14px 4px; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line2); text-decoration: none; color: var(--fg); min-width: 0; }
.card > .row:first-child, .card > .head + .row { }
a.row:hover, button.row:hover { background: var(--surface2); }
button.row { width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; }
.row .main { flex: 1; min-width: 0; }
.row .t { display: block; font-weight: 600; overflow-wrap: anywhere; }
.row .s { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row .q { font-family: 'IBM Plex Mono', monospace; font-weight: 600; white-space: nowrap; }
.row .q.low, .s.low { color: var(--warn); font-weight: 600; }
.row .q.neg { color: var(--err); }
.row.mv { align-items: flex-start; }
.mvh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mvh .t { min-width: 0; }
.mvr { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.row.sub { padding-left: 34px; } .row.sub2 { padding-left: 54px; background: var(--surface2); }
.more { display: block; padding: 8px 14px 10px; border-top: 1px solid var(--line2); font-size: 13px; font-weight: 600; text-decoration: none; }
.thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--line2); color: var(--muted); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Barlow Semi Condensed', sans-serif; font-size: 16px; flex-shrink: 0; }
.empty { padding: 18px 14px; color: var(--muted); text-align: center; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--line2); color: var(--muted); white-space: nowrap; }
.badge.in { background: var(--ok-soft); color: var(--ok); } .badge.out { background: var(--warn-soft); color: var(--warn); }
.badge.blue { background: var(--accent-soft); color: var(--accent); } .badge.red { background: var(--err-soft); color: var(--err); }
.strike { text-decoration: line-through; opacity: .6; }

.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg a, .seg button { height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14px;
  border: 0; background: none; cursor: pointer; white-space: nowrap; padding: 0 6px; }
.seg .on { background: var(--ink); color: var(--ink-fg); font-weight: 600; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 13px;
  white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); font-weight: 600; }
.chip.warn.on { background: var(--warn); border-color: var(--warn); }

.search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 12px; background: var(--surface); border: 1px solid var(--input); border-radius: 10px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--surface); color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.big { height: 50px; font-size: 16px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.ghost { border-color: var(--line); color: var(--fg); }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent-fg); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn:not(.primary).busy::after { border-color: var(--accent); border-right-color: transparent; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 600; cursor: pointer; text-align: left; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.f input, label.f select, label.f textarea, .inp { height: 46px; padding: 0 12px; border: 1px solid var(--input); border-radius: 10px; background: var(--surface); color: var(--fg); font-weight: 400; width: 100%; }
label.f textarea { height: auto; min-height: 70px; padding: 10px 12px; }
label.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
label.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 12px; }
.qty { display: flex; gap: 8px; align-items: center; }
.qty .step { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 22px; cursor: pointer; flex-shrink: 0; }
.qty input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--input); border-radius: 10px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 20px; background: var(--surface); }
.qty .unit { font-weight: 600; min-width: 34px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { flex: 1; min-width: 70px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); font-size: 13px; cursor: pointer; }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; }
.total .q { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 26px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; color: var(--fg); }
.note.warn { background: var(--warn-soft); }
.line { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.line.cur { border-color: var(--accent); }
.line .lh { display: flex; align-items: flex-start; gap: 8px; }
.err { color: var(--err); font-size: 14px; min-height: 1em; margin: 0; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps .n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--ink-fg); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.scroll-x { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl td.num { text-align: right; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
details.col > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 600; }
details.col > summary::-webkit-details-marker { display: none; }
details.col > summary::after { content: '›'; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
details.col[open] > summary::after { transform: rotate(-90deg); }
details.col > .body { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.plat { border-top: 1px solid var(--line2); padding-top: 8px; }
.plat b.t { color: var(--accent); display: block; }

/* ---------- Dialog, Meldung ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--shade); display: grid; place-items: center; padding: 16px; }
.sheetbox { background: var(--surface); width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; padding: 18px; border-radius: 14px; border-top: 4px solid var(--gold); }
.sheetbox h2 { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.sheetbox .actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.pick { max-height: 46dvh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--safe-b)); z-index: 60; background: var(--ink); color: var(--ink-fg);
  padding: 10px 16px; border-radius: 10px; max-width: calc(100vw - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: 14px; }
.toast.red { background: var(--err); color: #fff; }

/* ---------- Fußzeile ---------- */
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 10px 16px calc(96px + var(--safe-b)); display: flex; flex-direction: column; gap: 3px; align-items: center; }
.slogan { font-weight: 700; color: var(--fg); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.sunbtn { border: 0; background: none; padding: 2px; cursor: pointer; line-height: 0; }

/* ---------- Untere Navigation (Handy) ---------- */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(10px + var(--safe-b)); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 12px; min-width: 0; }
.bottomnav a.on { color: var(--accent); font-weight: 600; }
.bottomnav a.plus { justify-self: center; width: 56px; height: 56px; margin-bottom: 2px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); justify-content: center; padding: 0; }

@media (min-width: 761px) {
  .bottomnav { display: none; }
  .foot { padding-bottom: calc(24px + var(--safe-b)); }
  .toast { bottom: 24px; }
  .tabs { display: flex; gap: 4px; margin-left: 12px; }
  .tabs a { padding: 7px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14px; white-space: nowrap; }
  .tabs a.on { background: var(--ink); color: var(--ink-fg); font-weight: 600; }
  .tabs a.plus { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
}
@media (max-width: 760px) {
  .sheet { padding: 0; align-items: end; }
  .sheetbox { max-height: 94dvh; border-radius: 16px 16px 0 0; padding: 18px 18px calc(22px + var(--safe-b)); max-width: none; }
  .hide-m { display: none !important; }
}
@media (min-width: 761px) { .hide-d { display: none !important; } }

/* ---------- Anmeldung ---------- */
/* ---- Anmeldung wie Mitra Time (Standard der Mitra-Apps) ---- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.auth[hidden] { display: none; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px; display: flex; flex-direction: column; gap: 16px; }
.auth-card[hidden] { display: none; }
.auth-card .logo { height: 44px; width: auto; align-self: flex-start; }
.auth-card h1 { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 26px; font-weight: 700; margin: 0; letter-spacing: .01em; line-height: 1.45; }
.auth-card .small, .small { font-size: 13.5px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auth-card input, .regform input, .regform textarea { min-height: 42px; padding: 9px 10px; font: inherit; font-size: 16px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); width: 100%; }
.auth-card .btn { width: 100%; justify-content: center; height: auto; min-height: 52px; border-radius: 8px; font-size: 16.5px; font-weight: 600; }
.auth-card .linkbtn { align-self: flex-start; font: inherit; font-weight: 600; }
.authlinks { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.note.bad { background: var(--err-soft); color: var(--err); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note[hidden] { display: none; }
.auth-card p.note { margin: 0; font-size: 14px; }
.slogan { display: inline-flex; align-items: center; gap: 4px; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; color: var(--fg); letter-spacing: .01em; }
.sunbtn { background: none; border: 0; padding: 3px; display: flex; cursor: pointer; }
.sunbtn svg { transition: transform .3s; }
.sunbtn:hover svg { transform: rotate(45deg) scale(1.12); }
.login-slogan { margin-top: 8px; font-size: 20px; }
.login-slogan .sunbtn svg { width: 30px; height: 30px; }
.claim { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.authprefs { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.authlang { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.authlang .linkbtn, .auththeme .linkbtn { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; font-size: 15px; }
.auththeme { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.auththeme .linkbtn { gap: 6px; font-size: 14px; }
.auththeme .linkbtn svg { width: 16px; height: 16px; }
.authlang .linkbtn[aria-pressed="true"], .auththeme .linkbtn[aria-pressed="true"] { color: var(--fg); font-weight: 700; }
.flag { display: inline-flex; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 18%, transparent); flex: none; }
.flag svg { width: 100%; height: 100%; display: block; }
.appfoot { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 12px; color: var(--muted); line-height: 1.6; margin: 4px 0 0; }
.appfoot .slogan { font-size: 13px; }
.appfoot .slogan .sunbtn svg { width: 20px; height: 20px; }
.appfoot .linkbtn { font-weight: 400; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; }
.eu { display: inline-flex; align-items: center; gap: 5px; }
.eu svg { width: 12px; height: 12px; }
.regform { display: flex; flex-direction: column; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; overflow-wrap: anywhere; }

#rescue { position: fixed; inset: 0; padding: 32px 16px; background: #fff; color: #14213a; z-index: 99; font-family: system-ui; }

/* ---------- Änderungsliste als Zeitleiste (wie Mitra Time) ---------- */
.cl-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cl-chip { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cl-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.cl-line { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.cl-line::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 10px; width: 2px; background: var(--line); }
.cl-item { position: relative; padding-bottom: 18px; }
.cl-dot { position: absolute; left: -22px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); box-sizing: border-box; }
.cl-item.now .cl-dot { border-color: #FBB300; background: #FBB300; box-shadow: 0 0 0 4px rgba(251, 179, 0, .25); }
.cl-item.fix .cl-dot { border-color: var(--warn); }
.cl-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cl-v { font-weight: 700; font-size: 16px; }
.cl-d { margin-left: auto; color: var(--muted); font-size: 13px; font-family: 'IBM Plex Mono', monospace; }
.cl-new { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #FBB300; color: #000F2C; }
.cl-fixb { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--warn); color: var(--warn); }
.chglog .cl-item ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.chglog .cl-item li { position: relative; padding-left: 14px; line-height: 1.45; }
.chglog .cl-item li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.cl-rest { color: var(--muted); }
.cl-more { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; padding: 4px 0; cursor: pointer; }

/* ===== 0.2.0 ===== */
/* Team-Hinweis an der Navigation (offene Zugangsanfragen) */
.bottomnav a, .tabs a { position: relative; }
.navdot { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.tabs .navdot { position: static; display: inline-block; margin-left: 6px; }
/* Suche mit Scan-Knopf */
.searchrow { display: flex; gap: 8px; }
.searchrow .search { flex: 1; min-width: 0; }
.scanbtn { width: 48px; flex: none; border: 1px solid var(--input); background: var(--surface); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); cursor: pointer; }
.scanbox { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-height: 50vh; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanframe { position: absolute; inset: 18% 14%; border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
/* Buchen: Auswahl und farbiger Kopf (grün = rein, orange = raus) */
.acts { display: flex; flex-direction: column; gap: 8px; }
.act { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; font: inherit; width: 100%; }
.act:hover { border-color: var(--accent); }
.act b { display: block; font-size: 16px; }
.act .s { display: block; font-size: 13px; color: var(--muted); }
.ic { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.ic.in { background: var(--ok-soft); color: var(--ok); } .ic.out { background: var(--warn-soft); color: var(--warn); }
.ic.mv { background: var(--accent-soft); color: var(--accent); } .ic.ct { background: var(--line2); color: var(--fg); }
.modehead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid; }
.modehead b { display: block; font-family: 'Barlow Semi Condensed', sans-serif; font-size: 20px; line-height: 1.2; }
.modehead span { display: block; font-size: 13px; color: var(--fg); }
.modehead .linkbtn { white-space: nowrap; font-size: 14px; }
.modehead.in { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.modehead.out { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.modehead.mv { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.modehead.ct { background: var(--surface); color: var(--fg); border-color: var(--line); }
.acts4 .btn { gap: 6px; }
.acts4 .btn svg { width: 18px; height: 18px; flex: none; }
.btn.act-out { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.btn.act-in { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.quick button.pk { font-weight: 700; }
/* Team: Anfragen */
.row.req { flex-wrap: wrap; }
.row.req .main { flex: 1 1 100%; }
.reqact { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; flex: 1 1 100%; }
.row.req .flag { vertical-align: -2px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-left: 4px; }
.btn svg { flex: none; }
.seg a, .seg button { height: auto; min-height: 36px; padding: 4px 6px; text-align: center; line-height: 1.15; }

/* ---------- Einführung wie Mitra Time: Tour auf der echten App, Markierung des Elements ---------- */
.tour { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tour.dim { background: rgba(0, 0, 0, .55); pointer-events: auto; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .55); outline: 3px solid var(--gold); outline-offset: 0; transition: all .2s ease; pointer-events: none; }
.tour-card { position: fixed; left: 16px; right: 16px; bottom: calc(96px + var(--safe-b)); margin: 0 auto; max-width: 460px; max-height: calc(100vh - 190px); overflow: auto;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; pointer-events: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tour-card.up { bottom: auto; top: calc(76px + var(--safe-t)); }
@media (min-width: 760px) { .tour-card { bottom: 32px; } .tour-card.up { top: 120px; } }
.tour-card h2 { font-size: 21px; margin: 0; }
.tour-card .actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 0; }
.tourhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tourbar { display: flex; gap: 6px; } .tourbar span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); } .tourbar span.on { background: var(--accent); }
.tour-body { display: flex; flex-direction: column; gap: 8px; font-size: 15px; } .tour-body p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* ---------- Standardkatalog ---------- */
.ckbox { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--input); display: grid; place-items: center; flex: none; color: var(--accent-fg); font-weight: 700; font-size: 14px; }
.ckbox.on { background: var(--accent); border-color: var(--accent); }
.row.dim { opacity: .55; }

/* 0.4.0 – Kupferpreis, zwei Einkaufspreise, Hilfe */
.cuchip { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; padding: 6px 12px; margin: 0 auto 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.cuchip:hover { border-color: var(--accent); }
.cudot { width: 10px; height: 10px; border-radius: 50%; background: #b87333; flex: 0 0 auto; }
.cuchip .up, .cubig .up { color: var(--ok); font-weight: 600; } .cuchip .down, .cubig .down { color: var(--err); font-weight: 600; }
.cubig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; } .cubig .v { font-size: 30px; font-weight: 700; }
.cuaxis { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.preiscard .gh { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.preiscard .ghn { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.best { color: var(--ok); font-weight: 600; }
.helpq { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-left: 4px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 700 13px/1 inherit; cursor: pointer; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.helpq:hover { border-color: var(--accent); }
.helpbody p { margin: 0 0 8px; } .helpbody ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.helpitem summary { font-weight: 600; }
.helpitem + .helpitem { border-top: 1px solid var(--line); }
