/* Die helle Ansicht bleibt unverändert. Alle dunklen Regeln gelten nur nach Kontoauswahl. */
/* Eine zentrale Admin-Einstellung hält Abschnittsüberschriften projektweit einheitlich. */
body h2 {
    font-size: clamp(1.25rem, 4vw, var(--site-section-heading-size, 30px)) !important;
}

html[data-theme="dark"] {
    color-scheme: dark;
    background: #100d15;
    --ink-950: #f7f0f8;
    --ink-900: #ebe2ef;
    --ink-800: #d7cadf;
    --ink-700: #c4b6cd;
    --ink-600: #ae9fb8;
    --ink-500: #96879f;
    --ink-300: #6c5b76;
    --ink-200: #48394f;
    --ink-100: #302638;
    --paper: #100d15;
    --white: #201a28;
    --berry-700: #ffb7d4;
    --berry-600: #f28ab8;
    --berry-500: #e4669c;
    --berry-400: #c34b80;
    --berry-100: #3c2437;
    --green-700: #8ee2ae;
    --green-100: #20392b;
    --red-700: #ff9da9;
    --red-100: #3f222b;
    --blue-700: #a4c9f0;
    --blue-100: #213246;
    --shadow-sm: 0 12px 30px rgba(0,0,0,.2);
    --shadow-lg: 0 32px 84px rgba(0,0,0,.38);
}

body[data-theme="dark"] {
    --site-page-background: #100d15 !important;
    --site-page-text: #f7f0f8 !important;
    --site-vip-background: #2d2435 !important;
    --site-vip-text: #f7f0f8 !important;
    --site-button-primary-background: #aa275f !important;
    --site-button-primary-text: #ffffff !important;
    --site-button-secondary-background: #33283c !important;
    --site-button-secondary-text: #f7f0f8 !important;
    --site-button-danger-background: #a83b51 !important;
    --site-button-danger-text: #ffffff !important;
    --site-button-quiet-background: #292130 !important;
    --site-button-quiet-text: #eadde9 !important;
    background: #100d15 !important;
    color: #f7f0f8;
}

body[data-theme="dark"] > main,
body[data-theme="dark"].page-discover,
body[data-theme="dark"].page-admin,
body[data-theme="dark"].page-admin-content,
body[data-theme="dark"].page-admin-profile-attributes,
body[data-theme="dark"].page-moderation,
body[data-theme="dark"].page-contacts,
body[data-theme="dark"].page-events,
body[data-theme="dark"].page-messages,
body[data-theme="dark"].page-wall,
body[data-theme="dark"].page-media,
body[data-theme="dark"].page-register,
body[data-theme="dark"].page-membership,
body[data-theme="dark"].page-account { background: #100d15 !important; color: #f7f0f8; }

body[data-theme="dark"].page-unified-background,
body[data-theme="dark"].page-unified-background > main {
    background:
        linear-gradient(90deg, rgba(10, 8, 16, .97) 0%, rgba(13, 10, 20, .92) 48%, rgba(15, 11, 22, .84) 100%),
        url("../img/clubdeseo-maintenance.webp") center / cover fixed no-repeat !important;
}

body[data-theme="dark"] .site-header { background: rgba(20,16,27,.94); border-color: #48394f; }
body[data-theme="dark"] .nav-login-mobile { background: #19141f; border-color: #62516b; color: #f7f0f8; }
body[data-theme="dark"] .nav-login-mobile:is(:hover, :focus-visible) { background: #352535; border-color: #b75a86; color: #ffffff; }
body[data-theme="dark"] .header-profile { background: #19141f; border-color: #62516b; color: #f7f0f8; }
body[data-theme="dark"] .header-profile:is(:hover, :focus-visible) { background: #352535; border-color: #b75a86; color: #ffffff; }
body[data-theme="dark"] .header-profile__avatar--fallback { background: #302639; color: #f7f0f8; }
body[data-theme="dark"] .header-messages { background: #19141f; border-color: #62516b; color: #f7f0f8; }
body[data-theme="dark"] .header-messages:is(:hover, :focus-visible) { background: #352535; border-color: #b75a86; color: #ffffff; }
body[data-theme="dark"] .header-messages .nav-unread { border-color: #19141f; }
body[data-theme="dark"] .primary-nav > a.header-staff-action { background: #19141f; border-color: #62516b; color: #f7f0f8; }
body[data-theme="dark"] .primary-nav > a.header-staff-action:is(:hover, :focus-visible) { background: #352535; border-color: #b75a86; color: #ffffff; }
body[data-theme="dark"] .header-logout__button { background: #19141f; border-color: #62516b; color: #f7f0f8; }
body[data-theme="dark"] .header-logout__button:is(:hover, :focus-visible) { background: #352535; border-color: #b75a86; color: #ffffff; }
body[data-theme="dark"] .site-footer { background: #0a0810; color: #f7f0f8; }
body[data-theme="dark"] .site-footer .brand__mark { border-color: #e5d7e9; }
body[data-theme="dark"] .site-footer nav a,
body[data-theme="dark"] .site-footer nav button,
body[data-theme="dark"] .site-footer p { color: #dacde1; }
body[data-theme="dark"] .home-hero,
body[data-theme="dark"] .adult-access-gate { background: #17121d; color: #ffffff; }
body[data-theme="dark"] .home-hero .button--light { background: #f7f0f8; color: #17121d; }

body[data-theme="dark"] .panel,
body[data-theme="dark"] .filter-panel,
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .cookie-card,
body[data-theme="dark"] .ui-confirm-dialog,
body[data-theme="dark"] .contact-dialog,
body[data-theme="dark"] .session-timeout-dialog,
body[data-theme="dark"] .messenger,
body[data-theme="dark"] .attribute-item,
body[data-theme="dark"] .date-create-toggle,
body[data-theme="dark"] .event-card,
body[data-theme="dark"] .privacy-index a,
body[data-theme="dark"] .account-theme-choice__card { background: #201a28; border-color: #48394f; color: #f7f0f8; }
body[data-theme="dark"] .session-timeout-dialog p { color: #d9cde0; }
body[data-theme="dark"] .profile-card--business,
body[data-theme="dark"] .profile-card--business .profile-card__body { background: #263a4d; border-color: #557a9d; color: #f1f7ff; }
body[data-theme="dark"] .profile-card--business .profile-card__meta { border-color: #557a9d; }
body[data-theme="dark"] .profile-card--business .profile-card__meta strong { color: #a9d3f6; }

body[data-theme="dark"] .chat-list,
body[data-theme="dark"] .chat-list__title,
body[data-theme="dark"] .chat-thread,
body[data-theme="dark"] .message-stream,
body[data-theme="dark"] .message-composer,
body[data-theme="dark"] .chat-preview-row.is-active,
body[data-theme="dark"] .chat-preview-row:hover { background: #201a28; color: #f7f0f8; }
body[data-theme="dark"] .chat-preview-row.is-active { box-shadow: inset 3px 0 #e4669c; }
body[data-theme="dark"] .message-bubble:not(.is-own),
body[data-theme="dark"] .message-event-reference,
body[data-theme="dark"] .chat-avatar,
body[data-theme="dark"] .chat-tool { background: #302639; color: #f7f0f8; border-color: #584460; }
body[data-theme="dark"] .message-bubble.is-own { background: #67304f; color: #ffffff; }
body[data-theme="dark"] .message-event-reference span { color: #ffb7d4; }
body[data-theme="dark"] .chat-status,
body[data-theme="dark"] .message-system--quota { background: #392d2a; color: #f4dcc0; border-color: #85664b; }

body[data-theme="dark"] .field input,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .profile-edit-form input:not([type="checkbox"]):not([type="radio"]),
body[data-theme="dark"] .profile-edit-form select,
body[data-theme="dark"] .profile-edit-form textarea,
body[data-theme="dark"] .message-composer textarea,
body[data-theme="dark"] .content-editor textarea,
body[data-theme="dark"] .content-editor input:not([type="color"]),
body[data-theme="dark"] .presence-setting-form input,
body[data-theme="dark"] .wall-reach-setting-form input,
body[data-theme="dark"] .attribute-item__move { background: #19141f; color: #f7f0f8; border-color: #62516b; }
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder { color: #9c8ea5; }
body[data-theme="dark"] .button--primary,
body[data-theme="dark"] .button--danger { color: #ffffff; }

body[data-theme="dark"] .account-delete__notice,
body[data-theme="dark"] .attribute-warning,
body[data-theme="dark"] .preference-search-cta,
body[data-theme="dark"] .event-cancelled-notice,
body[data-theme="dark"] .date-create-toggle > b,
body[data-theme="dark"] .legal-warning,
body[data-theme="dark"] .prelaunch-notice { background: #352535; border-color: #6a4762; color: #f6e7ef; }
body[data-theme="dark"] .account-delete__notice li,
body[data-theme="dark"] .attribute-warning span { color: #d8c9d9; }

body[data-theme="dark"] .message-draft-reference,
body[data-theme="dark"] .date-image-editor,
body[data-theme="dark"] .date-publish-target,
body[data-theme="dark"] .date-publish-target select,
body[data-theme="dark"] .date-group-address,
body[data-theme="dark"] .date-image-tools button,
body[data-theme="dark"] .event-card__date,
body[data-theme="dark"] .event-bookmark button,
body[data-theme="dark"] .event-action,
body[data-theme="dark"] .event-requests button,
body[data-theme="dark"] .event-participant-card,
body[data-theme="dark"] .wall-composer__tools,
body[data-theme="dark"] .wall-event-reference,
body[data-theme="dark"] .wall-comments__panel,
body[data-theme="dark"] .social-card,
body[data-theme="dark"] .date-planner__section,
body[data-theme="dark"] .date-match-result,
body[data-theme="dark"] .date-current-proposal,
body[data-theme="dark"] .date-suggestions,
body[data-theme="dark"] .date-waiting,
body[data-theme="dark"] .date-suggestion,
body[data-theme="dark"] .saved-event-list article,
body[data-theme="dark"] .dashboard-panel,
body[data-theme="dark"] .hours-row,
body[data-theme="dark"] .company-image-card,
body[data-theme="dark"] .event-admin-list article,
body[data-theme="dark"] .content-editor__field,
body[data-theme="dark"] .profile-card--contact-limited { background: #282030; border-color: #57455f; color: #f7f0f8; }
body[data-theme="dark"] .event-card.is-cancelled,
body[data-theme="dark"] .event-admin-list article.is-cancelled,
body[data-theme="dark"] .saved-event-list article.is-cancelled { background: #2b212a; }
body[data-theme="dark"] .page-business-dashboard,
body[data-theme="dark"] .page-privacy-settings,
body[data-theme="dark"] .page-profile-edit,
body[data-theme="dark"] .page-business-documents,
body[data-theme="dark"] .page-system-message { background: #100d15; }

body[data-theme="dark"] .profile-content,
body[data-theme="dark"] .profile-details,
body[data-theme="dark"] .profile-summary,
body[data-theme="dark"] .profile-about,
body[data-theme="dark"] .result-area,
body[data-theme="dark"] .event-feed { color: #f7f0f8; }
body[data-theme="dark"] .profile-cover--empty { background: #241b2e; }
body[data-theme="dark"] .profile-summary__name,
body[data-theme="dark"] .dashboard-head__title { color: #f7f0f8; }

body[data-theme="dark"] .ui-notice,
body[data-theme="dark"] .alert { border-color: #6d5267; }
body[data-theme="dark"] .role-preview { background: #322339; color: #f7f0f8; }
body[data-theme="dark"] .role-preview button { color: #f7f0f8; }
body[data-theme="dark"] .page-admin-content .content-button-preview,
body[data-theme="dark"] .content-editor__index { background: #201a28; }

body[data-theme="dark"] .company-cover-editor__panel { background: #201a28; border-color: #48394f; color: #f7f0f8; }
body[data-theme="dark"] .company-cover-editor__panel > p,
body[data-theme="dark"] .company-cover-editor__response { color: #c4b6cd; }
body[data-theme="dark"] .company-cover-editor__response.is-error { color: #ff9da9; }
body[data-theme="dark"] .company-cover-editor__rotate button { background: #33283c; border-color: #62516b; color: #f7f0f8; }
body[data-theme="dark"] .company-cover-editor__remove { border-color: #48394f; }
body[data-theme="dark"] .business-cover-manager { background: #282030; border-color: #57455f; color: #f7f0f8; }
body[data-theme="dark"] .business-cover-manager__rotate button { background: #33283c; border-color: #62516b; color: #f7f0f8; }
body[data-theme="dark"] .profile-group-card { background: #201c24; border-color: rgba(255, 255, 255, .13); color: #f7f0f8; }
body[data-theme="dark"] .group-date-card__tags b,
body[data-theme="dark"] .group-event-cancelled { background: #3c222b; border-color: #74404e; color: #ffc2ce; }
body[data-theme="dark"] .group-event-cancelled span { color: #e6b4bf; }

/* Vollständige Abdeckung älterer Seiten mit fest eingetragenen hellen Flächen. */
body[data-theme="dark"] :is(
    .auth-card,
    .staff-table th,
    .role-adult-preview,
    .role-cards label > span,
    .invoice-admin-grid article,
    .verification-identity-note,
    .verification-upload,
    .business-status,
    .locked-note,
    .company-gallery-empty,
    .event-custom-editor,
    .event-custom-editor__item,
    .billing-facts > div,
    .documents-empty,
    .business-plan-card,
    .business-plan-card__icon,
    .business-plan-card__tag,
    .business-plan-note,
    .business-cancel-dialog,
    .business-cancel-close,
    .opening-card,
    .company-cover-editor > summary > span,
    .company-events .event-custom-fields > div,
    .company-social__link,
    .company-main .company-events .company-event-card,
    .business-form__section,
    .business-status-card,
    .business-start-card,
    .upload-card,
    .business-contract__facts > div,
    .saved-event-card__image,
    .match-card,
    .date-planner__head,
    .date-planner__notice,
    .date-planner__section,
    .date-match-result,
    .date-current-proposal,
    .date-suggestions,
    .date-waiting,
    .date-private-state,
    .date-match-result__grid > div,
    .date-suggestion,
    .date-suggestions__empty,
    .event-type-filter input:checked + span,
    .event-custom-fields > div,
    .event-list .event-card__date,
    .album-access__item,
    .album-grants__avatar,
    .thread-start,
    .message-system,
    .chat-image-picker,
    .verification-identity,
    .privacy-match-note,
    .privacy-exclusion-card,
    .album-block__folder,
    .locked-album,
    .gallery-add-tile,
    .profile-date-card__date,
    .panel-actions,
    .registration-private-notice,
    .system-message-card aside,
    .wall-quota,
    .wall-reaction-details__panel
) {
    border-color: #57455f;
    background: #201a28;
    color: #f7f0f8;
}

body[data-theme="dark"] :is(
    .content-button-preview,
    .content-editor__field,
    .business-cover-manager,
    .company-image-card,
    .event-admin-list article,
    .hours-row,
    .date-image-editor,
    .wall-composer__tools,
    .wall-event-reference,
    .wall-comments__panel
) {
    border-color: #57455f;
    background: #282030;
    color: #f7f0f8;
}

body[data-theme="dark"] :is(
    .business-cover-manager__rotate button,
    .company-image-card__actions button,
    .business-image-tools button,
    .date-image-tools button,
    .event-bookmark button,
    .event-action,
    .event-requests button,
    .event-participant-card,
    .company-cover-editor__rotate button
) {
    border-color: #62516b;
    background: #33283c;
    color: #f7f0f8;
}

body[data-theme="dark"] :is(
    .site-status-admin,
    .business-plan-card--visible,
    .match-card,
    .date-planner__head,
    .date-match-result--success,
    .date-suggestion--highlight
) {
    background-image: none;
}

body[data-theme="dark"] :is(.content-editor__index, .content-editor__save) {
    border-color: #57455f;
    background: rgba(32, 26, 40, .96);
    color: #f7f0f8;
}

body[data-theme="dark"] :is(.hero-privacy-info__text, .plan-benefit-info__text, .wall-location-control__tooltip) {
    background: #201a28;
    color: #f7f0f8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
}

body[data-theme="dark"] .image-editor__stage {
    background:
        linear-gradient(45deg, #352b3d 25%, transparent 25%) 0 0 / 22px 22px,
        linear-gradient(-45deg, #352b3d 25%, transparent 25%) 0 11px / 22px 22px,
        linear-gradient(45deg, transparent 75%, #352b3d 75%) 11px -11px / 22px 22px,
        linear-gradient(-45deg, transparent 75%, #352b3d 75%) -11px 0 / 22px 22px,
        #201a28;
}

body[data-theme="dark"] :is(.chat-list, .message-stream)::-webkit-scrollbar-track { background: #19141f; }

body[data-theme="dark"] :is(
    .site-status-admin:not(.is-paused),
    .business-status--approved,
    .invoice-status--paid,
    .business-plan-card__trial-price,
    .business-paypal-status[data-state="success"],
    .date-planner__notice--success,
    .date-private-state--ready,
    .match-card--real,
    .paypal-subscription__status:not([data-state]),
    .paypal-cancel-dialog__status[data-state="success"],
    .verification-identity,
    .table-status--active,
    .preference-scope
) {
    border-color: #456b57;
    background: #20392b;
    color: #8ee2ae;
}

body[data-theme="dark"] :is(
    .site-status-admin.is-paused,
    .business-status--rejected,
    .business-status--suspended,
    .invoice-admin-grid article.has-missing-data,
    .business-paypal-status[data-state="error"],
    .date-planner__notice--error,
    .event-card.is-cancelled,
    .event-action--danger:hover,
    .event-list .event-card.is-cancelled .event-card__date,
    .paypal-subscription__status[data-state="error"],
    .paypal-cancel-dialog__status,
    .saved-event-list article.is-cancelled,
    .company-events article.is-cancelled,
    .company-main .company-events .company-event-card.is-cancelled,
    .wall-event-reference.is-cancelled,
    .table-status--suspended,
    .suspension-badge.is-permanent
) {
    border-color: #7d4550;
    background: #3f222b;
    color: #ff9da9;
}

body[data-theme="dark"] :is(
    .alert--warning,
    .staff-only-pill,
    .verification-notice,
    .plan-editor__warning,
    .attribute-warning,
    .invoice-status--open,
    .test-payment-note,
    .paypal-subscription__status[data-state="pending"],
    .paypal-subscription__status[data-state="cancelled"],
    .paypal-cancel-dialog__status[data-state="pending"],
    .founding-membership-note,
    .founder-registration-note,
    .moderation-state-note,
    .suspension-badge,
    .privacy-limit-note,
    .intent-change-policy.is-locked,
    .legal-warning,
    .prelaunch-notice,
    .wall-quota.is-reached,
    .wall-quota.is-reached b,
    .message-system--quota,
    .chat-status
) {
    border-color: #85664b;
    background: #392d2a;
    color: #f4dcc0;
}

body[data-theme="dark"] :is(
    .founder-badge,
    .profile-card__founder,
    .founder-feedback-button,
    .founder-feedback-entry > header span,
    .founder-feedback-sent-reply,
    .founder-diamond,
    .system-message-mark,
    .home-vip-offer__mark,
    .profile-card__staff-role,
    .admin-images__area
) {
    border-color: #486884;
    background: #213246;
    color: #a4c9f0;
}
body[data-theme="dark"] .founder-diamond { background: #213246 !important; }

body[data-theme="dark"] :is(
    .site-status-admin.is-paused .site-status-badge,
    .registration-paused__status,
    .admin-images__area--adult,
    .event-cancelled-notice,
    .event-action.is-active,
    .event-bookmark button[aria-pressed="true"],
    .plan-benefit-info__trigger,
    .business-plan-card.is-selected .business-plan-card__tag,
    .business-plan-card--visible .business-plan-card__icon,
    .profile-card__staff-role--admin,
    .album-block__head:hover .album-block__folder,
    .album-block__head:focus-visible .album-block__folder,
    .album-block[open] .album-block__folder,
    .gallery-add-tile:hover
) {
    border-color: #6a4762;
    background: #3c2437;
    color: #ffb7d4;
}

body[data-theme="dark"] .business-plan-card :is(
    .business-plan-card__title h3,
    .business-plan-card__price strong,
    .business-plan-card__action > p
) { color: var(--ink-950); }
body[data-theme="dark"] .business-plan-card :is(
    .business-plan-card__title p,
    .business-plan-card__price span,
    ul
) { color: var(--ink-700); }
body[data-theme="dark"] :is(.business-cancel-dialog > p, .message-draft-reference strong) { color: var(--ink-700); }
body[data-theme="dark"] .business-cancel-close { color: var(--ink-950); }
body[data-theme="dark"] .notification-item:is(:hover, :focus-visible) { background: #282030; }

@media (prefers-reduced-motion: reduce) {
    body[data-theme="dark"] *, body[data-theme="dark"] *::before, body[data-theme="dark"] *::after { transition-duration: 0.01ms !important; }
}
