/***
General
***/

:root {
  --md-primary-fg-color: rgb(32, 50, 87);
  --md-accent-fg-color: rgb(21, 68, 255);
  --md-text-font: "Open Sans";
}

html {
  overflow-y: scroll;
}

/***
Schriftarten einbetten
***/

@font-face {
  font-family: "Space Grotesk";
  color: #ffffff;
  src: local("SpaceGrotesk"),
    url("fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: "Open Sans";
  color: #ffffff;
  src: local("OpenSans"),
    url("fonts/OpenSans.ttf") format("truetype");
  font-weight: normal;
}

/***
Navigation
***/

.md-nav {
  font-family: 'Space Grotesk';
}

/***
Überschriften
***/

.md-typeset {
  & a {
    color: rgb(21, 68, 255)
  }

  & h1 {
    color: rgb(19, 31, 48);
    font-weight: bold;
    font-size: 3em;
    font-family: 'Space Grotesk';
    margin: 0.5em 0;
  }

  & h2 {
      color: rgb(21, 68, 255);
      font-weight: bold;
      font-size: 2em;
      font-family: 'Space Grotesk';
      margin: 0.5em 0;
  }
  & h3 {
    font-weight: bold;
    font-size: 1.8em;
    font-family: 'Space Grotesk';
  }
}

/***
Inhalte
***/

.md-content {
  & p {
    color: rgb(19, 31, 48);
    font-size: 1em;
    font-family: 'Open Sans';
  }

  & img {
    max-width: 700px;
    height: auto;
    border: 1px solid #b6bcc8;
    border-radius: 8px;
    margin: 20px;
  }
}

/***
Code-Blöcke
***/

.highlight {
  border: 1px solid #b6bcc8;
  border-radius: 8px;

  & pre {
    margin: 0;
    border-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  & span.filename {
    font-family: 'Space Grotesk';
    margin-top: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  & > pre > code {
    border-radius: 8px;
  }
}

/***
Admonition
***/

.md-typeset .admonition.info {
  box-shadow: none;
}

.md-typeset .info > .admonition-title,
.md-typeset .info > summary,
.md-typeset .warning > .admonition-title,
.md-typeset .warning > summary { 
  font-family: "Open Sans";
  font-size: 1.2em;
  color: rgb(32, 50, 87);
  background-color: rgba(255, 255, 255, 1);
}

.md-typeset .info > p,
.md-typeset .warning > p {
  color:rgb(32, 50, 87);
  font-family: "Space Grotesk";
}

.md-typeset .info > summary::after {
  background-color: rgb(32, 50, 87);
}

/***
Forms
***/

.md-content {

  & button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      background-color: #0056b3; /* Darker blue */
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    &:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Focus ring */
    }

    &:active {
      background-color: #004085;
    }

    /* Responsive design */
    @media (max-width: 600px) {
      padding: 10px 20px;
      font-size: 14px;
    }
  }

  & input, textarea {
    border-width: 1px;
    border-color: #8f959f;
    border-style: solid;
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: calc(1rem * 1.20);
    background-color: #ffffff;
    color: #131f30;
    display: block;
    appearance: none;
    width: 100%;
    line-height: 1;
    transition: border-color 220ms ease-in-out, border-width 220ms ease-in-out, outline 220ms ease-in-out;
    margin-bottom: 32px;

    &:focus {
      border-color: #000000 !important;
      border-radius: 5px;
      outline: none !important;
      border-width: 2px;
      padding: 16px 20px;
    }

    &::placeholder {
      font-family: "Open Sans";
      color: #000000;
    }

    @media (max-width: 600px) {
      padding: 10px 20px;
      font-size: 14px;
    }
  }

  & textarea {
    min-height: 100px;
  }

  & label {
    accent-color: rgb(0, 230, 204);
    box-sizing: border-box;
    color: rgb(19, 31, 48);
    display: block;
    font-family: "Open Sans";
    font-size: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;

    &.required:after {
      color: rgb(19, 31, 48);
      content: "*";
    }
  }
}



/***
Footer
***/

div.md-copyright__highlight {
  display: table;
  width: 100%;
  table-layout: fixed;

  & span {
    display: table-cell;
    text-align: left;
  }
}

.hosted-by svg {
  vertical-align: middle;
  width: auto;
  height: 1em;
  margin-left: 5px;
  margin-right: 5px;
}
