@font-face {
  	src: url(/fonts/JetBrainsMono-Regular.woff2), format('woff2');
  	font-family: 'Jetbrains Mono';
	font-weight: normal;
    font-style: normal;
	font-display:swap;
}

@font-face {
  	src: url(/fonts/JetBrainsMono-Bold.woff2), format('woff2');
  	font-family: 'Jetbrains Mono';
	font-weight: bold;
    font-style: normal;
	font-display:swap;
}

@font-face {
  	src: url(/fonts/JetBrainsMono-Italic.woff2), format('woff2');
  	font-family: 'Jetbrains Mono';
	font-weight: normal;
    font-style: italic;
	font-display:swap;
}

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

body {
    font-family: 'Jetbrains Mono', sans-serif;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section {
    padding: 80px 10px;
    margin: 0 25px; 
    border: 2px, solid, rgba(21, 96, 130);
	-webkit-appearance: none;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #007acc;
}

.section p {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
}

.section ul {
    list-style-type: disc;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.section ul li {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); 
}

.modal-content {
    background-color: #FFF5EE;
    color:#000;
    margin: 10% auto;
    padding: 45px;
    border-radius: 5px;
    max-width: 900px;
    position: relative;
}

.modal-content li {
    margin-top:1.2rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 2em;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:focus {
    outline: 2px solid #007acc;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 90%;
    }

     .section {
        margin: 0 8px;
    }
}

header {
    position: relative;
}

.second {
    background-color: rgba(21, 96, 130, 0.2);
}

.hero {
    background-image: url('hero-image.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
}

.navbar {
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 2;
    position: relative;
    background-color: rgba(21, 96, 130, 0.3);
    margin: 0.5rem;
    border: solid, 2px, rgba(21, 96, 130);
}

.logo h1 {
    font-weight: 700;
    font-size: 1.5em;
}

.logo {
    width: 25%;
    min-width: 250px;
    border-radius: 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #000;
}


.nav-toggle-label span, 
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    background-color: #fff;
}

.hero-content {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007acc;
    color: #fff;
    font-size: 1em;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 122, 204, 0.4);
}

.btn:hover {
    background-color: #005f99;
    transform: translateY(-3px);
}

footer {
    background-color: rgba(21, 96, 130, 0.2);
    padding: 15px;
    text-align: center;
}

footer p {
    font-size: 0.9em;
    color: #555;
}

footer a {
    color: #007acc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


.nav-toggle {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.nav-toggle-label {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        position: fixed; /* Fixiert den Toggle-Button */
        top: 20px; /* Abstand vom oberen Rand */
        right: 20px; /* Abstand vom rechten Rand */
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 3; 
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        position: absolute;
        height: 3px; /* Höhe der Linien */
        width: 100%; /* Breite der Linien */
        background: #fff; /* Hintergrundfarbe der Linien */
        border-radius: 3px;
        transition: all 0.3s;
    }

    .nav-toggle-label span {
        top: 50%;
        margin-top: -1.5px; /* Zentriert die mittlere Linie */
    }

    .nav-toggle-label span::before {
        content: '';
        position: absolute;
        top: -10px; /* Positioniert die obere Linie */
    }

    .nav-toggle-label span::after {
        content: '';
        position: absolute;
        top: 10px; /* Positioniert die untere Linie */
    }

    .nav-toggle:checked + .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-menu {
        right: 0;
    }

    /* Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: rgba(0, 0, 0, 0.9); /* Hintergrundfarbe des Menüs */
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        transition: right 0.3s ease-in-out;
        padding-top: 100px;
        z-index: 2; /* Unter dem Toggle-Button */
        overflow-y: auto; /* Ermöglicht Scrollen im Menü */
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-menu a {
        color: #fff;
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .nav-menu a {
        font-size: 1.2em;
    }
}

html {
    scroll-behavior: smooth;
}