/* Merriweather Regular 400 */
@font-face {
    font-family: 'Merriweather';
    src: url('assets/fonts/Merriweather/Merriweather-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Merriweather Bold 700 */
@font-face {
    font-family: 'Merriweather';
    src: url('assets/fonts/Merriweather/Merriweather-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Roboto Condensed Light 300 */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('assets/fonts/Roboto_Condensed/static/RobotoCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Roboto Condensed Regular 400 */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('assets/fonts/Roboto_Condensed/static/RobotoCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

h1, h2 {
    font-family: 'Merriweather', serif;
    margin-bottom: 2em;
}

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

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: #fff;
    background-color: #111;
}

a {
    text-decoration: none;
    color: #fff;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    padding: 2% 5%;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 10vh;
    width: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0 2vw;
}

/* Hamburger-Button: auf Desktop ausgeblendet */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: inherit;
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 999;
        padding: 0;
    }

    .bar {
        height: 3px;
        width: 25px;
        background-color: white;
        margin: 4px 0;
        transition: all 0.3s ease;
    }

    .nav-list.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        margin-left: auto;
        padding: 10px;
        margin-top: 4vh;
        margin-right: 4vh;
        z-index: 1000;
    }
}

.nav-placeholder {
    padding-top: 15vh;
}

/* Hero */
.hero {
    position: fixed;
    height: 45vh;
    left: 0;
    right: 0;
    z-index: -2;
    background-image: url('content/videoframe.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0vh;
}

.hero-placeholder {
    padding-top: 45vh;
}

/* Shadow Overlay */
#shadow-overlay {
    position: relative;
    width: 100%;
    height: 5vh;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

@media (max-width: 768px) {
    .video-background {
        display: none !important;
    }

    .hero {
        background-size: cover;
        background-position: center top;
        height: 40vh;
        min-height: 50vh;
        margin-top: 0vh;
    }

    .hero-placeholder {
        padding-top: 40vh;
    }
}

/* Niets Section */
.niets-section {
    position: relative;
    left: 0;
    right: 0;
    background-color: #000;
    padding: 10vh;
    text-align: center;
    color: #fff;
    z-index: 10;
}

.niets-title {
    font-size: 3em;
    margin-bottom: 2vh;
}

.niets-description {
    font-size: 1.5em;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background-color: #000;
    padding: 10vh 5vw;
    text-align: center;
}

.about-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.about-image {
    display: flex;
    order: 2;
}

.about-image img {
    width: 300px;
    height: auto;
    border-radius: 10px;
}

.about-text {
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border: 2px solid #fff;
    border-radius: 10px;
    max-width: 600px;
    margin: 0;
    order: 1;
}

.about-text::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

/* Portfolio */
.portfolio-section {
    left: 0;
    right: 0;
    background-color: #000;
    padding: 5vw;
    text-align: center;
    z-index: 10;
}

.portfolio-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.portfolio-gallery {
    display: flex;
    overflow-x: auto; /* Ermöglicht horizontales Scrollen */
    scroll-snap-type: x mandatory; /* Ermöglicht ein sanftes Einrasten */
    -webkit-overflow-scrolling: touch; /* Flüssiges Scrollen auf iOS */
    gap: 10px; /* Abstand zwischen den Bildern */
}

.portfolio-gallery a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portfolio-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari und Edge */
}

.portfolio-gallery img {
    width: 350px; /* Erhöhte Breite für Desktop */
    max-width: 100%; /* Bild bleibt unter Kontrolle */
    height: auto;
    border-radius: 8px;
    scroll-snap-align: start;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .portfolio-gallery img {
        width: 70%; /* Dynamische Breite für mobile Ansicht */
        max-width: none;
    }
}

.portfolio-prev, .portfolio-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.portfolio-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.portfolio-next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.portfolio-prev:hover, .portfolio-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.portfolio-prev.hidden, .portfolio-next.hidden {
    display: none;
}

/* Vision Section */
.vision-section {
    left: 0;
    right: 0;
    background-color: #000;
    padding: 10vh 5vw;
    text-align: center;
    z-index: 10;
}

.vision-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.vision-image {
    display: flex;
    order: 1;
}

.vision-image img {
    width: 300px;
    height: auto;
    border-radius: 10px;
}

.vision-text {
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border: 2px solid #fff;
    border-radius: 10px;
    max-width: 600px;
    margin: 0;
    order: 2;
}

.vision-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

/* Social Media */
.social-media-section {
    left: 0;
    right: 0;
    background-color: #000;
    padding: 5vw;
    text-align: center;
    margin-top: 0;
    z-index: 10;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2vw;
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bs-icon {
    height: 50px;
    width: auto;
    filter: invert(1);
    transition: transform 0.3s, filter 0.3s;
}

.bs-icon:hover {
    transform: scale(1.1);
    filter: invert(0.7);
}

.text-container {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 5vh 2vw;
    background-color: #333;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Mobile Schriftanpassungen */
@media (max-width: 768px) {
    /* Niets Section */
    .niets-title {
        font-size: 1.8em;
    }

    .niets-description {
        font-size: 0.9em;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image img {
        width: 100%;
        max-width: 250px;
        margin-bottom: 20px;
    }

    .about-text {
        max-width: 90%;
        font-size: 0.9em;
    }

    /* Portfolio Section */
    .portfolio-section h1 {
        font-size: 1.8em;
    }

    .portfolio-gallery img {
        width: 150px; /* Reduzierte Breite für mobiles Layout */
    }

    /* Vision Section */
    .vision-content {
        flex-direction: column;
        align-items: center;
    }

    .vision-image img {
        width: 100%;
        max-width: 250px;
        margin-bottom: 20px;
    }

    .vision-text {
        max-width: 90%;
        font-size: 0.9em;
    }

    /* Social Media Icons */
    .social-icons .text-container {
        font-size: 0.75em;
    }
}

/* ---------- Ergänzungen (Überarbeitung 2026) ---------- */

/* Absätze in den Textboxen */
.about-text p + p,
.vision-text p + p {
    margin-top: 1em;
}

.text-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-link:hover {
    color: #ccc;
}

/* Überschrift im Link-Bereich (vorher h3) */
.section-title-small {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

/* Sichtbarer Tastatur-Fokus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Footer-Links */
.footer-links {
    margin-top: 0.5em;
    font-size: 0.9em;
}

.footer-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links span {
    margin: 0 0.5em;
}

/* Rechtstexte (impressum.html) */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 6vh 5vw 10vh;
    background-color: #000;
    line-height: 1.7;
}

.legal-page h1 {
    font-size: 2em;
    margin-bottom: 1em;
}

.legal-page h2 {
    font-size: 1.4em;
    margin: 2em 0 0.75em;
}

.legal-page h3 {
    font-size: 1.05em;
    margin: 1.5em 0 0.5em;
}

.legal-page p,
.legal-page ul,
.legal-page address {
    margin-bottom: 1em;
    font-style: normal;
}

.legal-page ul {
    padding-left: 1.25em;
}

.legal-page a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page .back-link {
    display: inline-block;
    margin-bottom: 2em;
}

.legal-page .meta {
    margin-top: 3em;
    color: #aaa;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .legal-page {
        font-size: 0.9em;
    }
}

.nowrap {
    white-space: nowrap;
}
