/***
General
***/

:root {
  --md-primary-fg-color: #003064;
  --md-accent-fg-color: #0039ad;;
  --md-text-font: "Avenir Next Pro","Avenir Next", "Avenir", Inter, "Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",system-ui,sans-serif;
  --sh-blue-highlight: #0039ad;
  --sh-blue: #003064;
  --sh-red:  #d61810;
  --sh-pink: #D50E4C;
  --sh-light-grey: #F1F3F5;
}

html {
  overflow-y: scroll;
}

/***
Navigation
***/

.md-nav {
  font-family: var(--md-text-font);
}

/***
Header
***/
.md-header__button.md-logo img, .md-header__button.md-logo svg {
    height: 3rem;
}

/***
Überschriften
***/

.md-typeset {
  & a {
    color: var(--sh-blue)
  }

  & h1 {
    color: var(--sh-blue);
    font-weight: normal;
    font-size: 3em;
    font-family: var(--md-text-font);
    margin: 0.5em 0;
  }

  & h2 {
      color: var(--sh-blue);
      font-weight: normal;
      font-size: 2em;
      font-family: var(--md-text-font);
      margin: 0.5em 0;
  }
  & h3 {
    color: var(--sh-blue);
    font-weight: normal;
    font-size: 1.8em;
    font-family: var(--md-text-font);
  }
  & h4 {
    color: var(--sh-blue);
    font-family: var(--md-text-font);
    font-size: 1.0em;
  }

  & b, & strong {
    color: var(--sh-blue);
  }
}

/***
Inhalte
***/

.md-content img {
  display: block;
  max-width: 100%; 
  width: 100%;
  height: auto;
  border: 1px solid #b6bcc8;
  border-radius: 8px;
  margin: 1rem 0;

  & 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: var(--md-text-font);
    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: var(--md-text-font);
  font-size: 1.2em;
  color: var(--sh-blue);
  background-color: rgba(255, 255, 255, 1);
}

.md-typeset .info > p,
.md-typeset .warning > p {
  color: var(--sh-blue);
  font-family: var(--md-text-font);
}

.md-typeset .info > summary::after {
  background-color: var(--sh-blue);
}

.md-typeset .question > .admonition-title,
.md-typeset .question > summary {
  font-family: var(--md-text-font);
  background-color: var(--sh-blue);
  color: white;
  font-style: normal;
  font-weight: normal;
  font-size: 1.0em; 
}

.md-typeset .admonition.question,
.md-typeset details.question {
  border-color: var(--sh-blue) !important;
  font-size: 1.0em; 
  border-left-color: var(--sh-blue) !important;
  box-shadow: 0 0.2rem 1rem rgba(0, 48, 100, 0.1), 0 0 0.05rem rgba(0, 48, 100, 0.25) !important;
}

.md-typeset .question > .admonition-title::before,
.md-typeset .question > summary::before {
  background-color: white;
  -webkit-mask-image: var(--md-admonition-icon--question);
  mask-image: var(--md-admonition-icon--question);
}

.md-typeset .question > summary::after {
  background-color: white;
}

/***
Forms
***/

.md-content {

  & button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: --var(--sh-blue);
    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: --var(--sh-blue);
    }

    /* 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: var(--md-text-font);
      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: "*";
    }
  }
}

/***
Call to action section
***/

.md-cta {
  padding: 0.6em 1em;
  border-radius: 1em;
  background: linear-gradient(135deg, var(--sh-blue), var(--sh-blue-highlight));
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  margin: 2em auto;
  font-family: var(--md-text-font);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

/* Override button gradient for informationen pages */
.md-footer-cta[aria-label="Contact"] .md-cta {
  background: var(--sh-pink) !important;
}

/* Remove email icon - clean text only */

.md-cta-text {
  flex: 1;
}

.md-cta-text h2 {
  font-size: 1.6rem;
  margin: 0 0 0.3em 0;
}

.md-cta-text p {
  font-size: 1rem;
  opacity: 1;
  margin: 0;
  color: white;
}

.md-cta .md-cta-button {
  background: #fff;
  color: var(--sh-blue-highlight) !important;
  border-radius: 0.7em;
  padding: 0.6em 1.2em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s;
  white-space: normal;
  flex: 0 0 auto;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.md-cta .md-cta-button:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  color: var(--sh-blue-highlight) !important;
}

@media (max-width: 600px) {
  .md-cta { flex-direction: column; align-items: stretch; }
  .md-cta .md-cta-button { width: 100%; text-align: center; }
}

/***
Grid Cards
***/

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > li,
.md-typeset .grid > .card {
  background-color: var(--sh-light-grey);
}

.md-typeset .grid.cards {
  background-color: transparent;
}

/***
Footer
***/

.md-footer {
  background-color: var(--sh-blue);
}

.md-footer a {
  color: white;
}

.md-footer a:hover {
  text-decoration: underline;
}

.md-footer h6 {
  font-weight: 600;
  font-size: 10pt;
  text-transform: uppercase;
  color: #f3f4f6;
  margin: 0 0 1em 0;
}

.md-footer li {
  list-style: none;
}

.md-copyright {
  width: 100%;
  padding: 0 0 1em 0;
}

div.md-copyright__highlight {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: stretch;
  align-items: stretch;
  flex-wrap: wrap;

  & span {
    display: table-cell;
    text-align: left;
  }
}

.hosted-by svg {
  vertical-align: middle;
  width: auto;
  height: 1em;
  margin-left: 5px;
  margin-right: 5px;
}

.more {
  margin-top: 1em;
}

@media (max-width: 600px) {
  .md-footer,
  .md-footer .md-grid,
  .md-footer__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem;
  }

  .md-footer nav,
  .md-footer .md-footer__links,
  .md-footer ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
  }

  .md-footer li {
    list-style: none;
    margin: 0;
  }

  .md-copyright__highlight {
    display: block !important;
    width: 100%;
  }
  .md-copyright__highlight span {
    display: block !important;
    text-align: left;
    margin-top: 0.25rem;
  }

  .md-footer h6 {
    margin: 2em 0 1em 0;
  }
}
