/* Radio Benjamin - Chat-Widget */
#rb-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}
#rb-chat-toggle {
  background: var(--rb-red, #E04030);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
#rb-chat-toggle:hover { transform: translateY(-2px); }
#rb-chat-toggle svg { flex-shrink: 0; }
#rb-chat-panel {
  width: 340px;
  max-width: calc(100vw - 30px);
  max-height: 70vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid #E4DACC;
}
#rb-chat-panel[hidden] { display: none !important; }
#rb-chat-panel header {
  background: var(--rb-red, #E04030);
  color: white;
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px;
}
#rb-chat-close {
  background: transparent; border: none;
  color: white; font-size: 22px;
  cursor: pointer; line-height: 1;
  padding: 0 4px;
}
#rb-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #FFF8F0;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 220px;
  max-height: 380px;
}
.rb-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px; line-height: 1.45;
  word-wrap: break-word;
}
.rb-msg.guest { background: #FFEFD9; align-self: flex-start; }
.rb-msg.staff { background: var(--rb-red, #E04030); color: white; align-self: flex-end; }
.rb-msg-who { font-size: 11px; opacity: 0.7; font-weight: 700; margin-bottom: 2px; }
#rb-chat-form {
  padding: 10px 12px;
  border-top: 1px solid #E4DACC;
  display: flex; flex-direction: column; gap: 6px;
  background: white;
}
#rb-chat-name {
  padding: 6px 10px;
  border: 1px solid #E4DACC;
  border-radius: 6px;
  font: inherit; font-size: 12px;
  background: #FFF8F0;
}
.rb-chat-row { display: flex; gap: 6px; }
#rb-chat-text {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #E4DACC;
  border-radius: 8px;
  font: inherit; font-size: 14px;
}
.rb-chat-row button {
  background: var(--rb-red, #E04030);
  color: white;
  border: none;
  width: 40px; border-radius: 8px;
  font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer;
}
@media (max-width: 480px) {
  #rb-chat { right: 12px; bottom: 12px; }
  #rb-chat-toggle .rb-chat-label { display: none; }
  #rb-chat-toggle { padding: 14px; }
}

/* ===== Weather search + region filter ===== */
.wx-search {
  position: relative;
  margin-bottom: 8px;
}
.wx-search input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #E4DACC;
  border-radius: 8px;
  font: inherit; font-size: 14px;
  background: #FFF8F0;
}
.wx-search input:focus { outline: 2px solid var(--rb-red, #E04030); border-color: var(--rb-red, #E04030); background: white; }
.wx-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: white;
  border: 1px solid #E4DACC;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0; padding: 4px;
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
}
.wx-search-results li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.wx-search-results li:hover, .wx-search-results li.active {
  background: #FFEFD9;
}
.wx-search-results li .meta {
  color: #5A6478; font-size: 11px; margin-top: 2px;
}
.wx-search-results li.empty { color: #5A6478; font-style: italic; cursor: default; }
.wx-search-results li.empty:hover { background: transparent; }

.wx-quick {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 6px 0 12px;
}
.wx-quick button {
  background: white;
  border: 1px solid #E4DACC;
  border-radius: 16px;
  padding: 4px 10px;
  font: inherit; font-size: 12px;
  color: #1A2238;
  cursor: pointer;
  transition: all 0.15s;
}
.wx-quick button:hover { background: #FFEFD9; }
.wx-quick button.active {
  background: var(--rb-red, #E04030);
  color: white;
  border-color: var(--rb-red, #E04030);
}

.traffic-filter {
  margin: 8px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.traffic-filter label {
  font-size: 13px;
  color: #5A6478;
  font-weight: 600;
}
.traffic-filter select, .traffic-filter input[type="text"] {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #E4DACC;
  border-radius: 8px;
  font: inherit; font-size: 13px;
  background: #FFF8F0;
  min-width: 0;
}
.src-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.src-tag.src-autobahn { background: #FFEFD9; color: #B23A1A; }
.src-tag.src-redaktion { background: #DDE7FA; color: #2A5BD0; }
.info-panel-wide { grid-column: 1 / -1; }
.verkehr-counts { font-weight: 600; }
