@font-face {
    font-family: 'Abel-Regular';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Abel-Regular.eot');
    src: local(''),
    url('/fonts/Abel-Regular.eot#iefix') format('embedded-opentype'),
    url('/fonts/Abel-Regular.woff2') format('woff2'),
    url('/fonts/Abel-Regular.woff') format('woff'),
    url('/fonts/Abel-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'HeidelbergGothicMl';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/HeidelbergGothicMl.eot');
    src: local(''),
    url('/fonts/HeidelbergGothicMl.eot#iefix') format('embedded-opentype'),
    url('/fonts/HeidelbergGothicMl.woff2') format('woff2'),
    url('/fonts/HeidelbergGothicMl.woff') format('woff'),
    url('/fonts/HeidelbergGothicMl.ttf') format('truetype');
}

@font-face {
    font-family: 'HeidelbergGothicMl';
    font-style: normal;
    font-weight: 300; // Light
font-display: swap;
    src: url('/fonts/HeidelbergGothicMl-Light.eot');
    src: local(''),
    url('/fonts/HeidelbergGothicMl-Light.eot#iefix') format('embedded-opentype'),
    url('/fonts/HeidelbergGothicMl-Light.woff2') format('woff2'),
    url('/fonts/HeidelbergGothicMl-Light.woff') format('woff'),
    url('/fonts/HeidelbergGothicMl-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'HeidelbergGothicMl';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/HeidelbergGothicMl-Italic.eot');
    src: local(''),
    url('/fonts/HeidelbergGothicMl-Italic.eot#iefix') format('embedded-opentype'),
    url('/fonts/HeidelbergGothicMl-Italic.woff2') format('woff2'),
    url('/fonts/HeidelbergGothicMl-Italic.woff') format('woff'),
    url('/fonts/HeidelbergGothicMl-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'HeidelbergGothicMl';
    font-style: italic;
    font-weight: 700; // Bold Italic
font-display: swap;
    src: url('/fonts/HeidelbergGothicMl-BoldItalic.eot');
    src: local(''),
    url('/fonts/HeidelbergGothicMl-BoldItalic.eot#iefix') format('embedded-opentype'),
    url('/fonts/HeidelbergGothicMl-BoldItalic.woff2') format('woff2'),
    url('/fonts/HeidelbergGothicMl-BoldItalic.woff') format('woff'),
    url('/fonts/HeidelbergGothicMl-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'HeidelbergGothicMl';
    font-style: normal;
    font-weight: 700; // Bold
font-display: swap;
    src: url('/fonts/HeidelbergGothicMl-Bold.eot');
    src: local(''),
    url('/fonts/HeidelbergGothicMl-Bold.eot#iefix') format('embedded-opentype'),
    url('/fonts/HeidelbergGothicMl-Bold.woff2') format('woff2'),
    url('/fonts/HeidelbergGothicMl-Bold.woff') format('woff'),
    url('/fonts/HeidelbergGothicMl-Bold.ttf') format('truetype');
}


:root {
    --bg_section1: #000;
    --section1: #3498db;
    --section2: #2ecc71;
    --section3: #333;
    --section4: 16px;
}

body{
    font-family: 'HeidelbergGothicMl';
    background-color: #fff;
    opacity: 0;
    transition: background-color 1s ease;
    padding-bottom: 35px;
}

body.sec1 { background-color: #0B3976; }
body.sec2 { background-color: #1158B6; }
body.sec3 { background-color: #2264BB; }
body.sec4 { background-color: #5487CA; }
body.sec5 { background-color: #1777F5; }
body.sec6 { background-color: #4894F7; }
body.sec7 { background-color: #7BA1D3; }

body.visible {
    opacity: 1;
}

.bg_image {
    background-image: url("/img/bg_waves.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 0px 200px;
    position: fixed;
    top: 80px;
    height: 100vh;
    display: block;
    z-index: -1;
    width: 100%;
}
body.sec0 .bg_image{
    background-image: url("/img/bg_waves_dark.svg");
}

#navigation.startpage, body.sec0 #openModal, #back_to_start, body.sec0 #back_to_start{
    display: none;
}

main{
    height: 100%;
}
.content{
    margin-left: 480px;
    margin-top: 80px;
}
#navigation.startpage{
    display: none;
}
h1{
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    font-style: italic;
    font-size: 70px;
}

/*****************  NAVIGATION  ****************/
#navigation, #navigation_startseite {
    position: fixed;
    left:0;
    top:80px;
    color: #ffffff;
    background-image: url("/img/nav_bg.png");
    width: 460px;
    height: 920px;
    background-repeat: no-repeat;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}
.navigation_item{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.5s;
}
.navigation_item:hover{
    opacity: 0.8;
}
body.sec0 .navigation_item{
    opacity: 1;
}
.navigation_item.active{
    opacity: 1;
}
.bg_navi{
    display: none;
}
.navigation_item p{
    margin-top: 5px;
    width: 100%;
    text-align: center;
}
.navigation_item img{
    transition: transform 0.3s ease;
}
.navigation_item img:hover{
    transform: scale(1.06);
}
#data_warehouse{
    position: absolute;
    top: 350px;
    left: 5px;
    width: 180px;
    opacity: 1;
}
#data_warehouse p{
    color: #0B3976;
    width: 150px;
}
#data_warehouse img {
    margin-left: 20px;
    width: 150px;
}
#order_intake{
    position: absolute;
    top: 62px;
    left: -22px;
}
#customer_communication{
    position: absolute;
    top: 115px;
    left: 105px;
    width: 200px;
}
#planning{
    position: absolute;
    top: 267px;
    left: 260px;
    width: 100px;
}
#production{
    position: absolute;
    top: 410px;
    left: 297px;
    width: 100px;
}
#material_management{
    position: absolute;
    top: 548px;
    left: 220px;
    width: 200px;
}
#shipping_invoicing{
    position: absolute;
    top: 680px;
    left: 121px;
    width: 200px;
}
#business_intelligence{
    position: absolute;
    top: 754px;
    left: -21px;
    width: 200px;
}

.navigation_item .on{
    display: none;
}
.navigation_item .off{
    display: block;
}
.navigation_item.active .on{
    display: block;
}
.navigation_item.active .off{
    display: none;
}

/* Hamburger */
.navigation_mobile_wrapper {
    display: none;
    width: 100%;
    justify-content: space-between;
    padding: 17px 10px;
    background-color: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 100;
    position: fixed;
    top: 0;
    height: 60px;
    -webkit-box-shadow: 0px 1px 4px 0px rgba(11,57,118,0.2);
    box-shadow: 0px 1px 4px 0px rgba(11,57,118,0.2);
}
.data_warehouse_link{
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
    font-size: 20px;
    color: transparent;
    -webkit-text-stroke: 1px #0B3976;

}
.line {
    width: 30px;
    height: 3px;
    background-color: #0B3976;
    margin: 3px 0;
    transition: all 0.4s ease;
}

.open .line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 1px);
}

.open .line:nth-child(2) {
    transform: rotate(-90deg);
    width: 0;
    opacity: 0;
}

.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -5px);
}


/*****************  SECTIONS  ****************/
.section_wrapper { display:none; opacity:0; transform:translateY(6px); transition:opacity .25s, transform .25s; }
.section_wrapper.active { display:block; opacity:1; transform:translateY(0); }

.section1{
    background-color: var(--bg_section1);

}

#section_wrapper {
    margin-right: 40px;
    max-width: 1000px;
    padding-bottom: 30px;
}
#section_wrapper h2, #section_wrapper h3 {
    color: #ffffff;
    position: relative;
    font-style: italic;
    font-size: 34px;
    padding: 15px 0;
}
#section_wrapper h2{
    border-top: 2px solid #fff;
    cursor: pointer;
}
#section_wrapper h2:before{
    content:'';
    display: block;
    width: 26px;
    height: 26px;
    position: absolute;
    right: 0;
    top: 15px;
    background-image: url("/img/plus.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
#section_wrapper h2.expanded:before{
    background-image: url("/img/minus.svg");
}
#section_wrapper .is-last{
    position: relative;
    padding-bottom: 15px;
}
#section_wrapper h2.expanded:after, #section_wrapper div > h3:not(:has(+ h4)):not(:last-child)::after, #section_wrapper .is-last:not(:last-child):after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
}
#section_wrapper h3{
    font-weight: normal;
    font-size: 34px;
    color: #ffffff;
}
#section_wrapper h3:last-child:after{
    display: none;

}
#section_wrapper h3.has_subitems{
    padding-bottom: 0;
}
#section_wrapper h3.has_subitems:after{
    display: none;
}
#section_wrapper h4{
    font-style: italic;
    font-size: 24px;
    font-weight: 100;
    color: #ffffff;
    margin-bottom: 0;
}

/* Panel = direktes <div> hinter dem h2 */
#section_wrapper h2 + div {
    height: 0;                 /* Start zu */
    overflow: hidden;
    transition: height 0.5s ease;  /* sanftes Öffnen & Schließen */
    will-change: height;
}

/* optionales Styling, wenn offen */
#section_wrapper h2.expanded { font-weight: 600; }

#section_wrapper p{
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

body.sec0 .content h1{
    -webkit-text-stroke: 2px #0B3976;
}
#section_wrapper h1{
    padding-left: 85px;
    position: relative;
    line-height: 1;
    margin-bottom: 20px;
}
#section_wrapper h1:before{
    content: '';
    display: block;
    position: absolute;
    width: 75px;
    height: 75px;
    left:0px;
    top: 0px;
    background-repeat: no-repeat;
    background-size: contain;
    /* Startzustand */
    opacity: 0;
    transform: translateY(-12px);

    animation: fadeSlideIn 600ms ease-out 120ms forwards;
}

#mailForm{
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #fff;
    max-width: 440px;
    margin-bottom: 40px;
}
textarea{
    border: solid 1px #fff;
    background-color: rgba(255,255,255,0.9);
    color:#0B3976;
    padding: 5px;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
}

select {
    appearance: none;             /* Standard-Pfeil entfernen */
    -webkit-appearance: none;     /* für Safari/Chrome */
    -moz-appearance: none;        /* für Firefox */

    width: 100%;
    margin: 10px 10px 0 0;
    max-width: 340px;
    padding: 5px 40px 5px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color:#0B3976;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

input[type="submit"], #openModal {
    display: inline-block;
    padding: 4px 15px;
    margin: 10px 10px 0 0;
    max-width: 340px;
    font-size: 16px;
    color: #0B3976;
    background-color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

input[type="submit"]:hover, #openModal:hover {
    background-color: #0d4a9a; /* etwas heller/dunkler für Hover */
    color:#fff;
}

input[type="submit"]:active, #openModal:active {
    transform: scale(0.97);     /* kleiner Klick-Effekt */
}

select:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0,119,255,0.2);
}

h1.order_intake:before{
    background-image: url("/img/order_intake_active.svg");
}
h1.customer_communication:before{
    background-image: url("/img/customer_communication_active.svg");
}
h1.planning:before{
    background-image: url("/img/planning_active.svg");
}
h1.production:before{
    background-image: url("/img/production_active.svg");
}
h1.material_management:before{
    background-image: url("/img/material_management_active.svg");
}
h1.shipping_invoicing:before{
    background-image: url("/img/shipping_invoicing_active.svg");
}
h1.business_intelligence:before{
    background-image: url("/img/business_intelligence_active.svg");
}
h1.start{
    padding-left: 0;
}
@keyframes fadeSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

/************* Modal *********************/

#modal{
    display: none;
    position: fixed;
    top:0;
    left:0;
    bottom: 0;
    right: 0;
    background-color: rgba(0,65,120,0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.modal_inner{
    position: relative;
    max-width: 440px;
    margin:10px;
}
#mailForm{
    background-color: rgba(0,65,120,0.2);
}

#closeModal{
    width: 20px;
    height: 20px;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

/************************  responsive ***************************/

@media all and (max-width: 1400px), all and (max-height: 1000px) {
    h1 {
        font-size: 60px;
        padding-left: 60px;
    }

    /****************sections********************/
    #section_wrapper h1::before{
        width: 60px;
        height: 60px;
    }
    #section_wrapper p {
        font-size: 20px;
        margin-bottom: 15px;
    }
    #section_wrapper h2, #section_wrapper h3 {
        font-size: 24px;
        padding: 10px 20px 10px 0;
    }
    #section_wrapper h4{
        font-size: 18px;
    }
    .content {
        margin-left: 367px;
        margin-top: 56px;
    }

    #navigation{
        top: 40px;
        height: 700px;
        background-size: contain;
    }
    .navigation_item {
        font-size: 16px;
        max-width: 150px;
    }
    .navigation_item img {
        width: 50px;
    }
    #data_warehouse{
        top: 280px;
        left: 0px;
    }
    #data_warehouse img {
        margin-left: 20px;
        width: 120px;
    }
    #order_intake{
        top: 53px;
        left: -20px;
    }
    #customer_communication{
        position: absolute;
        top: 84px;
        left: 88px;
    }
    #planning{
        top: 197px;
        left: 189px;
    }
    #production{
        top: 310px;
        left: 210px;
    }
    #material_management{
        top: 413px;
        left: 166px;
    }
    #shipping_invoicing{
        top: 526px;
        left: 121px;
        width: 100px;
    }
    #business_intelligence{
        top: 567px;
        left: -14px;
    }
}
@media all AND (max-width: 900px){
    .navigation_mobile_wrapper {
        display: flex;
    }
    #navigation {
        display: none;
        opacity: 0;
        position: fixed;
        width: 100vw;
        top: 0;
        left: 0;
        z-index: 99;
        overflow: hidden;
        height: 100vh;
        -webkit-box-shadow: 0px 1px 4px 0px rgba(11,57,118,0.5);
        box-shadow: 0px 1px 4px 0px rgba(11,57,118,0.5);
        background: none;
    }
    #navigation.startpage{
        position: relative;
        background-color: transparent;
        -webkit-box-shadow: none;
        box-shadow: none;
        width: 100%;
        height: auto;
    }

    #navigation.startpage #data_warehouse p{
        width: 100%;
        color: #0B3976;
        text-transform: none;
        display: block;
        text-align: center;
        font-size: 20px;
        font-style: normal;
        font-weight: bold;
        -webkit-text-stroke: unset;
        margin-left: 0;
    }

    #navigation .navigation_item:nth-child(2){
        margin-top:80px;
    }
    #navigation .navigation_item{
        display: flex;
        align-items: center;
        padding:7px 0;
    }
    #navigation .navigation_item img{
        margin-left: 15px;
        max-height: 40px;
    }
    #navigation .navigation_item p{
        flex: 1;
        font-size: 30px;
        color: transparent;
        -webkit-text-stroke: 1px #fff;
        font-style: italic;
        font-weight: bold;
        text-transform: uppercase;
        margin-left: 10px;
        text-align: left;
    }
    #order_intake { background-color: #0B3976; }
    #customer_communication { background-color: #1158B6; }
    #planning { background-color: #2264BB; }
    #production { background-color: #5487CA; }
    #material_management { background-color: #1777F5; }
    #shipping_invoicing { background-color: #4894F7; }
    #business_intelligence {
        background-color: #7BA1D3;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        -webkit-box-shadow: 0px 1px 4px 0px rgba(11,57,118,0.2);
        box-shadow: 0px 1px 4px 0px rgba(11,57,118,0.2);
    }

    #navigation .navigation_item{
        position: relative;
        top:unset;
        left:unset;
        width: 100%;
        opacity: 1;
        max-width: unset;
        min-height: 60px;
    }

    #navigation #data_warehouse{
        display: none;
    }

    .bg_navi{
        display: block;
        background-color: rgba(255,255,255,0.8);
        height: 100vh;
        z-index: 0;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        backdrop-filter: blur(3px);
    }

    #back_to_start{
        display: block;
        width: 25px;
        height: 25px;
        position: absolute;
        right: 20px;
        top:0;
        cursor: pointer;
        opacity: 1;
    }

    /************ only mobile or tablet ********************/
    /********************  Buttons Startpage *****************/

    #navigation.startpage{
        display: flex;
        flex-wrap: wrap;
        justify-content:space-between;
    }

    #navigation.startpage .navigation_item, #navigation.startpage .navigation_item:nth-child(2){
        margin: 10px;
        border-radius: 15px;
        width: calc(50% - 20px);
        min height: 170px;
        display: block;
        padding: 20px;
    }
    #navigation.startpage .navigation_item p{
        text-align: center;
        margin: 0;
        width: 100%;
    }
    #navigation.startpage .navigation_item img{
        margin: 10px auto;
    }
    #navigation.startpage #data_warehouse{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin: 0 0 30px 0;
        padding: 0;
    }
    #navigation.startpage #data_warehouse p{
        width: 100%;
        max-width: 100%;
        text-align: center;
        flex: unset;
    }
    #navigation.startpage #data_warehouse img{
        width: 100px;
        max-height: unset;
    }
    #navigation.startpage #customer_communication{
        hyphens: auto;
        display: flex;
    }

    .content{
        width: 100vw;
        z-index: 1;
        overflow: hidden;
        padding: 20px;
        position: absolute;
        left: 0;
        margin: 0;
        top: 80px;
    }
    #section_wrapper h1.start{
        padding-bottom: 20px;
        margin-bottom: 30px;
        margin-top: 30px;
        text-align: center;
    }
    #section_wrapper h1.start:after{
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);  /* um halbe Breite zurückschieben */
        width: 80px;
        height: 2px;
        background-color: #0B3976;
        display: block;
    }
    .content h2{
        padding-right: 40px;
    }
    #section_wrapper{
        margin-right: 0;
    }
    #section_wrapper h1{
        font-size: 40px;
        padding: 0;
        margin-top: 100px;
    }
    #section_wrapper h1:before{
        top: -80px;
        left:0;
    }

    .bg_image{
        display: none;
    }
    #order_intake.active p { color: #0B3976; }
    #customer_communication.active p { color: #1158B6; }
    #planning.active p { color: #2264BB; }
    #production.active p { color: #5487CA; }
    #material_management.active p { color: #1777F5; }
    #shipping_invoicing.active p { color: #4894F7; }
    #business_intelligence.active p { color: #7BA1D3; }

    /***********  Modal ****************/
    #mailForm h2{
        margin-top: 20px;
        margin-bottom: 12px;
        line-height: 1;
    }

}
@media all AND (max-width: 600px){
    #navigation.startpage .navigation_item, #navigation.startpage .navigation_item:nth-child(2){
        width: 100%;
        margin: 5px 0;
    }
    #navigation.startpage .navigation_item{
        display: flex;
        align-items: center;
        justify-content: left;
    }
    #navigation.startpage .navigation_item p {
        text-align: left;
        max-width: 80% ;
        margin-left: 10px;
    }
    #navigation.startpage .navigation_item img {
        margin: 10px 0;
    }
    #navigation.startpage #order_intake{
        display: flex;
    }
}


@media all AND (max-height: 500px) {
    #navigation{
        position: absolute;
    }
}
