@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;400&display=swap");

:root {
  --hsl-1: 220; /* 220 */
  --hsl-2: 30%; /* 30% */
  --hsl-3: 20; /* 20 */
  --hsl-3-diff: calc((100 - var(--hsl-3)) / 100);

  /* header */
  --clrHeader: hsl(var(--hsl-1), var(--hsl-2), calc(var(--hsl-3) * 1%));
  --fcHeader: white;
  /* --HeaderInitialPicInvert: 1; */

  /* OJTI, buttons */
  --clrButton: hsl(
    var(--hsl-1),
    var(--hsl-2),
    calc((var(--hsl-3-diff) * 6 + var(--hsl-3)) * 1%)
  );
  --fcButton: white;

  /* shifts */
  --clrShifts: hsl(
    var(--hsl-1),
    var(--hsl-2),
    calc((var(--hsl-3-diff) * 67 + var(--hsl-3)) * 1%)
  );
  --fcShifts: black;

  /* targets */
  --clrTargets: hsl(
    var(--hsl-1),
    var(--hsl-2),
    calc((var(--hsl-3-diff) * 80 + var(--hsl-3)) * 1%)
  );

  /* columns in table(OJTI,weekend), hour overview, cards,*/
  --clrCard: hsl(
    var(--hsl-1),
    var(--hsl-2),
    calc((var(--hsl-3-diff) * 88 + var(--hsl-3)) * 1%)
  );
  --fcCard: black;
  /* --fcCard: blue; */

  /* bg color for icons in card*/
  --clrIcon: hsl(
    var(--hsl-1),
    var(--hsl-2),
    calc((var(--hsl-3-diff) * 93 + var(--hsl-3)) * 1%)
  );
  --cardIconInvert: 0;
  --fcIcon: black;

  /* background */
  --clrBodyBg: hsl(
    var(--hsl-1),
    var(--hsl-2),
    calc((var(--hsl-3-diff) * 94 + var(--hsl-3)) * 1%)
  );
  /* --clrBodyBg: black; */
  --fcBg: black;
  --iconOnBgInvert: 0;

  /* background table */
  --clrBgTable: hsl(
    var(--hsl-1),
    var(--hsl-2),
    calc((var(--hsl-3-diff) * 98 + var(--hsl-3)) * 1%)
  );
  --fcTable: black;

  /* not in use?! */
  --clr-neutral: yellow;

  --clr-positive: green;
  --clr-negative: #800000;

  --clrTaken: hsl(0, 100%, 90%);
  --clrLinked: hsl(110, 100%, 80%);
  --clrMissLinked: hsl(60, 100%, 80%);

  --fw-thin: 300;
  --fw: 400;
  --fw-bold: 700;

  --fs-supersmall: 0.6rem;
  --fs-small: 0.7rem;
  --fs: 1rem;
  --fs-mid: 1.1rem;
  --fs-big: 1.2rem;

  --bs: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  --br: 7px;
  --scale: 1.02;
  --headerHeight: 2.5rem;

  --greyXday: black;

  --clrInput: black;
  --inputBg: white;

  /* outer */
  /* --cardBorderOuter: 2px solid var(--clrHeader); */
  /* inner */
  /* --cardBorderInner: 2px solid var(--clrBodyBg); */
}

input {
  background-color: var(--inputBg);
  color: var(--clrInput);
}

@media screen and (min-width: 1200px) {
  :root {
    --fs-supersmall: 0.7rem;
    --fs-small: 0.8rem;
    --fs: 1rem;
    --fs-mid: 1.2rem;
    --fs-big: 1.3rem;
  }
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100vh;

  font-family: "Poppins", sans-serif;

  color: var(--fcBg);
  font-size: var(--fs-small);
  font-weight: var(--fw);
  background: var(--clrHeader);

  background: var(--clrHeader)
    linear-gradient(0deg, var(--clrBodyBg) 0%, var(--clrBodyBg) 100%);

  text-align: center;
  z-index: -2;
}

.statusBar {
  width: 100%;
  height: 100px;
  background-color: var(--clrHeader);
  /* background-color: red; */
  position: fixed;
  top: -99px;
  z-index: 50;
}
/* .fakeBody {
  background-color: var(--clrBodyBg);
  height: 90vh;
  min-height: fit-content;
} */
/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  /* line-height: 1.5; */
  margin: 0;
  position: relative;
  padding-bottom: 4rem;
}

b {
  font-weight: bold;
}
p,
a,
a:link,
a:active,
a:visited {
  text-decoration: none;
  color: inherit;
}

a {
  cursor: pointer;
}

a:hover p,
a:hover svg {
  filter: invert(1);
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* basic end */
/* basic end */

/* nav */
/* nav */

header {
  background: var(--clrHeader);
  /* opacity: 0.5; */
  color: var(--fcHeader);
  /* font-weight: bold; */
  text-align: center;
  position: fixed;
  z-index: 998;
  width: 100%;
  height: var(--headerHeight);
  display: flex;
  align-items: center;
}

.initialTop,
.titleContainer,
.reloadSymbol,
.profileToggleLabel,
.navBoxToggleLabel {
  position: absolute;
  font-size: var(--fs-big);
  font-weight: var(--fw-bold);
}
.profileToggle {
  position: fixed;
  top: -20rem;
}

.profileToggleLabel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  left: 5%;
}
.profileToggleLabel:hover {
  filter: invert(1);
}

.blurrProfile {
  visibility: hidden;
  background-color: black;
  opacity: 0.2;
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: var(--headerHeight);
  left: 0;
}

.profileNavContainer {
  background-color: var(--clrHeader);
  position: fixed;
  top: var(--headerHeight);
  width: 185px;
  /* gap: 1rem; */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: var(--fs-mid);
  padding: 1rem;
  text-align: left;
  text-transform: uppercase;
  border-radius: 0 0 var(--br) 0;
  transform: scale(0, 0);
  transform-origin: left top;
  transition: transform 200ms ease-in-out;
}

.profileToggle:checked ~ .profileNavContainer {
  transform: scale(1, 1);
}

.profileToggle:checked ~ .blurrProfile {
  visibility: visible;
}

.profileNavContainer > a {
  /* background-color: red; */
  margin: 0.2rem 0.5rem;
  width: fit-content;
  position: relative;
}
.profileNavContainer > a::before {
  content: " ";
  display: block;
  height: 100%;
  width: 2px;
  background: var(--fcHeader);
  position: absolute;
  top: 0;
  left: -0.7rem;
  transform: scale(1, 0);
  transition: transform ease-in-out 250ms;
  border-radius: 2px;
  z-index: 99;
}

.profileNavContainer > a:hover::before {
  transform: scale(1, 1);
}

.profileNavContainerFlex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.profileNavContainerFlex::before {
  visibility: hidden;
}

.profileNavContainerFlex > img {
  border-radius: 100%;
  width: 60px;
  aspect-ratio: 1 / 1;

  flex-shrink: 0;
  border: var(--cardBorderInner);
  box-shadow: var(--bs);
  /* clip: rect(30px, 122px, 122px, 0px); */
  object-fit: cover;
  /* box-shadow: 1px 1px 0 0 rgb(255 255 255 /0.3); */
}

.profileNavContainerFlex:hover > img {
  translate: 1px 1px;
  box-shadow: none;
}

.svgHeader {
  fill: var(--fcHeader);
  /* fill: red; */
}

.svgProfile {
  width: calc(var(--headerHeight) * 0.6);
  height: calc(var(--headerHeight) * 0.6);
}

.svgReload {
  width: calc(var(--headerHeight) * 0.6);
  height: calc(var(--headerHeight) * 0.6);
}

.svgHome {
  width: calc(var(--headerHeight) * 0.74);
  height: calc(var(--headerHeight) * 0.74);
}

.svgMenu {
  width: calc(var(--headerHeight) * 0.74);
  height: calc(var(--headerHeight) * 0.74);
}

.titleContainer {
  left: 25%;
  display: flex;
  justify-content: center;
  cursor: default;
}
.title {
  cursor: pointer;
  width: fit-content;
}

.nav-bar {
  position: absolute;
  font-size: var(--fs-mid);
  font-weight: var(--fw-bold);
  right: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.nav-bar-link {
  text-decoration: none;
  text-transform: uppercase;
  margin: 0 0.5em;
  transition: border ease-in-out 250ms;
  position: relative;
}

.navBoxToggle {
  position: fixed;
  top: -20rem;
}

.navBoxToggleLabel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  right: 5%;
}
.navBoxToggleLabel:hover {
  filter: invert(1);
}

.blurrNavBox {
  visibility: hidden;
  background-color: black;
  opacity: 0.2;
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: var(--headerHeight);
  left: 0;
}

.navBoxContainer {
  background-color: var(--clrHeader);
  position: fixed;
  top: var(--headerHeight);
  /* top: 50vh; */
  /* translate: 0 -50%; */
  right: 0;
  /* width: 185px; */
  max-width: 90%;
  /* gap: 1rem; */
  display: grid;
  text-align: right;
  /* flex-direction: column; */
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: var(--fs-mid);
  padding: 1rem;
  /* align-items: flex-end; */
  text-transform: uppercase;
  border-radius: 0 0 0 var(--br);
  transform: scale(0, 0);
  transform-origin: right top;
  transition: transform 200ms ease-in-out;
}

.navBoxToggle:checked ~ .navBoxContainer {
  transform: scale(1, 1);
}

.navBoxToggle:checked ~ .blurrNavBox {
  visibility: visible;
}

.navBoxContainer > a {
  /* background-color: red; */
  margin: 0.2rem 0.5rem;
  /* width: fit-content; */
  position: relative;
}

.navBoxContainer > a::before {
  content: " ";
  display: block;
  height: 100%;
  width: 2px;
  background: var(--fcHeader);
  position: absolute;
  top: 0;
  right: -0.7rem;
  transform: scale(1, 0);
  transition: transform ease-in-out 250ms;
  border-radius: 2px;
  z-index: 99;
}

.navBoxContainer > a:hover::before {
  transform: scale(1, 1);
}

.placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  font-size: var(--fs-big);
  height: var(--headerHeight);
  /* margin-bottom: 0.2em; */
}

.placeholder > div {
  height: 0%;
  font-size: 0;
  transition: ease-in-out;
}

#flash-negative {
  --clr-flash: var(--clr-negative);
  z-index: 20;
  box-shadow: var(--bs);
}

#flash-yellow {
  --clr-flash: #e8b62d;
  z-index: 20;
  box-shadow: var(--bs);
  color: black;
}

#flash-positive {
  --clr-flash: var(--clr-positive);
  z-index: 20;
  box-shadow: var(--bs);
}

.placeholder > div:not(:empty) {
  --animation-time: 4s;
  --animation-delay: 0s;
  position: fixed;
  top: var(--headerHeight);
  background: var(--clr-flash);
  color: white;
  width: 100%;
  text-align: center;
  /* background: transparent; */
  /* color: transparent; */
  height: auto;
  font-size: var(--fs-big);
  padding: 0.4rem;
  /* opacity: 0.85; */
  animation: flashAnimation var(--animation-time) var(--animation-delay) linear
    forwards;
}

@keyframes flashAnimation {
  80% {
    top: 2.4rem;
  }
  98% {
    background: var(--clr-flash);
    color: white;
    top: -0.5rem;
  }
  99% {
    background: transparent;
    color: transparent;
  }
  100% {
    top: -10rem;
  }
}

/* nav ende */
/* nav ende */

.background {
  position: fixed;
  /* fill: red; */
  /* top: 20rem; */
  width: 100%;
  height: 100%;
  /* background-image: url("/images/hexagon.svg");
  background-repeat: no-repeat;
  background-attachment: fixed; */
  z-index: -1;
  /* background-color: green; */
}

.svgContainer {
  /* width: 50vh;
  height: 50vh; */
  /* top: 10rem; */
  position: relative;
  /* background-color: blue; */
  z-index: -1;
}

.hexSvg {
  /* background-color: hsl(0, 100%, 50%, 0.5); */
  /* opacity: 0.5; */
  position: absolute;
  z-index: -1;
  animation: wobble var(--duration) ease-in-out infinite alternate-reverse;
}

@keyframes wobble {
  0% {
    translate: var(--distance1) 0px;
  }
  100% {
    translate: var(--distance2) 0px;
  }
}

/* loader */
/* loader */

.loaderContainer {
  width: 100%;
  height: 50%;
  position: absolute;
  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  /* background-color: rgb(255, 0, 0, 0.5); */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #808080; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* loader end */
/* loader end*/

.impressumContainer {
  position: absolute;
  /* color: var(--fcBg); */
  width: 100%;
  /* background-color: red; */
  /* text-align: right; */
  /* right: 1rem; */
  bottom: 1rem;
  display: flex;
  justify-content: end;
  padding: 0 1rem;
}

.impressum {
  text-align: right;
}

.impressum p {
  /* background-color: blue; */
  /* width: fit-content; */
  width: 100%;
  text-align: right;
}

/* switch */
.switchContainer {
  background-color: var(--clrCard);
  padding: 0.5em;
  width: fit-content;
  border-radius: var(--br);
  border: var(--cardBorderInner);
}

.switchCheckbox {
  position: absolute;
  left: -100vw;
  top: -100vh;
}

.switch {
  --switch-width: 3em;
  --switch-height: 1.75em;
  --switch-padding: 0.3em;
  --switch-transition-time: 200ms;
  --switch-ball-size: calc(var(--switch-height) - var(--switch-padding));

  font-size: var(--fs-big);
  position: relative;
  width: fit-content;
  height: var(--switch-height);
  padding-left: calc(var(--switch-width) + 0.5em);
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0.5em 0;
}

.switch div {
  height: fit-content;
}

.switch::before {
  content: "";
  width: var(--switch-width);
  height: var(--switch-height);
  background-color: var(--clrCard);
  border-radius: 100vw;
  position: absolute;
  inset: 0;
  transition: background-color var(--switch-transition-time);
  /* box-shadow: var(--bs); */
  /* border: 2px solid var(--clrHeader); */
}

.switch::after {
  content: "";
  height: var(--switch-ball-size);
  aspect-ratio: 1/1;
  background-color: white;
  position: absolute;
  top: calc(var(--switch-padding) / 2);
  left: calc(var(--switch-padding) / 2);
  box-shadow: var(--bs);
  border-radius: 100%;
  transition: left var(--switch-transition-time);
}

.switchCheckbox:checked + .switch::before {
  background-color: var(--clrHeader);
  filter: invert(var(--cardIconInvert));
}

.switchCheckbox:checked + .switch::after {
  left: calc(
    var(--switch-width) - var(--switch-ball-size) - var(--switch-padding) / 2
  );
}

/* background targets */
/* radar blips */

.headingDropdown {
  font-size: 13px;
  color: var(--clrTargets);
  background-color: rgb(45, 45, 45);
  position: absolute;
  top: 50vh;
  left: 50vw;
  padding: 0.2rem;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  z-index: 2;
  /* overflow-y: scroll; */
  width: 60px;
  height: 200px;
  overflow: hidden;
  border-radius: 2px;
}
.headingDropdownValues {
  overflow-y: scroll;
  height: 85%;
}
.headingDropdownValues p:hover {
  color: rgb(45, 45, 45);
  background-color: var(--clrTargets);
}
/* width */
.headingDropdownValues::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.headingDropdownValues::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

/* Handle */
.headingDropdownValues::-webkit-scrollbar-thumb {
  background: rgb(90, 90, 90);
  border-radius: 10px;
}

.headingDropdownCancel {
  border: 1px solid rgb(90, 90, 90);
  padding: 2px;
  border-radius: 999px;
}
.target {
  --deg: calc((var(--position) - 90) * 1deg);
  --delay: calc(var(--position) * 0.01111111s);
  --headingCalc: calc((var(--heading) + 90) * 1deg);
  /* --headingRadarUpdate: calc((var(--heading) + 270) * 1deg); */
  width: 12px;
  height: 12px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  border-radius: 9999px;
  border: 3px solid var(--clrTargets);
  transform: translate(-50%, -50%);
}

.h {
  width: 3px;
  height: 3px;
  position: absolute;
  background: var(--clrTargets);
  /* border-radius: 100%; */
  left: var(--x);
  top: var(--y);
  /* top: 1.5px; */
  /* left: 1.5px; */
  transform-origin: center center;
  transform: translate(-50%, -50%);
}

.target .leader {
  height: 40px;
  width: 1px;
  background-color: var(--clrTargets);
  rotate: -135deg;
  transform-origin: top center;
  position: absolute;
  /* left: 10px;
  top: -8px; */
  left: 50%;
  top: 50%;
}

.target .label {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  color: var(--clrTargets);
  /* background-color: rgb(42, 42, 42); */
  position: absolute;
  top: -55px;
  left: 35px;
  text-align: left;
  /* min-width: max-content; */
  width: 150px;
  padding: 0.2rem;
}

.target .label p {
  font-size: 13px;
  padding: 0;
  margin: 0;
  line-height: 1.2em;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.target .label:hover,
.target .label[selected] {
  background-color: rgb(45, 45, 45);
  /* z-index: 999; */
}

.target .labelHeading {
  visibility: hidden;
  background-color: rgb(45, 45, 45);
  color: var(--clrTargets);
  text-decoration: none;
  outline: none;
  border: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.labelHeading::-ms-expand {
  display: none;
}

.target .label:hover .labelHeading,
.target .label[selected] .labelHeading {
  visibility: visible;
}

.target .label:hover span,
.target .label[selected] span {
  visibility: visible;
}
.target p span {
  visibility: hidden;
  /* margin-right: 0.5rem; */
}
