:root {
    --ivm_blau: #0e69ab;
    --ivm_orange: #f19654; /* Komplementärfarbe zu ivm_blau */
    --ivm_grau: #d2d2d2;
    --ivm_hgrau: #dfdfdf; /* Helleres grau */
    --ivm_gelb: #e7e9b4;
}

main {
    margin-bottom: 50px; /* Zur Korrektur des Globalen CSS */
}

/*----- Logo -----*/

.logo {
    max-width: 25rem;
    display: block;
}

/*----- FirmenLogo + Leitsatz -----*/

.leitsatz {
    text-align: center;
    font-style: italic;
    width: 85%;
    margin: 0 auto 2rem auto;
    line-height: 1;
}

/*----- Design koerper -----*/

.page-bg {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.page-bg > * {
    position: relative;
    z-index: 1;
}

.page-bg::before,
.page-bg::after {
    content: "";
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    z-index: 0;
    opacity: 0.6;
}

.page-bg::before {
    width: 600px;
    height: 600px;
    background: #d6e4f6;
    top: -150px;
    left: -150px;
    transform: rotate(25deg);
}

.page-bg::after {
    width: 500px;
    height: 500px;
    background: #c3cfe0;
    bottom: -150px;
    right: -150px;
    transform: rotate(-20deg);
}

/*----- Neues-Karte -----*/

.tabellenFormat {
    margin: auto;
    margin-top: 4rem;
    font-weight: bold;
}

.datum {
    color: var(--ivm_orange);
    margin: 5px;
}

.blau {
    background-color: blue;
    color: white;
}

.gelb {
    background-color: yellow;
}

.rot {
    background-color: red;
}

.gruen {
    background-color: lime;
}

.inhalt {
    margin: 0;
    height: 100%;
    color: black;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: gray rgb(235, 235, 235);
}

.highlight {
    width: 80%;
    margin: 4rem auto 0 auto;
}

.highlight p {
    text-align: justify;
}

.highlight h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ivm_orange);
}

.neues-karte-link {
    text-decoration: none;
    color: inherit;
}

/*----- IVM-Karte -----*/

.ivm {
    display: flex;
    width: 85%;
    margin: 2rem auto;
    padding-right: 2rem;
}

.ivm-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    margin: 1rem auto;
    font-weight: bold;
    font-size: 1rem;
    width: 55%;
}

.ivm-link a {
    color: black;
}

.ivm-link a img {
    margin-right: 5px;
    margin-bottom: 5px;
}

/*----- Service-Karte -----*/

.service {
    margin: 4rem 1.25rem;
    text-align: justify;
}

/*----- Links-Karte -----*/

.liste {
    list-style: none;
    margin: auto 3.5rem;
    margin-top: 2rem;
    font-weight: bold;
    font-size: 1.25rem;

    padding-left: 0; /* padding-left von bootstrap überschreiben */
}

.liste li a img {
    margin-right: 5px;
    margin-bottom: 5px;
}

.liste li {
    margin-bottom: 1rem;
}

.liste li a {
    color: black;
}

/*----- Karte -----*/

.karten {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.karte {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 20rem;
    height: 25rem;
    overflow-wrap: break-word;
    border-radius: 3%;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.karte:hover {
    transform: scale(1.03);
}

.karte h2 {
    border-bottom: 2px solid black;
    text-align: center;
    font-weight: bold;
    padding-bottom: 0.25rem;
}

.karten-link {
    display: flex;
    justify-content: center;
    min-height: 30px;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.25rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ivm_blau);
}

.link-hover-unterstrich {
    color: var(--ivm_blau);
}

.link-schwarz .link-hover-unterstrich::before {
    background-color: black;
}

.download a {
    color: #162891;
}

.download .link-hover-unterstrich::before {
    background-color: #162891;
}

.link-hover-unterstrich::before {
    background-color: var(--ivm_blau);
}

@media (max-width: 767px) {
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

    .page-bg {
        padding-top: 80px;
    }
}
