*, *::before, *::after {
  box-sizing: border-box;
}

body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    font-family: 'IBM Plex Serif', Times, serif;
    font-weight: 300;
    font-size: 10px;
    cursor: url('../_assets/images/cursor/cursor-black.png') 10 10, auto;
}

p {
    text-wrap: pretty; 
    hyphens: auto;
}

a {
    text-decoration: none;
    color: black;
   /* transition: 0.2s ease-out;*/
    cursor: url('../_assets/images/cursor/cursor-black.png') 10 10, pointer;
}

a:hover {
    cursor: url('../_assets/images/cursor/cursor-red.png') 10 10, pointer;
    color: red;
    font-style: italic;
}

#header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 10px 10px;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
    z-index: 1;
    margin-bottom: 40vh;
}

#logo {
    font-weight: 300;
    font-size: 2.0em;
    font-family: 'IBM Plex Serif', Times, serif;
   
}
/*---------------------------------------------*/

#navigation {
    list-style-type: none;
    margin: 0;
    /*padding: 10px 0 0 0;*/
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    column-gap: 10px;
    row-gap: 0;
    font-family: 'IBM Plex Serif', Times, serif;
    font-weight: 300;
    font-size: 2.0em;

}
.active {
    color: red !important;
    background: none !important; 
    text-decoration: none;
}

.navitem {
    flex: 1 1 auto;
}


@media (max-width: 480px) {
    #header {
        flex-direction: column; 
        align-items: flex-start; 
        height: auto;           
        gap: 0px;
        }

    #navigation {
        width: 100%;            
        flex-wrap: wrap;     
        padding-left: 0;
        }
}

/*.back-to-top {
    position: fixed;
    font-family:'Archivo Variable', Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    bottom: 20px;  
    right: 10px;    
    z-index: 9999;
    pointer-events: auto;
}*/


/*---------------------------------------------*/
/*projects*/
/* Grundstruktur */
.carousel {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden; 
}

/* Cursor für Slider */
.cursor-left { cursor: url('images/cursor/cursor-left.png') 0 24, w-resize; }                
.cursor-right { cursor: url('images/cursor/cursor-right.png') 0 24, e-resize; }
.cursor-stop { cursor: url('images/cursor/cursor-stop.png') 0 24, e-resize; }

.track {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: max-content;
}

.track img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    #header { margin-bottom: 30vh; }
    .carousel {
        height: 60vh;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;      /* Ermöglicht iOS */
        scroll-snap-type: none;           
        scrollbar-width: none;
    }
    .track {
        transform: none !important;              /* Wichtig: JS-Transform ausschalten! */
    }
}

/*---------------------------------------------*/

.gridcontainer {
    width: 100%;
    padding: 50px 10px 200px 10px;
    display: grid;
    grid-template-columns: 2fr 5fr 1fr 2fr 2fr;
    gap: 10px;
    font-size: 2.0em;
}

.bold {
    font-weight: 400;
}

@media (max-width: 768px) {
    .gridcontainer {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas:
        "a a . ."
        "b b b b"
        "c c d d";
        padding: 50px 20px 200px 20px;
    }
    .box1 { grid-area: a; }
    .box2 { grid-area: b; }
    .box3 { grid-area: c; }
    .box4 { grid-area: d; }
}

/*---------------------------------------------*/ 
/* about */
#header.header-about{
    margin-bottom: 50px;
    padding-bottom: 0%;
}
.content {
    display: flex;
    justify-content: flex-start; 
    align-items: flex-end;
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 100px;
    gap: 10px; 
}

.image-section {
    flex: 0 1 auto; 
}

.image-section img {
    display: block;
    width: auto;
    max-width: 50vw;
    height: auto; 
}
.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 550px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 0; 
    font-size: 2.0em;
}

.description p, .contact-section p {
    margin: 0; 
}

.text-section p {
    hyphens: auto;          
    word-break: break-word; 
    line-height: 1;      
    text-align: left;
}


.contact-section p {
    margin-top: 10px;
}

.email-link {
    color: inherit;          
    text-decoration: none;   
    font-weight: 300;        
    border-bottom: 1px solid transparent;
}



@media (max-width: 700px) {
     .content {
        flex-direction: column; 
        align-items: flex-start; 
        padding-left: 10px; 
        padding-right: 10px;
        margin-top: 50px;}
    .text-section{
        padding-right: 20px;
    }

    .image-section {
        width: 100%;
        margin-left: 0;
    }

    .image-section img {
        width: 100%; 
        max-width: none; 
        height: auto;
    }
    }

    .text-section {
        width: 100%;
        max-width: none;
        padding-top: 20px; 
    }
}
   
/*---------------------------------------------*/ 
/*Index*/
#header.header-index {
    position: fixed;    
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;       
    background-color: white; 
}

.slideshow-index {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: url('_assets/images/projects/Fotografie/img4.jpg'); /* Erstes Bild als Basis */
    background-size: cover;
    background-position: center;
    background-color: white; /* Falls das Bild noch lädt, bleibt es zumindest weiß */
}
.slide-item:nth-child(1) { 
    animation-delay: 0s; 
    opacity: 1; /* Das erste Bild ist sofort sichtbar, ohne auf die Animation zu warten */
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: imageFade 8s linear infinite; 
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.slide-item:nth-child(1) { animation-delay: 0s; }
.slide-item:nth-child(2) { animation-delay: 2s; }
.slide-item:nth-child(3) { animation-delay: 4s; }
.slide-item:nth-child(4) { animation-delay: 6s; }

@keyframes imageFade {
    0% { opacity: 0; }
    5% { opacity: 1; }   
    33% { opacity: 1; } 
    38% { opacity: 0; }  
    100% { opacity: 0; }
}
.footer-index{
    position: fixed;
 }

/*---------------------------------------------*/ 
/*footer*/
#footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    color: black;
    font-family: 'IBM Plex Serif', Times, serif;
    font-size: 2.0em;
    width: 100%;
   /* box-sizing: border-box;*/
    position: relative; 
    z-index: 100;
}

.footer-column {
  flex: 1;
}

.footer-column.left {
  text-align: left;
}

.footer-column.center {
  text-align: center;
  line-height: 1;

}

.footer-column.right {
  text-align: right;
  padding: 0 10px 15px 0;
}

footer ul {
    list-style: none;
    line-height: 1;
    padding: 0 0 0 10px;      
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
    cursor: url('../_assets/images/cursor/cursor-red.png') 10 10, pointer;
    color: red;
    font-style: italic;
  }

/*---------------------------------------------*/ 
/*legal-notice*/

.legal-notice {
    font-family: 'IBM Plex Serif', Times, serif;
    font-size: 2.0em;
    padding: 60px 10px; 
}

/*---------------------------------------------*/ 
/*privacy-policy*/

#header.header-privacy-policy{
    margin-bottom: 0%;
    padding-bottom: 0%;
}

.privacy-layout {
    display: flex;
    width: 100%;
    padding: 60px 10px; 
    box-sizing: border-box;
    gap: 20px; 
}

.privacy-col {
    flex: 1; 
    display: flex;
    flex-direction: column;
    font-size: 2.0em;

}
.privacy-col p {
    margin-bottom: 20px; 
    margin-top: 0;          
}


@media (max-width: 1024px) {
    .privacy-layout {
        flex-direction: column;
    }
}
