/* Ruhiger, responsiver Arbeitsplatz für Tickets, Richtlinien und Meldungen. */
:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, sans-serif;
    color: #24252b;
    background: #f4f4f6;
    --accent: #b5172a;
    --accent-hover: #911223;
    --accent-tint: #fceef0;
    --line: #dfdfe5;
    --muted: #575963;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid #bc2334; outline-offset: 3px; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: .5rem; left: .5rem; z-index: 1; width: auto; height: auto; padding: .5rem; clip-path: none; background: white; }
.shell { width: min(1160px, 100% - 32px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: white; }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; min-height: 66px; padding-block: .5rem; }
.brand { display: inline-flex; gap: .5rem; align-items: center; color: #25262c; text-decoration: none; font-weight: 750; font-size: 1.15rem; }
.brand span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .45rem; color: white; background: var(--accent); }
.tabs, .segments, .account, .filters, .picker { display: flex; gap: .5rem; align-items: center; }
.tabs a, .segments a { color: var(--muted); font-weight: 600; text-decoration: none; padding: .4rem .65rem; border-radius: .35rem; }
.tabs a[aria-current], .segments a[aria-current], .account a[aria-current] { color: var(--accent-hover); background: var(--accent-tint); }
.account { margin-inline-start: auto; font-size: .85rem; }
.account a { text-decoration: none; }
main { padding-block: 1.5rem 3rem; }
.page-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-block: 1rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 3.5vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-size: 1.12rem; }
.page-heading p, time, small { color: var(--muted); font-size: .85rem; }
.ticket-heading p { margin-top: .35rem; }
.back { display: inline-block; margin-bottom: .5rem; font-size: .88rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 300px); gap: 1rem; align-items: start; }
.panel { padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; background: white; min-width: 0; }
.filters { justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.picker { min-width: 0; }
select { min-width: 0; }
button, .button, .quiet, input, select, textarea { font: inherit; }
button, .button, .quiet { cursor: pointer; border: 1px solid transparent; border-radius: .35rem; padding: .38rem .65rem; font-weight: 600; line-height: 1.35; }
.button { display: inline-block; text-decoration: none; color: white; background: var(--accent); }
.button:hover { background: var(--accent-hover); }
.quiet { color: #383941; border-color: var(--line); background: #f8f8fa; }
.quiet:hover { border-color: #e3b2b9; background: var(--accent-tint); }
input, select, textarea { border: 1px solid #bcbcc5; border-radius: .35rem; background: white; color: inherit; padding: .45rem .55rem; }
textarea { width: 100%; resize: vertical; }
.stack { display: grid; align-items: start; justify-items: start; gap: .6rem; }
.stack label, .stack :is(input, select, textarea) { width: 100%; }
.stack label { font-size: .9rem; font-weight: 600; }
.stack :is(input, select, textarea) { margin-top: .2rem; font-weight: 400; }
.work-actions summary { cursor: pointer; font-weight: 650; }
.work-actions details[open] form { margin-top: .65rem; }
.ticket-list { margin: 0; padding: 0; list-style: none; }
.ticket-list li + li { border-top: 1px solid var(--line); }
.ticket-list a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem .35rem; text-decoration: none; color: inherit; }
.ticket-list a:hover { background: var(--accent-tint); }
.ticket-main { overflow-wrap: anywhere; }
.ticket-main small { display: block; margin-top: .18rem; }
.status { flex-shrink: 0; padding: .2rem .48rem; border-radius: .35rem; font-size: .78rem; font-weight: 650; background: #eeeef2; color: #42434d; }
.status.working { background: #fdf2d9; color: #644516; }
.status.resolved { background: #e9e9ee; color: #34353d; }
.empty { padding-block: .9rem; color: var(--muted); }
.pager { display: inline-block; margin: .85rem .75rem 0 0; }
.work-actions { display: grid; gap: .85rem; }
.work-actions .stack { padding-top: .85rem; border-top: 1px solid var(--line); }
.conversation { display: grid; gap: .75rem; }
.ticket-reply { border-top: 1px solid var(--line); padding-top: .85rem; }
.message { padding: .65rem .8rem; border-radius: .45rem; background: #f4f4f7; border-left: 3px solid #c1c1cc; }
.message.note { border-color: #b8934c; background: #fff8e9; }
.message.resolution { border-color: var(--accent); background: var(--accent-tint); }
.message header, .entry-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; }
.message p, .entry p { margin-top: .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.reading { display: grid; gap: .75rem; max-width: 820px; }
.entry-meta { color: var(--muted); font-size: .84rem; margin-bottom: .35rem; }
#current-notices { border: 1px solid #ebcbd0; border-left: 3px solid var(--accent); background: #fff7f8; border-radius: .5rem; padding: .65rem .85rem; }
.notices-heading { display: flex; justify-content: space-between; gap: .6rem; }
.notices-heading a { font-size: .85rem; }
#current-notices ul { display: grid; gap: .45rem; margin: .4rem 0 0; padding: 0; list-style: none; }
#current-notices li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; overflow-wrap: anywhere; }
.login { max-width: 460px; margin: 8vh auto 0; padding: 1.4rem; }
.login p, .login .button { margin-top: .8rem; }
.area-list, .credential-list { margin: 0; padding: 0; }
.area-list { list-style: none; }
.area-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-block: .5rem; }
.area-list li + li { border-top: 1px solid var(--line); }
.credential-list { margin-top: 1rem; }
.credential-list dt { color: var(--muted); font-size: .9rem; }
.credential-list dd { margin: 0 0 .65rem; overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .workspace-grid { grid-template-columns: 1fr; }
    .masthead-inner { column-gap: .7rem; }
    .tabs { order: 2; flex-basis: 100%; }
    .tabs a { flex: 1; text-align: center; }
    .ticket-list a { align-items: flex-start; }
    .account span { display: none; }
}
@media (max-width: 370px) {
    .ticket-list a { flex-wrap: wrap; }
    .picker { flex-wrap: wrap; }
}
.login .stack { margin-top: 1rem; }
.login .stack .button { margin-top: .2rem; }
