body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    background: black;
    color: white;
    overflow: hidden;
}

.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Hintergrundvideo abdunkeln */
.background-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.container {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 1;
}

.left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 600px;
    height: auto;
    opacity: 1;
}

.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-top: 40px; /* Platz für Leitsatz */
    height: 100vh;
    box-sizing: border-box;
}

/* Leitsatz mit dunklem halbtransparentem Hintergrund, moderner Code-Schrift */
.tagline {
    height: auto;
    max-width: 600px;
    margin-bottom: 60px; /* Abstand zum Menü */
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    font-size: 20px;
    text-align: center;
    color: white;
    animation: fadeIn 2s ease forwards;
    opacity: 0;
    overflow: visible;
    font-family: 'Fira Code', monospace;
}

/* Menü absolut fixieren, mittlerer Button in vertikaler Mitte */
.menu {
    position: absolute;
    top: 50%; /* vertikale Mitte des Viewports */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu li {
    margin: 20px 0;
    text-align: center;
}

/* Menü-Buttons */
.menu a {
    text-decoration: none;
    font-size: 24px;
    color: white;
    padding: 18px 35px;
    border-radius: 25px;
    background: #3399FF;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover-Effekte */
.menu a:hover {
    transform: scale(1.1);
    background: #1E7FD8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Ansicht */
@media screen and (max-width: 768px) {
    body {
        display: block;
        text-align: center;
        overflow: auto;
        height: auto;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .left,
    .right {
        flex: none;
        width: 100%;
    }

    .logo {
        width: 250px;
        margin-top: 30px;
    }

    .right {
        height: auto;
        padding-top: 20px;
    }

    .menu {
        position: static;
        transform: none;
        max-width: none;
        margin-top: 10px;
        width: auto;
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

	.menu li {
	    margin: 10px 0;
	}

    .menu a {
        padding: 10px 15px;
        border-radius: 20px;
        font-size: 22px;
    }

    .background-video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        z-index: -1;
    }

    /* Leitsatz Höhe reduzieren für Mobil */
    .tagline {
        margin-bottom: 30px;
        font-size: 18px;
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Anpassungen für Unterseiten */

.subpage .background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.subpage .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.subpage .container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding-top: 100px;
}

/* Stil für "Zurück zur Startseite"-Button */
.return-button {
    text-decoration: none;
    font-size: 22px;
    color: white;
    padding: 4px 25px;
    border-radius: 20px;
    background: #3399FF;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 32px;
    line-height: normal;
    margin: 10px auto;
    cursor: pointer;
}

/* Hover-Effekte für den "Zurück"-Button */
.return-button:hover {
    transform: scale(1.1);
    background: #1E7FD8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Stil für Unterseiten-Überschriften */
.subpage-title {
    text-decoration: none;
    font-size: 22px;
    color: white;
    padding: 4px 25px;
    border-radius: 20px;
    background: #3399FF;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 32px;
    line-height: normal;
    margin: 10px auto;
    cursor: default;
}

/* Hover-Effekt für die Titel */
.subpage-title:hover {
    background: #1E7FD8;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------- */
/* 🔽 Ergänzungen für bessere Textbreite 🔽 */
/* --------------------------------------- */

/* Schutz gegen Textüberlauf */
.tagline {
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Mehr Breite & Abstand für Tagline auf großen Bildschirmen */
@media screen and (min-width: 769px) {
    .tagline {
        max-width: 700px;
        margin-bottom: 80px;
    }

    .right {
        max-width: 800px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* --------------------------------------- */
/* 🔽 Ergänzung: Alle Hyperlinks weiß 🔽 */
/* --------------------------------------- */

a,
a:visited {
    color: white;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #cccccc;
}

/* Stil für Fussbereich */
.fussbereich {
	position:absolute;
    justify-content: center;
	align-items: center;
	text-align: center;
	bottom: 0;
    width: 100%;
	color: white;
}
