/*
Theme Name: Deichfenster Theme
Version: 2.3
*/

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f4f0;
    color:#15202b;
}

/* HEADER */

.site-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:30;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:28px 7vw;

    background:rgba(12,20,24,0.12);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.logo{
    color:white;
    font-size:22px;
    font-weight:800;
    letter-spacing:0.08em;
    text-decoration:none;
}

.logo span{
    color:#d4eadf;
}

.main-nav{
    display:flex;
    gap:24px;
    align-items:center;
}

.main-nav a{
    color:#d4eadf;
    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:0.13em;
    font-size:12px;
    font-weight:800;
}

.main-nav a:hover{
    color:white;
}

.nav-cta{
    padding:10px 16px;
    border:1px solid rgba(212,234,223,0.55);
    border-radius:999px;
}

/* HERO */

.product-section{
    position:relative;
    background:#f5f4f0;
}

.theme-hero{
    position:relative;
    min-height:100vh;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    display:flex;
    align-items:center;
    overflow:visible;
}

.hero-fenster{
    background-image:url('./images/hero-fenster.png');
}

.hero-tueren{
    background-image:url('./images/hero-tueren.png');
}

.hero-rollladen{
    background-image:url('./images/hero-rollladen.png');
}

.hero-insektenschutz{
    background-image:url('./images/hero-insektenschutz.png');
}

.overlay{
    position:absolute;
    inset:0;
    z-index:1;

    background:linear-gradient(
        90deg,
        rgba(12,20,24,0.78) 0%,
        rgba(12,20,24,0.42) 40%,
        rgba(12,20,24,0.10) 100%
    );
}

.hero-content{
    position:relative;
    z-index:3;

    max-width:640px;
    padding:0 0 0 7vw;

    color:white;
}

h1{
    font-size:clamp(56px,7.2vw,104px);
    line-height:0.92;
    letter-spacing:-0.055em;
    margin:0 0 30px 0;
}

.subline{
    font-size:21px;
    line-height:1.58;
    color:rgba(255,255,255,0.9);
    max-width:520px;
    margin:0;
}

/* BUTTONS */

.btn,
.info-toggle{
    display:inline-block;
    text-decoration:none;
    border:none;
    cursor:pointer;

    padding:12px 20px;
    border-radius:999px;

    font-family:inherit;
    font-weight:800;
    font-size:12px;

    background:#f5f4f0;
    color:#15202b;

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    box-shadow:0 12px 30px rgba(0,0,0,0.15);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.btn:hover,
.info-toggle:hover{
    transform:translateY(-2px);
    background:white;
}

.info-toggle{
    position:relative;
    z-index:5;

    margin-top:30px;

    text-transform:uppercase;
    letter-spacing:0.13em;

    padding:10px 16px;
    font-size:11px;

    background:rgba(245,244,240,0.88);
    border:1px solid rgba(21,32,43,0.08);
}

.info-toggle::before{
    content:"+ ";
    font-weight:900;
}

.info-toggle.is-open::before{
    content:"– ";
}

/* HERO INFO PANEL */

.hero-info-panel{
    position:absolute;
    right:4vw;
    top:13vh;

    width:min(72vw,1360px);

    z-index:12;
}

.hero-info-panel[hidden]{
    display:none !important;
}

.expand-panel{
    padding:30px;
    border-radius:34px;

    background:rgba(245,244,240,0.96);
    color:#15202b;

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    box-shadow:0 34px 90px rgba(0,0,0,0.24);
}

.panel-main{
    padding-bottom:14px;
    margin-bottom:12px;
}

.panel-main h2{
    margin:0 0 8px 0;

    font-size:26px;
    line-height:1.02;
    letter-spacing:-0.025em;
    font-weight:650;

    color:#15202b;
}

.panel-main p{
    max-width:640px;
    margin:0;

    font-size:13px;
    line-height:1.45;

    color:#46515a;
}

/* PANEL TABS */

.panel-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin:8px 0 22px;
    padding-bottom:0;

    border-bottom:none;
}

.tab-btn{
    border:none;
    cursor:pointer;

    padding:10px 16px;
    border-radius:999px;

    font-family:inherit;
    font-size:13px;
    font-weight:800;

    letter-spacing:0.08em;
    text-transform:uppercase;

    background:rgba(255,255,255,0.45);
    color:#46515a;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.tab-btn:hover{
    transform:translateY(-1px);
    background:white;
}

.tab-btn.active{
    background:#15202b;
    color:#f5f4f0;
}

.tab-btn.active::after{
    display:none;
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

/* TECH LAYOUT */

.tech-layout{
    display:grid;
    grid-template-columns:minmax(250px,0.34fr) minmax(0,0.66fr);
    gap:28px;
    align-items:start;
}

.tech-copy{
    padding:4px 0 0;
}

.eyebrow{
    margin:0 0 10px;
    font-size:11px;
    font-weight:800;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:#7b8691;
}

.tech-copy h3{
    margin:0 0 14px;

    font-size:clamp(28px,2.2vw,42px);
    line-height:0.98;
    letter-spacing:-0.045em;

    color:#15202b;
}

.tech-copy > p:not(.eyebrow){
    margin:0 0 22px;

    font-size:15px;
    line-height:1.55;

    color:#46515a;
}

.feature-list{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}

.feature-list div{
    padding:0 0 14px;
    border-bottom:1px solid rgba(21,32,43,0.12);
}

.feature-list div:last-child{
    border-bottom:none;
}

.feature-list strong{
    display:block;

    margin-bottom:4px;

    font-size:15px;
    line-height:1.25;

    color:#15202b;
}

.feature-list span{
    display:block;

    font-size:13px;
    line-height:1.42;

    color:#46515a;
}

/* FEATURE IMAGE */

.panel-feature-image{
    width:100%;
}

.panel-feature-image img{
    width:100%;
    height:auto;
    display:block;

    border-radius:22px;

    box-shadow:0 18px 50px rgba(0,0,0,0.10);
}

.panel-image-note{
    margin:10px 4px 0;

    font-size:0.72rem;
    line-height:1.4;

    color:#7a7f84;

    letter-spacing:0.02em;
}

/* FALLBACK GRID */

.info-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.info-grid > div{
    padding:26px;
    border-radius:24px;

    background:white;

    box-shadow:0 16px 44px rgba(0,0,0,0.08);
}

.info-grid h3{
    margin:0 0 16px 0;

    font-size:21px;
    line-height:1.1;
    letter-spacing:-0.03em;

    color:#15202b;
}

.info-grid ul{
    margin:0;
    padding-left:20px;

    color:#46515a;
    line-height:1.75;
    font-size:15px;
}

/* KONTAKT */

.kontakt-section{
    min-height:70vh;

    background:linear-gradient(135deg,#10232b,#2f7d5c);

    color:white;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;

    padding:90px 7vw;
}

.kontakt-section h2{
    font-size:clamp(42px,5vw,72px);
    line-height:0.95;
    letter-spacing:-0.055em;

    margin:0 0 24px 0;
}

.kontakt-section p{
    font-size:20px;
    color:rgba(255,255,255,0.82);
    margin:0 0 34px 0;
}

/* MOBILE */

@media(max-width:900px){

    .site-header{
        align-items:flex-start;
        flex-direction:column;
        gap:22px;

        padding:24px 7vw;

        background:rgba(12,20,24,0.88);
    }

    .logo{
        font-size:21px;
    }

    .main-nav{
        flex-wrap:wrap;
        gap:12px 22px;
    }

    .main-nav a{
        font-size:11px;
        letter-spacing:0.12em;
    }

    .nav-cta{
        padding:0;
        border:none;
        border-radius:0;
    }

    .theme-hero{
        min-height:100svh;

        align-items:flex-start;
        flex-direction:column;

        padding-top:185px;

        overflow:visible;
    }

    .hero-fenster{
        background-image:url('./images/hero-fenster-mobile.png');
        background-position:center bottom;
    }

    .hero-tueren{
        background-image:url('./images/hero-tueren-mobile.png');
        background-position:center bottom;
    }

    .hero-rollladen{
        background-image:url('./images/hero-rollladen-mobile.png');
        background-position:center bottom;
    }

    .hero-insektenschutz{
        background-image:url('./images/hero-insektenschutz-mobile.png');
        background-position:center bottom;
    }

    .overlay{
        background:linear-gradient(
            180deg,
            rgba(12,20,24,0.80) 0%,
            rgba(12,20,24,0.42) 38%,
            rgba(12,20,24,0.10) 100%
        );
    }

    .hero-content{
        width:100%;
        max-width:100%;

        padding:0 7vw;
    }

    h1{
        font-size:32px;
        line-height:1.02;
        letter-spacing:-0.04em;

        margin-bottom:16px;
    }

    .subline{
        font-size:14px;
        line-height:1.42;
        max-width:270px;
    }

    .info-toggle{
        margin-top:24px;

        padding:13px 18px;

        font-size:11px;
        letter-spacing:0.13em;
        text-align:left;
    }

    .hero-info-panel{
        position:relative;

        right:auto;
        top:auto;

        width:calc(100% - 14vw);

        margin:46px 7vw 0;

        z-index:10;
    }

    .expand-panel{
        padding:22px;
        border-radius:26px;

        box-shadow:0 24px 70px rgba(0,0,0,0.16);
    }

    .panel-main{
        padding-bottom:12px;
        margin-bottom:12px;
    }

    .panel-main h2{
        font-size:23px;
        line-height:1.04;
        letter-spacing:-0.035em;
    }

    .panel-main p{
        font-size:13px;
        line-height:1.55;
    }

    .panel-tabs{
        gap:10px;

        overflow-x:auto;

        margin:8px 0 18px;
        padding-bottom:4px;

        scrollbar-width:none;
    }

    .panel-tabs::-webkit-scrollbar{
        display:none;
    }

    .tab-btn{
        flex:0 0 auto;

        font-size:11px;
        letter-spacing:0.08em;

        padding:9px 14px;
    }

    .tech-layout{
        grid-template-columns:1fr;
        gap:20px;
    }

    .tech-copy{
        order:2;
    }

    .panel-feature-image{
        order:1;
    }

    .tech-copy h3{
        font-size:28px;
        line-height:1.02;
    }

    .tech-copy > p:not(.eyebrow){
        font-size:14px;
        line-height:1.5;
    }

    .feature-list{
        gap:12px;
    }

    .feature-list strong{
        font-size:15px;
    }

    .feature-list span{
        font-size:14px;
    }

    .panel-feature-image img{
        border-radius:20px;
    }

    .info-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .info-grid > div{
        padding:24px;
        border-radius:22px;
    }

    .kontakt-section{
        min-height:52vh;
        padding:80px 7vw;
    }

}