/* ------------------- */
/* --- anfahrt.css --- */
/* ------------------- */

@import url('variables.css');

a.btn.routenplaner-btn,
.routenplaner-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto !important;
  height: auto !important;
  line-height: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--color-white);
  background: var(--color-primary);
}
a.btn.routenplaner-btn:hover {
  cursor: pointer;
  color: var(--color-hover-text);
  background-color: var(--color-hover-background);
}
#map {
  width: 100%;
  height: 500px;
  border: 1px solid var(--color-border-soft);
  box-sizing: border-box;
}
/* Google-ähnliches Overlay */
.place-card {
  min-width: 280px;
  max-width: 340px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--color-card-shadow), 0 8px 16px var(--color-card-shadow-soft);
  padding: 12px 14px 10px 14px;
  font-family: Roboto, Arial, sans-serif;
  color: var(--color-text-heading);
  border: 1px solid var(--color-overlay-border);
  cursor: default;
  position: relative;
  margin-bottom: 35px;
}
.place-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--color-white);
  filter: drop-shadow(0 1px 1px var(--color-card-shadow-soft));
}
.place-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
  padding-right: 34px;
}
.place-address {
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  padding-right: 34px;
}
.place-feature-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.place-feature-text {
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-text-heading);
}
.google-like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--color-link-bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-link);
  padding: 0;
  flex: 0 0 auto;
}
.google-like-btn:hover {
  background: var(--color-link-bg-hover);
}
.google-like-btn svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bus-hinweis {
  font-size: 1.1em;
  color: var(--color-text-gray);
  padding-left: 2rem;
  /*text-indent: -1.5rem;*/
  white-space: normal;
  margin-bottom: 1rem;
}
.info-bubble {
  position: relative;
  background: var(--color-white);
  color: var(--color-text-heading);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--color-info-shadow);
  padding: 12px 14px 14px 14px;
  min-width: 260px;
  max-width: 300px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  pointer-events: auto;
}
.info-bubble-tail {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--color-white);
  filter: drop-shadow(0 2px 2px var(--color-info-shadow-soft));
}
.info-container {
  display: flex;
  flex-direction: column;
}
.info-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-title {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}
.info-text {
  color: var(--color-text-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  margin: 4px 0 0 0;
}
.info-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--color-link-bg-soft);
  border: 1px solid var(--color-link-border);
  color: var(--color-text-link);
  text-decoration: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.info-google-btn:hover {
  background: var(--color-link-bg-hover);
}
.info-google-svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#map-error {
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-error-border);
  background: var(--color-error-bg);
  color: var(--color-text-error);
  border-radius: 6px;
  font-size: 14px;
}