/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --separator-width: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--darker-bg);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.logo-container {
    margin-bottom: 3rem;
}

.hero-logo {
    width: 500px;
    max-width: 90vw;
    height: auto;
}

.hero-tagline {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--light-text);
    border-radius: 25px;
    cursor: pointer;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--light-text);
    border-radius: 50%;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Collage Sections */
.collage-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
}

/* Image Block Wrapper - for overlays that shouldn't be clipped */
.image-block-wrapper {
    position: relative;
    width: 100%;
}

/* Image Blocks */
.image-block {
    position: relative;
    width: 100%;
    overflow: visible;
}

.image-block.large {
    height: 80vh;
    min-height: 600px;
}

.image-block.medium {
    height: 60vh;
    min-height: 400px;
}

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

/* Clip paths - alternating diagonal directions for dynamic look */
/* Normal: lines go from left-higher to right-lower (↘) */
/* Reverse: lines go from left-lower to right-higher (↖) */

.image-block.clip-bottom img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

.image-block.clip-bottom-reverse img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.image-block.clip-top img {
    clip-path: polygon(0 20px, 100% 80px, 100% 100%, 0 100%);
}

.image-block.clip-top-reverse img {
    clip-path: polygon(0 80px, 100% 20px, 100% 100%, 0 100%);
}

.image-block.clip-both img {
    clip-path: polygon(0 20px, 100% 80px, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

.image-block.clip-both-reverse img {
    clip-path: polygon(0 80px, 100% 20px, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

/* For direction changes - starts one way, ends the other */
.image-block.clip-change img {
    clip-path: polygon(0 20px, 100% 80px, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.image-block.clip-change-reverse img {
    clip-path: polygon(0 80px, 100% 20px, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

/* Medium images */
.image-block.medium.clip-bottom img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

.image-block.medium.clip-bottom-reverse img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.image-block.medium.clip-top img {
    clip-path: polygon(0 20px, 100% 80px, 100% 100%, 0 100%);
}

.image-block.medium.clip-top-reverse img {
    clip-path: polygon(0 80px, 100% 20px, 100% 100%, 0 100%);
}

.image-block.medium.clip-both img {
    clip-path: polygon(0 20px, 100% 80px, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

.image-block.medium.clip-both-reverse img {
    clip-path: polygon(0 80px, 100% 20px, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.image-block.medium.clip-change img {
    clip-path: polygon(0 20px, 100% 80px, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.image-block.medium.clip-change-reverse img {
    clip-path: polygon(0 80px, 100% 20px, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

/* Text Overlay on Images */
.text-overlay {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    text-align: right;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    z-index: 100;
}

.image-block-wrapper {
    position: relative;
}

.logo-small img {
    height: 120px;
    width: auto;
    margin-bottom: 1.5rem;
}

.text-overlay h2 {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.text-overlay p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-text);
}

/* Diagonal Separators - Hidden (white background does the work) */
.diagonal-separator,
.diagonal-separator-small {
    display: none;
}

/* Text Block */
.text-block {
    padding: 8rem 4rem;
    text-align: center;
}

.text-block.dark {
    background-color: var(--darker-bg);
}

.text-block.clip-top {
    clip-path: polygon(0 20px, 100% 80px, 100% 100%, 0 100%);
}

.text-block.clip-top-reverse {
    clip-path: polygon(0 80px, 100% 20px, 100% 100%, 0 100%);
}

.text-block.clip-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

.text-block.clip-bottom-reverse {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.text-block.clip-both {
    clip-path: polygon(0 20px, 100% 80px, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

.text-block.clip-both-reverse {
    clip-path: polygon(0 80px, 100% 20px, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.text-block.clip-change {
    clip-path: polygon(0 20px, 100% 80px, 100% calc(100% - 80px), 0 calc(100% - 20px));
}

.text-block.clip-change-reverse {
    clip-path: polygon(0 80px, 100% 20px, 100% calc(100% - 20px), 0 calc(100% - 80px));
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
}

.text-content h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.text-content .lead {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--gray-text);
}

.text-content p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-text);
    font-weight: 300;
    line-height: 1.8;
}

.text-content .highlight {
    font-size: 1.5rem !important;
    margin-top: 3rem !important;
    color: var(--light-text) !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
}

/* Angebot Grid inside Text Block */
.text-block .angebot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.text-block .angebot-item {
    text-align: left;
}

.text-block .angebot-item h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.text-block .angebot-item p {
    font-size: 1.1rem;
    color: var(--gray-text);
    font-weight: 300;
    line-height: 1.8;
}

.text-block .angebot-item p a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.text-block .angebot-item p a:hover {
    opacity: 0.7;
}

/* Image Grid */
.image-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
}

/* Kontakt Section */
.kontakt {
    padding: 8rem 4rem;
    background-color: var(--darker-bg);
}

.kontakt h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.info-block p {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 300;
}

.social-link,
.link {
    color: var(--light-text);
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-link:hover,
.link:hover {
    opacity: 0.7;
}

.kontakt-map iframe {
    filter: grayscale(1) invert(1);
    border-radius: 8px;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.footer p {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--light-text);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal:target {
    display: block;
}

.modal-content {
    background-color: var(--dark-bg);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-close {
    color: var(--light-text);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    font-weight: 300;
    text-decoration: none;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .text-overlay {
        right: 3%;
        padding: 2rem;
    }

    .logo-small img {
        height: 80px;
    }

    .text-overlay h2 {
        font-size: 1.1rem;
    }

    .text-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    /* Hero adjustments */
    .hero-logo {
        width: 250px;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    /* Text blocks with extra padding to avoid diagonal cuts */
    .text-block {
        padding: 6rem 2rem !important;
    }

    .text-content h2 {
        font-size: 1.8rem !important;
        padding: 1rem 0;
    }

    .text-content .lead {
        font-size: 1.2rem;
    }

    .text-content p {
        font-size: 1rem;
    }

    /* Make "Unser Angebot" heading larger on mobile */
    .text-block .text-content h2 {
        font-size: 2.2rem !important;
        font-weight: 500;
        margin-bottom: 2rem;
    }

    .text-overlay {
        position: static;
        transform: none;
        margin: 2rem;
        text-align: left;
    }

    .image-block.large {
        height: 60vh;
        min-height: 400px;
    }

    .image-block.medium {
        height: 50vh;
        min-height: 300px;
    }

    .kontakt {
        padding: 4rem 2rem;
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .diagonal-separator {
        height: 25px;
        margin: -12px 0;
    }

    .diagonal-separator-small {
        height: 15px;
        margin: -8px 0;
    }

    /* Scroll indicator smaller on mobile */
    .scroll-indicator {
        width: 25px;
        height: 40px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 200px;
    }

    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .text-overlay {
        margin: 1rem;
        padding: 1.5rem;
    }

    .logo-small img {
        height: 60px;
    }

    /* Extra padding for very small screens */
    .text-block {
        padding: 7rem 1.5rem !important;
    }

    .text-content h2 {
        font-size: 1.5rem !important;
    }

    .text-block .text-content h2 {
        font-size: 2rem !important;
    }

    .kontakt {
        padding: 3rem 1.5rem;
    }
}
