.wtr-svg { width: 1em; height: 1em; flex-shrink: 0; }

.leaflet-control.wtr-karten-ctl { clear: none; }
.wtr-karten-ctl[hidden], .wtr-ls-chip-box[hidden], .wtr-ls-karte[hidden] { display: none !important; }
html.el-karte-aus .wtr-karten-ctl { display: none !important; }

.wtr-chip {
  --wtr-ton: #9aa0ad;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 19, 0.88);
  color: #e6e8ee;
  font: 600 12.5px/1 "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, system-ui, sans-serif;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 28px -14px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, background 0.2s;
}
.wtr-chip:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.22); }
.wtr-chip:focus-visible { outline: 2px solid #5b8cff; outline-offset: 2px; }
.wtr-chip-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #a9c0ff;
  background: rgba(91, 140, 255, 0.16);
}
.wtr-chip-ico .wtr-svg { width: 16px; height: 16px; }
.wtr-chip b { font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: #fff; }
.wtr-chip em {
  max-width: 130px;
  overflow: hidden;
  font-style: normal;
  font-weight: 550;
  color: #a3a9b6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wtr-chip-punkt {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wtr-ton);
  box-shadow: 0 0 0 2px #0c0e13, 0 0 10px var(--wtr-ton);
}
.wtr-chip.wtr-unwetter { border-color: color-mix(in srgb, var(--wtr-ton) 60%, transparent); }
.wtr-chip.wtr-unwetter .wtr-chip-ico { color: var(--wtr-ton); background: color-mix(in srgb, var(--wtr-ton) 20%, transparent); }

.wtr-ls-chip-box { display: inline-flex; }
.wtr-chip.wtr-ls-chip {
  height: 38px;
  padding: 0 13px 0 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.el-wetter-leiste { display: flex; align-items: center; gap: 12px; cursor: pointer; }
html.el-pro .el-wetter-leiste.el-hinweisleiste { order: 2; }
body > .el-wetter-leiste:not(.el-hinweisleiste) {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 8600;
  box-sizing: border-box;
  width: min(600px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: #0e1016;
  color: #eceef3;
  font-size: 12.5px;
  box-shadow: inset 3px 0 0 var(--el-ton, #ff3d52);
  transform: translateX(-50%);
}
.wtr-leiste-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--el-ton, #ff3d52);
  background: color-mix(in srgb, var(--el-ton, #ff3d52) 15%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--el-ton, #ff3d52) 30%, transparent) inset;
}
.wtr-leiste-ico .wtr-svg { width: 18px; height: 18px; }
.wtr-leiste-text { flex: 1; min-width: 0; line-height: 1.45; }
.wtr-leiste-text b { color: #fff; font-weight: 700; }
.wtr-leiste-zu {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #9aa0ad;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wtr-leiste-zu:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.wtr-leiste-zu .wtr-svg { width: 14px; height: 14px; }

.wtr-ls-karte { position: relative; flex-shrink: 0; gap: 10px; overflow: hidden; padding-left: 18px; }
.wtr-ls-karte::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff8a3d, #ff3d52);
}
.wtr-ls-karte h4 { margin-bottom: 0; }
.wtr-ls-karte h4 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtr-ls-karte h4 .wtr-svg { width: 14px; height: 14px; color: #ff8a3d; }

.wtr-pillen { display: flex; flex-wrap: wrap; gap: 6px; }
.wtr-pille {
  --wtr-ton: #9aa0ad;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wtr-ton) 40%, transparent);
  background: color-mix(in srgb, var(--wtr-ton) 14%, transparent);
  color: var(--wtr-ton);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wtr-pille .wtr-svg { width: 13px; height: 13px; }
.wtr-pille b { color: #fff; font-variant-numeric: tabular-nums; }

.wtr-warnliste { display: flex; flex-direction: column; gap: 6px; }
.wtr-warn {
  --wtr-ton: #f5c451;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 3px 0 0 var(--wtr-ton);
}
.wtr-warn-stufe {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wtr-ton) 14%, transparent);
  color: var(--wtr-ton);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wtr-warn-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wtr-warn-text b { color: #eceef3; font-size: 12.5px; font-weight: 650; }
.wtr-warn-text small { color: #9ba1af; font-size: 11px; }

.wtr-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; color: #8a90a0; font-size: 11px; }
.wtr-mehr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: #e6e8ee;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wtr-mehr:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.wtr-mehr .wtr-svg { width: 13px; height: 13px; }

.wtr-panel { display: flex; flex-direction: column; gap: 12px; }
.wtr-held {
  --wtr-ton: #9aa0ad;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 16px;
  padding: 18px 18px 16px 22px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(91, 140, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-card, #12151c);
}
.wtr-held::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #5b8cff, var(--wtr-ton));
}
.wtr-held-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #b9cbff;
  background: rgba(91, 140, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.3) inset, 0 10px 26px -12px rgba(91, 140, 255, 0.7);
}
.wtr-held-ico .wtr-svg { width: 34px; height: 34px; }
.wtr-held-haupt { min-width: 0; }
.wtr-held-temp { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wtr-held-text { margin-top: 3px; color: #b6bcc8; font-size: 13px; }
.wtr-held-werte { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: #9ba1af; font-size: 12px; }
.wtr-held-werte span { display: inline-flex; align-items: center; gap: 5px; }
.wtr-held-werte .wtr-svg { width: 14px; height: 14px; color: #8fa9ff; }
.wtr-held-werte b { color: #e6e8ee; }

.wtr-info { margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(91, 140, 255, 0.25); background: rgba(91, 140, 255, 0.08); color: #c3c7d1; font-size: 12.5px; }
.wtr-h { margin: 6px 0 0; color: #9ba1af; font-size: 11px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }

.wtr-wirkung { display: flex; flex-direction: column; gap: 8px; }
.wtr-wirkung-zeile {
  --wtr-ton: #9aa0ad;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 3px 0 0 var(--wtr-ton);
}
.wtr-wirkung-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--wtr-ton);
  background: color-mix(in srgb, var(--wtr-ton) 15%, transparent);
}
.wtr-wirkung-ico .wtr-svg { width: 18px; height: 18px; }
.wtr-wirkung-zeile > div { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.wtr-wirkung-zeile b { color: #eceef3; font-size: 13px; }
.wtr-wirkung-zeile small { color: #9ba1af; font-size: 11.5px; }
.wtr-wirkung-zeile em {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c451, #e39a1c);
  color: #1d1303;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 18px -10px rgba(227, 154, 28, 0.9);
}

.wtr-leer { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); color: #9ba1af; font-size: 12.5px; }
.wtr-quelle { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #8a90a0; font-size: 11px; }

.wtr-einsatz-chip {
  --wtr-ton: #5b8cff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wtr-ton) 50%, transparent);
  background: color-mix(in srgb, var(--wtr-ton) 14%, transparent);
  color: var(--wtr-ton);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}
.wtr-einsatz-chip.klein { padding: 0 6px; font-size: 10px; }
.wtr-einsatz-chip .wtr-svg { width: 12px; height: 12px; }

@media (max-width: 600px) {
  .wtr-chip em { max-width: 92px; }
  .wtr-leiste-ico { width: 30px; height: 30px; }
  .el-wetter-leiste { gap: 9px; }
  .wtr-held { gap: 4px 12px; padding: 14px 14px 12px 18px; }
  .wtr-held-ico { width: 48px; height: 48px; }
  .wtr-held-ico .wtr-svg { width: 28px; height: 28px; }
  .wtr-held-temp { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .wtr-chip, .wtr-mehr, .wtr-leiste-zu { transition: none; }
}
