/* =========================================
   1. Fonts & Variables
   ========================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  src: url('../fonts/material.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root {
    color-scheme: light;
    /* Layout */
    --main-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --container-width: 1400px;
    --gutter: 1.5rem;

    /* Colors - Palette 1 */
    --color-primary: #4A3426;      /* Material Brown 700 */
    --color-secondary: #2E2118;    /* Material Brown 300 */
    --color-accent: #be9a73;       /* Material Brown 400 */
    --color-light: #f3f0ed;        /* Warm Off-White */
    --color-dark: #3e2723;         /* Material Brown 900 */
    --color-wood: #fffdf3;         /* Material Brown 200 */
    --color-text: #424242;         /* Material Grey 800 */
    --color-white: #ffffff;
    --color-neutral: #e8e0db;
    --color-shadow: rgba(109, 76, 65, 0.12);

    /* Colors - Palette 2 (Merged/Aliased where possible) */
    --primary: #4A3426;
    --primary-dark: #2E2118;
    --secondary: #C8BCA6;
    --bg-light: #F7F5F2;
    --bg-alt: #EBE7E2;
    --bg-dark: #2C2420;
    --text-main: #261E1B;
    --text-sub: #5D534F;
    --text-light: rgb(206 189 176);

    /* Fonts */
    --font-display: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   2. Reset & Base
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-p {
    line-height: 1.8; /* Increased line height for breathing room */
    font-size: 1.1rem; /* Slightly larger text */
    max-width: 65ch; /* Optimal line length for reading (approx 65 characters) */
    text-wrap: pretty; /* Modern CSS for better typographic line breaks */
    hyphens: auto; /* Keeps hyphenation for long words */
    color: var(--text-light);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed header */
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-wood);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    /* scroll-behavior: smooth; - Removed to let Lenis handle it */
}

.container {
    max-width: var(--main-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. Navigation
   ========================================= */
.navbar {
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--color-wood);
    backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 4px 25px rgba(93, 64, 55, 0.15);
}

@media (max-width: 768px) {
    .navbar {
        background-color: var(--color-wood);
        backdrop-filter: none;
    }
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-text);
}

/* =========================================
   4. Hero Section
   ========================================= */
.modern-hero {
    margin-top: 90px;
    padding: 80px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--color-white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-wood);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 69, 19, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 69, 19, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-arch-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/hero_bg.png");
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 120px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
    color: var(--color-dark);
    transform: translateY(20px);
    opacity: 0;
    margin-right: 12px;
    animation: titleSlideIn 0.8s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transform: scaleX(0);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.7;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    height: 600px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.stack-image {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(93, 64, 55, 0.2);
    transition: var(--transition);
}

.stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.stack-image:hover img {
    transform: scale(1.05);
}

.stack-image-1 {
    width: 70%;
    height: 60%;
    top: 0;
    right: 0;
    z-index: 3;
    transform: rotate(5deg);
    animation: stackFloat1 6s ease-in-out infinite;
}

.stack-image-2 {
    width: 60%;
    height: 50%;
    bottom: 20%;
    left: 0;
    z-index: 2;
    transform: rotate(-8deg);
    animation: stackFloat2 6s ease-in-out infinite;
    animation-delay: -2s;
}

.stack-image-3 {
    width: 45%;
    height: 40%;
    bottom: 0;
    right: 20%;
    z-index: 1;
    transform: rotate(12deg);
    animation: stackFloat3 6s ease-in-out infinite;
    animation-delay: -4s;
}

.floating-card {
    position: absolute;
    top: 20%;
    left: -10%;
    transform: translateY(-50%);
    background: rgb(255, 255, 255);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(93, 64, 55, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 4;
    animation: cardFloat 4s ease-in-out infinite;
    min-width: 200px;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* =========================================
   5. About Section
   ========================================= */
.about-section {
    padding: 60px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: visible;
    color: var(--color-white);
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text {
    color: var(--color-white);
}

.about-section h2 {
    font-size: 3.2rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    font-weight: 900;
}

.section-subtitle {
    font-size: 1.4rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 25px;
}

.about-story {
    margin: 30px 0 40px;
    text-align: left; /* Justify can create uneven gaps, left align is often more readable on web */
}

.highlight-text {
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.person-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    border-radius: 20px;
    padding: 30px;
}

.workshop-preview {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin: 30px 0;
}

/* New classes for inline styles */
.workshop-preview-wrapper {
    margin-bottom: -500px;
    position: relative;
    z-index: 10;
}

.workshop-img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--color-shadow);
}

.workshop-img-shadow {
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.preview-image {
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    z-index: 2;
}

/* =========================================
   6. Services Section
   ========================================= */
.services-section {
    padding: 190px 0 40px;
    background-color: var(--color-wood);
    position: relative;
    background-image: 
        linear-gradient(rgba(139, 69, 19, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 69, 19, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.service-shape-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-shape-element::after {
    content: '';
    position: absolute;
    rotate: 180deg;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background-image: url("../images/element_2.svg");
    background-repeat: no-repeat;
    background-position: bottom center;
    opacity: 0.1;
    z-index: 2;
}

.services-header {
    text-align: left;
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 900;
}

.services-header .section-subtitle {
    color: var(--color-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
    margin-bottom: -80px;
    z-index: 10;
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card:first-child {
        grid-column: 1 / -1;
    }
    
    .service-card:first-child .service-content-wrapper {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
        align-items: start; /* Text aligns to top, not center */
    }

    /* 2-Column Grid Layout for Desktop */
    .service-card:first-child .service-list {
        grid-template-columns: 1fr 1fr; /* Force strict 2-column layout */
    }

    .service-card:first-child .service-list li {
        padding: 16px 24px; /* Slightly larger on desktop */
    }
}

.service-card {
    background-color: var(--bg-dark);
    padding: 1.8rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    border-radius: 0;
    text-align: left;
    color: var(--color-accent);
    border-radius: 18px;
}

/* .service-card:hover {
    background-color: color-mix(in srgb, var(--color-accent) 20%, var(--bg-dark) 90%);
    color: var(--primary);
    transform: translateY(-5px);
} */

.service-icon {
    font-size: 1.875rem;
    color: var(--secondary);
    margin-bottom: 0;
}

.service-card:hover .service-icon { color: var(--primary); }

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.625;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
    text-decoration: none;
}

.service-link span { margin-left: 0.5rem; transition: transform 0.3s; }
.service-card:hover .service-link span { transform: translateX(4px); }

/* Service List Styling */
.service-card .text-p {
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.service-list li {
    padding: 14px 20px;
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-dark);
    text-align: left;
    display: block;
    transition: all 0.3s ease;
}

/* No pseudo-elements needed for box style */
.service-list li::before {
    display: none;
}

/* =========================================
   7. Gallery Section
   ========================================= */
.gallery-section {
    padding: 160px 0 160px;
    background: var(--color-wood);
    position: relative;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(139, 69, 19, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 69, 19, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.gallery-section h2 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 900;
}

.gallery-section .section-subtitle {
    margin-bottom: 50px;
    color: var(--color-accent);
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px;
    background-color: var(--bg-dark);
    box-shadow: 0 10px 30px var(--color-shadow);
    border-radius: 24px;
    container-type: inline-size;
}

@media (max-width: 600px) {
    .gallery-wrapper {
        width: 100%;
    }
}

.container-gallery-card {
    width: 100%;
    height: 500px;
    display: flex;
    gap: 0px;
    position: relative;
    transition: all 1s;
    border-radius: 15px;
    overflow: hidden;
/*     box-shadow: 0 10px 30px var(--color-shadow); */
}

.card-item {
    flex: 1 1 20%;
    position: relative;
    overflow: hidden;
    transition: all 1s;
    display: flex;
}

.card-item-image {
    width: 100%;
    height: 100%;
    background-image: var(--image);
    background-size: cover;
    background-position: center;
    transition: all 1s;
    position: relative;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(109, 76, 65, 0.85));
    color: var(--color-white);
    padding: 25px;
    transform: translateY(100%);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.zoom-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.zoom-icon:hover {
    transform: scale(1.2);
}

.gallery-lightbox {
    cursor: pointer;
}

/* Gallery Container Queries */
@container (width < 600px) {
    .container-gallery-card {
        height: auto;
        overflow-y: hidden;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 12px;
        padding: 8px;
    }

    .card-item {
        flex: 1 0 85%;
        scroll-snap-align: center;
        border-radius: 12px;
        overflow: hidden;
    }

    .card-item-image {
        height: 300px;
    }
}

@container (width >= 600px) {
    .container-gallery-card:hover .card-item {
        filter: grayscale(80%) opacity(30%);
    }
    
    .container-gallery-card .card-item:hover {
        filter: grayscale(0%) opacity(100%);
    }

    .card-item:hover {
        flex: 1 1 100%;
    }

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

/* =========================================
   8. Contact Section
   ========================================= */
.contact-section {
    background-color: var(--bg-dark);
    color: var(--color-accent);
    position: relative;
    padding: 80px 0 100px;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgb(0, 0, 0);
    mask-image: url("../images/winkel.svg");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: top top;
    opacity: 0.2;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0rem;
    position: relative;
    z-index: 10;
}

.contact-content {
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) { 
    .contact-grid { 
        grid-template-columns: 1fr 1.5fr; 
    } 
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;

    .contact-label {
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 0.25rem;
        color: var(--secondary);
    }

    p {
        color: var(--text-light);
    }
}

.icon-box {
    height: 3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background-color: var(--primary);
    border-radius: 50%;
}

.contact-item:hover .icon-box {
    background-color: var(--primary);
    border-color: var(--primary);
}

.contact-item .material-symbols-outlined { color: var(--secondary); }
.contact-item:hover .material-symbols-outlined { color: white; }

/* New classes for inline styles */
.contact-map-wrapper {
    padding: 0;
    overflow: hidden;
    height: 450px;
    position: relative;
}

.contact-map-iframe {
    border-radius: var(--border-radius);
}

/* =========================================
   9. Footer
   ========================================= */
.site-footer {
    background-color: var(--bg-dark);
    padding: 0.8rem 0;
    position: relative;
}

.footer-impressum {
    font-size: 0.72rem;
    color: var(--text-sub);
    line-height: 1.7;
    font-style: normal;
    text-align: right;
}

.footer-impressum strong {
    color: var(--color-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-impressum a {
    color: var(--text-sub);
    text-decoration: none;
}

.footer-impressum a:hover {
    color: var(--color-accent);
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    max-width: var(--main-max-width);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-content-single-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content-single-line p {
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover { color: white; }

/* =========================================
   10. UI Elements (Buttons, FAB, Modals)
   ========================================= */
/* Buttons */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    color: var(--color-dark);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

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

.modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--color-secondary);
    transform: scale(1.2);
}

/* =========================================
   11. Animations & Utilities
   ========================================= */
@keyframes titleSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes stackFloat1 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

@keyframes stackFloat2 {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-15px); }
}

@keyframes stackFloat3 {
    0%, 100% { transform: rotate(12deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-8px); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-60%) translateX(5px); }
}

@keyframes floatMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.fade-in, .slide-in-left, .slide-in-right, .scale-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left { transform: translateX(-50px); }
.slide-in-right { transform: translateX(50px); }
.scale-in { transform: scale(0.8); animation-delay: var(--delay, 0s); }

.fade-in.animate-in, .slide-in-left.animate-in, .slide-in-right.animate-in, .scale-in.animate-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: floatMove 15s infinite ease-in-out;
}

.float-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.float-element:nth-child(2) { top: 60%; right: 15%; animation-delay: -5s; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; animation-delay: -10s; }

/* =========================================
   12. Global Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {
    .hero-layout,
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .person-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .hero-visual {
        order: -1;
        height: 400px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .floating-card {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        animation: none;
        width: max-content;
        z-index: 10;
    }
    
    .stack-image-1 { width: 80%; height: 70%; }
    .stack-image-2 { width: 70%; height: 60%; }
    .stack-image-3 { width: 55%; height: 50%; }
    
    /* Mobile Menu */
    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar {
        padding: 15px 2px;
    }

    .navbar.scrolled {
        backdrop-filter: none;
        background-color: var(--color-white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 68px;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-wood);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }
    
    .gallery-grid { grid-template-columns: 1fr; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Fix negative margins and spacing for mobile */
    .workshop-preview-wrapper {
        margin-bottom: 0;
    }
    
    .services-grid {
        margin-bottom: 0;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .modern-hero {
        padding-top: 120px;
        margin-top: 0;
    }

    .about-section h2, 
    .services-header h2 {
        font-size: 2.5rem;
    }

    /* Text Truncation */
    .text-readmore {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more-btn {
        display: inline-block;
        background: none;
        border: none;
        color: var(--text-light);
        font-weight: 600;
        cursor: pointer;
        padding: 5px 0;
        margin-top: 5px;
        font-size: 0.9rem;
        text-decoration: underline;
    }
}

@media (min-width: 769px) {
    .read-more-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .modern-hero {
        padding: 100px 0 60px; /* Ensure top padding clears navbar */
        min-height: auto;
    }
    
    .hero-title { 
        font-size: 2rem; 
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero-visual { 
        height: 300px; 
        margin-top: 20px;
    }
    
    .hero-stats { 
        flex-direction: row; 
        flex-wrap: wrap;
        gap: 20px; 
    }

    .stats-grid {
        padding: 20px 0;
        margin-bottom: 0;
    }
    
    .stat-number {
        text-align: center;
        font-size: 1.5rem;
    }

    .person-showcase {
        padding: 0px;
        margin-bottom: 0;
    }

    .about-content {
        gap: 0px;
    }

    .about-section,
    .gallery-section,
    .contact-section {
        padding: 40px 0;
    }
    
    .about-section h2, 
    .services-header h2 {
        font-size: 2rem;
    }

    .gallery-section {
        padding: 0px 0 80px;
    }

    .gallery-section .container {
        padding:0;
    }

    .gallery-section .container-gallery-card {
        padding: 0;
        border-radius: 0;
    }

    .gallery-section .image-overlay {
        transform: none;
    }

    .gallery-section .card-item {
        border-radius: 0;
    }

    .gallery-wrapper {
        width: 100%;
        padding: 0;
        border-radius: 0px;
        box-shadow: none;
        background: none;
    }

    /* Adjust nav links in mobile menu */
    .nav-links { 
        gap: 0; 
        padding-top: 40px;
    }
    
    .nav-links li {
        margin: 15px 0;
    }

    .image-caption {
        font-size: 0.9rem;
        padding: 8px 15px;
        bottom: 15px;
        left: 15px;
    }
}

/* Read More Functionality */
.more-content { display: none; }
.more-content.visible { display: inline !important; }
.dots.hidden { display: none !important; }

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    margin-top: 10px;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--color-accent);
}


@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem 1.5rem !important; /* Ensure padding on all sides */
    }
    
    .service-list li {
        padding: 10px 14px; /* Less padding to fit better */
        font-size: 0.95rem;
    }
    
    .services-grid {
        gap: 20px; /* More space between cards */
    }
}

/* =========================================
   Impressum
   ========================================= */
.impressum-section {
    padding: 120px 0 80px;
    min-height: 80vh;
}

.impressum-content {
    max-width: 760px;
    margin: 0 auto;
}

.impressum-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary, #1a1a1a);
    border-bottom: 3px solid var(--accent, #8B6914);
    padding-bottom: 16px;
}

.impressum-block {
    margin-bottom: 36px;
}

.impressum-block h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent, #8B6914);
    margin-bottom: 10px;
}

.impressum-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary, #444);
}

.impressum-block a {
    color: var(--accent, #8B6914);
    text-decoration: none;
}

.impressum-block a:hover {
    text-decoration: underline;
}

.impressum-back {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.impressum-back .btn-text {
    font-size: 1rem;
    color: var(--accent, #8B6914);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    font-weight: 500;
}

.impressum-back .btn-text:hover {
    text-decoration: underline;
}
