body {
    position: relative; 
    z-index: 0; 
}

#routing-ui {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#mapContainer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

#mapContainer.fullscreen {
  position: relative;
  width: calc(100vw - 15px);         /* Viewport minus linke Lücke */
  max-width: calc(100vw - 15px);
  left: 50%;
  margin-left: calc(-50vw + 15px);   /* erzeugt nur linke Lücke */
  transition: all 0.4s ease;
  box-sizing: border-box;
  z-index: 1;
}

#map {
  width: 100%;
  height: 600px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.4s ease;
  z-index: 1;
}

#mapContainer.fullscreen #map {
    height: 90vh;      
    z-index: 1;
}

#toggleMapSize {
  padding: 4px 12px;
  cursor: pointer;
  background-color: #f5deb3;
  border: 1px solid #d2b48c;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
}

.options select, .options input[type=number] { padding:6px; margin-right:5px; }

.map_buttons button {
    background-color: #f5deb3; /* sandgelb */
    color: #333;               /* dunkler Text */
    border: 1px solid #d2b48c; /* etwas dunklerer Rand */
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover-Effekt für denselben Button */
.map_buttons button:hover {
    background-color: #e4cfa0; /* etwas dunkler beim Hover */
    transform: scale(1.05);
}


calculator {
    max-width: 500px;
    margin: auto;
    padding: 20px;
    /*background: #fff5e1;*/ /* sandgelb */
    border: 1px solid #d2b48c;
    border-radius: 8px;
  }

  .calculator h2 {
    text-align: center;
    color: #993300;
  }

  .calculator input, .calculator button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #d2b48c;
  }

  .calculator button {
    background-color: #f5deb3;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .calculator button:hover {
    background-color: #e4cfa0;
    transform: scale(1.02);
  }

  .result {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff2cc;
    border: 1px solid #d2b48c;
    border-radius: 5px;
  }


.input-wrapper {
  position: relative;
  width: 480px; /* Breite des Eingabefeldes */
}

.input-wrapper input {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.suggestions {
  position: absolute;
  top: 0;                /* gleiche Höhe wie das Feld */
  left: 100%;            /* rechts vom Feld */
  margin-left: 6px;      /* kleiner Abstand zum Feld */
  width: 300px;          /* Breite der Vorschlagsliste */
  max-height: 140px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 14px;
  z-index: 9000;         /* über der Karte */
}

#start-suggestions {
    z-index: 9100;  /* höher als Ziel */
}

#ziel-suggestions {
    z-index: 9000;  /* niedriger als Start */
}

.suggestions div {
  padding: 6px 10px;
  cursor: pointer;
}

.suggestions div:hover {
  background-color: #f0f0f0;
}

.routing-divider {
  border: none;
  border-top: 2px solid #d2b48c;
  width: 90%;
  margin: 10px auto 20px auto;
  opacity: 0.7;
}