﻿/* =============================================
   EB GEBÄUDESERVICE - MAIN STYLES
   Eren Bilgicli - Düsseldorf
   ============================================= */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary-color: #2B5F7F;
    --secondary-color: #5BA0B8;
    --accent-color: #88CCD4;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-large: 15px;
    --max-width: 1200px;
    --header-height: 80px;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

/* =============================================
   ACCESSIBILITY
   ============================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

.about-cta {
    margin-top: 1rem;
}

.about-image {
    position: relative;
}

    .about-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }

.about-image-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

    .about-image-overlay strong {
        color: var(--accent-color);
        font-size: 1.1rem;
    }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .contact-item:hover {
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateY(-2px);
    }

.contact-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--text-light);
    transition: var(--transition);
}

    .contact-item a:hover {
        color: var(--primary-color);
    }

.contact-item address {
    font-style: normal;
    color: var(--text-light);
}

    .contact-item address a {
        color: inherit;
        text-decoration: none;
    }

        .contact-item address a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

.contact-social {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

    .contact-social h4 {
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

.quick-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: var(--light-gray);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

    .quick-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
    }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

    .contact-form h3 {
        margin-bottom: 2rem;
        color: var(--primary-color);
        text-align: center;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--primary-color);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius);
        font-size: 1rem;
        transition: var(--transition);
        font-family: inherit;
        background: var(--white);
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(91, 160, 184, 0.1);
        }

        .form-group input:invalid,
        .form-group select:invalid,
        .form-group textarea:invalid {
            border-color: var(--error-color);
        }

    .form-group small {
        display: block;
        margin-top: 0.25rem;
        color: var(--text-light);
        font-size: 0.9rem;
    }

.checkbox-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

    .checkbox-group input[type="checkbox"] {
        width: auto;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .checkbox-group label {
        margin-bottom: 0;
        font-size: 0.9rem;
        line-height: 1.4;
        font-weight: normal;
    }

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
}

    .form-note small {
        color: var(--text-light);
        line-height: 1.4;
    }

/* Button Loading State */
.btn-loading {
    display: none !important;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline !important;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 1rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

    .footer-logo svg {
        width: 150px;
        height: auto;
    }

.footer-section h3,
.footer-section h4,
.footer-section h5 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact-quick {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: var(--transition);
}

    .footer-contact-item:hover {
        color: var(--accent-color);
    }

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: rgba(255, 255, 255, 0.8);
            transition: var(--transition);
            font-size: 0.95rem;
        }

            .footer-section ul li a:hover {
                color: var(--accent-color);
                padding-left: 5px;
            }

.footer-service-area {
    margin-top: 2rem;
}

    .footer-service-area h5 {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .footer-service-area p {
        margin: 0;
        font-size: 0.9rem;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    padding: 1.5rem;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cookie-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-to-top:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .lightbox-close:hover {
        background: rgba(0,0,0,0.7);
    }

.lightbox img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-info {
    padding: 20px;
    text-align: center;
}

    .lightbox-info h3 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

/* =============================================
   MESSAGE NOTIFICATIONS
   ============================================= */
.message {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-hover);
    animation: slideInRight 0.3s ease;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message-icon {
    font-weight: bold;
    font-size: 16px;
    min-width: 20px;
}

.message-text {
    flex: 1;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

    .message-close:hover {
        opacity: 1;
    }

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Large Tablets */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .about-content,
    .contact-content {
        gap: 3rem;
    }

    .hero-image {
        width: 500px;
        height: 350px;
        right: -150px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 999;
        overflow-y: auto;
    }

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

        .nav-links li {
            width: 100%;
            text-align: center;
        }

        .nav-links a {
            display: block;
            padding: 1rem;
            width: 100%;
            font-size: 1.1rem;
            border-bottom: 1px solid var(--light-gray);
        }

            .nav-links a::after {
                display: none;
            }

    .hamburger {
        display: flex;
    }

    .nav-brand .logo {
        width: 160px;
    }

    /* Hero Section */
    .hero {
        padding: calc(var(--header-height) + 1rem) 0 3rem;
        min-height: 80vh;
        text-align: center;
    }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }


    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quick-contact {
        flex-direction: column;
    }

    .quick-btn {
        min-width: auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-to-top {
        bottom: 100px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .section-title h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .nav-brand .logo {
        width: 140px;
    }

    .whatsapp-float,
    .scroll-to-top {
        width: 45px;
        height: 45px;
    }

        .whatsapp-float svg {
            width: 20px;
            height: 20px;
        }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center {
    text-align: center;
}

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

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .hero-bg,
    .nav-links,
    .hamburger,
    .btn,
    .contact-form,
    .whatsapp-float,
    .scroll-to-top,
    .cookie-banner {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    h1, h2, h3 {
        color: black;
    }

    .footer {
        background: white;
        color: black;
    }
}

/* =============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 4px rgba(0,0,0,0.5);
        --shadow-hover: 0 4px 8px rgba(0,0,0,0.6);
    }

    .btn {
        border-width: 3px;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-width: 3px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This could be expanded for full dark mode support */
    .cookie-banner {
        background: #1a1a1a;
        color: white;
        border-top-color: var(--accent-color);
    }
}

/* =============================================
   BROWSER FALLBACKS
   ============================================= */
.no-grid .services-grid,
.no-grid .gallery-grid,
.no-grid .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .no-grid .services-grid > *,
    .no-grid .gallery-grid > * {
        flex: 1 1 280px;
    }

.no-grid .footer-content > * {
        flex: 1 1 250px;
    }

/* Screen Reader Only */
.skip-link:focus {
    top: 6px;
}


.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: var(--primary-color);
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

    a:hover, a:focus {
        color: var(--secondary-color);
        outline: none;
    }

    a:focus-visible {
        outline: 2px solid var(--secondary-color);
        outline-offset: 2px;
    }

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    white-space: nowrap;
}

    .btn:focus-visible {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

    .btn-primary:hover, .btn-primary:focus {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
        color: var(--white);
    }

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-height: 36px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: var(--header-height);
}

    #header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-hover);
    }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 100%;
}

.nav-brand {
    flex-shrink: 0;
}

    .nav-brand a {
        display: block;
    }

    .nav-brand .logo {
        width: 200px;
        height: auto;
        max-height: 60px;
        transition: var(--transition);
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

    .nav-links a {
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--secondary-color);
            transition: var(--transition);
            transform: translateX(-50%);
        }

        .nav-links a:hover::after,
        .nav-links a:focus::after {
            width: 80%;
        }

        .nav-links a:hover,
        .nav-links a:focus {
            background: var(--light-gray);
            color: var(--primary-color);
        }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .hamburger:hover {
        background: var(--light-gray);
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        transition: var(--transition);
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

/* =============================================
   HERO SECTION - KORRIGIERT
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Container für bessere Layout-Kontrolle */
.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 1000px; /* Begrenzt die Gesamtbreite */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding-right: 1rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Hero-Bild korrigiert */
.hero-image {
    position: relative; /* Statt absolute */
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    z-index: 1;
    justify-self: end; /* Bild rechts ausrichten */
}

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

/* Mobile Anpassungen für Hero */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1; /* Text zuerst */
    }
    
    .hero-image {
        order: 2; /* Bild danach */
        justify-self: center;
        width: 100%;
        max-width: 400px; /* Begrenzen, damit es nicht riesig wirkt */
        height: 250px;
        display: block; /* Sicherstellen, dass es angezeigt wird */
        margin-top: 1rem;
    }
    
    .hero {
        padding: calc(var(--header-height) + 1rem) 0 3rem;
        min-height: auto;
    }
}


/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-up {
    animation: fadeInUp 0.6s ease;
}

.slide-right {
    animation: slideInRight 0.6s ease;
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    [data-aos].animate {
        opacity: 1;
    }

[data-aos="fade-up"].animate {
    transform: translateY(0);
}

[data-aos="fade-right"].animate {
    transform: translateX(0);
}

[data-aos="fade-left"].animate {
    transform: translateX(0);
}

[data-aos="zoom-in"].animate {
    transform: scale(1);
}

/* =============================================
   SECTIONS
   ============================================= */
section {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

    .section-title h2 {
        margin-bottom: 1rem;
    }

    .section-title p {
        font-size: clamp(1rem, 2vw, 1.1rem);
        max-width: 600px;
        margin: 0 auto;
    }

/* =============================================
   SERVICES SECTION
   ============================================= */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    /* 280px passt auch auf sehr kleine Screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
}


.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(91, 160, 184, 0.1), transparent);
        transform: rotate(-45deg);
        transition: var(--transition);
        opacity: 0;
    }

    .service-card:hover::before {
        opacity: 1;
        animation: shine 0.6s ease;
    }

@keyframes shine {
    0% {
        transform: rotate(-45deg) translateX(-100%);
    }

    100% {
        transform: rotate(-45deg) translateX(100%);
    }
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

    .service-features span {
        background: var(--light-gray);
        color: var(--primary-color);
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
    }

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 4/3;
}

    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-hover);
    }

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.gallery-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

/* 1. Größere Zeilenabstände bei Features */
.about-features {
    display: grid;
    gap: 1.5rem; /* Statt 1rem - mehr Abstand zwischen Features */
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem; /* Statt 1rem - mehr Padding */
    background: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* 2. Mehr Abstand zwischen Button und Bild */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* Statt 4rem - mehr Abstand zwischen Text und Bild */
    align-items: center;
}

/* 3. Bild vollständig sichtbar machen */
.about-image {
    position: relative;
    width: 100%;
    max-width: 100%; /* Bild nicht über Container hinaus */
}

    .about-image img {
        width: 100%;
        height: 450px; /* Statt 400px - etwas höher für bessere Sichtbarkeit */
        object-fit: cover;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }

.about-image-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

    .about-image-overlay strong {
        color: var(--accent-color);
        font-size: 1.1rem;
    }

/* Zusätzliche Verbesserungen */
.about-cta {
    margin-top: 2.5rem; /* Etwas mehr Abstand vor dem Button */
}

.about-text {
    padding-right: 2rem; /* Mehr Abstand zum Bild */
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem; /* Mehr Abstand auf Mobile */
        text-align: center;
    }

    .about-text {
        order: 1;
        padding: 0 1rem;
        padding-right: 1rem; /* Reset auf Mobile */
    }

    .about-image {
        order: 2;
        max-width: 100%;
    }

        .about-image img {
            height: 350px; /* Etwas niedriger auf Mobile */
        }

    .about-features {
        gap: 1.25rem; /* Etwas weniger Abstand auf Mobile */
    }

    .feature {
        padding: 1rem;
        gap: 0.75rem;
    }

    .about-cta {
        margin-top: 2rem;
        text-align: center;
    }

    /* Neuer Code für style.css */
    .about-cta .btn {
        width: 100%;
        max-width: 100%;
        white-space: normal;       /* Erlaubt Textumbruch */
        height: auto;              /* Button wächst in die Höhe */
        padding: 12px 10px;        /* Etwas weniger Padding an den Seiten */
        line-height: 1.4;          /* Besserer Lesbarkeit bei zwei Zeilen */
        font-size: 1rem;
        
        /* WICHTIGE ÄNDERUNGEN: */
        display: flex;             /* Statt inline-flex, nimmt volle Breite an */
        flex-direction: column;    /* Stapelt den Inhalt, erzwingt Umbruch besser */
        justify-content: center;   /* Zentriert vertikal */
        text-align: center;        /* Zentriert den Text */
    }
}
/* Tablet Anpassungen */
@media (max-width: 1024px) and (min-width: 769px) {
    .about-content {
        gap: 4rem;
    }

    .about-text {
        padding-right: 1.5rem;
    }

    .about-image img {
        height: 400px;
    }
}


/* =============================================
   RECAPTCHA SECTION
   ============================================= */
    .recaptcha-group

{
    margin: 2rem 0;
    text-align: center;
}

.g-recaptcha {
    display: inline-block;
}


/* =============================================
   IMPRESSUM
   ============================================= */

.legal-page {
    background: var(--light-gray);
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    min-height: 100vh;
}

.legal-content {
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

    .legal-header h1 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

    .legal-header p {
        color: var(--text-light);
        margin: 0;
    }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

    .back-link:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
    }

.impressum-section {
    margin-bottom: 1rem;
}

    .impressum-section h2 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .impressum-section h3 {
        color: var(--secondary-color);
        margin: 1.5rem 0 1rem;
        font-size: 1.2rem;
    }

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

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

.contact-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 24px;
}

.contact-row strong {
    color: var(--primary-color);
    min-width: 120px;
}

.contact-row a {
    color: var(--text-dark);
    text-decoration: none;
}

    .contact-row a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

.legal-text {
    line-height: 1.7;
    color: var(--text-dark);
}

    .legal-text p {
        margin-bottom: 1rem;
    }

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

    .highlight-box h3 {
        color: var(--white);
        margin-bottom: 1rem;
    }

    .highlight-box a {
        color: var(--white);
        text-decoration: underline;
    }

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

    .warning-box h3 {
        color: #856404;
        margin-bottom: 1rem;
    }

.info-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

    .info-box h3 {
        color: #0c5460;
        margin-bottom: 1rem;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .contact-row strong {
            min-width: auto;
        }

    .impressum-section h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Abstand zwischen Haken-Icon und Text */
.service-features span i {
    margin-right: 5px;
    font-size: 0.8rem; /* Optional: Macht den Haken minimal kleiner/feiner */
}



/* =============================================
   LEGAL PAGES (AGB, Datenschutz, Impressum)
   ============================================= */
.legal-page {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
    background: var(--light-gray);
}

.legal-content {
    padding: 3rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.legal-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-sections {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.legal-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.legal-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

/* Info Blocks Text Styling */
.info-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: justify;
}

.info-block ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.info-block li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Footer innerhalb der Legal-Seiten */
.legal-footer {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.back-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legal-update {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    color: var(--text-light);
}

/* Mobile Anpassungen für Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .legal-content {
        padding: 2rem 0;
    }

    .legal-header,
    .legal-section,
    .legal-footer {
        padding: 1.5rem;
    }

    .back-links {
        flex-direction: column;
        align-items: center;
    }

    .back-links .btn {
        width: 100%;
        max-width: 300px;
    }

    .info-block p {
        text-align: left; /* Justify liest sich mobil oft schlecht */
    }
}

