
:root{--bg:#f0f5fa;--card:#fff;--pri:#005699}
html{font-family:system-ui,sans-serif;background:var(--bg)}
body{margin:0;padding:1rem;display:flex;flex-direction:column;min-height:100vh}
header{text-align:center;margin-bottom:1rem}
h1{margin:0 0 .3rem;color:var(--pri)}
.timestamp{font-size:.9rem;color:#555}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr))}
.card{background:var(--card);padding:1rem;border-radius:.75rem;box-shadow:0 2px 4px #0001;text-align:center}
h2{margin:0 0 .4rem;font-size:1rem;color:var(--pri);font-weight:600}
p{margin:0;font-size:1.6rem;font-weight:700}.unit{font-size:.9rem;margin-left:.15em;color:#333}
/* toggle switch */
.switch{position:relative;display:inline-block;width:50px;height:24px;margin-bottom:.5rem}
.switch input{opacity:0;width:0;height:0}
.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#ccc;border-radius:24px;transition:.4s}
.slider:before{position:absolute;content:'';height:18px;width:18px;left:3px;bottom:3px;background:white;border-radius:50%;transition:.4s}
input:checked + .slider{background:#2196F3}
input:checked + .slider:before{transform:translateX(26px)}
.storm.green{background:#e6f9e6;color:#087f23}.storm.orange{background:#fff4e5;color:#ad5b00}.storm.red{background:#ffe6e6;color:#b00020}.storm.yellow{background:#ffffe0;color:#8a6d00}
/* Windrichtungspfeil */
.dir .arrow{
  width:0;height:0;margin:0.6rem auto;
  border:0.65rem solid transparent;
  border-bottom:1rem solid var(--pri);
  transition:.3s;
}
