/* Modern Styles for Kanzlei Delang-Raum */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #ffb300;
    --secondary-color: #4d4d4d;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --black: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}


.fa-solid, .fas {
    color: var(--primary-color);
}

.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    width: 25px;
}

.fa-phone-alt:before, .fa-phone-flip:before {
    content: "\f095" !important;
}





/* Glassmorphism Page Header */
/* Glassmorphism Page Header */
.page-header {
    background-image: url('../images/slide1._hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Ensure pseudo-element doesn't overflow */
}

/* Glass Overlay */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    /* Light semi-transparent layer */
    backdrop-filter: blur(10px);
    /* Blurs the image behind it */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    /* Text sits on top */
    color: var(--secondary-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.contact-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 100px;
    padding: 1rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Timeline Slider Hero */
.slider-container-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    flex-direction: column;
    /* height: 100vh; */
    /* Optional: Full Screen or auto */
}

.timeline {
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 25px 5px rgba(0, 0, 0, 0.2);
}

.timeline .swiper-container {
    height: 80vh;
    /* Matching previous hero height */
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Important for Swiper */
}

.timeline .swiper-wrapper {
    transition: 2s cubic-bezier(.68, -0.4, .27, 1.34) .2s;
}

.timeline .swiper-slide {
    position: relative;
    color: var(--white);
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.timeline .swiper-slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: -115%;
    right: auto;
    bottom: -10%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 230px 0 150px 60vw rgba(0, 0, 0, 0.7);
    border-radius: 100%;
}

.timeline .swiper-slide-content {
    position: absolute;
    text-align: center;
    width: 80%;
    max-width: 310px;
    left: 50%;
    top: 13%;
    transform: translate(-50%, 0);
    font-size: 12px;
    z-index: 2;
}

.timeline .timeline-year {
    display: block;
    font-style: italic;
    font-size: 42px;
    margin-bottom: 50px;
    transform: translate3d(20px, 0, 0);
    color: var(--primary-color);
    font-weight: 300;
    opacity: 0;
    transition: .2s ease .4s;
}

.timeline .timeline-title {
    font-weight: 800;
    font-size: 34px;
    margin: 0 0 50px;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition: .2s ease .5s;
    color: var(--white);
    /* Ensure visible text */
}

.timeline .timeline-text {
    line-height: 1.5;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition: .2s ease .6s;
    color: var(--white);
    font-size: 18px;
}

.timeline .swiper-slide-active .timeline-year {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: .4s ease 1.6s;
}

.timeline .swiper-slide-active .timeline-title {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: .4s ease 1.7s;
    line-height: 60px;
    padding-bottom: 15px;
}

.timeline .swiper-slide-active .timeline-text {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: .4s ease 1.8s;
}

.timeline .swiper-pagination {
    left: 15% !important;
    right: auto !important;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    font-style: italic;
    font-size: 18px;
    z-index: 1;
    position: absolute;
    top: 0;
}

.timeline .swiper-pagination::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.timeline .swiper-pagination-bullet {
    height: auto;
    text-align: center;
    font-size: 18px;
    text-shadow: #ffab40 0px 0px 5px;
    opacity: 1;
    background: transparent;
    color: var(--white);
    margin: 15px 0 !important;
    position: relative;
    cursor: pointer;
    display: block;
    /* Ensure bullets stack */
}

.timeline .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -32.5px;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: var(--primary-color);
    transform: scale(0);
    transition: .2s;
}

.timeline .swiper-pagination-bullet-active {
    color: var(--white);
    text-shadow: #ffab40 0px 0px 5px;
}

.timeline .swiper-pagination-bullet-active::before {
    transform: scale(1);
}

.timeline .swiper-button-next,
.timeline .swiper-button-prev {
    background-size: 20px 20px;
    top: 15%;
    width: 20px;
    height: 20px;
    margin-top: 0;
    z-index: 2;
    transition: .2s;
    position: absolute;
}

.timeline .swiper-button-prev {
    left: 8%;
    color: var(--white);
    /* Updated color to match primary */
}

.timeline .swiper-button-prev:hover {
    transform: translateX(-3px);
}

.timeline .swiper-button-next {
    right: 8%;
    color: var(--white);
    /* Updated color to match primary */
}

.timeline .swiper-button-next:hover {
    transform: translateX(3px);
}

@media screen and (min-width: 768px) {
    .timeline .swiper-slide::after {
        left: -30%;
        right: auto;
        bottom: -8%;
        width: 240px;
        height: 50%;
        box-shadow: 230px 0 150px 50vw rgba(0, 0, 0, 0.7);
    }

    .timeline .swiper-slide-content {
        left: 40%;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 310px;
        font-size: 11px;
        text-align: left;
    }

    .timeline .timeline-year {
        margin-bottom: 0;
        font-size: 32px;
    }

    .timeline .timeline-title {
        font-size: 46px;
        margin: 0;
    }

    .timeline .swiper-pagination {
        display: flex;
    }

    .timeline .swiper-button-prev {
        top: 15%;
        left: 15%;
        right: auto;
        transform: rotate(90deg) translate(0, 10px);
    }

    .timeline .swiper-button-prev:hover {
        transform: rotate(90deg) translate(-3px, 10px);
    }

    .timeline .swiper-button-next {
        top: auto;
        bottom: 15%;
        left: 15%;
        right: auto;
        transform: rotate(90deg) translate(0, 10px);
    }

    .timeline .swiper-button-next:hover {
        transform: rotate(90deg) translate(3px, 10px);
    }
}

@media screen and (min-width: 1024px) {
    .timeline .swiper-slide::after {
        left: -20%;
        right: auto;
        bottom: -12%;
        width: 240px;
        height: 50%;
        box-shadow: 230px 0 150px 39vw rgba(0, 0, 0, 0.7);
    }

    .timeline .swiper-slide-content {
        left: 30%;
        right: auto;
    }
}

@media screen and (max-width: 1023px) {
    .timeline .swiper-slide-content {
        left: 35%;
        right: auto;
    }
}

/* Kontakt page: grid layout (Adresse + Map) */
.contact-grid{
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Mobile: stack address + map nicely */
@media (max-width: 768px){
    .contact-grid{
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Make the Google Maps iframe behave nicely */
.contact-grid iframe{
    width: 100%;
    max-width: 100%;
    display: block;
    border: 0;
}

@media (max-width: 768px){
    .contact-grid iframe{
        height: 260px; /* slightly shorter for mobile */
    }
}

 


/* Utility / Layout */


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}



.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu implementation usually requires JS toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .timeline .swiper-slide-content {
        right: auto;
        left: 50%;
    }

}


/*////// Home Scroll Trigger //////*/

/* Scoped to Home Page */
body.home-page {
    background-color: black;
}

body.home-page section {
    position: relative;
    height: 100svh;
    width: 100%;
    background-color: var(--white);
    overflow: hidden;

    &.section2 {
        height: min-content;
    }
}



.scroll-down {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

body.home-page .section3 {
    --bg-color: #ffffff;
    --text-primary: #4d4d4d;
    --text-secondary: #aaa;
    --text-white: #ffffff;
    --accent-primary: #ff6b6b;
    --accent-secondary: #ff8a80;
    --accent-tertiary: #ffab40;
    --accent-quaternary: #ff7043;
    --accent-quinary: #ff5722;
    --border-radius: 25px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    min-height: 100vh;
    height: auto;
    /* Allow growth */
    background: var(--bg-color);
    overflow: visible;
    /* Prevent clipping */

    .container {
        width: 100%;
        max-width: 1400px;
        /* Increased from 1200px */
        margin: auto;
        text-align: center;
        position: relative;
        z-index: 2;
        padding: 0 1rem;
        /* Reduced padding from default 20px */

        .title {
            margin-top: 10rem;
            margin-bottom: 2.5rem;
            background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-secondary) 25%, var(--accent-tertiary) 50%, var(--accent-quaternary) 75%, var(--accent-quinary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.1;
            letter-spacing: -2px;
            position: relative;

            &::after {
                content: '';
                position: absolute;
                bottom: -10px;
                left: 50%;
                transform: translateX(-50%);
                width: 100px;
                height: 4px;
                background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-secondary));
                border-radius: 2px;
            }
        }

        .subtitle {
            position: relative;
            width: fit-content;
            margin-inline: auto;
            font-size: 1.6rem;
            font-weight: 300;
            color: var(--secondary-color);
            margin-bottom: 2rem;
            letter-spacing: 3px;
            text-transform: uppercase;

            &::before {
                content: '◆';
                position: absolute;
                left: -30px;
                top: 50%;
                transform: translateY(-50%);
                color: var(--accent-tertiary);
                font-size: 1.2rem;
            }

            &::after {
                content: '◆';
                position: absolute;
                right: -30px;
                top: 50%;
                transform: translateY(-50%);
                color: var(--accent-tertiary);
                font-size: 1.2rem;
            }
        }

        .text-content {
            margin-bottom: 6rem;
            position: relative;

            .text {
                font-size: 1.3rem;
                font-weight: 400;
                color: var(--text-primary);
                line-height: 1.9;
                margin-bottom: 2.5rem;
                max-width: 800px;
                /* Wider text measure */
                margin-left: auto;
                margin-right: auto;
            }
        }

        @media (max-width: 968px) {
            .text-content {
                flex-direction: column;
                text-align: center;
                gap: 3rem;
            }

            .text-content .intro-image {
                max-width: 100%;
                margin-top: 2rem;
            }
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            /* Wider Minimum Card Size */
            gap: 2rem;
            /* Adjusted gap */
            margin-top: 5rem;
            width: 100%;
            margin-bottom: 5rem;

            .feature {
                /* User edits preserved */
                background: #fdfdfd;
                /* Match download-card base */
                border: 1px solid rgba(77, 77, 77, 0.3);
                border-radius: var(--border-radius);
                padding: 4rem 3rem;
                text-align: center;
                transition: var(--transition);
                position: relative;
                overflow: hidden;
                cursor: pointer;
                transform-origin: center center;

                /* Removed previous complex ::before shine */

                &:hover {
                    transform: translateY(-5px);
                    box-shadow: var(--shadow);
                    background: var(--white);
                    border-color: var(--primary-color);
                    /* Removed previous complex gradient and scale */
                }

                .feature-icon {
                    font-size: 3.5rem;
                    display: block;
                    margin-bottom: 2rem;
                    /* Removed drop-shadow filter to separate from text color handling */
                    color: var(--primary-color);
                    transition: transform 0.3s ease;
                }



                h3 {
                    font-size: 1.8rem;
                    font-weight: 700;
                    color: var(--text-white);
                    margin-bottom: 1.5rem;
                    background: linear-gradient(135deg, var(--text-white) 0%, var(--secondary-color) 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                }

                p {
                    font-size: 1.1rem;
                    font-weight: 300;
                    color: var(--text-primary);
                    line-height: 1.7;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .section3 {
        padding: 4rem 1rem;

        .container {
            .title {
                font-size: 3.5rem;
                letter-spacing: -1px;

                &::after {
                    width: 60px;
                    height: 3px;
                }
            }

            .subtitle {
                font-size: 1.2rem;
                margin-bottom: 3rem;
                letter-spacing: 2px;

                &::before,
                &::after {
                    display: none;
                }
            }

            .text-content {
                margin-bottom: 4rem;

                .text {
                    font-size: 1.1rem;
                    text-align: center;
                }
            }

            .features {
                grid-template-columns: 1fr;
                gap: 2rem;
                margin-top: 3rem;

                .feature {
                    padding: 2.5rem 2rem;

                    .feature-icon {
                        font-size: 3rem;
                        margin-bottom: 1.5rem;
                    }

                    h3 {
                        font-size: 1.5rem;
                        margin-bottom: 1rem;
                    }

                    p {
                        font-size: 1rem;
                    }
                }
            }
        }
    }
}

/* Subpage Layouts */

/* Split Layout for Über Mich */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Align vertically center */
    gap: 40px;
}

.split-layout .text-column {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.split-layout .image-column {
    flex: 1;
    min-width: 300px;
}

.split-layout .image-column img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-block {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Grid for Leistungen */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fdfdfd;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: var(--white);
    border-color: var(--primary-color);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-card h3 i {
    color: var(--primary-color);
}

.service-card p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Download Section for Formulare */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.download-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition);
    display: flex;
    align-items: start;
    gap: 20px;
    background: #fdfdfd;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: var(--white);
    border-color: var(--primary-color);
}

.download-card i.fa-file-pdf {
    font-size: 2.5rem;
    color: #d32f2f;
}

.download-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.download-card p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.download-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column-reverse;
        /* Text on top on mobile, usually better but let's stick to order */
        flex-direction: column;
    }

    .split-layout .text-column {
        padding-right: 0;
    }

    .content-block {
        padding: 30px;
        /* Reduced padding on mobile */
    }
}