@font-face {
    font-family: "InterDisplayBold";
    src: url("../fonts/InterDisplay-Bold.otf") format("opentype");
  }
  
@font-face {
    font-family: "InterDisplayLight";
    src: url("../fonts/InterDisplay-Light.otf") format("opentype");
  }

@font-face {
    font-family: "InterDisplayMedium";
    src: url("../fonts/InterDisplay-Medium.otf") format("opentype");
}

* {
    padding: 0px;
    box-sizing: border-box;
    font-family: "InterDisplayLight", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    text-align: center;
    background-color: #ffffff;
    margin: 0;
    padding-bottom: 0;   /* Height of the footer */
}

/* schwarzer Hintergrund für About Me Seite 
body.about-me {
    background-color: #111111; 
}
*/


/* Ab hier Design (cmd + shift + 7)*/

/* menu */
header {
    top: 0;
    padding: 30px 60px 30px 60px;
    position: sticky;
    z-index: 1;
    text-align: right;
}

a {
    text-decoration: none;
}

#menu,
#menume {
    color: #0018A8;
    font-size: 14pt;
    font-family: "InterDisplayLight";
    padding: 10px;
}

#menu:hover,
#menume:hover {
    font-family: "InterDisplayBold";
}


/* überschriften */
h1 {
    color: #0018A8;
    font-size: 70pt;
    text-align: right;
    font-family: "InterDisplayBold";
    margin-top: -35px;
}

h2 {
    color: darkgray;
    font-size: 20pt;
    font-family: "InterDisplayBold";
    text-align: left;
}

h3 {
    color: darkgrey;
    font-size: 50pt;
    font-family: "InterDisplayBold";
    margin-top: 15%;
    margin-bottom: 12pt;
}

h4 {
    color: black;
    font-size: 50pt;
    font-family: "InterDisplayLight";
    text-align: left;
    margin: 10px 4em 1em 8px;
}

h5 {
    display: block;
    margin-bottom: 8px;
    font-size: 16pt;
    font-family: "InterDisplayMedium";
    text-align: left;
    color: black;
    width: 100%;
    max-width: 640px;
}

/* text */
p {
    font-size: 10pt;
    font-family: "InterDisplayLight";
    color: black;
    margin-top: 0px;
}


/* Links to mail, phone, insta*/
.nav a {
    font-size: 12pt;
    font-family: "InterDisplayLight";
    color: black;
}

.nav a:hover {
    color: #0018A8;
}

ul, ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.nav img{
    height: 20px;
    width: auto;
}

#me {
    font-size: 12pt;
    font-family: "InterDisplayLight";
    color: black;
    text-align: left;
    padding-right: 115px;
}

.socials {
    display: flex;
    gap: 5px;
}

.socials img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/*divs - thumbnails*/
#div1 {
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    width: 50%;
}


/* project-thumbnails in HOME */

.project-grid {
    margin-top: 1vw;
    padding: 0 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.project-card {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card.medium {
    grid-column: span 2;
    width: 100%;
    height: 600px;
}

.project-card.wide {
    grid-column: span 3;
    width: 100%;
    height: 600px;
}

.project-card a {
    display: block;
    width: 100%;
    height: 100%;
}
 
.project-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    background-color: rgba(134, 180, 212, 0);
    transition: background-color 0.4s ease;
    z-index: 2;
}


/* Overlay-Text */
.overlay {
    width: 100%;
    text-align: left;
    padding: 0 30px 10px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    color: white; 
    opacity: 0; 
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.overlay p {
    font-size: 50px;
    font-family: "InterDisplayMedium";
    color: white;
    white-space: normal;
    margin: 0;
}

/* Effekt beim Hover */
.project-card:hover::before {
    background-color: rgba(0, 24, 168, 0.5);
}

.project-card:hover .overlay {
    opacity: 1;
}


/*PROJEKTSEITEN aka work single seite */

/*pfeil*/
#back-to-top {
    position: fixed;
    right: 70px;
    bottom: 40px;

    color: #86b4d4;
    font-size: 50px;

    text-decoration: none;
    line-height: 1;

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-4px);
}


/*HERO PIC*/
.work-single_bigpicture,
.project-gallery-section {
    width: 100%;
    max-width: 1120px;
}


.work-single_bigpicture img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 0 0 4em 0;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 0 0 4em 0;
}


/*Textblock*/
.projectdetails {
    text-align: left;
    margin: 0 70px;
    max-width: none;
}

.project-text-block {
    display: grid;
    grid-template-columns: 650px 420px;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.project-description p {
    font-size: 12pt;
    line-height: 1.4;
    max-width: 620px;
}

.project-facts {
    font-size: 12pt;
    line-height: 1.4;
}

.project-facts p {
    margin-bottom: 5px;
    font-size: 12pt;
}

.label {
    display: inline-block;
    width: 110px; /* anpassen */
}
.project-detail strong {
    font-family: "InterDisplayLight";
}

.project-id {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Abstand zwischen Punkt und Text */
    font-family: "InterDisplayLight";
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;
    margin-bottom: 8px;
    margin-top: 4em;
    margin-left: 12px;
    white-space: nowrap; /* verhindert Umbruch */
}
  
.project-id .dot {
    width: 10px;
    height: 10px;
    background-color: #1d1d1d;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Gallerie */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
    margin: 4em 0 2em 0;
}

.grid-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.grid-item.website {
    object-fit: contain;
    background-color: #f1f1f1;
}

/* Verschiedene Größenkombinationen */
.grid-item.small {
    grid-column: span 5;
    grid-row: span 3;
}

.grid-item.large {
    grid-column: span 7;
    grid-row: span 3;
}


.grid-item.vertical {
    grid-column: span 6;
    grid-row: span 4;
}

.grid-item.vertical02 {
    grid-column: span 12;
    grid-row: span 6;
}

.grid-item.wide {
    grid-column: span 12;
    grid-row: span 3;
}

.grid-item.wide02 {
    grid-column: span 12;
    grid-row: span 4;
}


/*Grid about seite*/
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 10vh;
}


.column { /* Create four equal columns that sits next to each other */
  flex: 50%;
  max-width: 50%;
  padding: 0px 20px;
}

.column img {
  margin: 0px;
  vertical-align: center;
  width: 83%;
}


/*footer*/
.footer{
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
    z-index: 1;
}

#footer{
    color: darkgrey;
    font-size: 8pt;
    font-family: "InterDisplayLight";
    padding-right: 60px;
    text-align: right;
}

@media screen and (max-width: 600px) {
    .work-single_bigpicture {
      max-width: 90%;
      padding: 0 10px;
    }
  }


/* GENERAL RESPONSIVE FIXES */

img {
    max-width: 100%;
}

/* HOME GRID */

@media screen and (max-width: 1000px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }

    .project-card,
    .project-card.medium,
    .project-card.wide {
        grid-column: span 1;
        height: 500px;
    }
}

@media screen and (max-width: 700px) {
    header {
        padding: 24px 24px;
    }

    h1 {
        font-size: 42pt;
        margin-top: 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .project-card,
    .project-card.medium,
    .project-card.wide {
        grid-column: span 1;
        height: 420px;
    }

    .overlay p {
        font-size: 32px;
    }
}

/* PROJECT DETAIL RESPONSIVE */

@media screen and (max-width: 1200px) {
    .projectdetails {
        margin: 0 40px;
    }

    .project-text-block {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .project-description p {
        max-width: 100%;
    }

    h5 {
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    .projectdetails {
        margin: 0 20px;
    }

    .work-single_bigpicture,
    .project-gallery-section {
        max-width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }

    .project-description p {
        font-size: 12pt;
    }

    .project-facts {
        font-size: 11pt;
    }

    .label {
        width: 90px;
    }

    #back-to-top {
        right: 24px;
        bottom: 28px;
        font-size: 42px;
    }
}

/* PROJECT GALLERY RESPONSIVE */

@media screen and (max-width: 900px) {
    .project-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .grid-item,
    .grid-item.small,
    .grid-item.large,
    .grid-item.vertical,
    .grid-item.wide,
    .grid-item.wide02 {
        grid-column: span 1;
        grid-row: auto;
        height: auto;
        aspect-ratio: auto;
    }
}

/*DARKMODE**/
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111111;
        color: white;
    }

    h4,
    h5,
    p,
    .project-detail,
    .project-facts,
    .project-id {
        color: white;
    }

    .project-id .dot {
        background-color: white;
    }

    .grid-item.website {
        background-color: #1d1d1d;
    }

    /* Menu */
    #menu,
    #menume {
        color: white;
    }

    /* About page */
    .nav a,
    #me {
        color: white;
    }
}