.StundenrechnerBacklinkBox {
  max-width: 728px;
  margin: auto;
  display: flex;
  justify-content: end;
  align-items: end;
  margin-top: 60px;
  gap: 10px;
}

.StundenrechnerBacklinkBox .StundenrechnerTooltip .StundenrechnerTooltiptext {
  width: 300px;
  bottom: auto !important;
  top: 100%;
  left: -63px;
  margin-left: -110px;
}

.StundenrechnerBacklinkBox .StundenrechnerTooltip {
  background-color: #fff;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
  padding: 1px 3px;
  opacity: 0.7;
  display: flex;
}

.StundenrechnerBacklinkBox .StundenrechnerTooltip .StundenrechnerInfoIcone {
  display: flex;
  width: 17px;
}

.StundenrechnerBacklinkBox .StundenrechnerTooltip:hover {
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.StundenrechnerBacklink {
  display: flex;
  align-items: start;
  gap: 5px;
  background-color: #fff;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
  padding: 3px;
  margin-right: 10px;
  color: #7f7f7f;
  font-size: 11px;
  line-height: 13px;
}

.StundenrechnerBacklink:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.StundenrechnerBacklink > img {
  width: 11px;
  opacity: 0.5;
  transition: all 0.2s;
}

.StundenrechnerContainer {
  max-width: 728px;
  margin: 0px auto 60px auto;
  padding: 0 100px 0 100px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.StundenrechnerLeftPart {
  width: 100%;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.StundenrechnerRightPart {
  width: 80%;
  max-width: 540px;
  height: 70px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 430px;
  border-radius: 12px;
  padding: 0 20px 0 20px;
  position: absolute;
  transition: margin-top 0.5s ease; /* Added transition */
}

.StundenrechnerRightPart > h4 {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 275;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 10%;
}

.StundenrechnerTitle {
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  line-height: 33px;
  color: #000000;
  margin-top: 20px;
  text-align: center;
}

.StundenrechnerFormRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 21px;
  position: relative;
}

.StundenrechnerLabel {
  flex: 1;
  margin-right: 10px;
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.88);
  margin-bottom: 5px;
}

.StundenrechnerInput {
  flex: 1;
  padding: 5px 10px !important;
  color: #333 !important;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0px 16px;
  gap: 4px;
  width: 300px;
  height: 32px;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px;
  font-family: inherit;
}

.StundenrechnerRightPart > div:first-of-type {
  position: relative;
  top: 3px;
  left: -25px;
}

.StundenrechnerRightPart > div img {
  position: relative;
  left: 0px;
  top: 0px;
  width: 100px;
  height: 111px;
}

.StundenrechnerButton {
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: #ffffff;
  width: 300px;
  height: 32px;
  background: #170b61;
  border-radius: 8px;
  margin-left: auto;
  margin-right: 25px;
  display: block;
  margin-bottom: 53px;
}

.StundenrechnerButton:hover {
  background-color: #12094d;
}

#StundenrechnerResult {
  width: 77%;
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  margin-top: -45px;
  hyphens: auto;
  font-size: clamp(14px, 1.5vw, 18px);
  color: #ffffff;
  margin: auto;
  margin-right: 0;
  margin-left: 0;
}

.StundenrechnerRightPart > img {
  width: 100%;
  height: auto;
  margin-top: -138px;
}

.StundenrechnerWorkDaysPerWeek {
  display: flex;
  justify-content: space-between;
  width: 300px;
  flex-wrap: wrap;
}

.StundenrechnerWorkDaysPerWeek input[type="checkbox"] {
  display: none !important;
}
.StundenrechnerWorkDaysPerWeek label {
  width: 35px;
  height: 35px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}
.StundenrechnerWorkDaysPerWeek input[type="checkbox"]:checked + label {
  background-color: #170b61;
  color: white;
  border-color: #170b61;
}

.StundenrechnerTooltip {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}

.StundenrechnerTooltip .StundenrechnerTooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #f9f9f9;
  color: #333;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 100%; 
  left: -363%;
  margin-left: -28px; 
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  line-height: 18px;
  max-height: 120px;
  overflow: auto;
}

.StundenrechnerTooltiptext {
  --sb-track-color: #ffffff;
  --sb-thumb-color: #c1c1c1;
  --sb-size: 9px;
}

.StundenrechnerTooltiptext::-webkit-scrollbar {
  width: var(--sb-size);
}

.StundenrechnerTooltiptext::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 4px;
}

.StundenrechnerTooltiptext::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 4px;
}

@supports not selector(::-webkit-scrollbar) {
  .StundenrechnerTooltiptext {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

.StundenrechnerInfoIcone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.StundenrechnerTooltip:hover .StundenrechnerTooltiptext {
  visibility: visible;
  opacity: 1;
}
.StundenrechnerTooltip .info-icon {
  width: 16px;
  height: 16px;
  fill: #636363;
  cursor: pointer;
}

.StundenrechnerInputContainer {
  display: flex;
  align-items: center;
}

.StundenrechnerResultsBox {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pausenzeit (Break Time) Input Animation */
#StundenrechnerBreakInput {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-bottom 0.5s ease;
}

#StundenrechnerBreakInput.show {
  max-height: 100px; /* Adjust based on content height */
  opacity: 1;
  margin-bottom: 21px;
}
/* Transition for StundenrechnerRightPart Margin */
.StundenrechnerRightPart {
  transition: margin-top 0.5s ease; /* Added transition */
}

/* Custom Time Dropdown */
.Stundenrechner-custom-time-dropdown {
  position: relative;
  display: inline-block;
  width: 300px;
  flex: 1;
}

/* Adjust input to make room for the icon */
.Stundenrechner-time-input {
  width: 100%;
  padding: 5px 30px 5px 5px; /* Add right padding */
  border: 1px solid #d9d9d8 !important;
  border-radius: 8px;
  cursor: pointer;
  background-color: #fff;
}

/* Styling for the clock icon */
.Stundenrechner-time-icon {
  position: absolute;
  top: 50%;
  right: 10px; /* Adjust if needed */
  transform: translateY(-50%);
  color: #888; /* Adjust icon color if desired */
  pointer-events: none; /* Ensure clicks pass through to input */
}

/* Optional: Change icon color on hover */
.Stundenrechner-custom-time-dropdown:hover .Stundenrechner-time-icon {
  color: #000;
}

.Stundenrechner-time-input:focus {
  outline: none;
  border-color: #170b61;
}

.Stundenrechner-time-input.selected {
  background-color: #e6f4ff;
}

.Stundenrechner-dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  z-index: 2;
  width: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}

.Stundenrechner-dropdown-menu.active {
  display: flex;
}

.Stundenrechner-hours-column,
.Stundenrechner-minutes-column {
  width: 50%;
  max-height: 300px;
  overflow-y: auto;
}

.Stundenrechner-hours-column {
  border-right: 1px solid #d9d9d9;
}

.Stundenrechner-hour-item,
.Stundenrechner-minute-item {
  padding: 5px;
  cursor: pointer;
  text-align: center;
}

.Stundenrechner-hour-item:hover,
.Stundenrechner-minute-item:hover {
  background-color: #f0f0f0;
}

.selected-hour,
.selected-minute {
  background-color: #e6f4ff;
}

/* Hide scrollbar */
.Stundenrechner-hours-column::-webkit-scrollbar,
.Stundenrechner-minutes-column::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.Stundenrechner-hours-column::-webkit-scrollbar-thumb,
.Stundenrechner-minutes-column::-webkit-scrollbar-thumb {
  background: transparent;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toggle button for pause */
.StundenrechnerToggleButton {
  display: none;
}

.StundenrechnerToggleButtonLabel {
  position: relative;
  display: inline-block;
  width: 42px; /* Reduced from 60px */
  height: 21px; /* Reduced from 30px */
  background-color: #e3e3e3;
  border-radius: 21px; /* Half of height for perfect rounding */
  cursor: pointer;
  transition: background-color 0.3s;
}

.StundenrechnerToggleButtonLabel:before {
  content: "";
  position: absolute;
  width: 18px; /* Reduced from 26px */
  height: 18px; /* Reduced from 26px */
  background-color: white;
  border-radius: 50%;
  top: 1.5px; /* Adjusted for new height */
  left: 1.5px; /* Adjusted for new width */
  transition: transform 0.3s;
}

.StundenrechnerToggleButton:checked + .StundenrechnerToggleButtonLabel {
  background-color: #170b61;
}

.StundenrechnerToggleButton:checked + .StundenrechnerToggleButtonLabel:before {
  transform: translateX(21px); /* Reduced from 30px */
}

#StundenrechnerTogglePause {
  display: none !important;
}

/* Tooltip Container */
.StundenrechnerTooltip {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}

/* Show Tooltip on Hover */
.StundenrechnerTooltip:hover .StundenrechnerTooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Info Icon Styling */
.StundenrechnerTooltip .StundenrechnerInfoIcone img {
  cursor: pointer;
}

.StundenrechnerTogglePauseContainer {
  justify-content: end;
}

@media screen and (max-width: 914px) {
  .StundenrechnerRightPart {
    width: 80%;
  }
}

/******** width 640 ********/

.width640StundenrechnerContainer {
  padding: 0 20px 0 20px;
}

.width640StundenrechnerContainer .StundenrechnerLeftPart {
  width: 80%;
}

.width640StundenrechnerContainer .StundenrechnerInputContainer,
.width640StundenrechnerContainer .StundenrechnerWorkDaysPerWeek {
  width: 100%;
}

.width640StundenrechnerContainer .StundenrechnerRightPart {
  margin-top: 550px;
}

.width640StundenrechnerContainer .StundenrechnerButton {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.width640StundenrechnerContainer
  .StundenrechnerTooltip
  .StundenrechnerTooltiptext {
  margin-left: -51px;
}

/******** width 530 ********/

.width530StundenrechnerContainer .StundenrechnerLeftPart {
  width: 90%;
}

.width530StundenrechnerContainer
  .StundenrechnerTooltip
  .StundenrechnerTooltiptext {
  left: -525%;
}

.width530StundenrechnerContainer .StundenrechnerRightPart {
  width: 80%;
}

.width530StundenrechnerContainer .StundenrechnerResultsBox {
  margin-left: -23px;
  padding-right: 0;
}

/******** width 424 ********/

.width424StundenrechnerContainer .StundenrechnerLeftPart {
  width: 100%;
}

.width424StundenrechnerContainer .StundenrechnerRightPart {
  margin-top: 590px;
  height: 76px;
}

.width424StundenrechnerContainer
  .StundenrechnerTooltip
  .StundenrechnerTooltiptext {
  left: -650%;
}

.width424StundenrechnerContainer .StundenrechnerRightPart > div:first-of-type {
  display: none;
}

.width424StundenrechnerContainer .StundenrechnerResultsBox {
  margin-left: 0;
  justify-content: space-around;
  gap: 0;
}

.width424StundenrechnerContainer #StundenrechnerResult {
  width: 100%;
}

.width424StundenrechnerContainer .StundenrechnerTitle {
  font-size: 24px;
}

.width424StundenrechnerContainer .StundenrechnerWorkDaysPerWeek label {
  width: 31px;
  height: 31px;
  font-size: 16px;
}
