.pmain { padding-block: 28px 80px; display: grid; gap: 22px; align-content: start; max-width: 820px; }
.muted { color: var(--ink-soft); }
.pmain h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.pmain h2 { font-size: 1.9rem; }
.who { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-soft); min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.btn-ghost { background: transparent; border-color: var(--field-line); color: var(--ink); }
.btn-ghost:hover { background: var(--tint); }
.btn-sm { min-height: 42px; padding: 0 1rem; font-size: .95rem; }
.btn-danger { background: transparent; border-color: #B3261E; color: #B3261E; }
.btn-danger:hover { background: #B3261E; color: #fff; }
:root[data-theme="dark"] .btn-danger { border-color: #F2938C; color: #F2938C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger { border-color: #F2938C; color: #F2938C; } }
.btn[disabled] { opacity: .55; cursor: progress; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bar.between { justify-content: space-between; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(16px, 3.5vw, 26px); display: grid; gap: 14px; min-width: 0; }
.card h2 { font-size: 1.7rem; }
.list { display: grid; gap: 12px; }
.item { display: grid; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; min-width: 0; }
.item:hover { border-color: var(--brand); }
.item-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.item-title { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.item-sub { color: var(--ink-soft); font-size: .95rem; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; border: 1.5px solid var(--field-line); color: var(--ink-soft); white-space: nowrap; }
.chip.st-anfrage, .chip.vorgeschlagen { border-color: var(--brand); color: var(--brand); }
.chip.st-angebot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.st-bestaetigt, .chip.st-laufend, .chip.bestaetigt { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); }
.chip.st-abgeschlossen { background: var(--tint); color: var(--ink); }
.chip.st-abgelehnt, .chip.abgesagt { text-decoration: line-through; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 4px; list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.steps li { padding: 4px 10px; border-radius: 4px; background: var(--surface-2); color: var(--ink-soft); }
.steps li.done { background: var(--tint); color: var(--ink); }
.steps li.now { background: var(--deep); color: var(--deep-ink); font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--field-line); background: transparent; color: var(--ink); font: 600 .95rem var(--font-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.notice { padding: 12px 14px; border-radius: 6px; background: var(--tint); }
.notice.err { background: transparent; border: 1.5px solid #B3261E; }
.offer-table { width: 100%; border-collapse: collapse; }
.offer-table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.offer-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.offer-table tr.sum td { font-weight: 700; font-size: 1.15rem; border-bottom: 0; }
.irow { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; align-items: center; }
.irow input { width: 100%; min-height: 46px; padding: 8px 10px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--field-line); border-radius: 6px; font: 400 16px var(--font-body); }
@media (max-width: 520px) { .irow { grid-template-columns: 1fr 96px auto; } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 1.1rem; cursor: pointer; }
.appt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.appt:last-child { border-bottom: 0; }
.appt-when { font-weight: 700; }
.appt-note { color: var(--ink-soft); font-size: .95rem; }
.timeline { display: grid; gap: 18px; }
.entry { display: grid; gap: 10px; padding-left: 16px; border-left: 3px solid var(--accent); min-width: 0; }
.entry time { font-size: .88rem; color: var(--ink-soft); }
.entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
.draft { border-left-style: dashed; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks .ph { width: 84px; height: 84px; aspect-ratio: auto; cursor: default; }
input[type="file"] { max-width: 100%; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 520px); background: var(--deep); color: var(--deep-ink); padding: 12px 18px; border-radius: 8px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.toast.err { background: #B3261E; color: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; cursor: pointer; }
.upd { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.intro { display: grid; gap: 14px; max-width: 60ch; }
.intro ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); display: grid; gap: 4px; }
.small { font-size: .9rem; }
.ph .open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.entry-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.steps li { border: 0; }
@media (max-width: 560px) { .who span { display: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linkbtn { background: none; border: 0; padding: 8px 0; min-height: 40px; color: var(--brand); font: 600 .95rem var(--font-body); text-decoration: underline; cursor: pointer; text-align: left; }
