@font-face {
  font-family: 'ArialNarrow';
  src: url('fonts/ArialNarrow.ttf') format('truetype');
  font-weight: normal;
}

:root {
    --ff-ss: 'ArialNarrow', Arial, sans-serif;
    /* --ff-ss: "Arial Narrow", Arial, sans-serif; */
    --main-clr: black;
    --font-s: clamp(0.875rem, 1.5vw, 1.125rem);
    --font-m: clamp(1rem, 2vw, 1.5rem);
    --font-l: clamp(1.25rem, 2.5vw, 2rem);
    --font-xl: clamp(1.13rem, 4vw, 2.4rem);
    /* --font-s:  1.5vw;
    --font-m: calc(var(--font-s) * 1.5);
    --font-l: calc(var(--font-s) * 2);
    --font-xl: calc(var(--font-s) * 2.7); */
}

/* .projektbody{
        overflow-y: auto;
        height: 100vh;
} */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--ff-ss);
}

body, html {
    height: 100vh;   /* Fallback für ältere Browser */
    height: 100dvh;
    z-index: 0;
    font-size: var(--font-s);
    padding: 0;
    margin: 0;
    line-height: 1.07;
    font-family: var(--ff-ss);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar {
    display: none;  
}

.project-list-mobile{
   display: none;
}

.project-list {
    width: 100%;
    list-style: none;
    padding: 5.5rem 0.7rem;
}

.project-item a {
    display: inline-block;
    width: 100%;
    padding-bottom: 0.2rem;
}

.project a span#titel {
    display: inline-block;
    width: 52%;
}

.project a span#Jahr {
    display: inline;
    float: right;
}

.project a span#Kategorie {
    width: 40%;
}

.projekt-wrapper {
    display: flex;
    height: calc(var(--real-vh, 1vh) * 100);
    min-height: calc(var(--real-vh, 1vh) * 100);
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgb(254, 254, 254);
}

.projekt-images {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    object-fit: contain;
    width: 100%;
}

.projekt-images img {
    display: flex;
    flex-direction: column;
    width: 100%;
    object-fit: contain;
}

.projekt-navigation {
    position: relative;
    flex-direction: column-reverse;
    background: none;
    position: fixed;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
}

.Navigation-Pfeile{
  position: absolute;
}

a.PREV{
  position: fixed;
  left: 0.7rem;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.projekt-navigation .Next {
    position: fixed;
    letter-spacing: -0.2rem;
    bottom: 0;
    right: 0.8rem;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.projekt-navigation .Close {
    position: fixed;
    top: 0.4rem;
    right: 0.7rem;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* .projekt-images video {
    width: 100%;
    height: auto;
    object-fit: contain;
} */

.projekt-images img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.projekt-navigation a {
  display: flex;
    color: white;
    font-size: var(--font-xl);
    font-family: var(--ff-ss);
}

.project-item a:hover {
    color: white;
    filter: drop-shadow(0 0mm 0.9mm rgb(181, 181, 181));
}

main {
    width: 100vw;
    /* height: 100dvh; */
}

p{
  padding: none;
}

a {
    text-decoration: none;
    color: var(--main-clr);
}

h1, h2, h3 {
    font-size: var(--font-xl);
    font-weight: 500;
    padding-left: 0.6rem;
    padding-top: 0.5rem;
}

ul, li {
    font-size: var(--font-xl);
}

.projekt-category {
    display: flex;
    justify-content: space-between;
}

nav {
  width: 100%;
  font-size: var(--font-xl);
  position: fixed;
    padding: 0.5rem 0.7rem;
    z-index: 99999;
}

nav.home-page {
  background-color: white;
}

nav.template-sammlung {
    background-color: transparent;
}

.green-dot {
    margin-left: 0.4rem;
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    background-color: rgb(0, 255, 0);
    border-radius: 50%;
    vertical-align: middle;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

nav a {
    display: inline-block;
    font-family: var(--ff-ss);
    transition: 200ms ease-in;
}

nav a.active {
    display: inline-block;
    color: rgb(255, 255, 255);
    filter: drop-shadow(0 0mm 0.9mm rgb(181, 181, 181));
    z-index: 30000;

}

.about {
    height: 100%;
    width: 85%;
    padding: 5.5rem 0.7rem;
    font-size: calc(var(--font-xl)*0.7);
    overflow: hidden;
}

#about-felder {
    padding-top: 2rem;
    display: flex;
    justify-content: flex-start;
    gap: 3vw;
}

#about-felder a:hover {
    color: white;
    filter: drop-shadow(0 0mm 0.9mm rgb(181, 181, 181));
}

.Infobox {
    flex: 0 0 42vw;
    overflow-y: auto;
    background-color: rgb(254, 254, 254);
}

.impressumbox{
    position: fixed;
    bottom: 0.8rem;
    left:0.7rem
}

.impressumlink{
   font-size: var(--font-xl);
}


.projekt-info p {

    display: flex;
    padding: 1rem 0.7rem;
    font-size: calc(var(--font-xl)*0.7);
    overflow-x: hidden;
    word-break: normal;
    hyphens: auto;
   

}

.projekt-images {
    flex: 0 0 58vw;
    display: flex;
    object-fit: contain;
}

/* Masonry Gallery Layout */
.sammlung-gallery .gallery-container {
    column-count: 5;              /* Anzahl der Spalten */
    column-gap: 0.9rem;              /* Abstand zwischen den Spalten */
    width: 100%;
    padding: 5.5rem 0.9rem 0rem 0.9rem;
}

@media (max-width: 1024px) {

.impressumlink{
    font-size: calc(var(--font-xl)*1.4);
}

.impressumbox{
    position: fixed;
    bottom: 1rem;
}

.projekt-images {
    display: flex;
    object-fit: contain;
}
  

  .sammlung-gallery .gallery-container {
    column-count: 5;              /* Anzahl der Spalten */
    column-gap: 0.9rem;              /* Abstand zwischen den Spalten */
    width: 100%;
    /* padding: 6.5rem 0.7rem 0rem 0.7rem; */
}

.project-list{
  display: none;
}  

.project-list-mobile {

  display: inline-grid;
  flex-wrap:wrap; /* Ermöglicht das Umbrechen der Items */
  padding: 5.5rem 0.7rem 0rem 0.7rem;
  width: 100%;
  font-size: calc(var(--font-xl)*1.5);

}

.project-item {
  display: inline-block;
  font-size: var(--font-xl);
  width: 100%;
}

.project-item .titel {
  display: inline-block;
  white-space: nowrap;
}

.project-item .project-link {
  display: inline;
}

.project-item .green-dot {
  background-color: rgb(0, 255, 0);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-left: 0.5rem;
}

span.Jahr{
    display: block;
    float: right;
}


h1, h2, h3 {
    font-size: var(--font-xl);
    font-weight: 500;
}

.projekt-info{
  padding-left: 1.9vw 1.4vw;
}

.projekt-info p{
  padding: 2rem 0.7rem 2rem 0.7rem;
}
.projekt-navigation {
    display: flex;
    flex-direction: column-reverse;
    background: none;
    position: absolute;
    top: 0.3vw;
    /* right: 1vw; */
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 20000;
}

.projekt-navigation .Next {
    position: fixed;
    letter-spacing: -0.2rem;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
    font-size: calc(var(--font-xl) * 2);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.green-dot {
    margin-left: 1rem;
    margin-bottom: 0.3vw;
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-color: rgb(0, 255, 0);
    border-radius: 50%;
    vertical-align: middle;
    animation: blink 1.3s infinite;
}

a.PREV {
        position: fixed;
        letter-spacing: -0.2rem;
        cursor: pointer;
        mix-blend-mode: exclusion;
        z-index: 10000;
        font-size: calc(var(--font-xl) * 2);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        left: 0.6rem;

}        

.projekt-navigation .Close {
    font-size: calc(var(--font-xl) * 2);
    position: fixed;
    top: 0.7rem;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.projekt-wrapper{
  display: block;
  overflow-y: scroll;
  height: auto;
}

    ::-webkit-scrollbar {
        display: none;
    }

    .about {
        height: 100%;
        width: 100%;
        /* overflow: hidden; */
        font-size: var(--font-xl);
        padding: 5.5rem 0.7rem 0rem 0.7rem;
    }

    /* .projekt-category{
      padding: 0vw 0vw 1rem 0vw;
    } */

    .projekt-category p{
      padding-top: 0.5vw!important;
      padding-bottom: 2rem;
    }

    #about-felder {
        padding-top: 2rem;
        width: 100%;
        display: block;
        justify-content: space-between;
    }

    #about-felder p{
        line-height: 1.1;
    }

    h2 {
        font-size: calc(var(--font-xl) * 2);
    }

    .projekt-info p {
        font-size: var(--font-xl);
    }

    nav a {
        font-size: calc(var(--font-xl) * 1.4);
    }

    .project-list-mobile li {
        font-size: calc(var(--font-xl) * 1.4);
}
}

.gallery-sammlung {
    display: inline-block;        /* Wichtig für Masonry */
    width: 100%;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.gallery-img {
    width: 100%;
    padding-bottom: 0.7rem; 
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}


/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .sammlung-gallery .gallery-container {
        column-count: 3;
    }

.about{
    width: 100%;
}
}

@media (max-width: 900px) {
    .sammlung-gallery .gallery-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {

    .projekt-navigation .Next {
    position: fixed;
    letter-spacing: -0.2rem;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
    font-size: calc(var(--font-xl) * 2);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

    a.PREV {
        position: fixed;
        letter-spacing: -0.2rem;
        cursor: pointer;
        mix-blend-mode: exclusion;
        z-index: 10000;
        font-size: calc(var(--font-xl) * 2);
        padding-bottom: env(safe-area-inset-bottom, 0px);

}        

.projekt-navigation .Close {
    font-size: calc(var(--font-xl) * 2);
    position: fixed;
    top: 0.4rem;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

    .projekt-info p {
        padding: 1rem 0.7rem 1rem 0.7rem;
        font-size: calc(var(--font-xl)*1.4);
    }

    .sammlung-gallery .gallery-container {
        column-count: 2;
        padding: 0;
        column-gap: 0.7rem;
    }

    .sammlung-gallery {
        padding: 6.5rem 0.7rem 0rem 0.7rem;
    }

    .project-list-mobile {
  display: inline-grid;
  flex-wrap:wrap; /* Ermöglicht das Umbrechen der Items */
  padding: 6.5rem 0.7rem 0rem 0.7rem;
  width: 100%;
  line-height: 1.1;
  font-size: calc(var(--font-xl)*1.4);
}

.about {
        height: 100%;
        width: 100%;
        /* overflow: hidden; */
        font-size: calc(var(--font-xl) * 1.4);
        padding: 5.5rem 0.7rem 0rem 0.7rem;
}
}


@media (max-width: 500px) {
    .sammlung-gallery .gallery-container {
        column-count: 2;
        padding: 0;
        column-gap: 0.8rem;
    }

    .sammlung-gallery {
        padding: 4.5rem 0.8rem 0rem 0.8rem;
    }

    .project-list-mobile {
  display: inline-grid;
  flex-wrap:wrap; /* Ermöglicht das Umbrechen der Items */
  padding: 4.5rem 0.7rem 0rem 0.7rem;
  width: 100%;
  line-height: 1.1;
}

.about {
        height: 100%;
        width: 100%;
        /* overflow: hidden; */
        font-size: calc(var(--font-xl) * 1.4);
        padding: 4.5rem 0.7rem 0rem 0.7rem;
}

   .projekt-navigation .Next {
    position: fixed;
    letter-spacing: -0.2rem;
    right:0.7rem;
    cursor: pointer;
    bottom: 0.2rem;
    mix-blend-mode:exclusion;
    z-index: 10000;
    font-size: calc(var(--font-xl) * 2);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

    a.PREV {
        position: fixed;
        letter-spacing: -0.2rem;
        cursor: pointer;
        left: 0.5rem;
        bottom: 0.2rem;
        mix-blend-mode: exclusion;
        z-index: 10000;
        font-size: calc(var(--font-xl) * 2);
        padding-bottom: env(safe-area-inset-bottom, 0px);

}        

.projekt-navigation .Close {
    font-size: calc(var(--font-xl) * 2);
    position: fixed;
    top: 0.55rem;
    right: 0.45rem;
    cursor: pointer;
    mix-blend-mode:exclusion;
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

}