@font-face {
  font-family: Poppins;
  font-weight: normal;
  src: url("https://assets.system-maritime-verkehrstechnik.de/Poppins-Regular.ttf");
}

@font-face {
  font-family: Poppins;
  font-weight: bold;
  src: url("https://assets.system-maritime-verkehrstechnik.de/Poppins-Bold.ttf");
}

:root {
  color-scheme: light;

  /*
    26px = 1.625rem
    24px = 1.5rem
    22px = 1.375rem
    20px = 1.25rem
    18px = 1.125rem
    16px = 1rem
    14px = 0.875rem
    12px = 0.75rem
    10px = 0.625rem
    8px = 0.5rem

  */

  --f-8px: 0.5rem;
  --f-10px: 0.625rem;
  --f-12px: 0.75rem;
  --f-14px: 0.875rem;
  --f-16px: 1rem;
  --f-18px: 1.125rem;
  --f-20px: 1.25rem;
  --f-22px: 1.375rem;
  --f-24px: 1.5rem;
  --f-26px: 1.625rem;

  --f1b-26: 700 var(--f-26px) Poppins;
  --f1b-22: 700 var(--f-22px) Poppins;
  --f1b-18: 700 var(--f-18px) Poppins;
  --f1b-16: 700 var(--f-16px) Poppins;
  --f1b-14: 700 var(--f-14px) Poppins;

  --f1n-18: 400 var(--f-18px) Poppins;
  --f1n-16: 400 var(--f-16px) Poppins;
  --f1n-14: 400 var(--f-14px) Poppins;
  --f1n-12: 400 var(--f-12px) Poppins;

  --clr-light-blue: hsl(204, 70%, 53%);
  --clr-light-blue-az1: hsl(204, 70%, 43%);
  --clr-light-blue-az2: hsl(204, 70%, 33%);
  --clr-very-light-grey: hsl(228, 33%, 97%);

  --clr-coal: hsl(240, 20%, 5%);

  --clr-red: light-dark(hsl(0, 74%, 40%), hsl(355, 100%, 64%));
  --clr-amber: light-dark(coral, hsl(32, 100%, 73%));
  --clr-green: light-dark(hsl(124, 35%, 36%), hsl(139, 76%, 71%));
 

  --clr-text: hsl(0, 0%, 0%);
  /* --clr-text-muted: hsl(0, 0%, 65%); */
  --clr-text-muted: hsl(0 0% 47.09%);
  --clr-text-accent: hsl(216 100% 58.31%);

  --clr-exclamation: hsl(43, 100%, 80%);

  --clr-chart-red: hsl(0, 65%, 56%);
  --clr-chart-green: green;

  --clr-nav: hsl(188, 59%, 25%);
  --clr-nav-selected: hsl(188, 59%, 35%);
  --clr-nav-verylight: hsla(188, 59%, 35%, 0.4);

  --bdr-rad-big: 0.7rem;
  --bdr-rad-small: 0.3rem;
}

/* Reset */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: unset;
  color: inherit;

  &:click {
    color: inherit;
  }
  &:visited {
    color: inherit;
  }
}

/* Reset Ende */

/* Hilfsklassen */
[data-hidden] { display: none !important; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Hier müsste die Schriftart eigentlich hin */
.f1b-26 { font: var(--f1b-26); }
.f1b-22 { font: var(--f1b-22); }
.f1b-18 { font: var(--f1b-18); }
.f1b-16 { font: var(--f1b-16); }
.f1b-14 { font: var(--f1b-14); }

.f1n-18 { font: var(--f1n-18); }
.f1n-16 { font: var(--f1n-16); }
.f1n-14 { font: var(--f1n-14); }
.f1n-12 { font: var(--f1n-12); }

.text-muted { color: var(--clr-text-muted) !important; }

.text-accent { color: var(--clr-text-accent) !important; }

.flex {display: flex; }

.flex-column {
  display: flex;
  flex-direction: column;
}

table { border-collapse: collapse; }
th, td { border: 1px solid black; }

.gap-1 { gap: 1em }

.grid-2c {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3c {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.grid-autoc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 1rem;
}

.grid-4c {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
}

.max-width-88 {
  max-width: 88rem;
  width: 100%;
  margin-inline: auto;
  padding-inline: 0.5em;
}

.max-width-55 {
  max-width: 55rem;
  width: 100%;
  margin-inline: auto;
  padding-inline: 0.5em;
}

.max-width-33 {
  max-width: 33rem;
  width: 100%;
  margin-inline: auto;
  padding-inline: 0.5em;
}

/* Hilfsklassen Ende */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--clr-very-light-grey);
  color: var(--clr-text);
  font: var(--f1n-16);
}

header {
  .logo-top {
    display: block;
    margin: 1rem auto;
    height: 3.7rem;
    width: 3.7rem;
    border-radius: 50%;
    border: 2px solid transparent;
    background-image: url("./WSV_icon_mono.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    transition: border linear 0.3s;

    &:hover {
      border-color: hsl(0, 0%, 80%);
      transition: border linear 0.3s;
    }
  }

  nav {
    display: flex;
    background-color: var(--clr-coal);
    font: var(--f1b-18);
    color: hsl(0, 0%, 80%);
    padding: 0.25rem;
    line-height: 1.2;
  }

  .nav-logo{
    display: flex;
    align-content: center;
    width: 4rem;
    justify-content: center;

    img{
      height: 2em;
      aspect-ratio: 1/1;
     }
  }

  .nav-links {
    display: flex;
    margin: 0.5em;
    gap: 2em;

    [data-active] {
      color: var(--clr-text-accent);
    }

    a:hover {
      text-decoration-line: underline;
      text-underline-offset: 4px;
      text-decoration-thickness: 1px;
    }
  }
}

h1 {
  font: var(--f1b-26);
}

h2,
h3,
h4,
h5,
h6 {
  font: inherit;
}

.section-heading {
  font: var(--f1b-22);
  margin-bottom: 0.75em;
  position: relative;

  &::after {
    position: absolute;
    content: "";
    height: 1em;
    width: 200px;
    background-color: hsla(43, 100%, 80%, 0.1);
    bottom: -3px;
    left: 20px;
  }
}

ul,
ol {
  margin-left: 1em;
}

dl {
  margin-left: 1em;
  font: var(--f1b-14);

  dt {
    font: var(--f1n-16);
    color: var(--clr-text-muted);
  }
}

form {
  gap: 1em;
}

input, select:not([type="checkbox"]), textarea {
  font-size: 1em;
  font-family: inherit;
  padding: .375rem 2.25rem .375rem .75rem;
  line-height: 1.5;
  
  appearance: none;
  background-color: white;

  border: 1px solid var(--clr-coal);
  border-radius: 0.3em;

  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;

  &:focus {
    outline: 2px solid var(--clr-light-blue);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  }

  &:disabled {
    cursor: not-allowed;
    border-color: hsla(0, 0%, 0%, 0.5);
    color: hsl(0, 0%, 51%);
    background-color: hsl(0deg 100% 92.96%);
  }

  &[type="datetime-local"],
  &[type="date"],
  &[type="time"],
  &[type="month"]    {
    font-family: monospace;
  }
}

.input-group {
  display: flex;
  flex-direction: column-reverse;
  font: var(--f1n-12);
}

select {
  background-image: url("./icons/icon_arrow_down.svg");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;

  &:has(> input:checked){
    border-color: white;
  }

  input {
    display: none;
  }

  .slider {
    position: absolute;
    border-radius: 2em;
    border: 1px solid var(--clr-coal);
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transition: 0.4s;
  }

  .slider:before {
    position: absolute;
    border-radius: 50%;
    content: "";
    height: 1.5em;
    width: 1.5em;
    left: calc(0.25em - 1px);
    bottom: calc(0.25em - 1px);
    background-color: var(--clr-coal);
    transition: 0.4s;
  }

  input:checked + .slider {
    background-color: var(--clr-coal);
  }

  input:focus + .slider {
    /*box-shadow: 0 0 1px #2196F3;*/
  }

  input:checked + .slider:before {
    transform: translateX(1.5em);
    background-color: white;
  }
}

hr {
  border: unset;
  border-top: 1px solid var(--clr-coal);
}

main {
  flex-grow: 1;
  margin-bottom: 3rem;

  nav {
    display: flex;
    gap: 1.5em;
    font: var(--f1n-14);
    /* font: var(--font-body-medium); */
    background-color: var(--clr-light-blue);
    color: white;
    padding: 0.25rem;
    padding-left: 0.75em;

    [data-active] {
      /* background-color: hsl(188, 59%, 35%); */
      background-color: var(--clr-light-blue-az1);
    }

    a {
      display: inline-block;
      padding: 0.75em;
      border-radius: 2px;

      &:hover {
        /* background-color: hsl(188, 59%, 45%);; */
        background-color: var(--clr-light-blue-az2);
      }
    }

  }
}

.hero {
  justify-content: center;
  text-align: center;
  margin-top: 3rem;

  & > p {
    font: var(--f1b-18);
    margin-block: 1rem 3rem;
  }
}

.hero-small { margin-top: 3rem; }

.large-link-group a {
  font: var(--f1b-18);
  background-color: var(--clr-coal);
  color: white;
  padding-block: 5em;
  border-radius: 3px;
}

.link-group > a {
  gap: 0.5rem;
  font: var(--f1n-14);
  /* font: var(--font-body-medium); */
  text-align: center;
  background-color: var(--clr-coal);
  color: white;
  padding: 0.75em;
  border-radius: 2px;
}

.shell {
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, .2);
  padding: 0.5em;
  border-radius: 3px;

  .shell-button {
    all: unset;
    float: right;
    border: 1px solid var(--clr-text-muted);
    color: var(--clr-text-muted);
    padding: 0.1em 0.25em;
    border-radius: 2px;
    user-select: none;
    cursor: pointer;
    font: var(--f1n-12);
  }

  .shell-dropdown-button {
    float: right;
    width: 20px;
    height: 20px;
    background-image: url("./icon_settings.svg");
    background-position: center;
    background-repeat: no-repeat;
    border: unset;
    border-radius: 10px;
  }
}

.button {
  font: var(--f1b-14);
  background-color: hsl(0, 0%, 90%);
  color: var(--clr-coal);
  padding: 0.25em 0.5em;
  border: unset;
  border-radius: var(--bdr-rad-small);
  cursor: pointer;

  &:not(:disabled):hover {
    background-color: hsl(0, 0%, 80%);
  }

  &:disabled {
    color: hsl(0, 0%, 30%);
    cursor: not-allowed;
    background-color: hsl(0deg 100% 92.96%);
  }
}

.inverted {
  font: var(--f1n-14);
  color: white !important;
  background-color: var(--clr-coal) !important;
  &:not(:disabled):hover {
    background-color: hsl(0, 0%, 20%) !important;
  }
}

.pill-button {
  background-color: var(--clr-coal);
  color: hsl(0, 0%, 85%);
  border: unset;
  border-radius: 2em;
  font: var(--f1b-16);
  /* font: var(--font-heading-mini); */
  padding: 0.5em 1em;
  cursor: pointer;

  &:hover {
    background-color: hsl(0, 0%, 14%);
  }
}

.large-pill-button {
  cursor: pointer;
  display: inline-block;
  background-color: var(--clr-coal);
  color: white !important;
  width: 100%;
  font: var(--f1b-16);
  text-decoration: none;
  font-size: 1.4em;
  margin-block: 0.5em;
  padding: 0.2em;
  text-align: center;
  border-radius: 2em;
  border: 2px solid transparent;
  outline: 2px solid transparent;

  &:hover {
    border: 2px solid white;
    outline: 2px solid var(--clr-coal);
    a {
      text-decoration: dotted !important;
    }
  }
}

.pill {
  background-color: hsl(0, 0%, 80%);
  border-radius: 2em;
  width: fit-content;
  padding-inline: 0.75em;
  font: var(--f1n-14);
}

.timeline {
  & > .timeline-item {
   margin-left: 2rem;
   display: block;
   position: relative;

   time {
     font-style: italic;
     line-height: 2rem;
   }

   p { font: var(--f1n-14); }

   &::after {
     background-color: green;
     content: "";
     border-radius: 50%;
     width: 0.8rem;
     height: 0.8rem;
     position: absolute;
     top: 0.6rem;
     left: -1.6rem;
   }
 
   &:not(:last-child)::before {
      background-image: url("./dotline.svg");
      content: "";
      background-repeat: repeat-y;
      width: 0.1rem;
      height: calc(100% - 1.6rem);
      position: absolute;
      top: 1.8rem;
      bottom: 0;
      left: -1.25rem;
    }
  }
}

 .note {
  margin-top: 1em;
  padding-left: 0.5em;
  border-left: 2px solid var(--clr-coal);
}

.user {
  display: flex;
  gap: 1rem;
  
  & > .picture {
    background-color: var(--clr-coal);
    /* background-image: url(); */
    border-radius: 50%;
    height: 3.5rem;
    width: 3.5rem;
  }

  & > div:nth-child(2) {
    flex-grow: 1;
    margin-block: auto;
    
    & > p:first-child {
      font: var(--f1b-14);
    }
    & > p:last-child {
      font: var(--f1n-12);
      color: var(--clr-text-muted);
    }
  }
}

.dropdown {
  position: relative;

  & > .popout {
    display: none;
    position: absolute;
    top: 2rem;
    min-width: 80px;
  }

  &[data-expanded] > .popout {
    display: block;
    background-color: red;
    min-height: 100px;
  }
}

/* Status */

.status-text[data-status] {
  font-weight: bold;
  color: var(--clr-amber);
  /* white-space: nowrap; */
}

.status-text[data-status="0"] {
  color: var(--clr-green);
}

.status-text[data-status="1"] {
  color: var(--clr-red);
}

.badge {
  display: inline-block;
  padding: 0.25em;
  margin-block: 0.4em;
  border-radius: 0.4em;
  color: var(--clr-text-muted);
  outline: 1px solid var(--clr-text-muted);
  line-height: 1;
}

.badge[data-status] {
  outline-color: var(--clr-amber);
}
.badge[data-status="0"] {
  outline-color: var(--clr-green);
}
.badge[data-status="1"] {
  outline-color: var(--clr-red);
}

.status-preview {
  appearance: unset;
  text-align: unset;
  background-color: white;
  font: var(--f1n-16);
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: var(--bdr-rad-small);
  border: 1px solid var(--clr-coal);
  cursor: pointer;
  padding: 0.5em;
  transition: box-shadow linear 0.1s;

  & > p:first-child { font: var(--f1b-16); }

  &:visited { color: inherit; }

  &:hover {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4);
    transition: box-shadow linear 0.1s;
  }

  &::after {
    position: absolute;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px' fill='white'%3E%3Cpath d='M630-444H192v-72h438L429-717l51-51 288 288-288 288-51-51 201-201Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    right: 1em;
    top: 50%;
    transform: translateY(calc(-50%));
    height: 2em;
    width: 2em;
    border-radius: 50%;
    font-size: 1.2em;
    color: light-dark(var(--clr-coal), white);
    background-color: var(--clr-coal);
    line-height: 1.5;
  }
}

fieldset {
  border: 1px solid var(--clr-coal);
  padding: 1em;
  border-radius: var(--bdr-rad-small);
  background-color: white;

  legend {
    padding: 0.3em;
    color: white;
    background-color: var(--clr-coal);
    border-radius: var(--bdr-rad-small);
    font: var(--f1n-16);
    line-height: 1.1;

    &[data-active] {
      font: var(--f1b-16);
    }
  }
}

/* Status Ende */

details {
  border: 1px solid #aaaaaa;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
}

summary {
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
  cursor: pointer;
}

details[open] {
  padding: 0.5em;
}

details[open] summary {
  border-bottom: 1px solid #aaaaaa;
  margin-bottom: 0.5em;
}






































 wsv-snackbar {
  pointer-events: none;
  position: fixed;
  width: 100%;
  bottom: 0;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column-reverse;
  gap: 1em;

  .fade-out {
    opacity: 0;
    transition: opacity 0.7s ease;

  }

  div {
    color: white;
    margin-inline: auto;
    width: fit-content;
    background-color: var(--clr-coal);
    border-radius: var(--bdr-rad-small);
    padding: 8px 16px;
    font: var(--f1n-14);
  }
}

dialog,
.dialog /* tmp */ {
  margin: auto;
  border: unset;
  background-color: white;
  border-radius: var(--bdr-rad-big);
  padding: 1em;

  &::backdrop {
    background-color: hsla(0, 0%, 0%, 0.6);
  }
  
  button:first-child {
    cursor: pointer;
    border: unset;
    background-color: unset;
    float: right;
    height: 2em;
    width: 2em;
    background-image: url("/icons/icon_canceled.svg");
    background-position: center;
    background-repeat: no-repeat;
  }
}