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;
}

.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;
}

/* WindAtlas */
html {
  font-size: 15px;
}

.filter .form-label {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  color: var(--bs-secondary-color);
}

table.units th a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

table.units tr.removed td {
  opacity: 0.6;
}

table.kv th {
  width: 40%;
  font-weight: 500;
  color: var(--bs-secondary-color);
}

details > summary.card-header {
  cursor: pointer;
}

/* Chronik: Zeilenumbrüche im Text erhalten */
.journal-text {
  white-space: pre-wrap;
}

/* Karte */
.map {
  position: relative;
  height: calc(100vh - 230px);
  min-height: 420px;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--bs-border-radius);
}

.map-legend {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.map-legend .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 0.4rem;
  border-radius: 50%;
  vertical-align: -1px;
  border: 1px solid #fff;
}

.map-legend .dot.ring {
  background: #fff;
  border: 2.5px solid #fd7e14;
}

.map-legend .dot.ring.single {
  border: 3px solid #212529;
}

.map-legend .dot.own {
  background: #dc3545;
}

.map-popup table th {
  font-weight: 500;
  color: var(--bs-secondary-color);
  padding-right: 0.5rem;
  white-space: nowrap;
}

.map-popup table {
  font-size: 0.85rem;
}

.maplibregl-popup-content {
  padding: 10px 12px;
}