:root {
  --clr-primary-200: #a8b1c2;
  --clr-primary-300: #7c8aa3;
  --clr-primary-400: #516285;
  --clr-primary-500: #263c67;
  --clr-primary-700: #1E3052;

  --clr-primary-500_rgb: 36, 60, 103;
  --clr-primary-700_rgb: 30, 48,  82;

  --clr-secondary-500: #a1c959;
  --clr-secondary-700: #80A047;

  --clr-secondary-500_rgb: 161,201,89;
  --clr-secondary-700_rgb: 128,160,71;

  --text-clr: #000;
  --bg-clr: #fff;
  --btn-clr: #fff;

  --clr-red: #df2145;
  --clr-red_rgb: 233, 33, 69;

  --bs-red: var(--clr-red);
  --bs-green: #a1c959;
  --bs-info: #cff4fc;

  --clr-accordion: rgba(var(--clr-primary-500_rgb), 1);
  --clr-accordion-bg: rgba(var(--clr-primary-500_rgb), 0.1);
  --clr-accordion-border: rgba(var(--clr-primary-700_rgb), 1);
  --clr-accordion-shadow: rgba(var(--clr-primary-500_rgb), 0.2);

  --rounded-none: 0px;
  --rounded-sm: 0.125rem;
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-2xl: 1rem;
  --rounded-3xl: 1.5rem;
  --rounded-full: 9999px;

  --button-border-radius: var(--rounded-lg);

  --select-hover-clr: rgba(255, 112, 0, 0.8);
}

::selection {
  background-color: var(--clr-primary-500); /* Highlight background color */
  color: #fff; /* Highlight text color */
}

html,
body {
  color: var(--text-clr);
  background-color: var(--bg-clr);
}

main {
  position: relative;
}


.form-select option,
.form-select optgroup {
  color: #212529;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.bold {
  font-weight: bold;
}

.pb-1 {
  padding-bottom: 1rem !important;
}
.pb-2 {
  padding-bottom: 2rem !important;
}
.pb-3 {
  padding-bottom: 3rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-05 {
  margin-bottom: 0.5rem !important;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.mt-10 {
  margin-top: 10rem;
}

.w-10 {
  width: 10rem;
}

.line {
  z-index: -1;
}
.alert {
  z-index: -1;
}

.zindex0 {
  z-index: 0 !important;
}

.requiredField {
  font-weight: bold;
}

.show-feedback {
  display: block !important;
}

.text-muted {
  color: gray !important;
  font-size: 0.8rem !important;
  font-weight: normal !important;
}

/* Überschreiben der 'columns'-class aus dem wysiwg-editor - ansonsten overflow rechts */
.columns,
.columns-3 {
  margin-right: 0 !important;
}

/* Buttons */

.btn-row {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.btn-check:focus + .btn,
.btn:focus,
.btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--clr-primary-500_rgb), 0.7);
}

.btn-success {
  color: #fff;
  background-color: var(--clr-secondary-500);
  border-color: var(--clr-secondary-500);
}

.btn-success:hover,
.btn-success:active {
  color: #fff;
  background-color: rgba(var(--clr-secondary-700_rgb), 1);
  border-color: var(--clr-secondary-500);
}


.btn-danger {
  color: #fff;
  background-color: var(--bs-red);
  border-color: var(--bs-red);
}

.btn-check:focus + .btn-danger,
.btn-danger:focus{
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--clr-red_rgb), 0.7);
}

.btn-check:focus + .btn-success,
.btn-success:focus{
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--clr-secondary-500_rgb), 0.7);
  background-color: rgba(var(--clr-secondary-700_rgb), 1);
  border-color: var(--clr-secondary-500);
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;

  border: unset;

  text-decoration: none;
  color: var(--btn-clr);
  background-color: var(--clr-primary-500);
  padding-left: 24px;
  padding-right: 24px;
  border-radius: var(--button-border-radius);
  height: 40px;
  white-space: nowrap;
  min-width: 89px;
}

.button-hide {
  display: none;
}

.button:not(.btn-disabled):hover {
  cursor: pointer;
  /* box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15), 0 5px 5px 0 rgba(0, 0, 0, 0.1); */
  color: var(--btn-clr);
  opacity: 0.9;
  transition: opacity 200ms ease-out;
}

.btn-disabled {
  color: currentColor !important;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
  user-select: none;
}

.button-w-icon {
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.btn-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.btn-group > *:not(:last-child) {
  border-right: 1px solid #000;
}

.btn-group .dropdown:not(:first-child, :last-child) .button {
  border-radius: 0 !important;
}

.btn-group .button:last-child {
  border-radius: 0 10px 10px 0 !important;
}

.btn-group .dropdown:first-child .button:first-child {
  border-radius: 10px 0 0 10px !important;
}

.btn-group .button:first-child {
  border-radius: 10px 0 0 10px !important;
  z-index: 1;
}

.btn-group .dropdown:first-child:nth-last-child(1) .button {
  border-radius: 10px 10px 10px 10px !important;
}

/* End Button */

.help-text {
  font-size: 0.875em;
  color: #6c757d !important;
}

/* switch */
.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
}

.form-check-input:checked {
  background-color: var(--clr-primary-500);
  border-color: var(--clr-primary-700);
}

.form-check-input:focus {
  border-color: var(--clr-primary-700);
  box-shadow: 0 0 0 0.25rem rgba(var(--clr-primary-500_rgb), 0.25);
}

.form-switch .form-check-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23263c67'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23263c67'/%3e%3c/svg%3e");
}

.form-check-input:checked:focus {
  background-color: var(--clr-primary-500);
  border-color: var(--clr-primary-700);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:hover {
  cursor: pointer;
}

/* end switch */

.main-layout {
  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  grid-template-rows: auto 1fr auto;
}

.title {
  margin-top: 1.5rem;
}

.pad {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pad2top {
  margin-top: 1rem;
}

.center {
  text-align: center;
}

.left {
  float: left !important;
  position: absolute;
  left: 0;
}

.invisible {
  display: none !important;
}

.line_br {
  position: fixed;
  bottom: 0;
  right: 0;
  height: 10px;
  width: 20px;
}

.no_break {
  white-space: nowrap;
}

.footer {
  padding-bottom: 3em;
  flex-direction: row-reverse;
}

.weekend {
  background: #f1f1f1;
}

.holiday {
  background: #e1e1e1;
}

a {
  text-decoration: none;
}

.show {
  width: 100%;
}

.right {
  float: right !important;
}

.keepButtonRight {
  float: right !important;
}

.invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.keep-together {
  white-space: nowrap;
}

.dropdown > .show {
  width: initial !important;
}

/* TEST_ENVIRONMENT */
.sprechzeit-error,
.test-info {
  display: flex;
  justify-content: center;
  text-align: center;
  background-color: var(--bs-info);
  padding: 1rem;
}

.sprechzeit-error {
  background-color: var(--bs-red);
  color: #f3f3f3;
}

.sprechzeit-error,
.test-info > p {
  margin: 0;
}

/* Navigation */

.modal-xl {
  max-width: 80%;
}

header {
  z-index: 10;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
}

.hamburger {
  display: none;
}

.checkbox {
  display: none;
}

.navigation {
  display: flex;
  background-color: var(--bg-clr);
  align-items: center;
  border-bottom: 1px solid #dedede;
  position: relative;
}

/* .nav-title {
  position: absolute;
  right: 50%;
  font-size: 18px;
  font-weight: bold;
  transform-origin: right;
  transform: scale(0, 1);
  transition: transform 200ms ease-in-out;
}

.navigation[data-isopen="true"] .nav-title {
  transform: none;
} */

.nav-shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu {
  display: inherit;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  margin-right: 5rem;
  margin-left: 5rem;
  padding: 0;
}

.menu li {
  list-style: none;
}

.navigation__item a {
  color: var(--text-color);
}

.logo {
  width: 80%;
  height: auto;
  padding: 0.5rem;
}

.navigation__item {
  position: relative;
  top: 5px;
  font-size: 18px;
  padding-top: 1rem;
}

/* Hover */
.navigation__item::after {
  display: inline-block;
  content: "";
  position: relative;
  bottom: 19px;
  width: 100%;
  height: 3px;
  background: var(--clr-primary-500);
  transition: transform 0.2s ease-in-out;
  transform: scaleX(0);
  transform-origin: right;
}

.navigation__item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* End Hover */

/* End Navigation */

.form-control-sm {
  border-radius: 0.25rem;
  font-size: 1rem;
  padding: 0.375rem 0.75rem;
}

.alarm-badge {
  font-size: 0.8rem;
  background-color: var(--bs-red);
  color: #fff;
  max-width: fit-content;
  border-radius: 50rem;
  padding-inline: 8px;
  padding-block: 1px;
  right: -23px;
  top: -16px;
}

.header-infos > *:nth-child(1n):not(:last-child) {
  border-bottom: 1px solid #f3f3f3;
}

.dummy-mzas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: 1rem;
  background-color: var(--bs-red);
  color: #f3f3f3;
}

.dummy-info {
  display: flex;
}

.dummies {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.dummies a {
  color: inherit;
}

.dummies a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .md-w-50 {
    width: 50%;
  }
}

@media (max-width: 1280px) {
  .zeiten {
    gap: 1.5rem !important;
  }
}

@media (max-width: 1024px) {
  .keepButtonRight {
    width: 100%;
    float: none;
  }

  /* Navigation Mobile */
  .logo {
    width: 65%;
  }

  .test-info > p {
    max-width: 80%;
  }

  /* Überschreiben, da eigentlich fest gesetzt und bei mobilen Geräten
   overflow-x entstent */
  .column {
    width: 100% !important;
  }
  .menu {
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    background: #f0f0f0;
    width: 75%;
    height: 100dvh;
    padding: 40px;
    padding-top: 70px;
    padding-bottom: 70px;
    margin-right: 0;
    align-items: unset;
    border-radius: 0.9rem 0 0 0.9rem;
    transform-origin: right;

    transform: scale(0, 1);
    transition: transform 200ms ease-in-out;

    display: block;
  }

  .menu li {
    padding: 0;
    padding-block: 0.5rem;
  }

  .hamburger-wrapper {
    height: 32px;
    width: 32px;
    padding-right: 1rem;
  }

  .checkbox {
    position: absolute;
    display: block;
    top: 3px;
    right: 0.8rem;
    height: 32px;
    width: 32px;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }

  .hamburger {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 3px;
    right: 0.8rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .hamburger .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
  }

  .hamburger .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.3s ease-in-out;
  }

  .hamburger .line2 {
    transition: transform 0.1s ease-in-out;
  }

  .hamburger .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.3s ease-in-out;
  }

  .navigation input[type="checkbox"]:checked ~ .hamburger .line1 {
    transform: rotate(45deg);
  }

  .navigation input[type="checkbox"]:checked ~ .hamburger .line2 {
    transform: scaleY(0);
  }

  .navigation input[type="checkbox"]:checked ~ .hamburger .line3 {
    transform: rotate(-45deg);
  }

  .show-menu {
    transform: none;
    box-shadow: -200px -2px 237px 200px rgba(0, 0, 0, 0.47);
    -webkit-box-shadow: -200px -2px 237px 200px rgba(0, 0, 0, 0.47);
    -moz-box-shadow: -200px -2px 237px 200px rgba(0, 0, 0, 0.47);
  }

  .navigation__item {
    border-bottom: 1px solid #d8d8d8;
  }
  .navigation__item::after {
    display: none;
  }

  .alarm-badge {
    right: -50px;
    top: 0px;
  }
}

@media (max-width: 495px) {
  .btn-group .button {
    width: fit-content;
  }

  .btn-group .button-w-icon {
    padding-left: 24px;
  }

  .btn-group .button:not(.button-w-icon-right) span:nth-child(n + 2) {
    display: none;
  }

  .btn-group .button-w-icon-right span:first-child {
    display: none;
  }

  .btn-group .button span:first-child {
    padding: 0;
  }
}
