/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    height: 35px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    padding: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8a7b6a;
}

.nav-links a.active-link {
    color: #8a7b6a;
    border-bottom: 2px solid #8a7b6a;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 180px;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    padding: 10px 20px;
    display: block;
    color: #555;
    transition: color 0.3s ease;
}

.dropdown li a:hover {
    color: #8a7b6a;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    position: relative;
    z-index: 999;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-stair {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.5s ease;
}

.bg-landscape {
    opacity: 1;
    z-index: 1;
    display: block;
}

.bg-portrait {
    opacity: 0;
    z-index: 0;
    display: none;
}

@media (orientation: portrait) and (min-width: 769px) {
    .bg-landscape {
        opacity: 0;
        display: none;
    }

    .bg-portrait {
        opacity: 1;
        display: block;
        z-index: 2;
        object-fit: contain;
        object-position: center;
    }
}

.hero.hide-hero .bg-landscape,
.hero.hide-hero .bg-portrait {
    opacity: 0;
}

.floating-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 180px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    z-index: 10;
}

.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

#main-content {
    background: #fdfdfd;
    padding: 40px 20px;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    position: relative;
    z-index: 1001;
    margin-top: 120px;
}

#main-content-simple {
    background: #fdfdfd;
    padding: 40px 20px;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 120px;
    position: relative;
    z-index: 1001;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.8;
}

blockquote {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #8a7b6a;
    border-radius: 5px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

blockquote p {
    margin-bottom: 10px;
}

blockquote p:last-child {
    margin-bottom: 0;
}

.subtitle {
    color: #8a7b6a;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
}

.closing-message {
    margin-top: 2rem;
    font-style: italic;
}

.signature {
    margin-top: 2rem;
}

a {
    color: #8a7b6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2c3e50;
}

.cta-button,
.shop-button,
.cloud-button,
.story-link,
.cta-link,
.download-link {
    display: inline-block;
    background-color: #8a7b6a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cta-button:hover,
.shop-button:hover,
.cloud-button:hover,
.story-link:hover,
.cta-link:hover,
.download-link:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.intro-section,
.stories-intro,
.testimonials-intro,
.success-intro,
.community-intro,
.shop-intro,
.cloud-intro,
.directory-intro,
.renewal-intro,
.contact-intro {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #8a7b6a;
}

.service-box,
.shop-cta-section,
.cloud-login-section,
.testimonials-cta,
.success-cta,
.community-join,
.contact-form-section {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-box h2,
.shop-cta-section h2,
.cloud-login-section h2,
.testimonials-cta h2,
.success-cta h2,
.community-join h2,
.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.coming-soon {
    opacity: 0.8;
    border: 2px dashed #8a7b6a;
}

.coming-soon-badge {
    display: inline-block;
    background-color: #8a7b6a;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 600;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.story-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.story-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.story-card p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonials-list {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.testimonial-card {
    background: #f5f5f5;
    padding: 20px;
    border-left: 4px solid #8a7b6a;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.8;
}

.testimonial-author {
    color: #8a7b6a;
    font-weight: 600;
    font-size: 0.95rem;
}

.success-stories-list {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.success-story-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.success-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.success-story-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.story-highlight {
    color: #8a7b6a;
    font-weight: 600;
    font-style: italic;
    margin-top: 10px;
}

.community-voices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.voice-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.voice-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.voice-author {
    color: #8a7b6a;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
}

.renewal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.renewal-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.renewal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.renewal-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.renewal-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.renewal-link {
    display: inline-block;
    color: #8a7b6a;
    font-weight: 600;
    transition: color 0.3s ease;
}

.renewal-link:hover {
    color: #2c3e50;
}

.renewal-link.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a7b6a;
    box-shadow: 0 0 5px rgba(138, 123, 106, 0.3);
}

.submit-button {
    background-color: #8a7b6a;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-info-section {
    margin: 40px 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-info-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #8a7b6a;
}

.contact-info-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-info-card p {
    font-size: 1rem;
    color: #333;
}

.contact-info-card a {
    color: #8a7b6a;
    font-weight: 600;
}

.contact-info-card a:hover {
    color: #2c3e50;
}

.social-media-section {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-media-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #8a7b6a;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #2c3e50;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

a[title] {
    position: relative;
}

a[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 0;
    background-color: #2c3e50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.aromatherapy-intro {
    line-height: 1.8;
    max-width: 100%;
}

.aromatherapy-intro img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.aromatherapy-intro img:nth-of-type(1) {
    float: left;
    margin-right: 20px;
    width: 245px;
    margin-top: 10px;
}

.aromatherapy-intro img:nth-of-type(2) {
    float: right;
    margin-left: 20px;
    width: 245px;
    margin-top: 10px;
}

.aromatherapy-intro img:nth-of-type(3) {
    float: left;
    margin-right: 20px;
    width: 200px;
    margin-top: 10px;
}

.aromatherapy-intro img:nth-of-type(4) {
    float: right;
    margin-left: 20px;
    width: 200px;
    margin-top: 10px;
}

.aromatherapy-intro img:nth-of-type(5) {
    float: left;
    margin-right: 20px;
    width: 250px;
    margin-top: 10px;
}

.aromatherapy-intro::after {
    content: "";
    display: table;
    clear: both;
}

.herbal-garden {
    text-align: center;
    margin-top: 40px;
}

.herbal-garden img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid #8a7b6a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #8a7b6a;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8a7b6a;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #8a7b6a;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background-color: #fff;
    color: #2c3e50;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 8px 0;
    color: #aaa;
}

.footer-bottom a {
    color: #8a7b6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

@media (max-width: 1200px) {
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-logo {
        height: 50px;
        margin-right: 20px;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 700px;
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    .dropdown {
        position: static !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        border-top: 1px solid #eee;
        width: 100%;
        padding: 0;
    }

    .dropdown.active {
        max-height: 300px;
    }

    .dropdown li {
        padding: 10px 0;
    }

    .dropdown li a {
        padding: 8px;
        font-size: 0.9rem;
        color: #8a7b6a;
    }

    .has-dropdown:hover .dropdown {
        display: none;
    }

    #main-content-simple {
        margin-top: 120px;
    }

    .stories-grid,
    .community-voices,
    .renewal-grid {
        grid-template-columns: 1fr;
    }

    .success-stories-list,
    .testimonials-list {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 45vh;
        min-height: 300px;
    }

    .floating-logo {
        max-width: 140px;
        top: 40%;
    }

    .scroll-hint {
        font-size: 0.9rem;
        bottom: 15px;
    }

    .bg-stair {
        object-position: center;
    }

    .bg-landscape {
        opacity: 0;
        display: none;
    }

    .bg-portrait {
        opacity: 1;
        display: block;
        z-index: 2;
        object-fit: contain;
        object-position: center;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    .content {
        padding: 0 15px;
        margin: 20px auto;
    }

    #main-content,
    #main-content-simple {
        margin-top: 120px;
        padding: 30px 15px;
    }

    .aromatherapy-intro img {
        float: none !important;
        margin: 15px auto !important;
        width: 90% !important;
        max-width: 300px;
    }

    .herbal-garden img {
        width: 90%;
        max-width: 300px;
    }

    footer {
        padding: 30px 15px 15px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    .contact-form-section {
        padding: 20px;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

#main-content-simple,
#main-content {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.qr-section {
    padding: 0 20px 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.qr-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.qr-section > p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.qr-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
}

.qr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #a89f91;
}

.qr-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.qr-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.qr-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.click-hint {
    margin-top: auto;
    font-size: 0.85rem;
    color: #8a7b6a;
    font-style: italic;
    display: block;
}

@media (max-width: 768px) {
    .qr-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .qr-section {
        padding: 40px 15px;
    }
}

.hero-qr {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: #333;
    background-image: url('media/comeinandscanout.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-qr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-qr h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .hero-qr h1 {
        font-size: 1.8rem;
    }
}

.no-margin-qr .qr-section,
.no-margin-qr .qr-section h1,
.no-margin-qr .qr-section h2,
.no-margin-qr .qr-section h3,
.no-margin-qr #main-content-simple {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.no-margin-qr .hero-qr,
.no-margin-qr header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.no-margin-qr .qr-section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px 60px 20px;
    text-align: center;
}

.no-margin-qr .qr-section h1 {
    margin-top: 0 !important;
    margin-bottom: 20px;
}

.no-margin-qr .qr-section h2 {
    margin-top: 0 !important;
    margin-bottom: 15px;
}

.no-margin-qr .qr-section p {
    margin-top: 20px !important;
    margin-bottom: 40px !important;
}

.no-margin-qr .qr-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.no-margin-qr header.hero-qr {
    margin-bottom: 60px !important;
}

.no-margin-qr #main-content {
    margin-top: 0 !important;
    margin-bottom: 60px !important;
}




/* ---------- Flip Cards for the QR flyer section ---------- */

.qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card {
    width: 100%;
    max-width: 360px;        /* breiter, da Querformat */
    aspect-ratio: 16 / 9;    /* Querformat */
    perspective: 1200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.flip-back {
    transform: rotateY(180deg);
}

.flip-face .qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* oder contain, je nach Bildern */
    display: block;
}

.flip-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(45, 90, 45, 0.85);   /* Nature Green */
    color: #fff;
}

.flip-toggle {
    margin-top: 12px;
    padding: 8px 18px;
    border: 1px solid #2D5A2D;
    border-radius: 999px;
    background: transparent;
    color: #2D5A2D;
    font: inherit;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.flip-toggle:hover,
.flip-toggle:focus-visible {
    background: #2D5A2D;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .flip-card-inner {
        transition: none;
    }
}

.qr-card .flip-face .qr-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: contain;
    display: block;
}

/* ---------- Lightbox ---------- */

.flip-card {
    cursor: zoom-in;
}

.lightbox {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    max-width: 96vw;
}

.lightbox-scroll {
    overflow: auto;
    max-width: calc(96vw - 24px);
    max-height: calc(100vh - 120px);   /* leaves room for the button bar */
}

.lightbox-scroll img {
    display: block;
    max-width: calc(96vw - 24px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

.lightbox-scroll img.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.lightbox-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.lightbox-bar button,
.lightbox-bar a {
    padding: 8px 18px;
    border: 1px solid #2D5A2D;
    border-radius: 999px;
    background: transparent;
    color: #2D5A2D;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.lightbox-bar button:hover,
.lightbox-bar a:hover,
.lightbox-bar button:focus-visible,
.lightbox-bar a:focus-visible {
    background: #2D5A2D;
    color: #fff;
}

#lightbox-close {
    background: #2D5A2D;
    color: #fff;
}

body:has(dialog[open]) {
    overflow: hidden;   /* no scrolling behind the lightbox */
}

.lightbox[open] {
    position: fixed;
    inset: 0;
    margin: auto !important;
    width: fit-content;
    height: fit-content;
    max-width: 96vw;
    max-height: 100vh;
}

.navbar {
    z-index: 10000;
}