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

  @font-face {
    font-family: 'PPEditorialOld';
    src: url('/fonts/PPEditorialOld-Italic.woff2') format('woff2'),
         url('/fonts/PPEditorialOld-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
  }


p {
    font-weight: normal;
    font-size: 22px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.1s;
}

a:hover {
    opacity: 0.5;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'ABCDiatype', 'PPEditorialOld', sans-serif;
}

/* * {
    border: solid 1px black;
}  */

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fdfbfb00;
    font-size: 15px;
    color: #ffffff;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    padding-top: 10px;
    height: 20vh;
    flex-wrap: wrap;
    z-index: 100;
}

.box {
    flex: 1; 
    min-width: 200px;
}

/* Textausrichtung */
.box:nth-child(1) { text-align: left; }
.box:nth-child(2) { text-align: center; }
.box:nth-child(3) { text-align: right; }

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;  /* Bildhöhe auf 80vh setzen */
    object-fit: cover;
    object-position: center;
    z-index: -1;
    opacity: 0;
    animation: fade 50s infinite;
}

/* Animation für jedes Bild mit richtiger Wiederholung */
.image-container img:nth-child(1) { animation-delay: 0s; }
.image-container img:nth-child(2) { animation-delay: 10s; }
.image-container img:nth-child(3) { animation-delay: 20s; }
.image-container img:nth-child(4) { animation-delay: 30s; }
.image-container img:nth-child(5) { animation-delay: 40s; }

/* Keyframes für Fade-In/Fade-Out */
@keyframes fade {
    0% { opacity: 0; }   /* Unsichtbar */
    5%, 25% { opacity: 1; } /* Komplett sichtbar */
    35%, 100% { opacity: 0; } /* Unsichtbar */
}

/* Leerraum über Logo */
.bildspace {
    height: 20vh;
    z-index: 100;
}

.logo {
    position: sticky; 
    top: 0; 
    background-color: #fdfbfb00;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px; 
    width: 100%;
    z-index: 100;
}

.logo img {
    height: 100px;
  }


.logo-white,
.logo-black {
    position: sticky;
    top: 0;

    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100px;
}

/* Übergang zwischen Schwarz und Weiß */
.logo-white {
    clip-path: inset(0 0 0 0); /* Anfang: komplett sichtbar */
    transition: clip-path 0.03s ease-in-out;
}

.logo-black {
    clip-path: inset(100% 0 0 0); /* Anfang: komplett verborgen */
    transition: clip-path 0.03s ease-in-out;
}


.header-logo {
    position: sticky;
    top: 0; 
    background-color: #ffffff;
    text-align: center;
    height: 80px;
    width: 100%;
    z-index: 99;
}

  

section {
    min-height: 90vh;
    padding: 20px;
    padding-top: 0px;
    background-color: #ffffff;
    z-index: 100;
}

.centered-text {
    text-align: center;          /* Zentriert den Text horizontal */
    max-width: 80ch;            /* Begrenzung der Breite auf 60 Zeichen */
    margin: 0 auto;             /* Zentriert den Container horizontal */
    line-height: 1.6;           /* Optional: Verbessert die Lesbarkeit */
    padding: 10px;              /* Optional: Abstand innerhalb des Containers */    font-size: 15px;
    font-size: 22px;
  }

.abstand {
    height: 200px;
}

footer {
    padding: 20px;
    padding-top: 10px;
    height: 40px;
    text-align: right;
    background-color: #090909;
    color: #c6bfbf;
    z-index: 100;
}



/*
impressum
*/

.impressum {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.logo-i {
    width: 90%;
    text-align: left;
    max-width: 1200px;
    padding: 20px;
}

.logo-i img {
    width: 300px;
}

.container-i{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1200px;
    gap: 20px;
}
.column-i {
    flex: 1;
    padding: 20px;
    min-width: 300px;
}



/* Für kleine Bildschirme */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch; /* Boxen über gesamte Breite */
    }
    .box {
        text-align: left; /* Standard-Text linksbündig */
        width: 100%; /* Volle Breite */
        display: flex;
    }

    /* Zusätzlicher Text (vorheriger Text bleibt rechts) */
    .box::before {
        content: attr(data-label);
    }

    /* Alter Text rechtsbündig */
    .box span {
        text-align: right;
        flex-grow: 1;
    }

     /* Reihenfolge tauschen: Box 1 und 2 */
     .box:nth-child(1) { order: 2; }
     .box:nth-child(2) { order: 1; }
     .box:nth-child(3) { order: 3; }

     .impressum {
        flex-direction: column;
    }
}
