@font-face {
	font-family: 'Inter';
    src: url('fonts/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
	font-weight: 100 900;	
}
@font-face {
	font-family: 'Inter Italic';
    src: url('fonts/Inter-Italic-VariableFont_opsz\,wght.ttf') format('truetype');
	font-weight: 100 900;	
}

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Desktop */
body {
	font-family: 'Inter';
    margin: 1.5rem 2rem 2rem 2rem;
    line-height: 1.15;
    max-width: 100vw;
    height: 100%;
    overflow-x: hidden;
}
h1 {
    font-size: 3rem;
    font-variation-settings: 'wght' 380, 'opsz' 28;
    color: black;
}
p {  
    font-size: 1.8rem;
    font-variation-settings: 'wght' 380, 'opsz' 18;
    padding-bottom: 0.5rem;
}
em {
	font-family: 'Inter Italic';
    font-size: 1.78rem;
    font-variation-settings: 'wght' 300, 'opsz' 14;
}
a {
    color: black;
    cursor: pointer;
}
a:hover{
    color: rgb(175, 175, 175);
}
.menu {
    position: fixed;
    bottom: 2rem;
    z-index: 12;
}
.menu a {
    font-size: 3rem;
    font-variation-settings: 'wght' 380, 'opsz' 28;
    text-decoration: underline;
    text-decoration-thickness: 0.25rem;
    text-underline-offset: 0.25rem;   
}
img {  
    padding-top: 0.5rem;
}
.abstand{
    margin-bottom: 12rem;
}


/* Home Seite Rabeas */
.link-gallery {
    font-size: 3rem;
    text-align: left;
    max-width: 70ch;
}
.link-gallery a {
    position: relative;
    text-decoration: none;
    /* white-space: normal; */
}
.link-gallery a img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22rem;
    height: auto;
    transform: translate(-50%, 0);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}
.link-gallery a:hover img {
    opacity: 1;
}

/* Projektübersicht */
.spalten-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    max-width: 100vw;
    overflow: none;
}
.spalten-layout a {
    margin: 0;
    width: auto;
    text-decoration: none;
}
.spalten-layout img {
    width: 100%;
    height: auto;
}
.zweispalten {
    grid-column: 1 / span 2;
}
.zweispalten-zwei {
    grid-column: 3 / span 2;
}
#legende {
    grid-column: 1 / span 3;
}
.web {
    text-decoration: underline;
    text-decoration-thickness: 0.1rem;
    text-underline-offset: 0.2rem;
}
.neuertap {
    font-variation-settings: 'wght' 260, 'opsz' 18;
    line-height: 0;
    margin-left: 0.5rem;
}

/* Bilder mittig klein*/
.layout-mittig {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100vw;
}
.bild-text-box{
    display: block;  
    width: 30%;
    margin: 0 auto;  
}
.bild-text-box img {
    width: 100%;
    margin-bottom: 0;
}
.bild-text-box p{
    text-align: left;
    margin-bottom: 0.5rem;
}
.bild-text-box a{
    font-family: 'Inter Italic';
    font-size: 1.78rem;
    font-variation-settings: 'wght' 300, 'opsz' 14;
    text-decoration: underline;
    text-decoration-thickness: 0.1rem;
    text-underline-offset: 0.2rem;
}

/* Bild mittig mittig*/
.mittig{
    display: flex;
    max-width: 100vw;
    height: 80vh;
    justify-content: center;
    align-items: center;
}
.mittig img{
    width: 70%;
    height: auto;
    z-index: -1;
}
.mittig video {
    width: 70%;
    height: auto;
    z-index: -1;
}

/* Bild ausfüllend*/
.einspaltiges-layout{
    display: flex;
    max-width: 100vw;
    height: auto;
    justify-content: center;
    padding-bottom: 0.5rem;
}
.einspaltiges-layout img{
    width: 100%;
    height: auto;
    z-index: -1;
}

/* Vollflächiges Hintergrundbild */
#hintergrundbild{
    background-image: url('bilder/kinderzimmerposter.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-position: center;
    overflow: hidden;
}

/* Ende Deskdop Layout */


/* ipad */
@media (max-width: 1222px) {
    :root {
        font-size: 80%;
    }
    .abstand{
        margin-bottom: 16rem;
    }
	.link-gallery a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform: translate(0, 0);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}
.link-gallery a:hover img {
    opacity: 1;
}
    .spalten-layout {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .zweispalten {
        grid-column: 1 / span 3;
    }
    .zweispalten-zwei {
        grid-column: 1 / span 3;
    }
    .bild-text-box{
        width: 50%;
    }
    .mittig img{
        width: 100%;
        height: auto;
    }
    .mittig video {
        width: 100%;
    }
}
@media (max-width: 810px) {
    :root {
      font-size: 65%;
    }
    .spalten-layout {
        grid-template-columns: 1fr 1fr;
    }
    #spalte1 {
        grid-column: 1;
    }
    #spalte2 {
        grid-column: 2;
    }
    .zweispalten {
        grid-column: 1 / span 2;
    }
    .zweispalten-zwei {
        grid-column: 1 / span 2;
    }
    .bild-text-box{
        width: 55%;
    }
  }

/* Mobile */
  @media (max-width: 430px) {
    :root {
      font-size: 55%;
    }
    .spalten-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .spalten-layout img {
        margin-bottom: 0.5rem;
    }
    #spalte2 {
        grid-column: 1;
    }
    .bild-text-box{
        width: 100%;
    }
  }
  @media (max-width: 380px) {
    :root {
      font-size: 50%;
    }
  }