html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
  background: #000;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* WebKit */
}

body {
  font-family: Arial, sans-serif;
}

/* Persistent Dropdown Navigation - Import from index.html */
.persistent-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
  pointer-events: none;
}

.persistent-nav .dropdown {
  pointer-events: auto;
}

.dropdown {
  text-align: center;
  width: 300px;           /* Startet im geöffneten Zustand */
  margin-top: 0;
  position: relative;
  padding: 0;             /* Startet ohne Padding */
  transition: padding 0.4s ease-in-out, width 0.4s ease-in-out;
}

/* Dropdown Overlay */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(247, 247, 247, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.dropdown-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Geschlossen: schmaler */
.dropdown.closed {
  width: 200px;       /* geschlossen: 30px schmaler */
  padding: 0 15px;    /* geschlossen: Padding hinzufügen */
}

.dropdown-btn {
  display: block;
  width: 100%;
  padding: 6px 5px 5px 5px;
  background: #F7F7F7;
  color: #000;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'NewEdge666-Light', Arial, sans-serif;
  border: none;
  position: relative;
  z-index: 2;
  border-radius: 6px;
  transition: border-radius 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

@keyframes blink-text {
  0%, 100% { color: #000; }
  50%      { color: #a6a6a6; }
}

.dropdown-btn:hover {
  animation: blink-text 0.3s ease-in-out infinite;
  border-radius: 16px;
}

/* Schwarzer Schatten mit Blur ohne Versatz */
.dropdown-btn {
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.dropdown-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease-in-out;
  height: auto;
  margin-top: -14px;
  position: relative;
  z-index: 1;
}

.dropdown-content.open {
  overflow: auto;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 40px), rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 40px), rgba(0,0,0,0) 100%);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dropdown-content.open::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.dropdown-content.open .dropdown-inner {
  min-height: 80vh;
  padding-bottom: 40px;
}

.dropdown-inner {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(10px + 14px);
  background: linear-gradient(
    to bottom,
    rgb(165, 165, 165) 0%,
    rgb(53, 53, 53) 30%,
    rgb(53, 53, 53) 50%,
    rgba(217,217,217,0.0) 100%
  );
  box-sizing: border-box;
}

.social-buttons {
  display: flex;
  gap: 0;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

.social-btn {
  flex: 1;
  padding: 9.5px 10px 9px 10px;
  background: #F7F7F7;
  color: #000;
  font-size: 0.9rem;
  font-family: 'NewEdge666-UltraLightRounded', Arial, sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  border-radius: 6px;
  box-shadow: 0 -4px 6px -8px rgba(255,255,255,0.6),
              0  4px 6px -8px rgba(255,255,255,0.6);
  transition: border-radius 0.5s ease;
}

.social-btn:hover,
.archive-btn:hover {
  animation: blink-text 0.3s ease-in-out infinite;
  border-radius: 16px;
}

.works-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9.5px 10px 9px 10px;
  background: #F7F7F7;
  font-size: 0.875rem;
  font-family: 'NewEdge666-Light', Arial, sans-serif;
  font-weight: bold;
  color: #000;
  box-sizing: border-box;
  margin: 0;
  box-shadow: 0 -4px 12px rgba(255,255,255,1);
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.preview {
  width: 100%;
  min-height: 300px;
  background: #fff;
  position: relative;
  z-index: 1;
  margin-top: -6px;
  border: none;
  box-sizing: border-box;
  overflow: hidden;
}

.preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.preview img.active {
  opacity: 1;
  z-index: 1;
}

.preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(35,35,35,0.25) 0px,
    rgba(35,35,35,0) 20px,
    rgba(35,35,35,0) calc(100% - 20px),
    rgba(35,35,35,0.25) 100%
  );
  z-index: 2;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: -20px;
}

.project-btn {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  width: 100%;
  padding: 11px 10px 7.5px 10px;
  background: #F7F7F7;
  color: #000;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: 'NewEdge666-Light', Arial, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-radius 0.5s ease;
  border: none;
  box-sizing: border-box;
  z-index: 1;
  border-radius: 6px;
  box-shadow: none;
  text-align: center;
}

.project-btn:first-child {
  box-shadow: 0 -8px 8px rgba(255,255,255,0.6);
}

.project-btn:last-child {
  box-shadow: 0 4px 6px -2px rgba(255,255,255,0.6);
}

.project-btn:hover {
  background: #000;
  color: #fff;
  border-radius: 16px;
  animation: none; /* Kein Blinken für den Button */
}

.project-btn:hover .number {
  color: #fff;
}

.project-btn.active {
  background: #000;
  color: #fff;
  border-radius: 16px;
}

.project-btn.active .number {
  color: #fff;
}

.project-btn .number {
  position: absolute;
  left: 15px;
  bottom: 7.9px;
  font-size: 0.875rem;
  font-family: 'NewEdge666-UltraLightRounded', Arial, sans-serif;
  color: #000;
  line-height: 1;
}

.archive-btn {
  display: block;
  width: 100%;
  padding: 9.5px 10px 9px 10px;
  background: #F7F7F7;
  color: #000;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  text-decoration: none;
  border: none;
  text-align: center;
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 0px;
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
  transition: border-radius 0.5s ease;
}

/* Home Button - identisches Styling wie Archive, aber halbe Breite */
.home-btn {
  display: block;
  width: 50%;
  padding: 9.5px 10px 9px 10px;
  background: #F7F7F7;
  color: #000;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  text-decoration: none;
  border: none;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 60px;
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
  transition: border-radius 0.5s ease;
}

.home-btn:hover {
  animation: blink-text 0.3s ease-in-out infinite;
  border-radius: 16px;
}

/* oberer Balken (immer sticky) */
.top-bar {
  height: 3.125rem; /* 50px */
  width: 100%;
  background-color: #F7F7F7;
  position: fixed;
  top: 0;
  z-index: 20;
  box-shadow: 0 0.25rem 1.25rem rgba(255, 255, 255, 0.6);
}

/* Spacer für den fixed top-bar */
.top-bar-spacer {
  height: 3.125rem; /* 50px */
}

/* Video Container - WICHTIG: Exakt wie im Original */
.video-container {
  width: 100%;
  height: auto; /* Höhe passt sich an Video-Aspekt-Ratio an */
  overflow: hidden;
  background: #000;
  position: relative;
}

.video-container video {
  width: 100%;
  height: auto; /* Höhe passt sich an Video-Aspekt-Ratio an */
  object-fit: cover;
  display: block;
}

/* Wrapper für zweiten Balken und Content */
.scrollable-section {
  position: relative;
  background: radial-gradient(
    69.73% 69.73% at 50% 50%,
    #FFF 0%,
    #BBB9B9 100%
  );
  min-height: calc(100vh - 3.125rem); /* 50px */
  padding-bottom: 140px; /* Platz für Thumbnail-Navigation */
}

/* zweiter Balken mit animiertem Text */
.sticky-bar {
  height: 3.125rem; /* 50px */
  width: 100%;
  background-color: #F7F7F7;
  position: sticky;
  top: 3.125rem; /* 50px */
  z-index: 10;
  display: flex;
  align-items: center;
  overflow: visible;
  box-shadow: 0 0.25rem 1.25rem rgba(255, 255, 255, 0.6);
}

/* Thumbnail Navigation - NEU: Am unteren Rand */
.thumbnail-nav-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 95px;
  background: #F7F7F7;
  z-index: 14;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.6);
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.thumbnail-nav-wrapper.hidden {
  transform: translateY(100%);
}

.thumbnail-nav-wrapper.pushed-up {
  transform: translateY(-50px);
}

.thumbnail-nav-wrapper.hidden.pushed-up {
  transform: translateY(calc(100% - 50px));
}

/* About Bar - erscheint beim Scrollen nach unten */
.about-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.125rem; /* 50px */
  background-color: #F7F7F7;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem; /* 40px Abstand zwischen Buttons */
  box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.6);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.about-bar.visible {
  transform: translateY(0);
}

.about-bar-text {
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  font-size: 0.9rem;
  color: #000;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
  text-align: center;
  min-width: 20rem; /* Gleiche Mindestbreite für alle Buttons */
}

.about-bar-text:hover {
  animation: blink 0.3s ease-in-out infinite;
}

/* Hide Button für Thumbnail Navigation */
.hide-thumbnails-btn {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  padding: 4px 6px 2px 6px;
  background-color: #F7F7F7;
  border: none;
  border-radius: 4px 4px 0px 0px;
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, top 0.4s ease, border-radius 0.3s ease;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
  z-index: 16;
}

.thumbnail-nav-wrapper:hover .hide-thumbnails-btn,
.thumbnail-nav-wrapper.hidden .hide-thumbnails-btn {
  opacity: 1;
  visibility: visible;
}

.thumbnail-nav-wrapper.hidden .hide-thumbnails-btn {
  top: -20px;
}

.hide-thumbnails-btn:hover {
  animation: none;
  border-radius: 8px 8px 0px 0px;
}

.hide-thumbnails-btn span {
  animation: none;
}

.hide-thumbnails-btn:hover span {
  animation: blink 0.3s ease-in-out infinite;
}

.hide-thumbnails-btn .arrow {
  display: inline-block;
  font-size: 0.7rem;
}

.thumbnail-nav {
  display: flex;
  flex-direction: row;
  gap: 0.625rem; /* 10px */
  padding: 0.625rem; /* 10px */
  max-width: 80%; /* Maximal 4/5 der Seitenbreite */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 40px,
    black calc(100% - 40px),
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 40px,
    black calc(100% - 40px),
    transparent
  );
}

/* Scrollbar Styling für Thumbnail Navigation */
.thumbnail-nav::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.thumbnail {
  width: 3.75rem; /* 60px */
  height: 4.6875rem; /* 75px */
  object-fit: cover;
  border-radius: 0.25rem; /* 4px */
  cursor: pointer;
  transition: opacity 0.2s ease, filter 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.thumbnail:hover {
  opacity: 0.7;
  transform: translateY(-5px);
}

.thumbnail.active {
  filter: grayscale(100%) invert(100%) brightness(80%) contrast(120%);
  transform: translateY(-5px);
}

/* Container für Animation */
.text-container {
  padding-top: 10px;
  width: 100%;
  height: 100%;
}

/* Text Wrapper mit Animation */
.text-wrapper {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Wenn aktiviert, nach links verschieben */
.text-wrapper.active {
  transform: translateY(-50%);
  left: calc(16.66vw + 2vw);
  align-items: flex-start;
}

.sticky-bar h1 {
  margin: 0;
  font-size: 1.2rem;
  font-family: 'NewEdge666-Light', Arial, sans-serif;
  font-weight: normal;
  width: auto;
}

.read-more-btn {
  font-size: 0.9rem;
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  color: #000;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s ease;
}

.read-more-btn:hover {
  animation: blink 0.3s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.read-more-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.read-more-btn.open .arrow {
  transform: rotate(180deg);
}

/* Floral-spezifisches Dropdown Box */
.floral-dropdown-content {
  position: absolute;
  top: 100%;
  left: 16.66vw;
  right: 16.66vw;
  background-color: #F7F7F7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  box-sizing: border-box;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.6);
}

.floral-dropdown-content.show {
  max-height: 90vh;
  padding: 0.2vw 2vw 2vw 2vw;
}

 /* Floral Dropdown Inhalt Styling */
 .floral-dropdown-content p {
   font-family: 'NewEdge666-Light', sans-serif;
   text-align: left; /* Standard: linksbündig */
   hyphens: none;
   word-break: normal;
   overflow-wrap: break-word;
   line-height: 1.1;
   margin: 0 0 0 0;
   color: #333;
  }

  /* Ab 1024px: linksbündig zu Blocksatz */
  @media (min-width: 1024px) {
    .floral-dropdown-content p {
      text-align: justify;
    }
  }

.project-info {
  margin-top: 0.625rem; /* 10px */
  padding-top: 10px;
  border-top: 1px solid #ddd;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.info-label {
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  color: #666;
  font-size: 0.8rem;
}

.info-value {
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  color: #000;
}

/* Hintergrundfläche mit Bildern */
.content {
  padding: 1.25rem 0 0.625rem 0;
  margin-top: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem; /* 10px - halbiert von 20px */
}

/* Bildcontainer */
.image-placeholder {
  max-width: 90vw;
  max-height: calc(100vh - 165px);
  width: auto;
  height: auto;
  background-color: #888;
  border-radius: 0.25rem; /* 4px */
  object-fit: contain;
  display: block;
  scroll-margin-top: 120px;
}

.content img {
  max-width: 90vw;
  max-height: calc(100vh - 165px);
  width: auto;
  height: auto;
  border-radius: 0.25rem; /* 4px */
  object-fit: contain;
  display: block;
  scroll-margin-top: 120px;
}

 /* Video Styling */
 .content video {
   max-width: 90vw;
   max-height: calc(100vh - 165px);
   width: auto;
   height: auto;
   border-radius: 0.25rem; /* 4px */
   object-fit: contain;
   display: block;
   scroll-margin-top: 120px;
   margin: 0 auto; /* Zentriert das Video horizontal */
  }

/* Video im Vollbildmodus */
video:fullscreen {
  object-fit: contain !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
}

/* Webkit Vollbildmodus */
video:-webkit-full-screen {
  object-fit: contain !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
}

/* Link styling */
a {
  color: #000;
  transition: opacity 0.2s ease;
}

a:hover {
  animation: blink 0.3s ease-in-out infinite;
}

.no-underline {
  text-decoration: none;
}
