:root {
  --aha-field-bg: #eef4f3;
  --aha-field-border: #728681;
  --bs-body-bg: #d5dbe6;
  --bs-tertiary-bg: #f6f2cb;
  --bs-light-bg-subtle: #f6f2cb;
}

html {
  font-size: 14px;
}

.authenticator-qr {
  width: min(18rem, 100%);
  padding: 0.75rem;
  margin: 1rem 0;
  background: #fff;
  border: 1px solid #ced4da;
}

.authenticator-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin-bottom: 60px;
  background-color: #eef4f3;
  background-image: linear-gradient(180deg, #eaf2f3 0, #f4f7f6 22rem, #eef4f3 100%);
  background-attachment: fixed;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

body > header .navbar {
  background-color: var(--bs-body-bg) !important;
}

@media (min-width: 576px) {
  body > header .navbar > .container {
    align-items: flex-end;
  }
}

.brand-andreashaus {
  display: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-actions form {
  margin: 0;
}

.theme-toggle {
  border-color: var(--bs-primary);
  background: var(--bs-body-bg);
  color: var(--bs-primary);
  white-space: nowrap;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
}

.page-message-area {
  margin-bottom: 1rem;
}

.page-message-area:empty,
.page-message-area:not(:has(> :not([hidden]))) {
  display: none;
}

.page-message-area .alert:last-child {
  margin-bottom: 0;
}

.page-message-area .validation-summary-errors ul {
  margin-bottom: 0;
}

.form-control,
.form-select,
.form-check-input:not(:checked) {
  border-color: var(--aha-field-border);
  background-color: var(--aha-field-bg);
}

.form-control:disabled,
.form-select:disabled {
  background-color: var(--aha-field-bg);
  opacity: 0.7;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: var(--bs-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.management-card {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
  box-shadow: 0 0.25rem 1rem rgba(20, 32, 50, 0.05);
}

.room-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.room-note {
  grid-column: 1 / -1;
  margin: -0.25rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.series-summary-row {
  --bs-table-bg: color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg));
  font-weight: 600;
}

.series-detail-row {
  --bs-table-bg: var(--bs-tertiary-bg);
}

.series-detail-row > td:first-child {
  padding-left: 1.5rem;
}

.segmented-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.segmented-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-options label {
  padding: 0.55rem 1rem;
  border: 1px solid var(--aha-field-border);
  border-radius: 999px;
  background: var(--aha-field-bg);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.segmented-options input:checked + label {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
}

.segmented-options input:focus-visible + label {
  outline: 0.2rem solid rgba(13, 110, 253, 0.25);
  outline-offset: 0.1rem;
}

fieldset:disabled .segmented-options label {
  cursor: not-allowed;
  opacity: 0.55;
}

.room-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  padding: 0.75rem;
  border: 1px solid var(--aha-field-border);
  border-radius: 0.5rem;
  background: var(--aha-field-bg);
}

.conflict-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid color-mix(in srgb, var(--bs-warning-text-emphasis) 25%, transparent);
}

.series-calendar {
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: var(--bs-tertiary-bg);
}

.calendar-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-toolbar h3 {
  margin: 0;
  font-size: 1.15rem;
}

.calendar-month {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  text-transform: capitalize;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(2.5rem, 1fr));
  gap: 0.35rem;
}

.calendar-weekday {
  padding: 0.35rem;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.calendar-weekday.weekend {
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--bs-warning) 14%, transparent);
  color: var(--bs-body-color);
}

.calendar-day-cell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
}

.calendar-day-cell.weekend {
  border-color: color-mix(in srgb, var(--bs-warning) 45%, var(--bs-border-color));
  background: color-mix(in srgb, var(--bs-warning) 8%, var(--bs-body-bg));
}

.calendar-day {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bs-body-color);
  font-variant-numeric: tabular-nums;
}

.calendar-day:hover:not(:disabled) {
  box-shadow: inset 0 0 0 2px var(--bs-primary);
}

.calendar-day.outside-month {
  color: var(--bs-secondary-color);
  opacity: 0.65;
}

.calendar-day.past-date:not(.selected) {
  color: var(--bs-secondary-color);
  opacity: 0.55;
}

.calendar-day.selected {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
  font-weight: 700;
  opacity: 1;
}

.calendar-day.filtered {
  box-shadow: inset 0 0 0 3px var(--bs-warning);
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.calendar-entries {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.25rem 0.25rem;
}

.calendar-entry {
  padding: 0.2rem 0.3rem;
  border: 1px solid color-mix(in srgb, var(--bs-primary) 45%, transparent);
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg));
  color: var(--bs-body-color);
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}

.calendar-entry[data-status="Storniert"],
.calendar-entry[data-status="Erloschen"] {
  border-color: var(--bs-secondary-color);
  opacity: 0.55;
  text-decoration: line-through;
}

.selected-dates {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(9rem, 1fr));
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.week-day {
  min-height: 12rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
}

.week-day.weekend {
  border-color: color-mix(in srgb, var(--bs-warning) 45%, var(--bs-border-color));
  background: color-mix(in srgb, var(--bs-warning) 8%, var(--bs-body-bg));
}

.week-day.weekend > header {
  background: color-mix(in srgb, var(--bs-warning) 14%, transparent);
}

.week-day.today {
  border-color: var(--bs-primary);
  box-shadow: inset 0 0 0 1px var(--bs-primary);
}

.week-day > header {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  text-transform: capitalize;
}

.week-day > header span,
.week-day-empty {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}

.week-day-empty {
  padding: 0.75rem;
}

.week-day-reservations {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
}

.week-reservation {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem;
  border-left: 0.25rem solid var(--bs-primary);
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
}

.week-reservation small {
  color: var(--bs-secondary-color);
}

.web-calendar-section {
  padding-top: 0.25rem;
  border-top: 0.25rem solid #ff5328;
  color: #10181f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.web-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.web-calendar-toolbar h2 {
  margin: 0;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.web-calendar-toolbar .form-select {
  width: 13rem;
  border: 1px solid #666;
  border-radius: 3px;
  background-color: #f0f3f6;
  color: #10181f;
  font-family: inherit;
}

.web-calendar-scroll {
  overflow-x: auto;
}

.web-calendar-grid {
  width: 100%;
  min-width: 62rem;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: #10181f;
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1.5;
}

.web-calendar-grid th {
  padding: 0.35rem 0.5rem 0.15rem;
  background: #d9dcdf;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.web-calendar-grid td {
  height: 6.5rem;
  padding: 0;
  border: 1px solid #d9dcdf;
  background: #fff;
  vertical-align: top;
}

.web-calendar-grid td.off {
  background: #f0f3f6;
}

.web-calendar-grid td.today {
  box-shadow: inset 0 0 0 2px #ff5328;
}

.web-calendar-day {
  padding: 0.15rem 0.5rem;
  background: #f0f3f6;
  font-weight: 700;
  text-align: right;
}

.web-calendar-events {
  display: grid;
}

.web-calendar-event {
  display: grid;
  gap: 0.05rem;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #e7e9eb;
  overflow-wrap: anywhere;
}

.web-calendar-event:last-child {
  border-bottom: 0;
}

.web-calendar-event time {
  font-size: 0.65rem;
  font-weight: 400;
}

.web-calendar-event strong {
  font-size: 0.7rem;
  font-weight: 600;
}

.web-calendar-event small {
  color: #69727d;
  font-size: 0.62rem;
}

@media (max-width: 767.98px) {
  .page-heading,
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .room-row {
    grid-template-columns: 1fr auto;
  }

  .room-row > .btn {
    grid-column: 1 / -1;
  }

  .calendar-grid {
    gap: 0.2rem;
  }

  .room-checkboxes {
    grid-template-columns: 1fr;
  }

  .conflict-entry {
    grid-template-columns: 1fr;
  }

  .navbar-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .navbar-actions .theme-toggle {
    align-self: start;
  }

  .web-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .web-calendar-toolbar .form-select {
    width: 100%;
  }

  .calendar-day {
    min-height: 2.5rem;
  }
}

/*
 * Andreashaus-hell nach den prägenden Gestaltungsmerkmalen von
 * andreashaus.ch: viel Weissraum, Schwarz/Orange, klare Kanten sowie eine
 * serifenbetonte Leseschrift mit sachlichen Überschriften.
 */
html[data-theme="andreashaus"] {
  --aha-orange: #ff5328;
  --aha-ink: #000;
  --aha-copy: #333;
  --aha-muted: #69727d;
  --aha-field-bg: #fff;
  --aha-field-border: #69727d;
  --bs-body-bg: #fff;
  --bs-body-color: var(--aha-copy);
  --bs-body-color-rgb: 51, 51, 51;
  --bs-primary: var(--aha-orange);
  --bs-primary-rgb: 255, 83, 40;
  --bs-secondary-color: var(--aha-muted);
  --bs-border-color: #b8b8b8;
  --bs-tertiary-bg: #f7f7f7;
  --bs-light-bg-subtle: #f7f7f7;
  --bs-link-color: #082137;
  --bs-link-hover-color: var(--aha-orange);
  --bs-focus-ring-color: rgba(255, 83, 40, 0.3);
}

html[data-theme="andreashaus"] body {
  background: #fff;
  color: var(--aha-copy);
  font-family: Lora, Georgia, "Times New Roman", serif;
}

html[data-theme="andreashaus"] body > header .navbar {
  padding-block: 1.35rem;
  border-color: var(--aha-ink) !important;
  background: #fff !important;
  box-shadow: none;
}

html[data-theme="andreashaus"] .brand-standard {
  display: none;
}

html[data-theme="andreashaus"] .brand-andreashaus {
  display: block;
}

html[data-theme="andreashaus"] .brand-andreashaus img {
  display: block;
  width: 10rem;
  height: auto;
}

html[data-theme="andreashaus"] h1,
html[data-theme="andreashaus"] h2,
html[data-theme="andreashaus"] h3,
html[data-theme="andreashaus"] h4,
html[data-theme="andreashaus"] h5,
html[data-theme="andreashaus"] h6,
html[data-theme="andreashaus"] .eyebrow,
html[data-theme="andreashaus"] .navbar,
html[data-theme="andreashaus"] .btn,
html[data-theme="andreashaus"] .nav,
html[data-theme="andreashaus"] label,
html[data-theme="andreashaus"] input,
html[data-theme="andreashaus"] select,
html[data-theme="andreashaus"] textarea,
html[data-theme="andreashaus"] table {
  font-family: Montserrat, Arial, sans-serif;
}

html[data-theme="andreashaus"] h1 {
  color: #082137;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
}

html[data-theme="andreashaus"] h2 {
  color: var(--aha-ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

html[data-theme="andreashaus"] .navbar .nav-link {
  color: var(--aha-ink) !important;
  font-weight: 500;
}

html[data-theme="andreashaus"] .navbar .nav-link:hover,
html[data-theme="andreashaus"] .navbar .nav-link:focus-visible {
  color: var(--aha-orange) !important;
}

html[data-theme="andreashaus"] .management-card,
html[data-theme="andreashaus"] .series-calendar,
html[data-theme="andreashaus"] .calendar-day-cell,
html[data-theme="andreashaus"] .week-day,
html[data-theme="andreashaus"] .week-reservation,
html[data-theme="andreashaus"] .room-checkboxes,
html[data-theme="andreashaus"] .segmented-options label {
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="andreashaus"] .management-card {
  border-color: var(--aha-ink);
}

html[data-theme="andreashaus"] .form-control,
html[data-theme="andreashaus"] .form-select,
html[data-theme="andreashaus"] .form-check-input,
html[data-theme="andreashaus"] .input-group-text {
  border-radius: 0;
  background-color: #fff;
}

html[data-theme="andreashaus"] .form-control:focus,
html[data-theme="andreashaus"] .form-select:focus,
html[data-theme="andreashaus"] .form-check-input:focus,
html[data-theme="andreashaus"] .btn:focus-visible {
  border-color: var(--aha-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 83, 40, 0.25);
}

html[data-theme="andreashaus"] .form-check-input:checked,
html[data-theme="andreashaus"] .form-check-input:indeterminate {
  border-color: var(--aha-orange);
  background-color: var(--aha-orange);
}

html[data-theme="andreashaus"] .btn {
  border-radius: 0;
  font-weight: 600;
}

html[data-theme="andreashaus"] .btn-primary {
  --bs-btn-bg: var(--aha-orange);
  --bs-btn-border-color: var(--aha-orange);
  --bs-btn-hover-bg: #e7431c;
  --bs-btn-hover-border-color: #e7431c;
  --bs-btn-active-bg: #cc3815;
  --bs-btn-active-border-color: #cc3815;
  --bs-btn-disabled-bg: var(--aha-orange);
  --bs-btn-disabled-border-color: var(--aha-orange);
}

html[data-theme="andreashaus"] .btn-outline-primary {
  --bs-btn-color: var(--aha-orange);
  --bs-btn-border-color: var(--aha-orange);
  --bs-btn-hover-bg: var(--aha-orange);
  --bs-btn-hover-border-color: var(--aha-orange);
  --bs-btn-active-bg: #e7431c;
  --bs-btn-active-border-color: #e7431c;
}

html[data-theme="andreashaus"] .theme-toggle {
  border-color: var(--aha-ink);
  color: var(--aha-ink);
}

html[data-theme="andreashaus"] .theme-toggle:hover,
html[data-theme="andreashaus"] .theme-toggle:focus-visible {
  border-color: var(--aha-ink);
  background: var(--aha-ink);
  color: #fff;
}

html[data-theme="andreashaus"] .eyebrow {
  color: var(--aha-orange);
}

html[data-theme="andreashaus"] .nav-tabs {
  border-color: var(--aha-ink);
}

html[data-theme="andreashaus"] .nav-tabs .nav-link {
  border-radius: 0;
  color: var(--aha-ink);
}

html[data-theme="andreashaus"] .nav-tabs .nav-link.active {
  border-color: var(--aha-ink) var(--aha-ink) #fff;
  color: var(--aha-orange);
}

html[data-theme="andreashaus"] .nav-pills .nav-link {
  border-radius: 0;
  color: var(--aha-ink);
}

html[data-theme="andreashaus"] .nav-pills .nav-link.active,
html[data-theme="andreashaus"] .segmented-options input:checked + label,
html[data-theme="andreashaus"] .calendar-day.selected {
  background-color: var(--aha-orange);
  color: #fff;
}

html[data-theme="andreashaus"] .calendar-day:hover:not(:disabled),
html[data-theme="andreashaus"] .week-day.today {
  border-color: var(--aha-orange);
  box-shadow: inset 0 0 0 1px var(--aha-orange);
}

html[data-theme="andreashaus"] .calendar-entry,
html[data-theme="andreashaus"] .week-reservation {
  border-color: var(--aha-orange);
  background: #fff7f4;
}

html[data-theme="andreashaus"] .table {
  --bs-table-bg: #fff;
  --bs-table-striped-bg: #f7f7f7;
  --bs-table-hover-bg: #fff1ec;
}

html[data-theme="andreashaus"] footer {
  border-color: var(--aha-ink) !important;
  font-family: Lora, Georgia, serif;
}

/*
 * Andreashaus-dunkel übernimmt Typografie, Formen und Orange-Akzente des
 * hellen Andreashaus-Themes. Nur die Helligkeitswerte der Flächen, Linien und
 * Schriftfarben werden für eine ruhige dunkle Darstellung abgestimmt.
 */
html[data-theme="andreashaus-dunkel"] {
  color-scheme: dark;
  --aha-orange: #ff5328;
  --aha-ink: #f3f1ec;
  --aha-copy: #dedbd4;
  --aha-muted: #a9b0b5;
  --aha-surface: #191d20;
  --aha-surface-raised: #202529;
  --aha-field-bg: #202529;
  --aha-field-border: #747c81;
  --bs-body-bg: #111315;
  --bs-body-color: var(--aha-copy);
  --bs-body-color-rgb: 222, 219, 212;
  --bs-emphasis-color: #fff;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-primary: var(--aha-orange);
  --bs-primary-rgb: 255, 83, 40;
  --bs-secondary-color: var(--aha-muted);
  --bs-secondary-color-rgb: 169, 176, 181;
  --bs-secondary-bg: #252a2e;
  --bs-secondary-bg-rgb: 37, 42, 46;
  --bs-tertiary-bg: #202529;
  --bs-tertiary-bg-rgb: 32, 37, 41;
  --bs-light-bg-subtle: #202529;
  --bs-border-color: #596167;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.16);
  --bs-link-color: #a9cce4;
  --bs-link-hover-color: var(--aha-orange);
  --bs-focus-ring-color: rgba(255, 83, 40, 0.38);
}

html[data-theme="andreashaus-dunkel"] body {
  background: #111315;
  color: var(--aha-copy);
  font-family: Lora, Georgia, "Times New Roman", serif;
}

html[data-theme="andreashaus-dunkel"] body > header .navbar {
  padding-block: 1.35rem;
  border-color: var(--aha-ink) !important;
  background: #111315 !important;
  box-shadow: none;
}

html[data-theme="andreashaus-dunkel"] .brand-standard {
  display: none;
}

html[data-theme="andreashaus-dunkel"] .brand-andreashaus {
  display: block;
}

html[data-theme="andreashaus-dunkel"] .brand-andreashaus img {
  display: block;
  width: 10rem;
  height: auto;
  filter: invert(1) brightness(0.95);
}

html[data-theme="andreashaus-dunkel"] h1,
html[data-theme="andreashaus-dunkel"] h2,
html[data-theme="andreashaus-dunkel"] h3,
html[data-theme="andreashaus-dunkel"] h4,
html[data-theme="andreashaus-dunkel"] h5,
html[data-theme="andreashaus-dunkel"] h6,
html[data-theme="andreashaus-dunkel"] .eyebrow,
html[data-theme="andreashaus-dunkel"] .navbar,
html[data-theme="andreashaus-dunkel"] .btn,
html[data-theme="andreashaus-dunkel"] .nav,
html[data-theme="andreashaus-dunkel"] label,
html[data-theme="andreashaus-dunkel"] input,
html[data-theme="andreashaus-dunkel"] select,
html[data-theme="andreashaus-dunkel"] textarea,
html[data-theme="andreashaus-dunkel"] table {
  font-family: Montserrat, Arial, sans-serif;
}

html[data-theme="andreashaus-dunkel"] h1 {
  color: #dce9f3;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
}

html[data-theme="andreashaus-dunkel"] h2 {
  color: var(--aha-ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

html[data-theme="andreashaus-dunkel"] .navbar .nav-link {
  color: var(--aha-ink) !important;
  font-weight: 500;
}

html[data-theme="andreashaus-dunkel"] .navbar .nav-link:hover,
html[data-theme="andreashaus-dunkel"] .navbar .nav-link:focus-visible {
  color: var(--aha-orange) !important;
}

html[data-theme="andreashaus-dunkel"] .management-card,
html[data-theme="andreashaus-dunkel"] .series-calendar,
html[data-theme="andreashaus-dunkel"] .calendar-day-cell,
html[data-theme="andreashaus-dunkel"] .week-day,
html[data-theme="andreashaus-dunkel"] .week-reservation,
html[data-theme="andreashaus-dunkel"] .room-checkboxes,
html[data-theme="andreashaus-dunkel"] .segmented-options label {
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="andreashaus-dunkel"] .management-card {
  border-color: var(--aha-ink);
  background: var(--aha-surface);
}

html[data-theme="andreashaus-dunkel"] .form-control,
html[data-theme="andreashaus-dunkel"] .form-select,
html[data-theme="andreashaus-dunkel"] .form-check-input,
html[data-theme="andreashaus-dunkel"] .input-group-text {
  border-radius: 0;
  background-color: var(--aha-field-bg);
  color: var(--aha-copy);
}

html[data-theme="andreashaus-dunkel"] .form-control:disabled,
html[data-theme="andreashaus-dunkel"] .form-select:disabled {
  background-color: #292e32;
}

html[data-theme="andreashaus-dunkel"] .form-control:focus,
html[data-theme="andreashaus-dunkel"] .form-select:focus,
html[data-theme="andreashaus-dunkel"] .form-check-input:focus,
html[data-theme="andreashaus-dunkel"] .btn:focus-visible {
  border-color: var(--aha-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 83, 40, 0.3);
}

html[data-theme="andreashaus-dunkel"] .form-check-input:checked,
html[data-theme="andreashaus-dunkel"] .form-check-input:indeterminate {
  border-color: var(--aha-orange);
  background-color: var(--aha-orange);
}

html[data-theme="andreashaus-dunkel"] .btn {
  border-radius: 0;
  font-weight: 600;
}

html[data-theme="andreashaus-dunkel"] .btn-primary {
  --bs-btn-bg: var(--aha-orange);
  --bs-btn-border-color: var(--aha-orange);
  --bs-btn-hover-bg: #e7431c;
  --bs-btn-hover-border-color: #e7431c;
  --bs-btn-active-bg: #cc3815;
  --bs-btn-active-border-color: #cc3815;
  --bs-btn-disabled-bg: var(--aha-orange);
  --bs-btn-disabled-border-color: var(--aha-orange);
}

html[data-theme="andreashaus-dunkel"] .btn-outline-primary {
  --bs-btn-color: #ff7654;
  --bs-btn-border-color: var(--aha-orange);
  --bs-btn-hover-bg: var(--aha-orange);
  --bs-btn-hover-border-color: var(--aha-orange);
  --bs-btn-active-bg: #e7431c;
  --bs-btn-active-border-color: #e7431c;
}

html[data-theme="andreashaus-dunkel"] .theme-toggle {
  border-color: var(--aha-ink);
  background: #111315;
  color: var(--aha-ink);
}

html[data-theme="andreashaus-dunkel"] .theme-toggle:hover,
html[data-theme="andreashaus-dunkel"] .theme-toggle:focus-visible {
  border-color: var(--aha-ink);
  background: var(--aha-ink);
  color: #111315;
}

html[data-theme="andreashaus-dunkel"] .eyebrow {
  color: #ff7654;
}

html[data-theme="andreashaus-dunkel"] .nav-tabs {
  border-color: var(--aha-ink);
}

html[data-theme="andreashaus-dunkel"] .nav-tabs .nav-link {
  border-radius: 0;
  color: var(--aha-ink);
}

html[data-theme="andreashaus-dunkel"] .nav-tabs .nav-link.active {
  border-color: var(--aha-ink) var(--aha-ink) var(--aha-surface);
  background: var(--aha-surface);
  color: #ff7654;
}

html[data-theme="andreashaus-dunkel"] .nav-pills .nav-link {
  border-radius: 0;
  color: var(--aha-ink);
}

html[data-theme="andreashaus-dunkel"] .nav-pills .nav-link.active,
html[data-theme="andreashaus-dunkel"] .segmented-options input:checked + label,
html[data-theme="andreashaus-dunkel"] .calendar-day.selected {
  background-color: var(--aha-orange);
  color: #fff;
}

html[data-theme="andreashaus-dunkel"] .calendar-day:hover:not(:disabled),
html[data-theme="andreashaus-dunkel"] .week-day.today {
  border-color: var(--aha-orange);
  box-shadow: inset 0 0 0 1px var(--aha-orange);
}

html[data-theme="andreashaus-dunkel"] .series-calendar,
html[data-theme="andreashaus-dunkel"] .week-day > header {
  background: var(--aha-surface-raised);
}

html[data-theme="andreashaus-dunkel"] .calendar-day-cell,
html[data-theme="andreashaus-dunkel"] .week-day,
html[data-theme="andreashaus-dunkel"] .room-checkboxes,
html[data-theme="andreashaus-dunkel"] .segmented-options label {
  background: var(--aha-surface);
}

html[data-theme="andreashaus-dunkel"] .calendar-entry,
html[data-theme="andreashaus-dunkel"] .week-reservation {
  border-color: var(--aha-orange);
  background: #2c1c18;
}

html[data-theme="andreashaus-dunkel"] .table {
  --bs-table-bg: var(--aha-surface);
  --bs-table-color: var(--aha-copy);
  --bs-table-striped-bg: #202529;
  --bs-table-striped-color: var(--aha-copy);
  --bs-table-hover-bg: #34211c;
  --bs-table-hover-color: var(--aha-copy);
  --bs-table-border-color: var(--bs-border-color);
}

html[data-theme="andreashaus-dunkel"] .web-calendar-section,
html[data-theme="andreashaus-dunkel"] .web-calendar-grid {
  color: var(--aha-copy);
}

html[data-theme="andreashaus-dunkel"] .web-calendar-toolbar h2 {
  color: var(--aha-ink);
}

html[data-theme="andreashaus-dunkel"] .web-calendar-toolbar .form-select,
html[data-theme="andreashaus-dunkel"] .web-calendar-grid th,
html[data-theme="andreashaus-dunkel"] .web-calendar-day,
html[data-theme="andreashaus-dunkel"] .web-calendar-grid td.off {
  border-color: var(--bs-border-color);
  background: var(--aha-surface-raised);
  color: var(--aha-copy);
}

html[data-theme="andreashaus-dunkel"] .web-calendar-grid,
html[data-theme="andreashaus-dunkel"] .web-calendar-grid td {
  border-color: var(--bs-border-color);
  background: var(--aha-surface);
  color: var(--aha-copy);
}

html[data-theme="andreashaus-dunkel"] .web-calendar-event {
  border-color: var(--bs-border-color);
}

html[data-theme="andreashaus-dunkel"] .web-calendar-event small {
  color: var(--aha-muted);
}

html[data-theme="andreashaus-dunkel"] footer {
  border-color: var(--aha-ink) !important;
  font-family: Lora, Georgia, serif;
}