.Hero ~ .ConnectionFinder-container {
  position: relative;
  z-index: 1;
  margin-top: -76px;
}

@media screen and (min-width: 1026px) {

.Hero ~ .ConnectionFinder-container {
    margin-top: -120px;
}
  }

.ConnectionFinder {
  padding: 24px 32px;
  border-radius: 8px;
  background-color: #ffffff;
  transition: box-shadow 250ms ease-in-out;
}

.ConnectionFinder:hover {
    box-shadow: var(--default-box-shadow);
  }

@media screen and (max-width: 768px) {
    .ConnectionFinder .Headline {
      display: none;
    }
  }

.ConnectionFinder .Headline {
    margin-bottom: 8px;
  }

.ConnectionFinder input {
    width: auto;
    padding: 16px 0;
    border: none;
    border-radius: 0;
    font-family: var(--font-copy);
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: var(--font-line-height-md);
    background-color: transparent;
    color: #000000;
  }

.ConnectionFinder input:focus {
      border-color: var(--aknakn-red);
      outline: none;
    }

.ConnectionFinder-form {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

@media screen and (max-width: 768px) {

.ConnectionFinder-form {
    flex-direction: column;
}
  }

@media screen and (min-width: 1026px) {

.form-inputs {
    width: 76%;
}
  }

.form-selectLocations {
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media screen and (max-width: 768px) {

.form-selectLocations {
    margin: -20px -20px 0;
}
  }

.form-locationInputs {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

@media screen and (min-width: 769px) {

.form-locationInputs {
    flex-direction: row;
    border-bottom: 1px solid var(--clr-border-default);
}
  }

.form-locationInputs input::-moz-placeholder {
      font-family: var(--font-copy);
      font-size: var(--font-size-md);
      font-weight: 700;
      line-height: var(--font-line-height-md);
      color: var(--clr-primary-02);
    }

.form-locationInputs input::placeholder {
      font-family: var(--font-copy);
      font-size: var(--font-size-md);
      font-weight: 700;
      line-height: var(--font-line-height-md);
      color: var(--clr-primary-02);
    }

@media screen and (min-width: 769px) {

.form-locationInputs input:last-child {
        width: 44%;
        margin-left: 25px;
    }
      }

@media screen and (max-width: 768px) {

.form-locationInputs input {
      margin-bottom: 0;
      padding: 24px 16px;
      border-bottom: 1px solid var(--aknakn-light-grey-1);
  }
    }

@media screen and (min-width: 769px) {

.form-locationInputs input {
      width: 43%;
  }
    }

@media screen and (min-width: 1367px) {

.form-locationInputs input {
      width: 47%;
  }
    }

.form-locationSwitch {
  padding: 10px;
  background-color: transparent;
  transform: rotate(90deg);
}

.form-locationSwitch svg {
    width: 25px;
  }

@media screen and (max-width: 768px) {

.form-locationSwitch {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background-color: var(--clr-primary-02);
    transform: translateY(-50%);
}

    .form-locationSwitch svg {
      width: 20px;
    }

    .form-locationSwitch path {
      stroke: #ffffff;
    }
  }

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  align-items: center;
  justify-content: flex-start;
}

@media screen and (max-width: 768px) {

.form-options {
    margin-bottom: 32px;
}
  }

.form-options input {
    flex-grow: 1;
  }

@media screen and (max-width: 768px) {

.form-selectTime {
    display: flex;
    gap: 8px;
    order: 0;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

    .form-selectTime input {
      flex-basis: 0;
      padding: 16px 8px;
      border: 1px solid var(--aknakn-light-grey-1);
      border-radius: 8px;
    }
  }

.form-selectTime input {
    margin-bottom: 0;
    color: var(--clr-primary-02);
  }

.form-advancedSearch {
  color: var(--clr-primary-02);
}

@media screen and (max-width: 768px) {

.form-advancedSearch {
    order: 2;
    margin-left: auto;
};
  }

.form-additionalOptions {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  height: 37px;
  border: 1px solid #d3d3d3;
  border-radius: 999px;
  background-color: var(--aknakn-light-grey-1);
}

@media screen and (max-width: 768px) {

.form-additionalOptions {
    order: 1;
}
  }

.form-additionalOptions:hover {
    cursor: pointer;
  }

.form-additionalOptions input[type='radio'] {
    display: none;
  }

.form-additionalOptions label {
    margin-bottom: 0;
    color: var(--aknakn-light-grey-2);
  }

.form-actions .Button {
    width: 100%;
    font-size: var(--font-size-lg);
    line-height: var(--font-line-height-lg);
  }

@media screen and (max-width: 768px) {

.form-actions {
    width: 100%;
}
  }

.switch-background {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 80px;
  height: 35px;
  border-radius: 999px;
  background-color: var(--aknakn-light-grey-1);
}

.switch-knob {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 40px;
  height: 35px;
  border: 1px solid var(--aknakn-light-grey-2);
  border-radius: 999px;
  background-color: #ffffff;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.form-switchOption {
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--aknakn-light-grey-2);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: color 0.3s ease;
}

#form-to:checked ~ .switch-background .switch-knob {
  transform: translateX(100%);
}

#form-from:checked ~ .switch-background .switch-knob {
  transform: translateX(0%);
}

#form-from:checked ~ .switch-background label[for='form-from'],
#form-to:checked ~ .switch-background label[for='form-to'] {
  color: var(--clr-primary-02);
}

.Button-trafficUpdates {
  display: flex;
  align-items: center;
  margin-top: 35px;
  color: var(--clr-primary-02);
}

@media screen and (max-width: 768px) {

.Button-trafficUpdates {
    justify-content: center;
}
  }

.Button-trafficUpdates svg {
    margin-right: 10px;
  }

.suggestion-box {
  /* Position wird per JavaScript gesetzt (fixed) */
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.suggestion-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.suggestion-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item span {
    display: inline-flex;
    gap: 0.5rem;
  }

.suggestion-item:hover {
  background-color: #e0e0e0;
}

.suggestion-item--active {
  font-weight: 700;
  background-color: #d0d0d0;
}

/* Custom Date-Time Picker (akndp-*) */

.ConnectionFinder {

  /* Ensure popover appears above content inside ConnectionFinder context */
}

/* Popover wrapper */

.akndp-popover {
  z-index: 1000;
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 16px;
  gap: 16px;
  min-width: 280px;
  padding: 16px;
  border: 1px solid var(--aknakn-light-grey-1);
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: var(--default-box-shadow);
}

@media screen and (max-width: 768px) {
  .akndp-popover {
    right: auto;
    grid-template-columns: 1fr;
    width: auto;
    max-width: 310px;
  }
}

/* Calendar */

.akndp-calendar {
  width: 280px;
}

.akndp-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 8px;
}

.akndp-title {
  font-family: var(--font-copy);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: center;
  color: var(--clr-primary-02);
}

.akndp-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--aknakn-light-grey-1);
  border-radius: 6px;
  background: var(--aknakn-light-grey-1);
  color: var(--clr-primary-02);
  cursor: pointer;
}

.akndp-nav:hover {
  background: var(--aknakn-grey);
}

.akndp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-column: 1/-1;
  grid-gap: 4px;
  gap: 4px;
  margin-bottom: 4px;
}

.akndp-weekdays > div {
  font-size: var(--font-size-sm);
  text-align: center;
  color: var(--clr-primary-02);
  opacity: 0.8;
}

.akndp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 4px;
  gap: 4px;
}

.akndp-day {
  height: 36px;
  border: 1px solid var(--aknakn-light-grey-1);
  border-radius: 6px;
  font-weight: 600;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
}

.akndp-day:hover {
  border-color: var(--aknakn-red);
}

.akndp-day--empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

/* Time picker */

.akndp-time {
  display: flex;
  gap: 8px;
  align-items: center;
}

.akndp-time select {
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-copy);
  font-size: var(--font-size-sm);
  font-weight: 700;
  background: var(--aknakn-light-grey-1);
  color: var(--clr-primary-02);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.akndp-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.akndp-actions button {
  padding: 8px 12px;
  border: 1px solid var(--aknakn-light-grey-1);
  border-radius: 6px;
  font-weight: 700;
  background: #ffffff;
  cursor: pointer;
}

.akndp-actions button:hover {
  border-color: var(--aknakn-red);
}

/* Date/Time input with icons */

.form-dateTimeInput {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  align-items: stretch;
}

.form-dateTimeInput__box {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--clr-border-default);
  border-radius: var(--default-border-radius);
  background: #ffffff;
}

.form-dateTimeInput__box .icon {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--clr-primary-02);
  pointer-events: none;
}

.form-dateTimeInput__box input[type='text'] {
  max-width: 160px;
  padding: 16px 16px 16px 40px;
  border: none;
  font-family: var(--font-copy);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: var(--font-line-height-sm);
  text-align: right;
  background: transparent;
  cursor: pointer;
}

@media screen and (max-width: 768px) {

.form-dateTimeInput__box input[type='text'] {
    max-width: 140px;
}
  }

/* Selected day state */

.akndp-day.akndp-day--selected {
  border-color: var(--aknakn-red);
  background: var(--aknakn-red);
  color: #ffffff;
}

/* Action button variants */

.akndp-actions .akndp-btn--now {
  border-color: var(--clr-primary-02);
  background: var(--clr-primary-02);
  color: #ffffff;
}

.akndp-actions .akndp-btn--ok {
  border-color: var(--clr-primary-02);
  background: var(--clr-primary-02);
  color: #ffffff;
}

.akndp-actions .akndp-btn--now:hover,
.akndp-actions .akndp-btn--ok:hover {
  border-color: currentColor;
  filter: brightness(0.9);
}
