/* Allgemeine Styles */
body {
    font-family: "Trebuchet MS", "Calibri", Arial, sans-serif;
}

*,
*:after,
*:before {
    box-sizing: border-box;
}

#banner_1,
#banner_2,
#banner_3,
#header-right{
    display: none !important;
}
/* Page Wrapper */
.page-wrapper > * {
    z-index: 10;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}


.page-wrapper header {
    background: #000;
}

.page-wrapper .logo-container {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.page-wrapper .logo-container::after {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.1) 0%, #232833 35%, #000 62%) !important;
    background-size: auto !important;
    content: '';
    height: 100%;
    position: absolute;
    width: 100%;
    z-index: -10;
    top: 0;
}
.logo-container .logo {
    max-width: 280px;
}
/* Navigation Styles */
.mainnav {
    min-height: 40px;
}

.mainnav a {
    color: #FFF;
    text-decoration: none;
}

@media (min-width: 768px) {
    .gallery-body {
    min-height: 350px;
}
    .mainnav {
        background-color: #36393e;
    }
    .page-wrapper > *:not(header) {
    padding: 0 50px;
}
}

@media (max-width: 768px) {
    header.page > div.logo-container > div {
    display: none;
}
        .gallery-body {
    width: 100%;
}
    nav.mainnav {
    display: none;
    visibility: hidden;
}
    .page-wrapper > *:not(header) {
    padding: 0 25px;
}
    .menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: none; /* Default verstecken */
    }

    .menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

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

/* Border Colors */
.border-danger {
    border-color: #7f1d1d !important;
}

/* Toggle Button */
.menu-toggle-label {
    display: block;
    cursor: pointer;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
    margin-bottom: 10px;
}

#menuToggle:checked ~ .menu {
    display: flex;
    position: absolute;
    width: 100%;
    z-index: 100;
    background-color: rgb(255, 255, 255);
    top: 40px;
}

/* Tabs */
.tabbed {
    width: 100%;
    margin: 0 auto;
    z-index: 100;
}

.tabbed menu {
    list-style-type: none;
    display: block;
    padding-left: 0;
    width: 100%;
    margin-bottom: 1em;
    border-bottom: 1px solid silver;
    min-width: 100%;
}

.tabbed .thumb {
    width: 25%;
}

.tabbed .lines {
    margin-left: 1em;
    width: 70%;
}

.tabbed .lines h5 {
    margin: 0;
    font-size: 1.1em;
}

.tabbed .lines p {
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 680px) {
    .tabbed menu {
        margin: 0;
    }
}

.tabbed menu img {
    width: 100%;
    height: auto;
}

.tabbed > input,
.tabbed menu li {
    display: none;
}

#tab1:checked ~ menu .tab1,
#tab2:checked ~ menu .tab2,
#tab3:checked ~ menu .tab3 {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2em;
}

.tabbed div.nav label {
    float: left;
    padding: 15px 15px;
    margin-right: 10px;
    background: #7f1d1d;
    color: #eee;
    text-transform: uppercase;
}
.card-header {
     background: #7f1d1d;
    padding: 5px 10px;
    margin-bottom: 10px;
}
.card-header h2 {
    font-size: 16px;
}

@media (min-width: 450px) {
    .tabbed div.nav label {
        padding: 15px 25px;
    }
}

.tabbed div.nav label:nth-child(1) {
    border-left: 1px solid silver;
}

.tabbed div.nav label:hover {
    background: hsl(210, 50%, 40%);
}

.tabbed div.nav label:active {
    background: hsl(210, 50%, 50%);
}

.tabbed div.nav label:not(:last-child) label {
    border-right-width: 0;
}

.tabbed menu {
    clear: both;
}

.tabbed .nav {
    justify-content: center;
}

.tabbed menu > li {
    padding: 20px;
    width: 100%;
    border: 1px solid silver;
    background: hsl(200, 40%, 96%);
    line-height: 1.5em;
    letter-spacing: 0.3px;
    color: #444;
}

/* Active Tab Styles */
#tab1:checked ~ div.nav label[for="tab1"],
#tab2:checked ~ div.nav label[for="tab2"],
#tab3:checked ~ div.nav label[for="tab3"] {
    background: hsl(200, 40%, 96%);
    color: #111;
    position: relative;
    border-bottom: none;
}

#tab1:checked ~ div.nav label[for="tab1"]:after,
#tab2:checked ~ div.nav label[for="tab2"]:after,
#tab3:checked ~ div.nav label[for="tab3"]:after {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    left: 0;
    bottom: -1px;
}

/* Tab Image Styles */
.tab-img {
    height: 250px;
    /*margin-bottom: -55px;*/
    z-index: -10;
}
#brandCarousel img {
    max-width: 40%;
    max-height: 50px;
    aspect-ratio: 16 / 9 auto;
    margin: auto;
    margin-bottom: 2rem
}

/* Navigation verstecken und animieren */
#nav {
    position: fixed; /* Position relativ zu <main> */
    top: 0;
    left: 0; /* Menü außerhalb des Sichtbereichs */
    max-width: 400px; /* Breite des Menüs */
    height: 100%; /* Höhe des Containers */
    background-color: #f8f9fa;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    z-index: 1000; /* Damit das Menü immer sichtbar ist */
}

/* Menü anzeigen, wenn Checkbox aktiviert */
#menuKat:checked ~ #nav {
    transform: translateX(0); /* Menü ins Sichtfeld schieben */
}

/* Styling für das Label */
.menu-cat-label {
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

#menuKat:checked + .menu-cat-label {
    background-color: #000;
    color: #fff;
}
#nav_wrapper { z-index: 100; }


.gallery input[type="radio"] {
    visibility: hidden;
    position: absolute;
}

.gallery-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.9);
    z-index: 1;
}

.gallery-body {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-body img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

.gallery-navigation {
    text-align: center;
    margin-top: 10px;
}

.gallery label {
    display: inline-block;
    margin: 5px;
    cursor: pointer;
    border: : 1px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.gallery label:hover {
    border-color: #de4c01;
}

.gallery label img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}
menu, ol, ul {
    list-style: square;
    margin: 0 0 0 1.2rem;
    padding: 0;
}

/*
.gallery > .inputlabel:nth-child(1):checked ~ .gallery-body .gallery-image:nth-child(1),
.gallery > .inputlabel:nth-child(2):checked ~ .gallery-body .gallery-image:nth-child(2),
.gallery > .inputlabel:nth-child(3):checked ~ .gallery-body .gallery-image:nth-child(3),
.gallery > .inputlabel:nth-child(4):checked ~ .gallery-body .gallery-image:nth-child(4),
.gallery > .inputlabel:nth-child(5):checked ~ .gallery-body .gallery-image:nth-child(5),
.gallery > .inputlabel:nth-child(6):checked ~ .gallery-body .gallery-image:nth-child(6),
.gallery > .inputlabel:nth-child(7):checked ~ .gallery-body .gallery-image:nth-child(7),
.gallery > .inputlabel:nth-child(8):checked ~ .gallery-body .gallery-image:nth-child(8) {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.gallery-image {
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    animation-duration: 20s;
    animation-name: gallery-animation;
}

.inputlabel:checked ~ .gallery-body .gallery-image {
    animation: none;
}
*/

/* Galerie-Bild - Standardzustand */
.gallery-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.9);
    z-index: 1;
}

/* Sichtbares Galerie-Bild, wenn ausgewählt */
.gallery > .inputlabel:nth-child(1):checked ~ .gallery-body .gallery-image:nth-child(1),
.gallery > .inputlabel:nth-child(2):checked ~ .gallery-body .gallery-image:nth-child(2),
.gallery > .inputlabel:nth-child(3):checked ~ .gallery-body .gallery-image:nth-child(3),
.gallery > .inputlabel:nth-child(4):checked ~ .gallery-body .gallery-image:nth-child(4),
.gallery > .inputlabel:nth-child(5):checked ~ .gallery-body .gallery-image:nth-child(5),
.gallery > .inputlabel:nth-child(6):checked ~ .gallery-body .gallery-image:nth-child(6),
.gallery > .inputlabel:nth-child(7):checked ~ .gallery-body .gallery-image:nth-child(7),
.gallery > .inputlabel:nth-child(8):checked ~ .gallery-body .gallery-image:nth-child(8) {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    animation: gallery-click-animation 0.5s ease-out;
}
/* Das erste Bild soll standardmäßig sichtbar sein */
.gallery > .inputlabel:nth-child(1):checked ~ .gallery-body .gallery-image:nth-child(1),
.gallery-body .gallery-image:first-child {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
nav ul.menu  {
    line-height: 40px;
}
/* Klickanimation */
@keyframes gallery-click-animation {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Entferne die globale Animation */
.gallery-image {
    animation: none;
}

.gallery-image:nth-child(1) {
    animation-delay: 0s;
}

.gallery-image:nth-child(2) {
    animation-delay: 3s;
}

.gallery-image:nth-child(3) {
    animation-delay: 6s;
}

.gallery-image:nth-child(5) {
    animation-delay: 9s;
}

.gallery-image:nth-child(6) {
    animation-delay: 12s;
}

.gallery-image:nth-child(7) {
    animation-delay: 15s;
}

.gallery-image:nth-child(8) {
    animation-delay: 18s;
}

@keyframes gallery-animation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        z-index: 2;
    }
    25%, 75% {
        opacity: 0;
        transform: scale(0.9);
        z-index: 1;
    }
}
/* Verstecke die Checkbox */
.menu-toggle {
    display: none;
}
ul#menu-container {
    margin: 0;
}
/* Styling für das Hauptmenü */
.menu-cat-label {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    position: relative;
    line-height: normal;
}

/* Plus-Icon */
.menu-cat-label::before {
    content: '+';
    font-size: 1rem;
    color: #666;
    transition: transform 0.3s ease;
}

/* Minus-Icon, wenn aktiv */
.menu-toggle:checked + .menu-cat-label::before {
    content: '-';
    transform: rotate(180deg);
    color: #000;
}

/* Standardzustand: Untermenü verstecken */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Wenn die Checkbox aktiviert ist, Untermenü anzeigen */
.menu-toggle:checked + .menu-cat-label + .submenu {
    max-height: 100%; /* Passe die Höhe an deinen Inhalt an */
    overflow: visible;
    padding-top: 10px;
}

/* Styling für das Untermenü */
.submenu li {
    margin-left: 1rem;
    line-height: 28px;
}
.submenu li a {
    text-decoration: none;
    color: #555;
}
.submenu li a:hover {
    color: #000;
    text-decoration: underline;
}

.cat-item {
    border-color: #dbdbdb;
    padding: 10px 0 10px 0;
}
