/* General CSS */

@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --color1:#f3e0be;
    --color2: #ece7db;
    --color3: #24201c;
    --color4: #e5cb9a;
    --color5: #e9e4cf;
}

* {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior:smooth;
    font-size:17px;
}

body {
    max-width:100vw;
    overflow-x:hidden;
    background-color: var(--color1);
    font-family: 'Montserrat', system-ui, sans-serif;
}

h1, h2, h3, h4, p, #main, footer div, main ul {
    max-width: 1200px;
}

h1, h2, h3, h4, #main p {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color:var(--color2);
}

#main {
    padding: 48px 20px 48px 20px;
    text-align: center;
    min-height:70vh;
}

footer {
    background-color: var(--color3);
    color: var(--color2);
    padding: 30px 20px;
}

h1 {
    text-transform: uppercase;
    font-size:3rem;
    margin: 48px auto 36px auto;
}

h1:nth-of-type(2) {
    margin-top:96px;
}

h2 {
    font-size:1.4rem;
}

h3 {
    font-size:1.4rem;
    line-height:1.6em;
    margin: 24px auto 12px auto;
}

h4 {
    font-size:1rem;
}

h5 {
    font-size:1rem;
}

p {
    line-height:1.6em;
    margin: 0px auto 0px auto;
}

.datenschutz p, .datenschutz ul, .datenschutz h3 {
    line-height:1.6em;
    margin: 0px auto 12px auto;
}

h2 {
    margin: 24px auto 24px auto;
}

.pinyon {
    font-family: "Caveat";
    font-size: 2.3rem;
}

section div p {
    text-align: justify;
}

#buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 20px;
    max-width:fit-content;
}

.button {
    text-decoration:none;
    color:black;
    background:transparent;
    border:2px solid black;
    padding: 12px 16px;
    font-family: 'montserrat';
    cursor: pointer;
    transition: all 0.3s ease 0s;
    text-align: center;
    vertical-align:middle;
    border-radius:8px;
    font-size:1rem;
    display:inline-block;
}

.image-wrapper-portrait .button {
    align-self:flex-start;
    margin: auto auto 0 auto;
}

.button svg {
    margin: 0 10px 0 0;
    padding: 0;
    vertical-align:middle;
    transition: all 0.3s ease 0s;
}

@media screen and (max-width: 1200px) {
    #index-title {
        font-size: 2.6rem;
    }

    .smaller-h1 {
        font-size: 2.9rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size:16px;
    }

    #index-title {
        font-size: 2.5rem;
    }

    h4 {
        font-size:1.4rem;
    }

    .smaller-h1 {
        font-size:2.3rem;
    }
}

@media screen and (max-width: 576px) {

    h1 {
        font-size:2.6rem;
    }

    #index-title {
        font-size:1.5rem;
    }

    h2, h3, h4 {
        font-size:1.2rem;
    }

    .smaller-h1 {
        font-size:1.3rem;
    }

    #buttons {
        flex-direction:column;
    }
}

@media screen and (max-width: 360px) {

}

/* Navigation Bar */

header {
    position: fixed;
    height: 60px;
    width: 100%;
    z-index: 999;
    color:var(--color2);
    background-color: #00000050;
    padding: 0 48px;
    font-size: 16px;
    text-transform:uppercase;
    box-shadow: 0 8px 6px -6px rgba(0,0,0,.2);
}

header.scrolled {
    background-color: var(--color1);
    color: black;
}

header.scrolled .nav-bar-2 a {
    color: black;
}

#trigger {
    width: 100%;
  }

#header {
    display: flex;
    align-items: center; 
    height: 100%;
}

.nav-bar-2 {
    display: flex;
    gap: 50px;
    text-align: center;
    justify-content:space-between;
    margin: 0 auto;
}

.nav-list-2 {
    list-style: none;
    display: flex;
    align-items:center;
    gap: 50px;
    flex-grow: 1;
    flex-basis: 0;
}

.burger {
    display: none;
    cursor: pointer;
    margin: 0;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 6px 0;
    transition: 0.4s
}

.nav-bar {
    display: none;
}

.bigger {
    font-size:larger;
    text-align:center;
}

@media screen and (max-width: 768px) {
    .bigger-on-mobile {
        font-size:larger;
    }
}

.justify {
    text-align:justify;
    margin-bottom:12px;
}

@media screen and (max-width: 1200px) {
    body {
        overflow-x: hidden;
    }

    header {
        height: 8vh;
        background-color: var(--color1);
        color: black;
    }

    #header {
        justify-content: space-between;    
    }

    .nav-bar-2 {
        margin: 0;
    }
    
    .burger {
        display: block;
    }

    .nav-list-2{
        display:none;
    }

    .nav-bar {
        display:block;
    }

    .nav-list{
        list-style: none;
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: black;
        color: var(--color2);
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        /*transition: transform 0.5s ease-in;*/
    }

    .nav-list li {
        margin: 3vh 0;
        opacity: 1;
    }

    .nav-list li a {
        font-size: 1.4rem;
        font-weight: normal;
    }

    body.disabled {
        overflow: hidden;
    }

    .nav-bar-2 a {
        color:black;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 0 24px;
    }
}

.nav-active{
    transform: translateX(0%);
}

@keyframes navLinkFade{
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.toggle .bar2 {
    opacity: 0;
}

.toggle .bar3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

.no-scroll {
    overflow-y: hidden;
}

/* Home Section */

#home {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

@media screen and (max-width: 992px) {
    #home {
        height: 90vh;
    }
}

@media screen and (max-width: 768px) {
    #home {
        height: 80vh;
    }
}

@media screen and (max-width: 576px) {
    #home {
        height: 70vh;
    }
}
  
.bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
  
.visible {
    opacity: 1;
}
  
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color2);
    user-select: none;
    z-index: 1;
}
  
.arrow span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
  
.arrow span:hover,
.arrow span:active {
    color: rgb(85, 79, 65);
}

.arrow span:focus {
    outline: none;
    color: var(--color2);
}
  
.arrow svg {
    display: inline-block;
}
  
.left {
    left: 22px;
}
  
.right {
    right: 42px;
}

@media screen and (max-width: 768px) {
    .left {
        left: 2px;
    }

    .right {
        right: 22px;
    }
}

/* Main Section */

img {
    object-fit:cover;
    background-color:var(--color1);
}

#gallerie {
    scroll-margin-top:96px;
}

#index-subtitle {
    margin-bottom: 96px;
}

.image-wrapper-portrait {
    display:flex;
    justify-content:space-between;
    gap: 30px;
    width: 100%;
}

#index .image-wrapper-portrait {
    margin: 48px auto;
}

.image-wrapper-portrait div {
    flex:1;
    display:flex;
    flex-direction:column;
    gap:30px;
}

.image-wrapper-portrait img {
    width:100%;
}

.image-grid img, .image-grid-gallerie img {
    width:100%;
    height: 100%;
}

.small img {
    width: 100%;
}

.small div {
    background:var(--color4);
    padding:30px;
    border-radius:10px;
}

.image-grid {
    margin: 36px auto 0px auto;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 8px;
}

.image-grid-gallerie {
    margin: 0px auto;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 8px;
}

.image-wrapper-gallery {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:30px;
}

.image-wrapper-gallery .landscape {
    flex: 0 0 100%;
}

.image-wrapper-gallery .portrait {
    flex: 0 0 calc(50% - 15px);
}

@media screen and (max-width: 992px) {
    .image-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .image-grid-gallerie {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .image-wrapper-portrait {
        flex-direction:column;
        gap: 48px;
    }

    .image-wrapper-portrait div {
        gap: 24px;
    }
    
    .image-wrapper-portrait img {
        max-width:360px;
    }

    .image-wrapper-gallery .portrait {
        flex: 0 0 100%;
    }

    .image-wrapper-gallery .portrait img {
       width: 520px;
    }

    .image-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 576px) {
    .image-grid, .image-grid-gallerie {
        grid-template-columns: 1fr;
    }
}

.line {
    width: 100%;
    max-width: 540px;
    border-top: 0.5px solid black;
    margin: 48px auto;
}

.keywords {
    font-size:10px;
    text-transform:uppercase;
    font-weight:bold;
    margin-bottom:50px;
}

/* Footer Section */

footer * {
    margin: 4px auto;
}

footer h3 {
    font-size: 16px;
}

#footer-content {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#footer-content div {
    margin: 0;
    min-width: 200px;
}

#links {
    text-align:right;
    text-transform:uppercase;
    flex:1;
}

#name {
    text-align:center;
}

#footer-logo {
    flex:1;
    text-align:left;
}

#footer-logo svg {
    width:200px;
    height:200px;
}

#footer-logo path {
    fill:var(--color2);
}

#name p {
    margin: 10px auto;

}

#footer-mail {
    word-break:break-all;
}

#name p:first-child {
    text-transform:uppercase;
}

#footer-content2 {
    margin-top:20px;
    text-align:center;
    font-size: 11px;
}

@media screen and (max-width: 768px) {
    #footer-content {
        flex-direction:column;
        gap: 0px;
    }

    #footer-content div {
        margin: 10px auto;
    }

    #links {
        text-align: center;
    }
}

/* Contact Form */

input, textarea, select {
    font-family: "montserrat";
}

#contact input {
    text-align:left;
}

#contact form {
    margin-top: 60px;
    text-align: center;
}

#contact div {
    margin: 8px auto;
}

input, textarea, select  {
    border: none;
    border-bottom:1px solid;
    width: 100%;
    padding: 16px;
    background-color: transparent;
    text-align: left;
    font-size:16px;
}

input, textarea {
    color:black;
}

input::placeholder, textarea::placeholder, select {
    color: rgb(94, 94, 94);
}
  
select {
    padding: 16px 12px; /* Make padding consistent with your input fields */
}

select:valid {
    color:black;
}


#contact textarea {
    height: 120px;
    resize:none;
}

#contact button {
    margin: 72px auto 48px auto;
}

textarea::-webkit-scrollbar {
    width: 10px;
  }
  
textarea::-webkit-scrollbar-track {
    background: transparent;
}
  
textarea::-webkit-scrollbar-thumb {
    background-color: var(--color3);
}

textarea {
    scrollbar-width: 10px;
    scrollbar-color: var(--color3) transparent; /* thumb color track color */
}

input:focus, select:focus, textarea:focus {
    outline:none;
}



/* Über Mich */

#about p {
    margin: 24px auto;
}

#about-foto-2 {
    width:100%;
    max-width: 1200px;
}

#about-foto-1 {
    height:480px;
    float:left;
    margin: 0px 20px 10px 0;
}

#about-foto-small {
    display:none;
}



@media screen and (max-width: 768px) {
    #about-foto-1 {
        display:none;
    }

    #about-foto-small {
        display:block;
        width: 100%;
    }
}

/* Datenschutz und Impressum */

.datenschutz h2, .datenschutz h3 {
    text-align:left;
    margin-top:30px;
}

.datenschutz li {
    text-align:left;
    margin-left:2em;
}

.datenschutz h3 {
    font-size: 18px;
}

.datenschutz a {
    color:var(--color3);
    text-decoration:underline;
}

/* Cookies */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index:9999;
}

#cookie-banner p {
    font-size:0.8rem;
}

#cookie-banner a {
    text-decoration:underline;
    color:white;
}

#cookie-banner button {
    /*background: #f1c40f;*/
    background: var(--color2); 
    color:black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size:0.8rem;

}



/* General */

@media (hover: hover) {
    .nav-list a:hover {
        color: grey;
    }

    .button:hover {
        background-color: black;
        color: var(--color2);
    }

    .button:hover a {
        color: var(--color2);
    }

    .button:hover svg {
        fill:var(--color2);
    }

    #cookie-banner button:hover {
        background-color:black;
        color:white;
    }
}