/* Regenradar – Logik in web/src/wetter/ */
.rr-main { max-width: 860px; }
#rr { margin-bottom: var(--sp-7, 48px); display: flex; flex-direction: column; gap: 16px; }
#rr [hidden] { display: none !important; }
.rr-ortbar { display: flex; gap: 10px; flex-wrap: wrap; }
.rr-suchwrap { position: relative; flex: 1 1 240px; min-width: 0; }
.rr-such { width: 100%; }
.rr-treffer { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 34px rgba(20, 24, 40, .16); padding: 6px; }
.rr-treffer-i { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; cursor: pointer; }
.rr-treffer-i:hover, .rr-treffer-i:focus-visible { background: var(--surface-2, #f3f4f6); outline: none; }
.rr-orte { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-orte:empty { display: none; }
.rr-ort { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); overflow: hidden; }
.rr-ort.an { border-color: #2563eb; background: color-mix(in srgb, #2563eb 10%, var(--surface)); }
.rr-ort-b, .rr-ort-x, .rr-merk { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.rr-ort-b { padding: 6px 4px 6px 12px; font-weight: 600; }
.rr-ort-x { padding: 6px 10px; color: var(--muted); }
.rr-merk { padding: 6px 12px; border: 1px dashed var(--border); border-radius: 999px; color: var(--muted); }

.rr-held { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #38bdf8, #2563eb); box-shadow: 0 20px 44px -22px #2563eb; }
.rr-held.rr-trocken { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 20px 44px -22px #f97316; }
.rr-held.rr-jetzt.rr-stark, .rr-held.rr-jetzt.rr-sehrstark, .rr-held.rr-kommt.rr-stark, .rr-held.rr-kommt.rr-sehrstark { background: linear-gradient(135deg, #6366f1, #312e81); }
.rr-held.rr-unbekannt { background: linear-gradient(135deg, #94a3b8, #475569); }
.rr-icon { font-size: 64px; line-height: 1; flex: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); animation: rrBob 4s ease-in-out infinite; }
.rr-satzbox { min-width: 0; }
.rr-ort-name { margin: 0; font-weight: 600; opacity: .9; overflow-wrap: anywhere; }
.rr-satz { margin: 4px 0; font-size: clamp(1.35rem, 3.6vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.rr-zusatz { margin: 4px 0 0; opacity: .92; }
.rr-stand { margin: 8px 0 0; font-size: .82rem; opacity: .85; }
.rr-neu { border: 0; background: rgba(255, 255, 255, .22); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font: inherit; }
.rr-leer { width: 100%; text-align: center; }
.rr-leer-ico { font-size: 60px; }
.rr-leer h2 { margin: 6px 0; }
.rr-leer p { max-width: 520px; margin: 6px auto 14px; }
.rr-held:has(.rr-leer) { background: var(--surface); color: var(--text); border: 2px dashed var(--border); box-shadow: none; }
@keyframes rrBob { 50% { transform: translateY(-5px); } }

.rr-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.rr-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rr-kopf h2 { margin: 0; font-size: 1.1rem; }
.rr-fein { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.rr-chart { position: relative; height: 150px; border-bottom: 1px solid var(--border); }
.rr-svg { width: 100%; height: 100%; display: block; }
.rr-unsicher { fill: var(--surface-2, #f3f4f6); opacity: .7; }
.rr-unsicher-txt { position: absolute; right: 6px; top: 4px; font-size: .75rem; color: var(--muted); }
.rr-grid { stroke: var(--border); stroke-width: .15; }
.rr-na { fill: var(--border); }
.rr-b-0 { fill: #bae6fd; }
.rr-b-leicht { fill: #60a5fa; }
.rr-b-maessig { fill: #2563eb; }
.rr-b-stark { fill: #7c3aed; }
.rr-b-sehrstark { fill: #db2777; }
.rr-achse { position: relative; height: 22px; font-size: .78rem; color: var(--muted); }
.rr-achse span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.rr-achse span:first-child { transform: none; }
.rr-achse span:last-child { transform: translateX(-100%); }
.rr-legende { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; color: var(--muted); }
.rr-skala { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #8ff0ff, #2fd3e0, #2ab34a, #c8d62a, #f2b11b, #e5311f, #b5179e); }
.rr-lg { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.rr-lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.rr-lg.rr-leicht::before { background: #60a5fa; }
.rr-lg.rr-maessig::before { background: #2563eb; }
.rr-lg.rr-stark::before { background: #7c3aed; }
.rr-lg.rr-sehrstark::before { background: #db2777; }

.rr-map { height: min(420px, 62vh); border-radius: 14px; overflow: hidden; background: #dbeafe; z-index: 0; }
.rr-steuer { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rr-play { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #2563eb; color: #fff; font-size: 1.1rem; cursor: pointer; }
.rr-play:disabled { opacity: .4; cursor: default; }
.rr-slider { flex: 1; accent-color: #2563eb; min-width: 0; }
.rr-zeit { flex: none; min-width: 120px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.rr-zeit.rr-zukunft { color: #7c3aed; }

.rr-stunden { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rr-std { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: var(--surface-2, #f8fafc); font-size: .85rem; }
.rr-std-h { color: var(--muted); font-size: .78rem; }
.rr-std-e { font-size: 1.5rem; }
.rr-std-r { font-size: .78rem; color: var(--muted); }
.rr-std-r.nass { color: #2563eb; font-weight: 700; }
.rr-tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rr-tag { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2, #f8fafc); }
.rr-tag-t { font-variant-numeric: tabular-nums; }
.rr-quellen { font-size: .82rem; color: var(--muted); margin: 0; }
.rr-quellen a { color: inherit; }
.rr-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 14px; background: #1f2937; color: #fff; transition: opacity .2s, transform .2s; }
.rr-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .rr-held { padding: 18px 16px; gap: 12px; }
  .rr-icon { font-size: 46px; }
  .rr-chart { height: 120px; }
  .rr-zeit { min-width: 92px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { .rr-icon { animation: none; } }
