@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');

:root {
    --main-color: #0a0a0a; /* Darker background */
    --accent-color: #dc2626; /* red-600 */
}
body {
    background-color: var(--main-color);
    color: #f3f4f6; /* gray-100 */
    font-family: 'Inter', sans-serif;
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}
#blueprint-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.header-bg {
     background-color: rgba(10, 10, 10, 0.75);
     backdrop-filter: blur(10px);
     position: relative;
}
.header-scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    position: sticky;
    top: 0;
}
.glass-card {
    background-color: rgba(24, 24, 27, 0.6); /* zinc-900 with transparency */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(55, 65, 81, 0.5); /* gray-700 with transparency */
}
.accent-bg { background-color: var(--accent-color); }
.accent-text { color: var(--accent-color); }
.accent-border { border-color: var(--accent-color); }

.slogan {
  font-family: "Caveat Brush", cursive;
  font-weight: 400;
  font-style: normal;
  color: var(--accent-color) !important;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}



.hero .absolute.inset-0.-z-10 {
    background-color: white;
}

.hero .absolute.inset-0.-z-10 img {
    object-fit: contain;
}

@media (max-width: 767px) {
    .hero-content-container {
        margin-top: 10vh; /* Adjust this value to move the container down on mobile */
    }

    .hero-background-image-container img {
        transform: translateY(-20%); /* Adjust this value to move the background image up/down on mobile */
    }
}

.hero {
    /*
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1541888946425?q=80&w=2070&auto=format&fit=crop');
    */
    position: relative; /* Benötigt für das ::after Pseudo-Element */
}

/* Weicher Übergang am unteren Rand des Hero-Bereichs */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10rem; /* 160px Höhe des Übergangs, kann angepasst werden */
    background: linear-gradient(to top, var(--main-color), rgba(10, 10, 10, 0));
    pointer-events: none; /* Stellt sicher, dass der Übergang nicht klickbar ist */
}

/* Weicher Übergang am unteren Rand des Hero-Bereichs */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10rem; /* 160px Höhe des Übergangs, kann angepasst werden */
    background: linear-gradient(to top, var(--main-color), rgba(10, 10, 10, 0));
    pointer-events: none; /* Stellt sicher, dass der Übergang nicht klickbar ist */
}

.parallax-cta {
     position: relative; /* Benötigt für die absolut positionierten Kinder (Bild, Overlay) */
}

/* Parallax-Effekte (background-attachment: fixed) wurden entfernt, da die Bilder nun <img>-Tags sind. */
/* Die Media-Query ist daher nicht nötig. */

/* 3D Carousel Styles */
.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.swiper-slide {
    background-color: #272727; /* Fallback, falls Bilder nicht laden */
    width: 350px; /* Etwas breiter für besseren Effekt */
    height: 450px; /* Höhe angepasst für Text */
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border-radius: 1rem;
    border: 2px solid #374151;
    transition: border-color 0.3s;
    position: relative; /* Für Text-Overlay und Bild-Overlay */
    display: flex;
    align-items: flex-end; /* Text unten positionieren */
    justify-content: center;
    overflow: hidden;
}
.swiper-slide:hover {
    border-color: var(--accent-color);
}
.swiper-slide-shadow-left, .swiper-slide-shadow-right {
    background-image: none !important;
}

.before-after-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit; /* Vererbt den Radius vom Elternelement */
    overflow: hidden;
}

.before-after-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* Vorher-Nachher-Effekt für alle Slides */
.swiper-slide .after-image {
    opacity: 0;
    animation: fade-in-out 10s infinite 1s;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0; }
    45% { opacity: 1; }
    90% { opacity: 0; }
}

.slide-title {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}
/* Pagination dots ausblenden */
.swiper-pagination {
    display: none;
}

.btn-primary {
    background-color: #dc2626;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block; /* Für korrekte Darstellung */
}
.btn-primary:hover {
    background-color: #b91c1c;
    transform: scale(1.05);
}

/* Modal Styles */
#gallery-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
#gallery-modal.visible {
    opacity: 1;
    visibility: visible;
}
#modal-close-button { /* Jetzt ein Button */
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
}
#modal-close-button:hover {
    color: white;
}
#modal-content {
    background-color: #18181b; /* zinc-900 */
    padding: 2.5rem 1.5rem 1.5rem; /* Mehr Platz oben für den X-Button */
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s;
    position: relative; /* Wichtig für die Positionierung des Buttons */
}
#gallery-modal.visible #modal-content {
    transform: scale(1);
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 Spalte auf kleinen Bildschirmen */
    gap: 1rem;
}
 @media (min-width: 768px) { /* ab md breakpoint */
    .modal-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf größeren Bildschirmen */
    }
}
.modal-grid img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}


/* Gallery Page Styles */
.project-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4 / 3;
    background-color: #3f3f46; /* zinc-700 */
}
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.project-card:hover img {
    transform: scale(1.1);
}
.project-card .project-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.review-swiper .swiper-slide {
    height: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Prose styles for impressum/datenschutz for better mobile readability */
.prose-custom {
    color: #d1d5db;
}
.prose-custom h1, .prose-custom h2, .prose-custom h3 {
    color: #ffffff;
}
.prose-custom a {
    color: #ef4444;
}
.prose-custom a:hover {
    color: #f87171;
}


/* Weicher Übergang am unteren Rand des Hero-Bereichs */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10rem; /* 160px Höhe des Übergangs, kann angepasst werden */
    background: linear-gradient(to top, var(--main-color), rgba(10, 10, 10, 0));
    pointer-events: none; /* Stellt sicher, dass der Übergang nicht klickbar ist */
}

.parallax-cta {
     position: relative; /* Benötigt für die absolut positionierten Kinder (Bild, Overlay) */
}

/* Parallax-Effekte (background-attachment: fixed) wurden entfernt, da die Bilder nun <img>-Tags sind. */
/* Die Media-Query ist daher nicht mehr nötig. */

/* 3D Carousel Styles */
.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.swiper-slide {
    background-color: #27272a; /* Fallback, falls Bilder nicht laden */
    width: 350px; /* Etwas breiter für besseren Effekt */
    height: 450px; /* Höhe angepasst für Text */
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border-radius: 1rem;
    border: 2px solid #374151;
    transition: border-color 0.3s;
    position: relative; /* Für Text-Overlay und Bild-Overlay */
    display: flex;
    align-items: flex-end; /* Text unten positionieren */
    justify-content: center;
    overflow: hidden;
}
.swiper-slide:hover {
    border-color: var(--accent-color);
}
.swiper-slide-shadow-left, .swiper-slide-shadow-right {
    background-image: none !important;
}

.before-after-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit; /* Vererbt den Radius vom Elternelement */
    overflow: hidden;
}

.before-after-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* Vorher-Nachher-Effekt für alle Slides */
.swiper-slide .after-image {
    opacity: 0;
    animation: fade-in-out 10s infinite 1s;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0; }
    45% { opacity: 1; }
    90% { opacity: 0; }
}

.slide-title {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}
/* Pagination dots ausblenden */
.swiper-pagination {
    display: none;
}

.btn-primary {
    background-color: #dc2626;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block; /* Für korrekte Darstellung */
}
.btn-primary:hover {
    background-color: #b91c1c;
    transform: scale(1.05);
}

/* Modal Styles */
#gallery-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
#gallery-modal.visible {
    opacity: 1;
    visibility: visible;
}
#modal-close-button { /* Jetzt ein Button */
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
}
#modal-close-button:hover {
    color: white;
}
#modal-content {
    background-color: #18181b; /* zinc-900 */
    padding: 2.5rem 1.5rem 1.5rem; /* Mehr Platz oben für den X-Button */
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s;
    position: relative; /* Wichtig für die Positionierung des Buttons */
}
#gallery-modal.visible #modal-content {
    transform: scale(1);
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 Spalte auf kleinen Bildschirmen */
    gap: 1rem;
}
 @media (min-width: 768px) { /* ab md breakpoint */
    .modal-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf größeren Bildschirmen */
    }
}
.modal-grid img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}


/* Gallery Page Styles */
.project-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4 / 3;
    background-color: #3f3f46; /* zinc-700 */
}
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.project-card:hover img {
    transform: scale(1.1);
}
.project-card .project-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.review-swiper .swiper-slide {
    height: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Prose styles for impressum/datenschutz for better mobile readability */
.prose-custom {
    color: #d1d5db;
}
.prose-custom h1, .prose-custom h2, .prose-custom h3 {
    color: #ffffff;
}
.prose-custom a {
    color: #ef4444;
}
.prose-custom a:hover {
    color: #f87171;
}

