html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body.fullscreen-body {
  margin-bottom: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.fullscreen-body main {
  flex: 1 1 auto;
  min-height: 0;
}

.map-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.map-toolbar {
  background-color: rgba(248, 249, 250, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  position: relative;
  padding-left: 0.75rem; /* Abstand der Buttons zum linken Rand */
  padding-right: 130px; /* Platz für das oben rechts fixierte Logo */
}

.map-btnbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Buttons im Stil des Telerik/Kendo "Default"-Themes */
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 8.25rem;
  white-space: nowrap;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.4285714286;
  letter-spacing: 0.01em;
  color: #424242;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.04));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.map-btn:hover:not(:disabled) {
  border-color: rgba(0, 0, 0, 0.12);
  color: #424242;
}

.map-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.map-btn:active:not(:disabled) {
  box-shadow: none;
}

.map-btn:disabled {
  opacity: 0.6;
  filter: grayscale(0.1);
  box-shadow: none;
  pointer-events: none;
}

/* Primäraktionen: Telerik/Kendo-Blau (Ocean Blue) */
.map-btn-primary {
  color: #ffffff;
  border-color: #0275d8;
  background-color: rgba(2, 117, 216, 0.92);
}

.map-btn-primary:hover:not(:disabled) {
  border-color: #0264b8;
  background-color: #0264b8;
  color: #ffffff;
}

.map-btn-primary:focus-visible {
  box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.3);
}

/* Sekundäraktion (Aktualisieren): Telerik-Base */
/* Emoji-Icons einfarbig weiß darstellen (auf dunklen Buttons) */
.map-btn .map-btn-icon {
  filter: grayscale(1) brightness(0) invert(1);
}

/* Auf dem hellen Sekundär-Button dunkelgrau statt weiß */
.map-btn-secondary .map-btn-icon {
  filter: grayscale(1) brightness(0.35);
}

.map-btn-secondary {
  background-color: rgba(245, 245, 245, 0.92);
}

.map-btn-secondary:hover:not(:disabled) {
  background-color: #ebebeb;
}

/* Kritische Aktion (Neustart): Telerik-Error */
.map-btn-danger {
  color: #ffffff;
  border-color: #f31700;
  background-color: rgba(243, 23, 0, 0.92);
}

.map-btn-danger:hover:not(:disabled) {
  border-color: #df1600;
  background-color: #df1600;
  color: #ffffff;
}

.map-btn-danger:focus-visible {
  box-shadow: 0 0 0 2px rgba(243, 23, 0, 0.3);
}

.map-logo {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  height: 32px;
}

.map-statusbar {
  background-color: rgba(73, 80, 87, 0.65);
  min-height: 30px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#map {
  width: 100%;
  min-height: 0;
}

.marker-info {
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 280px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}