 body {
        font-family: Inter;
        margin: 0;
        padding-top: 25px;
  
      }
    
 header {
     
        padding: 10px;
      }
      header img {
        height: 80px;
        width: auto;
        margin-left: 20px;
      }
      header img:hover {
        transform: scale(1.1);
        transition: transform 0.3s ease;
      }
      nav {
     
        padding: 10px;
        padding-top: 0%;
        text-align: right;
      }
      nav a {
  position: relative;
  margin-right: 26px;
  text-decoration: none;
  color: #545454;
  padding: 8px 16px;
  padding-bottom: 3px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;

  width: 57px;          
  height: 2px;
  background-color: #f3c8d1;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;

  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}
nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

      .topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}
      #eins {
        height: auto;
        padding-top: 10px;
      }
      h1 {
        font-weight: 600;
        font-size: 55pt;
        margin-left: 70px;
        letter-spacing: -2px;
        padding: 0%;
        color: #f3c8d1;
        margin-bottom: auto;
      }
      #zwei {
        width: 780px;
        margin-left: 70px;
        font-weight: 500;
        font-size: 18pt;
        line-height: 1.2;
        margin-top: -10px;
      }
#hello {
        height: auto;
        padding-top: 10px;
      }
      #hello h1 {
        font-weight: 600;
        font-size: 50pt;
        margin-left: 70px;
        letter-spacing: -2px;
        padding: 0%;
        color: #f3c8d1;
        margin-bottom: auto;
        text-transform: uppercase;
width: fit-content;

    transition:
    color 0.4s ease,
    letter-spacing 0.4s ease,
    font-weight 0.4s ease,
    background-color 0.4s ease;
      }
    #hello h1:hover{
      color: #ffffff;
      letter-spacing: 2.5px;
      font-weight: 900;
      cursor: pointer;
      background-color: #00028d;
    }

  .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 40px 70px 80px 70px;
  justify-content: center;
}

.project-card {
  text-decoration: none;
  color: inherit;
  padding-top: 20px;
  height: 500px;
  width: 100%;
  background-color: #d9a6b1;
  align-content: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(255, 255, 255);
}
.project-card .category,
.project-card .title {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.project-card:hover .category,
.project-card:hover .title {
  opacity: 1;
  transform: translateY(0);
}
.project-card .category {
  transition-delay: 0s;
}

.project-card .title {
  transition-delay: 0.08s;
}


.project-card h3 {
  font-size: 2rem;
  letter-spacing: -1px;
  margin: 0%;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.project-card:nth-child(1)::before {
  background-image: url("dere/final/Portfolio\ DeRe\ 01-213.png");
}

.project-card:nth-child(2)::before {
  background-image: url("Bildschirmfoto 2025-12-19 um 23.04.52.png");
}

.project-card:nth-child(3)::before {
  background-image: url("uniqlo.png");
}

.project-card:nth-child(4)::before {
  background-image: url("Bildschirmfoto 2025-12-19 um 22.57.49.png");
}

.project-card:nth-child(5)::before {
  background-image: url("katzenfilm.png");
}

.project-card:nth-child(6)::before {
  background-image: url("Portfolio\ CD.png");
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #00028d;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.project-card:hover::before {
  transform: scale(1.25);
}

.project-card:hover::after {
  opacity: 0.6;
}

.project-card:hover .category,
.project-card:hover .title {
  opacity: 1;
  transform: translateY(0);
}
.project-card .category,
.project-card .title {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(.2,.8,.2,1);
}


.about{
  display: flex;
  align-items: flex-start;
  padding: 30px 0px;
  padding-bottom: 0px;
}
.aboutbild {
  width: 30%;
}
.aboutbild img { 
  width: 90%; 
  height: auto;
  border: #000263 solid 0px; 
  border-left-width: 140px;
}

.cv {
  width: 70%;
  margin-left: 130px;
}
.cv-section {
margin-bottom: 55px;
}

.cv-section h2 {
font-size: 21pt;
margin-bottom: 5px;
text-transform: uppercase;
letter-spacing: -0.5px;
color: #ffffff;
background-color: #00028d;
width: fit-content;
margin-top: 0%;
font-weight: 500;
}

.cv-table {
width: 100%;
border-collapse: collapse;
}

.cv-row {
border-top: 1px solid var(--line);
}

.cv-row:last-child {
border-bottom: 1px solid var(--line);
}

.cv-table td {
padding: 9px 8px;
vertical-align: top;
}

.cv-time {
width: 10%;
color: var(--muted);
white-space: nowrap;
text-align: right;
}

.cv-content {
width: 90%;
}

.cv-content strong {
display: block;
font-weight: 400;
}

.cv-content span {
color:#a4a4a4;
font-size: 0.95rem;
}

.values{
display: flex;
gap: 30px;
padding: 20px 70px 30px 70px;
justify-content: center;
}
.values p{
  font-size: 21pt;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #f3c8d1;
  color: #ffffff;
  letter-spacing: 1pt;

  transition: 
    background-color 0.4s ease,
    letter-spacing 0.4s ease,
    font-weight 0.4s ease;
}
.values p:hover {
  background-color: #00028d;
  letter-spacing: 4pt;
  font-weight: 1000;
  cursor: pointer;
}

.aboutinfo{
  display: flex;
  gap: 35px;
  justify-content: center;
  margin: auto;
  margin-left: -450px;
}
.aboutinfo p{
  font-size: 14pt;
  width: 480px;
}
.aboutinfo h3{
  font-size: 21pt;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #ffffff;
  background-color: #00028d;
  width: fit-content;
}
.skills{
  margin-left: 150px;
}
.skills p{
  font-size: 14pt;
  width: auto;
  margin-left: 0px;
  line-height: 0.8;
}
.masonry {
  column-count: 3;
  column-gap: 20px;
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 20px;
  margin-top: 13px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  display: block;
}

.masonry-item:hover img {
  transform: scale(1.06);
  transition: transform 0.4s ease;
}
 .flex {
   display: flex;
margin: auto;
gap: 30px;
 }


.weiter {
  text-align: end;
  margin-top: 50px;
  margin-bottom: 80px;
}

.weiter a{
  text-decoration: none;
  color: #f3c8d1;
  font-size: 21pt;
  text-transform: uppercase;
  letter-spacing: -1px;
  font-weight: 600;
}

.weiter a:hover {
  background-color: #f3c8d1;
  color: #ffffff;
}

footer {
        text-align: end;
        padding: 60px;
        font-size: 14px;
        color: #ffffff;
        letter-spacing: -0.5px;
        margin-top: 100px;
        background-color: #f3c8d1;
        height: 200px;
        font-weight: 600;
      }

      footer a {
        color: #ffffff;
        text-decoration: none;
      }

      footer a:hover {
        text-decoration: underline;
      }
.contact {
  margin-top: 20px;
  margin-bottom: 80px;
  font-size: 21pt;
  margin-left: 70px;
}
.contact p{
  font-size: 21pt;
  margin-bottom: 8px;
}
.contact a{
  text-decoration: none;
  color: #ffffff;
  background-color: #f3c8d1;
font-weight: 500;
letter-spacing: 0px;

transition: 
    background-color 0.4s ease,
    letter-spacing 0.4s ease,
    font-weight 0.4s ease;
}

.contact a:hover {
  background-color: #00028d;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 2px;
}

 .video-thumb img{
  width: auto;
  display: block;
  height: auto;
  cursor: pointer;
  height: 650px;
 }     
      #video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#video-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.video-wrapper {
  width: 80%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#video-lightbox.active .video-wrapper {
  transform: scale(1);
  opacity: 1;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

.video-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 2;
}
.video-thumb {
  position: relative;
  display: inline-block;
}


.video-thumb img {
  display: block;
  transition: opacity 0.3s ease;
}


.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}


.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 22px solid #000;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.video-thumb:hover::after {
  opacity: 1;
}

.video-thumb:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#lightbox.active img {
  transform: scale(1);
  opacity: 1;
}
#lightbox .close,
#lightbox .arrow {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#lightbox .arrow,
#lightbox .close {
  z-index: 2;
  pointer-events: auto;
}
#lightbox.active .close,
#lightbox.active .arrow {
  opacity: 1;
}
#lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

#lightbox .left {
  left: 30px;
}

#lightbox .right {
  right: 30px;
}

#lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* =========================
   RESPONSIVE (Mobile/Tablet)
   ========================= */

/* Grundregel: nie breiter als der Screen */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Tablet & kleiner */
@media (max-width: 1024px) {
  h1 {
    font-size: clamp(34px, 6vw, 52px);
    margin-left: 40px;
    letter-spacing: -1px;
  }
nav a {
    margin-right: 12px;
    padding: 6px 10px;
    display: inline-block;
    font-weight: 500;
    background-color: rgb(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 4px;
  }
  #zwei {
    width: auto;              /* statt fix 880px */
    margin-left: 40px;
    margin-right: 40px;
    font-size: 18pt;
    margin-top: -25px;
  }
  #hello h1 {
    font-size: clamp(34px, 6vw, 52px);
    margin-left: 40px;
    letter-spacing: -1px;
  }
.flex {
    flex-direction: column;
    gap: 18px;
    margin: 0;
  }

  .video-thumb img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
  }

  .video-thumb {
  padding: 0 10px;
  box-sizing: border-box;
}

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 50px 40px;
  }

  .project-card {
    height: 380px;
  }

  .masonry {
    column-count: 2;          /* statt 3 */
    padding: 0 40px;
  }

  .cv {
    margin-left: 40px;
    width: auto;
  }

  .values {
    flex-wrap: wrap;
    padding: 0 40px 60px 40px;
    gap: 16px;
  }

  .video-wrapper {
    width: 90%;
  }
 .weiter {
    margin: 20px 16px 0px 16px;
  }

  .weiter a {
    font-size: 21pt;
  }
  footer {
    padding: 40px;
    height: auto;
  }
  .about {
    flex-direction: column;
    gap: 13px;
    padding: 20px 16px 0 16px;
  }

  .aboutbild {
    width: 100%;
    height: auto;
  }

  .aboutbild img {
    border-left-width: 0; /* großer linker Rand killt Mobile */
  }

  .cv {
    width: 100%;
    margin-left: 0;
  }

  .cv-time {
    width: auto;
    text-align: left;
  }
.values {
    padding: 0 0 40px 16px;
    gap: 10px;
    width: 700px;
    justify-content: center;
    margin: auto;
  }

  .values p {
    font-size: 13pt;
    padding: 6px 10px;
    margin-bottom: -12px;
  }

  .aboutinfo {
    text-align: left;
    margin-left: -50px;
  }
  .aboutinfo{
    margin-left: 0;           /* kein negatives Schieben */
    padding: 0 40px;
    gap: 28px;
  }

  .aboutinfo p{
    width: auto;              /* statt 480px */
    max-width: 620px;
  }

  .skills{
    margin-left: 0;           /* statt 150px */
  }
  .contact {
    margin-bottom: 60px;
    font-size: 18pt;
  }

  .contact p {
    font-size: 18pt;
    margin-right: 40px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    padding-top: 12px;
  }

  /* Topbar: Logo + Nav sauber untereinander */
  .topbar {
    position: sticky;
    top: 0;
  }

  header img {
    height: 50px;
    margin-left: 16px;
  }

  nav {
    text-align: right;
    padding: -20px 16px 0 16px;
  }

  nav a {
    margin-right: 12px;
    padding: 6px 10px;
    display: inline-block;
    font-weight: 500;
    background-color: rgb(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 4px;
  }

  nav a::after {
    width: 44px;
  }

  h1 {
    font-size: clamp(28px, 9vw, 44px);
    margin-left: 16px;
    margin-right: 16px;
  }
 #hello h1 {
    font-size: clamp(28px, 9vw, 44px);
    margin-left: 16px;
    margin-right: 16px;
  }
  #zwei {
    width: auto;              /* statt fix */
    margin: -10px 16px 0 16px;
    font-size: 14.5pt;
    line-height: 1.25;
  }

  /* Alles, was du als .flex nutzt: auf 1 Spalte */
  .flex {
    flex-direction: column;
    gap: 18px;
    margin: 0;
  }

  /* Inline-Styles (width: 300px) aus HTML abfedern */
  .flex > p,
  .flex p[style] {
    width: auto !important;
    margin-left: 16px !important;
    margin-right: 50px !important;
  }

  /* Projekte: 1 Spalte */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 16px;
  }

  .project-card {
    height: 320px;
  }

  /* Masonry: 1 Spalte für bessere Lesbarkeit */
  .masonry {
    column-count: 1;
    column-gap: 0;
    padding: 0 16px;
  }

  /* About-Seite: Bild + CV untereinander */
  .about {
    flex-direction: column;
    gap: 13px;
    padding: 20px 16px 0 16px;
  }

  .aboutbild {
    width: 100%;
    height: auto;
  }

  .aboutbild img {
    border-left-width: 0; /* großer linker Rand killt Mobile */
  }

  .cv {
    width: 100%;
    margin-left: 0;
  }

  .cv-time {
    width: auto;
    text-align: left;
  }

  /* Values: wrap + kleinere Typo */
  .values {
    padding: 0 0 40px 16px;
    gap: 10px;
    margin: auto;
    justify-content: center;
    width: auto;
  }

  .values p {
    font-size: 13pt;
    padding: 6px 10px;
    margin-bottom: -12px;
  }

  .aboutinfo {
    text-align: left;
    margin-left: -50px;
  }

  /* Weiter-Links: nicht abgeschnitten */
  .weiter {
    margin: 20px 16px 0px 16px;
  }

  .weiter a {
    font-size: 14pt;
  }

  /* Lightbox arrows/close etwas näher */
  #lightbox .left { left: 12px; }
  #lightbox .right { right: 12px; }
  #lightbox .close { top: 16px; right: 16px; }

  /* Video Thumb: volle Breite */
  .video-thumb img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
  }

  .video-thumb {
  padding: 0 10px;
  box-sizing: border-box;
}

  footer {
    padding: 28px 16px;
    margin-top: 60px;
  }
  .aboutinfo{
    flex-direction: column;   /* untereinander statt nebeneinander */
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;

    margin: 0;
    margin-left: 0;           /* wichtig: raus aus dem Offscreen */
    padding: 0 16px;
  }

  .aboutinfo p{
    width: auto;
    max-width: 100%;
    font-size: 13.5pt;
    line-height: 1.35;        /* besser lesbar */
  }

  .skills{
    margin-left: 0;
  }

  .skills p{
    font-size: 13.5pt;
    line-height: 1;         /* 0.8 ist zu eng auf Mobile */
  }

  .aboutinfo h3{
    font-size: 16pt;
    margin-top: 10px;
    letter-spacing: -0.3px;   /* Achtung: bei dir war -0,5px (Komma) */
  }
  .contact {
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: 14.5pt;
    margin-left: 20px;        /* sorgt für Abstand zum Rand */
  }

  .contact p {
    font-size: 14.5pt;
    margin-left: 0;           /* kein hartes Offset */
    margin-right: 0;
    line-height: 1.3;
    text-align: center;
  }

  /* Links besser „tappbar“ machen */
  .contact a {
    display: inline-block;
    padding: 4px 8px;
  }

  /* Hover gibt’s auf Touch kaum – optional: weniger „Sprung“ */
  .contact a:hover {
    letter-spacing: 1px;
  }
}
