/* Scrollbar immer sichtbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #b93025 #1a1a1a;
}

/* Grundstruktur */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "pressio", sans-serif;
  font-weight: 49;
  font-style: normal;
  background: #fff;
  color: #1a1a1a;
}

/* Top-Bar für den Namen */
.top-bar {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  padding: 9px;
  margin-bottom: clamp(-188px, -6vw, -55px);
  z-index: 20;
  position: relative;
}

.top-bar h2 {
  font-size: clamp(2rem, 4vw, 6rem);
  line-height: 0.5;
  white-space: pre-line;
}

/* Header-Zeile: Portfolio + Navigation */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-inline: clamp(16px, 2vw, 40px);
  position: relative;
  z-index: 10;
  gap: clamp(24px, 5vw, 160px);
}

/* Portfolio-Schriftzug */
.titel {
  font-size: clamp(3rem, 9vw, 21rem);
  color: #e84133;
  font-weight: bold;
  white-space: nowrap;
  text-align: left;
  line-height: 0.99;
  margin: 0;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
  display: flex;
  flex: 1;
  margin-left: 45px;
  margin-right: 20px;
  justify-content: space-between;
  min-width: 250px;
  gap: 20px;
  padding: 10px 0;
}

nav a {
  color: #e84133;
  text-decoration: none;
  font-size: clamp(1.2rem, 1vw, 1.65rem);
  padding-bottom: 3px;
  white-space: nowrap;
  font-weight: normal;
  transition: font-weight 0.2s;
  position: relative;
}

nav a::after {
  content: attr(data-text);
  font-weight: bold;
  visibility: hidden;
  height: 0;
  display: block;
  overflow: hidden;
}

nav a:hover {
  font-weight: bold;
}

/* Scroll-Inhalt */
.content {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.block {
  margin-bottom: 60px;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Scrollbar-Styling für WebKit */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background-color: #b93025;
  border-radius: 4px;
  min-height: 13px;
  max-height: 15px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #ffffff;
}

/* Radio-Buttons ausblenden */
input[type="radio"] {
  display: none;
}

/* Labels für Filter */
label[for="alle"],
label[for="video"],
label[for="art"] {
  cursor: pointer;
  margin-left: 3rem;
  margin-right: -2rem;
  margin-top: 2rem;
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border: 2px solid #e84133;
  color: #e84133;
  border-radius: 7px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

input#alle:checked ~ label[for="alle"],
input#video:checked ~ label[for="video"],
input#art:checked ~ label[for="art"] {
  background: #e84133;
  color: white;
}

/* Grid-Layout */
.portfolio-grid {
  margin-top: 4rem;
  margin-bottom: 20rem;
  display: grid;
  margin-left: 10rem;
  margin-right: 10rem;
  grid-template-columns: repeat(auto-fill, minmax(689px, 1fr));
  gap: 6rem;
}

/* Standardmäßig alle Items ausblenden */
.portfolio-item {
  aspect-ratio: 3 / 1.8;
  width: 100%;
  position: relative;
}

/* Sichtbarkeit nach Filter */
#alle:checked ~ .portfolio-grid .portfolio-item {
  display: block;
}

#video:checked ~ .portfolio-grid .video {
  display: block;
}

#art:checked ~ .portfolio-grid .art {
  display: block;
}

/* Video-Styling */
.portfolio-item video {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 1.5;
  object-fit: cover;

}

/* Bilder Hover-Effekt */
.image-hover-container {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  perspective: 1000px;
}

.image-hover-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hintergrundbild */
.main-image {
  z-index: 0;
  opacity: 1;
}

/* Vordergrundbild Portfolio*/
.overlay-image {
  z-index: 1;
  transform: translateY(0);
}

/* Hover-Effekt */
.image-hover-container:hover .main-image {
  opacity: 0.10;
}

@keyframes z-wackeln {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(4deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

.description{
  margin-top: 11px;
  
}



/*Über Mich*/
.ueber-wrapper {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.bild-links {
  rotate: 90deg;
  flex: 1;
  max-width: 387px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.bild-links .portrait {
  width: 100%;
  font-size: bold;
  height: auto;
  border-radius: 15px;
 
}

.intro-text {
  text-align: left;
  line-height: 1.2;
}

.ueber-rechts {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

.ueber-rechts h2 {
  color: #e84133;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.ueber-rechts p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
}
}
   .ueber-wrapper {
  display: flex;
  gap: 4rem;
  padding: 4rem clamp(4rem, 6vw, 8rem);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bild-und-titel {
  flex: 1 1 307px;
  max-width: 767px;
}

.bild-und-titel img.portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.text-bereich {
  flex: 2 1 500px;
  text-align: right;
}

.text-bereich .h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.text-bereich .untertitel {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.ueber-blöcke {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ueber-blöcke .block h2 {
  color: #e84133;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.ueber-blöcke .block p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Rechte Ausrichtung für alle Texte */
.rechts {
  text-align: right;
}

/* Responsive Anpassung */
@media (max-width: 900px) {
  .ueber-wrapper {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .text-bereich {
    text-align: left;
  }

  .rechts {
    text-align: left;
  }
}



/*Kontakt*/
.image-hover-container:hover .overlay-image {
  animation: z-wackeln 2.3s ease-in-out 1;
  transform-origin: center;
}

.center-wrapper {
  height: 82vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.grow-link {
  font-size: clamp(0.3rem, 2.8vw, 0.8rem); /* Startgröße, responsive */
  text-decoration: none;
  color: #1a1a1a;
  animation: grow 62s ease-in-out forwards; /* Einmaliges Wachstum, bleibt am Ende */
  transition: color 0.3s ease;
}

.grow-link:hover {
  color: #e84133; /* Rot bei Hover */
}

.grow-link .red {
  color: #e84133;
}

@keyframes grow {
  from {
    font-size: clamp(0.5rem, 15vw 0.9rem);
  }
  to {
    font-size: clamp(1.3rem, 3vw, 2.5rem); /* Endgröße, responsive */
  }
}

/*Blog*/
:root {
  --brand-red: #e84133;
}

.blog-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 34px;
  margin: 37px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 2px solid var(--brand-red);
  gap: 30px;
  flex-wrap: wrap;
}

/* Jeder 2. Blog-Eintrag gespiegelt */
.blog-entry:nth-child(even) {
  flex-direction: row-reverse;
}

.blog-content {
  flex: 1;
  max-width: 400px; /* Begrenzung für max. 8 Wörter/Zeile */
  line-height: 1.6;
  word-break: break-word;
}

.blog-title {
  color: var(--brand-red);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-fazit {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.blog-date {
  background: black;
  color: white;
  padding: 6px 75px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/*IMPRESSUM*/
.impressum-container {
  text-align: center;
  max-width: 760px;   
  margin: auto;
  margin-top: 300px;
  background-color: white;
  border: 2px solid var(--brand-red);
  border-radius: 12px;
  padding: 24px 32px;


  color: #222;
}

.impressum-container h2 {
  color: var(--brand-red);
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: left;
}

.impressum-container p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.impressum-container a {
  color: black;
  text-decoration: none;
}

.impressum-container a:hover {
  color: #e84133;
}

.side-link {
  position: fixed;
  left: 0;
  bottom: 0;
  transform-origin: left bottom;
  background: transparent;
  color: black;
  text-decoration: none; /* Kein Unterstrich */
  font-weight: normal;
  font-size: 1.rem;
  padding: 0.5rem 1rem;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
}


.back-to-top {
  font-weight: bold;
  position: fixed;
  bottom: 2rem;
  right: 3rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid #e84133;
  color: #e84133;
  background: white;
  border-radius: 7px;
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, color 0.2s;
}

.back-to-top:hover {
  background: #e84133;
  color: white;
  
  
  

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .top-bar {
    padding: 16px;
    margin-bottom: -80px;
  }

  .top-bar h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.2;
  }

  .portfolio {
    font-size: clamp(3rem, 14vw, 8rem);
    word-break: break-word;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
  }

  nav a {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
  


  @media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr; /* Eine Spalte bei kleinen Displays */
    margin-left: 1rem;
    margin-right: 1rem;
    gap: 2rem;
  }
}
  
  .portfolio-item {
    aspect-ratio: 3 / 2;
  }

  label[for="alle"],
  label[for="video"],
  label[for="art"] {
    margin: 1rem 0.5rem 0 0;
  }
}