.portal-documents,
.portal-info,
.meldungen-container,
.portal-bookings {
    box-sizing: border-box;
    padding-block: clamp(16px, 2.5vw, 28px);
    display: grid;
    gap: 20px;
}

.documents-group,
.info-package,
.meldung,
.portal-bookings > .container,
.portal-empty {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.documents-group h2,
.info-package h2,
.meldung-titelzeile {
    margin: 0;
    padding: 15px clamp(14px, 2.5vw, 24px);
    border-radius: 13px 13px 0 0;
    border-bottom: 1px solid var(--app-border);
    background: var(--app-surface-muted);
    color: var(--app-ink);
    font-size: 1.125rem;
    line-height: 1.35;
}

.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documents-list li + li {
    border-top: 1px solid var(--app-border);
}

.document-row {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px clamp(14px, 2.5vw, 24px);
    color: var(--app-ink);
    text-decoration: none;
}

.documents-list li:last-child .document-row {
    border-radius: 0 0 13px 13px;
}

.document-row:hover {
    background: var(--app-row-hover);
}

.document-row:focus-visible {
    outline: 2px solid var(--theme-accent-text, var(--app-accent-dark));
    outline-offset: -3px;
}

.document-period {
    min-width: 0;
    display: grid;
    overflow-wrap: anywhere;
    font-weight: 650;
}

.document-number {
    color: var(--app-muted);
    font-size: .875rem;
    font-weight: 400;
}

.document-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 8px;
    background: var(--app-accent-soft);
    color: var(--theme-accent-text, var(--app-accent-dark));
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
}

.document-action > span {
    font-size: 1.25rem;
    line-height: 1;
}

.portal-empty {
    padding: 20px 24px;
    color: var(--app-muted);
}


.info-package-row {
    min-height: 58px;
    box-sizing: border-box;
    gap: 10px;
    padding: 10px clamp(14px, 2.5vw, 24px);
    color: var(--app-ink);
}

.info-package-row + .info-package-row {
    border-top: 1px solid var(--app-border);
}

.info-package-row:last-child {
    border-radius: 0 0 13px 13px;
}

.info-package-row > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.info-package-row > div:first-child {
    font-weight: 650;
}


.portal-bookings {
    gap: 14px;
}

.portal-bookings.booking-day {
    padding-bottom: 10px;
}

.portal-bookings .booking-months {
    margin: 0;
}

.portal-bookings > .container {
    padding: 0;
}

.portal-bookings .grid-zeit {
    margin: 0;
    padding: 10px clamp(10px, 2.5vw, 24px);
    min-height: 48px;
    row-gap: 6px;
    align-content: center;
    border-radius: 0;
    background: var(--app-surface);
    box-shadow: none;
}

.portal-bookings .grid-zeit + .grid-zeit {
    border-top: 1px solid var(--app-border);
}

.portal-bookings .grid-header,
.portal-bookings .grid-footer {
    background: var(--app-surface-muted);
    font-weight: 700;
}

.portal-bookings .grid-header {
    border-radius: 13px 13px 0 0;
}

.portal-bookings .grid-footer {
    border-radius: 0 0 13px 13px;
}

.portal-bookings .sunday {
    background: var(--app-surface-muted);
}

.portal-bookings .grid-zeit > :first-child {
    justify-self: start;
    font-weight: 650;
}

.portal-bookings .zeit-link:focus-visible {
    outline: 2px solid var(--theme-accent-text, var(--app-accent-dark));
    outline-offset: 2px;
}

/* Shared card surfaces keep list and form geometry intact. */
body > .container,
body.content-width-small > .auth-card,
.privacy-section,
.api-activity-table-wrap,
.session-summary,
.log-cleanup-panel,
.dashboard-card {
    border-radius: 14px;
    box-shadow: var(--app-shadow);
}

body > .container,
body.content-width-small > .auth-card {
    border: 1px solid var(--app-border);
}

body:not(.dashboard-page) > .menu-bar + .container {
    margin-block-start: 16px;
}

body:not(.dashboard-page) > .grid-caption {
    border: 1px solid var(--app-border);
    background: var(--app-surface-muted);
    color: var(--app-ink);
    font-weight: 700;
}

.liste-wrap.container {
    padding: 0;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: var(--app-shadow);
}

.liste-wrap > .container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.liste-wrap > .container + .container {
    border-top: 1px solid var(--app-border);
}

.liste-wrap > .grid-header,
.liste-wrap > .grid-footer {
    background: var(--app-surface-muted);
}

.liste-wrap > .grid-header {
    border-radius: 13px 13px 0 0;
    font-weight: 700;
}

.liste-wrap > .grid-footer {
    border-radius: 0 0 13px 13px;
}

.liste-wrap > .grid-liste:not(.grid-header):is(:hover, :focus-within) {
    background: var(--app-row-hover);
}

.inactive-tenant-list > .liste-wrap {
    margin-block-start: 12px;
}

.settings-card-body {
    padding: clamp(14px, 2.5vw, 24px);
}

.settings-card-body p {
    margin: 0 0 16px;
    color: var(--app-muted);
}

.recording-page .booking-actions,
.booking-today {
    box-sizing: border-box;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.recording-page .booking-actions {
    padding: clamp(14px, 2.5vw, 24px);
}

.recording-page .booking-actions .button {
    flex-basis: 7rem;
    min-height: 48px;
}

.recording-page .button-secondary:focus-visible {
    outline: 3px solid var(--app-focus);
    outline-offset: 2px;
}

.booking-today h2 {
    margin: 0;
    padding: 15px clamp(14px, 2.5vw, 24px);
    color: var(--app-ink);
    font-size: 1.125rem;
    line-height: 1.35;
}

.booking-today > .container {
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.booking-today .grid-header {
    border-top: 1px solid var(--app-border);
    border-radius: 0;
}


.meldungen-container {
    gap: 16px;
}

.meldungen-kopf,
.meldung-titelzeile,
.meldung-fuss {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.meldungen-kopf,
.meldung-fuss {
    flex-wrap: wrap;
}

.meldungen-hinweis,
.meldung-meta {
    color: var(--app-muted);
}

.meldungen-hinweis {
    margin: 0;
}

.meldung-titelzeile {
    align-items: flex-start;
}

.meldung-titelzeile h2 {
    min-width: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}

.meldung-status {
    flex: none;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--app-surface);
    color: var(--app-ink);
    font-size: .8125rem;
    font-weight: 700;
}

.meldung-ungelesen .meldung-status {
    background: var(--app-accent-soft);
    color: var(--theme-accent-text, var(--app-accent-dark));
}

.meldung-text {
    margin: 0;
    padding: 16px clamp(14px, 2.5vw, 24px);
    color: var(--app-ink);
    overflow-wrap: anywhere;
}

.meldung-fuss {
    padding: 12px clamp(14px, 2.5vw, 24px);
    border-top: 1px solid var(--app-border);
}

.meldung-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: .8125rem;
}

.meldung-aktion {
    margin: 0;
}

.button.meldung-button {
    width: auto;
    min-width: 0;
    min-height: 42px;
    height: auto;
    margin: 0;
    padding: 8px 12px;
}

.meldung-button:focus-visible {
    outline: 2px solid var(--theme-accent-text, var(--app-accent-dark));
    outline-offset: 2px;
}
