/* Design tokens are defined in tokens.css (loaded before this file). */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}
h1 { font-size: 32px; margin-bottom: 12px; }
h2 { font-size: 26px; margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 10px; }

a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    border-radius: 0 0 10px 0;
    font-weight: 500;
    z-index: 10000;
}
.skip-link:focus {
    left: 0;
    text-decoration: none;
}

nav {
    background: var(--bg);
    border-bottom: 0.5px solid var(--border);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
nav a { color: var(--text-muted); font-weight: 500; transition: color 0.15s ease; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
nav a:hover { color: var(--primary-hover); text-decoration: none; }

nav .brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}
nav .brand:hover { color: var(--text); }
nav .brand svg { flex-shrink: 0; }

nav .nav-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav .nav-right span { color: var(--text-muted); font-size: 14px; }

.logout-btn {
    background: transparent;
    border: 0.5px solid var(--border-strong);
    color: var(--text);
    padding: 0 16px;
    min-height: 44px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.logout-btn:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 20px;
}

/* .card, .btn, .btn-primary, .btn-secondary — defined and maintained in mentala.css */

.btn-group { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.form-group { margin-bottom: 20px; }
label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="number"], input[type="url"], input[type="tel"],
input[type="search"], textarea, select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    border: 0.5px solid var(--border-strong);
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover, select:hover { border-color: var(--accent); }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--focus-ring);
}
input::placeholder, textarea::placeholder { color: var(--text-placeholder); }

input[type="checkbox"], input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.helptext { font-size: 13px; color: var(--text-muted); margin-top: 4px; display: block; }

.errorlist {
    list-style: none;
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--danger);
    background: var(--danger-bg);
    border-radius: 8px;
}
.errorlist li { margin: 0; }

.messages { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.messages li {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}
.messages .success { background: var(--success-bg); color: var(--success); border: 0.5px solid var(--accent); }
.messages .error { background: var(--danger-bg); color: var(--danger); border: 0.5px solid var(--danger); }

.avatar-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 0.5px solid var(--border);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 28px 20px 32px;
    border-top: 0.5px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}
footer a { color: var(--text-muted); margin: 0 10px; display: inline-block; min-height: 44px; line-height: 44px; }
footer a:hover { color: var(--primary-hover); text-decoration: underline; }

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    color: var(--text);
    padding: 16px 24px;
    border-top: 0.5px solid var(--border);
    box-shadow: 0 -4px 16px rgba(44, 58, 41, 0.08);
    text-align: center;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
}
#cookie-banner a { color: var(--primary-hover); text-decoration: underline; margin: 0 10px; }
#cookie-banner .cookie-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    min-height: 44px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}
#cookie-banner .cookie-btn:hover { background: var(--primary-hover); }

@media (max-width: 720px) {
    nav { padding: 16px 20px; }
    nav .brand { font-size: 20px; }
    nav .brand svg { width: 24px; height: 24px; }
    nav .nav-right { gap: 12px; font-size: 14px; }
    main { margin: 1.5rem auto; padding: 0 16px; }
    .card { padding: 28px 22px; border-radius: 12px; }
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    nav .nav-right span { display: none; }
    footer a { margin: 0 6px; }
}

@media (max-width: 600px) {
    #cookie-banner {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
    #cookie-banner.visible { display: flex; }
    #cookie-banner .cookie-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Legal / Datenschutz pages ---------- */

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 18px;
    font-size: 0.92rem;
}

.legal-page table th,
.legal-page table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border, #e0e0e0);
    vertical-align: top;
    word-wrap: break-word;
}

.legal-page table th {
    background: var(--surface-alt, #f5f5f5);
    font-weight: 600;
}

/* Wrap every legal-page table so it scrolls horizontally on small
   viewports instead of crushing every column. */
.legal-page .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0 18px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
}

.legal-page .table-wrap table {
    margin: 0;
    min-width: 540px;          /* keeps columns readable; container scrolls */
    border-radius: 0;
}

/* Mobile (<600px): stack each row as a labelled card. Horizontal
   scrolling tables (cookies, processors) are too cramped on phones,
   so we drop the table layout altogether on small screens.
   Each <td> needs a `data-label="<column-header>"` attribute so
   we can prefix each value with its column name via ::before. */
@media (max-width: 600px) {
    .legal-page .table-wrap {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }
    .legal-page .table-wrap table { min-width: 0; }
    .legal-page table { font-size: 0.9rem; }
    .legal-page table thead { display: none; }
    .legal-page table tr {
        display: block;
        margin: 0 0 14px;
        padding: 10px 12px;
        border: 1px solid var(--border, #e0e0e0);
        border-radius: 6px;
        background: var(--surface, #fff);
    }
    .legal-page table td {
        display: block;
        padding: 4px 0;
        border: none;
    }
    .legal-page table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        display: inline-block;
        margin-right: 4px;
        color: var(--text-muted, #555);
    }
}

/* Site-wide notice banner — used to warn visitors that they're on
   a dev/preview install. Driven by the `SITE_NOTICE` setting. */
.site-notice {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* ---------- Components (no more inline styles) ---------- */
/* .hero, .feature-grid, .feature-card, .cta-card, .card-grid — defined in mentala.css */

/* .entity-card — defined in mentala.css */
.entity-card { display: flex; flex-direction: column; }
.entity-card--dimmed { opacity: 0.6; }
.entity-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.entity-card__name {
    font-size: 1.1rem;
    display: block;
    font-weight: 600;
}
.entity-card__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.entity-card__sub-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}
.entity-card__footer { margin-top: auto; }

/* Avatar sizes (square or circle). */
.avatar {
    object-fit: cover;
    object-position: center 20%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar--rounded { border-radius: 8px; }
.avatar--circle { border-radius: 50%; }
.avatar--sm { width: 60px; height: 60px; font-size: 24px; }
.avatar--md { width: 70px; height: 70px; font-size: 30px; }
.avatar--lg { width: 140px; height: 140px; font-size: 60px; }

/* Skill tag pills. */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    flex-grow: 1;
    align-items: flex-start;
    align-content: flex-start;
}
.skill-tag {
    background: var(--surface-alt);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
}
.skill-tag--muted { color: var(--text-muted); }

/* Status text (small inline). */
.status {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}
.status--success { color: var(--success); }
.status--danger { color: var(--danger); }
.status--muted { color: var(--text-placeholder); }
.status--inline { display: inline; margin-bottom: 0; }

/* Button modifiers — defined in mentala.css */

/* Section header: title left, action right. */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-header h1,
.section-header h2 { margin: 0; }
.section-header--lg { margin-bottom: 24px; }

/* Narrow-centered container (auth forms, small panels). */
.center-narrow { max-width: 480px; margin: 40px auto; }
.center-narrow--wide { max-width: 600px; margin: 40px auto; }
.center-narrow--text { max-width: 520px; margin: 40px auto; text-align: center; }
.center-narrow--prose { max-width: 700px; margin: 40px auto; }

/* Field stacks (form layouts). */
.field-stack {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}
.field-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.field-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rate-fieldset {
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 20px 20px 8px;
    margin-bottom: 24px;
}
.rate-fieldset__legend {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    padding: 0 8px;
}

/* Two-column layout: form-or-text on left, side panel right. */
.split {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.split__main { flex: 1; }

/* Generic horizontal "between" row. */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Profile lists (provider profiles, files, …). */
.list-vert {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-vert > li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 12px;
    flex-wrap: wrap;
}

/* Small data divider used in profiles. */
.profile-divider {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Inline action links (export, delete, etc.). */
.action-link {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.action-link--danger { color: var(--danger); }
.action-link:hover { text-decoration: underline; }

/* Footer separator. */
.footer-sep {
    color: var(--border);
    user-select: none;
    margin: 0 4px;
}

/* Surface-alt highlight panel (used for "Werde Anbieter:in" etc.). */
.panel-soft {
    background: var(--surface-alt);
}

/* Text utilities (sparingly). */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-muted--sm { color: var(--text-muted); font-size: 0.95rem; }
.lead-muted { color: var(--text-muted); margin-bottom: 20px; }

/* Code block / kbd-like inline panel. */
.code-block {
    background: var(--surface-alt);
    padding: 12px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Inline-flex tags for invoice/file rows. */
.inline-row {
    display: inline;
}
.inline-row form { display: inline; }

/* Avatar preview (already exists; alias for legacy markup). */
.avatar-lg-square {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
}

/* "grid-column: 1 / -1" full-row helper for grid layouts. */
.grid-full { grid-column: 1 / -1; }

/* Tag listing for legal/help dense pages. */
.dense-text { font-size: 0.95rem; }

/* Card accent variants. */
.card--accent-top { border-top: 4px solid var(--primary); }
.card--accent-left { border-left: 4px solid var(--primary); }
.card--accent-danger-top { border-top: 4px solid var(--danger); }

/* Provider profile header (visitenkarte). */
.profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.profile-header__body {
    flex: 1;
    min-width: 250px;
}
.profile-header__role {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.profile-header__bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Contact panel (right column on provider profile). */
.contact-panel {
    background: var(--surface-alt);
    padding: 12px;
    border-radius: 6px;
    min-width: 200px;
}
.contact-panel__label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-weight: 600;
}
.contact-panel__line { margin-bottom: 4px; }
.contact-panel__locked {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Skill chip with green/red accents (provider profile). */
.chip {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 8px;
}
.chip--success { background: var(--success-bg); color: var(--success); }
.chip--danger { background: var(--danger-bg); color: var(--danger); }

/* Praxis description / muted prose. */
.praxis-desc {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.skills-block {
    margin-top: 16px;
}
.skills-block__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.skills-block__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Form layouts: 2-column grid + full-span helper already done via .grid-full. */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-grid--2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .form-grid, .form-grid--2-1 { grid-template-columns: 1fr; }
}

/* Checkbox row label (vertical-align checkbox + text). */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

/* Skills picker filter input + scrolling list. */
.skills-picker__filter {
    margin-bottom: 8px;
    width: 100%;
}
.skills-picker__list {
    height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 10px;
}

/* Danger-styled primary button (e.g. delete confirm). */
.btn--danger {
    background-color: var(--danger);
    border-color: var(--danger);
}
.btn--danger:hover { background: #6f2e2e; }

/* Centered button cluster (e.g. delete confirm). */
.btn-cluster-center {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Top-margin helpers for sections inside cards. */
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 28px; }
.mt-sm { margin-top: 10px; }
.mt-xs { margin-top: 16px; }
.mb-md { margin-bottom: 16px; }

/* Cookie-consent note under registration forms. */
.form-cookie-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Centered link under form (e.g. "Zurück zum Login"). */
.auth-footer-link {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Form-level error line above auth forms. */
.form-error-summary {
    color: var(--danger);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Block button below form (full width). */
.btn--form-submit {
    width: 100%;
    margin-top: 10px;
}

/* Checkbox row layout (used in register form for ToS-style consents). */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.checkbox-row__box { margin-top: 3px; flex-shrink: 0; }
.checkbox-row__label { line-height: 1.5; }

/* Registration page layout */
.register-layout { max-width: 920px; margin: 40px auto; padding: 0 20px; }
.register-intro { margin-bottom: 28px; }
.register-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.reg-sidebar { display: flex; flex-direction: column; gap: 16px; }
.reg-trust-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.reg-trust-card svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.step-list { display: flex; flex-direction: column; gap: 14px; }
.step-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.step-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.register-infobox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--surface-alt);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}
.register-infobox svg { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 680px) {
    .register-grid { grid-template-columns: 1fr; }
    .reg-sidebar { display: none; }
}

/* Code-block panel for token / invoice-no display. */
.token-block {
    background: var(--surface-alt);
    padding: 12px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Legal page utility — accent warning panel + plain address card. */
.legal-warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 16px 20px;
    margin-bottom: 28px;
    border-radius: 6px;
}
.address-block {
    background: var(--surface-alt);
    padding: 12px;
    border-radius: 4px;
}
.legal-divider { margin-top: 40px; }
.legal-page { max-width: 760px; margin: 40px auto; line-height: 1.6; }

/* Skills page utilities. */
.skill-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.skill-list-grid--sm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.skill-card { display: block; }
.skill-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.skill-card__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.skill-card__children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skill-card__cta { margin-top: 14px; }

/* Breadcrumb bar. */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumbs__sep { margin: 0 6px; }
.breadcrumbs__current { color: var(--text); }

/* Card-link (whole-card clickable links on skill detail). */
.card-link {
    display: block;
    background: var(--surface);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / .08);
    text-decoration: none;
    color: var(--text);
}
.card-link:hover { text-decoration: none; box-shadow: 0 4px 12px rgb(0 0 0 / .10); }
.card-link__desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Small praxis-row card on skill page. */
.praxis-row {
    background: var(--surface);
    padding: 40px 36px;
    border-radius: 16px;
    border: 0.5px solid var(--border);
}
.praxis-row__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.praxis-row__name { display: block; font-weight: 600; }
.praxis-row__sub {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Vertrieb form pages (single-column form layouts). */
.form-page {
    max-width: 480px;
    margin: 40px auto;
}
.form-page--wide { max-width: 560px; margin: 40px auto; }
.form-page--center { max-width: 480px; margin: 40px auto; text-align: center; }

/* Centered link line under form. */
.form-foot-link {
    margin-top: 16px;
    text-align: center;
}
.form-foot-thanks {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Live-chat availability indicator. */
.if-chat-available .available { display: none; }
.if-chat-available .available[hidden] { display: none; }
.chat-availability-hidden { display: none; }

/* Onboarding-section header (primary-coloured subhead inside card). */
.card-subhead {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary);
}
.card-subhead--tight { margin-bottom: 4px; }
.card-sublede {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Centered narrow column for forms (broader than .center-narrow*). */
.column-narrow {
    max-width: 680px;
    margin: 0 auto;
}

/* Header block above onboarding form (title + lede). */
.onboarding-header {
    margin-bottom: 32px;
}
.onboarding-header h1 { margin-bottom: 8px; }
.onboarding-header p { color: var(--text-muted); margin: 0; }

/* Inline checkbox pill (selectable tag). */
.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}
.checkbox-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* Avatar preview row (existing avatar before file input). */
.avatar-preview-row {
    margin-bottom: 8px;
}
.avatar-preview-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
}

/* Bottom action bar of long forms. */
.form-bottom-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 40px;
}

/* Vertical-stacked field group inside a card. */
.field-stack-tight {
    display: grid;
    gap: 16px;
}

/* Field-grid with bottom margin (used in onboarding personal block). */
.form-grid--mb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 600px) { .form-grid--mb { grid-template-columns: 1fr; } }

/* Card variants with explicit bottom margin (used between onboarding sections). */
.card--section { margin-bottom: 24px; }

/* ---- Detail grid — reusable for appointment/invoice/etc. detail views ---- */
.detail-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0;
    margin: 20px 0;
}
.detail-grid dt {
    padding: 10px 16px 10px 0;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    border-bottom: 0.5px solid var(--border);
}
.detail-grid dd {
    padding: 10px 0;
    margin: 0;
    color: var(--text);
    border-bottom: 0.5px solid var(--border);
}
.detail-grid dt:last-of-type,
.detail-grid dd:last-of-type { border-bottom: none; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; align-items: center; }

/* ---- Custom file input ---- */
.file-upload-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.file-pick-btn { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.file-pick-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.file-pick-label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 16px; height: 38px; border-radius: 8px;
    border: 1.5px solid var(--primary); background: transparent;
    font-size: 0.875rem; font-weight: 500; color: var(--primary);
    cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s;
}
.file-pick-btn:hover .file-pick-label { background: var(--primary); color: #fff; }
.file-pick-name { font-size: 0.82rem; color: var(--text-muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Leaflet map containers ---- */
.map-canvas { height: 220px; overflow: hidden; border-radius: 10px; margin: 0 16px 16px; }
.praxis-map { width: 100%; height: 180px; border-radius: 10px; margin-top: 14px; overflow: hidden; }
.map-pin {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary); border: 2.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
    transition: transform 0.15s, background 0.15s;
}
.map-pin--active {
    background: var(--primary);
    border-color: #fff;
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ---- Autocomplete dropdowns (Ort + Anliegen) ---- */
.ort-field, .anliegen-field { position: relative; }
.ort-suggestions, .anliegen-suggestions {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
    background: var(--surface); border: 0.5px solid var(--border);
    border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.10);
    list-style: none; margin: 0; padding: 4px 0; max-height: 220px; overflow-y: auto;
}
.ort-suggestions li, .anliegen-suggestions li {
    padding: 9px 14px; font-size: 0.875rem; cursor: pointer;
    color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ort-suggestions li:hover, .anliegen-suggestions li:hover { background: var(--surface-muted); }

/* ---- Leaflet tile / blend-mode fix ---- */
.leaflet-tile { mix-blend-mode: normal !important; }
.leaflet-attribution-flag { display: none !important; }

/* ---- Leaflet popup override ---- */
.leaflet-popup-content-wrapper {
    background: var(--surface) !important; color: var(--text) !important;
    border-radius: 10px !important; box-shadow: 0 4px 16px rgba(0,0,0,.12) !important;
    border: 0.5px solid var(--border) !important;
}
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-content { font-size: 0.82rem; line-height: 1.5; margin: 10px 14px; }
.leaflet-popup-content a { color: var(--primary); }
.leaflet-popup-close-button { color: var(--text-muted) !important; }
.leaflet-control-zoom a {
    background: var(--surface) !important; color: var(--text) !important;
    border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover { background: var(--surface-muted) !important; }
@media (max-width: 480px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid dt { border-bottom: none; padding-bottom: 2px; }
}

/* ---------- Nav CTA pill button ---------- */
.nav-cta {
    padding: 0 20px;
    min-height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }

/* ---------- Provider setup page ---------- */
.setup-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 60px;
}
.setup-hero {
    text-align: center;
    padding: 40px 0 32px;
}
.setup-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.setup-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.setup-section {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
}
.setup-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid var(--border);
}
.setup-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.setup-section-header h2 { margin: 0; font-size: 1.1rem; }
.setup-section-header p { margin: 2px 0 0; font-size: 0.85rem; color: var(--text-muted); }

.field-grid { display: grid; gap: 18px; }
.field-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.field-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.optional-tag { font-size: 0.75rem; font-weight: 400; color: var(--text-placeholder); margin-left: 6px; }

.avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px dashed var(--border);
}
.avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.skill-search {
    width: 100%;
    padding: 8px 12px;
    border: 0.5px solid var(--border-strong);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.skill-list {
    max-height: 220px;
    overflow-y: auto;
    border: 0.5px solid var(--border-strong);
    border-radius: 8px;
    padding: 10px 14px;
}
.skill-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 4px 0;
    font-size: 0.9rem;
}

.setup-actions { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.setup-actions .btn { min-width: 160px; }

@media (max-width: 640px) {
    .setup-section { padding: 20px 18px; }
    .field-grid.cols-2 { grid-template-columns: 1fr; }
    .setup-hero h1 { font-size: 1.5rem; }
}

/* ====================================================
   SEARCH PAGE
   ==================================================== */

main.main-full {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.search-band {
    padding: 32px 48px 24px;
    border-bottom: 0.5px solid var(--border);
}
.search-band .band-inner { max-width: 1200px; margin: 0 auto; }

.search-hero { margin-bottom: 20px; }
.search-hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 6px;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.search-hero h1 em { font-style: italic; color: var(--primary); }
.search-hero p { font-size: 15px; color: var(--text-muted); margin-bottom: 0; max-width: 600px; }

.filter-bar {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto;
    gap: 0;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    align-items: stretch;
    margin-top: 20px;
}
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 14px;
    border-right: 0.5px solid var(--border);
    min-width: 0;
}
.filter-field:last-of-type { border-right: none; }
.filter-field--stacked { padding: 0; gap: 0; }
.filter-field--centered { justify-content: center; }
.filter-subfield { padding: 4px 14px; }
.filter-subfield:not(:last-child) { border-bottom: 0.5px solid var(--border); }
.filter-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.filter-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    color: var(--text);
    min-width: 0;
}
.filter-value input,
.filter-value select {
    width: 100%;
    min-height: unset;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14.5px;
    color: var(--text);
    border-radius: 0;
    box-shadow: none;
    outline: none;
}
.filter-value select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.select-caret {
    color: var(--text-placeholder);
    flex-shrink: 0;
    margin-left: auto;
    pointer-events: none;
}
.filter-value input::placeholder { color: var(--text-placeholder); }
.filter-value input:focus,
.filter-value select:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background: transparent;
}
.filter-search {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 22px;
    margin: 2px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.filter-search:hover { background: var(--primary-hover); }

.results-meta {
    padding: 16px 48px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1296px;
    margin: 0 auto;
    width: 100%;
}
.results-count { font-size: 14.5px; color: var(--text-muted); }
.results-count strong { color: var(--text); font-weight: 500; }
.sort-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.sort-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 0.5px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
    cursor: default;
    text-decoration: none;
}
.sort-pill.active { background: var(--surface-alt); border-color: var(--border-strong); font-weight: 500; }

.results-area {
    padding: 14px 48px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    max-width: 1296px;
    margin: 0 auto;
    width: 100%;
}

.provider-grid { display: flex; flex-direction: column; gap: 10px; }

.provider-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 60px minmax(0, 200px) minmax(0, 1fr) minmax(0, 120px) auto;
    align-items: center;
    min-height: 80px;
    column-gap: 16px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.provider-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 2px 12px rgba(44,58,41,0.08);
    text-decoration: none;
    color: var(--text);
}

.pc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-muted);
}
.pc-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }

/* Name column — never overflows */
.pc-head { min-width: 0; }
.pc-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15.5px;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-role { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-bio { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pills column — max 2 pills, single row, no overflow */
.pc-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    align-self: center;
}
.pc-meta .pill {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}
.pc-pill-count {
    background: var(--surface-muted);
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Format column */
.pc-format { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.pc-format-line { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-format-line svg { color: var(--primary); flex-shrink: 0; }

/* Price column — always fixed, never squeezed */
.pc-price { text-align: right; white-space: nowrap; padding-left: 14px; border-left: 0.5px solid var(--border); flex-shrink: 0; }
.pc-price-from { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 1px; }
.pc-price-num { font-family: 'DM Serif Display', Georgia, serif; font-size: 17px; color: var(--text); line-height: 1.1; display: block; }
.pc-price-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; display: block; }
.pc-price-na { font-size: 12.5px; color: var(--text-muted); display: block; margin-top: 4px; }

.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
    padding: 4px 10px;
    background: var(--surface-alt);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}
.pill-taupe { background: var(--taupe-soft); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0.5px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.search-sidebar { display: flex; flex-direction: column; gap: 14px; }

.map-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.map-card-header { padding: 14px 16px 10px; }
.map-card-title { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--text); margin-bottom: 2px; }
.map-card-sub { font-size: 12px; color: var(--text-muted); }
.map-canvas svg { display: block; width: 100%; height: auto; }
.map-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-muted); margin-top: 10px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }

.trust-card { background: var(--surface-alt); border-radius: 14px; padding: 16px 18px; font-size: 13px; line-height: 1.55; color: var(--text); }
.trust-card-title { font-family: 'DM Serif Display', serif; font-size: 15px; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; color: var(--text); }
.trust-card-title svg { color: var(--primary); flex-shrink: 0; }

.search-empty { background: var(--surface); border: 0.5px solid var(--border); border-radius: 14px; padding: 48px 32px; text-align: center; color: var(--text-muted); }
.search-empty a { color: var(--primary); }

/* ≤1200px: sidebar verschwindet, format-spalte bleibt */
@media (max-width: 1200px) {
    .results-area { grid-template-columns: 1fr; padding: 14px 32px 40px; }
    .search-sidebar { display: none; }
}

/* ≤960px: format-spalte weg, pills bleiben */
@media (max-width: 960px) {
    .search-band { padding: 24px 32px 20px; }
    .results-meta { padding: 14px 32px 0; }
    .results-area { padding: 12px 32px 40px; }
    .provider-card { grid-template-columns: 56px minmax(0, 180px) minmax(0, 1fr) auto; }
    .pc-format { display: none; }
}

/* ≤680px: filter stacks, cards slim */
@media (max-width: 680px) {
    .search-band { padding: 16px 16px 14px; }
    .filter-bar {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-radius: 14px;
        padding: 4px;
    }
    .filter-field {
        border-right: none;
        border-bottom: 0.5px solid var(--border);
        padding: 8px 12px;
    }
    .filter-field:last-of-type { border-bottom: none; }
    .filter-search {
        width: calc(100% - 8px);
        justify-content: center;
        padding: 11px 0;
        margin: 4px;
        border-radius: 10px;
    }
    .results-meta { padding: 10px 16px 0; flex-wrap: wrap; gap: 6px; }
    .sort-row { display: none; }
    .results-area { padding: 10px 16px 32px; }
    .provider-card { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 12px 14px; column-gap: 10px; }
    .pc-meta { display: none; }
}

/* ---- Tabellen + Listen für Termine/Buchhaltung ----------------------------
   Zuvor referenzierten invoice_list/_detail (.invoices, .invoice-items) und
   appointment_list (.termine) Klassen, die nirgends definiert waren —
   die Tabellen kamen ohne Styling daher. .data-table ist die generische
   Form, die in beiden Listen verwendet wird (siehe abrechnung/templates und
   termine/templates). */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e0dcd4);
    border-radius: 6px;
    overflow: hidden;
}
.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border, #e9e5dd);
    vertical-align: top;
}
.data-table thead th {
    background: var(--surface-muted, #f6f3ed);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted, #5a5650);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tfoot th,
.data-table tfoot td {
    background: var(--surface-muted, #f6f3ed);
    font-weight: 600;
}
.data-table td.numeric,
.data-table th.numeric { text-align: right; font-variant-numeric: tabular-nums; }

/* Sekundär-Button im Chat: textbasiertes „Chat beenden" neben
   dem Senden-Button. Bewusst dezent, damit der Submit dominiert. */
.chat-close-btn {
    background: none;
    border: 1px solid var(--border, #ccc);
    color: var(--text-muted, #5a5650);
    padding: 6px 12px;
    line-height: 1.2;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}
.chat-close-btn:hover,
.chat-close-btn:focus {
    background: var(--surface-muted, #f0ebe0);
    color: var(--text, #2f3a2c);
}

/* Visually-hidden helper — semantischer Text, der nur Screen-Reader
   sehen (Standard-Accessibility-Pattern). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Secondary action below the primary form submit (e.g. "Don't have
   an account? → Register"). Dezent, klein, mit Abstand zum Button. */
.form-secondary-action {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted, #555);
    text-align: center;
}

/* Issue #67: Rechnungs-Meta-Liste inline mit Trennlinien (statt
   Block-Default). Mobile: stack zurück auf Block. */
.invoice-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 24px;
    row-gap: 0;
    margin: 16px 0 24px;
}
.invoice-meta dt {
    font-weight: 500;
    color: var(--text-muted, #555);
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #e0dcd4);
}
.invoice-meta dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #e0dcd4);
    margin: 0;
}
.invoice-meta > *:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 480px) {
    .invoice-meta { grid-template-columns: 1fr; }
    .invoice-meta dt { padding-bottom: 0; border-bottom: 0; }
    .invoice-meta dd:not(:last-child) { padding-top: 2px; }
}
