/* Basis-Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100dvh;
    min-height: 100dvh;
}

body {
    font-family: 'Avenir', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #103A5D;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Remaining CSS unchanged */
header {
    margin-bottom: 50px;
}

header img {
    max-width: 300px;
    padding-top: 30px;
    padding-bottom: 15px;
    padding-left: 30px;
    padding-right: 30px;
}

h1 {
    color: #103A5D;
    font-size: 2rem;
}

main {
    flex: 1;
}

.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 8px 20px;
}

.card {
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #103A5D;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
   
}

.card-icon {
    width: 36px;
    height: 36px;
    background-color: #d7e3ed;
    border-radius: 6px;
    padding: 4px;
}

.card-icon:nth-child(1) {
    padding: 7px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
}

.card-content p {
    margin-bottom: 25px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.footer-button a {
    display: flex;
    text-decoration: none;
    color: #103A5D;
    transition: color 0.3s;
    border: 1px solid #103A5D;
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.footer-button a:hover {
    background-color: #103A5D;
    color: #FFFFFF;
}

.footer-button-primary a {
    
    background-color: #103A5D;
    color: #FFFFFF;
}

.footer-button-primary:hover a {
    background-color: #556977;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    color: #ffffff;
    background-color: #103A5D;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    width: auto;
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.button:hover {
    background-color: #728C9F;
}

footer {
    height: 100px;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: #728C9F;
    margin: 0 auto;
    background-image: url('../img/footer-grey.svg');
    background-repeat: no-repeat;
    background-size: 634px auto;
    background-position: center bottom;
}

footer p {
    padding: 5px;
    background-color: rgb(187, 194, 204);
}

/* Media Queries für größere Bildschirme */
@media (min-width: 768px) {
    .button-container {
        flex-direction: row;
        justify-content: center;
    }

    .button {
        flex: 1;
        min-width: 300px !important;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #122334;
        color: #103A5D;
    }

    h1 {
        color: #103A5D;
    }

    .button {
        background-color: #014989;
        color: #103A5D;
    }

    .button:hover {
        background-color: #87BEE9;
    }
}

/* 404 Page Styles */
.maintenance-card {
    max-width: 500px;
    margin: 0 auto;
}

.maintenance-card .card-content {
    text-align: center;
}

.maintenance-card .card-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Schriftarten */
@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirLTPro65Medium-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: sans-serif;
}

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirLTPro55Roman-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: sans-serif;
}
