/*! Copyright (c) 2025-2026 Markus Schüssler. All rights reserved.
 * SPDX-License-Identifier: LicenseRef-Markus-Schuessler-Proprietary; see repository LICENSE.
 */
body.dark-mode .user-list-row.inactive {
  background: #3a2323 !important;
  color: #bbb !important;
}

.view-switch-toggle {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 36px;
}

.view-switch-toggle input {
  display: none;
}

.view-switch-slider {
  position: relative;
  display: flex;
  align-items: center;
  background: #e0e7ef;
  border-radius: 18px;
  height: 36px;
  cursor: pointer;
  transition: background 0.2s;
}

.view-switch-icon {
  z-index: 2;
  color: #1e293b;
  font-weight: 500;
  transition: color 0.2s;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 1.15em;
}

.view-switch-handle {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 42px;
  height: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: left 0.2s;
  z-index: 1;
}

.view-switch-toggle input:checked + .view-switch-slider .view-switch-handle {
  left: 46px;
}

.view-switch-toggle input:not(:checked) ~ .view-switch-slider #view-switch-table {
  color: #2563eb;
}

.view-switch-toggle input:checked ~ .view-switch-slider #view-switch-widget {
  color: #2563eb;
}

.view-switch-toggle .fa {
  font-size: 1.25em;
}

.view-switch-fa {
  font-size: 1.25em;
}

.view-switch-wrap {
  width: 100%;
  max-width: 1105px;
  display: flex;
  justify-content: flex-end;
  margin: 2.5em auto 1.5em auto;
}

.view-switch-icon--table,
.view-switch-icon--widget {
  padding: 0 10px;
  width: 40px;
}

body.dark-mode .view-switch-slider {
  background: #23272f;
}

body.dark-mode .view-switch-handle {
  background: #2d3440;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

body.dark-mode .view-switch-icon {
  color: #e0e7ef;
}

body.dark-mode .view-switch-toggle input:not(:checked) ~ .view-switch-slider #view-switch-table {
  color: #90b4fa;
}

body.dark-mode .view-switch-toggle input:checked ~ .view-switch-slider #view-switch-widget {
  color: #90b4fa;
}

.tra-eintrag {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-bottom: 1.2em;
  background: #f9f9f9;
  width: 100%;
  min-width: 0;
  max-width: 550px;
  box-sizing: border-box;
}

.tra-title {
  font-size: 1.15em;
  margin-bottom: 0.3em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.tra-title .tra-zeit {
  margin-left: 0.5em;
  white-space: nowrap;
}

.tra-zeit {
  color: #1d87f8;
  margin-left: 0.5em;
}

.tra-beschreibung {
  color: #555;
  font-size: 0.97em;
  margin-top: 0.2em;
}

body.dark-mode .tra-eintrag {
  background: #23272e;
  border-color: #444;
}

body.dark-mode .tra-beschreibung {
  color: #bbb;
}

body.dark-mode .tra-zeit {
  color: #4dabff;
}

.tra-liste {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0;
}

.tra-block {
  flex: 1 1;
  min-width: min(550px, 100%);
  max-width: 550px;
  box-sizing: border-box;
}

.tra-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e3e6ed;
  border-radius: 10px 10px 0 0;
  border: 1px solid #b6c6e0;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0.9em 0.9em 0.9em 0.9em;
  font-weight: 700;
  color: #1a4a7a;
  font-size: 1.3em;
  position: relative;
  z-index: 2;
}

.tra-overview-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto 15px auto;
}

.tra-overview-shell__inner {
  width: 100%;
  min-width: 0;
  max-width: 1100px;
  padding-top: 35px;
}

.tra-overview-eyebrow {
  font-size: 0.8em;
}

.tra-overview-eyebrow-date {
  display: inline-block;
}

.tra-info-hint {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2.2em 1.5em 0 0;
  z-index: 2;
  font-size: 0.98em;
  color: #e67e22;
  pointer-events: none;
}

.tra-info-hint[hidden] {
  display: none;
}

.tra-info-hint__text,
.tra-info-hint__arrow {
  vertical-align: middle;
}

.tra-info-hint__arrow {
  font-size: 0.9em;
}

.tra-info-toggle h1 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: inherit;
  flex: 1 1 auto;
}

.tra-info-toggle-btn {
  background: #1d87f8;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin-left: 18px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  color: #fff;
  font-size: 1.3em;
  flex-shrink: 0;
}

.tra-info-toggle-btn:hover, .tra-info-toggle-btn:focus {
  background: #0056b3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  outline: none;
}

.tra-info-content {
  border: 1px solid #b6c6e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #f8f9fa;
  padding: 18px 22px 10px 22px;
  line-height: 1.7;
  color: #222;
  margin-top: 0;
  font-size: 1.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: background 0.2s, color 0.2s;
}

.tra-info-content[hidden] {
  display: none;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.tra-info-content__intro {
  margin-bottom: 1.2em;
}

.tra-info-content__support-title {
  margin: 0 0 0.35em;
}

.tra-info-content__donation-form {
  text-align: center;
}

body.dark-mode .tra-info-toggle {
  background: #23272e;
  border-color: #333;
  color: #7fc1ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.dark-mode .tra-info-toggle-btn {
  background: #1976d2;
  color: #fff;
}

body.dark-mode .tra-info-toggle-btn:hover, body.dark-mode .tra-info-toggle-btn:focus {
  background: #0056b3;
}

body.dark-mode .tra-info-content {
  background: #23272e;
  color: #eee;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.tra-today-list,
.tra-inactive-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 30px auto;
  border-radius: 8px;
  overflow: hidden;
  font-size: 1em;
  background: var(--tra-today-bg, #f8fafc);
  color: var(--tra-today-fg, #1e293b);
}

.tra-today-header,
.tra-today-row,
.tra-inactive-header,
.tra-inactive-row,
.tra-inactive-row-detail {
  display: grid;
  grid-template-columns: 0.5fr 2.2fr 1.7fr 0.9fr 1fr 0.7fr;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e0e7ef;
}

.tra-today-header,
.tra-inactive-header {
  font-weight: bold;
  background: #e0e7ef;
  position: sticky;
  top: 0;
  z-index: 2;
}

.tra-today-header .sortable,
.tra-inactive-header .sortable {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 600;
  font-size: 1em;
}

.tra-today-header .sort-arrow,
.tra-inactive-header .sort-arrow {
  font-size: 0.95em;
  margin-left: 0.2em;
  color: #888;
  min-width: 14px;
  display: inline-block;
  vertical-align: middle;
}

.tra-today-row,
.tra-inactive-row {
  background: inherit;
  transition: background 0.15s;
}

.tra-today-row:hover,
.tra-inactive-row:hover {
  background: rgba(39, 94, 254, 0.07);
}

.tra-today-row--no-divider {
  border-bottom: none;
}

.tra-table-spacer {
  width: 28px;
}

.tra-title-main {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 10px;
}

.tra-title-name {
  font-size: 1.15em;
}

.tra-details {
  margin-left: 27px;
}

.tra-status-dot {
  margin-right: 6px !important;
  margin-left: 0 !important;
  vertical-align: middle;
  display: inline-block;
}

.tra-status-dot--card {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 12px;
}

.tra-status-dot--table {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.tra-today-row > div:first-child,
.tra-inactive-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tra-today-row > div:nth-child(2),
.tra-inactive-row > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 500;
}

.tra-today-header > div,
.tra-inactive-header > div,
.tra-today-row > div,
.tra-inactive-row > div,
.tra-inactive-row-detail > div {
  text-align: left !important;
  padding-left: 0.2em;
}

.tra-today-row-detail,
.tra-inactive-row-detail {
  background: #f4f7fa;
  font-style: italic;
  border-top: none;
}

.tra-today-row-detail {
  grid-template-columns: 1fr;
}

.tra-today-row-detail__content,
.tra-inactive-row-detail__content {
  grid-column: span 5;
  font-size: 0.8em;
  color: #666;
  padding-top: 0.2em;
  padding-bottom: 2em;
}

.tra-today-row-detail__inner,
.tra-inactive-row-detail__inner {
  margin-left: 27px;
}

.tra-inactive-row.inactive {
  color: #8a99b3;
  font-style: italic;
  opacity: 0.75;
}

.tra-inactive-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: #888;
}

.tra-time-cancelled {
  color: #c62828;
  text-decoration: line-through;
  margin: 0 0.3em;
  position: relative;
  cursor: help;
}

.tra-time-cancelled::after {
  content: "\f059";
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #c62828;
  margin-left: 4px;
  font-size: 0.9em;
}

.tra-time-cancelled::before {
  opacity: 0;
}

.tra-time-cancelled:hover::before {
  opacity: 1;
  transition: opacity 80ms ease-out;
}

.tra-time-hint {
  max-width: 1100px;
  margin: 3em auto 2em auto;
  padding: 16px 20px;
  background: #f8f9fa;
  border-left: 4px solid #c62828;
  border-radius: 6px;
  font-size: 0.9em;
  color: #495057;
}

.tra-time-hint h4 {
  margin: 0 0 8px 0;
  color: #c62828;
  font-size: 1em;
  font-weight: 600;
}

.tra-time-hint-example {
  font-family: monospace;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 8px 0;
  border: 1px solid #dee2e6;
}

.tra-view-empty {
  margin: 30px auto;
  max-width: 550px;
  text-align: center;
  padding: 24px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e0e7ef;
}

.tra-view-empty__title {
  font-size: 1.5em;
  font-weight: bold;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.tra-view-empty__icon {
  color: #2563eb;
}

.bxc-overview {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.bxc-overview__hero {
  background: linear-gradient(120deg, #0f172a, #1d3b63);
  color: #fff;
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
  margin-bottom: 1.5rem;
}

.bxc-overview__hero h2 {
  margin: 0 0 0.4rem 0;
  font-size: 1.9rem;
  color: #fff;
}

.bxc-overview__hero p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.65;
}

.bxc-news {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1.6rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.09);
}

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

.bxc-news__header h3 {
  margin: 0;
  color: #0f172a;
}

.bxc-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.bxc-news-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #f8fafc;
}

.bxc-news-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.bxc-news-card time {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.bxc-news-card p,
.bxc-news-card__content {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

body.dark-mode .bxc-overview__hero {
  box-shadow: 0 28px 55px rgba(2, 6, 23, 0.55);
}

body.dark-mode .bxc-news,
body.dark-mode .bxc-news-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

body.dark-mode .bxc-news__header h3,
body.dark-mode .bxc-news-card h4 {
  color: #f8fafc;
}

body.dark-mode .bxc-card__cta {
  color: #60a5fa;
}

body.dark-mode .bxc-news-card time {
  color: #94a3b8;
}

body.dark-mode .bxc-news-card p,
body.dark-mode .bxc-news-card__content {
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .bxc-overview__hero {
    padding: 1.5rem;
  }
}

body.dark-mode .tra-today-list, body.dark-mode .tra-inactive-list {
  --tra-today-bg: #23272f;
  --tra-today-fg: #e0e7ef;
}

body.dark-mode .tra-today-header, body.dark-mode .tra-inactive-header {
  background: #2d3440;
  color: #fff;
  border-bottom: 1px solid #333a47;
}

body.dark-mode .tra-today-row, body.dark-mode .tra-inactive-row {
  border-bottom: 1px solid #333a47;
}

body.dark-mode .tra-today-header .sort-arrow, body.dark-mode .tra-inactive-header .sort-arrow {
  color: #bbb;
}

body.dark-mode .tra-today-row:hover, body.dark-mode .tra-inactive-row:hover {
  background: #28304a;
}

body.dark-mode .tra-today-row-detail,
body.dark-mode .tra-inactive-row-detail {
  background: #23272f;
  color: #aaa;
}

body.dark-mode .tra-time-hint {
  background: #2d3748;
  color: #e2e8f0;
  border-left-color: #c62828;
}

body.dark-mode .tra-time-hint-example {
  background: #1a202c;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .tra-view-empty {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .tra-view-empty__title {
  color: #e2e8f0;
}

body.dark-mode .tra-time-cancelled:hover::before {
  background: #555;
}

@media (max-width: 550px) {
  .tra-title .tra-zeit {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 0.2em;
  }

}

@media (max-width: 900px) {
  .tra-liste {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .tra-block {
    max-width: 100%;
    min-width: 0;
  }

  .tra-today-header, .tra-today-row, .tra-inactive-header, .tra-inactive-row, .tra-inactive-row-detail {
    grid-template-columns: 0.5fr 2.5fr 1.3fr 0.8fr 0.9fr 0.6fr;
    font-size: 0.97em;
  }

}

@media (max-width: 600px) {
  .tra-overview-shell__inner {
    min-width: 100%;
  }

  .tra-today-header, .tra-today-row, .tra-inactive-header, .tra-inactive-row, .tra-inactive-row-detail {
    grid-template-columns: 0.5fr 2fr 1.1fr 0.7fr 0.8fr 0.5fr;
    font-size: 0.93em;
    padding: 6px 4px;
  }

  .tra-info-hint {
    padding-right: 0.9em;
  }

  .tra-time-hint {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* Compact public overview shells */
.bxc-overview {
  margin: 0 auto 1.75rem;
  padding: 0 0.85rem;
}

.bxc-overview__hero {
  border-radius: 12px;
  padding: 1.45rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  margin-bottom: 1rem;
}

.bxc-overview__hero h2 {
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.bxc-overview__hero p {
  line-height: 1.55;
}

.bxc-news {
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}

.bxc-news__grid {
  gap: 0.8rem;
}

.bxc-news-card {
  border-radius: 10px;
  padding: 0.85rem;
  gap: 0.45rem;
}

@media (max-width: 640px) {
  .bxc-overview {
    margin-bottom: 1.35rem;
    padding: 0 0.65rem;
  }

  .bxc-overview__hero {
    padding: 1.1rem;
  }

  .bxc-news {
    padding: 0.9rem;
  }
}
