:root {
  color-scheme: light;
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-2: #edf3f4;
  --surface-3: #e6eef0;
  --text: #14272e;
  --muted: #61747c;
  --border: #d5e0e3;
  --primary: #0d6570;
  --primary-dark: #0b5059;
  --accent: #bd8e48;
  --success: #2a7d59;
  --danger: #a84646;
  --shadow: 0 18px 55px rgba(21, 49, 58, 0.10);
  --radius: 22px;
  --sidebar: 252px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button, input, select { font: inherit; }

button { cursor: pointer; }

.hidden { display: none !important; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at top left, rgba(13, 101, 112, .12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(189, 142, 72, .10), transparent 34%),
    var(--bg);
}

.login-card {
  width: min(100%, 470px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.brand, .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), #12333e);
  color: white;
  font-weight: 900;
  letter-spacing: .3px;
  box-shadow: 0 8px 24px rgba(13, 101, 112, .22);
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 13px;
}

.brand-name {
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
}

.brand-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.login-copy {
  margin: 36px 0 24px;
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.07;
  letter-spacing: -.8px;
}

h2 {
  margin-bottom: 7px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

form { display: grid; gap: 15px; }

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  transition: border .15s ease, box-shadow .15s ease;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 101, 112, .10);
}

.button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 900;
}

.button.primary {
  background: var(--primary);
  color: white;
}

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

.button.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.button:disabled { opacity: .55; cursor: not-allowed; }

.login-notes {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.login-notes p {
  margin-bottom: 5px;
  font-size: 11px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}

.alert.error {
  color: #7f2f2f;
  background: #fae8e8;
  border: 1px solid #f1c9c9;
}

.alert.success {
  color: #236245;
  background: #e7f4ed;
  border: 1px solid #c6e5d4;
}

.portal {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 24px 17px;
  background: #102c36;
  color: white;
}

.sidebar .brand-sub { color: rgba(255,255,255,.60); }

.sidebar-brand { padding: 0 7px 23px; }

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.nav-item span:first-child {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.nav-item:hover { background: rgba(255,255,255,.06); }

.nav-item.active {
  color: white;
  background: rgba(255,255,255,.12);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.account-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  min-width: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: #55c389;
  box-shadow: 0 0 0 4px rgba(85,195,137,.12);
}

.account-mini-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.account-mini-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.account-mini-text span {
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
}

.sidebar .text-button { color: rgba(255,255,255,.75); }

.mobile-topbar { display: none; }

.workspace {
  margin-left: var(--sidebar);
  min-height: 100vh;
  padding: 34px clamp(20px, 4vw, 52px) 52px;
}

.content-section {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-heading p { margin-bottom: 0; }

.beta-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #d7e5e8;
  border-radius: 14px;
  background: #eaf4f5;
  color: #355963;
  font-size: 12px;
  line-height: 1.55;
}

.beta-note strong { white-space: nowrap; color: var(--primary); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(23, 55, 65, .05);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 31px;
  line-height: 1;
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.panel { padding: 18px; }

.panel.subtle { box-shadow: none; }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-heading h2 { margin: 3px 0 0; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input, .select-input {
  min-height: 44px;
  border-radius: 13px;
}

.case-list {
  display: grid;
  gap: 10px;
}

.case-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
  color: var(--text);
  transition: transform .12s ease, border .12s ease, box-shadow .12s ease;
}

.case-card:hover {
  transform: translateY(-1px);
  border-color: #b8cbd0;
  box-shadow: 0 8px 24px rgba(26, 57, 66, .07);
}

.case-card.tone-versicherung { background: #eef8f7; }
.case-card.tone-behoerde { background: #f1f5fa; }
.case-card.tone-krankenkasse { background: #eff8f4; }
.case-card.tone-wohnen { background: #fbf6ee; }
.case-card.tone-arbeit { background: #f3f4fa; }
.case-card.tone-reklamation { background: #fbf3f2; }
.case-card.tone-auto { background: #f3f6f8; }
.case-card.tone-reise { background: #eef7fa; }
.case-card.tone-handwerker { background: #faf5ed; }
.case-card.tone-gesundheit { background: #f0f8f3; }
.case-card.tone-vertrag { background: #f5f3f9; }
.case-card.tone-privat { background: #f8f3f6; }
.case-card.tone-sonstiges { background: #f4f6f7; }

.case-card-main { min-width: 0; }

.case-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.category-pill, .status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.category-pill {
  background: rgba(13,101,112,.09);
  color: var(--primary);
}

.status-pill {
  background: var(--surface-2);
  color: var(--muted);
}

.status-pill.active { color: var(--primary); background: #e3f1f2; }
.status-pill.closed { color: var(--success); background: #e4f2ea; }
.status-pill.waiting { color: #9a6d25; background: #f7eddc; }

.case-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.25;
}

.case-card p {
  margin: 0;
  font-size: 12px;
}

.case-date {
  min-width: 105px;
  text-align: right;
}

.case-date strong, .case-date span {
  display: block;
}

.case-date strong {
  color: var(--muted);
  font-size: 11px;
}

.case-date span {
  margin-top: 2px;
  color: #819198;
  font-size: 9px;
}

.case-list.compact .case-card { padding: 12px 13px; }

.deadline-list {
  display: grid;
  gap: 9px;
}

.deadline-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--surface-2);
}

.deadline-item.done { opacity: .58; }

.deadline-date {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.deadline-content strong {
  display: block;
  font-size: 13px;
}

.deadline-content span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.deadline-state {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.deadline-list.large .deadline-item {
  background: var(--surface);
  border: 1px solid var(--border);
}

.empty-inline, .empty-state {
  color: var(--muted);
  text-align: center;
}

.empty-inline {
  padding: 24px 10px;
  font-size: 12px;
}

.empty-state.large {
  max-width: 580px;
  margin: 12vh auto 0;
  padding: 40px 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
}

.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 25px;
  font-weight: 900;
}

.back-button {
  margin-bottom: 16px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-header h1 {
  margin-top: 8px;
  margin-bottom: 5px;
}

.detail-header p { margin-bottom: 0; }

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta-grid > div {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  word-break: break-word;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 12px;
}

.tab {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.timeline-list {
  display: grid;
  gap: 9px;
}

.timeline-item, .contact-item, .document-item {
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.timeline-item {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 14px;
}

.timeline-date {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.timeline-item strong, .contact-item strong, .document-item strong {
  display: block;
  font-size: 14px;
}

.timeline-item p, .contact-item p, .document-item p {
  margin: 4px 0 0;
  font-size: 12px;
}

.contact-list, .document-list {
  display: grid;
  gap: 9px;
}

.contact-meta, .document-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 10px;
}

.document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.document-main { min-width: 0; }

.small-button {
  min-height: 36px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 11px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid .panel p { margin-bottom: 0; }

.footer-legal {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.footer-legal a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer-legal span { margin: 0 6px; }
.footer-legal p { margin-top: 8px; font-size: 10px; }

.loading-bar {
  position: fixed;
  top: 0;
  left: var(--sidebar);
  right: 0;
  height: 3px;
  z-index: 50;
  overflow: hidden;
  background: rgba(13,101,112,.12);
}

.loading-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  background: var(--primary);
  animation: loading 1s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(380%); }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .18s ease;
    box-shadow: 16px 0 40px rgba(0,0,0,.18);
  }

  .portal.menu-open .sidebar { transform: translateX(0); }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(243,246,247,.94);
    backdrop-filter: blur(12px);
  }

  .icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 19px;
  }

  .workspace {
    margin-left: 0;
    padding: 24px 16px 40px;
  }

  .loading-bar { left: 0; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
  .detail-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .login-card { padding: 22px; border-radius: 23px; }

  .page-heading {
    display: grid;
  }

  .page-heading .button { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 26px; }

  .toolbar {
    grid-template-columns: 1fr 112px;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-date {
    text-align: left;
    min-width: 0;
  }

  .case-date strong, .case-date span {
    display: inline;
    margin-right: 8px;
  }

  .deadline-item {
    grid-template-columns: 60px 1fr;
  }

  .deadline-state {
    grid-column: 2;
  }

  .detail-header { display: grid; }
  .detail-meta-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 72px 1fr; }
  .settings-grid { grid-template-columns: 1fr; }

  .document-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .small-button { width: 100%; }

  .beta-note { display: grid; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111a1e;
    --surface: #19252a;
    --surface-2: #213138;
    --surface-3: #293b42;
    --text: #edf4f5;
    --muted: #9db0b7;
    --border: #31454d;
    --primary: #64b5bf;
    --primary-dark: #78c4cc;
    --accent: #d6aa65;
    --success: #71c49a;
    --danger: #e58c8c;
    --shadow: 0 20px 55px rgba(0, 0, 0, .25);
  }

  .login-card { background: rgba(25, 37, 42, .98); }
  .mobile-topbar { background: rgba(17,26,30,.94); }
  .beta-note { background: #1c343a; border-color: #2b4b52; color: #a8c8ce; }
  .alert.error { color: #f3b3b3; background: #3a2222; border-color: #593131; }
  .alert.success { color: #a5dfbf; background: #1f382c; border-color: #2f5742; }

  .case-card.tone-versicherung { background: #173039; }
  .case-card.tone-behoerde { background: #192937; }
  .case-card.tone-krankenkasse { background: #1a302a; }
  .case-card.tone-wohnen { background: #2c2821; }
  .case-card.tone-arbeit { background: #242735; }
  .case-card.tone-reklamation { background: #2d2425; }
  .case-card.tone-auto { background: #202b31; }
  .case-card.tone-reise { background: #182d37; }
  .case-card.tone-handwerker { background: #2d2820; }
  .case-card.tone-gesundheit { background: #1b3028; }
  .case-card.tone-vertrag { background: #292633; }
  .case-card.tone-privat { background: #2d252b; }
  .case-card.tone-sonstiges { background: #202b31; }
}


/* MeinFall Webportal V2 – Schreibfunktionen */
.detail-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.select-input.compact {
  width: auto;
  min-width: 118px;
  min-height: 40px;
  height: 40px;
}

.compact-button {
  min-height: 40px;
  height: 40px;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.action-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.action-button:hover {
  border-color: #abc2c8;
  background: var(--surface-2);
}

.action-button span {
  color: var(--primary);
  font-size: 15px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 23, .56);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(88vh, 850px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0,0,0,.24);
  padding: 22px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 4px 0 4px;
  font-size: 24px;
}

.modal-header p {
  margin: 0;
  font-size: 12px;
}

.modal-close {
  flex: none;
  font-size: 23px;
}

.editor-form,
.editor-fields {
  display: grid;
  gap: 14px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-field {
  display: grid;
  gap: 7px;
}

.editor-field.full {
  grid-column: 1 / -1;
}

.editor-field > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.editor-field textarea {
  width: 100%;
  min-height: 105px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.editor-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,101,112,.10);
}

.editor-hint {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.editor-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.editor-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}

.write-state {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 620px) {
  .detail-header-actions {
    justify-content: stretch;
  }

  .detail-header-actions .select-input,
  .detail-header-actions .button {
    width: 100%;
  }

  .case-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .action-button {
    justify-content: center;
  }

  .modal {
    padding: 10px;
    align-items: end;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 14px 14px;
    padding: 18px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-field.full {
    grid-column: auto;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* MeinFall Webportal V2.1 – CRUD */
.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-actions,
.document-actions,
.deadline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex: none;
}

.item-action {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
}

.item-action:hover { border-color: #abc2c8; }
.item-action.danger { color: var(--danger); background: transparent; }
.item-action.success { color: var(--success); }

.deadline-item.editable {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.deadline-content .deadline-note {
  margin-top: 4px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.contact-item .item-head,
.document-item .item-head {
  margin-bottom: 4px;
}

@media (max-width: 700px) {
  .item-head { display: grid; }

  .item-actions,
  .document-actions {
    justify-content: flex-start;
  }

  .deadline-item.editable {
    grid-template-columns: 60px 1fr;
  }

  .deadline-item.editable .deadline-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* MeinFall brand logo */
.brand-mark {
  overflow: hidden;
}

.brand-mark .brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}


/* MeinFall password reset */
.forgot-password-button {
  width: 100%;
  margin-top: 12px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #4f7d8c;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.forgot-password-button:hover {
  color: #0f2d38;
}

.forgot-password-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.password-reset-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 45, 56, 0.12);
}

.password-reset-panel.hidden {
  display: none !important;
}

.password-reset-panel form.hidden {
  display: none !important;
}

.reset-heading {
  margin-bottom: 22px;
}

.reset-heading h2 {
  margin: 7px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.reset-heading p {
  margin: 0;
  color: #60737a;
  font-size: 14px;
  line-height: 1.6;
}

.password-reset-panel form {
  display: grid;
  gap: 16px;
}

.password-reset-panel form + form {
  margin-top: 18px;
}

.password-reset-panel .alert {
  margin-top: 16px;
}

.password-reset-panel .alert.success {
  border-color: rgba(25, 135, 84, 0.28);
  background: rgba(25, 135, 84, 0.08);
  color: #176b45;
}

.reset-back-button {
  margin-top: 14px;
}

#password-reset-code {
  letter-spacing: 0.3em;
  font-weight: 700;
  text-align: center;
}
