/* AVPA Oberfläche: mobile-first, Farben aus Konzept Abschnitt 8. */

:root {
  color-scheme: light dark;

  /* Palette aus dem Konzept */
  --club-green: #0e841f;
  --club-green-light: #bdddc2;
  --club-red: #f02c2d;
  --location-grow: #c1f48e;
  --location-dispensary: #1fbbff;
  --demand: #ddbc51;
  --clock-running: #3130e6;
  --vacation: #fe82ca;
  --sick: #ff8d00;
  --holiday: #85dddb;
  --unpaid: #9325ab;
  --warning: #e60e16;
  --neutral: #999999;

  /* Rollen im hellen Modus */
  --bg: #f5f8f5;
  --surface: #ffffff;
  --surface-soft: #e6f2e8;
  --text: #16211a;
  --text-muted: #4d5a51;
  --border: #c9d4cb;
  --primary: var(--club-green);
  --on-primary: #ffffff;
  --primary-hover: #0b6d19;
  --link: #0b6d19;
  --danger: #b81516;
  --on-danger: #ffffff;
  --alert-info-bg: #e6f2e8;
  --alert-info-text: #0a4a14;
  --alert-success-bg: #bdddc2;
  --alert-success-text: #083b10;
  --alert-warning-bg: #f7ecc6;
  --alert-warning-text: #5a4600;
  --alert-error-bg: #fde3e3;
  --alert-error-text: #8f0f10;
  --badge-grey-bg: #e3e6e4;
  --badge-grey-text: #3f4742;
  --testbar-bg: #f7ecc6;
  --testbar-text: #5a4600;

  --radius: 12px;
  --tap: 48px;
  --bottomnav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1511;
    --surface: #1a221c;
    --surface-soft: #1f3324;
    --text: #e9efea;
    --text-muted: #a9b5ad;
    --border: #36423a;
    --primary-hover: #12a027;
    --link: #8fdb9c;
    --danger: #d42223;
    --alert-info-bg: #1f3324;
    --alert-info-text: #cfe8d3;
    --alert-success-bg: #1d4a26;
    --alert-success-text: #d8f0dc;
    --alert-warning-bg: #40360f;
    --alert-warning-text: #f0dfa2;
    --alert-error-bg: #4a1617;
    --alert-error-text: #ffc9c9;
    --badge-grey-bg: #2e3631;
    --badge-grey-text: #c9d1cc;
    --testbar-bg: #40360f;
    --testbar-text: #f0dfa2;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h1 {
  font-size: 1.625rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--link);
}

img {
  max-width: 100%;
  height: auto;
}

code {
  overflow-wrap: anywhere;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Testbetrieb */
.testbar {
  background: var(--testbar-bg);
  color: var(--testbar-text);
  padding: 0.375rem 1rem;
  font-size: 1rem;
  text-align: center;
}

.testbar a {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

/* Grundgerüst App */
.shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.main-column {
  flex: 1;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.content {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1rem calc(var(--bottomnav-height) + 1.5rem + env(safe-area-inset-bottom));
}

/* Navigation Handy: unten */
.bottomnav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottomnav .nav-item {
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
  min-height: var(--bottomnav-height);
  padding: 0.25rem;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-item.is-active {
  color: var(--link);
  background: var(--surface-soft);
  font-weight: 600;
}

/* Navigation PC: seitlich */
.sidenav {
  display: none;
}

@media (min-width: 60rem) {
  .sidenav {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: none;
    width: 17rem;
    height: 100vh;
    padding: 1rem;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--border);
  }

  .sidenav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
  }

  .sidenav-foot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .topbar,
  .bottomnav {
    display: none;
  }

  .content {
    padding: 2rem;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Öffentliche Seiten: Anmeldung und Co. */
body.public {
  min-height: 100vh;
  min-height: 100dvh;
}

.public-card {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.public-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.public-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Bausteine */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.stack > .btn {
  align-self: flex-start;
}

.stack > .btn-block {
  align-self: stretch;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.page-head h1 {
  margin: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}

.link-row a {
  display: inline-block;
  padding: 0.5rem 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.help {
  color: var(--text-muted);
  font-size: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.125rem 1rem;
  margin: 0 0 0.75rem;
}

.facts dt {
  color: var(--text-muted);
}

.facts dd {
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}

@media (min-width: 36rem) {
  .facts {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--link);
  border-color: var(--link);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.btn-danger {
  background: var(--danger);
  color: var(--on-danger);
}

.btn-quiet {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-quiet:hover {
  color: var(--text);
  background: var(--surface-soft);
}

/* Formulare */
label,
legend {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.625rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  flex: none;
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
}

.field-checkbox > label,
.field fieldset label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--tap);
  margin: 0;
  font-weight: 400;
}

.field fieldset > div > div {
  margin: 0;
}

.field ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.errorlist {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--alert-error-text);
  font-weight: 600;
}

.alert .errorlist {
  margin: 0;
  color: inherit;
}

.has-error input,
.has-error select {
  border-color: var(--danger);
  border-width: 2px;
}

/* Meldungen */
.messages {
  margin-bottom: 1rem;
}

.alert {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.alert-info {
  background: var(--alert-info-bg);
  color: var(--alert-info-text);
}

.alert-success {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
}

.alert-warning {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
}

.alert-error {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
}

/* Abzeichen */
.badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--badge-grey-bg);
  color: var(--badge-grey-text);
  font-size: 1rem;
  font-weight: 600;
}

.badge-green {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
}

.badge-amber {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
}

.badge-grey {
  background: var(--badge-grey-bg);
  color: var(--badge-grey-text);
}

/* Kacheln auf der Startseite */
.tiles {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.tile:hover {
  background: var(--surface-soft);
}

.tile .icon {
  color: var(--link);
  width: 32px;
  height: 32px;
}

.tile span {
  color: var(--text-muted);
}

/* Liste „Mehr" */
.menu-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.menu-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
}

/* Sprachumschalter */
.language-switch {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.language-switch button {
  min-height: var(--tap);
  min-width: 5.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--text-muted);
  border: 0;
  font: inherit;
  cursor: pointer;
}

.language-switch button.is-active {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
  font-weight: 600;
}

/* Geräteliste */
.device-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* Anleitung */
.steps {
  margin: 0;
  padding-left: 1.5rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

/* Tabelle: auf dem Handy Karten, auf dem PC Tabelle */
.table-cards {
  width: 100%;
  border-collapse: collapse;
}

.table-cards thead {
  display: none;
}

.table-cards tr {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-cards td {
  display: block;
  padding: 0.25rem 0;
  overflow-wrap: anywhere;
}

.table-cards td[data-label]::before {
  content: attr(data-label) ": ";
  color: var(--text-muted);
}

.table-cards td:first-child::before {
  content: none;
}

.table-cards .table-action {
  padding-top: 0.5rem;
}

@media (min-width: 72rem) {
  .table-cards {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-cards thead {
    display: table-header-group;
  }

  .table-cards tr {
    display: table-row;
  }

  .table-cards th {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  .table-cards td {
    display: table-cell;
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    overflow-wrap: normal;
  }

  .table-cards td.cell-wrap {
    min-width: 12rem;
    overflow-wrap: anywhere;
  }

  .table-cards .badge,
  .table-cards .btn {
    white-space: nowrap;
  }

  .table-cards tbody tr:last-child td {
    border-bottom: 0;
  }

  .table-cards td[data-label]::before {
    content: none;
  }

  .table-cards .table-action {
    padding-top: 0.75rem;
    text-align: right;
  }
}

/* Stammdaten */
h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 1rem 0 0.5rem;
}

.alert a {
  color: inherit;
  font-weight: 600;
}

.badge-red {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
}

input[type="color"] {
  width: 6rem;
  padding: 0.25rem;
  cursor: pointer;
}

.period-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.period-nav .period-title {
  flex: 1 1 100%;
  order: -1;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 36rem) {
  .period-nav .period-title {
    flex: 1 1 auto;
    order: 0;
  }
}

.cell-input input {
  max-width: 14rem;
}

.is-missing input {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
  border-color: var(--danger);
  border-width: 2px;
}

.swatch {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  vertical-align: text-bottom;
}

.is-struck {
  color: var(--text-muted);
  text-decoration: line-through;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-cards .row-actions .btn {
  white-space: nowrap;
}

@media (min-width: 72rem) {
  .row-actions {
    justify-content: flex-end;
  }
}

.entry-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* Kalender */
.calendar-page .content {
  max-width: 100rem;
}

.calendar-summary {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-bottom: 0.5rem;
}

.summary-head a {
  margin-left: auto;
}

.summary-figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.summary-figures div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 0.75rem;
}

.summary-figures dt {
  color: var(--text-muted);
}

.summary-figures dd {
  margin: 0;
  font-weight: 600;
}

@media (min-width: 48rem) {
  .summary-figures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-figures div {
    display: block;
  }
}

.calendar-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
}

.fc {
  --fc-small-font-size: 1rem;
  --fc-page-bg-color: var(--surface);
  --fc-neutral-bg-color: var(--surface-soft);
  --fc-neutral-text-color: var(--text-muted);
  --fc-border-color: var(--border);
  --fc-button-text-color: var(--link);
  --fc-button-bg-color: var(--surface);
  --fc-button-border-color: var(--border);
  --fc-button-hover-bg-color: var(--surface-soft);
  --fc-button-hover-border-color: var(--link);
  --fc-button-active-bg-color: var(--primary);
  --fc-button-active-border-color: var(--primary);
  --fc-more-link-bg-color: var(--badge-grey-bg);
  --fc-more-link-text-color: var(--badge-grey-text);
  --fc-today-bg-color: rgba(189, 221, 194, 0.25);
  --fc-now-indicator-color: var(--warning);
  --fc-event-text-color: var(--on-primary);
}

.fc .fc-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fc .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.fc .fc-button {
  min-height: 2.75rem;
  font-weight: 600;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  color: var(--on-primary);
}

.fc .fc-button-primary:disabled {
  color: var(--text-muted);
  background: var(--surface);
  border-color: var(--border);
}

.fc a {
  color: var(--text);
  text-decoration: none;
}

.fc .fc-timegrid-slot {
  height: 1.75rem;
}

.fc .fc-event {
  line-height: 1.25;
  cursor: pointer;
}

/* Gesperrte Tage und Feiertage als Fläche, Schrift bleibt in beiden Modi lesbar. */
.fc .fc-bg-event.avpa-blocked {
  background: rgba(153, 153, 153, 0.4);
  opacity: 1;
}

.fc .fc-bg-event.avpa-holiday {
  background: rgba(133, 221, 219, 0.5);
  color: var(--text);
  opacity: 1;
}

.fc .fc-bg-event .fc-event-title {
  color: var(--text);
  font-style: normal;
}

/* Der Name steht im Zeitraster, in der schmalen Bedarfszeile hätte er keinen Platz. */
.fc-timegrid .fc-daygrid-body .avpa-holiday .fc-event-title {
  display: none;
}

/* Bedarfswünsche: gestrichelt, Unterbesetzung rot, Überbesetzung lila. */
.fc .fc-bg-event.avpa-wish {
  overflow: hidden;
  background: rgba(221, 188, 81, 0.25);
  border: 2px dashed var(--demand);
  opacity: 1;
}

.fc .fc-bg-event.avpa-wish-under {
  border-color: var(--warning);
}

.fc .fc-bg-event.avpa-wish-over {
  border-color: var(--unpaid);
}

/* In der Monatsansicht wäre das Feld so groß wie der ganze Tag, dort reicht die Marke. */
.fc-dayGridMonth-view .fc-bg-event.avpa-wish {
  display: none;
}

.fc .avpa-wish-chip {
  --fc-event-bg-color: rgba(221, 188, 81, 0.25);
  --fc-event-border-color: var(--demand);
  --fc-event-text-color: var(--text);
  border-style: dashed;
  border-width: 2px;
}

.fc .avpa-wish-chip.avpa-wish-under {
  --fc-event-border-color: var(--warning);
}

.fc .avpa-wish-chip.avpa-wish-over {
  --fc-event-border-color: var(--unpaid);
}

.fc-timegrid .avpa-wish-chip,
.fc-timegrid .avpa-wish-chip .fc-event-title {
  white-space: normal;
}

.fc .avpa-deactivated {
  border-style: dashed;
}

@media (max-width: 47.99rem) {
  .calendar-page .content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .calendar-frame {
    padding: 0.25rem;
  }

  .fc .fc-toolbar {
    justify-content: center;
  }

  .fc .fc-toolbar-chunk:nth-child(2) {
    flex: 1 1 100%;
    order: -1;
    text-align: center;
  }

  .fc .fc-toolbar-title {
    font-size: 1.125rem;
  }

  .fc .fc-button {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.calendar-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-own {
  background: var(--club-green);
}

.legend-foreign {
  background: var(--neutral);
}

.legend-wish {
  background: rgba(221, 188, 81, 0.25);
  border: 2px dashed var(--demand);
}

.legend-under {
  background: rgba(221, 188, 81, 0.25);
  border: 2px dashed var(--warning);
}

.legend-over {
  background: rgba(221, 188, 81, 0.25);
  border: 2px dashed var(--unpaid);
}

.legend-holiday {
  background: var(--holiday);
}

.legend-blocked {
  background: rgba(153, 153, 153, 0.4);
}

/* Fenster für das Schichtformular */
.shift-dialog {
  width: min(34rem, calc(100vw - 1rem));
  max-height: calc(100dvh - 1rem);
  padding: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.shift-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem;
  background: var(--surface);
}

.dialog-body {
  padding: 0 1rem 1rem;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Entwicklerseite Postausgang */
.outbox {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem;
}

.mail-body {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
