/* ==========================================================================
   PUFALL TREPPEN - MODERN BOXED CONCEPT STYLESHEET (lp-twenty-six.css)
   ========================================================================= */

/* --- LOKALE FONTS (DSGVO-KONFORM AUF V44 AKTUALISIERT) --- */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- BASICS & BACKGROUND --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #7c7c7c;
    line-height: 1.7;
    background-color: #282828; 
}

img {
    max-width: 100%;
    display: block;
}

/* --- GLOBAL 1440PX DESKTOP WRAPPER --- */
.page-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
}

.magazine-layout-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.content-magazine {
    width: 100%;
    padding: 0;
}

.magazine-section {
    margin-bottom: 7rem;
}

/* --- HERO WRAPPER (SCHLANKES 40VH BANNER-DESIGN) --- */
.hero-clean {
    position: relative;
    width: 100%;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222222;
    opacity: 0.4;
    z-index: 2;
}

.hero-top-bar {
    position: absolute;
    top: 2rem;
    right: 4rem;
    z-index: 10;
}

.top-phone {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.phone-svg-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #f49d0e;
    margin-right: 0.5rem;
}

.hero-center-emblem {
    position: relative;
    z-index: 5;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-link {
    display: block;
    width: 100%;
    height: 100%;
}

.emblem-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.emblem-link:hover .emblem-img {
    transform: scale(1.03);
}

/* --- SEKTION 01: SPLIT WEISS (LUFTIG & WEIT) --- */
.section-split-white {
    background-color: #ffffff;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: stretch;
}

.split-container .text-block {
    padding: 8rem 5rem 8rem 5rem;
}

.image-bleed-right {
    width: 100%;
    height: 100%;
}

.image-bleed-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- SEKTION 02: COLOURED SPLIT (#f2f1ec) --- */
.section-split-colored {
    background-color: #f2f1ec;
    padding: 7rem 0;
    width: 100%;
    margin-bottom: 7rem;
}

/* --- IMAGE OVERLAP STACK --- */
.image-stack-container {
    position: relative;
    width: 100%;
    height: 480px;
}

.img-base-frame {
    position: relative;
    width: 80%;
    height: 100%;
}

.stack-img-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-overlap-frame {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50%;
    height: 70%;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    z-index: 2;
}

.stack-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- GENERAL MAGAZINE GRIDS & TYPES --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.align-center { align-items: center; }
.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #bbb19a;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.section-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #bbb19a;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.85rem;
    font-weight: 300;
    color: #7c7c7c;
    line-height: 1.35;
    margin-bottom: 1.5rem;
}

p {
    color: #7c7c7c;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.action-zone {
    margin-top: 1rem;
}

.btn-magazine-beige {
    display: inline-block;
    background: #bbb19a;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0;
    transition: background 0.3s ease;
}

.btn-magazine-beige:hover {
    background: #f49d0e;
}

.image-full-width img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

/* --- FACTS SEKTION --- */
.facts-section {
    background: #ffffff;
    padding: 5rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 7rem;
}

.facts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.fact-card {
    text-align: center;
}

.fact-icon-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact-svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7c7c7c;
    margin-bottom: 1rem;
}

.fact-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #999999;
}

/* --- 3x3 GALERIE RASTER SYSTEM --- */
.gallery-grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Perfektes 3x3 auf Desktop */
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* LIGHTBOX SYSTEM */
.lightbox-overlay {
    display: none; /* JavaScript setzt dies auf flex beim Klick */
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.96);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 92%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #f49d0e;
}

/* --- KONTAKT & GIF-CTA WRAPPER --- */
.contact-magazine-block {
    background: #222222;
    padding: 5rem 0;
    color: #ffffff;
}

.contact-magazine-block h2, 
.contact-magazine-block p {
    color: #ffffff;
}

.address-box {
    margin-top: 2rem;
    color: #ffffff;
    font-style: normal;
}

.contact-email-link {
    color: #f49d0e !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-email-link:hover {
    color: #bbb19a !important;
}

.contact-gif-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gif-link {
    display: block;
    width: 100%;
    text-decoration: none;
    overflow: hidden;
    background: #ffffff;
    padding: 1.5rem;
}

.gif-cta-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.4s ease;
}

/* --- FOOTER (30PX HÖHE) --- */
.magazine-footer {
    background: #f49d0e; 
    padding: 0 4rem;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.magazine-footer p {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 30px;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 30px;
    transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   RESPONSIVE DESIGN (SMARTPHONE- & TABLET-OPTIMIERT)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2, .split-container, .facts-grid-3 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .split-container .text-block {
        padding: 4rem 2rem;
    }
    .magazine-layout-container {
        padding: 0 2rem;
    }
    .image-bleed-right {
        min-height: 320px;
    }
    .image-full-width img {
        height: 320px;
    }
    .section-split-white {
        margin-bottom: 4rem;
    }
    
    .image-stack-container {
        height: 350px;
    }
    .img-base-frame {
        width: 100%;
        height: 100%;
    }
    .img-overlap-frame {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-clean {
        height: auto;
        min-height: 45vh;
        flex-direction: column;
        justify-content: center;
        padding: 3rem 1rem;
    }

    .hero-center-emblem {
        order: 1;
        width: 140px;
        height: 140px;
        margin-bottom: 2rem;
    }

    .hero-top-bar {
        position: relative;
        order: 2;
        top: 0;
        right: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .top-phone {
        justify-content: center;
    }
    
    .section-split-colored {
        padding: 4rem 0;
    }
    
    /* Mobil legen sich die 3x3 Kacheln vollflächig untereinander */
    .gallery-grid-9 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .magazine-footer {
        height: auto;
        padding: 1rem 2rem;
    }
    
    .footer-container {
        height: auto;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .magazine-footer p {
        line-height: 1.4;
    }
    
    .footer-legal-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-legal-links a {
        line-height: 1.4;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}