/* ==========================================================================
   BuiltRated — Anwendungsseiten
   Dashboards, Vergleich, Angebot, Abschluss, Bewertung.
   Baut auf br.css auf (Tokens, Schaltflächen, Formulare).
   ========================================================================== */

body.app { background: var(--paper); }

/* ── Kopfzeile der Anwendung ────────────────────────────────────────────── */
.app-nav .br-nav__inner { gap: 16px; }
.app-nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.app-nav__who { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; margin-right: 6px; }
.app-nav__link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; }
.app-nav__link:hover { color: var(--ink); background: rgba(11, 31, 51, .05); }
@media (max-width: 760px) {
  .app-nav__who, .app-nav__link--wide { display: none; }
}

/* ── Seitengerüst ───────────────────────────────────────────────────────── */
.app-page { width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) 96px; }
.app-page--narrow { max-width: 760px; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.app-head h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 560; letter-spacing: -.034em; line-height: 1.04; }
.app-head p { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 38em; }
.app-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.app-back:hover { color: var(--ink); }
.app-back svg { width: 16px; height: 16px; }

/* Reiter */
.tabs { display: flex; gap: 4px; margin: 0 0 32px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 48px; padding: 0 16px; margin-bottom: -1px;
  font-size: 16px; font-weight: 500; color: var(--ink-3); background: none; border: 0; cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .25s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; background: var(--paper-sunk); color: var(--ink-2); }
.tab[aria-selected="true"] .count { background: var(--ink); color: var(--paper); }
.panel[hidden] { display: none; }
.panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 36px; border-top: 1px solid var(--rule-strong); }
.stat { padding: 18px 20px 4px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--rule); }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 560; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 520px) { .stat { padding-right: 8px; } .stat + .stat { padding-left: 12px; } }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.group-title { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 28px 0 12px; }
.group-title:first-child { margin-top: 0; }

/* Karten */
.cards { display: grid; gap: 14px; }
.app-card {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l);
  padding: clamp(20px, 3vw, 28px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.app-card:hover { border-color: var(--rule-strong); box-shadow: 0 18px 40px -30px rgba(11, 31, 51, .3); }
.app-card.is-muted { opacity: .62; }
.app-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.app-card__title { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.app-card__date { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.app-card__desc { color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; white-space: pre-line; }
.app-card__desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--rule); }

.meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 16px; }
.meta div { font-size: 15px; color: var(--ink); }
.meta dt, .meta strong { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
.meta dd { margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: var(--paper-sunk); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.badge--accent::before { background: var(--accent); }
.badge--ok { background: var(--ink); color: var(--paper); }
.badge--ok::before { background: var(--accent); }
.badge--plain::before { display: none; }

/* Fortschritt 0–3 Angebote */
.slots3 { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.slots3 i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--rule-strong); }
.slots3 i.on { background: var(--accent); border-color: var(--accent); }
.slots3 span { display: inline-flex; gap: 5px; }

.app-empty { text-align: center; padding: clamp(48px, 8vw, 88px) 24px; border: 1px dashed var(--rule-strong); border-radius: var(--r-l); background: transparent; }
.app-empty h3 { font-size: 22px; font-weight: 560; letter-spacing: -.02em; margin-bottom: 8px; }
.app-empty p { color: var(--ink-2); max-width: 30em; margin: 0 auto 24px; }
.app-loading { padding: 64px 0; text-align: center; color: var(--ink-3); }
.app-note { padding: 16px 18px; border-radius: var(--r-m); background: var(--sheet); border: 1px solid var(--rule); font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 24px; display: flex; gap: 12px; }
.app-note::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.app-note strong { color: var(--ink); }

.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { text-decoration-color: var(--ink); }

/* Anhänge */
.project-attachments { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; font-size: 15px; }
.project-attachments a { color: var(--ink); }
.attach-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--rule); cursor: zoom-in; background: var(--paper-sunk); transition: transform .2s var(--ease); }
.attach-thumb:hover { transform: scale(1.03); }
.attach-title { width: 100%; height: 200px; border-radius: var(--r-m); }

#lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(11, 31, 51, .92); }
#lightbox.open { display: flex; }
#lb-img { max-width: 88vw; max-height: 84vh; border-radius: var(--r-m); }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
#lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
#lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
#lb-close { top: 20px; right: 20px; }
#lb-count { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

/* Angebot aufklappen, Kontakt */
.detail { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; }
.contact-box { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-m); background: var(--paper-sunk); font-size: 15px; line-height: 1.6; }
.contact-box.won { background: var(--ink); color: var(--paper); }
.contact-box.won a { color: var(--paper); }
.contact-box strong { display: block; margin-bottom: 4px; }
.contact-box .muted { color: var(--ink-3); font-size: 14px; }

/* Sterne (Bewertungen im Dashboard) */
.sterne-klein { letter-spacing: 2px; color: var(--accent); }
.sterne-klein .leer { color: var(--rule-strong); }

/* ── Einstellungen ──────────────────────────────────────────────────────── */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.settings__nav { position: sticky; top: calc(var(--nav-h) + 28px); display: flex; flex-direction: column; gap: 2px; }
.settings__nav a { display: block; padding: 9px 12px; border-radius: var(--r-s); font-size: 15px; color: var(--ink-2); text-decoration: none; }
.settings__nav a:hover { background: rgba(11, 31, 51, .05); color: var(--ink); }
.settings__nav a.is-current { color: var(--ink); background: rgba(11, 31, 51, .06); font-weight: 500; }
.settings__nav a.danger { color: var(--danger); }
.set { padding: clamp(22px, 3vw, 30px); margin-bottom: 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); scroll-margin-top: calc(var(--nav-h) + 24px); }
.set h2 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.set > p.lead { color: var(--ink-2); font-size: 15.5px; margin-bottom: 22px; max-width: 46em; }
.set__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--rule); }
.set__status { font-size: 14.5px; color: var(--ink-2); min-height: 1.4em; }
.set__status.ok::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.set__status.err { color: var(--danger); }
.set--danger { border-color: rgba(180, 35, 24, .28); }
.set--danger h2 { color: var(--danger); }
.readonly { padding: 13px 15px; min-height: 52px; border-radius: var(--r-s); background: var(--paper-sunk); color: var(--ink-2); font-size: 16px; }
.readonly-hint { font-size: 13.5px; color: var(--ink-3); margin-top: 7px; }

.btn--danger { --bg: var(--danger); --fg: #fff; }
.btn--danger:hover { --bg: #941c13; }
.confirm-box { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-m); background: var(--danger-wash); }
.confirm-box[hidden] { display: none; }
.confirm-box label { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px !important; margin-bottom: 14px !important; cursor: pointer; }

/* Schalter */
.toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.toggle:first-of-type { border-top: 0; padding-top: 0; }
.toggle__text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.toggle__text span { font-size: 14.5px; color: var(--ink-2); }
.switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--rule-strong); transition: background-color .25s var(--ease); }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; }
  .settings__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .settings__nav a { padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; }
}

/* ── Abschluss & Bewertung (Karte in der Mitte) ─────────────────────────── */
body.app .wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 96px; }
.karte { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); padding: clamp(26px, 4vw, 40px); box-shadow: 0 24px 48px -36px rgba(11, 31, 51, .25); }
.karte h1 { font-size: clamp(28px, 3.6vw, 36px); font-weight: 560; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.karte .sub { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; margin-bottom: 8px; }
.karte .projekt { display: inline-flex; margin: 14px 0 24px; }
.karte .projekt::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 9px 9px 0 0; }
.karte .projekt { font-size: 15px; font-weight: 500; color: var(--ink); }
.wahl { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
button.opt { display: block; width: 100%; text-align: left; padding: 16px 18px; background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--r-m); font: inherit; cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease); }
button.opt:hover { border-color: var(--ink); }
button.opt:disabled { opacity: .5; cursor: default; }
button.opt strong { display: block; font-size: 16.5px; font-weight: 600; margin-bottom: 2px; }
button.opt span { font-size: 14.5px; color: var(--ink-2); }
.karte .hinweis { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }
.karte .hinweis a { color: var(--ink); }
.melden { padding: 14px 16px; border-radius: var(--r-s); font-size: 15px; margin-bottom: 18px; }
.melden.fehler { background: var(--danger-wash); color: var(--danger); }
.laden { text-align: center; color: var(--ink-3); padding: 40px 0; }
.fertig { text-align: center; padding: 8px 0; }
.fertig .haken { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-size: 24px; }
.karte .btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.karte .btn:disabled { opacity: .45; cursor: default; }
.dim { padding: 22px 0; border-top: 1px solid var(--rule); }
.dim:first-of-type { border-top: 0; }
.dim h3 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.dim p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.sterne { display: flex; gap: 6px; }
.stern { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule-strong); border-radius: var(--r-s); background: #fff; color: var(--rule-strong); font-size: 20px; cursor: pointer; transition: all .15s var(--ease); }
.stern:hover { border-color: var(--ink); }
.stern.an { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.wertung { min-height: 20px; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
label.feld { display: block; font-size: 17px; font-weight: 600; margin: 4px 0 2px; }
.karte textarea { width: 100%; min-height: 120px; padding: 13px 15px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.55; color: var(--ink); background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--r-s); }
.karte textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-wash); }
.zeichen { font-size: 13px; color: var(--ink-3); text-align: right; margin-top: 5px; }
@media (max-width: 560px) { .stern { width: 40px; height: 40px; } }

/* ── Angebotsvergleich ──────────────────────────────────────────────────── */
.compare-scroll { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; min-width: 620px; border-collapse: collapse; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
table.compare thead th { position: sticky; top: 0; background: var(--sheet); font-size: 16px; font-weight: 600; letter-spacing: -.01em; border-bottom: 1px solid var(--rule-strong); }
table.compare th:first-child, table.compare td:first-child { position: sticky; left: 0; z-index: 1; min-width: 150px; background: var(--paper); color: var(--ink-2); font-weight: 500; }
table.compare thead th:first-child { z-index: 2; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare tr.section-head td { padding: 22px 18px 10px; background: var(--sheet); font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--rule-strong); }
table.compare tr.section-head td:first-child { background: var(--sheet); }
table.compare td.price-cell { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.yes { color: var(--ink); font-weight: 500; }
.no { color: var(--ink-3); }
.cheapest-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.cheapest-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.insight-banner { margin-top: 22px; }
.award-bar { margin-top: 24px; }
.award-box { padding: clamp(22px, 3vw, 30px); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); }
.award-box.done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.award-box.done a { color: var(--paper); }
.award-box > strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.award-box .muted { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; max-width: 46em; }
.award-box.done .muted { color: var(--night-ink-2); }
.award-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.btn-award { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.btn-award::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.btn-award:hover { background: #142D46; }
.btn-award:disabled { opacity: .55; cursor: progress; }
.btn-reject-all { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); cursor: pointer; }
.btn-reject-all:hover { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.contact-grid strong { display: block; font-size: 13px; font-weight: 500; opacity: .7; margin-bottom: 2px; }
.error-page, .loading-state, .empty-state { text-align: center; padding: 64px 24px; color: var(--ink-2); }
.error-page h2, .empty-state h2 { font-size: 26px; font-weight: 560; letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; }
.empty-state { border: 1px dashed var(--rule-strong); border-radius: var(--r-l); }
@media (max-width: 560px) { .award-actions { flex-direction: column; } .btn-award { width: 100%; justify-content: center; } }

/* ── Angebot erstellen ──────────────────────────────────────────────────── */
body.app .project-summary { padding: clamp(20px, 3vw, 26px); margin-bottom: 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); }
body.app .project-summary .label { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
body.app .project-summary h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
body.app .project-summary p { color: var(--ink-2); }
body.app .form-wrap { max-width: none; margin: 0; }
body.app .trade-selector-block { padding: 18px 20px; margin-bottom: 28px; border-radius: var(--r-m); background: var(--paper-sunk); }
body.app .trade-selector-block .form-group { margin-bottom: 0; }
body.app .price-breakdown { padding: 18px 20px; margin-bottom: 20px; border-radius: var(--r-m); background: var(--paper-sunk); }
body.app .total-display { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--rule); font-size: 15px; }
body.app .total-display > div:last-child { font-size: 18px; }
body.app .toggle-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.app .toggle-item { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-s); background: #fff; cursor: pointer; }
body.app .toggle-item:has(input:checked) { border-color: var(--ink); background: rgba(11, 31, 51, .04); }
body.app .toggle-item span { font-size: 15px; font-weight: 500; }
body.app .field-note { margin-top: 7px; padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); background: var(--paper-sunk); border-radius: var(--r-s); }
body.app .error-banner { display: none; margin-bottom: 18px; padding: 12px 14px; font-size: 15px; color: var(--danger); background: var(--danger-wash); border-radius: var(--r-s); }
body.app .loading-state { padding: 56px 0; color: var(--ink-3); }
body.app #o-ust { min-height: 36px; padding: 4px 34px 4px 10px; background-position: right 12px center; }
body.app .success-msg p a, body.app .error-page a { color: var(--ink) !important; }
#material-wrapper, #inclusions-wrapper { animation: panelIn .35s var(--ease); }

/* Nur eine Statuszeile ohne Knöpfe: keine eigene Trennlinie */
.set__actions:has(> .set__status:only-child) { border-top: 0; padding-top: 0; margin-top: 4px; }

/* ── Guthaben & Preise ──────────────────────────────────────────────────── */
.wallet {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: end;
  padding: clamp(26px, 4vw, 40px); margin-bottom: 44px;
  background: var(--night); color: var(--night-ink); border-radius: var(--r-l);
  position: relative; overflow: hidden;
}
.wallet::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--night-rule); box-shadow: 0 0 0 40px rgba(238, 241, 244, .025), 0 0 0 80px rgba(238, 241, 244, .02); pointer-events: none; }
.wallet__label { display: block; font-size: 15px; color: var(--night-ink-2); margin-bottom: 6px; }
.wallet__amount { display: block; font-size: clamp(44px, 6vw, 68px); font-weight: 560; letter-spacing: -.04em; line-height: 1; }
.wallet__meta { display: block; margin-top: 12px; font-size: 14.5px; color: var(--night-ink-2); }
.wallet__note { position: relative; z-index: 1; font-size: 15px; line-height: 1.55; color: var(--night-ink-2); padding-left: 18px; border-left: 2px solid var(--accent); max-width: 34em; }
.wallet__note strong { color: var(--night-ink); font-weight: 600; }
@media (max-width: 760px) { .wallet { grid-template-columns: 1fr; } }

.price-block { margin-bottom: 52px; }
.price-block__head { margin-bottom: 20px; max-width: 46em; }
.price-block__head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.price-block__head p { color: var(--ink-2); }

.topups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topup {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 20px 20px 18px; min-height: 132px; cursor: pointer;
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--r-l); font: inherit; color: var(--ink);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.topup:hover { border-color: var(--ink); transform: translateY(-2px); }
.topup[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.topup[aria-checked="true"]::after { content: ''; position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.topup__amount { font-size: 28px; font-weight: 560; letter-spacing: -.03em; }
.topup__bonus { font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.topup__bonus--none { color: var(--ink-3); font-weight: 400; }
.topup__credit { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .topups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topup-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-m); background: var(--paper-sunk); }
.topup-bar__sum { color: var(--ink-2); font-size: 15.5px; }
.topup-bar__sum b { color: var(--ink); }
@media (max-width: 520px) { .topup-bar .btn { width: 100%; } }

.price-table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); }
.price-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 20px; text-align: right; font-size: 15.5px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.price-table th:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.price-table thead th { font-size: 14px; font-weight: 500; color: var(--ink-3); border-bottom-color: var(--rule-strong); }
.price-table thead th span { color: var(--accent-deep); margin-left: 4px; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody tr { transition: background-color .2s var(--ease); }
.price-table tbody tr:hover { background: rgba(11, 31, 51, .03); }
.price-table td { color: var(--ink-2); }
.price-table td b { color: var(--ink); font-weight: 600; font-size: 17px; }
.price-note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.rule { padding: 22px 0 24px; border-top: 1px solid var(--rule-strong); }
.rule h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.rule h3::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.rule p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

.ledger { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); }
.ledger__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 110px; gap: 16px; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--rule); font-size: 15px; }
.ledger__row:first-child { border-top: 0; }
.ledger__date { color: var(--ink-3); }
.ledger__text em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.ledger__amount { font-weight: 600; text-align: right; }
.ledger__amount.is-plus { color: var(--ok); }
.ledger__saldo { color: var(--ink-3); text-align: right; }
@media (max-width: 560px) { .ledger__row { grid-template-columns: 1fr auto; } .ledger__saldo { display: none; } .ledger__date { grid-column: 1 / -1; font-size: 13px; } }

/* Preis des Angebotsplatzes in der Anfragekarte */
.slot-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 15px; color: var(--ink-2); }
.slot-price__label { color: var(--ink-3); }
.slot-price b { color: var(--ink); font-weight: 600; }
.slot-price s { color: var(--ink-3); }
.slot-price em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.slot-price__net { font-size: 13px; color: var(--ink-3); }
.slot-price__next { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }

/* Preis über dem Angebotsformular */
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 20px; padding: 18px 22px; border-radius: var(--r-l); background: var(--night); color: var(--night-ink); }
.offer-price__label { display: block; font-size: 14px; color: var(--night-ink-2); margin-bottom: 2px; }
.offer-price b { font-size: 26px; font-weight: 560; letter-spacing: -.02em; }
.offer-price__net { font-size: 14px; color: var(--night-ink-2); }
.offer-price em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--accent); }
.offer-price__side { font-size: 14.5px; color: var(--night-ink-2); max-width: 26em; }
.offer-price__side b { font-size: 15px; color: var(--night-ink); }
.offer-price a { color: var(--night-ink); }
