/* =========================================================
   TYPOGRAFIE-SYSTEM & BASISGRÖSSEN
   =========================================================
   Hauptschrift: ABC Diatype
   Gewichte: 400 (Regular), 500 (Medium), 700 (Bold)

   Hauptgrößen:
   - Standardtext: 1.5rem / 1.8rem line-height
   - Tabellenzellen: 1.5rem
   - Projektnamen: 3rem
   - Headline Hero: clamp(9rem, 20vw, 30rem)
   - About-Text: 2rem / 2.4rem line-height
   ========================================================= */
@font-face {
  font-family: 'ABC-Diatype';
  src: url("../fonts/ABCDiatype-Regular.woff2") format("woff2"),
       url("../fonts/ABCDiatype-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABC-Diatype';
  src: url("../fonts/ABCDiatype-Medium.woff2") format("woff2"),
       url("../fonts/ABCDiatype-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABC-Diatype';
  src: url("../fonts/ABCDiatype-Bold.woff2") format("woff2"),
       url("../fonts/ABCDiatype-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   GLOBAL STYLES
   ========================================================= */
/* html { overflow-x: hidden; } */
html { 
  font-size: 16px; 
}

#projects-start {
  scroll-margin-top: 10px; /* oder 2vh */
}

/* ✅ Safari Jump-Fix: verhindert Scrollsprung bei Start */
html.loading {
  scroll-snap-type: none !important;
  overflow-y: hidden !important;
}
.projects.come-in {
  transform: none !important;
}

html:has(.projects) {
  /* overflow: auto; */
  scroll-snap-type: y mandatory;
}

body {
  overflow: scroll;
}

.project {
  scroll-snap-stop: always;
  scroll-snap-align: center;
}

body {
  margin: 0;
  font-family: 'ABC-Diatype', sans-serif;
  background: #EEFF00; /* Deaktivierter Verlauf siehe Kommentar */
}

/* Optionales Gradient-Background (auskommentiert)
body {
  background: linear-gradient(
    to bottom,
    #C5C5C5 0%,
    #C5C5C5 250vh,
    #FFFFFF 300vh,
    #FFFFFF 400vh,
    #EEFF00 100%
  );
}
*/

body::after {
  content: "";
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
}

p {
  font-size: 1.5rem;
  line-height: 1.8rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

body.project-page #typoBackground { display: none; }

/* =========================================================
   STARTPAGE (Intro)
   ========================================================= */
#startpage {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center; align-items: center;
  text-align: center;
  background: linear-gradient(#C5C5C5, #FFFFFF, #EEFF00);
  transition: transform 1s ease;
}
#startpage.go-away { transform: translateY(-100%); }

/* Projektseiten fixierter Hintergrund */
html body.project-page {
  background: linear-gradient(
    to bottom,
    #C5C5C5 0%,
    #C5C5C5 85%,
    #FFFFFF 95%,
    #EEFF00 100%
  ) !important;
  background-attachment: fixed;
}

/* =========================================================
   HERO (Landing Headline)
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* immer vertikal zentriert */
  align-items: center;       /* horizontal zentriert */
  text-align: center;
  overflow: hidden;
}

/* Headline */
.hero h1 {
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  padding: 0 1rem;
  transform: translateY(30px);
  font-size: clamp(9rem, 20vw, 30rem);
}

/* Mobile: Headline etwas höher, damit sie nicht abgeschnitten wirkt */
@media (max-width: 480px) {
  .hero {
    justify-content: flex-start;
    padding-top: 50vh;
  }
}

/* iPad Hochformat */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .hero {
    justify-content: flex-start !important;
    padding-top: 55vh !important;   /* 👈 leicht höher wie auf Mobile */
  }
}

/* iPad Querformat */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
  .hero {
    justify-content: flex-start !important;
    padding-top: 35vh !important;   /* 👈 etwas tiefer, damit’s ausbalanciert wirkt */
  }
}

/* =========================================================
   BIRD / CURSOR DECORATION
   ========================================================= */
.bird-wrapper { position: absolute; right: 5%; top: 20%; z-index: 2; }
.bird { max-width: 400px; height: auto; }

/* Custom Cursor */
#cursor-tukan {
  position: fixed;
  width: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}
@media (hover: none) and (pointer: coarse) {
  #cursor-tukan { display: none; }
}

/* =========================================================
   TYPOGRAPHIC BACKGROUND (fixed behind content)
   ========================================================= */
#typoBackground {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: -1;
  display: flex; justify-content: center; align-items: center;
  overflow: hidden;
  pointer-events: none;

  /* ⚡ Performance-Verbesserungen */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateY(100vh);
  transition: transform 1s ease; /* bleibt gleich */
}

#typoBackground.come-in {
  transform: translateY(0);
}

#typoBackground img {
  position: absolute;
  max-height: 118vh;
  width: auto;
  opacity: 0;
  transition: opacity 0.4s ease-out; /* smooth fade statt „none“ */
  will-change: opacity;
}

#typoBackground img.active {
  opacity: 1;
}

/* Desktop/Mobile wie vorher */
#typoBackground img.desktop { display: block; }
#typoBackground img.mobile  { display: none; }

@media (max-width: 768px) {
  #typoBackground img.desktop { display: none; }
  #typoBackground img.mobile  { 
    display: block;

    /* ✅ Bild füllt gesamte Bildschirmbreite */
    width: 100vw;
    height: auto;
    max-width: none;
    transform: translateY(-35%); /* leicht nach unten für bessere Balance */
  }

  /* ⚡ Mobile nur schneller reagieren */
  #typoBackground {
    transition: transform 0.6s ease; /* etwas kürzer für snappier feel */
  }
}

/* iPad Hochformat */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  #typoBackground img.desktop { display: none; }
  #typoBackground img.mobile  { 
    display: block;

    /* ✅ gleiche Anpassung auch hier */
    width: 100vw;
    height: auto;
    max-width: none;
    transform: translateY(-10%);
  }
}

/* iPad Querformat */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
  #typoBackground img.desktop {
    display: block;
    width: 100vw !important;
    height: auto !important;
    max-width: none !important;
    transform: translateY(-12%) !important; /* leicht nach oben für Balance */
    object-fit: contain !important;         /* 🔥 verhindert Beschnitt */
  }

  #typoBackground img.mobile {
    display: none !important;
  }

  #typoBackground {
    transition: transform 0.8s ease;
  }
}

/* =========================================================
   PROJECTS (Main Gallery)
   ========================================================= */
.projects {
  position: relative;
  z-index: 10;
  transform: translateY(100vh);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1.2);
  max-height: 0;
  overflow: hidden;
}

.projects.come-in {
  transform: translateY(0);
  max-height: inherit;
  overflow: visible;
}

/* Animationstempo je Projekt */
.project:nth-child(odd)  { transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.project:nth-child(even) { transition: transform 1.3s ease-out; }

.project {
  display: flex;
  justify-content: center; align-items: center;
  min-height: 70vh;
  padding: 40px 0;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .project { padding: 0; margin-bottom: 0 !important; }
}

.project a { display: inline-block; }
.project img {
  max-height: 55vh;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Kleine Tilt-Animationen */
@keyframes tilt-left  { 0%,100%{transform:rotate(0)scale(1.03);} 50%{transform:rotate(-4deg)scale(1.03);} }
@keyframes tilt-right { 0%,100%{transform:rotate(0)scale(1.03);} 50%{transform:rotate(4deg)scale(1.03);} }

.project a.tilt-left img  { animation: tilt-left .6s ease forwards; }
.project a.tilt-right img { animation: tilt-right .6s ease forwards; }

/* Bildpositionierung */
.project.left img  { transform: translateX(-122%); }
.project.right img { transform: translateX(122%); }
.project.center img{ transform: translateX(0); }

/* Abstände / Spezialprojekte */
.project-1, .project-2, .project-3, .project-4, .project-5, .project-6 { margin-bottom: 200px; }
.project:first-of-type { min-height: 100vh; margin-top: 10vh; padding: 0; }
.project-7 { margin-bottom: 0; min-height: 80vh; position: relative; }
.project-2 img { max-height: 75vh; }
.project-3 img { max-height: 80vh; }
.project-4 img { max-height: 60vh; }
.project-5 img { max-height: 70vh; }
.project-6 img { position: sticky; top: 50%; transform: translateY(-50%); display: block; margin: 0 auto;}

/* Responsives Scaling */
@media (max-width: 1024px) {
  .project img { max-height: 40vh; }
  .project-2 img { max-height: 60vh; }
  .project-3 img { max-height: 60vh; }
  .project-4 img { max-height: 50vh; }
  .project-5 img { max-height: 50vh; }
}
@media (max-width: 768px) {
  .project img { max-height: 30vh; }
  .project-2 img { max-height: 50vh; }
  .project-3 img { max-height: 50vh; }
  .project-4 img { max-height: 50vh; }
  .project-5 img { max-height: 50vh; }
  .project-5 img { max-height: 50vh; }

  .project {
    margin-bottom: 135px;  /* vorher 80px → mehr vertikaler Raum */
    padding: 60px 0;       /* etwas mehr „Luft“ oben/unten im Block */
  }
  
  /* Tilt & Translate deaktivieren */
  .project a.tilt-left img,
  .project a.tilt-right img {
    animation: none !important;
    transform: none !important;
  }

  .projects {
    transform: none !important;
    transition: none !important;

    /* Wenn Container transformiert ist */
  .projects,
  .project {
    transform: none !important;
    overflow: visible !important;
  }
  }

  /* Safari-Fix gegen abgeschnittene Bilder */
  .project img {
    transform: none !important;
    backface-visibility: hidden;
    -webkit-transform: none !important;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    overflow: visible !important;
    clip-path: none !important;
  }
}

/* Bildpositionierung */
.project.left img  { transform: translateX(-122%); }
.project.right img { transform: translateX(122%); }
.project.center img{ transform: translateX(0); }

/* --------------------------------------------- */
/* INDIVIDUELLE POSITIONEN PRO PROJEKT */
/* --------------------------------------------- */

/* Projekt 1 – Vollgas (zentriert) */
.project-1 {
  justify-content: center;
}

/* Projekt 2 – Nr.10 (links, etwas eingerückt) */
.project-2 {
  justify-content: flex-start;
  padding-left: 20vw;
}

/* Projekt 3 – Rumpump (rechts, etwas eingerückt) */
.project-3 {
  justify-content: flex-end;
  padding-right: 10vw;
}

/* Projekt 4 – Oben (links, weiter innen) */
.project-4 {
  justify-content: center;
}

/* Projekt 5 – Sirup (rechts) */
.project-5 {
  justify-content: flex-end;
  padding-right: 35vw;
}

/* Projekt 6 – Covers (zentriert) */
.project-6 {
  justify-content: center;
}

/* --------------------------------------------- */
/* Responsive: auf Mobile immer zentriert */
/* --------------------------------------------- */
@media (max-width: 1024px) {
  .project {
    justify-content: center !important;
    padding: 60px 0;
    margin-bottom: 135px;
  }
}

/* =========================================================
   FIX: Erstes Projekt soll fix & zentriert starten
   ========================================================= */
.projects.come-in .project:first-child {
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* =========================================================
   STICKERS (Navigation)
   ========================================================= */
.sticker {
  position: fixed;
  z-index: 200;
  color: #000;
  background: #EEFF00;
  font-weight: 500;
  font-size: 2rem;
  padding: .1rem .8rem .4rem;
  border-radius: 999px;
  outline: 1px solid black;
  text-decoration: none;
  cursor: pointer;
}
.index { top: 2%; left: 1%; transform: rotate(-10deg); }
.about { top: 3%; left: 50%; transform: translateX(-52%) rotate(20deg); }
.home  { top: 2%; right: 1%; transform: rotate(-10deg); }
/* .sticker:hover { animation: wiggle .4s ease-in-out infinite; } */

/* =========================================================
   Pfeil-Sticker (bounce) – perfekt zentriert auf ALLEN Geräten
   ========================================================= */
.sticker.arrow {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translate(-50%, 0); /* ✅ bleibt zentriert */
  font-size: 2rem;
  text-align: center;
  border: 0.5px solid currentColor;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  animation-composition: add;
  animation: bounce-smooth-tight 3s ease-in-out infinite; /* was 6s */
}

/* same jump shapes, active window doubled to 60% */
@keyframes bounce-smooth-tight {
  0%, 20%, 70%, 100% { transform: translate(0, 0); }
  30% { transform: translate(0, -15px); } /* 1st jump */
  40% { transform: translate(0, 0); }
  50% { transform: translate(0, -7px); }  /* 2nd jump */
}
/* ✅ Damit der transform vom Keyframe + Hauptstil kombiniert wird */
.sticker.arrow {
  animation-composition: add; /* moderne Browser unterstützen das */
}

/* ===== MOBILE (iPhone etc.) ===== */
@media (max-width: 768px) {
  .sticker.arrow {
    font-size: 1.5rem;
    padding: 0.5rem 0rem 0.75rem;
    margin-bottom: 0rem;
  }

  /* Dynamischer Text – immer zentriert, aber mit sanftem Übergang */
.sticker.arrow span {
  display: inline-block;
  text-align: center;
  transition: all 0.25s ease;
  will-change: opacity, transform, width;
  backface-visibility: hidden;
  padding: 0 1.6rem; /* Standard-Seitenabstand */
}

/* Dynamisches Padding je nach Wortlänge */
.sticker.arrow span:has(:not(:empty)) {
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}
}

/* Text im Sticker separat animieren */
.sticker.arrow span {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive Positionierungen */
@media (max-width: 1000px) {
  .index { top: 3%; left: 6vw; }
  .home  { top: 3%; right: 6vw; }
  .about { top: 4%; }
}
@media (max-width: 600px) {
  .index { top: 2.5%; left: 3vw; transform: rotate(-8deg); }
  .about { top: 3.5%; left: 50%; transform: translateX(-50%) rotate(15deg); }
  .home  { top: 2.5%; right: 3vw; transform: rotate(-8deg); }
}

/* Close-Sticker (Overlay) */
.sticker.closebutton {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  display: inline-block;
  font-size: 2rem;
  background: #EEFF00;
  color: #000;
  outline: 1px solid black;
  border-radius: 999px;
  font-weight: 500;
  padding: .1rem .8rem .4rem;
  z-index: 50;
}
@media (max-width: 480px)  { .sticker.closebutton { font-size: 1.2rem; bottom: -25px; } }
@media (max-width: 768px)  { .sticker.closebutton { font-size: 1.4rem; bottom: -30px; } }
@media (min-width: 1024px) { .sticker.closebutton { font-size: 2rem; bottom: -45px; transform: translateX(-50%) rotate(-10deg); } }

/* =========================================================
   STACK SECTION (Performance-optimiert)
   ========================================================= */
.stack-section {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  padding: 0 0 60px;
  margin-bottom: 40px;
}

/* === Standardbilder === */
.stack-section .stack-img {
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: cover; /* besser für GPU als contain */
  backface-visibility: hidden;
  margin: 0 auto 40px auto; /* nur unten Abstand */
}

/* === Formate === */
.stack-section .stack-img.portrait {
  max-width: 65vw;
  max-height: 90vh;
}

.stack-section .stack-img.landscape {
  max-width: 90vw;
  max-height: 80vh;
}

.stack-section .stack-img.square {
  max-width: 75vw;
  max-height: 80vh;
}

/* === Größenoptionen (optional) === */
.stack-section .stack-img.sm { max-height: 60vh; }
.stack-section .stack-img.md { max-height: 80vh; }
.stack-section .stack-img.lg { max-height: 90vh; }
.stack-section .stack-img.xl { max-height: 100vh; }

/* === Letztes Bild (nur Desktop sticky!) === */
@media (min-width: 1025px) {
  .stack-section .stack-img.last {
    position: static;     /* sticky deaktivieren */
    margin-bottom: -10px; /* Abstand nach unten verkleinern */
  }
}

/* =========================================================
   RESPONSIVE (Tablet + Mobile – randlos & performanceoptimiert)
   ========================================================= */
@media (max-width: 1024px) {
  .stack-section {
    gap: 0;                    /* kein Abstand zwischen Bildern */
    padding: 0;                /* kein Innenabstand */
    margin: 0;                 /* kein Außenabstand */
  }

  /* ✅ Alle Bilder gleich behandeln – volle Breite */
  .stack-section .stack-img {
    display: block;
    width: 100vw !important;   /* füllt gesamte Bildschirmbreite */
    max-width: 100vw !important;
    height: auto !important;   /* Höhe passt sich an */
    max-height: none !important;
    margin: 0 0 40px 0 !important; /* nur unten Abstand */
    object-fit: contain !important; /* kein Beschnitt */
    border-radius: 0 !important;
    left: 0;
    right: 0;
  }

  /* ✅ Sticky deaktivieren auf Mobile & iPad */
  .stack-section .stack-img.last {
    position: static !important;
  }
}

/* =========================================================
   MOBILE – Alle Bilder füllen die gesamte Breite (no margin)
   ========================================================= */
@media (max-width: 1024px) {
  .stack-section {
    gap: 0;                /* kein Abstand zwischen Bildern */
    padding: 0;
    margin: 0;
    width: 100vw;
  }

  ✅ Alle Bilder gleich behandeln
  .stack-section .stack-img {
    display: block;
    width: 100vw !important;   /* füllt gesamte Bildschirmbreite */
    max-width: 100vw !important;
    height: auto !important;   /* Höhe passt sich an */
    margin: 0 0 40px 0 !important;  /* nur unten Abstand */
    object-fit: contain;       /* keine Beschnitte */
    border-radius: 0;
    left: 0;
    right: 0;
  }

  /* ✅ Erste Bildreihe ohne oberen Abstand */
  .stack-section img:first-of-type {
    margin-top: 0 !important;
  }

  /* ✅ Sticky-Funktion komplett deaktivieren */
  .stack-section .stack-img.last {
    position: static !important;
    margin-bottom: 80px !important;
  }

  /* ✅ Alle Varianten gleich: kein Sonderverhalten */
  .stack-section .stack-img.portrait,
  .stack-section .stack-img.landscape,
  .stack-section .stack-img.square {
    max-width: 100vw !important;
    width: 100vw !important;
    height: auto !important;
    margin: 0 0 25px 0 !important;
  }
}

/* =========================================================
   PROJECT INFO + FACTS + FOOTER
   ========================================================= */
/* ========================= */
/*      Project Info         */
/* ========================= */
/* ===== Base (>=1024px bleibt unverändert) ===== */
.project-info {
  font-size: 1.75rem;
  line-height: 2.05rem;
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 4px 30px;
  margin: 10px auto 0px auto;
  text-align: left;
  justify-content: center;
  max-width: fit-content;
  margin-bottom: 0px;
}
.project-info .row { display: contents; }
.project-info span:first-child { font-weight: bold; text-transform: uppercase; }

.text-section {
  max-width: 900px;
  margin: 23px auto 70px;
  text-align: left;
}
.text-section p {
  font-size: 1.75rem;
  line-height: 2.05rem;
  max-width: 1250px;
}

/* ===== Desktop ↓ (<=1024px) ===== */
@media (max-width: 1024px) {
  .project-info {
    font-size: 1.75rem;   /* <- anpassen */
    gap: 4px 30px;        /* <- anpassen */
    margin: 70px auto 0;  /* <- anpassen */
    margin-bottom: 30px;  /* <- anpassen */
  }

  .text-section {
    max-width: 900px;     /* <- anpassen */
    margin: 40px auto 100px; /* <- anpassen */
  }
  .text-section p {
    font-size: 1.75rem;   /* <- anpassen */
    line-height: 2.05rem; /* <- anpassen */
  }
}

/* ===== Tablet ↓ (<=768px) ===== */
@media (max-width: 768px) {
  .project-info {
    /* optional: auf 1 Spalte wechseln
       grid-template-columns: 1fr; */
    font-size: 1.5rem;    /* <- anpassen */
    gap: 6px 20px;        /* <- anpassen */
    margin: 50px auto 20px; /* <- anpassen */
  }

  .text-section {
    max-width: 90%;       /* <- anpassen (oder px) */
    margin: 30px auto 80px; /* <- anpassen */
  }
  .text-section p {
    font-size: 1.5rem;    /* <- anpassen */
    line-height: 1.9rem;  /* <- anpassen */
  }
}

/* ===== Mobile ↓ (<=480px) ===== */
@media (max-width: 480px) {
  .project-info {
    /* grid-template-columns: 1fr;  // falls einspaltig gewünscht */
    font-size: 1.5rem;    /* <- anpassen */
    gap: 6px 16px;        /* <- anpassen */
    margin: 120px auto 0px; /* <- anpassen */
    line-height: 1.7rem;
  }

  .text-section {
    max-width: 100%;       /* <- anpassen */
    margin: 5px auto 0px; /* <- anpassen */
    /* background: red; */
  }
  .text-section p {
    font-size: 1.5rem;    /* <- anpassen */
    line-height: 1.7rem;  /* <- anpassen */
      /* 👇 füge das hinzu */
    margin: 10px;
    padding: 5px 10px 0px 10px;
  }
}

/* .facts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 2rem;
  max-width: 800px;
  margin: 100px auto;
  padding: 0 40px;
  text-align: center;
} */

/* Footer */
.footer-bar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-top: 50px;
}

/* Standard: alles links */
.footer-bar.left {
  justify-content: flex-start;
}

/* Für Next-Button: alles rechts */
.footer-bar.right {
  justify-content: flex-end;
}

.footer-button {
  /* background: black; color: white; */
  color: black;
  font-weight: bold; 
  font-size: 2rem;
  padding: 5px 15px;
  text-decoration: none;
}

/* ===== Tablet ↓ (<=768px) ===== */
@media (max-width: 768px) {
  .footer-bar {
    margin-top: 30px; /* kleinerer Abstand zum Text */
  }
}

/* ===== Mobile ↓ (<=480px) ===== */
@media (max-width: 480px) {
  .footer-bar {
    margin-top: 0px; /* Footer rückt näher ran */
  }
}

/* =========================================================
   INDEX OVERLAY (Project Table)
   ========================================================= */
#index {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100%;
  z-index: 200;
  display: none;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}
#index.active { display: block; }

.index-wrapper {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 15px 15px 0;
  box-sizing: border-box;
}

/* Table Layout */
.project-table {
  display: flex; flex-direction: column;
  width: 100%;
  row-gap: 6px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  column-gap: 6px;
  align-items: start;
}
.cell {
  background: #e0e0e0;
  border: 1px solid black;
}
.cell-left, .cell-right {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 400;
  padding: 3px 8px;
}
.cell-left  { text-align: left; }
.cell-right { text-align: right; }
.cell-project {
  font-size: 3rem;
  font-weight: 500;
  text-align: center;
  padding: 3.5px 50px 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: black;
  text-decoration: none;
}
.row:hover .cell {
  background: white;
  transition: background .2s;
}

/* Responsive Table */
@media (max-width: 1024px) {
  .row { grid-template-columns: 1fr; }
  .cell-left, .cell-right { display: none !important; }
  .cell-project { font-size: 2rem; padding: 6px 8px; text-align: center; }
  .project-table { row-gap: 5px; }
}
@media (min-width: 1024px) {
  .cell-left, .cell-right { opacity: 0; transition: none; }
  .row:hover .cell-left, .row:hover .cell-right {
    opacity: 1; transition: opacity .1s ease-in;
  }
}

/* Mobile Feinschliff */
@media (max-width: 480px) {
  .cell-project { font-size: 2rem; }
}

/* =========================================================
   ABOUT OVERLAY
   ========================================================= */
#about {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 200;
  display: none;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}
#about.active { display: block; }

.about-wrapper {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px 0 0;
  box-sizing: border-box;
}

.about-content {
  background: #e0e0e0;
  font-size: 2rem;
  line-height: 2.4rem;
  /* font-size: 1.75rem; */
  /* line-height: 2.05rem; */
  font-weight: 400;
  color: black;
  text-align: left;
  padding: .4rem .8rem .8rem;
  margin-top: 15px;
  margin-left: 15px;
  outline: 1px solid black;
}
.about-content p {
  all: unset;
  display: block;
  margin-bottom: 1.2rem;
}
.about-content p:last-of-type { margin-bottom: 0; }

.contact { text-align: left; }
.contact .email {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive About */
@media (max-width: 768px) {
  .about-content {
    font-size: 1.6rem;
    line-height: 1.8rem;
    max-width: 90%;
    padding: .8rem 1rem;
  }
}

/* =========================================================
   PLAYER BAR / EXTRAS
   ========================================================= */
/* .sticker.biciletta {
  top: 180px;
  left: 55%;
  transform: rotate(-10deg);
  z-index: 15;
  font-size: 1rem;
}

.player-bar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: black;
  padding: 15px 0;
  display: none;
}
.player-bar button {
  background: black;
  color: yellow;
  border: none;
  border-radius: 20px;
  padding: 5px 15px;
  font-weight: bold;
  margin-left: 10px;
  cursor: pointer;
  transition: .3s;
}
.player-bar button:hover { background: yellow; color: black; } */

/* =========================================================
   LINKS / EMAIL
   ========================================================= */
.link.email { color: black; text-decoration: none; }
.link.email:hover { text-decoration: underline; }
