:root { 
  --v-gap: 10px; 
}

html {
  overscroll-behavior: none;
}

body {
  font-family: Arial, sans-serif;
  background: radial-gradient(69.73% 69.73% at 50% 50%, #FFF 0%, #BBB9B9 100%);
  margin: 0;
  height: 100vh;
  cursor: default;
}

/* Swup Container */
#swup {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Persistent Dropdown Navigation */
.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; /* Ermöglicht Klicks durch die Navigation */
}

.persistent-nav .dropdown {
  pointer-events: auto; /* Nur der Dropdown ist klickbar */
}

.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;   /* weiche Ausweitung beim Öffnen */
}

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

/* Main Button */
.dropdown-btn {
  display: block;
  width: 100%;
  padding: 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; /* standard kein Schatten */
}

@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; /* Höhe dynamisch, wird beim Öffnen auf 2/3 VH begrenzt */
  margin-top: -14px; /* überlappt bis Mitte des Main Buttons */
  position: relative;
  z-index: 1;
}

/* Wenn geöffnet: Scroll erlauben und Mindesthöhe ausfüllen */
.dropdown-content.open {
  overflow: auto;
  /* weicher Fadeout nach unten, wenn abgeschnitten */
  -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 ausblenden, Scrollen bleibt möglich */
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge Legacy */
}

/* WebKit Scrollbar (Chrome, Edge, Safari) ausblenden */
.dropdown-content.open::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.dropdown-content.open .dropdown-inner {
  min-height: 80vh;
  padding-bottom: 40px; /* Platz für Fadeout-Bereich */
}

.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(var(--v-gap) + 14px); /* Ausgleich zur -14px Überlappung oben */
  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 */
.social-buttons {
  display: flex;
  gap: 0;
  justify-content: center;
  width: 100%;
  margin-bottom: var(--v-gap);
}

.social-btn {
  flex: 1;
  padding: 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;
  /* Schatten nur oben/unten außen */
  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 */
.works-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 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 */
.preview {
  width: 100%;
  min-height: 300px;
  background: #fff;
  position: relative;
  z-index: 1;
  margin-top: -6px; /* überlappt Works Box */
  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;
}

/* Projektliste */
.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: 10px;
  padding-bottom: 10px;
  background: #F7F7F7;
  color: #000;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: 'NewEdge666-Light', Arial, sans-serif; /* Projektnamen in NewEdge666 */
  text-transform: uppercase; /* Projektnamen in GROSSBUCHSTABEN */
  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; /* Default */
  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;
}

.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: 10px;
  font-size: 0.875rem;
  font-family: 'NewEdge666-UltraLightRounded', Arial, sans-serif;
  color: #000;
  line-height: 1;
}

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

/* About Button am unteren Rand */
.about-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 10px;
  pointer-events: none;
}

.about-wrapper {
  text-align: center;
  width: 80px;
  position: relative;
  padding: 0;
  transition: padding 0.4s ease-in-out, width 0.4s ease-in-out;
  pointer-events: auto;
}

.about-wrapper.open {
  width: 280px;
  padding: 0;
}

.about-btn {
  display: block;
  width: 100%;
  padding: 5px;
  background: #F7F7F7;
  color: #000;
  cursor: pointer;
  font-family: 'NewEdge666-UltraLightRounded', sans-serif;
  font-size: 0.9rem;
  border: none;
  position: relative;
  z-index: 2;
  border-radius: 6px;
  transition: border-radius 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

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

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

.about-dropup.open {
  max-height: 200px;
}

.about-dropup-inner {
  width: 100%;
  height: 200px;
  background: #F7F7F7;
  box-sizing: border-box;
  border-radius: 6px 6px 0 0;
  padding: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  font-family: 'NewEdge666-Light', Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #000;
  text-align: left;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.about-dropup-inner::-webkit-scrollbar {
  display: none;
}

.about-dropup-inner .hi-bounce {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
