/* GLightbox Bildgröße anpassen */
.gslide-image img, .gslide-image picture {
    max-width: 80vw !important;
    max-height: 70vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
/* Projektbild-Beschreibung */
.portfolio-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    color: #444;
    font-weight: 300;
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
    text-align: left;
    letter-spacing: 0.05em;
    line-height: 1.5;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: lowercase;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
    color: #000;
    overflow-x: hidden;
    background-color: #fff;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

.section-title {
    font-size: 1.8rem;
    text-align: left;
    margin-bottom: 2rem;
    color: #000;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

.section-subtitle {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.navbar {
    padding: 2rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.nav-logo h2 {
    color: #000;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    display: flex;
    align-items: center;
}

.logo-a {
    height: 2.5rem;
    width: auto;
    margin-right: 0.5em;
    margin-top: 0.2em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    position: relative;
    padding: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.2;
    padding-left: 0;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #666;
    padding-left: 0;
}
    
.hero-buttons {
    display: block;
    width: fit-content;
    padding-left: 0;
}
.hero-buttons .btn {
    margin-bottom: 0;
}


.hero-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
}

.hero-image img {
    width: 100%;
    height: clamp(180px, 50vw, 480px);
    object-fit: cover;
    border-radius: 4px;
    max-width: 620px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 0;
    text-decoration: none;
    border: none;
    font-weight: 300;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid #000;
    background: transparent;
    color: #000;
}

.btn-primary {
    color: #000;
}

.btn-primary:hover {
    opacity: 0.6;
}

.btn-secondary {
    color: #666;
    border-bottom: 1px solid #666;
}

.btn-secondary:hover {
    color: #000;
    border-bottom-color: #000;
}

/* About Section */
.about {
    padding: 90px 0;
    background-color: #fff;
}

.about-logo {
    margin-top: 2rem;
    text-align: left;
}

.about-logo-img {
    height: 4rem;
    width: auto;
    opacity: 0.8;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #000;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.15em;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 300;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: #000;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    font-weight: 300;
    margin-top: 0.5rem;
}

.about-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    max-width: 520px;
    image-rendering: auto;
}

/* Services Section */
.services {
    padding: 120px 0;
    background-color: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 8rem;
}

.service-card {
    background: transparent;
    padding: 0;
    text-align: left;
}

.service-card:hover {
    transform: none;
}

.service-icon {
    display: none;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.15em;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-weight: 300;
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background-color: #fff;
}

.portfolio-filter {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid transparent;
}

.filter-btn.active,
.filter-btn:hover {
    color: #000;
    border-bottom-color: #000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover {
    transform: none;
    opacity: 0.8;
}

.portfolio-item img {
    width: 100%;
    height: clamp(180px, 50vw, 480px);
    object-fit: cover;
    transition: none;
}

.portfolio-overlay {
    position: static;
    background: transparent;
    color: #000;
    padding: 1.5rem 0 0;
    transform: none;
    transition: none;
}

.portfolio-overlay h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    color: #000;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: #666;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background-color: #f8f8f8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item i {
    display: none;
}

.contact-item h3 {
    font-size: 1rem;
    color: #000;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.15em;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    font-weight: 300;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    font-size: 1rem;
}

.footer-section p {
    line-height: 1.6;
    color: #999;
    font-weight: 300;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-links a:hover {
    color: #fff;
    border-color: #fff;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hero-title {
        padding-left: 0;
    }
    .hero-subtitle {
        padding-left: 0;
    }
    .hero-buttons {
        display: block;
        width: fit-content;
        padding-left: 0;
    }

    .hero-title {
        margin-left: 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        padding: 2rem 40px;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-left: 0;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-height: 320px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        margin-left: 0;
        order: -1;
    }

    .about-image img {
        max-height: 320px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2rem;
    }

    .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        padding-left: 0;
    }
    .hero-subtitle {
        padding-left: 0;
    }
    .hero-buttons {
        display: block;
        width: fit-content;
        padding-left: 0;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 10px 0;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-image img {
        max-height: 260px;
    }

    .about-image img {
        max-height: 260px;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .portfolio-item img {
        height: 200px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-info h4 {
        font-size: 1rem;
    }

    .about-info p {
        font-size: 0.85rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* Verhindert horizontales "Springen" beim Öffnen/Schließen von GLightbox */
body.glightbox-open,
body.gscrollbar-fixer,
body.glightbox-open.gscrollbar-fixer {
    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* Scroll offset for fixed header */
section {
    scroll-margin-top: 100px;
}

#home {
    scroll-margin-top: 0;
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Utility: sorgen für konsistente Seitenverhältnisse falls benötigt */
.ratio-4-3 { aspect-ratio: 4 / 3; object-fit: cover; }
.ratio-3-2 { aspect-ratio: 3 / 2; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16 / 9; object-fit: cover; }

/* Parallax nur Desktop */
@media (max-width: 1024px) {
    .hero { transform: none !important; }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    max-width: 500px;
}

.lightbox-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.15em;
}

.lightbox-info p {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev {
    left: -4rem;
}

.lightbox-next {
    right: -4rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        margin: 10% auto;
    }
    
    #lightbox-img {
        max-height: 60vh;
    }
    
    .lightbox-prev {
        left: 1rem;
        font-size: 1.5rem;
        padding: 0.8rem 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
        font-size: 1.5rem;
        padding: 0.8rem 1rem;
    }
    
    .lightbox-close {
        top: -2rem;
        font-size: 1.5rem;
    }
    
    .lightbox-info {
        padding: 1rem;
        margin-top: 0.5rem;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
