@import url('/assets/css/fonts-local.css');

/* Einheitlicher Formularstandard für alle Verwaltungsseiten. */
body.editor-area input:not([type]),
body.editor-area input:is([type="text"],[type="email"],[type="password"],[type="tel"],[type="url"],[type="search"],[type="number"],[type="date"],[type="datetime-local"],[type="time"]),
body.editor-area select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px !important;
    box-sizing: border-box;
    padding: 9px 11px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    color: var(--ink);
    background: #fff;
    font: inherit;
    line-height: 1.35;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Shared tabs and communication management for Song and Card editors. */
.item-editor-tabs {
    display: flex;
    gap: 24px;
    margin: 18px 0;
    border-bottom: 1px solid var(--line);
}
.item-editor-tab {
    position: relative;
    min-height: 38px;
    padding: 7px 2px 11px;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}
.item-editor-tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    content: '';
    background: transparent;
}
.item-editor-tab:is(:hover, :focus-visible, .active) { color: var(--public-primary, var(--pine)); }
.item-editor-tab.active::after { background: var(--public-primary, var(--teal)); }
.item-communication-panel { min-height: 20rem; }
.editor-main > form[hidden],
.main > form[hidden] { display: none !important; }
.item-communication-panel[hidden] { display: none; }
.item-communication-panel .communication-toolbar,
.item-communication-panel .communication-row,
.item-communication-panel .communication-row-head,
.item-communication-panel .communication-actions { display: flex; }
.item-communication-panel .communication-toolbar { align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.item-communication-panel .communication-toolbar h2 { margin: 0; color: var(--public-primary, var(--pine)); font: 700 1.15rem/1.2 Fraunces, Georgia, serif; }
.item-communication-panel .communication-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.item-communication-panel .communication-toolbar > button { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 9px; color: var(--public-surface, #fff); background: var(--public-primary, var(--teal)); font-size: .78rem; font-weight: 800; cursor: pointer; }
.item-communication-panel .communication-list { display: grid; gap: 9px; }
.item-communication-panel .communication-row { align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--public-surface, #fff) 92%, var(--public-accent, #edf4f1)); }
.item-communication-panel .communication-row.is-done { background: color-mix(in srgb, var(--public-accent, #dcebe6) 42%, var(--public-surface, #fff)); }
.item-communication-panel .communication-row-head { align-items: center; gap: 8px; flex-wrap: wrap; }
.item-communication-panel .communication-type { color: var(--public-primary, var(--pine)); font-size: .82rem; }
.item-communication-panel :is(.communication-date, .communication-target, .communication-duration) { color: var(--muted); font-size: .7rem; }
.item-communication-panel .communication-content { margin: 7px 0 0; color: var(--ink); font-size: .82rem; white-space: pre-wrap; }
.item-communication-panel .communication-done { padding: 4px 7px; border-radius: 999px; color: var(--public-primary, var(--pine)); background: color-mix(in srgb, var(--public-accent, #dcebe6) 60%, white); font-size: .64rem; font-weight: 800; }
.item-communication-panel .communication-actions { gap: 6px; }
.item-communication-panel .communication-actions button { display: grid; box-sizing: border-box; width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; place-items: center; border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent); border-radius: 9px; color: var(--public-primary, var(--teal)); background: color-mix(in srgb, var(--public-accent, #dcebe6) 45%, white); font-size: .74rem; }
.item-communication-panel .communication-actions button.danger { color: #9b312d; background: #fbe8e5; }
.item-communication-panel .communication-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.item-communication-panel .communication-count { margin: 10px 0 0; color: var(--muted); font-size: .7rem; }
.item-communication-dialog { box-sizing: border-box; width: min(760px, calc(100vw - 30px)) !important; max-width: none !important; max-height: calc(100dvh - 30px) !important; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgba(3,22,27,.5); }
.item-communication-dialog::backdrop { background: rgba(20,43,49,.64); backdrop-filter: blur(5px); }
.item-communication-dialog form { display: flex; width: 100%; max-height: calc(100dvh - 30px); margin: 0; flex-direction: column; }
.item-communication-dialog .communication-dialog-head { position: relative; flex: 0 0 auto; }
.item-communication-dialog .communication-dialog-close { position: absolute !important; top: 18px !important; right: 20px !important; left: auto !important; display: grid !important; padding: 0 !important; place-items: center !important; border-radius: 50% !important; font-size: .85rem !important; line-height: 1 !important; }
.item-communication-dialog .communication-dialog-body { display: grid; min-height: 0; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px 24px; overflow-y: auto; }
.item-communication-dialog .communication-dialog-body .full { grid-column: 1 / -1; }
body.editor-area .communication-reference-context { display: grid; grid-template-columns: minmax(68px, auto) minmax(0, 1fr); align-items: baseline; gap: 5px 12px; padding: 11px 13px; border: 1px solid var(--line); border-left: 4px solid var(--public-primary, var(--teal)); border-radius: 0 9px 9px 0; color: var(--public-text, var(--ink)); background: color-mix(in srgb, var(--public-accent, #dcebe6) 38%, var(--public-surface, #fff)); }
body.editor-area .communication-reference-context span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.editor-area .communication-reference-context strong { min-width: 0; color: var(--public-primary, var(--teal)); font-size: .82rem; line-height: 1.35; }
.item-communication-dialog .communication-dialog-body :is(input, select, textarea) { box-sizing: border-box; width: 100%; min-height: 42px; margin-top: 6px; }
.item-communication-dialog .communication-dialog-body textarea { min-height: 120px; }
.item-communication-dialog .communication-check { display: flex; align-items: center; gap: 9px; }
.item-communication-dialog .communication-check input { width: 18px; min-height: 18px; margin: 0; }
.item-communication-dialog .communication-dialog-actions { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 14px 24px; }
.item-communication-dialog .communication-dialog-error { min-width: 0; color: #963a35; font-size: .74rem; }
.item-communication-dialog .communication-dialog-actions button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 9px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.item-communication-dialog .communication-dialog-actions button.secondary { color: var(--public-primary, var(--teal)); background: color-mix(in srgb, var(--public-accent, #dcebe6) 45%, white); }
.item-communication-dialog .communication-dialog-actions button[type="submit"] { color: var(--public-surface, #fff); background: var(--public-primary, var(--teal)); }
@media (max-width: 600px) {
    .item-communication-panel .communication-toolbar,
    .item-communication-panel .communication-row { align-items: stretch; flex-direction: column; }
    .item-communication-dialog .communication-dialog-body { grid-template-columns: 1fr; padding: 16px; }
    .item-communication-dialog .communication-dialog-body .full { grid-column: auto; }
    .item-communication-dialog .communication-dialog-actions { grid-template-columns: 1fr 1fr; padding: 12px 16px; }
    .item-communication-dialog .communication-dialog-error { grid-column: 1 / -1; }
}
body.editor-area textarea {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 11px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    color: var(--ink);
    background: #fff;
    font: inherit;
    line-height: 1.45;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.editor-area input:not([type]):focus,
body.editor-area input:is([type="text"],[type="email"],[type="password"],[type="tel"],[type="url"],[type="search"],[type="number"],[type="date"],[type="datetime-local"],[type="time"]):focus,
body.editor-area select:focus,
body.editor-area textarea:focus {
    border-color: var(--teal) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(39,114,119,.14);
}
body.editor-area input:disabled,
body.editor-area select:disabled,
body.editor-area textarea:disabled {
    color: var(--muted);
    background: #edf2ef;
    cursor: not-allowed;
}

:root {
    --ink: #17252b;
    --muted: #64777e;
    --pine: #164c52;
    --teal: #277277;
    --mint: #c9ebe2;
    --paper: #fffdf8;
    --line: rgba(22, 76, 82, .12);
    --public-page-padding: 18px 18px 32px;
    --public-shell-width: 860px;
    --public-brand-font-size: .72rem;
    --public-brand-margin-bottom: 13px;
    --public-footer-spacing: 20px 8px 4px;
    --editor-preview-color: #6b5510;
    --editor-preview-surface: #ffedaa;
    --editor-preview-hover: #e5b938;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: 'DM Sans', system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 6%, rgba(201, 235, 226, .92), transparent 29rem),
        radial-gradient(circle at 95% 91%, rgba(236, 205, 130, .32), transparent 26rem),
        #eef4f1;
}

body.editor-area {
    background:
        radial-gradient(circle at 10% 4%, rgba(196, 216, 225, .72), transparent 30rem),
        radial-gradient(circle at 92% 94%, rgba(173, 194, 207, .34), transparent 28rem),
        #e7edf0;
}

/* Der im eigenen Profil gewählte öffentliche Farbstil prägt auch den
   Creativdesk. Die Verwaltung verwendet bewusst dieselben sechs Profile. */
body.editor-area[style*="--public-primary"] {
    --pine: var(--public-primary);
    --teal: var(--public-primary);
    --mint: var(--public-accent);
    --line: color-mix(in srgb, var(--public-primary) 15%, transparent);
    --editor-control-border: color-mix(in srgb, var(--public-primary) 18%, white);
    --editor-control-soft: color-mix(in srgb, var(--public-accent) 48%, white);
    --editor-control-focus: color-mix(in srgb, var(--public-primary) 24%, transparent);
    background:
        radial-gradient(circle at 10% 4%, color-mix(in srgb, var(--public-accent) 72%, transparent), transparent 30rem),
        radial-gradient(circle at 92% 94%, color-mix(in srgb, var(--public-secondary) 24%, transparent), transparent 28rem),
        var(--public-surface) !important;
}

body.editor-area[style*="--public-primary"] :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head,
    .new-head, .delete-head, .confirm-head, .entry-dialog-head, .shell > header
) {
    background: linear-gradient(125deg,
        color-mix(in srgb, var(--public-accent) 58%, white),
        var(--public-accent)) !important;
}

body.editor-area[style*="--public-primary"] :is(
    .dashboard, .management, .analytics, .communications-shell,
    .formations-shell, .user-card, .profile-card, .new-project,
    .delete-shell, .shell, .editor-card, .player-card
) {
    background-color: color-mix(in srgb, var(--public-surface) 42%, white) !important;
}

body.editor-area[style*="--public-primary"] :is(
    .button.secondary, button.secondary, .project-action, .formation-action,
    .quick-action:not(.preview), .filter-actions a, .homepage-preview, .back,
    .organization-profile-table button, .profile-edit-action,
    .formation-trash-control, .project-metric-action.secondary
) {
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
}

body.editor-area[style*="--public-primary"] :is(
    .rights th, .formation-table th, .users th,
    .organization-profile-table th
) {
    background: color-mix(in srgb, var(--public-accent) 34%, white) !important;
}

body.editor-area[style*="--public-primary"] :is(
    .communication-summary, .project-context, .context
) {
    border-color: var(--line) !important;
    color: var(--public-primary) !important;
    background: color-mix(in srgb, var(--public-accent) 28%, white) !important;
}

body.editor-area[style*="--public-primary"] .homepage-section {
    border-left-color: var(--public-primary) !important;
    color: var(--public-primary) !important;
    background: color-mix(in srgb, var(--public-accent) 46%, white) !important;
}

body.editor-area[style*="--public-primary"] :is(.metric, .project-metric, .stat, .kpi) {
    border-color: var(--line) !important;
    background: color-mix(in srgb, var(--public-accent) 24%, white) !important;
}

body.editor-area[style*="--public-primary"] .analytics-banner {
    border-color: var(--line) !important;
    background: linear-gradient(110deg,
        color-mix(in srgb, var(--public-accent) 38%, white),
        color-mix(in srgb, var(--public-surface) 72%, white) 58%,
        color-mix(in srgb, var(--public-accent) 52%, white)) !important;
}

body.editor-area[style*="--public-primary"] .quick-project {
    border-color: var(--line) !important;
    background: color-mix(in srgb, var(--public-accent) 16%, white) !important;
}

body.editor-area[style*="--public-primary"] .project-row {
    border-color: var(--line) !important;
    background: color-mix(in srgb, var(--public-accent) 16%, white) !important;
}

/* Einheitliches Projektmuster für Listen, Dashboard und Aktionssymbole. */
body.editor-area[style*="--public-primary"] :is(.project-row, .quick-project) {
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--public-accent) 16%, white) !important;
}

body.editor-area[style*="--public-primary"] .project-row :is(.type-icon, .project-action),
body.editor-area[style*="--public-primary"] .quick-project :is(.project-type, .quick-action) {
    border: 1px solid color-mix(in srgb, var(--public-primary) 10%, transparent) !important;
    border-radius: 10px !important;
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
    box-shadow: none !important;
}

body.editor-area[style*="--public-primary"] :is(.formation-action, .profile-edit-action):not(.danger):not(.remove) {
    border: 1px solid color-mix(in srgb, var(--public-primary) 10%, transparent) !important;
    border-radius: 10px !important;
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
    box-shadow: none !important;
}

body.editor-area[style*="--public-primary"] :is(
    .formation-action.danger, .row-actions .danger, .row-actions .remove
) {
    border: 1px solid color-mix(in srgb, #963a35 18%, transparent) !important;
    border-radius: 10px !important;
    color: #963a35 !important;
    background: color-mix(in srgb, #963a35 11%, white) !important;
}

body.editor-area[style*="--public-primary"] :is(
    .formation-action.danger, .row-actions .danger, .row-actions .remove
):is(:hover, :focus-visible) {
    border-color: #963a35 !important;
    color: #fff !important;
    background: #963a35 !important;
    outline: 3px solid color-mix(in srgb, #963a35 22%, transparent) !important;
    outline-offset: 2px;
}

body.editor-area[style*="--public-primary"] .project-row .type-icon {
    width: 36px !important;
    height: 36px !important;
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
    font-size: .78rem !important;
}

body.editor-area[style*="--public-primary"] .project-row .project-action {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: .78rem !important;
}

body.editor-area[style*="--public-primary"] .project-row .project-actions {
    gap: 6px !important;
}

body.editor-area[style*="--public-primary"] :is(
    .project-row .type-icon, .project-row .project-action,
    .quick-project .quick-action, .formation-action, .profile-edit-action
):not(.danger):not(.remove):hover,
body.editor-area[style*="--public-primary"] :is(
    .project-row .type-icon, .project-row .project-action,
    .quick-project .quick-action, .formation-action, .profile-edit-action
):not(.danger):not(.remove):focus-visible {
    border-color: var(--public-primary) !important;
    color: #fff !important;
    background: var(--public-primary) !important;
    outline: 3px solid var(--editor-control-focus) !important;
    outline-offset: 2px;
    transform: none !important;
}

body.editor-area[style*="--public-primary"] .type-filters .type-filter {
    border-color: var(--line) !important;
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
}

body.editor-area[style*="--public-primary"] .type-filters .type-filter[aria-pressed="true"] {
    border-color: var(--public-primary) !important;
    color: #fff !important;
    background: var(--public-primary) !important;
}

body.editor-area[style*="--public-primary"] .type-filters .type-filter .filter-count {
    border-color: color-mix(in srgb, var(--public-surface) 65%, white) !important;
    color: var(--public-primary) !important;
    background: color-mix(in srgb, var(--public-accent) 68%, white) !important;
}

body.editor-area[style*="--public-primary"] .project-status-flag {
    border-color: var(--line) !important;
    color: var(--public-primary) !important;
    background: color-mix(in srgb, var(--public-accent) 30%, white) !important;
}

body.editor-area[style*="--public-primary"] .quick-project :is(.project-type, .project-group-icon) {
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
}

body.editor-area[style*="--public-primary"] :is(.project-group-icon, .project-group-count) {
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
}

body.editor-area[style*="--public-primary"] .quick-project :is(.project-count, .project-unlisted) {
    border-color: color-mix(in srgb, var(--public-surface) 65%, white) !important;
    color: #fff !important;
    background: var(--public-primary) !important;
}

body.editor-area[style*="--public-primary"] .profile-main form > .actions {
    border-top-color: var(--line) !important;
    background: color-mix(in srgb, var(--public-accent) 34%, white) !important;
}

/* Meldungen übernehmen den Farbstil des angemeldeten Profils. */
body.editor-area :is(.notice, .success) {
    box-sizing: border-box;
    padding: 12px 16px !important;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 22%, transparent) !important;
    border-radius: 11px !important;
    color: var(--public-primary, var(--pine)) !important;
    background: color-mix(in srgb, var(--public-accent, var(--mint)) 48%, white) !important;
    box-shadow: inset 4px 0 0 var(--public-primary, var(--teal));
}

body.editor-area :is(.warning, [role="alert"].warning) {
    box-sizing: border-box;
    padding: 12px 16px !important;
    border: 1px solid color-mix(in srgb, var(--public-secondary, var(--pine)) 25%, transparent) !important;
    border-radius: 11px !important;
    color: color-mix(in srgb, var(--public-secondary, var(--pine)) 84%, #5b4210) !important;
    background: color-mix(in srgb, var(--public-accent, #fff1bd) 38%, white) !important;
    box-shadow: inset 4px 0 0 var(--public-secondary, var(--pine));
}

body.editor-area :is(.error, [role="alert"]:not(.notice):not(.success):not(.warning)) {
    box-sizing: border-box;
    padding: 12px 16px !important;
    border: 1px solid color-mix(in srgb, var(--public-secondary, #963a35) 28%, transparent) !important;
    border-radius: 11px !important;
    color: color-mix(in srgb, var(--public-secondary, #963a35) 72%, #6f2420) !important;
    background: color-mix(in srgb, var(--public-secondary, #963a35) 11%, white) !important;
    box-shadow: inset 4px 0 0 var(--public-secondary, #963a35);
}

/* Zentraler Style für alle öffentlichen leanos-Seiten. */
body.public-page {
    background:
        radial-gradient(circle at 12% 6%, rgba(201, 235, 226, .92), transparent 29rem),
        radial-gradient(circle at 95% 91%, rgba(236, 205, 130, .32), transparent 26rem),
        #eef4f1;
}
body.public-page .container-fluid { min-height: 100vh; padding: var(--public-page-padding); }
.public-shell { width: min(var(--public-shell-width), 100%); margin: 0 auto; }
.public-brand { display: block; margin-bottom: var(--public-brand-margin-bottom); color: var(--public-primary, var(--pine)); font-size: var(--public-brand-font-size); font-weight: 800; letter-spacing: .1em; text-align: center; text-decoration: none; text-transform: uppercase; }
.public-brand span { color: var(--teal); }
.public-brand::after { display: block; width: 42px; margin: 8px auto 0; border-top: 1px solid rgba(22, 76, 82, .32); content: ''; }
.single-card-page .card-player-title::after { display: block; width: 42px; margin: 8px auto 0; border-top: 1px solid rgba(255,255,255,.45); content: ''; }
.single-card-page .public-shell > .public-brand { display: block !important; }
.single-card-page .card-player-title,
.single-card-page .card-entry > h2 { display: none !important; }
.card-credits .credit-value-only { grid-column: 1 / -1; }

/* Gemeinsamer Kopfbereich für öffentliche Song- und Card-Einzelseiten. */
.single-song header,
.single-card-page .project-head {
    padding: 34px !important;
    color: #fff !important;
    text-align: left !important;
    background: linear-gradient(125deg, var(--public-primary, #124e55), var(--public-secondary, #24777d)) !important;
}
/* Gemeinsamer Rahmen der Detailboxen. */
.single-song,
.single-card-page .card-stage,
.card-project-page .card-stage {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.8) !important;
    border-radius: 24px !important;
    background: #fffdf8;
    box-shadow: 0 24px 60px rgba(19,56,58,.18) !important;
}
.card-project-page .public-shell { width: min(1080px, 100%); }
.card-project-page .card-stage { width: 100% !important; margin: 0 !important; }
.single-card-page .project-head .card-project-type { display: none !important; }
.single-song header .organization,
.single-card-page .project-head small,
.single-song h1,
.single-card-page .project-head h1,
.single-song header p,
.single-card-page .project-head p { text-align: left !important; }
.single-song header .organization,
.single-card-page .project-head small {
    display: block;
    margin: 0 !important;
    color: rgba(255,255,255,.78);
    font-size: .78rem !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}
.single-song h1,
.single-card-page .project-head h1 {
    margin: 8px 0 6px !important;
    font: 700 clamp(2rem, 7vw, 3.2rem)/1.05 Fraunces, Georgia, serif !important;
}
.single-song header p,
.single-card-page .project-head p {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
}
@media (max-width: 520px) {
    .single-song header,
    .single-card-page .project-head { padding: 24px !important; }
}
@media (max-width: 600px) {
    .single-card-page .card-stage,
    .card-project-page .card-stage { border-radius: 24px !important; }
}

/* Löschaktionen in Tabellen verwenden durchgehend das Papierkorb-Symbol. */
body.editor-area .row-actions .remove { color: transparent !important; font-size: 0 !important; line-height: 0 !important; }
body.editor-area .row-actions .remove::before { color: #9d3934; content: '\f1f8'; font-family: 'FontAwesome'; font-size: var(--editor-control-font-size, .74rem); line-height: 1; }
body.editor-area .row-actions .remove > i { display: none !important; }
body.editor-area .table-wrap .content .title { background: #fff7cf !important; }
body.editor-area tr:not(.header-row) .entry-content .title { background: #fff7cf !important; }
.public-page[data-page-type="player"] .card-header .titel::after { display: block; width: 42px; margin: 8px auto 0; border-top: 1px solid rgba(255,255,255,.45); content: ''; }
.public-footer { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: var(--public-footer-spacing); color: var(--muted); font-size: .74rem; text-align: center; }
.project-public-footer { white-space: nowrap; }
.public-footer a { color: var(--teal); text-decoration: none; }
.public-footer a:hover, .public-footer a:focus-visible { text-decoration: underline; }

/* Direkte Freigabelinks besitzen keinen gemeinsamen PHP-Rahmen, erhalten
   aber dieselbe Bühne und denselben Abstand wie Player und Projektlisten. */
body:not(.public-page):has(.card-stage), body:not(.public-page):has(.single-song) {
    padding: 32px 18px;
    background:
        radial-gradient(circle at 12% 6%, rgba(201, 235, 226, .92), transparent 29rem),
        radial-gradient(circle at 95% 91%, rgba(236, 205, 130, .32), transparent 26rem),
        #eef4f1;
}
body:has(.card-stage) .card-stage { margin: 0 auto; }
body:not(.public-page):has(.single-song) { display: grid; place-items: center; }
/* Die Galerie ist eine eigenständige Ansicht; ein Rücksprung in die öffentliche
   Projektliste wird hier nicht angeboten. */
.card-list-back { display: none !important; }
@media (max-width: 600px) {
    body:not(.public-page):has(.card-stage), body:not(.public-page):has(.single-song) { padding: 0; }
}

/* Einheitliches Arbeitsformat für alle Seiten der Verwaltung. Einzelne
   Formulare dürfen innerhalb dieses Rahmens weiterhin zweispaltig arbeiten. */
:root { --editor-panel-max-width: 1080px; }
body.editor-area .player-shell,
body.editor-area .management,
body.editor-area .dashboard,
body.editor-area .analytics,
body.editor-area .user-shell,
body.editor-area .profile-shell,
body.editor-area .formations-shell,
body.editor-area .new-project,
body.editor-area .delete-shell,
body.editor-area .shell {
    max-width: var(--editor-panel-max-width) !important;
}

.container-fluid { padding: 32px 18px; }
.player-shell { max-width: 720px; margin: 0 auto; }
.player-card {
    overflow: hidden;
    background: rgba(255, 253, 248, .94);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(19, 56, 58, .16);
}

.card-header {
    position: relative;
    padding: 25px 28px 22px;
    color: #fff;
    background: linear-gradient(125deg, #123d44, #23737a);
}
.public-title-back {
    position: absolute;
    z-index: 3;
    top: 15px;
    left: 16px;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    color: #fff;
    background: rgba(12,43,47,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.13);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.public-title-back:hover,
.public-title-back:focus-visible {
    color: var(--public-primary, var(--pine));
    background: var(--public-accent, #ffe48b);
    border-color: var(--public-accent, #ffe48b);
    outline: 3px solid rgba(255,228,139,.3);
    outline-offset: 2px;
}
.public-title-back span { font-size: 1rem; line-height: 1; }
.card-header:has(.public-title-back),
.project-head:has(.public-title-back) { padding-top: 68px !important; }
.public-page-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 44px;
    margin-bottom: var(--public-brand-margin-bottom);
}
.public-page-navigation .public-brand {
    grid-column: 2;
    margin: 0;
}
.public-page-navigation .public-title-back {
    position: static;
    grid-column: 1;
    justify-self: start;
    color: var(--public-primary, var(--pine));
    background: color-mix(in srgb, var(--public-accent, #ffe48b) 48%, #fff);
    border-color: color-mix(in srgb, var(--public-primary, var(--teal)) 18%, transparent);
    box-shadow: none;
    backdrop-filter: none;
}
.public-page-navigation .public-title-back:hover,
.public-page-navigation .public-title-back:focus-visible {
    color: #fff;
    background: var(--public-primary, var(--teal));
    border-color: var(--public-primary, var(--teal));
}
.public-navigation-sponsor { display:grid; grid-column:3; height:44px; justify-self:end; place-items:center; }
.public-navigation-sponsor img { display:block; max-width:min(180px,18vw); max-height:40px; object-fit:contain; }
.public-navigation-sponsor.is-text { box-sizing:border-box; max-width:min(180px,18vw); min-height:32px; padding:6px 10px; border:1px solid color-mix(in srgb,var(--public-primary, var(--teal)) 18%,transparent); border-radius:999px; color:var(--public-primary, var(--teal)); background:color-mix(in srgb,var(--public-accent, #ffe48b) 45%,#fff); font-size:.65rem; font-weight:800; line-height:1.15; text-align:center; }
@media (max-width: 600px) {
    .public-title-back { top: 12px; left: 12px; min-height: 32px; padding: 5px 9px; }
    .card-header:has(.public-title-back),
    .project-head:has(.public-title-back) { padding-top: 60px !important; }
    .public-page-navigation { min-height: 40px; margin-bottom: 8px; }
    .public-page-navigation .public-title-back { position: static; }
    .public-navigation-sponsor { height:40px; }
    .public-navigation-sponsor img { max-width:100px; max-height:36px; }
    .public-navigation-sponsor.is-text { max-width:100px; padding:5px 7px; font-size:.55rem; }
}
.toptitel { display: block; color: rgba(255, 255, 255, .72); font-size: .72rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.toptitel:hover, .toptitel:focus-visible { color: #fff; }
.toptitel hr { width: 42px; margin: 8px auto 15px; border: 0; border-top: 1px solid rgba(255,255,255,.45); }
.editor-area .toptitel { color: rgba(41,56,62,.72); }
.editor-area .toptitel:hover, .editor-area .toptitel:focus-visible { color: #29383e; }
.editor-area .toptitel hr { border-top-color: rgba(41,56,62,.36); }
.titel { margin: 0; font-size: 1rem; font-weight: 600; text-align: center; }
.subtitel { margin: 4px 0 0; font: 700 clamp(1.65rem, 5vw, 2.35rem)/1.08 'Fraunces', Georgia, serif; text-align: center; }
.subtitel2 { margin-top: 10px; color: rgba(255,255,255,.88); font-size: .92rem; text-align: center; }
.subtitel3 { margin-top: 4px; color: rgba(255,255,255,.62); font-size: .72rem; text-align: center; }

.card-body { padding: 0; }
.cover { position: relative; display: flex; justify-content: center; overflow: hidden; cursor: pointer; background: #d6e4df; }
.cover, .cover > div { width: 100%; }
.cover::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, rgba(13,45,49,.22), transparent 55%); pointer-events: none; }
.cover img, .bild { display: block; width: 100%; height: auto; max-height: 600px; object-fit: contain; transition: transform .45s ease; }

.audioliste { padding: 12px; }
.audioliste table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.audioliste tr { background: #f5f8f5; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.audioliste tr:not([id^='HD']):hover { background: #edf6f2; transform: translateX(3px); }
.audioliste td { padding: 10px 8px; vertical-align: middle; }
.audioliste td:first-child { width: 54px; text-align: center; }
.audioliste tr.stop { border-left: 3px solid transparent; }
.audioliste tr.playing { background: var(--mint); border-left: 3px solid var(--teal); box-shadow: 0 7px 16px rgba(34, 105, 105, .11); }
.audioliste tr[id^='HD'] { background: transparent; color: var(--muted); font-size: .94rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.audioliste tr[id^='HD'] td { padding: 22px 8px 5px; }
.btn-play { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--teal); cursor: pointer; font-size: .78rem; line-height: 1; transition: transform .2s ease, background .2s ease; }
.btn-play > .fa { display: block; width: 1em; line-height: 1; text-align: center; }
.btn-play > .fa-play { transform: translateX(1px); }
.btn-play > .fa-pause { transform: none; }
.btn-play:hover { transform: scale(1.08); background: var(--pine); }
.playing .btn-play { background: var(--pine); }
.track-title { font-weight: 600; line-height: 1.3; }
.track-note { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.btn-download { float: right; padding: 2px 4px; color: var(--muted); text-decoration: none; }
.btn-download:hover { color: var(--pine); }
audio { width: 100%; height: 32px; margin-top: 9px; accent-color: var(--teal); }

/* Verwaltung: rahmenlose Navigation bündig am unteren Rand des Kopfbereichs. */
.management-menu { margin: 0 0 22px; padding: 16px 17px; border: 1px solid #d7e3df; border-radius: 13px; background: #eef5f1; }
.management-menu h2 { margin: 0; color: var(--ink); font: 700 1rem/1.25 Fraunces, Georgia, serif; }
.management-menu > p { margin: 4px 0 13px; color: var(--muted); font-size: .82rem; }
.management-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.management-menu-group { min-width: 0; padding: 11px 12px; border: 1px solid #d7e3df; border-radius: 9px; background: #fff; }
.management-menu-group > a { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: .86rem; font-weight: 800; text-decoration: none; }
.management-menu-group > a:hover, .management-menu-group > a:focus-visible { text-decoration: underline; }
.management-menu-group ul { margin: 8px 0 0; padding: 0 0 0 19px; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.management-menu-group li::marker { color: var(--teal); }
.management-menu-group li a { color: inherit; text-decoration: none; }
.management-menu-group li a:hover, .management-menu-group li a:focus-visible { color: var(--teal); text-decoration: underline; }
.management-header .editor-nav,
.editor-header .editor-nav,
.user-header .editor-nav,
.dashboard-head .editor-nav,
.analytics-head .editor-nav,
.communications-head .editor-nav {
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin: 14px -28px -22px;
    padding: 7px 28px;
    border: 0;
    border-radius: 0;
    background: #294b5f;
    box-shadow: none;
}

.management-header,
.editor-header,
.user-header,
.dashboard-head,
.analytics-head,
.communications-head { position: relative; }

/* Einheitlicher Standard für Menüs am unteren Rand eines Headers. */
.editor-nav {
    display: flex;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 14px -28px -22px;
    padding: 7px 28px;
    border: 0;
    border-radius: 0;
    background: #294b5f;
    box-shadow: none;
}
.editor-nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255,255,255,.88);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease;
}
.editor-nav a.trash-nav {
    width: 38px;
    padding: 8px;
    justify-content: center;
    gap: 0;
    font-size: 0;
}
.editor-nav a.trash-nav i { font-size: .95rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.editor-nav a:hover,
.editor-nav a:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.16);
    outline: 0;
    transform: translateY(-1px);
}
.editor-nav a[href="logout.php"] { color: #ffe48b; }
.editor-nav a[href="logout.php"]:hover,
.editor-nav a[href="logout.php"]:focus-visible {
    color: var(--pine);
    background: #ffe48b;
    border-color: #ffe48b;
}

.mobile-menu-toggle { display: none; }
.editor-nav #headerSonglistLink::before {
    content: '\f03a';
    font-family: FontAwesome;
    font-size: .9rem;
    font-weight: normal;
}
.editor-nav #headerPreviewLink::before {
    content: '\f06e';
    font-family: FontAwesome;
    font-size: .9rem;
    font-weight: normal;
}
.editor-nav a[data-project-list-link]::before {
    content: '\f022';
    font-family: FontAwesome;
    font-size: .9rem;
    font-weight: normal;
}
.project-row .project-note {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.3;
}
.project-status-flags {
    display: flex;
    gap: 5px;
    margin-top: 7px;
}
.project-status-flag {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: .65rem;
}
.project-status-flag.release {
    display: inline-flex;
    width: auto;
    min-width: 22px;
    padding: 0 8px;
    gap: 5px;
    font-size: .68rem;
    font-weight: 800;
}
.project-status-flag.release.is-active {
    border-color: #c7e6da;
    color: #176b58;
    background: #e1f3ec;
}
.project-status-flag.download.is-active {
    border-color: #c8d7f3;
    color: #2854a3;
    background: #e6edfb;
}
.project-status-flag.is-inactive {
    border-color: #dce1df;
    color: #7b8587;
    background: #edf0ef;
}
.project-status-flag.listing.is-active {
    border-color: #cbdcd6;
    color: #276657;
    background: #e7f3ef;
}
.project-status-flag.qrcode.is-active {
    border-color: #c8d7f3;
    color: #2854a3;
    background: #e6edfb;
}
.project-row .type-icon:not(.card) {
    color: #2854a3;
    background: #dfe9ff;
}
.project-row .type-icon:not(.card):hover,
.project-row .type-icon:not(.card):focus-visible {
    color: #fff;
    background: #3568bd;
    box-shadow: 0 0 0 3px rgba(53,104,189,.2);
}
.type-filters .type-filter[data-type-filter="music"] {
    border-color: #c8d7f3;
    color: #2854a3;
    background: #edf2ff;
}
.type-filters .type-filter[data-type-filter="music"][aria-pressed="true"] {
    border-color: #3568bd;
    color: #fff;
    background: #3568bd;
}
.type-filters .type-filter[data-type-filter="music"] .filter-count {
    color: #fff;
    background: #3568bd;
}
.type-filters .type-filter[data-type-filter="music"][aria-pressed="true"] .filter-count {
    color: #2854a3;
    background: #dfe9ff;
}
.project-row .type-icon.card {
    color: #684f78;
    background: #eee6f3;
}
.project-row .type-icon.card:hover,
.project-row .type-icon.card:focus-visible {
    color: #fff;
    background: #765b86;
    box-shadow: 0 0 0 3px rgba(118,91,134,.2);
}
.type-filters .type-filter[data-type-filter="picture"] {
    border-color: #d8c9e0;
    color: #684f78;
    background: #f5eff8;
}
.type-filters .type-filter[data-type-filter="picture"][aria-pressed="true"] {
    border-color: #765b86;
    color: #fff;
    background: #765b86;
}
.type-filters .type-filter[data-type-filter="picture"] .filter-count {
    color: #fff;
    background: #765b86;
}
.type-filters .type-filter[data-type-filter="picture"][aria-pressed="true"] .filter-count {
    color: #684f78;
    background: #eee6f3;
}
.project-row .type-icon.not-listed {
    color: #758184;
    background: #e4e8e7;
}
.project-row .type-icon.not-listed:hover,
.project-row .type-icon.not-listed:focus-visible {
    color: #667174;
    background: #d9dedc;
    box-shadow: 0 0 0 3px rgba(117,129,132,.16);
}
.project-row .type-icon.card.not-listed:hover,
.project-row .type-icon.card.not-listed:focus-visible {
    color: #667174;
    background: #d9dedc;
    box-shadow: 0 0 0 3px rgba(117,129,132,.16);
}

@media (max-width: 720px) {
    .management-menu-grid { grid-template-columns: 1fr; }
    .mobile-menu-toggle {
        position: absolute;
        z-index: 3;
        top: 18px;
        right: auto;
        left: 18px;
        display: grid;
        box-sizing: border-box;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        place-items: center;
        border: 1px solid rgba(255,255,255,.38);
        border-radius: 50%;
        color: #fff;
        background: rgba(255,255,255,.12);
        box-shadow: 0 4px 12px rgba(10,42,46,.18);
        font-size: .9rem;
        cursor: pointer;
    }
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus-visible {
        color: var(--pine);
        border-color: #ffe48b;
        background: #ffe48b;
        outline: 3px solid rgba(255,228,139,.28);
        outline-offset: 2px;
    }
    .management-header .editor-nav,
    .editor-header .editor-nav,
    .user-header .editor-nav,
    .dashboard-head .editor-nav,
    .analytics-head .editor-nav,
    .communications-head .editor-nav { display: none; }
    .management-header.menu-open .editor-nav,
    .editor-header.menu-open .editor-nav,
    .user-header.menu-open .editor-nav,
    .dashboard-head.menu-open .editor-nav,
    .analytics-head.menu-open .editor-nav,
    .communications-head.menu-open .editor-nav {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding-top: 8px;
        padding-bottom: 9px;
    }
    .management-header.menu-open .editor-nav a,
    .editor-header.menu-open .editor-nav a,
    .user-header.menu-open .editor-nav a,
    .dashboard-head.menu-open .editor-nav a,
    .analytics-head.menu-open .editor-nav a,
    .communications-head.menu-open .editor-nav a {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
        margin-left: 0;
        padding: 10px 11px;
        gap: 10px;
        border-radius: 7px;
        font-size: .82rem;
    }
    .management-header.menu-open .editor-nav a[href^="user.php"],
    .editor-header.menu-open .editor-nav a[href^="user.php"],
    .user-header.menu-open .editor-nav a[href^="user.php"] {
        margin-top: 9px;
        padding-top: 13px;
    }
    .management-header.menu-open .editor-nav a[href^="user.php"]::after,
    .editor-header.menu-open .editor-nav a[href^="user.php"]::after,
    .user-header.menu-open .editor-nav a[href^="user.php"]::after {
        position: absolute;
        top: -5px;
        right: 0;
        left: 0;
        height: 1px;
        content: '';
        background: rgba(255,255,255,.2);
    }
    .management-header .editor-nav,
    .user-header .editor-nav {
        margin-right: -18px;
        margin-bottom: -21px;
        margin-left: -18px;
        padding-right: 18px;
        padding-left: 18px;
    }
}

/*
 * Zentrale Modalvorgabe der Verwaltung:
 * Nur der Inhaltsbereich scrollt. Kopf und Aktionsfuß bleiben stets sichtbar.
 */
body.editor-area dialog > form,
body.editor-area .organization-dialog > form,
body.editor-area .organization-dialog > [data-organization-form],
body.editor-area .communication-dialog > form {
    display: flex;
    min-height: 0;
    max-height: inherit;
    flex-direction: column;
    overflow: hidden;
}

body.editor-area dialog :is(.dialog-body, .organization-dialog-body, .communication-dialog-body) {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body.editor-area dialog :is(.dialog-actions, .organization-dialog footer, .communication-dialog-actions) {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    box-shadow: 0 -10px 24px color-mix(in srgb, var(--public-secondary, var(--pine)) 9%, transparent);
}

/* Card-Editor wird als Iframe-Modal verwendet und folgt derselben festen Fußstruktur. */
body.editor-area:has(> main .shell > .main form) {
    height: 100dvh;
    overflow: hidden;
}

body.editor-area:has(> main .shell > .main form) > main.container-fluid,
body.editor-area:has(> main .shell > .main form) .shell {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.editor-area:has(> main .shell > .main form) .shell {
    display: flex;
    min-height: 0;
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
}

body.editor-area:has(> main .shell > .main form) .shell > header {
    flex: 0 0 auto;
}

body.editor-area:has(> main .shell > .main form) .shell > .main {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

body.editor-area:has(> main .shell > .main form) .shell > .main > .item-editor-tabs,
body.editor-area:has(> main .shell > .main form) .shell > .main > .context,
body.editor-area:has(> main .shell > .main form) .shell > .main > .error {
    flex: 0 0 auto;
}

body.editor-area:has(> main .shell > .main form) .shell > .main > form,
body.editor-area:has(> main .shell > .main form) .shell > .main > .item-communication-panel {
    min-height: 0;
    flex: 1 1 auto;
}

body.editor-area:has(> main .shell > .main form) .shell > .main > form {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body.editor-area:has(> main .shell > .main form) .shell form > .actions {
    position: sticky;
    z-index: 4;
    bottom: -1px;
    border-top: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 15%, transparent);
    background: color-mix(in srgb, var(--public-accent, #e8d8b5) 34%, var(--public-surface, #fff));
    box-shadow: 0 -10px 24px color-mix(in srgb, var(--public-secondary, var(--pine)) 9%, transparent);
}

.card-footer { padding: 16px 24px 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.5; text-align: center; }
.footer-meta { display: flex; justify-content: center; gap: 8px 20px; flex-wrap: wrap; }
.footer-mail { color: var(--teal); text-decoration: none; }
#qrcode { padding: 4px 24px 24px; text-align: center; font-size: .78rem; color: var(--muted); }
.qr-code { display: inline-block; width: 132px; height: 132px; margin-top: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Einheitlicher Zurückschalter für alle Verwaltungsseiten. */
.header-logout {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 28px;
    margin: 0;
}
.header-logout button {
    display: flex;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.12);
    box-shadow: 0 4px 12px rgba(10,42,46,.18);
    font-size: .85rem;
    cursor: pointer;
}
.header-logout button:hover,
.header-logout button:focus-visible {
    color: var(--pine);
    background: #ffe48b;
    border-color: #ffe48b;
    outline: 3px solid rgba(255,228,139,.28);
    outline-offset: 2px;
}
.header-back,
body .cancel-edit,
body .profile-header .back,
body .new-header .back,
body .project-picker #backProject,
body .project-context .back {
    position: absolute !important;
    z-index: 2 !important;
    top: 18px !important;
    left: 28px !important;
    display: flex !important;
    box-sizing: border-box !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: 0 4px 12px rgba(10,42,46,.18) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
}
.header-back > i,
body .cancel-edit > i,
body .profile-header .back > i,
body .new-header .back > i,
body .project-picker #backProject > i,
body .project-context .back > i {
    display: none !important;
}
.header-back::before,
body .cancel-edit::before,
body .profile-header .back::before,
body .new-header .back::before,
body .project-picker #backProject::before,
body .project-context .back::before {
    display: block !important;
    box-sizing: border-box !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 3px solid currentColor !important;
    border-left: 3px solid currentColor !important;
    content: '' !important;
    transform: translateX(1px) rotate(45deg) !important;
}
.header-back:hover,
.header-back:focus-visible,
body .cancel-edit:hover,
body .cancel-edit:focus-visible,
body .profile-header .back:hover,
body .profile-header .back:focus-visible,
body .new-header .back:hover,
body .new-header .back:focus-visible,
body .project-picker #backProject:hover,
body .project-picker #backProject:focus-visible,
body .project-context .back:hover,
body .project-context .back:focus-visible {
    color: var(--pine) !important;
    background: #ffe48b !important;
    border-color: #ffe48b !important;
    outline: 3px solid rgba(255,228,139,.28) !important;
    outline-offset: 2px !important;
}

/* Einheitlicher Schließen-Schalter für alle modalen Verwaltungsfenster. */
body .modal-close {
    position: absolute !important;
    z-index: 2 !important;
    top: 18px !important;
    right: 22px !important;
    left: auto !important;
    display: grid !important;
    box-sizing: border-box !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    border-radius: 50% !important;
    color: var(--pine) !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 4px 12px rgba(10,42,46,.18) !important;
    font-size: .85rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
}
body .modal-close::before {
    display: none !important;
    content: none !important;
}
body .modal-close > i {
    display: block !important;
    color: inherit !important;
    font-size: .85rem !important;
    line-height: 1 !important;
}
body .modal-close:hover,
body .modal-close:focus-visible {
    color: #fff !important;
    background: var(--pine) !important;
    border-color: var(--pine) !important;
    outline: 3px solid rgba(39,114,119,.2) !important;
    outline-offset: 2px !important;
}

@media (max-width: 620px) {
    .header-logout { right: 18px; }
    .header-back,
    body .cancel-edit,
    body .profile-header .back,
    body .new-header .back,
    body .project-picker #backProject,
    body .project-context .back {
        left: 18px !important;
    }
    body .modal-close {
        top: 14px !important;
        right: 14px !important;
        left: auto !important;
    }
    .mobile-menu-toggle {
        top: 14px;
        right: auto;
        left: 14px;
    }
}

@media (max-width: 520px) {
    .container-fluid { padding: 14px 8px; }
    .player-card { border-radius: 18px; }
    .card-header { padding: 22px 18px 19px; }
    .public-page[data-page-type="player"] .card-header .subtitel { font-size: clamp(1.3rem, 5.5vw, 1.5rem); line-height: 1.1; }
    .audioliste { padding: 8px; }
    .audioliste td { padding: 9px 4px; }
    .audioliste td:first-child { width: 47px; }
}

/* Benutzerverwaltung: Jede Person wird mobil in genau zwei Inhaltszeilen gezeigt. */
@media (max-width: 720px) {
    .table-wrap:has(.users) {
        overflow: visible;
        border: 0;
    }
    .users,
    .users tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }
    .users thead { display: none; }
    .users tbody {
        display: grid;
        gap: 10px;
    }
    .users tbody tr {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto auto;
        align-items: center;
        gap: 9px 10px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fffdf8;
    }
    .users tbody td {
        min-width: 0;
        padding: 0;
        border: 0;
    }
    .users tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }
    .users tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
    .users tbody td:nth-child(3) { grid-column: 3; grid-row: 1; }
    .users tbody td:nth-child(4) { grid-column: 1 / 3; grid-row: 2; }
    .users tbody td:nth-child(5) { grid-column: 3; grid-row: 2; }
    .users .identity { gap: 8px; }
    .users .avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .users .identity strong { line-height: 1.2; }
    .users .badge { white-space: nowrap; }
    .users .row-actions { gap: 5px; }
    .users .row-actions .button {
        min-height: 34px;
        padding: 7px 9px;
    }
}

@media (max-width: 480px) {
    .users tbody tr { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 6px; }
    .users .badge { padding: 5px 6px; font-size: .66rem; }
    .users .row-actions .button { font-size: 0; }
    .users .row-actions .button i { font-size: .84rem; }
}

/* Einheitliche Hauptnavigation der Verwaltung: bewusst ausschließlich Text. */
body.editor-area .editor-nav { border-radius: 0 !important; }
body.editor-area .editor-nav a { border-radius: 9px !important; }
body.editor-area .editor-nav a.active,
body.editor-area .editor-nav a[aria-current="page"] { border-radius: 9px !important; }
body.editor-area .editor-nav {
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin: 16px 0 0 !important;
    padding: 5px !important;
    border: 0 !important;
    background: linear-gradient(110deg, var(--public-primary, #294b5f), var(--public-secondary, #294b5f)) !important;
    box-shadow: none !important;
}
body.editor-area .editor-nav a {
    display: inline-flex !important;
    min-height: 36px !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 1px solid transparent !important;
    color: rgba(255,255,255,.88) !important;
    background: transparent !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    line-height: normal !important;
    text-decoration: none !important;
    transform: none !important;
}
body.editor-area .editor-nav .profile-link,
body.editor-area .editor-nav a[href^="user.php"] { margin-left: auto !important; }
body.editor-area .editor-nav .logout-link,
body.editor-area .editor-nav a[href="logout.php"] { margin-left: 0 !important; }

/* Einheitliche Maße für Aktionen in der Verwaltung. */
:root {
    --editor-control-height: 39px;
    --editor-control-radius: 9px;
    --editor-control-padding: 8px 12px;
    --editor-control-font-size: .74rem;
}
body.editor-area .organization-picker-row .organization-button,
body.editor-area .formation-toolbar-link {
    min-height: var(--editor-control-height) !important;
    align-self: center;
    padding: var(--editor-control-padding) !important;
    border-radius: var(--editor-control-radius) !important;
    font-size: var(--editor-control-font-size) !important;
}
body.editor-area .organization-picker-row .formation-trash-control {
    color: var(--teal) !important;
    background: #e7f3ef !important;
}

/* Creativdesk: gemeinsame Steuerelemente für sämtliche Verwaltungsseiten. */
:root {
    --editor-control-border: #d7e2e4;
    --editor-control-surface: #fff;
    --editor-control-soft: #e7f3ef;
    --editor-control-focus: rgba(39,114,119,.22);
    --editor-search-height: 44px;
}
/* Primäre Anlageaktionen übernehmen Farben und Maße aus dem gewählten Verwaltungslayout. */
body.editor-area .editor-create-action {
    display: inline-flex !important;
    min-height: var(--editor-control-height) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: var(--editor-control-padding) !important;
    border: 1px solid color-mix(in srgb, var(--public-accent, #d0a52b) 34%, transparent) !important;
    border-radius: var(--editor-control-radius) !important;
    color: var(--public-primary, var(--pine)) !important;
    background: color-mix(in srgb, var(--public-accent, #d0a52b) 14%, var(--public-surface, #fffdf8)) !important;
    box-shadow: 0 2px 5px rgba(41,56,62,.06) !important;
    font-size: var(--editor-control-font-size) !important;
    font-weight: 800 !important;
}
body.editor-area .editor-create-action:is(:hover, :focus-visible) {
    border-color: var(--public-primary, var(--pine)) !important;
    color: var(--public-surface, #fffdf8) !important;
    background: var(--public-primary, var(--pine)) !important;
    outline: 3px solid var(--editor-control-focus, rgba(39,114,119,.2)) !important;
    outline-offset: 2px !important;
}
body.editor-area .editor-create-action i {
    width: 1em;
    font-size: var(--editor-control-font-size) !important;
    line-height: 1;
    text-align: center;
}
body.editor-area :is(.button, .organization-button, .project-metric-action, .formation-action, .project-action, .toolbar-actions button, .row-actions button) {
    min-height: var(--editor-control-height) !important;
    border: 1px solid transparent !important;
    border-radius: var(--editor-control-radius) !important;
    font-size: var(--editor-control-font-size) !important;
}
body.editor-area :is(.row-actions button, .row-actions a, .project-action, .quick-action, .formation-action) i {
    font-size: var(--editor-control-font-size) !important;
    line-height: 1;
}
body.editor-area table.users .row-actions :is(.button, button) {
    display: inline-grid !important;
    box-sizing: border-box !important;
    width: var(--editor-control-height) !important;
    min-width: var(--editor-control-height) !important;
    height: var(--editor-control-height) !important;
    min-height: var(--editor-control-height) !important;
    padding: 0 !important;
    place-items: center !important;
    gap: 0 !important;
    font-size: 0 !important;
}
body.editor-area table.users .row-actions :is(.button, button) i {
    font-size: var(--editor-control-font-size) !important;
}
body.editor-area[style*="--public-primary"] .communication-actions button:not(.danger) {
    border: 1px solid color-mix(in srgb, var(--public-primary) 10%, transparent) !important;
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
    box-shadow: none !important;
}
body.editor-area[style*="--public-primary"] .communication-actions button:not(.danger):is(:hover, :focus-visible) {
    color: var(--public-surface, #fff) !important;
    border-color: var(--public-primary) !important;
    background: var(--public-primary) !important;
    outline: 3px solid color-mix(in srgb, var(--public-primary) 18%, transparent) !important;
    outline-offset: 2px !important;
}
body.editor-area[style*="--public-primary"] .row-actions > :is(a, button):not(.danger):not(.remove):not(.preview):not(.row-preview) {
    border: 1px solid color-mix(in srgb, var(--public-primary) 10%, transparent) !important;
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
    box-shadow: none !important;
}
body.editor-area[style*="--public-primary"] .row-actions > :is(a, button):not(.danger):not(.remove):not(.preview):not(.row-preview):is(:hover, :focus-visible) {
    color: var(--public-surface, #fff) !important;
    border-color: var(--public-primary) !important;
    background: var(--public-primary) !important;
    outline: 3px solid color-mix(in srgb, var(--public-primary) 18%, transparent) !important;
    outline-offset: 2px !important;
}
body.editor-area :is(.project-search input[type="search"], .aggregator-search input[type="search"], .organization-search-field input[type="search"]) {
    box-sizing: border-box !important;
    min-height: var(--editor-search-height) !important;
    border: 1px solid var(--editor-control-border) !important;
    border-radius: var(--editor-control-radius) !important;
    background: var(--editor-control-surface) !important;
    box-shadow: none !important;
}
body.editor-area .project-search:has(> i) input[type="search"],
body.editor-area .project-search label:has(> i) input[type="search"],
body.editor-area .aggregator-search input[type="search"],
body.editor-area .organization-search-field input[type="search"] { padding-left: 46px !important; }
body.editor-area :is(.project-search input[type="search"], .aggregator-search input[type="search"], .organization-search-field input[type="search"]):focus {
    border-color: var(--teal) !important;
    outline: 3px solid var(--editor-control-focus) !important;
    outline-offset: 1px;
}
body.editor-area :is(.table-wrap, .formation-table, .organization-profile-table, .users) {
    border-color: var(--editor-control-border) !important;
}
body.editor-area .profile-edit-action {
    width: var(--editor-control-height);
    min-width: var(--editor-control-height);
    padding: 0 !important;
    align-items: center;
    justify-content: center;
}

/* Bearbeitungsfenster sind fokussierte Dialoge und führen keine globale
   Verwaltungsnavigation mit. */
body.editor-area.project-editing .editor-nav,
body.editor-area.analytics-modal .editor-nav,
body.editor-area dialog .editor-nav,
body.editor-area.project-editing .mobile-menu-toggle,
body.editor-area.analytics-modal .mobile-menu-toggle,
body.editor-area dialog .mobile-menu-toggle { display: none !important; }

/* Auf Mobilgeräten wird die vollständige Hauptnavigation hinter einem
   gut erreichbaren Menütaster zusammengefasst. */
@media (max-width: 720px) {
    body.editor-area .management-header .editor-nav,
    body.editor-area .editor-header .editor-nav,
    body.editor-area .user-header .editor-nav,
    body.editor-area .dashboard-head .editor-nav,
    body.editor-area .analytics-head .editor-nav,
    body.editor-area .formations-head .editor-nav,
    body.editor-area .communications-head .editor-nav,
    body.editor-area .profile-header .editor-nav { display: none !important; }

    body.editor-area .management-header.menu-open .editor-nav,
    body.editor-area .editor-header.menu-open .editor-nav,
    body.editor-area .user-header.menu-open .editor-nav,
    body.editor-area .dashboard-head.menu-open .editor-nav,
    body.editor-area .analytics-head.menu-open .editor-nav,
    body.editor-area .formations-head.menu-open .editor-nav,
    body.editor-area .communications-head.menu-open .editor-nav,
    body.editor-area .profile-header.menu-open .editor-nav {
        display: flex !important;
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 2px !important;
        padding-top: 8px !important;
        padding-bottom: 9px !important;
    }

    body.editor-area .editor-nav a,
    body.editor-area .editor-nav .profile-link,
    body.editor-area .editor-nav a[href^="user.php"],
    body.editor-area .editor-nav a[href="logout.php"] {
        width: 100% !important;
        min-height: 42px !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        padding: 10px 11px !important;
        font-size: .84rem !important;
    }

    body.editor-area .mobile-menu-toggle { display: grid !important; }
}
body.editor-area .editor-nav a:hover,
body.editor-area .editor-nav a:focus-visible,
body.editor-area .editor-nav a.active,
body.editor-area .editor-nav a[aria-current="page"] {
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    border-color: rgba(255,255,255,.2) !important;
    outline: 0 !important;
    transform: none !important;
}
body.editor-area .editor-nav .logout-link,
body.editor-area .editor-nav a[href="logout.php"] { color: var(--public-accent, #ffe48b) !important; }
body.editor-area .editor-nav .logout-link:hover,
body.editor-area .editor-nav .logout-link:focus-visible,
body.editor-area .editor-nav a[href="logout.php"]:hover,
body.editor-area .editor-nav a[href="logout.php"]:focus-visible {
    color: var(--public-primary, #164c52) !important;
    background: var(--public-accent, #ffe48b) !important;
    border-color: var(--public-accent, #ffe48b) !important;
}
body.editor-area .editor-header .editor-nav,
body.editor-area .dashboard-head .editor-nav,
body.editor-area .management-header .editor-nav,
body.editor-area .formations-head .editor-nav,
body.editor-area .user-header .editor-nav,
body.editor-area .communications-head .editor-nav,
body.editor-area .profile-header .editor-nav {
    width: calc(100% + 56px) !important;
    max-width: none !important;
    margin: 16px -28px -22px !important;
    padding: 7px 28px !important;
}
@media(max-width:600px) {
    body.editor-area .editor-header .editor-nav,
    body.editor-area .dashboard-head .editor-nav,
    body.editor-area .management-header .editor-nav,
    body.editor-area .formations-head .editor-nav,
    body.editor-area .user-header .editor-nav,
    body.editor-area .communications-head .editor-nav,
    body.editor-area .profile-header .editor-nav {
        width: calc(100% + 36px) !important;
        max-width: none !important;
        margin: 14px -18px -21px !important;
        padding: 7px 18px !important;
    }
}

body.editor-area .editor-nav a::before,
body.editor-area .editor-nav a i {
    display: none !important;
    content: none !important;
}

body.editor-area .editor-nav .profile-link {
    margin-left: auto !important;
}

body.editor-area .editor-nav .active {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.2);
}
body.editor-area:has(.profile-shell) .editor-nav a[href^="user.php"] {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.2);
}
body.editor-area:has(.formations-shell) .editor-nav a[href="formations.php"] {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.2);
}

body.editor-area .aggregator-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}
body.editor-area .aggregator-search i {
    position: absolute;
    z-index: 1;
    left: 13px;
    color: var(--muted);
}
body.editor-area .aggregator-search input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px 9px 46px !important;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}
body.editor-area .aggregator-search input:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(39,114,119,.13);
}
body.editor-area .aggregator-search-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: .82rem;
}

/* Organisationen im Benutzerprofil: Suche und übersichtliche Stammdatentabelle. */
body.editor-area .organization-profile .organization-field {
    padding: 0;
    border: 0;
    background: transparent;
}
body.editor-area .organization-profile .organization-picker-row {
    grid-template-columns: minmax(0, 1fr) auto;
}
body.editor-area .organization-profile [data-organization-search] {
    min-width: 0;
}
body.editor-area .organization-profile-table {
    margin-top: 15px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
body.editor-area .organization-profile-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}
body.editor-area .organization-profile-table th,
body.editor-area .organization-profile-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}
body.editor-area .organization-profile-table th {
    color: var(--muted);
    background: #f2f7f4;
    font-size: .69rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
body.editor-area .organization-profile-table tbody tr:last-child td { border-bottom: 0; }
body.editor-area .organization-profile-table td:first-child { min-width: 11rem; }
body.editor-area .organization-profile-table td strong { color: var(--ink); }
body.editor-area .organization-profile-table td:last-child { width: 48px; }
body.editor-area .organization-profile-table button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: var(--teal);
    background: #e7f3ef;
    cursor: pointer;
}
body.editor-area .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Kompakte Kennzahlen: auf Mobilgeräten immer zwei Reihen mit drei Feldern. */
@media (max-width: 760px) {
    body.editor-area .management .project-metrics { margin-bottom: 14px; }
    body.editor-area .management .project-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }
    body.editor-area .management .project-metric:first-child { grid-column: auto; }
    body.editor-area .management .project-metric {
        padding: 6px 8px;
        border-radius: 8px;
    }
    body.editor-area .management .project-metric strong { font-size: 1.05rem; }
    body.editor-area .management .project-metric span {
        margin-top: 2px;
        font-size: .57rem;
        line-height: 1.1;
        letter-spacing: -.01em;
    }
}

@media (max-width: 620px) {
    body.editor-area .organization-profile-table th:nth-child(2),
    body.editor-area .organization-profile-table td:nth-child(2),
    body.editor-area .organization-profile-table th:nth-child(3),
    body.editor-area .organization-profile-table td:nth-child(3) { display: none; }
}
.organization-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.organization-button{display:inline-flex;min-height:39px;align-items:center;justify-content:center;gap:7px;padding:8px 12px;border:0;border-radius:9px;color:var(--teal);background:#e7f3ef;font-weight:800;white-space:nowrap;cursor:pointer}.organization-button:hover,.organization-button:focus-visible{color:#fff;background:var(--teal);outline:3px solid rgba(39,114,119,.16);outline-offset:2px}.organization-all{display:flex!important;align-items:center;gap:7px;margin-top:8px!important;font-weight:600!important}.organization-all input{width:17px!important;min-height:17px!important}.organization-dialog{width:min(680px,calc(100% - 28px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:20px;color:var(--ink);background:#fffdf8;box-shadow:0 26px 80px rgba(8,32,38,.42)}.organization-dialog::backdrop{background:rgba(20,43,49,.62);backdrop-filter:blur(5px)}.organization-dialog form{margin:0}.organization-dialog header{position:relative;padding:24px 27px 20px;background:linear-gradient(125deg,#f3ead8,#ddc9a5)}.organization-dialog h2{margin:0;padding-right:48px;font:700 1.55rem/1.15 Fraunces,Georgia,serif}.organization-dialog header p{margin:5px 0 0;color:var(--muted)}.organization-dialog .modal-close{position:absolute;top:16px;right:18px}.organization-dialog-body{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:22px 27px;overflow:auto}.organization-dialog .full{grid-column:1/-1}.organization-address{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:14px}.organization-address:has(.zip){grid-template-columns:140px minmax(0,1fr)}.organization-address.contact{grid-template-columns:repeat(2,minmax(0,1fr))}.organization-dialog .field{min-width:0}.organization-dialog .field input,.organization-dialog .field select{display:block;width:100%;min-width:0;box-sizing:border-box;min-height:42px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit}.organization-dialog footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 27px;border-top:1px solid var(--line);background:#f2f7f4}.organization-dialog button.secondary{color:var(--teal);background:#e7f3ef}.organization-key{grid-column:1/-1;margin:0;color:var(--muted);font-size:.7rem}.organization-error{grid-column:1/-1;min-height:1.2em;margin:0;color:#963a35;font-size:.78rem}
/* Must follow the legacy picker rules above. */
body.editor-area .organization-profile select[hidden] { display: none !important; }
body.editor-area .organization-profile .organization-picker-row { display: block !important; position: relative; width: 100% !important; padding-right: 102px; }
body.editor-area .organization-profile .organization-search-field { position: relative; display: block; width: 100% !important; min-width: 0; }
body.editor-area .organization-profile .organization-picker-row [data-organization-new] { position: absolute; top: 0; right: 0; min-width: 90px; }
body.editor-area .organization-profile .organization-search-field .fa { position: absolute; z-index: 1; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
body.editor-area .organization-profile [data-organization-search] { padding-left: 39px !important; }
body.editor-area .organization-profile-table { margin-top: 16px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; overflow: hidden !important; background: #fffdf8 !important; }
body.editor-area .organization-profile-table table { width: 100% !important; border-collapse: collapse !important; }
body.editor-area .organization-profile-table th,body.editor-area .organization-profile-table td { display: table-cell !important; padding: 12px 14px !important; border-bottom: 1px solid var(--line) !important; text-align: left !important; vertical-align: middle !important; }
body.editor-area .organization-profile-table th { color: var(--muted) !important; background: #edf5f2 !important; font-size: .7rem !important; letter-spacing: .03em !important; text-transform: uppercase !important; }
body.editor-area .organization-profile-table tbody tr:last-child td { border-bottom: 0 !important; }
body.editor-area .organization-profile-table td:last-child { width: 52px !important; }
body.editor-area .organization-profile-table button { display: grid !important; width: 36px !important; height: 36px !important; place-items: center !important; padding: 0 !important; border: 0 !important; border-radius: 9px !important; color: var(--teal) !important; background: #e7f3ef !important; cursor: pointer !important; }

/* Aktionen in der Organisationsmaske entsprechen der Projektbearbeitung. */
body.editor-area .organization-dialog footer button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    font: 800 .78rem/1 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
body.editor-area .organization-dialog footer button.secondary {
    color: var(--teal);
    background: #e7f3ef;
}
body.editor-area .organization-dialog footer button[data-organization-save] {
    color: #fff;
    background: var(--teal);
}
body.editor-area .organization-dialog footer button:hover,
body.editor-area .organization-dialog footer button:focus-visible {
    outline: 0;
    transform: translateY(-1px);
}
body.editor-area .organization-dialog footer button.secondary:hover,
body.editor-area .organization-dialog footer button.secondary:focus-visible {
    color: #fff;
    background: var(--teal);
}
body.editor-area .organization-dialog footer button[data-organization-save]:hover,
body.editor-area .organization-dialog footer button[data-organization-save]:focus-visible {
    background: #164c52;
}

/* Eigenes Profil und Abmelden bilden immer die zusammengehörige rechte Gruppe. */
body.editor-area .editor-nav .logout-link,
body.editor-area .editor-nav a[href="logout.php"] { margin-left: 0 !important; }
body.editor-area .formations-shell .editor-nav .profile-link { margin-left: auto !important; }
body.editor-area .formations-shell .editor-nav a[href^="user.php"] { margin-left: auto !important; }
body.editor-area .formations-shell #organization_id { display: none !important; }
body.editor-area .formations-shell .organization-search-field { display: block !important; flex: 1 1 auto; }
body.editor-area .formations-shell .organization-search-field i { display: block; }
body.editor-area .formations-shell .organization-search-field input { padding-left: 46px !important; }
body.editor-area .formations-shell .organization-field > label:first-child { display: none; }
body.editor-area .project-search input { padding-left: 46px !important; }
@media(max-width:560px){.organization-picker-row{grid-template-columns:1fr auto}.organization-picker-row select{grid-column:1/-1}.organization-dialog-body{grid-template-columns:1fr;padding:18px}.organization-address,.organization-address:has(.zip),.organization-address.contact{grid-template-columns:1fr}.organization-dialog footer{padding:12px 18px}body.editor-area .organization-profile-table th:nth-child(2),body.editor-area .organization-profile-table td:nth-child(2),body.editor-area .organization-profile-table th:nth-child(3),body.editor-area .organization-profile-table td:nth-child(3){display:none!important}}
/* Auswahl der Projekttypen in der Kuratoren-Bearbeitung. */
.user-edit-dialog .project-types{margin:0;padding:0;border:0}
.user-edit-dialog .project-types legend{margin:0 0 8px;color:var(--muted);font-size:.8rem;font-weight:700}
.user-edit-dialog .project-types .project-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.user-edit-dialog .project-types .project-type-option{position:relative;display:flex;min-height:64px;align-items:center;gap:11px;box-sizing:border-box;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:11px;color:var(--ink);background:#fff;cursor:pointer}
.user-edit-dialog .project-types .project-type-option input{position:absolute;width:1px;height:1px;min-height:0;margin:0;opacity:0}
.user-edit-dialog .project-types .project-type-icon{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:9px;color:#245eaa;background:#e0ebff;font-size:1rem}
.user-edit-dialog .project-types .project-type-option.picture .project-type-icon{color:#725184;background:#eee2f4}
.user-edit-dialog .project-types .project-type-text{display:grid;gap:2px}
.user-edit-dialog .project-types .project-type-text strong{font-size:.88rem}
.user-edit-dialog .project-types .project-type-text small{color:var(--muted);font-size:.68rem;line-height:1.25}
.user-edit-dialog .project-types .project-type-option:has(input:checked){border-color:var(--teal);background:#edf7f3;box-shadow:0 0 0 2px rgba(39,114,119,.16)}
.user-edit-dialog .project-types .project-type-option:has(input:checked) .project-type-icon{color:#fff;background:var(--teal)}
.user-edit-dialog .project-types .project-type-option:focus-within{outline:3px solid rgba(39,114,119,.2);outline-offset:2px}
@media(max-width:560px){.user-edit-dialog .project-types .project-type-options{grid-template-columns:1fr}}

/*
 * LEANOS CREATIVDESK – gemeinsamer Verwaltungskopf.
 * Diese Gestaltung ist der verbindliche Standard aller Verwaltungsseiten.
 */
body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) {
    position: relative;
    padding: 34px 38px 0 !important;
    overflow: hidden;
    color: var(--public-primary, var(--pine)) !important;
    background:
        radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--public-accent, #dcebe6) 68%, transparent), transparent 18rem),
        linear-gradient(120deg, color-mix(in srgb, var(--public-surface, #fff) 48%, white), color-mix(in srgb, var(--public-accent, #dcebe6) 34%, white)) !important;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
)::before {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 58px;
    left: 0;
    width: 7px;
    content: '';
    background: linear-gradient(var(--public-primary, var(--teal)), var(--public-secondary, var(--pine)));
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
)::after {
    position: absolute;
    z-index: 1;
    top: 31px;
    right: 38px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--public-primary, #294b5f) 17%, transparent);
    border-radius: 999px;
    color: var(--public-primary, var(--pine));
    background: color-mix(in srgb, var(--public-surface, #fff) 48%, white);
    content: 'ARBEITSBEREICH';
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .13em;
}

body.editor-area :is(.editor-header, .analytics-head):has(.modal-close)::after {
    right: 88px;
}

body.editor-area .dashboard-head {
    padding: 0 !important;
}

body.editor-area .dashboard-head-copy {
    box-sizing: border-box;
    min-height: 190px;
    padding: 34px 38px 31px;
}

body.editor-area .dashboard-head > .editor-nav {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.editor-area .user-header .header-row {
    display: block !important;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) .toptitel {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin: 0 0 28px !important;
    align-items: center;
    gap: 11px;
    color: var(--public-primary, var(--pine)) !important;
    font-size: .66rem !important;
    font-weight: 800;
    letter-spacing: .14em;
    text-decoration: none;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) .toptitel::before {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--public-primary, var(--teal));
    content: 'L';
    font: 800 .78rem/1 'DM Sans', system-ui, sans-serif;
    letter-spacing: 0;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) .toptitel hr {
    display: none !important;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) h1 {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 !important;
    color: var(--public-primary, var(--pine)) !important;
    font-size: clamp(2.45rem, 5vw, 4.25rem) !important;
    line-height: .95 !important;
    letter-spacing: -.025em;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) > p,
body.editor-area .dashboard-head-copy > p,
body.editor-area .user-header .header-row > div > p {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 13px 0 0 !important;
    color: var(--muted) !important;
    font-size: .92rem !important;
}

body.editor-area :is(
    .management-header, .editor-header, .user-header, .profile-header,
    .formations-head, .communications-head, .analytics-head
) > .editor-nav,
body.editor-area .user-header .header-row > .editor-nav {
    width: calc(100% + 76px) !important;
    max-width: none !important;
    margin: 31px -38px 0 !important;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) .editor-nav {
    position: relative;
    z-index: 3;
    display: flex;
    box-sizing: border-box;
    min-height: 58px;
    padding: 0 25px !important;
    align-items: stretch;
    gap: 1px;
    border: 0 !important;
    border-top: 1px solid color-mix(in srgb, var(--public-primary, #294b5f) 12%, transparent) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--public-primary, #294b5f) 10%, transparent) !important;
    border-radius: 0 !important;
    background: color-mix(in srgb, var(--public-surface, #fff) 76%, white) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.85), 0 8px 22px color-mix(in srgb, var(--public-primary, #294b5f) 6%, transparent) !important;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) .editor-nav a {
    position: relative;
    display: inline-flex;
    min-height: 58px !important;
    padding: 0 13px !important;
    align-items: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 0 !important;
    color: color-mix(in srgb, var(--public-primary, #294b5f) 86%, var(--muted)) !important;
    background: transparent !important;
    font-size: .73rem !important;
    font-weight: 800;
}

body.editor-area .editor-nav a::before {
    display: block !important;
    width: 16px;
    content: '' !important;
    font-family: FontAwesome;
    font-size: .83rem;
    font-weight: normal;
    text-align: center;
}
body.editor-area .editor-nav .dashboard-link::before { content: '\f0e4' !important; }
body.editor-area .editor-nav .projects-link::before { content: '\f07c' !important; }
body.editor-area .editor-nav .users-link::before { content: '\f0c0' !important; }
body.editor-area .editor-nav .formations-link::before { content: '\f1ad' !important; }
body.editor-area .editor-nav .communications-link::before { content: '\f0e0' !important; }
body.editor-area .editor-nav .profile-link::before { content: '\f007' !important; }
body.editor-area .editor-nav .logout-link::before { content: '\f08b' !important; }

body.editor-area .editor-nav a::after {
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    content: '';
    background: transparent;
}

body.editor-area .editor-nav a:hover,
body.editor-area .editor-nav a:focus-visible,
body.editor-area .editor-nav a.active,
body.editor-area .editor-nav a[aria-current="page"] {
    color: var(--public-primary, var(--pine)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 24%, transparent) !important;
    outline: 0 !important;
}

body.editor-area .editor-nav a:hover::after,
body.editor-area .editor-nav a:focus-visible::after,
body.editor-area .editor-nav a.active::after,
body.editor-area .editor-nav a[aria-current="page"]::after {
    background: var(--public-primary, var(--teal));
}

body.editor-area .editor-nav .profile-link {
    margin-left: auto !important;
}

body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) .editor-nav .profile-link,
body.editor-area :is(
    .dashboard-head, .management-header, .editor-header, .user-header,
    .profile-header, .formations-head, .communications-head, .analytics-head
) .editor-nav .logout-link {
    box-sizing: border-box;
    width: 46px !important;
    padding: 0 !important;
    overflow: hidden;
    justify-content: center !important;
    white-space: nowrap;
    font-size: 0 !important;
}

body.editor-area .editor-nav .profile-link::before,
body.editor-area .editor-nav .logout-link::before {
    width: auto;
    font-size: .9rem;
}

body.editor-area .editor-nav .logout-link {
    margin-right: 24px !important;
    color: var(--public-secondary, var(--pine)) !important;
}

@media (max-width: 900px) {
    body.editor-area .editor-nav { padding-inline: 18px !important; }
    body.editor-area .editor-nav a { padding-inline: 9px !important; gap: 6px; font-size: .68rem !important; }
}

@media (max-width: 720px) {
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    ) {
        padding: 25px 24px 0 70px !important;
    }
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    )::before { bottom: 0; width: 5px; }
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    )::after { display: none; }
    body.editor-area .dashboard-head { padding: 0 !important; }
    body.editor-area .dashboard-head-copy { min-height: 174px; padding: 25px 24px 28px 70px; }
    /* Der Dashboard-Kopf besitzt durch seinen eigenen Inhaltsblock einen
       unteren Abstand vor dem mobilen Menü. Alle übrigen Verwaltungsseiten
       erhalten denselben Abstand direkt nach ihrer Kurzbeschreibung. */
    body.editor-area :is(
        .management-header, .editor-header, .user-header, .profile-header,
        .formations-head, .communications-head, .analytics-head
    ) > p,
    body.editor-area .user-header .header-row > div > p {
        margin-bottom: 28px !important;
    }
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    ) h1 { font-size: clamp(2.25rem, 11vw, 3.3rem) !important; }
    body.editor-area :is(
        .management-header, .editor-header, .user-header, .profile-header,
        .formations-head, .communications-head, .analytics-head
    ) > .editor-nav,
    body.editor-area .user-header .header-row > .editor-nav {
        width: calc(100% + 94px) !important;
        margin: 28px -24px 0 -70px !important;
    }
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    ) .editor-nav {
        margin-top: 0 !important;
        padding: 8px 15px 10px !important;
        background: color-mix(in srgb, var(--public-surface, #fff) 88%, white) !important;
    }
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    ).menu-open .editor-nav a {
        width: 100% !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
        justify-content: flex-start !important;
        border-radius: 8px !important;
        font-size: .84rem !important;
    }
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    ) .editor-nav .profile-link,
    body.editor-area :is(
        .dashboard-head, .management-header, .editor-header, .user-header,
        .profile-header, .formations-head, .communications-head, .analytics-head
    ) .editor-nav .logout-link {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible;
        justify-content: flex-start !important;
        font-size: .84rem !important;
    }
    body.editor-area .editor-nav a::after { display: none; }
    body.editor-area .mobile-menu-toggle {
        top: 22px !important;
        left: 23px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        color: #fff !important;
        border-color: transparent !important;
        background: var(--public-primary, var(--teal)) !important;
    }
}

/* Zentraler Dialogstandard im Creativdesk ---------------------------------
   Gilt für seitenfüllende Bearbeitungsdialoge und native <dialog>-Fenster. */
body.project-editing::before,
body.analytics-modal::before {
    background: color-mix(in srgb, var(--public-secondary, #173f55) 68%, transparent) !important;
    backdrop-filter: blur(7px) saturate(.85) !important;
}

body.editor-area dialog::backdrop {
    background: color-mix(in srgb, var(--public-secondary, #173f55) 68%, transparent) !important;
    backdrop-filter: blur(7px) saturate(.85) !important;
}

body.project-editing .editor-card,
body.analytics-modal .analytics,
body.editor-area dialog {
    overflow: hidden !important;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, white) !important;
    border-radius: 22px !important;
    color: var(--public-text, var(--ink)) !important;
    background: color-mix(in srgb, var(--public-surface, #fff) 92%, white) !important;
    box-shadow: 0 26px 80px color-mix(in srgb, var(--public-secondary, #173f55) 34%, transparent) !important;
}

body.editor-area .card-editor-dialog {
    border-radius: 22px !important;
    background: var(--public-surface, #fff) !important;
    box-shadow: 0 26px 80px color-mix(in srgb, var(--public-secondary, #173f55) 34%, transparent) !important;
}

body.project-editing .editor-header,
body.analytics-modal .analytics-head,
body.editor-area dialog .dialog-head,
body.editor-area .organization-dialog header,
body.editor-area .communication-dialog-head,
body.editor-area .entry-dialog-head {
    position: relative !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    padding: 24px 76px 22px 28px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 17%, transparent) !important;
    color: var(--public-text, var(--ink)) !important;
    background: linear-gradient(125deg,
        color-mix(in srgb, var(--public-accent, #e8d8b5) 72%, white),
        color-mix(in srgb, var(--public-surface, #fff) 76%, var(--public-primary, var(--teal)))
    ) !important;
}

body.project-editing .editor-header::before,
body.analytics-modal .analytics-head::before,
body.editor-area dialog .dialog-head::before,
body.editor-area .organization-dialog header::before,
body.editor-area .communication-dialog-head::before,
body.editor-area .entry-dialog-head::before {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    display: block !important;
    width: 6px !important;
    height: auto !important;
    border: 0 !important;
    content: '' !important;
    background: var(--public-primary, var(--teal)) !important;
}

body.project-editing .editor-header::after,
body.analytics-modal .analytics-head::after {
    display: none !important;
    content: none !important;
}

body.project-editing .editor-header .toptitel,
body.analytics-modal .analytics-head .toptitel {
    display: block !important;
    width: auto !important;
    margin: 0 0 15px !important;
    color: var(--public-primary, var(--teal)) !important;
    font-size: .69rem !important;
    letter-spacing: .14em !important;
    text-decoration: none !important;
}

body.project-editing .editor-header .toptitel::before,
body.analytics-modal .analytics-head .toptitel::before {
    display: none !important;
    content: none !important;
}

body.project-editing .editor-header .toptitel hr,
body.analytics-modal .analytics-head .toptitel hr {
    display: none !important;
}

body.project-editing .editor-header h1,
body.analytics-modal .analytics-head h1,
body.editor-area dialog .dialog-head h2,
body.editor-area .organization-dialog header h2,
body.editor-area .communication-dialog-head h2,
body.editor-area .entry-dialog-head h2 {
    max-width: calc(100% - 10px) !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--public-primary, var(--teal)) !important;
    font: 700 clamp(1.45rem, 3vw, 2.2rem)/1.08 Fraunces, Georgia, serif !important;
}

body.project-editing .editor-header p,
body.analytics-modal .analytics-head p,
body.editor-area dialog .dialog-head p,
body.editor-area .organization-dialog header p,
body.editor-area .communication-dialog-head p,
body.editor-area .entry-dialog-head p {
    margin: 7px 0 0 !important;
    color: color-mix(in srgb, var(--public-text, var(--ink)) 68%, transparent) !important;
    font-size: .82rem !important;
    line-height: 1.4 !important;
}

body.project-editing .editor-header .editor-nav,
body.analytics-modal .analytics-head .editor-nav {
    display: none !important;
}

body.editor-area :is(.modal-close, .communication-dialog-close) {
    top: 18px !important;
    right: 20px !important;
    z-index: 5 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    color: var(--public-primary, var(--teal)) !important;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, white) !important;
    background: color-mix(in srgb, var(--public-surface, #fff) 88%, white) !important;
    box-shadow: 0 7px 20px color-mix(in srgb, var(--public-secondary, #173f55) 18%, transparent) !important;
}

body.editor-area :is(.modal-close, .communication-dialog-close):is(:hover, :focus-visible) {
    color: var(--public-surface, #fff) !important;
    border-color: var(--public-primary, var(--teal)) !important;
    background: var(--public-primary, var(--teal)) !important;
}

body.project-editing .editor-main,
body.analytics-modal .analytics-main,
body.editor-area dialog .dialog-body,
body.editor-area .organization-dialog-body,
body.editor-area .communication-dialog-body {
    background: color-mix(in srgb, var(--public-surface, #fff) 94%, white) !important;
}

body.project-editing .save-area,
body.editor-area dialog .dialog-actions,
body.editor-area .organization-dialog footer,
body.editor-area .communication-dialog-actions,
body.editor-area dialog .confirm-actions {
    border-top: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 15%, transparent) !important;
    background: color-mix(in srgb, var(--public-accent, #e8d8b5) 34%, var(--public-surface, #fff)) !important;
}

body.editor-area .communication-dialog-error:empty {
    display: none !important;
}

body.editor-area .communication-entry-side {
    display: flex;
    height: max-content;
    align-items: center;
    gap: 9px;
}

body.editor-area .communication-entry-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

body.editor-area .communication-entry-action {
    display: grid;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent);
    border-radius: 9px;
    color: var(--public-primary, var(--teal));
    background: color-mix(in srgb, var(--public-accent, #e8d8b5) 38%, var(--public-surface, #fff));
    font-size: .74rem;
    text-decoration: none;
    cursor: pointer;
}

body.editor-area .communication-entry-action.danger {
    color: #963a35;
    border-color: color-mix(in srgb, #963a35 18%, transparent);
    background: color-mix(in srgb, #fbe8e5 72%, var(--public-surface, #fff));
}

body.editor-area .communication-entry-action:is(:hover, :focus-visible) {
    color: var(--public-surface, #fff);
    border-color: var(--public-primary, var(--teal));
    background: var(--public-primary, var(--teal));
    outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, transparent);
    outline-offset: 2px;
}

body.editor-area .communication-entry-action.danger:is(:hover, :focus-visible) {
    color: #fff;
    border-color: #963a35;
    background: #963a35;
}

body.editor-area .management-user-badge {
    position: absolute;
    z-index: 3;
    top: 31px;
    right: 220px;
    display: inline-flex;
    max-width: 190px;
    min-height: 34px;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--public-primary, #294b5f) 17%, transparent);
    border-radius: 999px;
    color: var(--public-primary, var(--pine));
    background: color-mix(in srgb, var(--public-surface, #fff) 48%, white);
    font-size: .68rem;
    font-weight: 800;
    text-decoration: none;
}

body.editor-area .management-user-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.editor-area .management-user-badge:is(:hover, :focus-visible) {
    color: var(--public-surface, #fff);
    background: var(--public-primary, var(--teal));
    outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, transparent);
    outline-offset: 2px;
}

body.editor-area .management-logout-button {
    position: absolute;
    z-index: 3;
    top: 31px;
    right: 176px;
    display: inline-grid;
    box-sizing: border-box;
    width: 36px;
    height: 34px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--public-primary, #294b5f) 17%, transparent);
    border-radius: 999px;
    color: var(--public-primary, var(--pine));
    background: color-mix(in srgb, var(--public-surface, #fff) 48%, white);
    font-size: .76rem;
    text-decoration: none;
}

body.editor-area .management-logout-button:is(:hover, :focus-visible) {
    color: var(--public-surface, #fff);
    background: var(--public-primary, var(--teal));
    outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, transparent);
    outline-offset: 2px;
}

/* Vorschauen behalten verwaltungsweit dieselbe freundliche Signalfarbe. */
body.editor-area :is(
    .quick-action.preview,
    .project-action.preview,
    .row-preview,
    .row-actions .preview,
    #headerPreviewLink,
    a[title*="Vorschau"],
    a[aria-label*="Vorschau"],
    a[title*="öffentlich anzeigen"],
    a[aria-label*="öffentlich anzeigen"]
) {
    color: var(--editor-preview-color) !important;
    border-color: color-mix(in srgb, var(--editor-preview-hover) 42%, transparent) !important;
    background: var(--editor-preview-surface) !important;
}

body.editor-area :is(
    .quick-action.preview,
    .project-action.preview,
    .row-preview,
    .row-actions .preview,
    #headerPreviewLink,
    a[title*="Vorschau"],
    a[aria-label*="Vorschau"],
    a[title*="öffentlich anzeigen"],
    a[aria-label*="öffentlich anzeigen"]
):is(:hover, :focus-visible) {
    color: #332806 !important;
    border-color: var(--editor-preview-hover) !important;
    background: var(--editor-preview-hover) !important;
    outline: 3px solid color-mix(in srgb, var(--editor-preview-hover) 25%, transparent) !important;
    outline-offset: 2px;
}

body.editor-area table.users tbody td:nth-child(3) {
    font-size: .78rem;
}

body.editor-area .formation-table td:is([data-label="Adresse"], [data-label="Ansprechpartner"]) {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.3;
}

body.editor-area .homepage-accordion-group {
    grid-column: 1 / -1;
    display: grid;
    min-width: 0;
}

body.editor-area .homepage-section-toggle {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 0;
    border: 0 !important;
    border-left: 4px solid var(--public-primary, var(--teal)) !important;
    box-shadow: none !important;
    text-align: left;
    cursor: pointer;
}

body.editor-area .homepage-section-toggle .form-section-label {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.editor-area .homepage-section-toggle .form-section-indicator {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 50%;
    color: var(--public-primary, var(--teal));
    background: color-mix(in srgb, var(--public-surface, #fff) 75%, white);
    font-size: 1.05rem;
    line-height: 1;
}

body.editor-area .homepage-section-toggle[aria-expanded="true"] .form-section-indicator {
    color: var(--public-surface, #fff);
    background: var(--public-primary, var(--teal));
}

body.editor-area .homepage-section-toggle:is(:hover, :focus-visible) {
    color: var(--public-primary, var(--pine));
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 58%, var(--public-surface, #fff));
    outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent);
    outline-offset: 2px;
}

body.editor-area .homepage-accordion-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 14px 0 4px;
}

body.editor-area .homepage-accordion-panel[hidden] {
    display: none;
}

body.editor-area .homepage-inheritance {
    border-left-color: var(--public-primary, var(--teal)) !important;
    color: color-mix(in srgb, var(--public-primary, var(--pine)) 70%, var(--muted)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 38%, var(--public-surface, #fff)) !important;
}

/* Songlisten übernehmen dieselben Profilflächen wie der übrige Creativdesk. */
body.editor-area.project-editing .table-wrap {
    border-color: color-mix(in srgb, var(--public-primary, var(--teal)) 20%, transparent) !important;
    background: var(--public-surface, var(--paper)) !important;
}

body.editor-area.project-editing .table-wrap th {
    color: color-mix(in srgb, var(--public-primary, var(--pine)) 68%, var(--muted)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 34%, var(--public-surface, #fff)) !important;
}

body.editor-area.project-editing .table-wrap td {
    border-top-color: color-mix(in srgb, var(--public-primary, var(--teal)) 14%, transparent) !important;
    background: color-mix(in srgb, var(--public-surface, #fff) 94%, var(--public-accent, #dcebe6)) !important;
}

body.editor-area.project-editing .table-wrap tr.header-row td {
    border-top-color: color-mix(in srgb, var(--public-primary, var(--teal)) 28%, transparent) !important;
    border-bottom-color: color-mix(in srgb, var(--public-primary, var(--teal)) 20%, transparent) !important;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--public-accent, #dcebe6) 44%, var(--public-surface, #fff)),
        color-mix(in srgb, var(--public-accent, #dcebe6) 20%, var(--public-surface, #fff))
    ) !important;
}

body.editor-area.project-editing .table-wrap tr.header-row td:first-child {
    border-left-color: var(--public-primary, var(--teal)) !important;
}

body.editor-area.project-editing .table-wrap :is(.entry-content .title, .entry-content .note) {
    border-color: color-mix(in srgb, var(--public-primary, var(--teal)) 14%, transparent) !important;
    color: var(--ink) !important;
    background: color-mix(in srgb, var(--public-surface, #fff) 78%, white) !important;
}

body.editor-area.project-editing .table-wrap .entry-content .note {
    height: 28px !important;
    min-height: 28px !important;
    padding: 3px 9px !important;
    font-size: .68rem !important;
    line-height: 1.2 !important;
}

body.editor-area.project-editing .table-wrap .header-label,
body.editor-area.project-editing .table-wrap .drag-handle {
    color: color-mix(in srgb, var(--public-primary, var(--pine)) 72%, var(--muted)) !important;
}

body.editor-area.project-editing .table-wrap .playback-toggle {
    color: var(--public-primary, var(--teal)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 46%, var(--public-surface, #fff)) !important;
}

body.editor-area.project-editing .table-wrap .playback-toggle[aria-pressed="true"] {
    color: var(--public-surface, #fff) !important;
    background: var(--public-primary, var(--teal)) !important;
}

body.editor-area.project-editing .song-footer {
    border-top-color: color-mix(in srgb, var(--public-primary, var(--teal)) 18%, transparent) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 22%, var(--public-surface, #fff)) !important;
}

body.editor-area.project-editing .song-footer #status {
    padding: 7px 10px !important;
    border-left: 3px solid var(--public-primary, var(--teal)) !important;
    border-radius: 7px !important;
    color: color-mix(in srgb, var(--public-primary, var(--pine)) 68%, var(--muted)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 30%, var(--public-surface, #fff)) !important;
}

@media (max-width: 700px) {
    body.editor-area .homepage-accordion-panel {
        grid-template-columns: 1fr;
    }
}

body.editor-area .formation-actions .formation-action {
    box-sizing: border-box !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent) !important;
    border-radius: 9px !important;
    color: var(--public-primary, var(--teal)) !important;
    background: color-mix(in srgb, var(--public-accent, #e8d8b5) 38%, var(--public-surface, #fff)) !important;
    font-size: .74rem !important;
}

body.editor-area .formation-actions .formation-action.danger {
    color: #963a35 !important;
    border-color: color-mix(in srgb, #963a35 18%, transparent) !important;
    background: color-mix(in srgb, #fbe8e5 72%, var(--public-surface, #fff)) !important;
}

body.editor-area .formation-actions .formation-action:is(:hover, :focus-visible) {
    color: var(--public-surface, #fff) !important;
    border-color: var(--public-primary, var(--teal)) !important;
    background: var(--public-primary, var(--teal)) !important;
    outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, transparent) !important;
    outline-offset: 2px !important;
}

body.editor-area .formation-actions .formation-action.danger:is(:hover, :focus-visible) {
    color: #fff !important;
    border-color: #963a35 !important;
    background: #963a35 !important;
}

body.editor-area .project-groups {
    gap: 10px !important;
}

body.editor-area .project-group {
    display: grid;
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 15%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--public-surface, #fff) 94%, white);
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.editor-area .project-group.is-open {
    border-color: color-mix(in srgb, var(--public-primary, var(--teal)) 30%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--public-secondary, var(--pine)) 9%, transparent);
}

body.editor-area .project-group-head {
    display: block !important;
    padding: 0 !important;
}

body.editor-area .project-group-toggle {
    display: grid;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    grid-template-columns:minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 0;
    border-radius: 0;
    color: var(--public-text, var(--ink));
    background: color-mix(in srgb, var(--public-accent, #e8d8b5) 30%, var(--public-surface, #fff));
    text-align: left;
    cursor: pointer;
}

body.editor-area .project-group-toggle::after {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    color: var(--public-primary, var(--teal));
    background: color-mix(in srgb, var(--public-surface, #fff) 76%, white);
    content: '\f107';
    font: normal .75rem/1 FontAwesome;
    transition: transform .18s ease;
}

body.editor-area .project-group.is-open .project-group-toggle::after {
    transform: rotate(180deg);
}

body.editor-area .project-group-toggle h3 {
    min-width: 0;
}

body.editor-area .project-group-toggle:is(:hover, :focus-visible) {
    color: var(--public-primary, var(--teal));
    background: color-mix(in srgb, var(--public-accent, #e8d8b5) 48%, var(--public-surface, #fff));
    outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent);
    outline-offset: -3px;
}

body.editor-area .project-group > :is(.quick-list, .project-group-empty) {
    margin: 0 !important;
    padding: 9px !important;
    border: 0 !important;
    border-top: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 12%, transparent) !important;
    border-radius: 0 !important;
}

body.editor-area .project-group > [hidden] {
    display: none !important;
}

body.editor-area .project-group > .project-group-empty {
    color: var(--muted);
    background: transparent;
}

@media (max-width: 720px) {
    body.editor-area .management-user-badge {
        top: 22px;
        right: 62px;
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
    }
    body.editor-area .management-user-badge span {
        display: none;
    }
    body.editor-area .management-logout-button {
        top: 22px;
        right: 18px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 560px) {
    body.editor-area .communication-entry-side {
        justify-content: space-between;
    }
    body.editor-area .management-user-badge {
        top: 22px;
        right: 62px;
    }
}

body.editor-area dialog :is(.dialog-actions, .organization-dialog footer, .communication-dialog-actions) button:not(.danger),
body.project-editing .save-area button[type="submit"] {
    border-color: var(--public-primary, var(--teal)) !important;
}

/* Projektgruppen erben dieselben Profiltöne wie der übrige Verwaltungsbereich. */
body.editor-area.project-editing .form-section-toggle {
    border-left-color: var(--public-primary, var(--teal)) !important;
    color: color-mix(in srgb, var(--public-primary, var(--pine)) 78%, var(--ink)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 34%, var(--public-surface, #fff)) !important;
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--public-primary, var(--teal)) 10%, transparent) !important;
}

body.editor-area.project-editing .form-section-toggle[aria-expanded="true"] {
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 52%, var(--public-surface, #fff)) !important;
}

body.editor-area.project-editing .form-section-toggle:is(:hover, :focus-visible) {
    color: var(--public-primary, var(--teal)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 56%, var(--public-surface, #fff)) !important;
    outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent) !important;
    outline-offset: -3px !important;
}

body.editor-area.project-editing .form-section-indicator {
    color: var(--public-primary, var(--teal)) !important;
    background: color-mix(in srgb, var(--public-surface, #fff) 75%, white) !important;
}

body.editor-area.project-editing .form-section-toggle[aria-expanded="true"] .form-section-indicator {
    color: var(--public-surface, #fff) !important;
    background: var(--public-primary, var(--teal)) !important;
}

body.editor-area.project-editing .project-type-label {
    color: color-mix(in srgb, var(--public-primary, var(--teal)) 62%, var(--muted)) !important;
}

body.editor-area.project-editing .project-type-label strong {
    color: var(--public-primary, var(--teal)) !important;
}

/* Projekttypen-Auswahl: dieselben Flächen wie der gewählte Verwaltungs-Farbstyle. */
body.editor-area :is(.project-types, .project-type-field) {
    border-color: color-mix(in srgb, var(--public-primary, var(--teal)) 18%, var(--public-surface, #fff)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 30%, var(--public-surface, #fff)) !important;
}

body.editor-area :is(.project-type-option, .user-edit-dialog .project-types .project-type-option) {
    border-color: color-mix(in srgb, var(--public-primary, var(--teal)) 18%, var(--public-surface, #fff)) !important;
    background: var(--public-surface, #fff) !important;
}

body.editor-area :is(.project-type-option, .user-edit-dialog .project-types .project-type-option):has(input:checked) {
    border-color: var(--public-primary, var(--teal)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 52%, var(--public-surface, #fff)) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent) !important;
}

body.editor-area :is(.project-type-icon, .user-edit-dialog .project-types .project-type-icon) {
    color: var(--public-primary, var(--teal)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 64%, var(--public-surface, #fff)) !important;
}

body.editor-area :is(.project-type-option, .user-edit-dialog .project-types .project-type-option):has(input:checked) .project-type-icon {
    color: var(--public-surface, #fff) !important;
    background: var(--public-primary, var(--teal)) !important;
}

body.editor-area #createDialog .project-types {
    grid-column: 1 / -1;
    margin: 0;
    padding: 15px 17px 17px;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, var(--public-surface, #fff));
    border-radius: 12px;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 30%, var(--public-surface, #fff));
}

body.editor-area #createDialog .project-types legend {
    padding: 0 5px;
    color: var(--public-primary, var(--teal));
    font-weight: 800;
}

body.editor-area #createDialog .project-types .section-note {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: .73rem;
}

body.editor-area #createDialog .project-type-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body.editor-area #createDialog .project-type-option {
    display: flex !important;
    min-width: 150px !important;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, var(--public-surface, #fff)) !important;
    border-radius: 9px !important;
    background: var(--public-surface, #fff) !important;
    font-size: .8rem;
    font-weight: 700 !important;
    text-align: left;
    transition: none;
}

body.editor-area #createDialog .project-type-option i {
    display: block;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    color: inherit;
    background: transparent;
}

body.editor-area #createDialog .project-type-option input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--public-primary, var(--teal));
}

body.editor-area #createDialog .project-type-option:has(input:checked) {
    border-color: var(--public-primary, var(--teal)) !important;
    background: color-mix(in srgb, var(--public-accent, #dcebe6) 52%, var(--public-surface, #fff)) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--public-primary, var(--teal)) 16%, transparent) !important;
}

body.editor-area #createDialog .project-type-option:has(input:checked) i {
    color: inherit;
    background: transparent;
}

body.editor-area #createDialog .project-type-option:is(:hover, :focus-within) {
    transform: none;
    border-color: color-mix(in srgb, var(--public-primary, var(--teal)) 34%, var(--public-surface, #fff)) !important;
}

@media (max-width: 720px) {
    body.project-editing .container-fluid,
    body.analytics-modal .container-fluid {
        padding: 0 !important;
    }
    body.project-editing .editor-card,
    body.analytics-modal .analytics {
        width: 100% !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }
    body.editor-area dialog {
        width: calc(100% - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 16px !important;
    }
    body.project-editing .editor-header,
    body.analytics-modal .analytics-head,
    body.editor-area dialog .dialog-head,
    body.editor-area .organization-dialog header,
    body.editor-area .communication-dialog-head,
    body.editor-area .entry-dialog-head {
        padding: 20px 66px 18px 22px !important;
    }
    body.project-editing .editor-header h1,
    body.analytics-modal .analytics-head h1,
    body.editor-area dialog .dialog-head h2,
    body.editor-area .organization-dialog header h2,
    body.editor-area .communication-dialog-head h2,
    body.editor-area .entry-dialog-head h2 {
        font-size: clamp(1.35rem, 7vw, 1.85rem) !important;
    }
    body.editor-area :is(.modal-close, .communication-dialog-close) {
        top: 14px !important;
        right: 14px !important;
    }
}

/* Projektmasken: Formationstasten folgen dem im Profil gewählten Farblayout. */
body.editor-area[style*="--public-primary"] .organization-picker-row .organization-button {
    border: 1px solid color-mix(in srgb, var(--public-primary) 12%, transparent) !important;
    color: var(--public-primary) !important;
    background: var(--editor-control-soft) !important;
    box-shadow: none !important;
}
body.editor-area[style*="--public-primary"] .organization-picker-row .organization-button:is(:hover, :focus-visible) {
    border-color: var(--public-primary) !important;
    color: var(--public-surface, #fff) !important;
    background: var(--public-primary) !important;
    outline: 3px solid color-mix(in srgb, var(--public-primary) 18%, transparent) !important;
    outline-offset: 2px !important;
}
body.editor-area[style*="--public-primary"] .organization-picker-row .organization-button[data-organization-new] {
    border-color: color-mix(in srgb, var(--public-accent) 42%, transparent) !important;
    color: var(--public-primary) !important;
    background: color-mix(in srgb, var(--public-accent) 44%, var(--public-surface, #fff)) !important;
}
body.editor-area[style*="--public-primary"] .organization-picker-row .organization-button[data-organization-new]:is(:hover, :focus-visible) {
    border-color: var(--public-primary) !important;
    color: var(--public-surface, #fff) !important;
    background: var(--public-primary) !important;
}


/* Mobile Verwaltungsseiten verwenden den gesamten Bildschirm ohne Außenrand. */
@media (max-width: 720px) {
    body.editor-area > main.container-fluid {
        width: 100% !important;
        max-width: none !important;
        min-height: 100dvh;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.editor-area > main.container-fluid > :is(
        .dashboard,
        .management,
        .formations-shell,
        .communications-shell,
        .analytics,
        .user-shell,
        .profile-shell,
        .new-project,
        .delete-shell,
        .confirm,
        .auth,
        .player-shell,
        .shell
    ) {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        min-height: 100dvh;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* Dezente rechtliche Navigation unter den Verwaltungsfenstern. */
body.editor-area .editor-legal-footer {
    display: flex;
    width: min(calc(100% - 32px), var(--editor-panel-max-width, 1080px));
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 9px auto 16px;
    color: var(--muted);
    font-size: .66rem;
    line-height: 1.4;
}

body.editor-area .editor-legal-footer a {
    color: inherit;
    text-decoration: none;
    opacity: .72;
}

body.editor-area .editor-legal-footer a:is(:hover, :focus-visible) {
    color: var(--public-primary, var(--teal));
    text-decoration: underline;
    opacity: 1;
}

.audio-recorder {
    display: grid;
    gap: 10px;
    margin-top: 13px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--public-primary, var(--teal)) 18%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--public-accent, #edf6f2) 37%, white);
}

.audio-recorder-head,
.audio-recorder-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.audio-recorder-head strong { color: var(--public-primary, var(--pine)); }
.audio-recorder-head strong .fa { margin-right: 5px; }
.audio-recorder-status { color: var(--muted); font-size: .8rem; }
.audio-recorder p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.audio-recorder button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.audio-recorder .audio-record-start { background: #a73b36; }
.audio-recorder .audio-record-stop { background: var(--ink); }
.audio-recorder .audio-record-reset { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.audio-recorder button:is(:hover, :focus-visible) { filter: brightness(1.08); outline: 3px solid color-mix(in srgb, var(--public-primary, var(--teal)) 25%, transparent); outline-offset: 2px; }
.audio-record-preview { width: min(100%, 360px); }
.audio-file-panel > .audio-recorder { margin-top: 14px; }

@media (max-width: 720px) {
    body.editor-area .editor-legal-footer {
        width: calc(100% - 24px);
        margin: 8px auto 12px;
    }
}
