:root {
    --primary: #639a00;
    --secondary: #616161;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --light-text: #212529;
    --background: #f4f4f4;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: Akkurat-Regular, sans-serif;
    --font-family-bold: Akkurat-Bold, sans-serif;
    --font-family-icons: tudo-icons;
}

@font-face {
    font-family: 'tudo-icons';
    src: url(../fonts/tudo-icons.eot) format('embedded-opentype'),
    url(../fonts/tudo-icons.woff) format('woff'),
    url(../fonts/tudo-icons.ttf) format('truetype'),
    url(../fonts/tudo-icons.svg) format('svg');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Akkurat-Regular;
    src: url(../fonts/lineto-akkurat-pro-regular.eot?#iefix) format('embedded-opentype'),
    url(../fonts/lineto-akkurat-pro-regular.woff2) format('woff2'),
    url(../fonts/lineto-akkurat-pro-regular.woff) format('woff');
}

@font-face {
    font-family: Akkurat-Bold;
    src: url(../fonts/lineto-akkurat-pro-bold.eot?) format('embedded-opentype'),
    url(../fonts/lineto-akkurat-pro-bold.woff2) format('woff2'),
    url(../fonts/lineto-akkurat-pro-bold.woff) format('woff');
}

* {
    box-sizing: border-box;
}

body {
    font-family: Akkurat-Regular, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #f4f4f4;
    text-align: inherit;
    margin: 0;
}

a {
    color: #639a00;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #324e00;
    text-decoration: underline;
}

h1 {
    margin-bottom: .25em;
    font-size: 1.75rem;
    color: #639a00;
    font-weight: 500;
    line-height: 1.2;
    padding: 1rem 0;
}

h2 {
    margin-top: 0;
    font-family: Akkurat-Bold, sans-serif;
    font-weight: 400;
    font-size: 1.4375rem;
    font-style: normal;
    line-height: 1.2;
}

/* branding */
/***
    Balken am oberen Bildschirmrand mit Logo und Wortmarke.
    Wird grün mit hellem Logo im schmalen Design.
***/
.tu-branding {
    background-color: white;
    height: 75px;
    max-width: 1440px;
    margin: auto;
}

.tu-branding-inner {
    padding: 16px 0;
    max-width: 1260px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.tu-logo {
    margin-left: 21px;
    margin-right: 21px;
    color: #639a00;
    text-decoration: none;
    background-color: transparent;
}

.tu-logo img {
    width: 250px;
    min-height: 20px;
    max-height: 40px;
    height: auto;
    display: block;
    vertical-align: middle;
    border-style: none;
}

.logo-light {
    display: none !important;
}

.itmc-wortmarke {
    margin-left: 21px;
    margin-right: 21px;
    color: #616161;
    text-decoration: none;
    background-color: transparent;
}

.itmc-wortmarke:hover {
    color: #616161;
    text-decoration: none;
}

@media (max-width: 992px) {
    .tu-branding {
        background-color: #639a00;
    }

    .logo-light {
        display: unset !important;
    }

    .logo-dark {
        display: none !important;
    }

    .itmc-wortmarke {
        display: none;
    }
}

/* Panorama */
/***
    In der hohen und in der small Variante
***/
.panorama {
    position: relative;
    margin: auto;
    z-index: -1;
    overflow: hidden;
    max-width: 1440px;
    max-height: 775px;
    min-height: 380px;
    display: block;
    background-image: url("../images/panorama.jpg");
}

.panorama-small {
    position: relative;
    margin: auto;
    z-index: -1;
    overflow: hidden;
    max-width: 1440px;
    max-height: 775px;
    display: block;
    background-image: url("../images/panorama-small.jpg");
    min-height: 150px;
}

@media (max-width: 992px) {
    .panorama, .panorama-small {
        display: none;
    }
}

/* mainnav */
/***
    Balken über dem Panorama mit dem Logo des Dienstes links und dem Hautnavi links.
    Enthält ebenfalls den Button zum öffnen und schließen der Menüs im schmalen Design.
***/
.mainnav-wrapper {
    position: relative;
    overflow: visible;
}

.mainnav {
    width: 1260px;
    max-width: 100%;
    background-color: white;
    padding: 0;
    min-height: 100px;
    display: flex;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translate(-50%, 0px);
}

.mainnav-logo {
    border-bottom: 5px solid #639a00;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mainnav-logo a {
    display: flex;
    padding: .3125rem 1em;
    font-size: 1.25rem;
    white-space: nowrap;
    line-height: inherit;
}

.mainnav-logo img {
    height: 40px;
    width: auto;
    margin: auto;
}

.mainnav-flex-wrapper {
    flex-grow: 1;
    display: flex;
}

.mainnav-content {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
}

.mainnav-content-top {
    min-height: 50px;
}

.mainnav-content-bottom {
    display: flex;
    min-height: 50px;
    background-color: #639a00;
    flex-direction: row;
    flex-grow: 1;
    margin-top: 0;
    flex-wrap: wrap;
}

.mainnav-content-bottom span {
    border-bottom: 5px solid #639a00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mainnav-content-bottom a {
    font-family: Akkurat-Bold, sans-serif;
    text-decoration: none;
    color: white;
    position: relative;
    padding: .5rem 1.875rem 0;
}

.mainnav-content-bottom span.active {
    border-bottom: 5px solid #616161;
    background-color: #616161;
}

.mainnav-content-bottom span:hover {
    border-bottom: 5px solid #616161;
    background-color: #616161;
}

@media (max-width: 992px) {
    .mainnav {
        position: unset;
        transform: unset;
        min-height: unset;
    }

    .mainnav-logo a {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .mainnav-logo {
        border-bottom: 0;
        align-items: flex-start;
    }

    .mainnav-content-top {
        height: calc(2rem + 40px);
        display: flex;
        justify-content: flex-end;
        flex-direction: row;
        align-items: center;
    }

    .toggler.active {
        font-size: 1.25rem;
        width: 1.5em;
        height: 1.5em;
        cursor: pointer;
        margin-right: 4%;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23639a00' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    .mainnav-content-bottom {
        margin-left: -122px;
        background-color: #616161;
        color: white;
        flex-direction: column;
        min-height: 0;
    }

    .mainnav-content-bottom span {
        border-bottom: 2px solid #d8d8d8 !important;
        display: block;
    }

    .mainnav-content-bottom span:hover {
        border-bottom: 2px solid #d8d8d8;
    }

    .mainnav-content-bottom.hidden {
        display: none;
    }

    .mainnav-content-bottom a {
        display: block;
        color: white !important;
        font-weight: normal !important;
        font-family: Akkurat-Regular, sans-serif;
        padding: .5rem 1rem;
    }
}

/* main-wrapper */
.main {
    max-width: 1440px;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* sectionnav */
/***
    Navigationsmenü am linken Rand des Inhalts.
    Wird im schmalen Design ebenfalls zusammengeklappt.
    Richtet sich je nach Panorama in der Höhe aus.
***/
.sectionnav {
    position: relative;
    background-color: white;
    margin-top: -70px;
    width: 100%;
    max-width: 25%;
    padding-left: calc(25% - 16em);
    padding-right: 15px;
}

.panorama-small ~ .main .sectionnav {
    margin-top: -15px;
}

.sectionnav ul {
    padding-top: 24px;
    padding-right: 1.5em;
    padding-left: unset;
    padding-bottom: 24px;
    margin-top: 0;
    margin-bottom: 1rem;
    list-style: none;
}

.sectionnav a {
    display: block;
    padding: .5rem 1rem;
    color: black;
    text-decoration: none;
    background-color: transparent;
}

.sectionnav a.active {
    color: #639a00;
    font-weight: bold
}

@media (max-width: 992px) {
    .sectionnav {
        background-color: #616161;
        color: white;
        margin-top: 0;
        padding: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .sectionnav.hidden {
        height: 0;
    }

    .sectionnav ul {
        padding: 0;
        margin: 0;
    }

    .sectionnav li {
        border-bottom: 2px solid #d8d8d8;
    }

    .sectionnav a {
        color: white !important;
        font-weight: normal !important;
    }
}

/* main-content */
/***
    Hauptinhaltsbereich
    Stellt Platz für den eigentlichen Inhalt bereit.
    Es gibt vorformatierte Überschriften (Dachzeile), p's, div's und den Zugriff auf die Asset-boxen (siehe unten).
    Für die Login-Anwendungen existiert ebenfalls eine styling für ein valides Login-Formular (siehe unten).
***/
.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    background-color: white;
    margin-top: 10px;
    padding-left: max(calc((100% - 1260px) / 2), 1rem);
    padding-right: max(calc((100% - 1260px) / 2), 1rem);
}

.main-content > *:first-child {
    margin-top: 1.7em !important;
}

.main-content > *:last-child {
    margin-bottom: 1.7em !important;
}

.sectionnav ~ .main-content {
    max-width: 75%;
}

.main-content *:not(.box-2-cols):not(.box-3-cols):not(.asset):not(.asset *):not(.login-form):not(.login-form *) {
    padding-left: max(calc((100% - 1260px) / 2), 1rem);
    padding-right: max(calc((100% - 1260px) / 2), 1rem);
    margin: 1rem 0 0 0;
}

.main-content > h1:first-of-type:not(:only-of-type) {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 1rem 0 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    font-family: Akkurat-Bold, sans-serif;
    padding: 0 max(calc((100% - 1260px) / 2), 1rem) 0 max(calc((100% - 1260px) / 2), 1rem);
}

.main-content > h1:not(:first-of-type) {
    margin-top: 0.3rem;
    padding: 0 max(calc((100% - 1260px) / 2), 1rem) 0 max(calc((100% - 1260px) / 2), 1rem);
}


@media (max-width: 992px) {
    .main-content {
        max-width: 100% !important;
    }
}

/* Login-form */
/***
    Ausarbeitung eines Formulars für die Login-Felder
***/
.login-form {
    margin-top: 1rem;
    width: 100%;
    /* Gleicht sich bis 1em dem mainnav an */
    /*padding: 1em 1em 1em max(calc((100% - 1260px) / 2), 1rem);*/
}

.login-form input:not([type="radio"]):not([type="checkbox"]), .login-form select {
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
    color: #495057;
    width: 100%;
    margin: 0.25em 0;
    height: 38px;
}

.login-form input:focus, .login-form select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ca7406;
    outline: none;
    box-shadow: 0 0 0 2px #ca7406;
    z-index: 3;
}

.login-form button {
    margin-right: 0;
    width: 100%;
}

/* assets */
/***
    Assets können alle Elemente sein.
    Es entstehen Boxen/Blöcke, welche entweder direkt in die Seite platziert werden können oder innerhalb der box-n-cols für Mehrspaltenlayouts.
    Die direkt platzierten Boxen sind eher Info-Panels; die Boxen im Mehrspaltenlayout eher richtige Kacheln.
    a.asset erhält einen grünen Hover-Effekt und einen Pfeil in der rechten unteren Ecke über span.asset-symbol
***/
.asset {
    position: relative;
    background-color: white;
    border: 1px solid #bfbfbf;
    border-left: 5px solid #639a00;
    text-decoration: none;
    padding: 1.5em 1.5em 1.5em 2.2em;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    color: black;
    margin-top: 0.7rem;
    margin-left: max(calc((100% - 1260px) / 2), 1rem);
    margin-right: max(calc((100% - 1260px) / 2), 1rem);
}

.asset.warning {
    border-color: #ca7406;
}

a.asset:hover {
    border: 1px solid #84b819;
    border-left: 5px solid #84b819;
    text-decoration: none;
    color: black;
    background-color: #f4f4f4;
}

.asset h2 {
    padding: 0;
    margin-bottom: 1.0em;
}

.asset h2:last-child {
    margin: 0;
}

.asset p, .asset div:not(.asset) {
    padding: 0;
    margin: 1em 0 0 0;
}

.asset ul, .asset ol {
    list-style-position: outside;
    padding-left: 25px;
    margin: 1em 0 0 0;
}

.asset h2 + p, .asset h2 + div, .asset h2 + ul, .asset h2 + ol, .asset p:first-child, .asset div:first-child, .asset ul:first-child, .asset ol:first-child {
    margin: 0;
}

a.asset .asset-symbol:after {
    font-family: tudo-icons;
    content: "\E900";
    margin-left: .8rem;
    box-sizing: border-box;
}

.asset .asset-symbol {
    color: #84b819;
    position: absolute;
    right: 1.25em;
    bottom: 0.75em;
}

/* Assets in Box-layout */
.box-2-cols, .box-3-cols {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-left: max(calc((100% - 1260px) / 2), 1rem);
    padding-right: max(calc((100% - 1260px) / 2), 1rem);
}

.box-2-cols > .asset {
    flex: 0 0 49%;
}

.box-3-cols > .asset {
    flex: 0 0 32%;
}

.box-2-cols > .asset, .box-3-cols > .asset {
    border-color: #bfbfbf;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 750px) {
    .box-2-cols > .asset, .box-3-cols > .asset {
        border-color: #bfbfbf;
        margin-left: 0;
        margin-right: 0;
        flex: 0 0 100%;
    }
}

/* footer */
/***
    Grauer footer am unteren Bildschirmrand.
    Einbindung von Items als a oder div innerhalb der div.footer-items
***/
.footer {
    min-height: 8rem;
    background-color: #3b3b3b;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: fit-content;
    padding: 1rem 2rem;
}

.footer-items > * {
    height: fit-content;
    color: #FFF;
    padding: .5rem 1rem;
    text-decoration: none;
    background-color: transparent;
    font-family: Akkurat-Bold, sans-serif;
}

.footer-items > a:hover {
    background-color: #639a00;
}

/* ol' reliable tu-button*/
/***
    button bzw. a.tu-button im klassischen grünen Design
***/
.btn, button {
    border-radius: 0;
    font-family: Akkurat-Bold, sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .03125rem;
    padding-bottom: .56rem;
    padding-top: .69rem;
    white-space: normal;
    width: fit-content;
    background: linear-gradient(to left, #639a00 50%, #4a7400 50%) 100% 100%;
    background-size: 200% 100%;
    border: 1px solid #4a7400;
    border-left: 0;
    box-shadow: inset .3125rem 0 0 0 #4a7400;
    color: white;
    outline: none;
}

.btn.focus:not([disabled]):not(.disabled),
.btn:focus-visible:not([disabled]):not(.disabled),
button.focus:not([disabled]):not(.disabled),
button:focus-visible:not([disabled]):not(.disabled) {
    background: linear-gradient(to left, #ca7406, #ca7406);
    box-shadow: none;
    border-color: #ca7406;
}

.btn.hover:not([disabled]):not(.disabled),
.btn:hover:not([disabled]):not(.disabled),
button.hover:not([disabled]):not(.disabled),
button:hover:not([disabled]):not(.disabled) {
    background-position: 0 100%;
    transition: all .3s ease;
    box-shadow: inset .3125rem 0 0 0 #4a7400;
    text-decoration: none;
}


.btn.active:not([disabled]):not(.disabled),
.btn:active:not([disabled]):not(.disabled),
button.active:not([disabled]):not(.disabled),
button:active:not([disabled]):not(.disabled) {
    box-shadow: inset .3125rem 0 0 0 #2a4100;
}


