/* My Yacht Claims – Design „Deckplan + Bordbuch" (Entwurf B als Desktop-Sprache, C als mobile Bedienung)
   Werftzeichnung: kühles Papier, Konstruktionsraster, Petrol-Linien, Signalrot nur für Claim-Pins/Fehler.
   Typo: Archivo (Text) / Archivo Narrow (Überschriften, Labels) / JetBrains Mono (IDs, Fristen, Maße). */
:root {
  --paper: #f7f9fa; --paper-2: #eef3f5; --surface: #ffffff; --ink: #0d2b3a; --ink-2: #33505f; --muted: #5f7784;
  --line: #c9d6dd; --line-2: #e1e9ed; --grid: rgba(13, 75, 99, .055);
  --petrol: #0b5a73; --petrol-2: #0f7391; --petrol-soft: #e2f0f4;
  --signal: #d7262e; --signal-soft: #fde8e8; --amber: #b86e00; --amber-soft: #fff1d9; --green: #1d7a4a; --green-soft: #e1f3e8;
  --violet: #5b4fc4; --violet-soft: #ecebfb; --blue: #1f63b8; --blue-soft: #e4eefb;
  --shadow: 0 1px 2px rgba(13, 43, 58, .06), 0 6px 18px rgba(13, 43, 58, .06);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-narrow: "Archivo Narrow", "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 10px; --r-lg: 14px; --tap: 48px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1a22; --paper-2: #10232d; --surface: #112733; --ink: #e5eff3; --ink-2: #bcd0d9; --muted: #8aa3af;
    --line: #26414f; --line-2: #1b3340; --grid: rgba(120, 200, 230, .05);
    --petrol: #4fb6d3; --petrol-2: #74c9e0; --petrol-soft: #123a49;
    --signal: #ff5a5f; --signal-soft: #3a1416; --amber: #f0a73a; --amber-soft: #3a2a10; --green: #4fc486; --green-soft: #12301f;
    --violet: #a59cf5; --violet-soft: #241f4a; --blue: #7fb2f0; --blue-soft: #132a47; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font); -webkit-text-size-adjust: 100%;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
h1, h2, h3, h4 { font-family: var(--font-narrow); letter-spacing: .005em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; } h2 { font-size: 20px; } h3 { font-size: 16px; }
a { color: var(--petrol); } a:hover { color: var(--petrol-2); }
img { max-width: 100%; display: block; }
.ico { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono, code { font-family: var(--mono); font-size: .9em; font-variant-numeric: tabular-nums; }
.small { font-size: 13px; } .muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--petrol-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--petrol); color: var(--ink); }
.btn.primary { background: var(--petrol); border-color: var(--petrol); color: #fff; } .btn.primary:hover { background: var(--petrol-2); color: #fff; }
.btn.danger { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.block { width: 100%; } .btn.big { min-height: var(--tap); font-size: 16px; padding: 12px 20px; }
.btn:disabled { opacity: .55; cursor: wait; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); border: 0; background: transparent; color: var(--ink-2); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font: 600 12px/1.6 var(--font); white-space: nowrap; border: 1px solid transparent; }
.chip.trade { font-family: var(--mono); font-weight: 600; font-size: 11px; background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
.st-neu { background: var(--blue-soft); color: var(--blue); } .st-pruefung { background: var(--violet-soft); color: var(--violet); }
.st-freigegeben { background: var(--petrol-soft); color: var(--petrol); } .st-beauftragt { background: var(--amber-soft); color: var(--amber); }
.st-in_arbeit { background: var(--amber); color: #fff; } .st-erledigt { background: var(--green-soft); color: var(--green); }
.st-abgenommen { background: var(--green); color: #fff; } .st-nacharbeit { background: var(--signal-soft); color: var(--signal); } .st-abgelehnt { background: var(--paper-2); color: var(--muted); text-decoration: line-through; }
.pr-kritisch { border-color: var(--signal); color: var(--signal); } .pr-hoch { border-color: var(--amber); color: var(--amber); }
.pr-normal { border-color: var(--line); color: var(--ink-2); } .pr-kosmetisch { border-color: var(--line-2); color: var(--muted); }
.chip.due { font-family: var(--mono); font-weight: 600; font-size: 11.5px; } .due-over { background: var(--signal); color: #fff; } .due-soon { background: var(--amber-soft); color: var(--amber); } .due-ok { color: var(--ink-2); background: var(--paper-2); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--signal); color: #fff; font: 700 11px/20px var(--mono); text-align: center; }
.badge:empty { display: none; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 4px 6px; }
.brand strong { display: block; font: 700 15px/1.1 var(--font-narrow); letter-spacing: .06em; text-transform: uppercase; } .brand small { color: var(--muted); font: 11px var(--mono); }
.logo { width: 34px; height: 34px; flex: none; }
.who { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.who strong { display: block; font-size: 13.5px; } .who small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: #fff; font: 700 13px var(--font-narrow); flex: none; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side ul a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.side ul a:hover { background: var(--paper-2); color: var(--ink); }
.side ul a.active { background: var(--petrol-soft); color: var(--ink); border-left-color: var(--signal); font-weight: 650; }
.side-foot { margin-top: auto; padding: 10px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); font-size: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; color: var(--ink); min-width: 0; }
.top-actions { margin-left: auto; display: flex; gap: 4px; }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--signal); color: #fff; font: 700 10px/16px var(--mono); text-align: center; padding: 0 3px; }
#outlet { padding: 24px; outline: none; min-width: 0; }
.only-mobile { display: none; }
.bottom { display: none; } .scrim { display: none; }

/* ---------- Seiten-Bausteine ---------- */
.page { display: grid; gap: 20px; max-width: 1480px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }
.eyebrow { font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; min-width: 0; }
.card > h2, .card > h3, .card-head { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.kpi { padding: 14px 16px; border-right: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.kpi:last-child { border-right: 0; } .kpi b { display: block; font: 700 30px/1.1 var(--font-narrow); font-variant-numeric: tabular-nums; } .kpi span { color: var(--muted); font-size: 13px; }
.kpi.alert b { color: var(--signal); } .kpi.warn b { color: var(--amber); } .kpi.good b { color: var(--green); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line-2); } .list > li:last-child { border-bottom: 0; }
.list > li > a, .list > li > .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 4px; text-decoration: none; color: inherit; }
.list li.unread { font-weight: 600; } .list small { color: var(--muted); white-space: nowrap; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dl > div { padding: 10px 12px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.dl dt, .dl .k { font: 600 10.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.dl dd, .dl .v { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font: 600 14px var(--font); color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs .active { color: var(--ink); border-bottom-color: var(--signal); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 14px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--paper); }

/* ---------- Tabellen / Positionslisten ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; } .t tbody tr { cursor: pointer; } .t tbody tr:hover { background: var(--paper-2); }
.t .num { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.pos { display: inline-grid; place-items: center; min-width: 38px; height: 26px; border: 1.5px solid var(--signal); color: var(--signal); border-radius: 5px; font: 700 12px var(--mono); }
.claim-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit; }
.claim-card:hover { border-color: var(--petrol); }
.claim-card .title { font-weight: 650; line-height: 1.3; } .claim-card .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.claim-card .side-r { display: grid; justify-items: end; gap: 4px; }
.stripe { width: 4px; align-self: stretch; border-radius: 2px; background: var(--line); }
.stripe.kritisch { background: var(--signal); } .stripe.hoch { background: var(--amber); } .stripe.normal { background: var(--petrol-2); }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--paper-2); border: 1px solid var(--line-2); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 160px; }
.kcol h3 { font-size: 13px; display: flex; justify-content: space-between; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.kcol.over { outline: 2px dashed var(--petrol); }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; align-items: start; }
.form-grid > h3, .form-grid > .full, .form-grid > .form-actions, .form-grid > p { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; min-width: 0; } .field.full { grid-column: 1 / -1; }
.field label, .lbl { font: 600 12px/1.2 var(--font); color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-height: 42px; width: 100%; min-width: 0; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--petrol-soft); border-color: var(--petrol); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--petrol); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.help { color: var(--muted); font-size: 12px; }
.form-error { color: var(--signal); background: var(--signal-soft); border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; font-weight: 600; font-size: 13.5px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select, .filters input { width: auto; min-height: 38px; padding: 6px 10px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; } .pills button { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.pills button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tile { min-height: 72px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 10px; text-align: left; font: 600 14px/1.25 var(--font); color: var(--ink); cursor: pointer; display: grid; gap: 4px; }
.tile small { font: 600 11px var(--mono); color: var(--muted); } .tile.on { border-color: var(--petrol); background: var(--petrol-soft); box-shadow: inset 0 0 0 1px var(--petrol); }
.upload { display: grid; place-items: center; gap: 6px; padding: 22px; border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--paper-2); color: var(--muted); text-align: center; cursor: pointer; }
.upload:hover { border-color: var(--petrol); } .previews { display: flex; gap: 8px; flex-wrap: wrap; } .previews img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }

/* ---------- Deckplan ---------- */
.deck { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.deck img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.deck.pick { cursor: crosshair; }
.deck .pin { position: absolute; transform: translate(-50%, -100%); display: grid; place-items: center; width: 28px; height: 34px; border: 0; background: none; padding: 0; cursor: pointer; }
.deck .pin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--signal); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; }
.deck .pin span i { transform: rotate(45deg); font: 700 10.5px var(--mono); font-style: normal; }
.deck .pin.hoch span { background: var(--amber); } .deck .pin.normal span { background: var(--petrol-2); } .deck .pin.kosmetisch span { background: #7d93a0; }
.deck .pin.done span { background: var(--green); } .deck .pin.sel span { outline: 3px solid var(--ink); }
.deck .pin.new span { background: var(--ink); animation: pop .3s ease-out; }
@keyframes pop { from { transform: rotate(-45deg) scale(.4); } to { transform: rotate(-45deg) scale(1); } }
.deck-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.deck-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.deck-tabs button.on { border-color: var(--petrol); background: var(--petrol-soft); color: var(--ink); }
.deck-caption { display: flex; justify-content: space-between; gap: 8px; font: 11px var(--mono); color: var(--muted); padding: 6px 10px; border-top: 1px solid var(--line-2); background: var(--surface); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.plan-pick button { border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; padding: 6px; cursor: pointer; text-align: left; font: 600 12px var(--font); color: #0d2b3a; }
.plan-pick button.on { border-color: var(--petrol); box-shadow: inset 0 0 0 1px var(--petrol); } .plan-pick img { aspect-ratio: 16/9; object-fit: contain; width: 100%; }

/* ---------- Timeline / Verlauf ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 8px 0; position: relative; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 6px; }
.timeline li.comment::before { background: var(--petrol); } .timeline li.status::before { background: var(--signal); }
.timeline small { color: var(--muted); font: 11.5px var(--mono); }
.steps { display: flex; gap: 0; align-items: center; overflow-x: auto; padding: 6px 0; }
.steps span { flex: 1; min-width: 70px; text-align: center; font: 600 11px var(--font); color: var(--muted); position: relative; padding-top: 18px; }
.steps span::before { content: ""; position: absolute; top: 3px; left: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); background: var(--surface); border: 2px solid var(--line); }
.steps span::after { content: ""; position: absolute; top: 8px; left: calc(50% + 8px); right: calc(-50% + 8px); height: 2px; background: var(--line); }
.steps span:last-child::after { display: none; } .steps span.done { color: var(--ink-2); } .steps span.done::before { background: var(--petrol); border-color: var(--petrol); }
.steps span.cur { color: var(--ink); } .steps span.cur::before { background: var(--signal); border-color: var(--signal); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos a { position: relative; display: block; } .photos img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.photos .tag { position: absolute; left: 6px; bottom: 6px; }

/* ---------- Modal / Sheet / Toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(6, 22, 30, .45); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.modal-body { padding: 18px; overflow-y: auto; } .modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: var(--r); font-weight: 600; box-shadow: var(--shadow); transition: opacity .4s; max-width: calc(100% - 32px); }
.toast.err { background: var(--signal); color: #fff; } .toast.out { opacity: 0; }
pre.mailtext { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; max-height: 360px; overflow: auto; }

/* ---------- Login ---------- */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 440px); gap: 32px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-left, 0px)); }
.login-hero h1 { font-size: clamp(30px, 4.5vw, 52px); margin: 22px 0 12px; } .login-hero h1 em { font-style: normal; color: var(--signal); }
.login-hero .lead { color: var(--ink-2); max-width: 56ch; font-size: 16.5px; }
.login-plan { margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 8px; max-width: 640px; }
.price-facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; } .price-facts b { font: 700 18px var(--mono); color: var(--ink); }
.login-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.login-form { display: grid; gap: 14px; }
.public { max-width: 1100px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }

/* ---------- Druck-/Dokument-Vorschau ---------- */
.a4 { background: #fff; color: #111; width: 100%; max-width: 900px; aspect-ratio: 297 / 210; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Mobil (Bordbuch-Bedienung) ---------- */
@media (max-width: 1100px) { .split, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-105%); transition: transform .2s; padding-top: max(16px, env(safe-area-inset-top)); }
  body.nav-open .side { transform: none; } body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(6,22,30,.4); z-index: 55; }
  .only-mobile { display: inline-grid; }
  .top { padding: 8px max(12px, env(safe-area-inset-left, 0px)); top: env(safe-area-inset-top, 0px); }
  #outlet { padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .bottom { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 50;
    background: var(--ink); border-radius: 22px; padding: 6px; box-shadow: 0 10px 30px rgba(6,22,30,.35); }
  .bottom a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; min-height: var(--tap); color: color-mix(in srgb, var(--paper) 70%, transparent); text-decoration: none; font: 600 10.5px var(--font); border-radius: 16px; }
  .bottom a.active { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }
  .bottom a.fab { margin-top: -24px; } .bottom a.fab .ico { width: 58px; height: 58px; padding: 15px; border-radius: 50%; background: var(--signal); color: #fff; border: 4px solid var(--paper); box-sizing: border-box; }
  .t.cards thead { display: none; } .t.cards tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
  .t.cards td { border: 0; padding: 0; } .t.cards td.hide-m { display: none; }
  .login { grid-template-columns: minmax(0, 1fr); } .login-plan { display: none; }
  .kpi b { font-size: 24px; }
  .btn { min-height: 44px; } .modal-wrap { place-items: end center; padding: 0; } .modal { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .claim-card { grid-template-columns: auto minmax(0, 1fr); } .claim-card .side-r { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
}

.only-m { display: none; } @media (max-width: 860px) { .only-m { display: revert; } .hide-m { display: none !important; } }
