/* Überprüfung 
* {
    outline: 1px solid red;
}
    */

/* Fonts initialization */

@font-face {
    font-family: 'Propaganda';
    src: url('./fonts/Propaganda-Regular.otf') format('opentype');
}

/* general Global Style */

img {
    border-radius: 0 !important;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff !important;
}

main {
    flex: 1;
}

/* Navbar */

.navbar {
    margin-top: 0 !important;
}

.navbar-nav {
    font-size: x-large !important;
    gap: 1rem;
    margin-left: 1rem;
}

.navbar-custom {
    display: flex;
    justify-content: flex-start; /* WICHTIG */
    align-items: center;
    gap: 1rem;
}

.nav-item {
    font-size: x-large!important;
}

.bg-primary {
    background-color: #693d94!important;
}

/* Header Image */

.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0px;
}

.header-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    width: 115px;
    height: 115px;
    flex-shrink: 0;
}

.text-overlay {
    color: white;
    font-weight: bold;
    font-size: 96px;
    line-height: 1.2;
    text-align: center;
    font-family: 'Propaganda', sans-serif;
    white-space: nowrap;
}

/* Media Control for Header */

.mobile-break {
    display: none;
}

@media (max-width: 1200px) and (min-width: 769px) { /* Tablet-View */

    .header-brand {
        gap: 1rem;
    }

    .header-logo {
        width: 77px;
        height: 77px;
    }

    .navbar-nav {
        font-size: large !important;
        gap: 16px;
    }

    .nav-item {
        font-size: large !important;
    }

    .text-overlay {
        font-size: 64px;
        text-align: center;
        line-height: 1.2;
    }
}

@media (max-width: 768px) { /* Handy-View */

    /* Bild soll den ganzen Screen füllen */
    .image-wrapper > img {
        width: 100vw;
        height: auto;
        border-radius: 0px;
    }

    .header-brand {
        gap: 0.75rem;
    }

    .header-logo {
        width: 43px;
        height: 43px;
    }

    /* Text kleiner + sauberer Umbruch */
    .text-overlay {
        font-size: 18px;
        text-align: center;
        line-height: 1.2;
    }

    /* erzwingt Umbruch nur auf Mobile */
    .mobile-break {
        display: block;
    }

    .navbar-custom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .navbar-nav {
        flex-direction: row !important;  /* verhindert stacking */
        flex-wrap: nowrap;
        overflow-x: auto;               /* scroll wenn zu breit */
        white-space: nowrap;
        gap: 10px;
    }

    .navbar-nav::-webkit-scrollbar {
        display: none; /* optional cleaner look */
    }

    .nav-item {
        font-size: 14px !important;
        padding: 0 8px;
    }
}

/* Footer */

.footer {
    background-color: #444444;
    color: white;
    padding: 20px 0;
    font-size: 12px;
}

.footer-row {
    display: flex;
    justify-content: space-evenly; /* gleichmäßig verteilen */
    align-items: center;           /* vertikal zentrieren */
    text-align: center;            /* Inhalt zentrieren */
}

.footer .col {
    flex: 1;
}

.contact-link a {
    color: white;
    text-decoration: none;
}

.contact-link a:hover {
    text-decoration: underline;
    color: #cccccc;
}

@media (max-width: 768px) { /* Handy-View */
    .contact-link a {
    font-size: 8px;
}

}

/* About Seite - Bilder */

.about-img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: 0.5rem auto;
    border-radius: 4px;
}

.about-img-left {
    float: left;
    max-width: 45%;
    margin: 0 1.5rem 1rem 2.5rem;
    border-radius: 4px;
}

.about-img-right {
    float: right;
    max-width: 45%;
    margin: 0 2.5rem 1rem 1.5rem;
    border-radius: 4px;
}

.about-content {
    display: block;
}

.about-img-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    clear: both;
}

.about-img-row .about-img {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    margin: 0;
}

@media (max-width: 768px) {
    .about-img {
        max-height: 200px;
    }

    .about-img-left,
    .about-img-right {
        float: none;
        max-width: 100%;
        margin: 0.5rem auto;
    }

    .about-img-row {
        flex-direction: column;
        align-items: center;
    }

    .about-img-row .about-img {
        min-width: auto;
    }
}

/* Allgemeine Details */

.btn-primary {
    background-color: #693d94 !important;
    border-color: #693d94 !important;
}

/* Texte */

.jumbotron {
    border: 1px solid rgba(0, 0, 0, .125);
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: #e9ecef !important;
}

.text-layout {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
}

/* Foto-Lightbox */

.gallery-link {
    display: block;
    text-decoration: none;
    border-radius: none;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0px;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-caption:empty {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0 1rem;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

body.lightbox-locked {
    overflow: hidden;
}

@media (max-width: 576px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }

    .lightbox-nav {
        font-size: 2rem;
    }
}

/* Galerie

.card {
    background-color: #e9ecef !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-img-frame {
    width: 100%;
    height: 300px;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.card-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body .btn {
    margin-top: auto;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.hidden {
    display: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.left {
    left: 30px;
}

.right {
    right: 30px;
}

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 16px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;

    object-fit: cover;

    cursor: pointer;

    border-radius: 8px;

    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}


@media (max-width: 1200px) and (min-width: 769px) {

    .nav-logo {
        width: 45px;
        height: 45px;
    }

    .navbar-nav {
        font-size: large !important;
        gap: 16px;
    }

    .nav-item {
        font-size: large !important;
    }

    .text-overlay {
        font-size: 64px;
        text-align: center;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {

    /* Bild soll den ganzen Screen füllen 
    .image-wrapper img {
        width: 100vw;
        height: auto;
    }

    /* Text kleiner + sauberer Umbruch *
    .text-overlay {
        font-size: 18px;
        text-align: center;
        line-height: 1.2;
    }

    /* erzwingt Umbruch nur auf Mobile *
    .mobile-break {
        display: block;
    }

    .navbar-custom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
    }

    .navbar-nav {
        flex-direction: row !important;  /* verhindert stacking *
        flex-wrap: nowrap;
        overflow-x: auto;               /* scroll wenn zu breit *
        white-space: nowrap;
        gap: 10px;
    }

    .navbar-nav::-webkit-scrollbar {
        display: none; /* optional cleaner look *
    }

    .nav-item {
        font-size: 14px !important;
        padding: 0 8px;
    }
}

.footer {
    width: 100%;
    height: 60px;
    background-color: #444444 !important;
    color: white;
    padding: 10px;
}


/* unuesed




}