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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

a {
    color: #524238;
    text-decoration: underline;
}

a:hover {
    color: #8B4513;
}

/* Email links - stand out style */
a[href^="mailto:"] {
    color: #8B4513;
    text-decoration: underline;
}

a[href^="mailto:"]:hover {
    color: #524238;
}

/* WhatsApp links - stand out style */
a[href*="wa.me"] {
    color: #8B4513;
    text-decoration: underline;
}

a[href*="wa.me"]:hover {
    color: #524238;
}

/* Social icons */
.social-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 4px 0 0;
}

body {
    background-color: #f1ece2;
    font-family: 'Lato', sans-serif;
    background-image: url('/assets/rice-paper.png');
    background-repeat: repeat;
    min-height: 100vh;
    position: relative;
}

.header {
    background-color: #f1ece2;
    background-image: url('/assets/tileable-wood-colored.png');
    background-repeat: repeat;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    gap: 20px;
}

.hamburger-menu {
    position: absolute;
    right: 20px;
}

.logo-link {
    display: block;
}

.logo-link object {
    pointer-events: none;
}

.logo-header {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.hamburger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-icon {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: #f1ece2;
    background-image: url('/assets/rice-paper.png');
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
}

.menu-overlay.active {
    display: block;
    transform: translateX(0);
}

.menu-overlay ul {
    list-style: none;
}

.menu-overlay li {
    margin-bottom: 25px;
}

.menu-overlay a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.menu-overlay a:hover {
    color: #8B4513;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.main-content {
    padding: 20px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.home-content {
    justify-content: center;
    align-items: center;
}

.contact-info {
    text-align: center;
    max-width: 600px;
}

.contact-info address {
    font-style: normal;
    line-height: 1.6;
    margin-top: 10px;
}

.logo-main {
    max-width: 90%;
    max-height: 70vh;
    width: 400px;
    height: auto;
}

#map,
.map-container {
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 40px auto;
    display: block;
    align-self: flex-start;
}

.content-page {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4,
.content-page h5,
.content-page h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #524238;
    margin-bottom: 20px;
}

.content-page p {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #524238;
}

.content-page a {
    color: #524238;
    text-decoration: none;
}

.content-page a:hover {
    color: #8B4513;
    text-decoration: underline;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #524238;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    background-color: #f1ece2;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Popup Modal */
.popup-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #f1ece2;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.popup-text {
    color: #524238;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-text a {
    color: #8B4513;
    text-decoration: underline;
}

.popup-text a:hover {
    color: #524238;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #524238;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #8B4513;
    opacity: 0.8;
}

.hidden {
    display: none !important;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px 0;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: #8B4513;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
    color: #524238;
    font-weight: 500;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    color: #524238;
    font-family: monospace;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px 20px;
    color: #524238;
    font-family: 'Lato', sans-serif;
    background-color: #f1ece2;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    color: #524238;
}

.footer-address {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-style: normal;
    color: #524238;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-address .social-icon {
    width: 16px;
    height: 16px;
}

.footer-phone,
.footer-email {
    color: #8B4513;
    text-decoration: none;
}

.footer-phone:hover,
.footer-email:hover {
    color: #524238;
    text-decoration: underline;
}

.footer-hours {
    font-size: 15px;
    color: #524238;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin: 8px 0;
}

.footer-nav a {
    color: #8B4513;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 10px;
}

.footer-nav a:hover {
    color: #524238;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.footer-social-icon {
    width: 24px;
    height: 24px;
}

.footer-review {
    margin: 8px 0;
}

.footer-review a {
    color: #8B4513;
    text-decoration: none;
    font-size: 15px;
}

.footer-review a:hover {
    color: #524238;
    text-decoration: underline;
}

.footer-logo {
    margin: 12px 0;
}

.footer-logo-img {
    height: 320px;
    width: auto;
    max-width: 1600px;
}

.footer-copyright {
    font-size: 13px;
    color: #524238;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .footer {
        padding: 20px 15px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-address {
        font-size: 14px;
    }
    
    .footer-nav {
        gap: 6px 10px;
    }
    
    .footer-nav a {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-review a {
        font-size: 14px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

.footer-legal {
    font-size: 13px;
    margin: 5px 0 0;
}

.footer-legal a {
    color: #524238;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #8B4513;
    text-decoration: underline;
}

/* Lists in content */
.main-content ul,
.main-content ol {
    margin: 15px 0;
    text-align: left;
    padding-left: 15px !important;
}

.main-content ul {
    list-style-type: disc !important;
    list-style-position: inside !important;
}

.main-content ol {
    list-style-position: inside !important;
}

.main-content li {
    margin-bottom: 4px;
    line-height: 1.5;
    text-align: left !important;
}

/* Fix list marker alignment */
.main-content ul li::marker {
    color: #524238;
}

/* Tables */
.main-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #d1c7b7;
    border-radius: 6px;
    overflow: hidden;
}

.main-content th,
.main-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #d1c7b7;
}

.main-content th {
    background-color: #e8e0d0;
    color: #524238;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.main-content td {
    color: #524238;
    line-height: 1.5;
}

.main-content tr:hover {
    background-color: #fff8f0;
}

.main-content tr:last-child td {
    border-bottom: none;
}

/* Responsive tables */
@media (max-width: 600px) {
    .main-content table {
        display: block;
        overflow-x: auto;
        border-radius: 0;
    }
}

/* Image styles */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content-image-centered {
    max-width: 400px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    border-radius: 8px;
}

.content-image-medium {
    max-width: 60%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
}

.content-image-icon {
    width: 40px;
    height: 40px;
}

.content-image-qr {
    width: 120px;
    height: auto;
}

.content-image-social {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.content-image-footer {
    width: 24px;
    height: 24px;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.gallery-item {
    position: relative;
}

.gallery-item-centered {
    max-width: 80%;
    margin: 0 auto 20px;
}

/* Testimonial Carousel */
.testimonial-carousel-container {
    max-width: 1200px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-carousel {
    display: flex;
    padding: 10px 0;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.testimonial-slide {
    flex: 0 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.testimonial-card {
    background: #f1ece2;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 280px;
}

.testimonial-text {
    font-family: 'Lato', sans-serif;
    color: #524238;
    margin: 0;
    font-style: italic;
    min-height: 80px;
    white-space: normal;
    word-wrap: break-word;
}

.testimonial-link-container {
    margin: 8px 0 0 0;
    font-size: 12px;
}

.testimonial-link {
    color: #8B4513;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139,69,19,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

#testimonial-prev {
    left: -50px;
}

#testimonial-next {
    right: -50px;
}

@media (max-width: 768px) {
    #testimonial-prev { left: -25px; }
    #testimonial-next { right: -25px; }
    .testimonial-dots { display: none; }
    .testimonial-carousel { 
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    .testimonial-carousel::-webkit-scrollbar { display: none; }
}

/* Error Page */
.error-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-logo {
    margin-bottom: 30px;
}

.error-title {
    color: #524238;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.error-text {
    font-family: 'Lato', sans-serif;
    color: #524238;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.error-subtext {
    font-family: 'Lato', sans-serif;
    color: #524238;
    margin-bottom: 30px;
}

.error-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.error-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #8B4513;
    color: #f1ece2;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s;
}

.error-button:hover {
    background-color: #524238;
}

.error-contact {
    font-family: 'Lato', sans-serif;
    color: #524238;
    font-size: 14px;
}

.error-contact-link {
    color: #8B4513;
    text-decoration: underline;
}

/* Lightbox */
.gallery-link {
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.gallery-caption {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #524238;
    text-align: center;
}

/* Contact section */
.contact-flex {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-info-box {
    min-width: 250px;
    max-width: 400px;
}

.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-icons-inner {
    display: flex;
    gap: 15px;
}

.social-icons-impressum {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icons-impressum a {
    display: inline;
    margin: 0 8px;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    text-align: center;
}

.lightbox-close {
    color: white;
    font-size: 40px;
    position: absolute;
    top: 20px;
    right: 40px;
    text-decoration: none;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
