/*
 * public-portal.css – gemeinsames Design-System der öffentlichen Mieter-Seiten
 * (Buchungswidget, digitaler Vertragsabschluss, persönliche Mieter-Seite).
 * Das Buchungswidget ist Design-Geber: weiche Karten, runde Ecken, Teal-Akzent.
 * Die Akzentfarbe kommt aus --pp-primary (kundenspezifische primaryColor).
 */
:root {
    --pp-primary: #00799c;
    --pp-primary-soft: color-mix(in srgb, var(--pp-primary) 12%, white);
    --pp-bg-1: #f8fbfe;
    --pp-bg-2: #eef3f8;
    --pp-card: #ffffff;
    --pp-line: #d8e0ea;
    --pp-text: #1f2937;
    --pp-muted: #66758a;
    --pp-soft: #8a97a8;
}

.pp-font,
body.pp-page {
    font-family: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body.pp-page {
    margin: 0;
    color: var(--pp-text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
        linear-gradient(180deg, var(--pp-bg-1) 0%, var(--pp-bg-2) 100%);
}

/* ---------- Karten / Hero / Sections ---------- */
.pp-card,
.pp-hero,
.pp-section {
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.pp-section {
    border-radius: 18px;
    padding: 18px 20px;
}

.pp-section-label {
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pp-muted);
    margin-bottom: 12px;
}

/* ---------- Pills & Chips ---------- */
.pp-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.pp-pill-success { background: #e7f6ef; color: #1d7a52; }
.pp-pill-warning { background: #fdf3e3; color: #9a6b16; }
.pp-pill-danger  { background: #fdecec; color: #a8392a; }
.pp-pill-muted   { background: #eef2f7; color: #5a6b7e; }

.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #516074;
    font-size: 13px;
    white-space: nowrap;
}

.pp-chip i { font-size: 14px; opacity: 0.8; }

/* ---------- Dokumentenliste ---------- */
.pp-doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--pp-line);
    font-size: 14px;
    color: var(--pp-text);
    text-decoration: none;
}

.pp-doc-row:last-child { border-bottom: 0; }
.pp-doc-row:hover { color: var(--pp-primary); }
.pp-doc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pp-doc-name i { font-size: 18px; color: var(--pp-primary); flex: 0 0 auto; }
.pp-doc-action { color: var(--pp-soft); flex: 0 0 auto; }

/* ---------- Kostenübersicht (geteilte Komponente) ---------- */
.pp-cost {
    border: 1px solid var(--pp-line);
    border-radius: 16px;
    background: #fbfdff;
    padding: 16px 18px;
}

.pp-cost-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pp-muted);
    margin-bottom: 6px;
}

.pp-cost-total {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.pp-cost-total-sub {
    font-size: 13px;
    color: var(--pp-muted);
    margin-top: 2px;
}

.pp-cost-rows {
    margin-top: 14px;
    border-top: 1px solid var(--pp-line);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--pp-text);
}

.pp-cost-row-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-cost-row-copy small { font-size: 12px; color: var(--pp-soft); }
.pp-cost-row-value { font-weight: 600; white-space: nowrap; }

/* Kaution: bewusst dezent / neutral, damit der Blick beim Gesamtpreis bleibt */
.pp-cost-deposit {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px dashed var(--pp-line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.pp-cost-deposit-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-cost-deposit-copy span { font-size: 13px; color: var(--pp-muted); }
.pp-cost-deposit-copy small { font-size: 11px; color: var(--pp-soft); }
.pp-cost-deposit-value { font-size: 14px; color: var(--pp-muted); white-space: nowrap; }

.pp-cost-due {
    margin-top: 16px;
    border-top: 1px solid var(--pp-line);
    padding-top: 12px;
}

.pp-cost-due-label {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pp-soft);
    margin-bottom: 9px;
}

.pp-cost-due-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
    color: var(--pp-text);
}

.pp-cost-due-row span:last-child { white-space: nowrap; font-weight: 600; }
.pp-cost-due-row.is-primary { font-weight: 600; }
.pp-cost-due-row.is-primary .pp-cost-due-amount { color: var(--pp-primary); font-size: 15px; }
.pp-cost-due-row.is-muted { color: var(--pp-muted); }

.pp-cost-note {
    font-size: 11px;
    color: var(--pp-soft);
    margin-top: 12px;
}
