/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B6F47;
    --secondary-color: #D4A574;
    --accent-color: #F4E4BC;
    --text-dark: #2C2416;
    --text-light: #5A4A3A;
    --bg-light: #FAF8F3;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Amy Section */
.amy-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.amy-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.amy-content {
    max-width: 900px;
    margin: 0 auto;
}

.amy-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.amy-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.amy-text p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text ul {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.about-text li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Expandable Content */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.expandable-content.expanded {
    max-height: 10000px;
    opacity: 1;
    transition: max-height 0.8s ease-in, opacity 0.5s ease-in;
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 0;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.expand-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.expand-btn:active {
    transform: translateY(0);
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

.expand-btn.expanded .expand-text::before {
    content: "Weniger ";
}

/* Multiple Expand Buttons Container */
.expand-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 40px 0 20px 0;
}

.expand-btn-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: left;
}

.expand-btn-small:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.expand-btn-small:active {
    transform: translateY(0);
}

.expand-btn-small .expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.expand-btn-small.expanded {
    background-color: var(--secondary-color);
}

.expand-btn-small.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Gallery Section */
.gallery {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.gallery-container {
    position: relative;
    margin-top: 2rem;
}

.gallery-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
    -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
    height: 12px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    min-width: 300px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Scroll hint for horizontal gallery */
.gallery-container::before,
.gallery-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.gallery-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
    opacity: 0;
}

.gallery-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.gallery-container.scrolled-left::before {
    opacity: 1;
}

.gallery-container.scrolled-right::after {
    opacity: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--white);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    padding: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.social-link i {
    font-size: 2.5rem;
}

.social-link span {
    font-weight: 600;
}

/* Modal Overlay for Impressum and Disclaimer */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 40px 20px 30px 20px;
    padding-top: 20px;
}

.legal-content {
    padding: 0 40px 40px 40px;
}

.legal-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-content strong {
    color: var(--text-dark);
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .amy-section h2,
    .about h2,
    .gallery h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .amy-text {
        padding: 30px 20px;
    }
    
    .amy-text p {
        font-size: 1rem;
    }
    
    .amy-text p:first-child {
        font-size: 1.1rem;
    }

    .gallery-item {
        width: 250px;
        height: 250px;
        min-width: 250px;
    }

    .social-media {
        gap: 1rem;
    }

    .social-link {
        min-width: 100px;
        padding: 15px;
    }

    .social-link i {
        font-size: 2rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95vh;
        margin: 20px;
    }
    
    .modal-content h2 {
        font-size: 2rem;
        margin: 30px 15px 20px 15px;
    }
    
    .legal-content {
        padding: 0 20px 30px 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .amy-section,
    .about,
    .gallery,
    .contact {
        padding: 50px 20px;
    }
    
    .amy-text {
        padding: 20px 15px;
    }
    
    .amy-text p {
        font-size: 0.95rem;
    }
    
    .amy-text p:first-child {
        font-size: 1rem;
    }
    
    .expand-buttons-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .expand-btn-small {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .gallery-item {
        width: 200px;
        height: 200px;
        min-width: 200px;
    }

    .social-media {
        flex-direction: column;
        align-items: center;
    }
    
    .expand-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .expand-buttons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .expand-btn-small {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .social-link {
        width: 100%;
        max-width: 200px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.5s ease-out;
}

