@font-face { font-family: "Montserrat"; font-weight: 400; src: url(fonts/Montserrat-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 500; src: url(fonts/Montserrat-Medium.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 600; src: url(fonts/Montserrat-SemiBold.ttf) format("truetype"); font-display: swap; }
:root { --navy: #2b3b56; --blue: #088dc1; --blue-2: #0a7aa8; --soft: #f3f6f9; --line: #e3e8ee; --text: #24303f; --muted: #6b7785; --red: #b3261e; --amber: #9a5b00; --green: #1f7a45; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Montserrat", system-ui, sans-serif; color: var(--text); background: #fff; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.input { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 40px; }
.input:focus, .btn:focus-visible, .tab:focus-visible, .chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.field { display: block; margin-bottom: .9rem; }
.field span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 8px; padding: .55rem 1rem; font-weight: 600; background: var(--blue); color: #fff; min-height: 40px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--blue-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { min-height: 34px; padding: .35rem .75rem; font-size: .84rem; }
.btn.block { width: 100%; }
.msg { padding: .6rem .8rem; border-radius: 8px; font-size: .88rem; margin-bottom: .9rem; }
.msg.err { background: #fbe5e5; color: #8a1f1f; } .msg.ok { background: #e3f4e8; color: #1d5e33; }

/* Einzelkarte (Anmeldung) */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--soft); }
.card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
.card img { height: 34px; display: block; margin-bottom: 24px; }
.card h1 { font-size: 1.25rem; margin: 0 0 .25rem; color: var(--navy); font-weight: 600; }
.card p { color: var(--muted); margin: 0 0 1.3rem; font-size: .9rem; }
.small { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 1rem; }

/* App-Kopf */
header.head { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.head-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.head-in img { height: 28px; display: block; }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs.bottom { display: none; }
.tab { background: none; border: 0; padding: .5rem .8rem; border-radius: 8px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tab:hover { color: var(--navy); background: var(--soft); }
.tab.on { color: var(--navy); background: var(--soft); font-weight: 600; }
.tab .n { display: inline-block; min-width: 20px; margin-left: .35rem; padding: 0 .4rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.who { font-size: .8rem; color: var(--muted); text-align: right; line-height: 1.35; }
.who b { color: var(--navy); font-weight: 600; display: block; }
main { padding: 28px 0 80px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 18px; }
.page-h h1 { margin: 0; font-size: 1.35rem; color: var(--navy); font-weight: 600; }
.page-h p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.view { display: none; } .view.on { display: block; }
.bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.bar .input { width: auto; }
.bar input.input { flex: 1; min-width: 200px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .84rem; color: var(--muted); min-height: 34px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .75rem; font-weight: 500; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .88rem; }
tr:hover td { background: #fafbfd; }
.pname { font-weight: 600; color: var(--navy); }
.pmeta { color: var(--muted); font-size: .78rem; }
.c-prod .pmeta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.lbl { font-size: .72rem; font-weight: 600; white-space: nowrap; }
.lbl.deal { color: var(--red); } .lbl.stock { color: var(--green); } .lbl.request { color: var(--muted); font-weight: 500; } .lbl.new { color: var(--blue); }
.num { text-align: right; white-space: nowrap; }
.price b { color: var(--navy); }
.price s { color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.qty { width: 72px; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px; text-align: center; min-height: 34px; }
.rowact { display: flex; gap: 6px; justify-content: flex-end; }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }
.note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.box h2 { font-size: 1rem; margin: 0 0 .9rem; color: var(--navy); font-weight: 600; }
details.paste { border: 1px dashed #c6d2de; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; background: var(--soft); }
details.paste summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }
details.paste summary::-webkit-details-marker { display: none; }
details.paste summary::before { content: "+ "; color: var(--blue); }
details.paste[open] summary::before { content: "– "; }
details.paste summary span { color: var(--muted); font-weight: 400; font-size: .86rem; }
details.paste textarea { min-height: 130px; margin: 12px 0 10px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.src { color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.ok { color: var(--green); font-weight: 600; } .unsure { color: var(--amber); font-weight: 600; } .no { color: var(--red); font-weight: 600; }
.x { background: none; border: 0; color: var(--muted); font-size: 1.15rem; padding: .25rem .5rem; border-radius: 6px; min-width: 34px; min-height: 34px; }
.x:hover { background: #fbe5e5; color: var(--red); }
.total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 600; color: var(--navy); }
.status { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.s0 { color: var(--muted); } .s1 { color: var(--amber); } .s2 { color: var(--blue); } .s3 { color: var(--green); } .s9 { color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; transition: transform .25s; z-index: 60; max-width: calc(100% - 32px); font-size: .9rem; }
.toast.on { transform: translate(-50%, 0); }
.more-btn { display: block; margin: 16px auto 0; }

@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .who { display: none; } }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .head-in { height: 56px; }
  .head .tabs { display: none; }
  .tabs.bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 40; }
  .tab { font-size: .8rem; padding: .6rem .45rem; min-height: 44px; }
  main { padding: 18px 0 100px; }
  .toast { bottom: 84px; }
  table.cards thead { display: none; }
  table.cards, table.cards tbody { display: block; }
  table.cards tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
  table.cards td { border: 0; padding: 0; text-align: left; }
  table.cards td.full { grid-column: 1 / -1; }
  table.cards td.side { grid-column: 2; grid-row: 2 / 6; align-self: center; text-align: right; }
  tr:hover td { background: none; }
}

.center { align-content: center; gap: 18px; }
.legal { font-size: .8rem; color: var(--muted); text-align: center; padding: 18px 0 24px; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--blue); }
