.leaflet-control-attribution {
        font-size: 11px !important;
        padding: 0 3px !important;
      }


.leaflet-control-attribution a
 {
    font-size: 11px !important;
}

.leaflet-popup-content-wrapper
 {
    padding: 1px;
    text-align: left;
    border-radius: 4px;
background-color: #f2f7f3 !important;
color: #32834a !important;
font-weight: 600 !important;
border: none !important;

}

.leaflet-container a.leaflet-popup-close-button {
display: none !important;
}

.leaflet-popup-tip {
background-color: #f2f7f3 !important;
}

.bslib-value-box {
  padding: 0px !important;
}

.bslib-value-box .card-body{
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

/* Textbereich */
.sparklines .value-box-area {
  /*padding: 25px 16px 0px 26px !important;*/
   padding: 25px 16px 25px 26px !important;
}
.rain .value-box-area {
  padding: 25px 16px 18px 26px !important;
}

.value-box p.value-box-value {
    margin-bottom: 0px !important;
}
.btn{
color: black !important;
border: 1px solid #a5a5a5 !important;

}
.bslib-value-box .value-box-showcase {
  max-height: none !important;
}

.chart-buttons {
  align-items: center !important;
  display: inline-grid !important;
  grid-auto-flow: column !important;
  justify-content: flex-start !important;
  /*display: inline-flex !important;*/
  margin-left: auto !important;
  margin-right: 10px !important;
  gap: 2px !important;
  padding: .55em .75em .45em !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #1e4557 !important;
  background-color: #f8f8f8 !important;
  border: 1px solid #1e4557 !important;
  min-height: 30px !important;
  border-radius: 15px !important;
  text-decoration: none !important;
}

.chart-buttons:hover {
  color: white !important;
  background-color: #0e81a7 !important;
}

.chart-buttons.active {
  color: white !important;
  background-color: #0e81a7 !important;
}


.value-box-details {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.value-box-details-content {
  order: 1;
  padding-bottom: 12px;
}

.value-box-details summary {
  order: 2;
  list-style: none;
  cursor: pointer;
  
  background-color: none;
  color: #a5a5a5;              /* dunkles Petrol/Teal, an dein Bild angepasst */
  border-top: 1px solid #e2e5e9;
  border-radius: 8px;
  
  font-weight: 400;
  font-size: 12px;
  
  padding: 5px 14px;
  
  display: flex;
  align-items: center;
  justify-content: center;  /* Text links, Pfeil rechts */
  gap: 10px !important;
  user-select: none;
}

.value-box-details summary::-webkit-details-marker,
.value-box-details summary::marker {
  display: none;
}

.value-box-details summary .arrow-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
  color: #a5a5a5;
}

.value-box-details[open] summary .arrow-icon {
  transform: rotate(180deg);
}

.temprange-list {
  list-style: none;
  margin: 0;
  padding: 0 14px;
  height: 193px;
  overflow-y: scroll;
}

.temprange-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
  font-size: 0.85rem;
}

.temprange-list-item:last-child {
  border-bottom: none;
}

.temprange-name {
  color: #1a3a4a;
}

.temprange-value {
  font-weight: 600;
  color: #1a3a4a;
}

/* Maximale Breite der Inhalte in Abhängigkeit der Bildschirmgrösse*/
@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1350px !important;
  }
}

@media (min-width: 1400px) {
  .full-width-inner {
    max-width: 1350px !important;
  }
}

@media (min-width: 1400px) {
  .footer-inner {
    max-width: 1350px !important;
  }
}

h1{
  margin-top: 15px !important;
}

.nav-underline{
  margin-left: 35px !important;
  margin-bottom: 15px !important;
  gap: 5px !important;
}

.nav-underline .nav-link {
    font-size: 14px !important;
    margin-top: 0px !important;
}

a.credits-link {
  font-size: 14px;
  color: #1e4557;
    color: #1e4557;
  text-decoration: underline !important;
}

a{
  font-size: 14px !important;
}


.selectize-control {
  position: relative; /* Bezugsrahmen fürs Dropdown */
  width: 100% !important;
}

.selectize-input {
  height: 48px !important;
  width: 100% !important;
  line-height: 32px;
  box-sizing: border-box !important;
  padding: 6px 20px;
  border: 1px solid #1e4557 !important;
  border-radius: 9999px !important;
  color: #777;
  font-size: 14px;
  /*outline: none;*/
  background-image: none !important;
}

.selectize-dropdown,
.selectize-dropdown.form-control {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

.selectize-control {
  position: relative !important;
}

.selectize-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0;
  width: 100% !important;
  z-index: 1050 !important; /* über Bootstrap-Komponenten, ggf. anpassen */
}

.shiny-html-output.recalculating,
.shiny-html-output.shiny-output-error {
  opacity: 1 !important;
  transition: none !important;
}

.selectize-control .clear {
  width: 20px !important;
  height: 20px !important;
  right: 20px !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  font-size: 14px !important;
  text-align: center !important;
  line-height: 20px !important;
}

:root {
  --accent: rgb(145, 86, 180);
  --radius: 24px; /* = Höhe des Inputs / 2, siehe Schritt 2 */
}
:root {
  --line: 0 0 0 1px rgb(145, 86, 180) !important;
  --shadow: 0px 2px 12px 2px #D7BDEA, 0px 2px 12px 2px #F4EDFA, 0px 2px 12px 2px #ffffff !important;
}

.selectize-input.focus {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow) !important;
}

.selectize-dropdown {
  border: 1px solid var(--accent) !important;
  border-top: none !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: var(--shadow) !important;
  margin-top: 0 !important;
}

.selectize-control.single {
  position: relative;
  width: 100% !important;
  font-size: 16px !important;
}

/* nur sichtbar, wenn Selectize das Dropdown öffnet
   (Selectize setzt automatisch die Klasse .dropdown-active) */
.selectize-control.single.dropdown-active::before,
.selectize-control.single.dropdown-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: var(--radius);
  height: var(--radius);
  z-index: 5;
  pointer-events: none;
}

.selectize-control.single.dropdown-active::before {
  left: 0;
  background:
    radial-gradient(
      circle at top left,
      transparent calc(var(--radius) - 1px),
      #ffffff calc(var(--radius))
    );
}

.selectize-control.single.dropdown-active::after {
  right: 0;
  background:
    radial-gradient(
      circle at top right,
      transparent calc(var(--radius) - 1px),
      #ffffff calc(var(--radius))
    );
}

.selectize-dropdown .option {
  color: #1E4557 !important;
  font-size: 14px !important;
  padding-left: 20px !important;
  padding-bottom: 10px !important;
}


.selectize-control.force-square-bottom .selectize-input {
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: 1px solid #eef0f2 !important;
  margin-right: 1px !important;
  margin-left: 1px !important;
}

.temp-legend-wrap {
  display: none;
  background: transparent;
  box-shadow: none;
}
.temp-legend-wrap.open {
  display: flex;
}
.temp-legend-arrow {
  display: inline-flex;
  transition: transform 0.25s ease;
}
.temp-legend-arrow.rotated {
  transform: rotate(180deg);
}

.recalculating {
  opacity: 1 !important;
  transition: none !important;
}

.bslib-grid.search-row {
  margin-bottom: 25px !important;
}

@media (max-width: 1211px) {
    .bslib-grid {
        grid-template-columns: 1fr !important;
    }
}


.value-box-grid {
  display: grid;
  align-items: start !important;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bslib-spacer, 1rem);
}

@media (max-width: 768px) {
  .value-box-grid {
    grid-template-columns: 1fr;
  }
}

.value-box-grid > .card,
.value-box-grid > .bslib-value-box {
  height: fit-content !important;
  align-self: start !important;
}

.temp-legend-toggle .open-icon {
  display: none;
}

.temp-legend-arrow.rotated .closed-icon {
  display: none;
}

.temp-legend-arrow.rotated .open-icon {
  display: inline;
}

.leaflet-touch .leaflet-bar button {
    width: 25px !important;
    height: 30px;
    line-height: 30px;
}

.leaflet-top.leaflet-right .easy-button-container {
  margin-top: 10px !important;
  margin-right: 10px !important;
}

.temp-legend-wrap {
  position: absolute;
  top: 45px;
  right: 2px;     /* statt 10px */
  z-index: 1000;
}
.temp-legend-wrap:not(.open) {
  display: none;
}

.temp-btn-off {
  position: relative;
}

.temp-btn-off::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 30%;
  width: 20px;
  height: 2px;
  background: black;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 1;
}

/* Styling für den Link im Popup (mit grösserer Schrift) */
.a-big {
  text-decoration: none !important;
  font-size: 18px !important;
  border-bottom: 1px solid rgb(186 186 186);
}

.a-big:hover {
  color: #079bca !important;
}

@media (max-width: 1024px) {
  .a-big {
    font-size: 16px !important;
  }
}

.a-small {
  text-decoration: none !important;
  font-size: 14px !important;
  border-bottom: 1px solid rgb(186 186 186);
}

.a-small:hover {
  color: #079bca !important;
}

@media (max-width: 1024px) {
  .a-small {
    font-size: 14px !important;
  }
}