/* Lokale Einbindung von Outfit (DSGVO-konform) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/outfit-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/outfit-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/outfit-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/outfit-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/outfit-latin-700-normal.woff2') format('woff2');
}

/* Lokale Einbindung Handschrift / Unterschrift */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/Caveat-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/Caveat-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/MrsSaintDelafield.ttf') format('truetype');
}

@font-face {
  font-family: 'Cedarville Cursive';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/CedarvilleCursive.ttf') format('truetype');
}

:root {
    /* Color Palette */
    --clr-primary: #286836; /* Original Website Green */
    --clr-primary-light: #3a8c4c;
    --clr-primary-dark: #1b4d26;
    --clr-accent: #113A20; /* Dark Pine Green */
    --clr-accent-hover: #19522D;
    --clr-bg: #FAFAFA;
    --clr-surface: #FFFFFF;
    --clr-white: #FFFFFF;
    --clr-text: #333333;
    --clr-text-light: #666666;
    --clr-border: #E0E0E0;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Typography elements */
.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 77, 54, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: white !important;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--clr-primary) !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline,
.btn-outline-dark {
    background-color: transparent;
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.btn-outline:hover,
.btn-outline-dark:hover {
    background-color: var(--clr-primary);
    color: white !important;
    border-color: var(--clr-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 77, 54, 0.25);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    background-color: transparent;
}

.site-header.scrolled,
.site-header.header-green,
.site-header.header-solid {
    background-color: var(--clr-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-bottom-color: transparent;
}

/* Logo stays white */
.site-header.scrolled .logo,
.site-header.header-green .logo,
.site-header.header-solid .logo {
    filter: brightness(0) invert(1);
}

.site-header.scrolled .nav-link,
.site-header.header-green .nav-link,
.site-header.header-solid .nav-link {
    color: white;
}

.site-header.scrolled .nav-link-underline::after,
.site-header.header-green .nav-link-underline::after,
.site-header.header-solid .nav-link-underline::after {
    background-color: white;
}

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after,
.site-header.header-green .hamburger,
.site-header.header-green .hamburger::before,
.site-header.header-green .hamburger::after,
.site-header.header-solid .hamburger,
.site-header.header-solid .hamburger::before,
.site-header.header-solid .hamburger::after {
    background-color: white;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
}

.logo {
    height: 70px;
    width: auto;
    /* Ensuring visibility if it's white SVG */
    filter: brightness(0) invert(1);
}

.main-nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: white; /* Changed for dark header */
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0;
}

.nav-link-underline {
    position: relative;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: 8px; /* Position the line right under the text */
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link-underline:hover::after,
.nav-link-underline.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link .arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link .arrow {
    transform: rotate(180deg);
}

.btn-contact {
    background-color: var(--clr-primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.btn-contact:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header.scrolled .btn-contact,
.site-header.header-green .btn-contact,
.site-header.header-solid .btn-contact {
    background-color: white;
    color: var(--clr-primary) !important;
}

.site-header.scrolled .btn-contact:hover,
.site-header.header-green .btn-contact:hover,
.site-header.header-solid .btn-contact:hover {
    background-color: #f0f0f0;
}

.header-contact-btn {
    display: none;
    text-decoration: none;
}

@media (min-width: 992px) {
    .header-contact-btn {
        display: inline-block;
    }
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: max-content;
    min-width: 260px;
    background-color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
    border-top: 2px solid var(--clr-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 999;
    overflow: hidden;
}

.nav-item.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0;
}

.mega-column {
    display: block;
    width: 100%;
}

.mega-column .mega-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.6rem;
    color: var(--clr-text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.mega-column .mega-link svg {
    flex-shrink: 0;
    color: var(--clr-primary);
    transition: color 0.2s ease;
    width: 24px;
    height: 24px;
}

/* Hover state: Hellgrün / Light green */
.mega-column .mega-link:hover {
    background-color: var(--clr-primary-light);
    color: white !important;
}

.mega-column .mega-link:hover svg {
    color: white;
}

/* Active state (Aktuelle Seite): Dunkelgrün / Dark green */
.mega-column.active .mega-link,
.mega-column .mega-link.active {
    background-color: var(--clr-primary-dark);
    color: white !important;
    font-weight: 600;
}

.mega-column.active .mega-link svg,
.mega-column .mega-link.active svg {
    color: white;
}

/* If active item is hovered */
.mega-column.active .mega-link:hover {
    background-color: var(--clr-primary);
    color: white !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 48, 37, 0.9) 0%, rgba(18, 48, 37, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-subtitle {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(17, 58, 32, 0.85); /* dark green */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shine-sweep 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% {
        left: -150%;
    }
    40%, 100% {
        left: 200%;
    }
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 300;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    font-size: 1.3rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2.5rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 6rem;
    justify-content: center;
}

.pq-vob-hero-link {
    display: block;
    text-decoration: none;
}

.pq-vob-hero {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: auto;
    z-index: 10;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pq-vob-hero:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .pq-vob-hero {
        position: fixed;
        bottom: 90px; /* Platz für den Back-To-Top Pfeil lassen */
        right: 20px;
        left: auto;
        transform: none;
        width: 70px;
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .pq-vob-hero.visible {
        opacity: 1;
        visibility: visible;
    }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* General Sections */
.section {
    padding: var(--space-xxl) 0;
}

.bg-light {
    background-color: var(--clr-surface);
}

.wood-bg {
    background: #f8f9fa url('Bilder/zimmerei-grossmann-design-61.webp') repeat center;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--clr-text-light);
}

/* Über Uns Section */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--clr-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    text-align: center;
    border-bottom: 4px solid var(--clr-accent);
}

.about-experience .years {
    display: block;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.founder-quote {
    padding: 3rem 4rem;
    background-color: var(--clr-surface);
    border-left: 4px solid var(--clr-accent);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-quote p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--clr-text);
    margin-bottom: 1.5rem;
}

.founder-quote strong {
    color: var(--clr-primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--clr-bg);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    white-space: nowrap;
}

.service-content p {
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
}

.service-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: bold;
}

.icon-list {
    margin-bottom: 2rem;
    flex-grow: 1;
    list-style: none;
    padding: 0;
}

.icon-list li {
    color: var(--clr-text-light);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icon-list li svg {
    color: var(--clr-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card svg {
    color: var(--clr-primary);
    margin-bottom: 1rem;
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--clr-text-light);
}

.service-link {
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-link,
.service-link:hover {
    color: var(--clr-primary-dark);
    transform: translateX(6px);
}

/* Highlighted 6th Card */
.service-card-highlight {
    background-color: var(--clr-primary);
    color: white;
}

.service-card-highlight .service-content {
    justify-content: center;
}

.service-card-highlight:hover {
    background-color: var(--clr-primary-dark);
}

.service-card-highlight h3, .service-card-highlight h3 svg {
    color: white !important;
}


.service-card-highlight .service-content p {
    color: rgba(255,255,255,0.8) !important;
}

.service-card-highlight .list-light {
    margin-bottom: 2rem;
    flex-grow: 0;
}

.service-card-highlight .list-light li {
    color: rgba(255,255,255,0.9);
}

.service-card-highlight .list-light li::before {
    color: white !important;
}

.btn-highlight-link {
    color: white !important;
    background-color: transparent !important;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    width: fit-content;
    transition: all var(--transition-fast);
}

.btn-highlight-link:hover {
    background-color: white !important;
    color: var(--clr-primary) !important;
}

.service-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: bold;
}

.icon-list {
    margin-bottom: 2rem;
    flex-grow: 1;
    list-style: none;
    padding: 0;
}

.icon-list li {
    color: var(--clr-text-light);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icon-list li svg {
    color: var(--clr-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card svg {
    color: var(--clr-primary);
    margin-bottom: 1rem;
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--clr-text-light);
}



/* Gallery */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

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

.gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

.gallery-item {
    flex: 0 0 350px; /* Set fixed width for items */
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    border-top: 4px solid var(--clr-accent);
}

.testimonial-card .stars {
    color: var(--clr-accent);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--clr-text-light);
    margin-bottom: 2rem;
}

.testimonial-card .author strong {
    display: block;
    color: var(--clr-primary);
    font-size: 1.1rem;
}

.testimonial-card .author span {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}
/* Kooperation / Logo Slider */
.kooperation {
    background-color: var(--bg-color);
    padding: 3rem 0;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
    margin-top: 0;
}



.logo-slider-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
    will-change: transform;
}

.logo-slider-track:hover {
    animation-play-state: paused;
}

.logo-slide-set {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    padding-right: 4.5rem; /* Exactly matches gap for 100% seamless repeat */
    flex-shrink: 0;
}

.logo-slider-track img {
    max-height: 75px;
    max-width: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.logo-slider-track img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

.logo-slider-track img.logo-new {
    max-height: 60px;
    max-width: 125px;
}

.logo-slider-track img.logo-holzbaushop {
    transform: translateY(-4px);
}

.logo-slider-track img.logo-holzbaushop:hover {
    transform: translateY(-4px) scale(1.06);
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* FAQ */
.faq-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.faq-text h2 {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.faq-text p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    margin-bottom: 2rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: white;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: white;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--clr-primary);
    font-weight: 500;
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--clr-accent);
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-answer p {
    padding: 1rem 0 1.5rem;
    color: var(--clr-text-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

/* CTA Section */
.cta {
    position: relative;
    text-align: center;
    color: white;
    padding: var(--space-xl) 0;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-primary);
    background-image: linear-gradient(to right, rgba(40, 104, 54, 0.9), rgba(17, 58, 32, 0.95)), url('Bilder/zimmerei-grossmann-design-62.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: var(--clr-primary);
    color: white;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: white;
    max-width: 450px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a, .footer-col address {
    color: white;
    font-style: normal;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
    text-decoration-color: white;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer-bottom {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.9rem;
}

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

.legal-links a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.legal-links a:hover {
    color: white;
    text-decoration: underline;
    text-decoration-color: white;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .mega-menu-inner {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-inner {
        gap: 2rem;
    }
    .faq-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .faq-text h2 {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero {
        padding-top: 150px; /* Mehr Abstand zum Header auf Mobile */
    }

    /* Überschriften proportional verkleinern */
    .section-header h2,
    .about-text h2,
    .cta h2 {
        font-size: 2rem;
    }

    .faq-text h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .logo {
        max-width: 65vw;
        height: auto;
        max-height: 55px;
        object-fit: contain;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .btn-google {
        flex-direction: column;
    }

    .main-nav {
        position: static;
        transform: none;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .logo {
        height: 55px !important;
        width: auto !important;
        max-width: 60vw;
        object-fit: contain;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 90px;
        left: -100vw;
        width: 100vw;
        height: calc(100vh - 90px);
        background-color: var(--clr-primary);
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
    }
    
    .founder-quote {
        padding: 2rem 1.5rem;
    }

    .founder-quote p {
        font-size: 1.1rem;
    }
    
    .about-experience {
        right: auto;
        left: 20px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 1rem 0 0 1rem;
        background-color: transparent;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .has-dropdown.active .mega-menu {
        display: block;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mega-menu h3 {
        color: white;
    }
    
    .mega-menu-links a {
        color: rgba(255,255,255,0.8);
    }
    .mega-menu-links a:hover {
        color: white;
    }

    .mega-column .mega-link,
    .mega-column .mega-link svg {
        color: white !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: white;
    color: var(--clr-text-light);
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

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

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

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 100000; 
    left: 0;
    top: 0;
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100005;
    padding: 0;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 72px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100005;
    user-select: none;
    -webkit-user-select: none;
    padding: 0;
}

.lightbox-nav:hover,
.lightbox-nav:focus {
    color: #ffffff;
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 56px;
        font-size: 28px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

.gallery-item {
    cursor: pointer;
}

/* --- Subpage Styles --- */
.page-hero {
    position: relative;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    margin-top: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 90px; /* Offset for fixed header */
}

.page-hero-content {
    max-width: 100%;
    margin: 0 auto;
}

/* Service Detail Sections */
.service-detail {
    padding: var(--space-xl) 0;
}

.service-row {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text h2 {
    color: var(--clr-primary-dark);
    margin-bottom: var(--space-md);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-text p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.detail-image {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.detail-image.no-bg {
    box-shadow: none;
    background: transparent;
    position: relative;
}

.detail-image.no-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12%;
    background: linear-gradient(to top, rgba(253, 253, 253, 1) 0%, rgba(253, 253, 253, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.detail-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.detail-image.no-bg img {
    mix-blend-mode: multiply;
    object-fit: contain;
}

/* CTA Section */
.cta-section {
    background-color: var(--clr-primary);
    color: white;
    padding: var(--space-xxl) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
}

.cta-section p {
    margin: 0 auto var(--space-lg);
    max-width: 600px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: white;
    color: var(--clr-primary);
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    transition: all var(--transition-fast);
}

.cta-section .btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
        gap: var(--space-lg);
        margin-bottom: var(--space-xl);
    }
    .service-row > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
    }
    .detail-image {
        width: 100%;
    }
}
.mini-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.mini-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.mini-gallery img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .mini-gallery {
        gap: 0.5rem;
    }
}



/* Partners List */
.partners-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    text-align: left;
}
@media (max-width: 768px) {
    .partners-list {
        grid-template-columns: 1fr;
    }
}

/* Partner Link */
.partner-link {
    color: var(--clr-primary);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}
.partner-link:hover {
    color: var(--clr-primary-dark);
    transform: translateX(3px);
}

/* Image Slider */
.image-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 4rem auto 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.image-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: white;
}

/* Contact Page Profile Box */
.contact-profile-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-link {
    color: var(--clr-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--clr-primary);
}

@media (max-width: 768px) {
    .contact-profile-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

/* Founder Signature Styles */
.signature-block {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.signature-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--clr-text);
    letter-spacing: 0.01em;
}

.signature-name {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
    transform: rotate(-2deg);
    display: inline-block;
    padding-left: 0.2rem;
}


/* Mobile Contact Button in Menu */
.mobile-contact-item {
    display: none;
    margin-top: 1.5rem;
}
@media (max-width: 992px) {
    .mobile-contact-item {
        display: block;
    }
    .mobile-contact-item .btn {
        background-color: white !important;
        color: var(--clr-primary-dark) !important;
        border-color: white !important;
        font-weight: 600;
    }
    .mobile-contact-item .btn:hover {
        background-color: #f5f5f5 !important;
        border-color: #f5f5f5 !important;
    }
}

/* ----------------------------------- */
/* Galerie Filters                     */
/* ----------------------------------- */
.gallery-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gallery-filters::-webkit-scrollbar {
    display: none;
}
@media(min-width: 768px) {
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.gallery-filters .filter-btn {
    flex-shrink: 0;
    background-color: transparent;
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.masonry-item {
    transition: transform 0.3s ease;
}
.masonry-item:hover {
    /* transform removed to prevent clipping at column top */
}
.masonry-item img {
    box-shadow: var(--shadow-sm);
}
.masonry-item img:hover {
    box-shadow: var(--shadow-md);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ----------------------------------- */
/* Masonry Grid                        */
/* ----------------------------------- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 10px;
    column-gap: 1rem;
    align-items: start;
}
@media(min-width: 768px) {
    .masonry-grid { grid-template-columns: repeat(4, 1fr); }
}
.masonry-item {
    width: 100%;
    margin-bottom: 0;
}
