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

html{
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

:root{
    /* Farben */
    --color-darkblue: #1F3A5F;
    --color-red: #8C1D18;
    --color-lightblue: #B6BBE8;
    --color-antrazit: #2E2E2E;
    --gradient-blue: linear-gradient(264deg, #4078C5 0.42%, #1F3A5F 29.98%, #1F3A5F 68.59%, #4078C5 99.58%);
    --gradient-red: linear-gradient(264deg, #E24740 0.51%, #8C1D18 28.11%, #8C1D18 75.22%, #E24740 99.49%);

    /* Effekte */
    --box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.50);

    /* Abstände */
    --section-padding-tb: 100px;
    --section-padding-lr: 48px;
    --content-width: 1440px;

    /* Änderung Grid Gutter */
     --gridGutter: 48px;

     font-size: 18px;
}

@media screen and (max-width: 480px) {
    :root{
        --section-padding-tb: 50px;
        --section-padding-lr: 12px;
        --gridGutter: 24px;
    }
}

/* Einbindung Schriften */

/* cinzel-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/cinzel-v26-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* agdasima-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Agdasima';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/agdasima-v5-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* agdasima-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Agdasima';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/agdasima-v5-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/source-sans-3-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}




/* Maximale Content Breite */
.wrapper{
    max-width: var(--content-width);
    margin: 0 auto;
    padding-left: var(--section-padding-lr);
    padding-right: var(--section-padding-lr);
    padding-top: var(--section-padding-tb);
    padding-bottom: var(--section-padding-tb);
}

/* Typografie -----------------
------------------------------*/

body{
    font-family:'Source Sans 3';
    font-size: 1rem;
    font-weight: 400;
}

p:not(:last-child){
    margin-bottom: 12px;
}

p.p--big{
    font-family: 'Source Sans 3';
    font-size: 1.125rem;
    font-weight: 700;
}

h1,.h1{
    font-family: 'Agdasima';
    font-size: 5rem;

    font-weight: 400;
}

h2,.h2{
    font-family: 'Agdasima';
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    position: relative;
}




h3,.h3{
    font-family: 'Agdasima';
    font-size: 2.25rem;
    font-weight: 400;
    position: relative;
    margin-bottom: 24px;
}

/* Deco Linie für Headlines */
:is(h1, h2, h3, .h1, .h2, .h3)[class*="deco-line"]{
    padding-left: 24px;
}

:is(h1, h2, h3, .h1, .h2, .h3)[class*="deco-line"]::before{
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-blue);
}

:is(h1, h2, h3, .h1, .h2, .h3).deco-line-blue::before{
    background: var(--gradient-blue);
}

:is(h1, h2, h3, .h1, .h2, .h3).deco-line-red::before{
    background: var(--gradient-red);
}

/* Aufzählungen */
.list--style1{
    list-style:none;
    font-size: 22px;
    padding-left: 0px;
}

.list--style1 li{
    position: relative;
    display:flex;
    align-items:center;
    gap: 0px;
}
.list--style1:not(:last-child){
    margin-bottom: 12px;
}

.list--style1 li::before{
    content: "";
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.list--style1.icon--blue li::before{
    background-image: url(../asset/icon/list_blau.svg);
}

.list--style1.icon--red li::before{
    background-image: url(../asset/icon/list_rot.svg);
}

.list--style1.icon--lightblue li::before{
    background-image: url(../asset/icon/list_hellblau.svg);
}

@media screen and (max-width: 1024px){
    h1,.h1{
        font-size: 3.5rem;
    }

    h2,.h2{
        font-size: 2.25rem;
    }

    h3,.h3{
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 480px){
    h1,.h1{
        font-size: 2.25rem;
    }

    h2,.h2{
        font-size: 1.75rem;
    }

    h3,.h3{
        font-size: 1.5rem;
    }
}

/* Mainmenu -----------------------------
----------------------------------------*/
header{
    background-color: var(--color-antrazit);
    padding: 16px 0px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top:0;
    left:0;
}

header .wrapper{
    padding-top: 0px;
    padding-bottom: 0px;
    position:relative;
    padding-left: var(--section-padding-lr);
    padding-right: var(--section-padding-lr);
    display:flex;
    align-items:center;
    justify-content: flex-end;
}
header .logo{
    font-family: Cinzel;
    font-weight: 700;
    font-size: 24px;
    position:absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}

@media screen and (max-width: 479px){
    header .logo{
    font-size: 18px;
}
}

header nav ul{
    list-style: none;
    margin: 0px;
    padding: 0px;
    display: flex;
    gap: 32px;
}

header nav li a,
header nav li button{
    text-decoration: none;
    font-family: 'Agdasima';
    font-weight: 400;
    font-size: 1.375rem;
    color: white;
    text-transform: uppercase;
}

header nav li button{
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

header nav li{
     transition: transform 0.3s ease-out;
}

 header nav li:hover{
    transform: scale(1.1);
}   

header nav li.active > a,
header nav li.active > button{
    padding: 2px 12px;
    background: var(--gradient-blue);
    border-radius: 999px;
    text-decoration: none;
}

/* Dropdownmenu */

.mainmenu__dropdown--list{
    position: fixed;
    position-anchor: --portfolio-trigger;
    inset: auto;
    top: anchor(bottom);
    left: anchor(left);
    margin: 0;
    background-color: var(--color-antrazit);
    padding: 24px 24px 16px 24px;
    border-radius: 0px 0px 8px 8px;
    z-index: 1000;
    border: none;
    margin-top: 6px;
}

.mainmenu__dropdown--trigger{
    anchor-name: --portfolio-trigger;
}

.mainmenu__dropdown--list[popover]:not(:popover-open){
    display: none;
}

.mainmenu__dropdown--list:popover-open{
    display: block;
}

@media screen and (max-width: 1140px){
    header .logo{
        position: relative;
        width: 100%;
        text-align: center;
    }

    header .wrapper{
        flex-direction: column;
        gap:12px;
    }
}

@media screen and (max-width: 480px){
    header nav li a,
    header nav li button{
        font-size: 1.25rem;
    }

    header nav ul{
        gap: 24px;
    }
}

/* Footer -----------------------------
----------------------------------------*/

footer{
    background-color: var(--color-antrazit);
    color: white;
}
/* footer nav */
footer ul li{
     transition: transform 0.3s ease-out;
}

 footer ul li:hover{
    transform: scale(1.1);
    transform-origin: center;
} 
/* footer contact infos */
footer a.contact{
    text-decoration: none;
    color:white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    transition: transform 0.3s ease-out;
    font-family: 'Agdasima';
    font-size: 22px;
    font-weight: 400;
}

footer a.contact:hover{
    transform: scale(1.05);
}
footer a.contact:before{
    content: "";
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
}

footer a.contact-mail:before{
    background-image: url(../asset/icon/email_rot.svg);
}

footer a.contact-phone:before{
    background-image: url(../asset/icon/phone_rot.svg);
}

/* footer text links */
footer span.word-swap span{
    text-align: left;
    font-size: 1em;
    text-transform: uppercase;
}



