:root{
    --bg:#122534;
    --bg-dark:#08131d;
    --bg-soft:#173144;
    --blue:#0d3b63;
    --red:#d71920;
    --green:#64a53d;
    --white:#ffffff;
    --text-soft:#dbe6ed;
    --shadow:0 20px 45px rgba(0,0,0,0.35);
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Poppins,sans-serif;
    background:var(--bg);
    color:var(--white);
}

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

section{
    padding:95px 10%;
}

/* ================= Header ================= */

.hero{
    min-height:700px;
    background:
        linear-gradient(180deg, rgba(8,19,29,0.04) 0%, rgba(8,19,29,0.08) 55%, rgba(18,37,52,0.98) 100%),
        url("../images/hero.png") center center/cover no-repeat;
    position:relative;
    overflow:hidden;
}

.hero-partners{
    position:absolute;
    top:26px;
    right:38px;
    z-index:5;
    display:flex;
    align-items:center;
    gap:14px;
    padding:10px 14px;
    border:1px solid rgba(255,255,255,0.2);
    border-radius:999px;
    background:rgba(8,19,29,0.52);
    backdrop-filter:blur(10px);
    box-shadow:0 10px 25px rgba(0,0,0,0.18);
}

.hero-partners span{
    font-size:12px;
    letter-spacing:1.4px;
    text-transform:uppercase;
    color:rgba(255,255,255,0.72);
    white-space:nowrap;
}

.hero-partners a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:76px;
    height:34px;
    padding:5px 8px;
    border-radius:999px;
    background:rgba(255,255,255,0.82);
    opacity:0.72;
    transition:opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.hero-partners a:hover{
    opacity:1;
    transform:translateY(-2px);
    background:#fff;
}

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

.overlay{
    min-height:700px;
    padding:0 20px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    transform:translateY(75px);
}

.logo{
    width:300px;
    margin-bottom:210px;
}

.overlay h1{
    max-width:1300px;
    font-size:clamp(32px,4.2vw,60px);
    line-height:1.15;
    font-weight:700;
    color:#fff;
    letter-spacing:2px;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0 8px 24px rgba(0,0,0,0.5);
}

/* ================= Mission ================= */

.mission{
    padding-top:170px;
    background:
        radial-gradient(circle at 15% 20%, rgba(74,144,226,0.18), transparent 30%),
        var(--bg);
}

.mission-intro{
    max-width:1000px;
    margin:0 auto 70px;
    text-align:center;
}

.mission-intro h2,
.angebot h2{
    font-size:clamp(38px,4vw,56px);
    font-weight:700;
    margin-bottom:18px;
}

.mission-intro h3{
    font-size:clamp(24px,2.6vw,36px);
    font-weight:700;
    margin-bottom:28px;
}

.mission-intro p{
    font-size:clamp(17px,1.35vw,23px);
    line-height:1.8;
    color:var(--text-soft);
}

.mission-values{
    width:min(1120px,100%);
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:28px;
    align-items:stretch;
}

.mission-value{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:24px;
    min-height:150px;
    padding:28px 30px;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:28px;
    background:linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    box-shadow:0 14px 40px rgba(0,0,0,0.18);
    text-align:left;
    overflow:hidden;
    transition:transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.mission-value::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    background:currentColor;
    opacity:0.9;
}

.mission-value::after{
    content:"";
    position:absolute;
    right:-70px;
    top:-70px;
    width:170px;
    height:170px;
    border-radius:50%;
    background:currentColor;
    opacity:0.055;
    pointer-events:none;
}

.mission-value:nth-child(5){
    grid-column:1 / -1;
    width:calc(50% - 14px);
    justify-self:center;
}

.mission-value:hover{
    transform:translateY(-8px);
    border-color:rgba(255,255,255,0.24);
    background:linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
    box-shadow:0 22px 46px rgba(0,0,0,0.26);
}

.value-icon{
    flex:0 0 82px;
    width:82px;
    height:82px;
    display:grid;
    place-items:center;
    border-radius:24px;
    background:rgba(255,255,255,0.06);
}

.value-icon svg{
    width:54px;
    height:54px;
    fill:none;
    stroke:currentColor;
    stroke-width:4;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.value-text h4{
    font-size:clamp(24px,2.2vw,30px);
    line-height:1.2;
    margin-bottom:8px;
    text-transform:uppercase;
    letter-spacing:0.6px;
}

.value-text p{
    font-size:18px;
    line-height:1.6;
    color:var(--text-soft);
}

.heat{color:var(--red);}
.service{color:#1f5a89;}
.trust{color:var(--green);}
.sustainability,
.innovation{color:#9cc3df;}

.heat .value-text p,
.service .value-text p,
.trust .value-text p,
.sustainability .value-text p,
.innovation .value-text p{
    color:var(--text-soft);
}

/* ================= Angebot ================= */

.angebot{
    text-align:center;
    background:#0f2231;
}

.angebot h2{
    margin-bottom:58px;
}

.angebot-triptych{
    display:flex;
    width:min(1180px,100%);
    min-height:520px;
    margin:0 auto;
    border-radius:34px;
    overflow:hidden;
    box-shadow:var(--shadow);
    background:#08131d;
}

.angebot-panel{
    position:relative;
    flex:1;
    display:flex;
    align-items:flex-end;
    min-height:520px;
    isolation:isolate;
    background-position:center;
    background-size:cover;
    transition:flex 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.angebot-panel::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(180deg, rgba(8,19,29,0.05) 0%, rgba(8,19,29,0.28) 35%, rgba(8,19,29,0.9) 100%);
}

.angebot-panel::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    right:0;
    width:1px;
    background:rgba(255,255,255,0.25);
}

.angebot-panel:last-child::after{
    display:none;
}

.angebot-panel:hover{
    flex:1.22;
    transform:translateY(-14px);
    filter:saturate(1.08) contrast(1.04);
    z-index:2;
}

.angebot-panel.verkauf{
    background-image:url("../images/verkauf.png");
}

.angebot-panel.wartung{
    background-image:url("../images/wartung.png");
}

.angebot-panel.notdienst{
    background-image:url("../images/notdienst.png");
}

.angebot-content{
    width:100%;
    padding:34px;
    text-align:left;
}

.angebot-content span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    margin-bottom:18px;
    border:1px solid rgba(255,255,255,0.5);
    border-radius:50%;
    font-size:15px;
    font-weight:700;
    background:rgba(8,19,29,0.35);
}

.angebot-content h3{
    font-size:clamp(30px,3vw,44px);
    margin-bottom:12px;
}

.angebot-content p{
    font-size:18px;
    line-height:1.55;
    color:#edf4f8;
    max-width:360px;
    opacity:0;
    transform:translateY(10px);
    transition:opacity 0.3s ease, transform 0.3s ease;
}

.angebot-panel:hover .angebot-content p{
    opacity:1;
    transform:translateY(0);
}

/* ================= Warum ================= */

.warum{
    text-align:center;
    background:var(--bg);
}

.tfg-logo{
    width:280px;
    margin:0 auto 60px;
}

.features{
    display:flex;
    gap:38px;
    justify-content:center;
    flex-wrap:wrap;
}

.feature{
    width:320px;
    min-height:260px;
    background:#4A90E2;
    border-radius:30px;
    padding:38px;
    box-shadow:0 15px 34px rgba(0,0,0,0.23);
}

.feature h3{
    margin-bottom:20px;
    font-size:25px;
}

.feature p{
    line-height:1.65;
    color:#f4f8fb;
}

/* ================= Kontakt ================= */

.kontakt{
    background:#0f2231;
}

.kontakt-content{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:80px;
    text-align:center;
}

.info h2{
    font-size:48px;
    font-weight:700;
    color:white;
    margin-bottom:30px;
}

.info p{
    font-size:24px;
    line-height:1.8;
    color:white;
    margin-bottom:20px;
}

.map img{
    width:min(500px,90vw);
    border-radius:16px;
    box-shadow:var(--shadow);
}

/* ================= Impressum + Footer ================= */

.impressum{
    background:#08131d;
    padding:35px 5%;
    border-top:1px solid #35546d;
}

.impressum h3{
    text-align:center;
    color:white;
    font-size:22px;
    margin-bottom:20px;
    font-weight:600;
}

.impressum-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
    max-width:1400px;
    margin:auto;
}

.impressum-grid div{
    color:#d9d9d9;
    font-size:13px;
    line-height:1.5;
}

.impressum-grid strong{
    color:#4A90E2;
    display:block;
    margin-bottom:5px;
    font-size:14px;
}

footer{
    background:#0d1a24;
    padding:30px 90px;
    text-align:center;
    color:#d9e4ec;
}

/* ================= Floating Button ================= */

.scroll-toggle{
    position:fixed;
    right:28px;
    bottom:28px;
    z-index:100;
    width:58px;
    height:58px;
    border:1px solid rgba(255,255,255,0.35);
    border-radius:50%;
    background:rgba(8,19,29,0.76);
    color:#fff;
    font-size:30px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
    box-shadow:0 14px 30px rgba(0,0,0,0.34);
    backdrop-filter:blur(10px);
    transition:transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.scroll-toggle:hover{
    transform:translateY(-4px);
    background:#0d3b63;
    border-color:rgba(255,255,255,0.65);
}

/* ================= Responsive ================= */

@media(max-width:1100px){
    section{
        padding:80px 6%;
    }

    .hero-partners{
        right:20px;
        left:20px;
        justify-content:center;
        flex-wrap:wrap;
        border-radius:24px;
    }

    .overlay{
        transform:translateY(110px);
    }

    .logo{
        margin-bottom:150px;
    }

    .angebot-triptych{
        min-height:440px;
    }

    .angebot-panel{
        min-height:440px;
    }

    .impressum-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:800px){
    .hero{
        min-height:760px;
    }

    .overlay{
        min-height:760px;
        transform:translateY(85px);
    }

    .logo{
        width:230px;
        margin-bottom:140px;
    }

    .hero-partners a{
        width:64px;
        height:30px;
    }

    .mission{
        padding-top:145px;
    }

    .mission-values{
        grid-template-columns:1fr;
    }

    .mission-value,
    .mission-value:nth-child(5){
        width:100%;
        grid-column:auto;
        justify-self:stretch;
        flex-direction:row;
        text-align:left;
    }

    .mission-value:hover{
        transform:translateY(-6px);
    }

    .angebot-triptych{
        flex-direction:column;
        min-height:auto;
        overflow:visible;
        gap:20px;
        background:transparent;
        box-shadow:none;
    }

    .angebot-panel,
    .angebot-panel:hover{
        min-height:360px;
        border-radius:26px;
        overflow:hidden;
        transform:none;
        flex:unset;
        box-shadow:var(--shadow);
    }

    .angebot-panel::after{
        display:none;
    }

    .angebot-content p{
        opacity:1;
        transform:none;
    }

    .kontakt-content{
        gap:50px;
    }

    .info p{
        font-size:20px;
    }
}

@media(max-width:700px){
    .impressum-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    footer{
        padding:30px 70px 30px 20px;
    }
}


@media(max-width:520px){
    .mission-value,
    .mission-value:nth-child(5){
        flex-direction:column;
        align-items:flex-start;
    }

    .value-icon{
        width:72px;
        height:72px;
        flex-basis:72px;
    }

    .value-icon svg{
        width:48px;
        height:48px;
    }
}

/* ================= PATCH V5: Hero Claim Fix ================= */

/* Der Hero darf sichtbar über den nächsten Abschnitt hinausragen. */
.hero{
    min-height:720px !important;
    overflow:visible !important;
    padding-bottom:0 !important;
    background:
        linear-gradient(180deg, rgba(8,19,29,0.04) 0%, rgba(8,19,29,0.10) 52%, rgba(18,37,52,0.88) 84%, rgba(18,37,52,1) 100%),
        url("../images/hero.png") center center/cover no-repeat !important;
}

/* Das Logo bleibt mittig im Bild und bekommt keinen weißen Klotz. */
.overlay{
    min-height:720px !important;
    transform:none !important;
    padding:0 20px 80px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.logo{
    width:min(360px,72vw) !important;
    margin:0 !important;
    filter:drop-shadow(0 12px 22px rgba(0,0,0,0.28));
}

/* Der Claim sitzt exakt auf der Grenze zwischen Hero und Mission. */
.hero-claim{
    position:absolute !important;
    left:50% !important;
    bottom:0 !important;
    transform:translate(-50%, 50%) !important;
    z-index:25 !important;
    width:min(1080px, calc(100% - 40px)) !important;
    text-align:center !important;
    padding:20px 28px !important;
    border:1px solid rgba(255,255,255,0.14) !important;
    border-radius:28px !important;
    background:rgba(11,31,45,0.92) !important;
    backdrop-filter:blur(10px);
    box-shadow:0 22px 48px rgba(0,0,0,0.32) !important;
}

.hero-claim h1{
    margin:0 !important;
    max-width:none !important;
    font-size:clamp(28px,4vw,54px) !important;
    line-height:1.12 !important;
    font-weight:700 !important;
    letter-spacing:1.5px !important;
    color:#fff !important;
    text-shadow:none !important;
}

/* Abstand, damit der überlappende Claim nicht in die Mission läuft. */
.mission{
    padding-top:170px !important;
}

@media(max-width:1100px){
    .hero{
        min-height:700px !important;
    }

    .overlay{
        min-height:700px !important;
        padding-bottom:70px !important;
    }

    .hero-claim{
        width:calc(100% - 36px) !important;
    }
}

@media(max-width:800px){
    .hero{
        min-height:660px !important;
    }

    .overlay{
        min-height:660px !important;
        padding-bottom:70px !important;
    }

    .logo{
        width:min(260px,70vw) !important;
    }

    .hero-claim{
        padding:18px 20px !important;
        border-radius:22px !important;
    }

    .mission{
        padding-top:145px !important;
    }
}

/* ================= PATCH V6: Combined Offer Grid ================= */

/* Aus 'Unser Angebot' und 'Warum TFG' wird ein gemeinsamer Bildbereich. */
.angebot{
    text-align:center !important;
    background:#0f2231 !important;
    padding-top:110px !important;
    padding-bottom:120px !important;
}

.angebot .section-head{
    margin-bottom:56px !important;
}

.angebot-grid{
    width:min(1180px,100%);
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:28px;
}

.angebot-card{
    position:relative;
    min-height:360px;
    border-radius:30px;
    overflow:hidden;
    background-position:center;
    background-size:cover;
    box-shadow:0 20px 45px rgba(0,0,0,0.35);
    isolation:isolate;
    transform:translateY(0);
    transition:transform 0.32s ease, filter 0.32s ease, box-shadow 0.32s ease;
}

.angebot-card::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        linear-gradient(180deg, rgba(8,19,29,0.03) 0%, rgba(8,19,29,0.24) 42%, rgba(8,19,29,0.94) 100%);
}

.angebot-card:hover{
    transform:translateY(-10px);
    filter:saturate(1.08) contrast(1.04);
    box-shadow:0 26px 55px rgba(0,0,0,0.42);
}

.angebot-card .angebot-content{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    padding:30px;
    text-align:left;
    background:linear-gradient(180deg, rgba(8,19,29,0) 0%, rgba(8,19,29,0.88) 38%, rgba(8,19,29,0.98) 100%);
    transform:translateY(50%);
    transition:transform 0.32s ease;
}

.angebot-card:hover .angebot-content{
    transform:translateY(0);
}

.angebot-card .angebot-content h3{
    font-size:clamp(24px,2.4vw,36px);
    line-height:1.15;
    margin:0 0 12px;
    color:#fff;
    text-shadow:0 4px 16px rgba(0,0,0,0.45);
}

.angebot-card .angebot-content p{
    font-size:17px;
    line-height:1.55;
    color:#edf4f8;
    max-width:360px;
    opacity:0;
    transform:translateY(12px);
    transition:opacity 0.28s ease, transform 0.28s ease;
}

.angebot-card:hover .angebot-content p{
    opacity:1;
    transform:translateY(0);
}

/* Bilder der 6 gemeinsamen Kacheln */
.angebot-verkauf{
    background-image:url("../images/verkauf.png");
}

.angebot-wartung{
    background-image:url("../images/wartung.png");
}

.angebot-notdienst{
    background-image:url("../images/notdienst.png");
}

.angebot-tech{
    background-image:url("../images/hero.png");
}

.angebot-service{
    background-image:url("../images/wartung.png");
}

.angebot-loesungen{
    background-image:url("../images/verkauf.png");
}

/* Alte Bereiche unschädlich machen, falls Browsercache/alte Klassen noch greifen. */
.angebot-triptych,
.feature-gallery,
.features,
.tfg-logo{
    display:none !important;
}

@media(max-width:1100px){
    .angebot-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:700px){
    .angebot-grid{
        grid-template-columns:1fr;
    }

    .angebot-card{
        min-height:330px;
    }

    .angebot-card .angebot-content{
        transform:translateY(0);
    }

    .angebot-card .angebot-content p{
        opacity:1;
        transform:none;
    }
}

/* ================= PATCH V7: Hero Claim Typography ================= */

.hero-claim{
    overflow:hidden;
}

.hero-claim::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:470px;
    height:120px;
    transform:translate(-50%, -5%) scaleX(-1) rotate(-8deg);
    background:linear-gradient(90deg, rgba(215,25,32,0) 0%, rgba(215,25,32,0.12) 18%, rgba(215,25,32,0.42) 52%, rgba(215,25,32,0.16) 82%, rgba(215,25,32,0) 100%);
    border-radius:0 100% 100% 0 / 0 100% 100% 0;
    filter:blur(0.4px);
    opacity:0.95;
    pointer-events:none;
    z-index:0;
}

.hero-claim::after{
    content:"";
    position:absolute;
    left:50%;
    top:54%;
    width:380px;
    height:58px;
    transform:translate(-50%, 0) scaleX(-1) rotate(-7deg);
    border-bottom:4px solid rgba(215,25,32,0.75);
    border-radius:0 0 100% 100%;
    opacity:0.85;
    pointer-events:none;
    z-index:0;
}

.hero-claim h1{
    position:relative;
    z-index:1;
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.hero-claim .claim-main{
    display:block;
    font-size:clamp(42px, 4.5vw, 66px);
    line-height:0.98;
    letter-spacing:1px;
    font-weight:700;
}

.hero-claim .claim-sub{
    display:block;
    font-size:clamp(24px, 2.7vw, 44px);
    line-height:1.04;
    letter-spacing:1.6px;
    font-weight:700;
}

@media(max-width:800px){
    .hero-claim::before{
        width:290px;
        height:80px;
        top:51%;
    }

    .hero-claim::after{
        width:230px;
        height:36px;
        top:56%;
    }

    .hero-claim .claim-main{
        font-size:clamp(30px, 7vw, 44px);
    }

    .hero-claim .claim-sub{
        font-size:clamp(18px, 4.4vw, 28px);
        letter-spacing:1px;
    }
}


/* ================= PATCH V8: Offer Images Update ================= */


.angebot-tech{
    background-image:url("../images/angebot_tech.png") !important;
}

.angebot-service{
    background-image:url("../images/angebot_service.png") !important;
}

.angebot-loesungen{
    background-image:url("../images/angebot_loesungen.png") !important;
}


/* ================= PATCH V9: New Service Image ================= */

.angebot-service{
    background-image:url("../images/exzellenter_service.png") !important;
}


/* ================= PATCH V10: Cookie Popup ================= */

.cookie-open{
    overflow:hidden;
}

.cookie-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:28px;
    background:rgba(3,10,15,0);
    pointer-events:none;
    opacity:0;
    transition:opacity 0.3s ease, background 0.3s ease;
}

.cookie-modal.visible{
    opacity:1;
    pointer-events:auto;
    background:rgba(3,10,15,0.48);
}

.cookie-box{
    width:min(920px,100%);
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:22px;
    align-items:center;
    padding:26px 28px;
    border:1px solid rgba(255,255,255,0.16);
    border-radius:26px;
    background:rgba(11,31,45,0.96);
    color:#fff;
    box-shadow:0 24px 60px rgba(0,0,0,0.42);
    backdrop-filter:blur(14px);
    transform:translateY(24px);
    transition:transform 0.3s ease;
}

.cookie-modal.visible .cookie-box{
    transform:translateY(0);
}

.cookie-icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    font-size:30px;
}

.cookie-text h2{
    font-size:24px;
    margin-bottom:8px;
    font-weight:700;
}

.cookie-text p{
    color:#dbe6ed;
    line-height:1.65;
    font-size:15px;
}

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

.cookie-btn{
    border:0;
    border-radius:999px;
    padding:13px 22px;
    font-family:inherit;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.cookie-btn:hover{
    transform:translateY(-2px);
}

.cookie-decline{
    border:1px solid rgba(255,255,255,0.28);
    background:transparent;
    color:#fff;
}

.cookie-decline:hover{
    border-color:rgba(255,255,255,0.58);
    background:rgba(255,255,255,0.08);
}

.cookie-accept{
    background:#d71920;
    color:#fff;
    box-shadow:0 10px 24px rgba(215,25,32,0.28);
}

.cookie-accept:hover{
    background:#f02b32;
}

@media(max-width:760px){
    .cookie-modal{
        padding:18px;
    }

    .cookie-box{
        grid-template-columns:1fr;
        text-align:left;
        gap:18px;
    }

    .cookie-actions{
        width:100%;
        flex-direction:column-reverse;
    }

    .cookie-btn{
        width:100%;
    }
}
