/* Anfragetool Badewannendoktor – Optik angelehnt an das Partnerportal */
:root {
  color-scheme: light;
  --navy: #2B3970; --navy-dark: #222e5c; --slate: #466680; --teal: #6CB6C3; --teal-light: #9FD9E3; --ice: #C5F2F9;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #dbe3ea; --soft: #f4f8fa; --card: #ffffff;
  --ok: #16a34a; --ok-bg: #dcfce7; --ok-ink: #166534;
  --warn: #d97706; --warn-bg: #fef3c7; --warn-ink: #92400e;
  --danger: #dc2626; --danger-bg: #fee2e2; --danger-ink: #991b1b;
  --info-bg: #e8f4f7; --wa: #1fa855; --wa-dark: #178a45;
  --demo-bg: #fff7e0; --demo-ink: #7a5a00; --demo-line: #f2dc9b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3 { text-wrap: balance; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Team-Bereich ---------- */
.tophead { background: linear-gradient(160deg, #2B3970 0%, #24315f 60%, #1d2850 100%); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.tophead-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap; padding-block: 8px; }
.tophead a { text-decoration: none; color: inherit; }
.tophead img { width: 190px; height: auto; display: block; }
.tophead .sub { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #9fb2c9; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav button, .nav .navl { background: transparent; border: 0; color: #cbd5e1; padding: 9px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.nav button svg, .nav .navl svg { width: 18px; height: 18px; }
.nav button:hover, .nav .navl:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav button.on, .nav .navl.on { background: rgba(108,182,195,.25); color: #fff; }
.nav .pill { background: var(--teal); color: var(--navy); border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.wrap { max-width: 1180px; margin: 0 auto; padding-block: 26px 60px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { margin: 0; font-size: 24px; letter-spacing: -.3px; color: var(--navy); }
.pagehead p { margin: 2px 0 0; color: var(--muted); }

.card { background: var(--card); border-radius: var(--r); border: 1px solid #e6edf2; box-shadow: 0 1px 2px rgba(43,57,112,.05); padding: 22px; }
.card h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.card .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.25; white-space: normal; text-align: center; max-width: 100%; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(43,57,112,.22); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary { background: #e6edf2; color: var(--ink-2); }
.btn-secondary:hover { background: #d6e0e8; }
.btn-outline { background: #fff; color: var(--ink-2); border: 1px solid #cfd9e2; }
.btn-outline:hover { border-color: var(--slate); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(31,168,85,.25); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; min-height: 54px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Start */
.start { max-width: 560px; margin: 10px auto 0; display: grid; gap: 14px; }
.big { display: flex; align-items: center; gap: 18px; padding: 24px 22px; border-radius: 18px; border: 2px solid transparent; cursor: pointer; text-align: left; width: 100%; background: var(--card); box-shadow: 0 1px 2px rgba(43,57,112,.06), 0 14px 30px rgba(43,57,112,.08); color: var(--ink); }
.big:hover { border-color: var(--teal); }
.big .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; background: var(--navy); color: #fff; }
.big .ico svg { width: 28px; height: 28px; }
.big b { display: block; font-size: 21px; letter-spacing: .5px; color: var(--navy); }
.big small { display: block; color: var(--muted); font-size: 14px; }
.big.soon { cursor: not-allowed; opacity: .55; box-shadow: none; background: #eef2f5; }
.big.soon .ico { background: #94a3b8; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e2e8f0; color: var(--muted); vertical-align: middle; margin-left: 6px; }
.linkish { background: none; border: 0; color: var(--slate); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px; justify-self: center; }
.linkish:hover { color: var(--navy); }
.general { margin-top: 26px; }
.copyrow { display: flex; gap: 8px; flex-wrap: wrap; }
.copyrow input { flex: 1; min-width: 0; }

/* Linkgenerator */
.gen { max-width: 520px; margin: 0 auto; }
.detect { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-top: 10px; min-height: 22px; color: var(--muted); }
.detect.mail { color: var(--slate); } .detect.wa { color: var(--wa-dark); } .detect.bad { color: var(--danger); }
.detect svg { width: 18px; height: 18px; }
.preview { margin-top: 18px; border-radius: 14px; background: #e7f6ec; border: 1px solid #c6e9d3; padding: 14px 16px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.preview.mail { background: var(--info-bg); border-color: #cfe7ee; }
.preview .ph { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; white-space: normal; }
.backlink { background: none; border: 0; color: var(--slate); font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 14px; display: inline-flex; gap: 6px; align-items: center; }

/* Felder */
.f-label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.f-input { width: 100%; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid #cfd9e2; background: #fbfdfe; color: var(--ink); min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.f-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(108,182,195,.22); background: #fff; }
.f-input[readonly] { background: #eef2f5; color: var(--muted); border-color: #e2e8f0; }
.f-input.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.f-help { font-size: 13px; color: var(--muted); margin-top: 5px; }
.f-err { font-size: 13px; color: var(--danger); margin-top: 5px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-plz { display: grid; grid-template-columns: 130px 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
.fields { display: grid; gap: 14px; }
.lock { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.lock svg { width: 13px; height: 13px; }
.opt { font-weight: 500; color: var(--muted); font-size: 13px; }

/* Übersicht */
.toolbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .f-input { padding-left: 40px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; }
.tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab .c { opacity: .6; font-weight: 800; }
.tablecard { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #f7fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: #f8fbfc; }
.cid { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); white-space: nowrap; }
.strong { font-weight: 700; }
.sub2 { display: block; font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-sent { background: #e8eef7; color: var(--slate); }
.b-done { background: var(--ok-bg); color: var(--ok-ink); }
.b-upd { background: var(--info-bg); color: #1f6b78; }
.b-exp { background: #eef1f4; color: #7b8794; }
.b-miss { background: var(--warn-bg); color: var(--warn-ink); }
.gw { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: #eef3f8; color: var(--navy); white-space: nowrap; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.btn-wt { background: #fff; color: var(--navy); border: 1px solid var(--teal); }
.btn-wt:hover { background: var(--ice); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.example-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.num { font-variant-numeric: tabular-nums; }

/* Einstellungen */
.settings { display: grid; gap: 18px; max-width: 900px; }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }

/* Modal / Drawer */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 700px) { .overlay { align-items: center; padding: 24px; } }
.modal { background: #fff; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 22px 22px calc(env(safe-area-inset-bottom, 0px) + 22px); }
@media (min-width: 700px) { .modal { border-radius: 20px; } }
.modal.wide { max-width: 900px; }
.mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mhead h3 { margin: 0; font-size: 19px; color: var(--navy); }
.x { background: #eef2f5; border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--ink-2); flex: 0 0 auto; }
.modal img.messen { width: 100%; border-radius: 12px; display: block; }
dl.info { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14.5px; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; word-break: break-word; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ph-box { aspect-ratio: 1; border-radius: 10px; background: repeating-linear-gradient(45deg, #e6edf2, #e6edf2 8px, #eef3f6 8px, #eef3f6 16px); display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; padding: 6px; max-width: 100%; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 12px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline small { color: var(--muted); display: block; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

/* ---------- Kundenformular ---------- */
.cust { min-height: 100%; background: radial-gradient(700px 380px at 100% 0%, rgba(108,182,195,.18), transparent 70%), radial-gradient(600px 380px at 0% 100%, rgba(43,57,112,.08), transparent 70%), var(--soft); padding-block: 22px 40px; }
.cwrap { max-width: 620px; margin: 0 auto; }
.clogo { display: block; width: 240px; max-width: 70%; height: auto; margin: 4px auto 4px; }
.clogo-sub { text-align: center; color: var(--slate); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.ccard { background: #fff; border-radius: 20px; border: 1px solid #e6edf2; box-shadow: 0 1px 2px rgba(43,57,112,.06), 0 18px 40px rgba(43,57,112,.10); padding: 26px 22px; }
@media (min-width: 640px) { .ccard { padding: 32px 32px; } }
.progress { display: flex; gap: 6px; margin-bottom: 8px; }
.progress span { flex: 1; height: 6px; border-radius: 99px; background: #e2eaf0; }
.progress span.on { background: var(--teal); }
.progress span.cur { background: var(--navy); }
.stepinfo { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 18px; gap: 10px; }
.stepinfo .case { font-variant-numeric: tabular-nums; color: var(--slate); }
.ccard h2 { margin: 0 0 6px; font-size: 23px; color: var(--navy); letter-spacing: -.2px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.lead strong { color: var(--ink-2); }
.cnav { display: flex; gap: 10px; margin-top: 24px; }
.cnav .btn-primary { flex: 1; }
.staffbar { background: var(--ice); color: var(--navy); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.tiles { display: grid; gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 14px; border: 2px solid #e2eaf0; background: #fbfdfe; cursor: pointer; color: var(--ink); }
.tile:hover { border-color: var(--teal-light); }
.tile.on { border-color: var(--navy); background: #f2f5fb; box-shadow: 0 0 0 4px rgba(43,57,112,.08); }
.tile .ti { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--navy); flex: 0 0 auto; }
.tile .ti svg { width: 26px; height: 26px; }
.tile b { display: block; font-size: 17px; color: var(--navy); }
.tile small { display: block; color: var(--muted); font-size: 14px; }
.tile .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; flex: 0 0 auto; }
.tile.on .radio { border: 7px solid var(--navy); }

.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn button { padding: 14px; border-radius: 12px; border: 2px solid #e2eaf0; background: #fbfdfe; font-weight: 700; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.yn button.on { border-color: var(--navy); background: #f2f5fb; color: var(--navy); }
.addrbox { margin-top: 16px; padding: 16px; border-radius: 14px; background: #f7fafc; border: 1px solid var(--line); }
.addrbox h4 { margin: 0 0 12px; font-size: 15px; color: var(--navy); }
.addrcopy { background: #f7fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px; }

.upl { border-radius: 14px; border: 1px solid var(--line); padding: 14px; background: #fbfdfe; }
.upl + .upl { margin-top: 12px; }
.upl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.upl-head b { color: var(--navy); display: block; }
.upl-head small { color: var(--muted); font-size: 13px; display: block; }
.cnt { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2f5; color: var(--muted); white-space: nowrap; }
.cnt.ok { background: var(--ok-bg); color: var(--ok-ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e6edf2; max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.addph { aspect-ratio: 1; border-radius: 10px; border: 2px dashed #b9c8d4; display: grid; place-items: center; text-align: center; color: var(--slate); font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; padding: 4px; max-width: 100%; }
.addph:hover { border-color: var(--teal); background: #f4fbfc; }
.addph svg { width: 24px; height: 24px; display: block; margin: 0 auto 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.measure { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.measure .x2 { padding-bottom: 14px; color: var(--muted); font-weight: 700; }
.unit { position: relative; }
.unit .f-input { padding-right: 46px; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.howto { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid #cfe7ee; background: var(--info-bg); cursor: pointer; text-align: left; margin-top: 12px; color: var(--ink); }
.howto img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; }
.howto b { color: var(--navy); display: block; }
.howto small { color: var(--muted); }
.later { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; cursor: pointer; }
.later input, .chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: 0 0 auto; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.chk a { color: var(--slate); font-weight: 600; }
.summary { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary .row:last-child { border-bottom: 0; }
.summary .row span:first-child { color: var(--muted); flex: 0 0 auto; }
.summary .row span:last-child { text-align: right; min-width: 0; word-break: break-word; }
.summary .edit { background: none; border: 0; color: var(--slate); font-weight: 600; cursor: pointer; padding: 0; font-size: 13px; }
.done { text-align: center; padding: 10px 0; }
.done .check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.done .check svg { width: 38px; height: 38px; }
.cfoot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.cfoot a { color: var(--slate); font-weight: 600; text-decoration: none; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.notice.info { background: var(--info-bg); color: #1f5560; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }

@media (max-width: 700px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search { grid-column: 1 / -1; }
  .sgrid, .grid2 { grid-template-columns: 1fr; }
  .grid-plz { grid-template-columns: 110px 1fr; }
  .tophead img { width: 150px; }
  .nav { margin-left: 0; width: 100%; }
  .nav button, .nav .navl { padding: 8px 10px; font-size: 14px; }
  .nav button .lbl-long { display: none; }
  .wrap { padding-block: 18px 50px; }
  /* Tabelle wird zu Karten */
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 3px 0; }
  td.hide-m { display: none; }
  .actions { justify-content: flex-start; margin-top: 8px; }
  dl.info { grid-template-columns: 1fr; gap: 2px; }
  dl.info dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Ergänzungen für die echte Anwendung ---------- */
html, body { min-height: 100%; }
a { color: var(--slate); }
.alert { border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; font-weight: 600; font-size: 14.5px; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); }
.alert-error { background: var(--danger-bg); color: var(--danger-ink); }
.nav form { margin: 0; }
.nav .logout { color: #9fb2c9; }
a.btn { color: inherit; }
a.btn-primary, a.btn-wa { color: #fff; }
.tab { text-decoration: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.pager span.cur { background: var(--navy); color: #fff; border-color: var(--navy); }
tbody tr a.rowlink { color: inherit; text-decoration: none; }
.filterbtn { display: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.card h4 { margin: 0 0 10px; color: var(--navy); font-size: 15px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); max-width: 100%; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 6px; }
.photo-grid figcaption button { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 12px; padding: 0; }
.photo-cat { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .6px; }
.photo-cat:first-child { margin-top: 0; }
.actionlist { display: grid; gap: 8px; }
.actionlist form { margin: 0; }
.actionlist .btn { width: 100%; justify-content: flex-start; }
.actrow { display: flex; gap: 8px; flex-wrap: wrap; }
.actrow form { margin: 0; flex: 1; min-width: 140px; }
.actrow .btn { width: 100%; }
.timeline li.team::before { background: var(--navy); }
.timeline li.system::before { background: var(--warn); }
.timeline li.note::before { background: var(--slate); }
.timeline li.note .txt { background: #f4f7fa; border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; }
details.danger summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: 14px; list-style: none; }
details.danger summary::-webkit-details-marker { display: none; }
details.danger[open] summary { margin-bottom: 10px; }
.btn-danger { background: var(--danger); color: #fff; }
.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; min-width: 0; font-size: 13px; min-height: 40px; padding: 8px 10px; }
.handoff { max-width: 520px; margin: 30px auto 0; text-align: center; }
.handoff .ico-big { width: 72px; height: 72px; border-radius: 50%; background: #e7f6ec; color: var(--wa); display: grid; place-items: center; margin: 0 auto 14px; }
.handoff .ico-big svg { width: 40px; height: 40px; }
.users { list-style: none; margin: 0 0 16px; padding: 0; }
.users li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.users form { margin: 0; }
select.f-input { appearance: auto; }
textarea.f-input { min-height: 90px; resize: vertical; line-height: 1.45; }
.f-check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.f-check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Login */
.login { max-width: 420px; margin: 0 auto; }
.login .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 20px; }

/* Rechtstext */
.legal { font-size: 15px; color: var(--ink-2); }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal h3 { font-size: 15.5px; margin: 18px 0 6px; color: var(--navy); }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }

/* Upload-Fortschritt */
.uploading { position: fixed; inset: 0; background: rgba(255,255,255,.92); z-index: 90; display: grid; place-items: center; padding: 24px; }
.uploading .box { width: 100%; max-width: 360px; text-align: center; }
.uploading b { color: var(--navy); font-size: 18px; display: block; margin-bottom: 12px; }
.bar { height: 10px; border-radius: 99px; background: #e2eaf0; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); width: 0; transition: width .2s; }
.uploading small { display: block; margin-top: 10px; color: var(--muted); }
.thumb.existing::after { content: "gespeichert"; position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.9); color: var(--ok-ink); border-radius: 6px; padding: 1px 5px; }
.thumb.busy { opacity: .5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(2,6,23,.94); display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: calc(env(safe-area-inset-top, 0px) + 56px) 12px 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #cbd5e1; padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); font-size: 14px; }
.lb-bar a { color: #cbd5e1; }
.lb-btn { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 10px); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .lb-prev, .lb-next { display: none; }
  .nav .lbl-long { display: none; }
}
.nav .navl { text-decoration: none; font-size: 15px; font-family: inherit; }
.copybox .btn { width: auto; flex: 0 0 auto; justify-content: center; }
.actrow .btn { justify-content: center; }
a.big { text-decoration: none; }
.big.soon:hover { border-color: transparent; }
.copyrow input { flex: 1 1 240px; }
.cust { min-height: 100vh; box-sizing: border-box; }
b.num, .case { white-space: nowrap; }
