:root {
    --primary-color: #200270; /* The requested logo blue */
    --primary-light: #2c0498;
    --primary-dark: #120140;
    --white: #ffffff;
    --black: #111111;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #868e96;
    --gray-800: #343a40;
    --gray-900: #212529;

    --font-sans: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(32, 2, 112, 0.08);
    --shadow-lg: 0 20px 40px rgba(32, 2, 112, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    line-height: 1.2;
    font-weight: 600;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--gray-50);
}

.text-highlight {
    color: var(--primary-color);
}

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

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-white {
    color: var(--white);
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(32, 2, 112, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 2, 112, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: 4px;
}

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

.btn-full {
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 52px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:not(.btn-primary-outline):hover::after,
.nav-link:not(.btn-primary-outline).active::after {
    width: 100%;
}

.nav-link:not(.btn-primary-outline):hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
}

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

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-text-box {
    max-width: 600px;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--gray-800);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeUp 1s ease-out 0.2s both;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
}

/* Expertise Section */
.expertise-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expertise-image-wrapper {
    position: relative;
    border-radius: 4px;
}

.profile-img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 24px 34px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    max-width: 360px;
    width: max-content;
}

.badge-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--black);
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--gray-600);
}

/* Process Section */
.process-section {
    background-color: var(--white);
    padding: 90px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: stretch;
}

.process-step {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.process-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(32, 2, 112, 0.07);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--text-color);
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Visual Break Section */
.visual-break {
    position: relative;
    padding: 120px 0;
    color: var(--white);
}

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

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

.visual-break-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 2, 112, 0.85); /* Primary color with opacity */
}

.visual-break-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 32px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-300);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

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

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px 24px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding-right: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--gray-100);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item-title {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.contact-link {
    color: var(--gray-800);
}

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

.social-links {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-50);
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(32, 2, 112, 0.1);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--gray-300);
    padding: 50px 0 40px;
    position: relative;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
}

.footer-legal-links a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--white);
}

.footer-dot {
    font-size: 0.5rem;
    color: var(--gray-600);
    vertical-align: middle;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.scroll-top-btn {
    position: absolute;
    top: 0;
    right: max(24px, calc((100vw - 1200px) / 2 + 24px));
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 20;
}

.scroll-top-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(calc(-50% - 4px));
    box-shadow: 0 8px 25px rgba(32, 2, 112, 0.35);
}
/* Carousel */
.carousel-section {
    position: relative;
    background-color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.carousel-section .container {
    position: relative;
    z-index: 1;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 20px 0;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-loading {
    width: 100%;
    text-align: center;
    color: var(--gray-600);
    padding: 40px;
    font-size: 1.1rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 10;
}

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

.property-card {
    position: absolute;
    width: 350px;
    height: 500px;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.property-card.is-focused {
    box-shadow: 0 20px 50px rgba(32, 2, 112, 0.15);
    border-color: var(--primary-light);
}

.property-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 20;
    transform: translateZ(20px);
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.property-card.is-focused::after {
    opacity: 0;
}

.property-card:not(.is-focused):hover {
    opacity: 0.9;
}

.property-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.property-card.is-focused:hover .property-image {
    transform: scale(1.08);
}

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    /* Forciert die Ebene, damit der Browser es beim GPU-Zoom des Bildes nicht überlagert */
    transform: translateZ(10px);
}

.property-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Energieklasse Fähnchen */
.energy-class-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--white);
    clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%);
    padding-right: 6px;
    margin-top: 4px;
}

.en-class-a-plus { background-color: #007236; }
.en-class-a { background-color: #329A38; }
.en-class-b { background-color: #7BBD42; }
.en-class-c { background-color: #C4D52B; color: #111; }
.en-class-d { background-color: #FFF200; color: #111; }
.en-class-e { background-color: #FDBA12; color: #111; }
.en-class-f { background-color: #EB6B23; }
.en-class-g { background-color: #D9232A; }
.en-class-h { background-color: #E2001A; }

.property-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.property-location svg {
    width: 16px;
    height: 16px;
}

.property-features {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.feature-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.property-action {
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-card:hover .property-action {
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--white);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 8px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-overlay.is-open .modal-container {
    transform: translateY(0);
}

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

.modal-close:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-content {
    /* Padding will be applied by JS injection based on structure */
}

/* Modal Internal Structure */
.modal-hero-wrapper {
    width: 100%;
    position: relative;
    background-color: #111;
    display: flex;
    flex-direction: column;
}

.modal-main-image-container {
    position: relative;
    width: 100%;
    cursor: zoom-in;
}

.modal-hero {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background-color: #111;
    transition: opacity 0.3s ease;
}

.modal-gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background-color: #000;
    scrollbar-width: thin;
}

.modal-gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}
.modal-gallery-thumbnails::-webkit-scrollbar-track {
    background: #111;
}
.modal-gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
}

.modal-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.modal-thumbnail:hover {
    opacity: 0.8;
}

.modal-thumbnail.active {
    opacity: 1;
    border-color: var(--white);
    transform: scale(1.05);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--gray-800);
    z-index: 10;
    transition: all 0.2s ease;
}

.gallery-arrow:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 24px;
}

.gallery-next {
    right: 24px;
}

.gallery-arrow svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Fullscreen Gallery Overlay */
.fs-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.fs-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.fs-image {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    user-select: none;
    transition: opacity 0.2s ease;
}

.fs-close {
    position: absolute;
    top: 24px; right: 24px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.2s ease;
    z-index: 10;
}
.fs-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}
.fs-close svg { width: 24px; height: 24px; }

.fs-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 6px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.fs-counter {
    color: #111;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    letter-spacing: 1px;
    min-width: 45px;
    text-align: center;
    font-family: monospace;
}

.fs-arrow {
    background: transparent;
    border: none;
    color: #111;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    opacity: 0.6;
}
.fs-arrow:hover {
    opacity: 1;
}
.fs-arrow svg {
    width: 22px;
    height: 22px;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.modal-price-box {
    background-color: var(--gray-50);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.modal-desc {
    margin-top: 32px;
    color: var(--gray-800);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .modal-hero {
        height: 250px;
    }
    .property-card {
        flex: 0 0 300px;
    }
    .carousel-btn {
        display: none;
    }
}
/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .expertise-container {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        padding: 40px;
    }
    
    .nav.is-open {
        left: 0;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .expertise-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .expertise-image-wrapper {
        margin-bottom: 40px;
    }
    
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 16px 20px;
        max-width: 100%;
        width: 100%;
        margin-top: -10px;
        margin-bottom: 10px;
        border-radius: 4px;
        justify-content: center;
    }
    
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
    /* Fullscreen Modals on Mobile */
    .modal-overlay {
        padding: 0;
    }
    .modal-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    .modal-close {
        top: 15px;
        right: 15px;
        background-color: rgba(0,0,0,0.7);
    }
}

/* ==========================================================================
   2-Klick-Lösung Placeholder
   ========================================================================== */
.two-click-placeholder {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.two-click-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Blog Preview Section (Startseite)
   ========================================================================== */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.blog-preview-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(32, 2, 112, 0.06);
    border-color: rgba(32, 2, 112, 0.2);
}

.blog-preview-card-header {
    background: transparent;
    padding: 32px 32px 12px;
}

.blog-preview-card-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.blog-preview-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

.blog-preview-card-body {
    padding: 0 32px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-preview-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    flex: 1;
}

.blog-preview-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 20px;
    transition: gap 0.2s ease;
}

.blog-preview-card:hover .blog-preview-card-link {
    gap: 10px;
}

@media (max-width: 992px) {
    .blog-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}
