@font-face {
  font-family: "Nort";
  src: url("../fonts/Nort-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Nort";
  src: url("../fonts/Nort-Regular-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Nort";
  src: url("../fonts/Nort-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Nort";
  src: url("../fonts/Nort-Bold-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Beispiel Regular Web", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Cursor verändert */
body {
  color: black;
  background-color:white;
  cursor: url('../media/dot_PNG4.png') 5 5, auto;
}

nav {
  flex-wrap: nowrap;
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

nav a {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding-block: clamp(10px, 2.8vw, 22px);
  padding-inline: clamp(8px, 5vw, 24px);
  display: inline-block;
  text-decoration: none;
  font-size: clamp(14px, 2.8vw, 20px);
  font-family: "Nort", sans-serif;
  font-weight: 200;
  color: black;
  transition: color 0.5s ease, background-color 0.5s ease;
  text-align: center;
  white-space: nowrap;
}

nav a:not(:last-child) {
  border-right: 1px solid black;
}

/* Cursor wechselt zu weiß bei schwarzem Hintergrund in der Navigation */
nav a:hover {
  color: white;
  background-color: black;
  cursor: url('../media/dot_PNG1.png') 5 5, auto;
}

a {
  cursor: inherit;
  font-family: "Nort", sans-serif;
}

img {
  width: 35%;
  height: 90%;
  border: 1px solid;
  padding: 10px;
  margin-bottom: 50px;
  border-color: black;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 70px;
}

.container-projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;
}

.container h1 {
  color:rgb(250, 185, 25);
}

.container h2 {
  color: black;
}

.container h3 {
  color:rgb(250, 185, 25);
}

.container-projects img {
  max-width: 800px;
}

.insta {
  max-width: 100%;
  height: auto;
}

.text-about {
  max-width: 495px;
}

.text-projects {
  max-width: 480px;
  
}

h1 {
  font-size: clamp(36px, 8vw, 110px);
  font-family: "Nort", sans-serif;
  line-height: 0.9;
}

h2 {
  font-size: clamp(28px, 6vw, 80px);
  font-family: "Nort", sans-serif;
  line-height: 1.1;
}

h3 {
  font-size: clamp(22px, 5vw, 60px);
  font-family: "Nort", sans-serif;
}

h3.uppercase {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 3px;
  font-family: "Nort", sans-serif;
}

h4 {
  font-size: clamp(16px, 2.8vw, 20px);
  font-family: "Nort", sans-serif;
}

h5 {
  font-size: clamp(20px, 4vw, 40px);
  font-family: "Nort", sans-serif;
}

h6 {
  font-size: clamp(18px, 3.6vw, 30px);
  font-family: "Nort", sans-serif;
}

h7 {
  font-size: 15px;
  font-family: "Nort", sans-serif;
  font-weight: bold;
}

p {
  font-size: clamp(14px, 2.8vw, 18px); 
  line-height: 1.6;
  font-family: "Nort", sans-serif;
}

.container-start {
  display:inline-block;
  justify-content: center;
  flex-wrap: wrap;
  align-content: baseline;
  gap: 0px;
}

.container-start img {
  width: 400px;
  height: 400px;
  border: none;
  margin: 0;
}

.container-start h5 {
  margin-bottom: 30px;
}

.container-start h6 {
  margin-bottom: 30px;
}

/* Buchstabe rotiert */
.rotated {
  display: inline-block;
  transform: rotate(180deg);
  display: inline-block;
  font-family: "Nort", sans-serif;
}

/* Buchstabenabstand verändern */
.adjusted {
  margin-right: 3px;
}

.Projekte {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.Projekte2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  row-gap: 50px;
}

.bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.5s ease;
  padding: 0;
}

/* Deckkraft verändert sich beim Hovern um die Schrift lesen zu können */
.bild:hover {
  opacity: 30%;
}

.bild-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 55 / 38; 
}

.container,
.container-projects,
.Projekte,
.Projekte2 {
  gap: clamp(16px, 5vw, 70px);
  padding-inline: clamp(12px, 4vw, 40px);
}

.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(18px, 5vw, 50px);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-shadow: 2px 2px 10px black;
  text-align: center;
  width: 90%;
}

/* Der Text wird sichtbar, wenn über das Bild gehovert wird */
.bild-container:hover .hover-text {
  opacity: 1;
  pointer-events: none;
}

/* WAY MORE-Button, verändert sich beim hovern */
.more {
  display: inline-block;
  justify-content: center;
  color: white;
  background-color: black;
  padding: 8px 18px;
  margin-top: 45px;
  margin-bottom: 45px;
  border: 3px solid transparent;
  text-align: center;
  transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}

.more a {
  text-decoration: none;
  color: inherit;
}

.more:hover {
  color: black;
  background-color: white;
  border: 3px solid;
}

/* Intro Animation */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 1;
  visibility: visible;
  animation: fadeOut 6.5s ease-in-out forwards;
}

/* Text auf schwarzen Hintergrund */
.intro-screen h1 {
  font-size: 2.5rem;
  text-align: center;
  font-family: "Nort", sans-serif;
}

/* Inhalt der Seite verbergen */
.content {
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Animation, um den schwarzen Hintergrund zu entfernen und den Inhalt sichtbar zu machen */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
  }
}

body.loaded .content {
  opacity: 1;
}

/* Buchstabenanimation */
.animated-text {
  font-size: clamp(18px, 5vw, 50px);
  font-family: "Nort", sans-serif;
  justify-content: center;
  font-weight: bold;
  display: flex;
}

.animated-text span {
  opacity: 0;
  animation: appear 1s ease forwards;
}

/* Buchstabenanimationen einzeln */
.animated-text span:nth-child(1) {
  animation-delay: 0.15s;
}

.animated-text span:nth-child(2) {
  animation-delay: 0.3s;
}

.animated-text span:nth-child(3) {
  animation-delay: 0.45s;
}

.animated-text span:nth-child(4) {
  animation-delay: 0.6s;
}

.animated-text span:nth-child(5) {
  animation-delay: 0.75s;
}

.animated-text span:nth-child(6) {
  animation-delay: 0.9s;
}

.animated-text span:nth-child(7) {
  animation-delay: 1.75s;
}

.animated-text span:nth-child(8) {
  animation-delay: 1.9s;
}

.animated-text span:nth-child(9) {
  animation-delay: 2.05s;
}

.animated-text span:nth-child(10) {
  animation-delay: 2.2s;
}

.animated-text span:nth-child(11) {
  animation-delay: 2.35s;
}

.animated-text span:nth-child(12) {
  animation-delay: 2.5s;
}

.animated-text span:nth-child(13) {
  animation-delay: 2.65s;
}

.animated-text span:nth-child(14) {
  animation-delay: 2.8s;
}

.animated-text span:nth-child(15) {
  animation-delay: 2.95s;
}

.animated-text span:nth-child(16) {
  animation-delay: 3.1s;
}

.animated-text span:nth-child(17) {
  animation-delay: 3.25s;
}

.animated-text span:nth-child(18) {
  animation-delay: 3.4s;
}

.animated-text span:nth-child(19) {
  animation-delay: 3.55s;
}

.animated-text span:nth-child(20) {
  animation-delay: 3.7s;
}

.animated-text span:nth-child(21) {
  animation-delay: 3.85s;
}

.animated-text span:nth-child(22) {
  animation-delay: 4s;
}

.animated-text span:nth-child(23) {
  animation-delay: 4.15s;
}

.animated-text span:nth-child(24) {
  animation-delay: 4.3s;
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  nav{
    border-bottom: 0;}  
  nav a { flex: 1 1 100%; border-bottom: 1px solid black; text-align: center;}
  nav a:last-child { border-bottom: none; }
}

/* Für kleinere Geräte (Tablets & Smartphones) */
@media (max-width: 1024px) {
  img {
    width: 60%;
    height: auto; /* passt sich proportional an */
  }
}

/* Für sehr kleine Bildschirme (Smartphones) */
@media (max-width: 640px) {
  img {
    width: 90%;
    height: auto;
  }
}

.nowrap {
  white-space: nowrap;
}