/* main.css */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

.work-sans-400 {
    font-family: "Work Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }


body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Tarnac',"Work Sans", "Helvetica", "Arial", "ITCAmericanTypewriterStdMedium", "sans-serif";
    font-size: 1rem;
    overflow-x: hidden;
}

.navigation {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
}

.navigation .logo {
    margin-bottom: 2rem;
    max-width: 100%;
}

.navigation .close-nav {
    display: none;  /* Hidden by default for desktop */
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 32px;  /* Make it bigger */
    color: #333;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
    z-index: 101;  /* Ensure it's above other navigation content */
}

/* Navigation structure */
.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation li {
    position: relative;
}

/* Hide all submenus by default */
.navigation .submenu {
    display: none;
    transition: all 0.3s ease;
}

.navigation .submenu.visible {
    display: block;
}

.navigation .always-visible {
    display: block;
}

.navigation > ul > li {
    font-size: small;
    margin-bottom: 10px;
}

.navigation ul ul li {
    font-size: 1rem;
    margin-left: 1rem;
}

/* Update toggle button positioning */
.toggle-submenu {
    position: absolute;
    right: 0;
    top: 0.5rem;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.open > .toggle-link .toggle-submenu {
    transform: translateY(-50%) rotate(45deg);
}

/* Section link styling */
.section-link {
    font-style: italic;
    color: #666;
}

/* Indent levels */
.navigation ul ul {
    padding-left: 0px;
}

.navigation .top-level > a {
    font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .navigation .submenu {
        display: none;
    }
    
    .navigation .always-visible {
        display: block;
    }
    
    .has-children.open > .submenu {
        display: block;
    }
}

.warenkorb{
    font-size: 1rem!important;
}

@media (max-width: 768px) {
    .navigation .logo {
        display: none;
    }
    
    .navigation .close-nav {
        display: block;
    }
    
    .mobile-header {
        display: block!important;
    }

    .content {
        padding-top: 2rem;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .burger-menu.hidden {
        visibility: hidden;
    }
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation > ul > li {
    font-size: small;
    margin-bottom: 10px;
}

.navigation ul ul li {
    font-size: 1rem;
}

.navigation a {
    text-decoration: none;
    color: #000;
}

.navigation a:hover {
    color: #666;
}

.navigation a.active {
    color: #6699ff;
}

.content {
    margin-left: 290px;
    padding: 20px;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: #fff;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 1.5rem;
    font-family: 'Tarnac',"ITCAmericanTypewriterStdMedium", "sans-serif";
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 50px;  /* Increase gap between grid items */
    padding: 20px;
}

.image-item {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 200px; /* Minimum height to prevent overflow */
}

.image-item img {
    width: 100%;
    aspect-ratio: 1; /* Forces square shape */
    object-fit: cover;
    margin-bottom: 15px;
    cursor: pointer;
}

.image-info {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    padding-top: .5rem;
    border-top: 1px solid #ccc;
    flex: 1;
}

.info-text {
    margin-bottom: 1rem;
}

.info-text div {
    margin-bottom: 0.5rem;
}

.purchase-info {
    margin-top: auto; /* Push to bottom */
    padding-top: 1rem;
    background: #fff;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 1rem;
}

.cart-button.disabled {
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.cart-button.disabled:hover {
    background: none;
    color: #999;
}

.price-container.invisible {
    visibility: hidden;
    margin-top: 1rem;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    touch-action: none;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    padding: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 1002; /* Ensure it's above the image */
}



.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: white;
}

.lightbox-info {
    position: absolute;
    bottom: -30px;
    left: 0;
    color: white;
    font-size: 0.8rem;
    max-width: 100%;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .navigation {
        transform: translateX(-100%);
    }
    
    .navigation.active {
        transform: translateX(0);
    }
    
    .burger-menu, .burger-menu div {
        display: inline-block;
        vertical-align: top!important;
        padding-top: 5px!important;
    }

    .site-title {
        margin-left: 1rem;
        line-height: 1.5rem;
        display: inline-block!important;
        vertical-align: top!important;
    }
    
    .content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    #content {
        margin-top: 4rem;
        padding-left: 0px;
    }
}


    /* Portrait */
    @media (max-width: 768px) and (orientation: portrait) {
        .image-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }
    
    /* Landscape */
    @media (max-width: 768px) and (orientation: landscape) {
        .image-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
    }


/* Toast */

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    transform: translateX(-50%);
    background: yellow;
    color: black;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* Cart Button */
.cart-button {
    display: inline-block;
    background: none;
    color: #333;
    padding: 8px 16px;
    font-family: 'Tarnac',"Helvtica", "Arial","ITCAmericanTypewriterStdMedium", "sans-serif";
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
    border: 2px solid #333;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-button:hover {
    background: #333;
    color: #fff;
}


/* Shopping Cart Page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cart-table tr {
    transition: opacity 0.3s ease;
}

.cart-table td {
    transition: all 0.3s ease;
}

.cart-total span {
    transition: all 0.3s ease;
}

/* Add a class for smooth fade effects */
.cart-updating {
    opacity: 0.5;
}

.cart-table th,
.cart-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.cart-table img {
    max-width: 100px;
    height: auto;
}

.cart-quantity {
    width: 60px;
    padding: 5px;
}

.cart-remove {
    color: red;
    cursor: pointer;
    font-size: 2rem;
}

.cart-summary {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
}

.cart-total {
    font-weight: bold;
    margin-top: 10px;
}

.cart-checkout {
    margin-top: 20px;
}

.cart-checkout button {
    background: #6699ff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-row textarea {
    height: 100px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#captcha {
    width: 100px;
}

.order-details {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
}

.checkbox-container label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-container a {
    color: inherit;
    text-decoration: underline;
}

.checkbox-container a:hover {
    color: #666;
}

#content {
    padding-left: 1rem;
}

#content a {
    color: black;
    text-decoration: none;
    border-bottom: 1px dotted;
}

#content p{
    max-width: 60vw;
    color: #333;
}

strong {
    font-weight: bold;
}

.no-link {
    text-transform: uppercase;
    font-size: 1rem;
}