:root {
    --color-bg: #EBFBFF;
    --color-bg-blue: #C1DBE2; 
    --color-bg-grey: #F0F0F0;
    --color-bg-yellow: #fafbeb;
    --color-main-petrol: #125b6e;
    --color-main-orange: #ff5900;
    --color-text: #28283a;
    --color-text-hover: #19778D;
    --color-text-light: #7a7a87;
    --color-white: #fff;
}

@font-face {
    font-family: 'Neue Machina';
    src: url('../fonts/NeueMachina/NeueMachina-Regular.otf') format('otf'),
        url('../fonts/NeueMachina/NeueMachina-Regular.woff') format('woff'),
        url('../fonts/NeueMachina/NeueMachina-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/NeueMachina/Inter-Regular.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Machina';
    src: url('../fonts/NeueMachina/NeueMachina-Ultrabold.otf') format('otf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Machina';
    src: url('../fonts/NeueMachina/NeueMachina-Light.otf') format('otf');
    font-weight: light;
    font-style: normal;
}

body{
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    width: 100vw;
    font-size: 1.1em;
    line-height: 1.7em;
    display: grid;
}

h1{
    font-family: 'Neue Machina', sans-serif;
    font-weight: bold;
    font-size: 4em;
    line-height: 1em;
    color: var(--color-white);
    text-align: right;
}

h2{
    font-family: 'Neue Machina', sans-serif;
    font-weight: bold;
    font-size: 2em;
    line-height: 1.25em;
    color: var(--color-text);
}

p{
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    line-height: 1.5em;
    color: var(--color-text);
}

a{
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    line-height: 1.5em;
    color: var(--color-white);
    white-space: nowrap;
}

.zitat{
    padding: 0 3em;
    font-size: 1.2em;
    text-align: right;
    position: relative;
    opacity: 0;
    transition: all 0.75s;
    transform: translateX(-200px);
}

.zitat.visible{
    transform: translateX(0);
    opacity: 1;
}

.zitat p{
    font-family: 'Neue Machina', sans-serif;
    font-weight: light;
    color: var(--color-main-petrol);
}

.img-description{
    font-size: 0.9em;
    text-align: center;
    color: var(--color-text-light)
}

/* Farbig hinterlegter Text */
.text-box{
    padding: 0.1em 0.4em 0.1em 0.5em; 
    margin: 0 0.3em 0 0; 
}

.text-box-orange{
    background-color: var(--color-main-orange);
}

.text-box-petrol{
    background-color: var(--color-main-petrol);
    color: var(--color-white);
}

.text-box-yellow{
    background-color: var(--color-bg-yellow);
    color: var(--color-text);
    margin: 0 0.3em 0 0.3em; 
}

/* Navigation */
header{
    top: 0;
    width: 100%;
    z-index: 1;
}

.menu{
    background:#999;
	grid-area:menu;
	color:#fff;
	display:grid;
	grid-template-columns:2em 1fr;
	align-items:center;
	justify-content:center;
	/* gap:0; */
    background-color: var(--color-white);
    display: flex;
    width: 100%;
    position: fixed;
}

nav ul {
	display:flex;
	align-items:center;
	justify-content:center;
	list-style-type:none;
	gap:1em;
	margin:0;
}

nav a {
	color: var(--color-text);
	text-decoration:none;
	text-align:center;
}

nav a.active {
	color: var(--color-main-orange);
}

nav a:hover {
	color: var(--color-text-hover);
}

/* TRACK BAR */
.indicator_track {
    position: fixed;
    width: 100vw;
    height: 8px;
    background: var(--color-bg-blue);
  }
  
.indicator_bar {
    height: 8px;
    background: var(--color-main-petrol);
    transition: width 0.1s linear;
    width: 0%;
}

/* Sektionen */
.teaser{
    padding: 5em 15em;
    /* height: 80vh; */
    background-color: var(--color-main-petrol);
}

.teaser h1,
.teaser h2 {
    color: var(--color-white);
}

.teaser p {
    color: var(--color-white);
    text-align: right;
}

.teaser-img{
    padding: 8em 15em 0;
    background-repeat: no-repeat;
    background-color: var(--color-bg-blue);
}

/*.teaser-img p {
    color: var(--color-white);
} */

.footer{
    padding: 5em 15em;
    background-image: url('images/Gradient-Footer.png');
    align-self: start;
    background-color: var(--color-main-petrol);
}

.footer h2,
.footer p,
.footer a{
    color: var(--color-white);
}

.footer span{
    font-family: 'Inter', sans-serif;
}

.section {
    padding: 5em 15em;
    display: grid;
    /* row-gap: 2em; */
}

.section-light{
    background-color: var(--color-bg);
}

.section-blue{
    background-color: var(--color-bg-blue);
}

.section-grey{
    background-color: var(--color-bg-grey);
}

.section-yellow{
    background-color: var(--color-bg-yellow);
}

.grid-container{
    display: grid;
    align-items: center;
    justify-items: start;
    column-gap: 1em;
    opacity: 0;
    transition: all 1s;
}

.grid-container.visible{
    opacity: 1;
}

.grid-1{
    padding:0 10%;
}

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

.grid-1-2{
    grid-template-columns: 1fr 2fr;
}

.grid-2-1{
    grid-template-columns: 2fr 1fr;
}

.grid-1-3{
    grid-template-columns: 1fr 3fr;
    /* justify-items: end; */
}

.grid-3-1{
    grid-template-columns: 3fr 1fr;
    /* justify-items: end; */
}

.grid-container a{
    color: var(--color-white);
}

.grid-container a:hover {
	color: var(--color-main-orange);
}

.visualization{
    opacity: 0;
    transition: all 1s;
}

.visualization.visible{
    opacity: 1;
}

.video-container {
    position: relative;
    width: 100%;
    /* height: 100vh; */
    overflow: hidden;
}

video {
    /* width: 100%;
    display: block; */
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

#video-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    /* justify-content: center; */
    background: rgba(18, 91, 110, 0.3);
    padding: 5em 15em;
    box-sizing: border-box;
}

#video-overlay h2{
    color: white;
    text-shadow: 0 0 10px var(--color-text);
}

#img-margin{
    margin-top: 10em;
}

#img-end{
    margin: 5em -10em -6em -10em;
}

/* #ring-rotation{
    animation: ring-rotation 2s linear infinite alternate;
}

@keyframes ring-rotation {
    from {
        transform: translate(0, -100px) rotate(10deg);
    } to {
        translate:(500px) rotate(270deg);
    }
} */

@media (max-width: 768px) {
    body{
        font-size: 0.9em;
        line-height: 2.5em;
    }
    
    .teaser-img{
        padding: 3em 5em;
    }

    .teaser,
    .footer{
        padding: 1em 5em;
    }

    .grid-1{
        padding: 0;
    }

    .grid-1-1,
    .grid-1-2,
    .grid-2-1,
    .grid-3-1,
    .grid-1-3 {
        grid-template-columns: 1fr;
    }
    
    .section{
        padding: 1em 5em;
        /* row-gap: 2em; */
    }
    
    .grid-container{
        row-gap: 0.5em;
    }

    .video-container {
        height: 100vh; /* Containerhöhe auf volle Ansichtshöhe setzen */
    }

    video {
        width: auto;
        height: 100%;
    }

    #video-overlay {
        padding: 10px;
        text-align: center;
    }

    .img-end{
        margin: 0 -5em -2em -5em;
        overflow-y: hidden;
        /* width: 100vw; */
    }
}
