.content {
  display: flex;
  width: 100%;
  height: 100vh;      /* neu */
  overflow: hidden;   /* neu: verhindert outer scroll */
}

/* LEFT */
.content-left {
  width: 200px;
  background-color: #293647;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;             /* neu */
  left: 0;            /* neu */
  height: 100vh;      /* statt 100% */
}

.content-left img {
  margin-top: 25%;
  height: 120px;
}

/* RIGHT = einzige Scrollfläche */
.content-right {
  margin-left: 200px;
  width: calc(100% - 200px);
  background-color: #f6f7f8;
  display: flex;
  flex-direction: column;

  height: 100vh;      /* neu */
  min-height: 0;      /* neu: flex overflow fix */
  overflow-y: auto;   /* neu: nur hier scroll */
  overflow-x: hidden; /* neu */
}

.content-right header {
  box-shadow: 0px 1px 10px #c2c0c0;

  position: sticky;   /* optional, aber stabil */
  top: 0;
  z-index: 10;
  background: #f6f7f8;
}

.help-btn:hover {
  width: 23px;
}

.dropbtn {
  background-color: white;
  border-radius: 50%;
  border: solid 3px #2a3647;
  width: 56px;
  height: 56px;
  color: #29abe2;
  font-size: 27px;
  font-weight: bold;
  text-align: center;
  padding: 0;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.dropbtn:hover {
  background-color: #0c2e6212;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2a3647;
  top: 60px;
  min-width: 160px;
  height: 204px;
  right: -40px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  flex-direction: column;
  padding: 10px;

  /* du hattest hier sehr viele doppelte border-radius */
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.dropdown-content a {
  color: #f0f0f0;
  padding: 12px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.dropdown-content a:hover {
  background-color: #21395a;
  color: #f0f0f0;
  cursor: pointer;
}

.header-right {
  width: 100%;
  max-width: 1920px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

.header-content-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 48px;
}

.logo-mobile {
  display: none;
}

.tool-name {
  font-size: 20px;
  font-weight: 400;
  margin-left: 60px;
}

#logout-btn {
  position: absolute;
  cursor: pointer;
}

#logout-btn:hover {
  width: 140px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0.6;
}

.d_none {
  display: none !important;
}

.msg-box {
  display: none;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
  max-height: 30px;
  margin: 10px;
  padding: 10px;
  border-radius: 12px;
  border: solid 2px #293646;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.blue-btn-bold {
  background-color: #2a3647;
  color: white;
  border: none;
  font-weight: bold;
}

.white-btn-bold {
  background-color: white;
  color: #2a3647;
  border: 1px solid;
  font-weight: 700;
}

.white-btn {
  background-color: white;
  color: #2a3647;
  border: 1px solid;
  font-weight: 400;
}

.blue-btn-bold:hover {
  background-color: #29abe2;
  cursor: pointer;
}

.white-btn-bold:hover {
  color: #29abe2;
  cursor: pointer;
}

.white-btn:hover {
  color: #29abe2;
  cursor: pointer;
}

.menu-links {
  color: white;
  text-decoration: none;
}

.dropdown-content.show {
  display: block;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #2a3647;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loading-overlay.hidden {
  display: none;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #29abe2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.input-error {
  font-size: 14px;
  color: crimson;
  margin-top: 4px;
  min-height: 18px;
}

.error {
  border: 1px solid crimson !important;
}

select.error {
  border: 1px solid crimson !important;
  border-radius: 6px;
  background-color: white;
  outline: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */

@media (max-width: 1050px) {
  .help-btn {
    display: none;
  }

  .content-left {
    display: none !important;
  }

  .content-right {
    width: 100%;
    margin: 0;

    height: 100vh;      /* neu: keep single scroll */
    overflow-y: auto;
    overflow-x: hidden;
  }

  .dropbtn {
    border: solid 2px #2a3647;
    width: 40px;
    height: 40px;
    font-size: 27px;
  }

  .header-content-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 10px;
  }

  .tool-name {
    display: none;
  }

  .logo-mobile {
    display: flex;
    width: 32px;
    margin-left: 10px;
  }

  #logout-btn {
    position: absolute;
    cursor: pointer;
  }

  #logout-btn:hover {
    width: 140px;
  }

  .input-icon {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.6;
  }
}

@media (max-width: 600px) {
  .blue-btn-bold {
    background-color: #2a3647;
    color: white;
    border: none;
    font-weight: bold;
  }

  .white-btn-bold {
    background-color: white;
    color: #2a3647;
    border: 1px solid;
    font-weight: 700;
  }

  .white-btn {
    background-color: white;
    color: #2a3647;
    border: 1px solid;
    font-weight: 400;
  }
}
