/*
 Theme Name:   Fotobuch
 Theme URI:    http://example.com/generatepress-child/
 Description:  GeneratePress Child Theme
 Author:       DS
 Author URI:   http://example.com
 Template:     generatepress
 Version:      1.0.0
*/

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.inside-article {
    padding: 0 !important;
  }
  
.entry-title {
    display: none !important;
}
  
#page {
    max-width: inherit;
}

@media (max-width: 767px) {
    #page {
        margin-top: 6rem;
    }
}
  
.e-con-inner {
    /*margin: 0 !important;
    width: 100% !important;
    max-width: inherit !important;*/
}

#primary-menu > li > a {
    text-transform: uppercase;
    color: inherit;
}

#primary-menu a {
    color: inherit;
    padding: 1rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    #primary-menu a {
        padding: 0.5rem;
        font-size: 12px;
    }
}

.sub-menu a {
    padding: 0rem !important;
  }

#primary-menu > li > a:hover,
#primary-menu a:hover {
    color: #ed683f;
}

body,
html {
    background: none;
}

/* Neue Regel für selektierte Elemente */
::selection {
    background-color: #91a67f; /* Sekundäre Farbe */
    color: #fff; /* Textfarbe für besseren Kontrast */
}

/* Branding Zeile Styles */
.logo {
    margin-left: 0; /* Entfernen des linken Paddings */
    flex-grow: 0; /* Verhindert, dass das Logo flexibel wächst */
}
.logo img {
    max-height: 80px;
    width: auto;
    margin-left: 0; /* Stellt sicher, dass das Logo keine zusätzliche linke Margin hat */
}

.cta a {
    font-weight: bold;
}

/* Primärfarbe und Hover-Farbe für den CTA-Button */
.bg-primary {
    background-color: #0056b3;
}

.hover-bg-primary-dark:hover {
    background-color: #004494;
}

.active-bg-primary-light:active {
    background-color: #0066cc;
}

.text-text-light {
    color: #ffffff;
}

.site-branding-container {
    display: none;
}

.nav-float-right #site-navigation {
	margin-left: 0;
}

.inside-site-info.grid-container {
    display: none;
}

.social-media-links {
    display: flex;
    justify-content: center;
    height: 100%;
}

.social-media-links a {
    transition: all 0.3s ease;
}

.social-media-links a:hover {
    color: #0056b3;
    transform: scale(1.1);
}

.social-media-links svg {
    width: 32px;
    height: 32px;
}

.bg-footer {
    background: #f2ede9;
}

@media (max-width: 767px) {
    .social-media-container {
        position: relative;
    }
    
    .social-media-links {
        flex-direction: row;
    }
}


/* Styles für das erweiterte Menü */
.menu-item {
    position: relative;
}

/* Styles für das Dropdown-Menü */
.sub-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    /*max-width: 900px;*/ /* Maximale Breite */
    width: auto; /* Automatische Breite */
    border-radius: 8px;
    overflow: hidden;
}

.menu-item-has-children:hover > .sub-menu-container {
    display: block;
}

.sub-menu-wrapper {
    display: flex;
    width: 100%;
    flex-wrap: nowrap; /* Verhindert Umbruch der Flex-Elemente */
}

.sub-menu-list-container {
    width: 50vw; /* Feste Breite von 50vw */
    background: #fff;
    flex-shrink: 0; /* Verhindert Schrumpfen */
    min-width: 300px; /* Erhöhte Mindestbreite */
}

.sub-menu {
    padding: 20px;
}

.sub-menu-image-container {
    flex: 1;
    width: calc(100vw - 400px); /* Volle Breite minus 400px */
    padding: 20px;
    background: #f9f9f9;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-width: 300px;
    gap: 0;
    overflow: hidden; /* Verhindert Überlauf */
}

.sub-menu-image-container > * {
    display: none; /* Standardmäßig alle ausblenden */
}

/* Nur die ersten 4 Elemente anzeigen */
.sub-menu-image-container > *:nth-child(-n+4) {
    display: block;
}

/* Erste Reihe */
.sub-menu-image-container > *:nth-child(-n+2) {
    grid-row: 1;
}

/* Zweite Reihe */
.sub-menu-image-container > *:nth-child(n+3):nth-child(-n+4) {
    grid-row: 2;
}

/* Linke Spalte */
.sub-menu-image-container > *:nth-child(2n+1):nth-child(-n+4) {
    grid-column: 1;
}

/* Rechte Spalte */
.sub-menu-image-container > *:nth-child(2n):nth-child(-n+4) {
    grid-column: 2;
}

.sub-menu .menu-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: relative;
}

.sub-menu .menu-item:last-child {
    border-bottom: none;
}

.sub-menu .menu-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333; /* Textfarbe für bessere Sichtbarkeit */
    text-decoration: none;
}

.menu-item-discount {
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

.menu-item-arrow {
    font-size: 1.2em;
}

.sub-menu-image-container {
    flex: 1;
    padding: 20px;
    background: #f9f9f9; /* Hintergrundfarbe für den Bildbereich */
}

.menu-item-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1vw;
    width: 100%;
}

.menu-item-image-wrapper a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.menu-item-title {
    margin-bottom: 5px;
    text-align: left;
    width: 100%;
    line-height: 18px;
}

.menu-item-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-image-wrapper:hover .menu-item-image {
    transform: scale(1.05);
}

.menu-item-details {
    width: 100%;
    margin-top: 5px;
    line-height: 18px;
}

.menu-item-price {
    font-weight: normal;
    text-transform: none;
    font-size: 0.75rem;
}

.menu-item-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.footer-menu-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.footer-menu-toggle .toggle-icon.rotate-180 {
    transform: rotate(180deg);
}

.mobile-cta-buttons {
    background-color: #f2ede9; /* Gleiche Farbe wie der Footer-Hintergrund */
}

.mobile-cta-buttons a {
    transition: background-color 0.3s ease;
}

.mobile-cta-buttons a:hover {
    background-color: #d54d22; /* Dunklere Variante der Primärfarbe */
}

/* MwSt Hinweis Styling */
.mwst-hinweis-section {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    display: block;
    clear: both;
}

.mwst-hinweis-section .widget {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.mwst-hinweis-section .mwst-hinweis-text {
    font-size: 14px;
    display: block;
    width: 100%;
    margin: 0 auto;
}

.site-info {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    display: block;
    clear: both;
}

.copyright-bar {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .mwst-hinweis-section .mwst-hinweis-text {
        font-size: 16px;
    }
}

.social-media-links svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

@media (min-width: 768px) {
    .social-media-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .social-media-links {
        margin-top: 20px;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}


.menu-item-image-wrapper a:hover .menu-item-title,
.menu-item-image-wrapper a:hover .menu-item-arrow,
#primary-menu a:hover {
    color: #ed683f; /* Hover-Farbe für alle Menülinks */
}

/* Styles für den dünnen Pfeil als Outline */
.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-left: 5px;
    position: relative;
    top: -2px;
}

.menu-item-has-children > a:hover::after {
    border-color: #ed683f;
}

.sub-menu .menu-item a:hover {
    background-color: #f0f0f0;
}

.main-navigation .main-nav ul li.menu-item-has-children > a {
    padding-right: initial;
  }
@media (max-width: 767px) {
    /* Contact Slider Styles */
    .contact-slider {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 40px;
        overflow: hidden;
        z-index: 1002;
        padding: 8px 0;
        background: #f2ede9;
    }

    .contact-slider .slide {
        position: absolute;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease-in-out;
        text-align: center;
    }

    .contact-slider .slide.active {
        opacity: 1;
        visibility: visible;
    }

    .inside-header {
        display: flex;
        align-items: center;
        justify-content: space-between;

    }

    .branding-line {
        position: fixed;
        width: 100%;
        top: 40px; /* Startposition unter der Kontaktzeile */
        z-index: 1001;
        background-color: #fff;
        transition: top 0.3s ease-in-out;
        margin-bottom: -2rem;
        will-change: top;
    }

    body .branding-line.menu-open {
        top: 0;
    }

    .branding-line.sticky {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }


    .inside-header.grid-container {
        display: none;
      }
      
    .burger-menu {
        margin-left: auto;
    }

    .burger-icon,
    .burger-icon::before,
    .burger-icon::after {
        content: '';
        display: block;
        background: #333;
        height: 3px;
        width: 36px;
        transition: all 0.3s ease-in-out;
        position: absolute;
        border-radius: 2px;
    }

    #mobile-menu-toggle {
        background: transparent;
        width: 36px;
        height: 36px;
    }

    .burger-icon::before {
        top: -12px;
    }

    .burger-icon::after {
        bottom: -12px;
    }

    .menu-open .burger-icon {
        background: transparent;
    }

    .menu-open .burger-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-open .burger-icon::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .logo img {
        max-height: 56px; /* 30% smaller than 80px */
    }
}

#mobile-menu ul {
    list-style-type: none;
    padding: 0;
}

#mobile-menu ul {
    position: relative;
}

#mobile-menu ul::before {
    content: '';
    display: block;
    height: 2px;
    background-color: #eee;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
}

#mobile-menu ul li {
    padding: 0.25rem 1rem;
    border-bottom: none;
}

#mobile-menu ul li a {
    color: #675f5c;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: normal;
    width: 100%;
}


#mobile-menu .sub-menu {
    padding-left: 1rem;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu .menu-item-has-children > a .toggle-icon {
    display: inline-block;
    margin-left: auto;
    transition: transform 0.3s ease;
}

#mobile-menu .menu-item-has-children.active > .parent-item .toggle-icon {
    transform: rotate(180deg);
}

#mobile-menu ul li .parent-item {
    cursor: pointer;
    width: 100%;
}

#mobile-menu ul li .flex-grow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#mobile-menu ul li .text-2xl {
    font-size: 28px;
    color: #5d524c; /* Gleiche Farbe wie die Menüpunkte */
}

#close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

#mobile-menu ul {
    list-style-type: none;
    padding: 0;
}

#mobile-menu ul li:last-child {
    border-bottom: none;
}

#mobile-menu .bg-secondary {
    background-color: #91a67f;
    transform: skew(-20deg);
    border-radius: 0;
}

#mobile-menu .bg-secondary span {
    display: inline-block;
    transform: skew(20deg);
}
