:root {
    --primary-400: var(--gu-dunkelgrau);
    --primary-inverted: white;
}

html {
    line-height: 1.8;
}

@media(min-width: 1000px) {
    .header .logo {
        max-width: unset;
        max-height: unset;
    }
}

body,
h1,
h2,
h3,
h4 {
    font-family: sans-serif;
}

/*Menülinks in UB-Blau*/
.main-menu__wrapper a {
    color: var(--primary-inverted);
}

/*Überschriften in schwarz*/
h1,
h2,
h3,
h4 {
    color: var(--gu-dunkelgrau);
    font-weight: 300;
}

h2,
h3,
h4 {
    text-transform: none;
}

h3 + h4,
h4 + h4 {
    margin-block-start: 0;
    margin-block-end: 0;
}

h3:has(+ h4) {
    margin-block-end: 0;
}

@media (min-width: 1000px) {
    h1 {
        font-size: 53px;
    }
}

@media (max-width: 999px) {
    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }
}

/* single column cards are full width */
.cards.columns-1 {
    display: unset;
}


/** styling for tables */
.table-container tr th {
    background-color: var(--primary-400);
    color: var(--primary-inverted);
    border: none;
}

.table-container table {
    border-radius: 0;
    border: none;
}
.table-container table th:first-child {
    border: none;
    border-top-left-radius: 0;
}
.table-container table th:last-child {
    border: none;
    border-top-right-radius: 0;
}

.table-container td:not(:last-child) {
    border-right: none;
}

table tr td {
    border-bottom: none;
}

.table-container tr:not(:last-child) td {
    border-bottom: 1px solid var(--primary-400);
}

.table-container td:nth-child(2) {
    color: black;
    font-weight: bold;
}

.table-container thead {
    display: none;
}

.table-container td a {
    float: left;
    clear: left;
}

@media (max-width: 999px) {
  .table-container td {
    min-width: 175px;
  }
}

/* figure caption settings */
.figwithcaption img {
  vertical-align: bottom;
}

@media (min-width: 1000px) {
  .figwithcaption figcaption {
    margin-left: 50px;
  }
}


@media (min-width: 1000px) {
    .main-menu {
        margin-left: unset;
    }
  /*Menüitems bei Hover farblich invertiert*/
  .main-menu .top-menu-item > a:hover {
      background-color: var(--primary-inverted);
      color: var(--primary-400);
  }
}

/*Icons im Hamburger-Menü in Blau*/
.hamburger-inner,
.hamburger-inner::after,
.hamburger-inner::before,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: var(--primary-inverted);
}

/*
images that contain the word banner in the file name take up the whole container width.
Applies only to wider screens, not mobile.
*/
@media (min-width: 1000px) {
    img[src*="banner"] {
        min-width: var(--container-width);
    }
}

/* Full width headings */
@media (min-width: 1000px) {
    h1 {
        min-width: var(--container-width);
    }
}

/* larger text for introduction paragraph */
@media (min-width: 1000px) {

    header:has(h1) + .content > p,
    header:has(h1) + p:has(> img[src*="banner"]) + p {
        font-size: 120%;
        min-width: var(--container-width);
    }
}

/* Sub Menu titles not white */
@media (max-width: 999px) {
    .main-menu__wrapper .top-menu-item .menu-item__name {
        color: var(--primary-inverted);
    }
}

@media (min-width: 1000px) {
  .footer {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .footer__logo-social-wrapper__inner {
    display: flex;
    align-items: center;
    column-gap: 50px;
  }
}

@media (min-width: 1000px) {
  .header > .container:first-child {
        height: 120px;
  }
}

@media (max-width: 999px) {
  .header > .container:nth-child(2) a {
      padding: 10px;
  }
  .header .footer__logo-social-wrapper {
      display: none;
  }

  .header .bottom-header {
      height: 0;
  }
}

@media (max-width: 999px) {
    .footer .footer__logo-social-wrapper {
        row-gap: 20px;
        flex-direction: column;
    }
    .footer .footer__logo-social-wrapper__inner {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
    }
    .footer .footer__logo-social-wrapper__inner a {
        display: unset;
    }
}

:focus {
    border: 2px solid var(--gu-senfgelb);
}

/* Profile pictures in tables */
@media(min-width: 1000px) {
    .content td img {
        max-width: 150px;
    }
}

@media(max-width: 999px) {
    .content td img {
        max-width: 100px;
    }
}