/* 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');
}

: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-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: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --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;
}

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 var(--transition-smooth);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
    background-color: white;
    color: var(--clr-primary);
}

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

.btn-outline-dark:hover {
    background-color: var(--clr-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 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 {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-bottom-color: transparent;
}

.site-header.scrolled .logo {
    filter: none;
}

.site-header.scrolled .nav-link {
    color: var(--clr-text);
}

.site-header.scrolled .nav-link-underline::after {
    background-color: var(--clr-primary);
}

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
    background-color: var(--clr-text);
}

.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 {
    background-color: var(--clr-primary-light);
}

.site-header.scrolled .btn-contact:hover {
    background-color: var(--clr-primary);
}

.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: 250px;
    background-color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    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-sm) var(--radius-sm);
    z-index: 999;
}

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

.mega-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.mega-column h3 {
    font-size: 1.1rem;
    color: var(--clr-text);
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.mega-column:hover h3 {
    color: var(--clr-primary);
}

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

.mega-column a {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.mega-column a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.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 {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(17, 58, 32, 0.85); /* dark green */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.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);
}

@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);
}

.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-bg);
    border-left: 4px solid var(--clr-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    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;
}

.service-link {
    color: var(--clr-accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* 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;
}

.service-link {
    color: var(--clr-accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* 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-sm);
    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: 1rem 0;
    margin-top: 0;
}

/* Gradient mask for smooth fade in/out on edges */
.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, rgba(255,255,255,0) 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, rgba(255,255,255,0) 100%);
}

.logo-slider-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem; /* Match gap for seamless transition */
    flex-shrink: 0;
}

.logo-slider-track img {
    max-height: 80px;
    max-width: 160px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

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

.logo-slider-track img.logo-new {
    max-height: 65px;
    max-width: 130px;
}

.logo-slider-track img.logo-holzbaushop {
    transform: translateY(-5px); /* Adjust vertical alignment for optical balance */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly one group width (1/6th of total track, as there are 6 groups) */
        transform: translateX(calc(-100% / 6));
    }
}

/* 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: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    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: var(--clr-bg);
}

.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/20251016_162321.jpg');
    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);
}

.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;
    }
    
    .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 {
        display: none !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);
    color: white;
    border-color: var(--clr-primary);
    transform: translateY(-3px);
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 9999; 
    padding-top: 5vh; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    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: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

.gallery-item {
    cursor: pointer;
}
