:root {
  --primary-color: #fff;
  --accent-color: #808080;
  --text-color: #fff;
  --bg-color: #000;
  --card-bg: #1a1a1a;
  --nav-bg: rgba(0, 0, 0, 0.8);
  --section-bg: #0d0d0d;
  --gradient: linear-gradient(90deg, #808080, #2d2d2d);
  --dropdown-bg: #232323;
  --dropdown-hover: #333;
}

/* Optional: Scrollbar ausblenden für Overlay */
.nav-links::-webkit-scrollbar {
  display: none;
}

/* Dezenter Schimmer für Buttons */
.login-button,
.register-button,
.settings-btn,
.danger-btn,
.service-button,
.profile-upload-btn {
  transition: 
    box-shadow 0.22s cubic-bezier(0.19,1,0.22,1),
    background 0.22s cubic-bezier(0.19,1,0.22,1),
    transform 0.16s cubic-bezier(0.19,1,0.22,1);
}

/* MINIMALER SCHIMMER: weniger stark, nur feiner Glow, kein "Kasten" */
.login-button:hover,
.register-button:hover,
.settings-btn:hover,
.danger-btn:hover,
.service-button:hover,
.profile-upload-btn:hover {
  box-shadow:
    0 0 8px 2px #ced4da40,
    0 2px 6px 0px #dce3eb22;
  background: linear-gradient(90deg, #f5f6fa 85%, #cfd3da 120%);
  transform: scale(1.025);
}

/* Profilbild: minimaler silberner Schimmer */
.profile-image-view {
  transition: box-shadow 0.23s, background 0.22s, border-color 0.22s;
}

.profile-image-view:hover,
.profile-image-view.dragover {
  box-shadow:
    0 0 0 2.5px #ececec4a,
    0 1px 7px 0px #f0f0f024;
  background: linear-gradient(90deg, #f5f6fa 80%, #c0c0c0 120%);
  border-color: #e3e6e9;
}

/* Navbar Styles - unverändert, außer Glow */
.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 60px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-sizing: border-box;
  padding: 0 28px 0 12px;
}

.logo {
  margin-right: 8px;
  display: flex;
  align-items: center;
}
.logo img {
  height: 70px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 18px; /* Gleicher Abstand zwischen allen Elementen inklusive Konto-Icon */
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  padding: 5px 8px;
  transition: 
    box-shadow 0.22s cubic-bezier(0.19,1,0.22,1),
    background 0.22s cubic-bezier(0.19,1,0.22,1),
    transform 0.18s cubic-bezier(0.19,1,0.22,1),
    color 0.22s cubic-bezier(0.19,1,0.22,1);
  position: relative;
  z-index: 0;
}

/* MINIMALER SCHIMMER Effekt */
.nav-links a:hover, .nav-links a:focus-visible {
  box-shadow:
    0 0 6px 2px #bcc0cc40,
    0 1px 5px 0 #eef1f330;
  background: linear-gradient(90deg, #232323 80%, #eff2f7 120%);
  color: #dee2e6;
  border-radius: 8px;
  transform: scale(1.025);
  outline: none;
}

.nav-links a:active {
  box-shadow: 0 0 0 4px #dde3e942;
  color: #f5f6fa;
  background: linear-gradient(90deg, #ccc 70%, #dee2e6 120%);
}

.nav-button {
  background: var(--gradient);
  color: white !important;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 15px !important;
  box-shadow: 0 2px 6px rgba(128, 128, 128, 0.16);
  transition: box-shadow 0.22s cubic-bezier(0.19,1,0.22,1),
              background 0.22s cubic-bezier(0.19,1,0.22,1),
              transform 0.16s cubic-bezier(0.19,1,0.22,1);
  min-width: 120px;
  text-align: center;
}
.nav-button:hover {
  background: linear-gradient(90deg, #f5f6fa 85%, #cfd3da 120%);
  box-shadow:
    0 0 8px 2px #c0c0c040,
    0 2px 7px 0px #ececec20;
  color: #fff;
  transform: scale(1.025);
}

.nav-links a.nav-button:hover,
.nav-links a.nav-button:focus {
  background: linear-gradient(90deg, #f5f6fa 85%, #cfd3da 120%);
  box-shadow:
    0 0 8px 2px #c0c0c040,
    0 2px 7px 0px #ececec20;
  color: #fff;
  transform: scale(1.025);
}

.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  /* Kein margin-left mehr, damit das Icon wie die Links behandelt wird */
}
  
@media (max-width: 600px) {
  .user-dropdown {
    position: fixed !important;
    top: unset !important;
    bottom: 18px !important;
    left: 10px !important;
    right: unset !important;
    margin: 0 !important;
    z-index: 3002 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
  }
}

.user-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.22s cubic-bezier(0.19,1,0.22,1), 
              background 0.22s cubic-bezier(0.19,1,0.22,1),
              border-color 0.22s;
  border: 2px solid #fff2;
  user-select: none;
}
.user-icon:hover, .user-dropdown.open .user-icon {
  box-shadow:
    0 0 0 2.5px #ececec4a,
    0 1px 7px 0px #f0f0f024;
  background: linear-gradient(90deg, #f5f6fa 80%, #c0c0c0 120%);
  border-color: #e3e6e9;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 54px;
  right: 0;
  width: 193px;           /* Schmäleres Dropdown */
  max-width: 90vw;        /* Für kleinere Bildschirme responsiv */
  min-width: 120px;
  background: rgba(35,35,35,0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 12px 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 2000;
  animation: fadeIn 0.2s;
  border: 1px solid rgba(255,255,255,0.11);
}
.user-dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 16px 30px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  background: none;
  border: none;
  text-align: left;
  transition: background 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.dropdown-menu a:hover {
  background: var(--dropdown-hover);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}
@media (max-width: 900px) {
  .logo img { height: 48px;}
}
/* --- Hamburger-Button & mobile Navigation --- */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 8px;
  right: 15px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 2100;
}
.menu-toggle span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 6px auto;
  background: var(--text-color, #fff);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(.26,.44,.21,1);
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 901px) {
  .nav-links {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
}

@media (max-width: 600px) {
  .navbar {
    height: 56px;
    padding-right: 10px;
    padding-left: 6px;
    position: fixed;
    width: 100vw;
  }
  
  .menu-toggle { top: 7px; right: 10px; }
  
  .logo {
    margin-right: 2px;
  }
  .logo img {
    height: 38px;
    max-width: 90vw;
  }
  
  .nav-links {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -40vw;
    width: 40vw;
    max-width: 320px;
    min-width: 130px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(24px);
    padding: 60px 0 0 10px;
    margin-top: 0;
    gap: 15px;
    box-shadow: 8px 0 24px rgba(0,0,0,0.29);
    border-right: 1.5px solid rgba(255,255,255,0.10);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: left 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.38s, opacity 0.38s;
    z-index: 2000;
    overflow-y: auto;
  }
  
  .nav-links.active {
    left: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
    transition: left 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s, visibility 0s;
  }
  
  .nav-links a {
    display: block;
    width: 92%;
    text-align: left;
    padding: 13px 16px;
    font-size: 16px;
    border-radius: 10px;
    margin: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(200,200,200,0.04);
    transition: background 0.22s, color 0.18s, transform 0.18s;
    color: #fff;
    opacity: 0;
    transform: translateX(-25px);
    animation: slideInNavLink 0.38s ease forwards;
  }
  
  .nav-links.active a {
    opacity: 1;
    transform: translateX(0);
    animation: none;
  }
  
  .nav-links a:nth-child(1) { animation-delay: 0.07s; }
  .nav-links a:nth-child(2) { animation-delay: 0.15s; }
  .nav-links a:nth-child(3) { animation-delay: 0.23s; }
  .nav-links a:nth-child(4) { animation-delay: 0.3s; }
  
  @keyframes slideInNavLink {
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Overlay für Klick außerhalb */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin-top: 0;
    background: rgba(0,0,0,0.37);
    z-index: 1999;
    cursor: pointer;
    transition: opacity 0.25s;
  }
  .overlay.active { display: block; }
  
  .user-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
  }
  
  .dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 96vw;
    max-width: 340px;
    min-width: 130px;
    top: 54px;
    border-radius: 14px;
    background: rgba(35,35,35,0.35);
  }
  
  .dropdown-menu a { 
    padding: 12px 14px; 
    font-size: 14px; 
  }
}

/* Noch stärkere Anpassungen für ultra-kleine Devices */
@media (max-width: 400px) {
  .navbar { height: 48px; }
  .logo img { height: 26px;}
  .menu-toggle { top: 5px; right: 5px; width: 39px; height: 39px;}
  .nav-links { top: 0; height: 100vh;}
  .overlay { top: 0; height: 100vh;}
}