/* ===== Participant child row ===== */
#participantsTable tbody tr.shown td { background-color: rgba(13,110,253,0.08); }
#participantsTable tr.child td { padding: 0 !important; }
.child-participant-row { background: #16162a; border-top: 1px solid #2e2e4e; }
html.light-mode .child-participant-row { background: #f0f0f8; border-top: 1px solid #dee2e6; }

/* ===== Base ===== */
body {
  background-color: #1a1a2e;
  color: #c8c8d0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #16162a;
  padding: 0.5rem 1rem;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar .nav-link {
  color: #c8c8d0;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.navbar .nav-link:hover {
  color: #ffffff;
}

/* ===== Gradient accent line ===== */
.gradient-line {
  height: 3px;
  background: linear-gradient(to right, #e44d90, #c13584, #833ab4, #5851db, #405de6, #2a7ae4);
}

/* ===== Forms ===== */
.form-label,
.form-check-label {
  color: #c8c8d0;
}

/* ===== Page heading ===== */
.page-heading {
  font-size: 2.8rem;
  font-weight: 700;
  color: #cccccc;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* ===== Centered card layout (login, register, approve, forgot password) ===== */
.centered-layout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered-card {
  width: 100%;
  max-width: 400px;
}

/* ===== Landing page ===== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
}

.hero h1 span {
  background: linear-gradient(to right, #e44d90, #405de6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: #9090a8;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.features-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.features-group-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5555a0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 820px;
}

.features-group-label::before,
.features-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2e2e4e;
}

.features-group-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-card {
  background-color: #16162a;
  border: 1px solid #2e2e4e;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 220px;
  text-align: center;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h6 {
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: #7070a0;
  margin: 0;
}

/* ===== Language submenu ===== */
.dropdown-menu .dropstart {
  position: relative;
}

.dropdown-menu .dropstart > .dropdown-menu {
  display: none;
  position: absolute;
  right: 100%;
  left: auto;
  top: 0;
  min-width: 120px;
}

.dropdown-menu .dropstart:hover > .dropdown-menu {
  display: block;
}

/* ===== SweetAlert2 ===== */
.swal2-popup {
  background-color: #22223a;
  color: #c8c8d0;
}

footer {
  background-color: #16162a;
  color: #5050a0;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

/* ===== App badge (participant / tag badges — replaces hardcoded inline styles) ===== */
.app-badge {
  background:   #2a2a4a;
  border:       1px solid #555;
  color:        #ddd;
  font-weight:  normal;
}

/* ===== Schedule grid ===== */
.schedule-grid {
  font-size: 0.85rem;
}
.schedule-grid th,
.schedule-grid td {
  text-align: center;
  vertical-align: middle;
  padding: 0.3rem 0.2rem;
  white-space: nowrap;
}
.schedule-name-col {
  text-align: left !important;
  position: sticky;
  left: 0;
  z-index: 1;
  background-color: #1a1a2e;
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schedule-cell {
  cursor: pointer;
  transition: background-color 0.1s;
}
.schedule-cell.on {
  background-color: #0d6efd !important;
}
.schedule-cell:hover:not(.on) {
  background-color: rgba(255,255,255,0.12) !important;
}
.schedule-wrapper {
}

html.light-mode .schedule-name-col          { background-color: #f0f2f5; }
html.light-mode .schedule-cell.on           { background-color: #0d6efd !important; color: #fff; }
html.light-mode .schedule-cell:hover:not(.on) { background-color: rgba(0,0,0,0.07) !important; }

.schedule-task-btn {
  font-size: 0.7rem;
  padding: 0 2px;
  line-height: 1.2;
  background: transparent;
  border: none;
  color: #fff;
  white-space: nowrap;
}
.schedule-task-btn:hover,
.schedule-task-btn:focus {
  background: rgba(255,255,255,0.2);
  color: #fff;
  box-shadow: none;
}

.task-slot-cell {
  cursor: pointer;
  transition: background-color 0.1s;
  white-space: nowrap;
}
.task-slot-cell:hover:not(.assigned) {
  background-color: rgba(255,255,255,0.06) !important;
}
.task-slot-cell.assigned {
  background-color: #198754 !important;
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
}
.task-slot-cell.assigned:hover { background-color: #157347 !important; }
.task-name-text { cursor: text; flex: 1; min-width: 280px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

html.light-mode .task-slot-cell.assigned  { background-color: #198754 !important; color: #fff !important; }

/* ===== Email recipient cards ===== */
.email-card {
  position: relative;
  background: #1e1e38;
  border: 1px solid #2e2e4e;
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  min-width: 140px;
  max-width: 220px;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
  user-select: none;
}
.email-card:hover { border-color: #555580; }
.email-card.unchecked { opacity: 0.4; }
.email-card input[type="checkbox"] {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
.email-card-name  { font-size: 0.88rem; color: #c8c8d0; font-weight: 500; margin-bottom: 0.1rem; }
.email-card-email { font-size: 0.75rem; color: #7070a0; }
.email-card-tags  { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }

html.light-mode .email-card               { background: #f8f9fa; border-color: #dee2e6; }
html.light-mode .email-card:hover         { border-color: #adb5bd; }
html.light-mode .email-card-name          { color: #212529; }
html.light-mode .email-card-email         { color: #6c757d; }

/* ===== Dark accordion ===== */
.accordion-dark .accordion-item {
  background-color: #16162a;
  border-color: #2e2e4e;
  color: #c8c8d0;
}
.accordion-dark .accordion-button {
  background-color: #1e1e38;
  color: #c8c8d0;
  box-shadow: none;
}
.accordion-dark .accordion-button:not(.collapsed) {
  background-color: #22223a;
  color: #ffffff;
  box-shadow: none;
}
.accordion-dark .accordion-button::after {
  filter: invert(0.8);
}
.accordion-dark .accordion-body {
  background-color: #16162a;
}

/* ===== LIGHT MODE ===== */

html.light-mode body {
  background-color: #f0f2f5;
  color: #212529;
}

/* Navbar */
html.light-mode .navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #dee2e6;
}
html.light-mode .navbar .nav-link          { color: #495057 !important; }
html.light-mode .navbar .nav-link:hover,
html.light-mode .navbar .nav-link.active   { color: #0d6efd !important; }
html.light-mode .navbar .navbar-toggler    { border-color: rgba(0,0,0,.15); }
html.light-mode .navbar .navbar-toggler-icon { filter: invert(1); }
html.light-mode #navEventname             { color: #6c757d !important; }

/* Page heading */
html.light-mode .page-heading { color: #212529; }

/* Bootstrap utility class overrides */
html.light-mode .bg-dark        { background-color: #ffffff !important; }
html.light-mode .text-white     { color: #212529 !important; }
html.light-mode .border-secondary { border-color: #dee2e6 !important; }
/* Badges normally have white text; once .bg-dark is flipped to white in
   light mode (above) the text becomes invisible. Force a dark colour
   and a slightly darker border so the badge is still readable. */
html.light-mode .badge.bg-dark  { color: #212529 !important; border-color: #adb5bd !important; }

/* Form labels */
html.light-mode .form-label,
html.light-mode .form-check-label { color: #212529; }

/* Form controls */
html.light-mode .form-control,
html.light-mode .form-select {
  background-color: #ffffff !important;
  color:            #212529 !important;
  border-color:     #ced4da !important;
}
html.light-mode .form-control::placeholder { color: #adb5bd !important; }
html.light-mode textarea.form-control {
  background-color: #ffffff !important;
  color:            #212529 !important;
}

/* Dropdowns */
html.light-mode .dropdown-menu-dark {
  --bs-dropdown-bg:                #cccccc;
  --bs-dropdown-color:             #212529;
  --bs-dropdown-link-color:        #212529;
  --bs-dropdown-link-hover-color:  #212529;
  --bs-dropdown-link-hover-bg:     #f8f9fa;
  --bs-dropdown-link-active-bg:    #e9ecef;
  --bs-dropdown-link-active-color: #212529;
  --bs-dropdown-divider-bg:        #dee2e6;
  --bs-dropdown-border-color:      #dee2e6;
}

/* Tables */
html.light-mode .table-dark {
  --bs-table-bg:             #ffffff;
  --bs-table-striped-bg:     #f8f9fa;
  --bs-table-color:          #212529;
  --bs-table-border-color:   #dee2e6;
  --bs-table-striped-color:  #212529;
  --bs-table-hover-bg:       rgba(0,0,0,0.06);
  --bs-table-hover-color:    #212529;
}
/* Override per-page dark hover rules (database.html, documents.html, merchandise.html) */
html .table-db    tbody tr:hover td,
html .doc-table   tbody tr:hover td,
html .merch-table tbody tr:hover td { background-color: rgba(255,255,255,0.07); }
html.light-mode .table-db    tbody tr:hover td,
html.light-mode .doc-table   tbody tr:hover td,
html.light-mode .merch-table tbody tr:hover td { background-color: rgba(0,0,0,0.06); }
html.light-mode .merch-table th { background-color: #f8f9fa !important; color: #6c757d; border-color: #dee2e6 !important; }
html.light-mode .merch-table td { background-color: #ffffff !important; color: #212529; border-color: #dee2e6 !important; }
html.light-mode .table-dark > :not(caption) > * > * {
  color:             #212529;
  border-bottom-color: #dee2e6;
}
html.light-mode .dataTables_wrapper { color: #212529; }
html.light-mode .dataTables_wrapper .dataTables_filter input,
html.light-mode .dataTables_wrapper .dataTables_length select {
  background-color: #ffffff;
  color:            #212529;
  border:           1px solid #ced4da;
  border-radius:    4px;
}
html.light-mode .page-link {
  background-color: #ffffff;
  border-color:     #dee2e6;
  color:            #0d6efd;
}
html.light-mode .page-item.disabled .page-link {
  background-color: #f8f9fa;
  color:            #6c757d;
}

/* Modals */
html.light-mode .modal-content.bg-dark     { background-color: #ffffff !important; }
html.light-mode .modal-header.border-secondary,
html.light-mode .modal-footer.border-secondary { border-color: #dee2e6 !important; }
html.light-mode .btn-close-white           { filter: invert(1) grayscale(100%) brightness(0.5); }

/* Landing page */
html.light-mode .hero h1  { color: #212529; }
html.light-mode .hero p   { color: #6c757d; }
html.light-mode .feature-card {
  background-color: #ffffff;
  border-color:     #dee2e6;
}
html.light-mode .feature-card h6 { color: #212529; }
html.light-mode .feature-card p  { color: #6c757d; }
html.light-mode .event-card      { background: #ffffff !important; border-color: #dee2e6 !important; }

/* ===== Event cards (landing page, logged-in view) ===== */
.event-card {
  background-color: #16162a;
  border: 1px solid #2e2e4e;
  border-radius: 12px;
  overflow: hidden;
  max-width: 440px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.event-card:hover {
  border-color: #5851db;
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.event-card-body {
  padding: 1rem 1.5rem 1.5rem;
}
.event-card-banner {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  display: block;
  background-color: #0e0e20;
  padding: 0.5rem;
  box-sizing: border-box;
}
.event-card-banner.hidden {
  display: none;
}
.event-card-banner-placeholder {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, #1e1e38, #0e0e20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #ccc;
  padding: 0 1.25rem;
  white-space: nowrap;
  overflow: hidden;
}
.event-card-banner-placeholder.hidden {
  display: none;
}
.event-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-card-date,
.event-card-location {
  font-size: 0.85rem;
  color: #7070a0;
  margin: 0;
}
.event-card-date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.light-mode .event-card-name                    { color: #212529; }
html.light-mode .event-card-date,
html.light-mode .event-card-location                { color: #6c757d; }

/* SweetAlert2 */
html.light-mode .swal2-popup         { background-color: #ffffff; color: #212529; }
html.light-mode .swal2-title         { color: #212529; }
html.light-mode .swal2-html-container { color: #212529; }

/* Footer */
html.light-mode footer { background-color: #f8f9fa; color: #6c757d; }

/* Kanban */
html.light-mode .kanban-col        { background: #ffffff !important; border-color: #dee2e6 !important; }
html.light-mode .kanban-col-header { color: #212529 !important; border-bottom-color: #dee2e6 !important; }
html.light-mode .kanban-card   { background: #f8f9fa !important; border-color: #dee2e6 !important; color: #212529 !important; }
html.light-mode .kanban-card:hover { background: #e9ecef !important; border-color: #adb5bd !important; }
html.light-mode .kanban-card-ticket { color: #212529 !important; }
html.light-mode .kanban-card-id     { color: #adb5bd !important; }
html.light-mode .kanban-card-footer { color: #6c757d !important; }

/* Todo child-row edit area */
html.light-mode #todosTable tr.dt-hasChild + tr > td { background: #f8f9fa !important; }

/* Budget page */
html.light-mode .budget-section-header {
  background-color: #cccccc;
  border-color: #dee2e6;
}
.budget-section-header h4                    { color: #cccccc; }
html.light-mode .budget-section-header h4    { color: #212529; }
html.light-mode .budget-section-total        { color: #495057; }

html.light-mode .budget-post                 { background-color: #ffffff; border-color: #dee2e6; }
html.light-mode .drag-handle                 { color: #adb5bd; }
html.light-mode .budget-post-header          { background-color: #dddddd; }
html.light-mode .budget-post-header:hover    { background-color: #f8f9fa; }
html.light-mode .budget-post-title           { color: #212529; }
html.light-mode .budget-post-title .chevron  { color: #adb5bd; }
html.light-mode .budget-post-summary         { color: #6c757d; }
html.light-mode .budget-post-summary .post-total { color: #212529; }
html.light-mode .budget-post-body            { border-top-color: #dee2e6; }

html.light-mode .budget-items-table th {
  color: #6c757d;
  border-bottom-color: #dee2e6;
}
html.light-mode .budget-items-table td       { color: #212529; }
html.light-mode .budget-items-table td.col-total { color: #212529; }
html.light-mode .budget-items-table tr:not(.add-row):hover td { background-color: #f0f2f5; }

html.light-mode .budget-item-input {
  background-color: #ffffff;
  border-color: #ced4da;
  color: #212529;
}
html.light-mode .budget-item-input:focus     { border-color: #86b7fe; background-color: #ffffff; color: #212529; }

html.light-mode .btn-add-item                { background: #e9ecef; border-color: #ced4da; color: #212529; }
html.light-mode .btn-add-item:hover          { background: #dee2e6; color: #212529; }
html.light-mode .btn-delete-item             { color: #adb5bd; }

html.light-mode .add-post-row input {
  background-color: #ffffff;
  border-color: #ced4da;
  color: #212529;
}
html.light-mode .add-post-row input:focus    { border-color: #86b7fe; background-color: #ffffff; color: #212529; }

html.light-mode .grand-total-bar             { background-color: #ffffff; border-color: #dee2e6; }
html.light-mode .grand-total-item .label     { color: #6c757d; }
html.light-mode .grand-total-item .amount    { color: #212529; }

html.light-mode #budgetSelect {
  background-color: #ffffff;
  border-color: #ced4da;
  color: #212529;
}

/* Dark accordion in light mode */
html.light-mode .accordion-dark .accordion-item        { background-color: #ffffff; border-color: #dee2e6; color: #212529; }
html.light-mode .accordion-dark .accordion-button      { background-color: #f8f9fa; color: #212529; box-shadow: none; }
html.light-mode .accordion-dark .accordion-button:not(.collapsed) { background-color: #e9ecef; color: #212529; box-shadow: none; }
html.light-mode .accordion-dark .accordion-button::after { filter: none; }
html.light-mode .accordion-dark .accordion-body        { background-color: #ffffff; }

/* App badge in light mode */
html.light-mode .app-badge {
  background:  #e9ecef !important;
  border:      1px solid #ced4da !important;
  color:       #212529 !important;
}


/* ===== Participant bulk-action submenu ===== */
.participant-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}
.participant-submenu-parent:hover > .participant-submenu {
  display: block;
}


.admin-only { display: none; }
.auth-only  { display: none; }
.event-only { display: none; }

.nav-divider {
  color: #2e2e4e;
  user-select: none;
  cursor: default;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Event zone — accent color when an event is selected (Option 3) */
.event-zone-active .event-only .nav-link,
.event-zone-active .event-only .dropdown-toggle {
  color: #a78bfa;
}
.event-zone-active .event-only .nav-link:hover,
.event-zone-active .event-only .dropdown-toggle:hover,
.event-zone-active .event-only .nav-link.show,
.event-zone-active .event-only .dropdown-toggle.show {
  color: #c4b5fd;
}
.event-zone-active .event-only .nav-link.active {
  color: #ffffff;
}
.event-zone-active .nav-divider {
  color: #6b46c1;
}

/* Event zone — dimmed/hint state when logged in but no event selected (Option 4) */
.event-zone-inactive .event-only .nav-link,
.event-zone-inactive .event-only .dropdown-toggle {
  opacity: 0.35;
  pointer-events: none;
}
.event-zone-inactive .nav-divider {
  opacity: 0.35;
}

/* ===== Pricing (index.html) ===== */
.pricing-section {
  background: #1a1a2e;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid #2e2e4e;
}
.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-heading {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
}
.pricing-subheading {
  color: #7070a0;
  text-align: center;
  margin-bottom: 2.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
.pricing-card {
  position: relative;
  background-color: #16162a;
  border: 1px solid #2e2e4e;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: #5851db;
}
.pricing-card-featured {
  border-color: #5851db;
  box-shadow: 0 8px 28px rgba(88, 81, 219, 0.25);
}
.pricing-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #e44d90, #5851db);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-tier {
  color: #e0e0f0;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.pricing-price {
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.pricing-price span {
  color: #7070a0;
  font-size: 0.85rem;
  font-weight: 400;
  margin-left: 0.25rem;
}
.pricing-blurb {
  color: #8a8ab0;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  min-height: 2.6em;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}
.pricing-features li {
  color: #b0b0d0;
  font-size: 0.9rem;
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  border-bottom: 1px solid rgba(46, 46, 78, 0.6);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: "✓";
  color: #5851db;
  position: absolute;
  left: 0;
  font-weight: 700;
}
.pricing-cta {
  width: 100%;
}

html.light-mode .pricing-section {
  background: #f8f9fc;
  border-top-color: #dee2e6;
}
html.light-mode .pricing-heading { color: #212529; }
html.light-mode .pricing-subheading { color: #6c757d; }
html.light-mode .pricing-card {
  background: #ffffff;
  border-color: #dee2e6;
}
html.light-mode .pricing-tier { color: #212529; }
html.light-mode .pricing-price { color: #212529; }
html.light-mode .pricing-price span { color: #6c757d; }
html.light-mode .pricing-blurb,
html.light-mode .pricing-features li { color: #495057; }
html.light-mode .pricing-features li { border-bottom-color: #e9ecef; }

/* ===== Impressum (legal notice at the bottom of index.html) ===== */
.impressum {
  background: #16162a;
  border-top: 1px solid #2e2e4e;
  padding: 2.5rem 1.5rem 0;
}
.impressum-inner {
  max-width: 720px;
  margin: 0 auto;
  color: #8a8ab0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.impressum-heading {
  color: #e0e0f0;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.impressum p {
  margin-bottom: 0.9rem;
}
.impressum strong {
  color: #e0e0f0;
  display: block;
  margin-bottom: 0.15rem;
}
.impressum a {
  color: #8888c8;
  text-decoration: none;
}
.impressum a:hover {
  color: #b0b0e0;
  text-decoration: underline;
}

html.light-mode .impressum {
  background: #f5f5f8;
  border-top-color: #dee2e6;
}
html.light-mode .impressum-inner { color: #6c757d; }
html.light-mode .impressum-heading,
html.light-mode .impressum strong { color: #212529; }
html.light-mode .impressum a { color: #5851db; }

/* ===== Language switcher (landing page) ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0.6rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 5px;
  overflow: hidden;
}
.lang-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 0.22rem 0.55rem;
  transition: color 0.15s, background 0.15s;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.lang-link:last-child { border-right: none; }
.lang-link:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.07); }
.lang-link.lang-active { color: #fff; background: rgba(255,255,255,0.13); }
html.light-mode .lang-switcher { border-color: rgba(0,0,0,0.18); }
html.light-mode .lang-link { color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.18); }
html.light-mode .lang-link:hover { color: rgba(0,0,0,0.75); background: rgba(0,0,0,0.05); }
html.light-mode .lang-link.lang-active { color: #212529; background: rgba(0,0,0,0.1); }

/* ===== Shared timeline / phase rendering (timeline.html + event-public.html) ===== */

/* ── Gantt chart ─────────────────────────────────────────────────────────── */
.tl-row    { display: flex; align-items: center; margin-bottom: 7px; }
.tl-label  {
  width: 150px; flex-shrink: 0; padding-right: 10px; text-align: right;
  font-size: .8rem; color: #c8c8d0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.light-mode .tl-label { color: #495057; }
[data-theme="light"]  .tl-label { color: #495057; }
[data-theme="forest"] .tl-label { color: #c0d8b8; }
.tl-clickable { cursor: pointer; }
.tl-clickable:hover { text-decoration: underline; color: #ffffff; }
html.light-mode .tl-clickable:hover { color: #000000; }
[data-theme="light"]  .tl-clickable:hover { color: #000000; }
[data-theme="forest"] .tl-clickable:hover { color: #d8f0cc; }
.tl-track  {
  position: relative; flex-grow: 1; height: 30px;
  background: #1a1a2e; border-radius: 4px; overflow: visible;
}
html.light-mode .tl-track { background: #e9ecef; }
[data-theme="light"]  .tl-track { background: #e9ecef; }
[data-theme="forest"] .tl-track { background: #0f1a12; }
.tl-bar    {
  position: absolute; top: 3px; height: 24px; border-radius: 4px;
  box-sizing: border-box; min-width: 10px;
  cursor: pointer; display: flex; align-items: center; padding: 0 8px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: filter .12s;
}
.tl-bar:hover { filter: brightness(1.08); }
.tl-bar-text { color: #1a1a2e; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.tl-bar-label {
  position: absolute; top: 6px; font-size: .72rem; color: #c8c8d0;
  white-space: nowrap; pointer-events: none;
}
html.light-mode .tl-bar-label { color: #495057; }
[data-theme="light"]  .tl-bar-label { color: #495057; }
[data-theme="forest"] .tl-bar-label { color: #c0d8b8; }
.tl-today  { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #ff5c8a; pointer-events: none; z-index: 2; }
.tl-grid   { position: absolute; top: 0; bottom: 0; width: 1px; background: #26263e; pointer-events: none; }
html.light-mode .tl-grid { background: #edeef3; }
[data-theme="light"]  .tl-grid { background: #edeef3; }
[data-theme="forest"] .tl-grid { background: #1e3224; }
.tl-axis-months { display: flex; align-items: flex-end; }
.tl-axis-months.top    { margin-bottom: 5px; }
.tl-axis-months.bottom { margin-top: 5px; }
.tl-axis-area  { position: relative; flex-grow: 1; height: 15px; }
.tl-month-tick {
  position: absolute; bottom: 0; height: 13px; line-height: 13px;
  font-size: .66rem; color: #8a8aa8; white-space: nowrap;
  padding-left: 3px; border-left: 1px solid #3a3a5a;
}
html.light-mode .tl-month-tick { color: #868e96; border-left-color: #ced4da; }
[data-theme="light"]  .tl-month-tick { color: #868e96; border-left-color: #ced4da; }
[data-theme="forest"] .tl-month-tick { color: #6a8a68; border-left-color: #1e3224; }

/* ── Agenda / vertical list view ─────────────────────────────────────────── */
.sched-item { display: grid; grid-template-columns: 120px 30px 1fr; align-items: start; }
.sched-item.tl-clickable { cursor: pointer; }
.sched-date { text-align: right; padding-right: 12px; padding-top: 1px; font-size: .85rem; color: #9090a8; white-space: nowrap; }
.sched-marker { position: relative; display: flex; justify-content: center; align-self: stretch; }
.sched-marker::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #2e2e4e; transform: translateX(-50%); }
html.light-mode .sched-marker::before { background: #dee2e6; }
[data-theme="light"]  .sched-marker::before { background: #dee2e6; }
[data-theme="forest"] .sched-marker::before { background: #1e3224; }
[data-theme="forest"] .sched-date           { color: #6a8a68; }
.sched-item.first .sched-marker::before { top: 11px; }
.sched-item.last  .sched-marker::before { bottom: auto; height: 11px; }
.sched-dot { width: 15px; height: 15px; border-radius: 50%; margin-top: 4px; z-index: 1; box-shadow: 0 0 0 4px #16162a; }
html.light-mode .sched-dot { box-shadow: 0 0 0 4px #f8f9fa; }
[data-theme="light"]  .sched-dot { box-shadow: 0 0 0 4px #ffffff; }
[data-theme="forest"] .sched-dot { box-shadow: 0 0 0 4px #141f17; }
.sched-name { padding-left: 12px; padding-bottom: 1.4rem; color: #d0d0e8; line-height: 1.3; }
html.light-mode .sched-name { color: #212529; }
[data-theme="light"]  .sched-name { color: #212529; }
[data-theme="forest"] .sched-name { color: #c0d8b8; }
.sched-item.tl-clickable:hover .sched-name { text-decoration: underline; }
.sched-desc { color: #9090a8; font-size: .82rem; margin-top: .2rem; }
html.light-mode .sched-desc { color: #6c757d; }
[data-theme="light"]  .sched-desc { color: #6c757d; }
[data-theme="forest"] .sched-desc { color: #6a8a68; }

.sched-item--has-photo { grid-template-columns: 120px 30px 64px 1fr; }
.sched-photo-col { padding-top: 2px; padding-right: 8px; }
.sched-contact-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.sched-presenter { color: #9090a8; font-size: .8rem; font-style: italic; font-weight: 600; margin-top: .2rem; }
html.light-mode .sched-presenter { color: #6c757d; }
[data-theme="light"]  .sched-presenter { color: #6c757d; }
[data-theme="forest"] .sched-presenter { color: #6a8a68; }
.contact-thumb { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }

.sched-day-header {
  grid-column: 1 / -1; padding: .6rem 0 .3rem;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: #7070a0; border-top: 1px solid #2e2e4e;
  margin-top: .4rem;
}
html.light-mode .sched-day-header { color: #6c757d; border-top-color: #dee2e6; }
[data-theme="light"]  .sched-day-header { color: #6c757d; border-top-color: #dee2e6; }
[data-theme="forest"] .sched-day-header { color: #4a7450; border-top-color: #1e3224; }

/* ===== Preparation megamenu ===== */
.prep-mega-menu {
  min-width: 680px;
  padding: 0;
  background: #16162a;
  border: 1px solid rgba(255,255,255,0.25);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.prep-mega-menu .d-flex { flex-wrap: wrap; }
.prep-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #d0d0e8;
  border-radius: 6px;
  flex: 1 1 40%;
  transition: background 0.15s;
}
@media (max-width: 576px) {
  .prep-mega-menu { min-width: 0; width: 100%; }
  .prep-mega-item { flex: 1 1 100%; }
}
.prep-mega-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.prep-mega-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
  opacity: 0.75;
  flex-shrink: 0;
}
.prep-mega-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: #e8e8f8;
}
.prep-mega-arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  vertical-align: middle;
}
.prep-mega-desc {
  font-size: 0.78rem;
  color: #8080a8;
  line-height: 1.4;
}
html.light-mode .prep-mega-menu {
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
html.light-mode .prep-mega-item { color: #333; }
html.light-mode .prep-mega-item:hover { background: rgba(0,0,0,0.05); color: #000; }
html.light-mode .prep-mega-title { color: #111; }
html.light-mode .prep-mega-desc  { color: #666; }

/* Dashboard — "needs attention" accent colour (used on event.html and org.html) */
.dash-attn { color: #d63384 !important; }

/* ===== Cog button & panel (language + theme) ===== */
.nav-cog-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #c8c8d0;
  padding: .4rem .5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  transition: color .15s, background .15s;
}
.nav-cog-btn:hover,
.nav-cog-btn.active { color: #fff; background: rgba(255,255,255,.08); }

.nav-cog-panel {
  position: fixed;
  z-index: 1050;
  background: #16162a;
  border: 1px solid #2e2e4e;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  min-width: 200px;
  overflow: hidden;
}

.nav-cog-section-title {
  padding: .5rem 1rem .25rem;
  font-size: .72rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  padding: .45rem 1rem .45rem 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .875rem;
  color: #c8c8d0;
  text-align: left;
  transition: background .1s;
  position: relative;
}
.lang-option:hover { background: rgba(255,255,255,.06); color: #fff; }
.lang-option.active { font-weight: 600; color: #fff; }
.lang-option.active::before {
  content: '✓';
  position: absolute;
  left: .875rem;
  font-size: .75rem;
  color: #0d6efd;
}

.nav-cog-divider {
  border: none;
  border-top: 1px solid #2e2e4e;
  margin: .25rem 0;
}

.nav-cog-theme { padding: .5rem 1rem .75rem; }

html.light-mode .nav-cog-btn { color: #495057; }
html.light-mode .nav-cog-btn:hover,
html.light-mode .nav-cog-btn.active { color: #212529; background: rgba(0,0,0,.06); }
html.light-mode .nav-cog-panel {
  background: #fff;
  border-color: #dee2e6;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
html.light-mode .nav-cog-section-title { color: #868e96; }
html.light-mode .lang-option { color: #495057; }
html.light-mode .lang-option:hover { background: rgba(0,0,0,.04); color: #212529; }
html.light-mode .lang-option.active { color: #212529; }
html.light-mode .nav-cog-divider { border-color: #dee2e6; }
