@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;900&display=swap');

:root {
  --page-max-width: 480px;
  --screen-pad: 9px;
  --gap: 10px;
  --nav-height: 76px;

  --bg-0: #020814;
  --bg-1: #05172b;
  --bg-2: #063869;
  --bg-3: #075a94;

  --panel: rgba(235, 247, 255, 0.82);
  --panel-strong: rgba(247, 252, 255, 0.91);
  --panel-blue: rgba(10, 42, 86, 0.72);
  --panel-border: rgba(255, 255, 255, 0.62);

  --ink: #07194a;
  --muted: rgba(7, 25, 74, 0.63);
  --white-muted: rgba(255,255,255,0.72);

  --blue: #137bff;
  --blue-2: #1bb8ff;
  --blue-dark: #061a56;
  --cyan: #33d4ff;
  --ok: #5df02e;
  --warn: #ffc527;
  --alarm: #ff3636;

  --radius-xl: 20px;
  --radius-lg: 17px;
  --radius-md: 13px;

  --shadow-deep: 0 24px 58px rgba(0, 8, 28, 0.58);
  --shadow-card: 0 14px 30px rgba(0, 20, 58, 0.26), inset 0 1px 0 rgba(255,255,255,0.55);
  --shadow-soft: 0 8px 22px rgba(0, 29, 74, 0.20), inset 0 1px 0 rgba(255,255,255,0.55);

  --header-height: 60px;
  --hero-height: 300px;
  --air-height: 66px;
  --water-height: 122px;
  --info-height: 118px;
  --status-height: 108px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #01050d;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body { display: flex; justify-content: center; }

.pool-dashboard {
  width: 100%;
  max-width: var(--page-max-width);
  min-height: 100svh;
  position: relative;
  padding: var(--screen-pad) var(--screen-pad) calc(var(--nav-height) + 12px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -4%, rgba(65, 187, 255, 0.42), transparent 28%),
    radial-gradient(circle at 8% 30%, rgba(19, 123, 255, 0.28), transparent 28%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 18%, var(--bg-2) 55%, #031831 100%);
}

.pool-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  pointer-events: none;
}

.block { position: relative; z-index: 1; }

.top-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 13px 11px;
  color: #fff;
}

.brand-title {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: rgba(240,248,255,0.95);
  text-shadow: 0 0 18px rgba(110,196,255,0.36), 0 2px 2px rgba(0,0,0,0.45);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(7, 22, 52, 0.76);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(151, 195, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 8px 18px rgba(0,0,0,0.22);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--alarm);
  box-shadow: 0 0 0 5px rgba(255, 48, 48, 0.14), 0 0 17px rgba(255, 48, 48, 0.9);
}

.live-badge.is-online .live-dot {
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(93, 240, 46, 0.14), 0 0 17px rgba(93, 240, 46, 0.95);
}

.hero-card {
  height: var(--hero-height);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #063d72, #0b86cf);
  border: 1px solid rgba(137, 205, 255, 0.52);
  box-shadow: var(--shadow-deep);
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04) brightness(0.88);
  transform: scale(1.012);
}

.hero-image.is-missing {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 13, 44, 0.78) 0%, rgba(0, 22, 58, 0.42) 33%, rgba(0,0,0,0.02) 72%),
    linear-gradient(180deg, rgba(3, 18, 48, 0.08) 0%, rgba(3, 18, 48, 0.08) 43%, rgba(3, 18, 48, 0.54) 100%);
}

.hero-clock {
  position: absolute;
  right: 16px;
  top: 17px;
  color: #061944;
  font-family: "Courier New", monospace;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.45;
  text-align: right;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(218,244,255,0.22);
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 14px rgba(255,255,255,0.84);
}

.solar-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 95px;
  padding: 10px 10px;
  color: #fff;
  background: rgba(6,33,88,0.40);
  backdrop-filter: blur(2px);
  /* background: rgba(6,33,88,0.42);*/
/*    radial-gradient(circle at 50% 0%, rgba(40, 149, 255, 0.28), transparent 44%), */
/*    linear-gradient(180deg, rgba(6, 33, 88, 0.93), rgba(3, 18, 55, 0.80)); */
 /* background: rgba(6,33,88,0.42); */
  /* border-right: 1px solid rgba(154, 211, 255, 0.34); */
  /*backdrop-filter: blur(9px);
  box-shadow: 13px 0 30px rgba(0, 11, 35, 0.34); */
}

.power-button {
  width: 58px;
  height: 58px;
  margin: 0 auto 9px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,0.43);
  background: radial-gradient(circle at 50% 36%, rgba(255,255,255,0.22), rgba(0,20,63,0.62));
  color: #fff;
  font-size: 33px;
  font-weight: 900;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.11), 0 8px 18px rgba(0,0,0,0.25);
}

.mode-pill {
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(224,242,255,0.90));
  color: var(--blue-dark);
  font-size: 23px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.mode-pill.is-on { color: #0a8e33; }
.mode-pill.is-off { color: var(--blue-dark); }
.mode-pill.is-error { color: var(--alarm); }

.solar-title {
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.18;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.88);
}

.solar-gauge {
  width: 34px;
  height: 124px;
  margin: 0 auto 7px;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 6px;
  overflow: hidden;
  background: repeating-linear-gradient(to top, rgba(255,255,255,0.18) 0 21px, rgba(255,255,255,0.48) 22px 23px);
  display: flex;
  align-items: flex-end;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.22);
}

.solar-gauge-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, #54df40 0%, #bdff22 48%, #ffc727 100%);
  transition: height 0.5s ease;
}

.solar-percent {
  text-align: center;
  font-size: 25px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.solar-flow-layer {
  position: absolute;
  left: 116px;
  top: 44px;
  bottom: 126px;
  width: 128px;
  pointer-events: none;
  opacity: 0.94;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.32));
}

.pipe {
  position: absolute;
  width: 24px;
  height: 260px;
  border-radius: 9px;
  overflow: hidden;
}

.pipe span {
  position: absolute;
  inset: 0;
  background-size: 100% 45px;
  animation: pipeFlow 1.3s linear infinite;
}

.pipe-hot {
  right: 10px;
  top: 0;
  background: linear-gradient(180deg, #ff1717, #ff2a1f 58%, #ff870e);
}

.pipe-hot span {
  background-image: linear-gradient(180deg, transparent 0 50%, #ffe90a 52% 66%, transparent 68% 100%);
}

.pipe-cold {
  left: 10px;
  bottom: 0;
  background: linear-gradient(180deg, #003bb7, #0066ff 52%, #13baff);
}

.pipe-cold span {
  background-image: linear-gradient(180deg, transparent 0 50%, #9ce9ff 52% 66%, transparent 68% 100%);
  animation-direction: reverse;
}

.quick-strip,
.glass-card,
.bottom-nav {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(220,240,253,0.72));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.quick-strip {
  position: absolute;
  left: 8px;
  right: 208px;
  bottom: 8px;
  height: 72px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.quick-item {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: var(--blue-dark);
  border-right: 1px solid rgba(7, 26, 69, 0.15);
}

.quick-item:last-child { border-right: 0; }
.quick-item strong { font-size: 20px; line-height: 1; }
.quick-item span { font-size: 11px; color: var(--muted); font-weight: 800; }
.quick-item.emphasis strong { color: var(--alarm); }

.quick-icon {
  width: 23px;
  height: 23px;
  position: relative;
  display: block;
}

.quick-icon.sun::before,
.quick-icon.moon::before,
.quick-icon.rise::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.quick-icon.sun::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 42%, #ffc400 44% 50%, transparent 52%);
}
.quick-icon.moon::before {
  border-color: var(--blue-dark);
  box-shadow: 6px 0 0 -1px rgba(235,247,255,0.90) inset;
}
.quick-icon.rise::before {
  border-radius: 0;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-14deg);
}

.glass-card {
  border-radius: var(--radius-lg);
}

.temperature-card {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 198px;
  height: 116px;
  padding: 14px 14px 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.temp-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.eyebrow {
  display: block;
  color: rgba(7, 25, 74, 0.58);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.hero-temp {
  color: var(--blue-dark);
  font-size: 57px;
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: -0.085em;
}

.hero-temp small {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-left: 4px;
}

.target-reached {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ok);
  opacity: 0.88;
  text-transform: uppercase;
}

.temp-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 16%, transparent 17%),
    linear-gradient(180deg, #22cbff, #126bff);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.40), 0 8px 16px rgba(18,116,255,0.26);
  position: relative;
}

.temp-badge::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 7px;
  width: 4px;
  height: 16px;
  background: #fff;
  border-radius: 99px;
}

.temp-stats {
  display: grid;
  gap: 2px;
  text-transform: uppercase;
  font-weight: 900;
}

.temp-stats div {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: baseline;
}

.temp-stats span { color: var(--alarm); font-size: 11px; }
.temp-stats strong { color: var(--blue); font-size: 14px; }

.air-card,
.water-card,
.info-card,
.status-card {
  margin-top: var(--gap);
}

.air-card {
  height: var(--air-height);
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  padding: 0 14px;
  overflow: hidden;
}

.section-label {
  color: var(--blue-dark);
  text-transform: uppercase;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.air-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.air-metrics div {
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.56);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: inset 0 0 0 1px rgba(7,26,69,0.07);
}

.air-metrics strong { color: var(--blue-dark); font-size: 23px; }
.mini-icon {
  width: 18px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 99px 99px 12px 12px;
  position: relative;
}
.mini-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 9px;
  background: currentColor;
  border-radius: 8px;
}
.mini-icon.warm { color: #ff8200; }
.mini-icon.hot { color: var(--alarm); }
.mini-icon.cold { color: var(--blue); }

.water-card {
  height: var(--water-height);
  padding: 10px 14px;
  display: grid;
  gap: 6px;
}

.quality-row {
  display: grid;
  grid-template-columns: 34px 42px 1fr 64px;
  gap: 10px;
  align-items: center;
}

.quality-icon {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.42), 0 8px 16px rgba(18,116,255,0.16);
}

.quality-icon.ph { background: linear-gradient(135deg, #23d6ff, #126bff); }
.quality-icon.cl { background: linear-gradient(135deg, #53e557, #13a231); }
.quality-label { color: var(--blue-dark); font-size: 18px; font-weight: 900; }

.quality-track {
  position: relative;
  height: 9px;
  border-radius: 99px;
  background: rgba(7, 26, 69, 0.12);
}

.quality-track span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff1d1d, #ff8b00 30%, #ffe200 52%, #48d844);
  transition: width 0.45s ease;
}

.quality-track em {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 13px solid rgba(255,255,255,0.96);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
  transform: translateX(-50%);
  transition: left 0.45s ease;
}

.quality-row strong {
  color: var(--blue-dark);
  font-size: 25px;
  font-weight: 900;
  text-align: right;
}

.quality-row strong small {
  display: block;
  font-size: 12px;
  line-height: 0.9;
}

.info-card {
  height: var(--info-height);
  padding: 12px 14px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
}

.info-top,
.info-bottom {
  display: grid;
  align-items: center;
}

.info-top { grid-template-columns: 1fr 1fr 1.08fr; border-bottom: 1px solid rgba(7,26,69,0.15); padding-bottom: 8px; }
.info-bottom { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.info-tile,
.info-bottom div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
  align-items: center;
  border-right: 1px solid rgba(7,26,69,0.15);
  padding-right: 8px;
}

.info-tile:last-child,
.info-bottom div:last-child { border-right: 0; }
.info-icon {
  width: 29px;
  height: 29px;
  grid-row: span 2;
  position: relative;
}
.info-tile.solar-eff .info-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid #ffbf00;
  box-shadow: 0 0 0 6px rgba(255,191,0,0.12);
}
.info-tile.heating .info-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 20px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #ff3b22, #ffb000);
}
.info-tile.trend .info-icon::before {
  content: "";
  position: absolute;
  inset: 8px 3px 6px;
  border-right: 3px solid var(--blue);
  border-top: 3px solid var(--blue);
  transform: rotate(38deg);
}
.info-tile span:not(.info-icon), .info-bottom span { color: var(--blue-dark); font-size: 10px; text-transform: uppercase; font-weight: 900; }
.info-tile strong, .info-bottom strong { color: var(--blue-dark); font-size: 17px; font-weight: 900; }
.info-tile.trend strong { color: var(--blue); font-size: 14px; }

.status-card {
  height: var(--status-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}

.status-symbol {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
  border: 2px solid rgba(18,116,255,0.22);
  background: rgba(18,116,255,0.08);
}

.status-card h2 { margin: 5px 0 2px; color: var(--blue-dark); font-size: 21px; }
.status-card p { margin: 0; color: var(--muted); font-size: 13px; }
.status-card.warn .status-symbol { color: var(--warn); border-color: rgba(255,191,33,0.35); background: rgba(255,191,33,0.12); }
.status-card.alarm .status-symbol { color: var(--alarm); border-color: rgba(255,48,48,0.35); background: rgba(255,48,48,0.12); }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 18px), calc(var(--page-max-width) - 18px));
  height: 66px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 5px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,252,255,0.91), rgba(219,239,253,0.80));
}

.bottom-nav a {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #273b61;
  text-decoration: none;
  border-right: 1px solid rgba(7,26,69,0.13);
  border-radius: 14px;
}

.bottom-nav a:last-child { border-right: 0; }
.bottom-nav a.active { background: rgba(18,116,255,0.13); color: var(--blue); }
.bottom-nav span { width: 25px; height: 25px; position: relative; }
.bottom-nav small { font-size: 10px; text-transform: uppercase; font-weight: 900; }

.nav-home::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 13px;
  background: currentColor;
  border-radius: 3px;
}
.nav-home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 17px;
  height: 17px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
}
.nav-chart::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 5px;
  width: 18px;
  height: 14px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.nav-chart::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 9px;
  width: 15px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: skew(-28deg);
}
.nav-water::before {
  content: "";
  position: absolute;
  inset: 3px 5px 2px;
  background: currentColor;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
}
.nav-gear::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 5px dashed currentColor;
}
.nav-gear::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
}
.nav-bell::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 5px;
  bottom: 6px;
  border: 3px solid currentColor;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 0;
}
.nav-bell::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
}

@keyframes pipeFlow {
  from { background-position-y: 0; }
  to { background-position-y: 45px; }
}

@media (max-height: 850px) {
  :root {
    --hero-height: 360px;
    --air-height: 60px;
    --water-height: 96px;
    --info-height: 108px;
    --status-height: 90px;
    --gap: 8px;
  }

  .brand-title { font-size: 21px; }
  .solar-gauge { height: 108px; }
  .pipe { height: 230px; }
  .quick-strip { height: 64px; right: 194px; }
  .temperature-card { width: 184px; height: 106px; }
  .hero-temp { font-size: 50px; }
  .temp-stats span { font-size: 10px; }
  .temp-stats strong { font-size: 13px; }
  .status-card h2 { font-size: 19px; }
  .status-card p { font-size: 12px; }
}

@media (max-width: 390px) {
  .brand-title { letter-spacing: 0.25em; font-size: 20px; }
  .solar-overlay { width: 50px; }
  .solar-flow-layer { left: 103px; transform: scale(0.88); transform-origin: left top; }
  .quick-strip { right: 176px; }
  .temperature-card { width: 168px; }
  .hero-temp { font-size: 47px; }
  .section-label { font-size: 24px; }
  .air-card { grid-template-columns: 72px 1fr; }
}

/* --------------------------------------------------
   PoolOnlineNG26 Clean Layout V28
   Konsolidierte aktuelle Optik ohne historische V-Blöcke
--------------------------------------------------- */

:root {
  --solar-panel-width: 115px;
  --solar-panel-bg: rgba(6, 33, 88, 0.70);
}

/* Header */
.top-header {
  height: 56px;
  padding: 9px 14px 10px;
}

.brand-title {
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(244, 250, 255, 0.94);
  text-shadow:
    0 0 8px rgba(120, 210, 255, 0.48),
    0 0 18px rgba(120, 210, 255, 0.24),
    0 2px 7px rgba(0,0,0,0.42);
}

.live-badge {
  gap: 7px;
  padding: 7px 12px;
  border-radius: 19px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  background: rgba(8, 30, 69, 0.46);
  border: 1px solid rgba(157, 210, 255, 0.32);
  box-shadow:
    0 7px 18px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.live-dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 4px rgba(255, 48, 48, 0.12), 0 0 13px rgba(255, 48, 48, 0.8);
}

.live-badge.is-online .live-dot {
  box-shadow: 0 0 0 4px rgba(93, 240, 46, 0.12), 0 0 13px rgba(93, 240, 46, 0.82);
}

/* Hero / Bild */
.hero-card {
  height: 300px !important;
}

.hero-image {
  filter: saturate(1.28) contrast(1.08) brightness(1.03);
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(0, 13, 44, 0.18) 0%,
      rgba(0, 22, 58, 0.05) 24%,
      rgba(0, 0, 0, 0.00) 50%
    ),
    linear-gradient(
      180deg,
      rgba(3, 18, 48, 0.01) 0%,
      rgba(3, 18, 48, 0.02) 50%,
      rgba(3, 18, 48, 0.15) 100%
    );
}

/* Alte Solar-Schalter ausblenden */
.power-button,
.mode-pill,
.solar-symbol,
.solar-sun,
.solar-panel,
.solar-title {
  display: none !important;
}

/* Solarbereich */
.solar-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--solar-panel-width) !important;
  min-width: var(--solar-panel-width) !important;
  max-width: var(--solar-panel-width) !important;
  padding: 18px 0 12px !important;
  color: #fff;
  background: var(--solar-panel-bg) !important;
  background-image: none !important;
  border-right: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.solar-overlay::before,
.solar-overlay::after {
  content: none !important;
  display: none !important;
}

.solar-flow-layer {
  display: none !important;
}

/* Solarstatus-Icon */
.solar-status-symbol {
  width: 100%;
  height: 104px;
  margin: 2px auto 12px;
  display: grid;
  place-items: center;
  transform: scale(0.92) !important;
}

.solar-pro-symbol {
  position: relative;
  width: 86px;
  height: 94px;
  color: rgba(225, 240, 252, 0.78);
  filter:
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 9px rgba(110, 190, 255, 0.12));
}

.solar-pro-star {
  display: none !important;
}

.solar-weather {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 38px;
  height: 38px;
  transform: translateX(-50%);
  z-index: 6;
}

.solar-weather-sun {
  display: none;
  color: #f1ff2f;
  filter:
    drop-shadow(0 0 9px rgba(255, 80, 32, 0.78))
    drop-shadow(0 0 20px rgba(255, 42, 30, 0.44));
}

.sun-core {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: currentColor;
}

.sun-ray {
  position: absolute;
  left: 16px;
  top: 2px;
  width: 2px;
  height: 30px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.95;
  transform-origin: center center;
}

.sun-ray-1 { transform: rotate(0deg); }
.sun-ray-2 { transform: rotate(45deg); }
.sun-ray-3 { transform: rotate(90deg); }
.sun-ray-4 { transform: rotate(135deg); }

.solar-weather-cloud {
  display: block;
  color: rgba(220, 232, 242, 0.72);
  filter: drop-shadow(0 0 8px rgba(170, 205, 230, 0.18));
}

.cloud-lobe,
.cloud-base {
  position: absolute;
  background: currentColor;
}

.cloud-lobe {
  border-radius: 99px;
}

.cloud-lobe-1 {
  left: 3px;
  top: 16px;
  width: 12px;
  height: 12px;
}

.cloud-lobe-2 {
  left: 10px;
  top: 8px;
  width: 16px;
  height: 16px;
}

.cloud-lobe-3 {
  right: 3px;
  top: 16px;
  width: 12px;
  height: 12px;
}

.cloud-base {
  left: 3px;
  right: 3px;
  bottom: 4px;
  height: 11px;
  border-radius: 99px;
}

.solar-pro-ray {
  position: absolute;
  top: 24px;
  width: 2px;
  height: 30px;
  border-radius: 99px;
  background: currentColor;
}

.solar-pro-ray-left {
  left: 18px;
  transform: rotate(25deg);
}

.solar-pro-ray-right {
  right: 18px;
  transform: rotate(-25deg);
}

.solar-pro-line {
  position: absolute;
  left: 30px;
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.solar-pro-line-top {
  top: 31px;
  opacity: 0.88;
}

.solar-pro-line-mid {
  top: 35px;
  opacity: 0.58;
}

.solar-pro-panel {
  position: absolute;
  left: 19px;
  top: 46px;
  width: 49px;
  height: 16px;
  border-radius: 1px;
  background: currentColor;
  overflow: hidden;
}

.solar-pro-panel::after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  width: 14px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.75),
    transparent
  );
  transform: translateX(-40px) skewX(-20deg);
  animation: panelSweep 4s linear infinite;
}

.solar-pro-side {
  position: absolute;
  top: 35px;
  width: 2px;
  height: 36px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: bottom center;
}

.solar-pro-side-left {
  left: 12px;
  transform: rotate(24deg);
}

.solar-pro-side-right {
  right: 12px;
  transform: rotate(-24deg);
}

.solar-pro-grid {
  position: absolute;
  background: rgba(6, 33, 88, 0.34);
}

.solar-pro-grid-v1 {
  left: 35px;
  top: 45px;
  width: 2px;
  height: 20px;
}

.solar-pro-grid-v2 {
  left: 51px;
  top: 45px;
  width: 2px;
  height: 20px;
}

.solar-pro-grid-h {
  left: 17px;
  top: 54px;
  width: 53px;
  height: 2px;
}

.solar-pro-base {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.75;
}

.solar-pro-heat {
  position: absolute;
  top: 66px;
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: rgba(135, 255, 95, 0);
  opacity: 0;
}

.solar-pro-heat-1 { left: 35px; }
.solar-pro-heat-2 { left: 43px; }
.solar-pro-heat-3 { left: 51px; }

/* Solar aktiv / inaktiv */
.solar-overlay.is-active .solar-weather-sun {
  display: block !important;
  animation:
    sunSlowPulse 4.8s ease-in-out infinite,
    sunRotate 20s linear infinite;
}

.solar-overlay.is-active .solar-weather-cloud {
  display: none !important;
}

.solar-overlay.is-active .solar-pro-symbol {
  color: rgba(255,92,38,0.98) !important;
  animation: solarRedPulse 3.8s ease-in-out infinite !important;
  filter:
    drop-shadow(0 8px 14px rgba(0,0,0,0.26))
    drop-shadow(0 0 24px rgba(255,82,36,0.95))
    drop-shadow(0 0 48px rgba(255,38,28,0.65))
    drop-shadow(0 0 80px rgba(255,38,28,0.25)) !important;
}

.solar-overlay.is-active .solar-pro-heat {
  background: rgba(255, 46, 30, 0.98) !important;
  box-shadow:
    0 0 7px rgba(255, 52, 30, 0.82),
    0 0 14px rgba(255, 110, 35, 0.38);
  animation: solarHeatRiseRed 5.2s ease-in-out infinite !important;
}

.solar-overlay.is-inactive .solar-weather-sun,
.solar-overlay:not(.is-active) .solar-weather-sun {
  display: none !important;
}

.solar-overlay.is-inactive .solar-weather-cloud,
.solar-overlay:not(.is-active) .solar-weather-cloud {
  display: block !important;
}

.solar-overlay.is-inactive .solar-pro-symbol,
.solar-overlay:not(.is-active) .solar-pro-symbol {
  color: rgba(225, 240, 252, 0.66) !important;
  animation: none !important;
  filter:
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 8px rgba(135, 190, 255, 0.10)) !important;
}

.solar-overlay.is-inactive .solar-pro-panel::after,
.solar-overlay:not(.is-active) .solar-pro-panel::after {
  animation: none;
  opacity: 0;
}

/* Solar-Balken */
.solar-gauge {
  width: 42px;
  height: 176px;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 22px;
  border: 2px solid rgba(225, 247, 255, 0.82);
  transform: none !important;
  background:
    repeating-linear-gradient(to top, transparent 0 16px, rgba(255,255,255,0.22) 17px 18px),
    linear-gradient(180deg, rgba(10,25,55,0.68), rgba(12,35,80,0.42));
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.28),
    0 0 18px rgba(93, 185, 255, 0.18);
}

.solar-overlay.is-active .solar-gauge {
  animation: solarBorderPulse 3.8s ease-in-out infinite;
}

.solar-gauge-fill {
  border-radius: 18px;
  background: linear-gradient(0deg, rgba(84, 223, 64, 0.92), rgba(176, 255, 53, 0.88));
  box-shadow: 0 0 18px rgba(124,255,70,0.55);
  transition: height 1.4s ease;
}

.solar-percent {
  width: 100%;
  margin-top: 17px;
  font-size: 29px;
  line-height: 1;
  transform: none !important;
  text-align: center;
}

.solar-percent-label {
  width: 100%;
  margin-top: 8px;
  text-transform: uppercase;
  color: rgba(220, 236, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: none !important;
  text-align: center;
}

/* Animationen */
@keyframes solarBorderPulse {
  0%, 100% {
    border-color: rgba(225, 247, 255, 0.82);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.28), 0 0 18px rgba(93, 185, 255, 0.18);
  }
  50% {
    border-color: rgba(158, 255, 82, 0.96);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.28), 0 0 24px rgba(124,255,70,0.55);
  }
}

@keyframes solarRedPulse {
  0%, 100% {
    opacity: 0.88;
    filter:
      drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26))
      drop-shadow(0 0 10px rgba(255, 82, 36, 0.48))
      drop-shadow(0 0 22px rgba(255, 38, 28, 0.24));
  }
  50% {
    opacity: 1;
    filter:
      drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26))
      drop-shadow(0 0 20px rgba(255, 82, 36, 0.82))
      drop-shadow(0 0 38px rgba(255, 38, 28, 0.42));
  }
}

@keyframes sunSlowPulse {
  0%, 100% {
    opacity: 0.86;
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes sunRotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes solarHeatRiseRed {
  0% { transform: translateY(8px) scale(0.72); opacity: 0; }
  24% { opacity: 0.95; }
  70% { opacity: 0.48; }
  100% { transform: translateY(-34px) scale(1.08); opacity: 0; }
}

@keyframes panelSweep {
  from { transform: translateX(-40px) skewX(-20deg); }
  to { transform: translateX(90px) skewX(-20deg); }
}

@media (max-height: 850px) {
  .brand-title { font-size: 22px; }
  .live-badge { padding: 6px 11px; font-size: 11px; }
  .solar-gauge { height: 150px; }
  .quick-strip { height: 64px; right: 194px; }
  .temperature-card { width: 184px; height: 106px; }
  .hero-temp { font-size: 50px; }
  .temp-stats span { font-size: 10px; }
  .temp-stats strong { font-size: 13px; }
  .status-card h2 { font-size: 19px; }
  .status-card p { font-size: 12px; }
}

@media (max-width: 390px) {
  .brand-title { font-size: 20px; letter-spacing: 0.18em; }
  .live-badge { padding: 6px 10px; font-size: 10px; }
  .solar-overlay {
    width: var(--solar-panel-width) !important;
    min-width: var(--solar-panel-width) !important;
    max-width: var(--solar-panel-width) !important;
  }
  .solar-status-symbol { transform: scale(0.90) !important; }
  .solar-gauge { width: 38px; transform: none !important; }
  .solar-percent,
  .solar-percent-label { transform: none !important; text-align: center; }
  .quick-strip { right: 176px; }
  .temperature-card { width: 168px; }
  .hero-temp { font-size: 47px; }
  .section-label { font-size: 24px; }
  .air-card { grid-template-columns: 72px 1fr; }
}


/* V31 Solar Tageswerte LED final */
.quick-strip {
  display: none !important;
}

.solar-percent,
.solar-percent-label,
.solar-gauge,
.solar-gauge-fill {
  display: none !important;
}

/* Solarbereich optisch unverändert lassen, nur neuer Inhalt unter dem Icon */
.solar-day-panel {
  width: 100%;
  flex: 1 1 auto;
  min-height: 142px;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 3px;
  align-items: stretch;
  padding: 0 6px 0 9px;
  margin-top: 2px;
}

.solar-led-bar {
  width: 13px;
  height: 100%;
  min-height: 142px;
  max-height: 185px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  padding: 4px 3px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.16)),
    rgba(3, 15, 42, 0.42);
  border: 1px solid rgba(224, 246, 255, 0.28);
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.32),
    0 0 12px rgba(80, 185, 255, 0.10);
}

.solar-led-segment {
  display: block;
  flex: 1 1 0;
  min-height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 42%, rgba(0,0,0,0.18)),
    rgba(160, 176, 196, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.18),
    inset 0 -1px 2px rgba(0,0,0,0.28);
  opacity: 0.78;
  transition: background 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
}

.solar-led-segment.is-on {
  opacity: 1;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.38),
    inset 0 -1px 2px rgba(0,0,0,0.26),
    0 0 3px currentColor,
    0 0 6px currentColor;
}

/* Reihenfolge: nth-child(12) ist unten, nth-child(1) oben */
.solar-led-segment.is-on:nth-child(12),
.solar-led-segment.is-on:nth-child(11) {
  color: #1ea7ff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.08) 42%, rgba(0,0,0,0.16)),
    linear-gradient(180deg, #51d7ff, #167aff);
}

.solar-led-segment.is-on:nth-child(10),
.solar-led-segment.is-on:nth-child(9) {
  color: #2de6b8;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.08) 42%, rgba(0,0,0,0.16)),
    linear-gradient(180deg, #50f4c8, #17b678);
}

.solar-led-segment.is-on:nth-child(8),
.solar-led-segment.is-on:nth-child(7) {
  color: #a7f34a;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.08) 42%, rgba(0,0,0,0.16)),
    linear-gradient(180deg, #dcff54, #6fe239);
}

.solar-led-segment.is-on:nth-child(6),
.solar-led-segment.is-on:nth-child(5) {
  color: #ffe33b;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.10) 42%, rgba(0,0,0,0.16)),
    linear-gradient(180deg, #fff75a, #ffbd19);
}

.solar-led-segment.is-on:nth-child(4),
.solar-led-segment.is-on:nth-child(3) {
  color: #ff9a22;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.10) 42%, rgba(0,0,0,0.16)),
    linear-gradient(180deg, #ffc044, #ff6f19);
}

.solar-led-segment.is-on:nth-child(2),
.solar-led-segment.is-on:nth-child(1) {
  color: #ff4436;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.10) 42%, rgba(0,0,0,0.18)),
    linear-gradient(180deg, #ff7b42, #ff2525);
}

.solar-overlay.is-active .solar-led-segment.is-on {
  animation: solarLedGlow 6s ease-in-out infinite;
}

.solar-day-values {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 6px;
  padding: 3px 0;
}

.solar-day-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 15px 1fr;
  align-items: center;
  column-gap: 6px;
}

.solar-day-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.42))
    drop-shadow(0 0 7px rgba(255,255,255,0.10));
}

.solar-day-icon-temp { color: #4ccfff; }
.solar-day-icon-delta { color: #ffcf4b; font-size: 15px; }
.solar-day-icon-time { color: #e3ecff; font-size: 12px; }

.solar-day-row strong {
  min-width: 0;
  color: rgba(245, 250, 255, 0.96);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: left;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.60),
    0 0 12px rgba(255, 140, 70, 0.16);
}

@keyframes solarLedGlow {
  0%, 100% { filter: saturate(1) brightness(0.95); }
  50% { filter: saturate(1.12) brightness(1.13); }
}

@media (max-height: 850px) {
  .solar-day-panel {
    min-height: 116px;
  }

  .solar-led-bar {
    min-height: 116px;
    max-height: 150px;
    gap: 2px;
  }

  .solar-day-row strong {
    font-size: 18px;
  }

  .solar-day-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
}


/* V33 Solar SVG Icons und Reihenfolge */
.solar-day-values {
  position: relative;
}

.solar-day-row {
  position: relative;
  min-height: 36px;
}

.solar-day-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1px;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(230, 242, 255, 0.00),
    rgba(230, 242, 255, 0.34),
    rgba(230, 242, 255, 0.00)
  );
}

.solar-day-icon {
  width: 20px !important;
  height: 20px !important;
  font-size: 0 !important;
}

.solar-day-svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
}

.solar-day-svg .svg-line,
.solar-day-svg .svg-tick,
.solar-day-svg .svg-glow-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solar-day-svg .svg-tick {
  stroke-width: 1.8;
  opacity: 0.86;
}

.solar-day-svg .svg-glow,
.solar-day-svg .svg-fill-circle {
  fill: currentColor;
}

.solar-day-svg .svg-glow {
  opacity: 0.08;
}

.solar-day-svg .svg-glow-line {
  opacity: 0.28;
  stroke-width: 5.2;
  filter: blur(1.2px);
}

.solar-day-svg .svg-fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.solar-day-icon-time {
  color: #eaf5ff !important;
  filter:
    drop-shadow(0 0 5px rgba(160, 216, 255, 0.60))
    drop-shadow(0 1px 2px rgba(0,0,0,0.48));
}

.solar-day-icon-delta {
  color: #ffd050 !important;
  filter:
    drop-shadow(0 0 6px rgba(255, 198, 54, 0.58))
    drop-shadow(0 1px 2px rgba(0,0,0,0.48));
}

.solar-day-icon-temp {
  color: #56cfff !important;
  filter:
    drop-shadow(0 0 6px rgba(75, 204, 255, 0.70))
    drop-shadow(0 1px 2px rgba(0,0,0,0.48));
}

.solar-day-row strong {
  font-size: 18px !important;
  color: rgba(255,255,255,0.96);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.75),
    0 0 11px rgba(210, 232, 255, 0.18);
}

@media (max-height: 850px) {
  .solar-day-row {
    min-height: 34px;
  }

  .solar-day-row strong {
    font-size: 18px !important;
  }

  .solar-day-icon,
  .solar-day-svg {
    width: 20px !important;
    height: 20px !important;
  }
}


/* V34 LED feiner und Delta hervorgehoben */
#solarPoolDelta {
  font-size: 22px !important;
  font-weight: 900;
}

.solar-led-bar {
  width: 13px !important;
}

.solar-led-segment.is-on {
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.42),
    inset 0 -1px 2px rgba(0,0,0,0.30),
    0 0 5px currentColor,
    0 0 11px currentColor,
    0 0 19px currentColor !important;
}

.solar-overlay.is-active .solar-led-segment.is-on {
  animation: solarLedGlow 6s ease-in-out infinite !important;
}

@media (max-height: 850px) {
  .solar-led-bar {
    width: 13px !important;
  }

  #solarPoolDelta {
    font-size: 22px !important;
  }
}


/* V40 Temperatur Premium, Solar unverändert */
.temperature-card {
  width: 236px !important;
  /*height: 158px !important;*/
  height: 140px !important;
    padding: 18px 22px 20px !important;
  display: grid !important;
  grid-template-rows: 72px 1fr !important;
  gap: 10px !important;
  background:
    radial-gradient(circle at 18% 28%, rgba(23, 180, 255, 0.26), transparent 34%),
    radial-gradient(circle at 72% 35%, rgba(255, 120, 105, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(10, 30, 68, 0.48), rgba(5, 17, 44, 0.36)) !important;
  border: 1px solid rgba(178, 218, 255, 0.38) !important;
  border-radius: 26px !important;
  box-shadow:
    0 22px 46px rgba(0, 12, 42, 0.38),
    inset 0 1px 0 rgba(255,255,255,0.20) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  overflow: visible !important;
}

.temperature-card .temp-main {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-width: 0;
}

.temperature-card .eyebrow {
  display: none !important;
}

.temperature-card .hero-temp {
  color: rgba(248, 252, 255, 0.98) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 76px !important;
  font-weight: 300 !important;
  line-height: 0.82 !important;
  letter-spacing: -0.085em !important;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.58),
    0 0 24px rgba(75, 190, 255, 0.20) !important;
}

.temperature-card .hero-temp small {
  color: rgba(238, 248, 255, 0.95) !important;
  font-size: 26px !important;
  font-weight: 300 !important;
  margin-left: 7px !important;
  letter-spacing: -0.02em !important;
}

.temperature-card .temp-badge {
  background: none !important;
}

.temperature-card .temp-badge::before,
.temperature-card .temp-badge::after {
  display: none !important;
}

.temp-water-icon {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  box-shadow:
    0 0 16px rgba(55, 198, 255, 0.42),
    inset 0 0 18px rgba(37, 135, 255, 0.36) !important;
}

.temp-water-icon svg {
  width: 46px;
  height: 46px;
  overflow: visible;
  color: #8fe8ff;
  filter:
    drop-shadow(0 0 5px rgba(75, 210, 255, 0.80))
    drop-shadow(0 0 13px rgba(35, 126, 255, 0.48));
}

.temp-icon-ring,
.temp-icon-line,
.temp-icon-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.temp-icon-ring {
  opacity: 0.80;
  stroke-width: 2.2;
}

.temp-icon-fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.temp-icon-dot {
  fill: currentColor;
}

.temp-icon-wave {
  opacity: 0.82;
  stroke-width: 2.4;
}

.temp-icon-wave-2 {
  opacity: 0.50;
}

.temp-band {
  display: grid;
  gap: 2px !important;
  padding: 0 2px 8px !important;
}

.temp-band-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.62);
}

.temp-band-min {
  color: #7fdcff !important;
  text-align: left;
}

.temp-band-avg-text {
  color: rgba(245, 250, 255, 0.96);
  text-align: center;
}

.temp-band-max {
  color: #ff7c74 !important;
  text-align: right;
}

.temp-band-track {
  position: relative;
  height: 9px !important;
  border-radius: 999px;
  background: rgba(224, 242, 255, 0.20);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.34),
    0 0 8px rgba(80, 190, 255, 0.10);
}

.temp-band-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(52, 202, 255, 0.82),
    rgba(245, 255, 255, 0.66),
    rgba(255, 92, 70, 0.84)
  );
  opacity: 0.76;
}

.temp-band-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: left 0.45s ease;
}

.temp-band-marker-current {
  top: 17px !important;
  width: 0;
  height: 0;
  border-left: 7px solid transparent !important;
  border-right: 7px solid transparent !important;
  border-bottom: 12px solid #37e5ff !important;
  border-top: 0 !important;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.58))
    drop-shadow(0 0 7px rgba(82, 206, 255, 0.60));
  z-index: 4;
}

.temp-band-marker-current em {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  color: #37e5ff;
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.72);
}

.temp-band-marker-avg {
  top: 50%;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50%;
  background: rgba(248, 252, 255, 0.98);
  border: 2px solid rgba(7, 28, 72, 0.66);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.42),
    0 0 9px rgba(255,255,255,0.42);
  transform: translate(-50%, -50%);
  z-index: 5;
}

.temp-band-marker-avg::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 1px;
  height: 18px;
  border-left: 1px dotted rgba(245, 250, 255, 0.42);
  transform: translateX(-50%);
}

@media (max-height: 850px) {
  .temperature-card {
    width: 226px !important;
    height: 150px !important;
    padding: 16px 20px 18px !important;
  }

  .temperature-card .hero-temp {
    font-size: 70px !important;
  }

  .temperature-card .hero-temp small {
    font-size: 24px !important;
  }

  .temp-band-labels,
  .temp-band-marker-current em {
    font-size: 15px !important;
  }
}

@media (max-width: 390px) {
  .temperature-card {
    width: 206px !important;
    height: 142px !important;
    padding: 15px 18px 17px !important;
  }

  .temperature-card .hero-temp {
    font-size: 64px !important;
  }

  .temperature-card .hero-temp small {
    font-size: 22px !important;
  }

  .temp-water-icon,
  .temp-water-icon svg {
    width: 40px !important;
    height: 40px !important;
  }

  .temp-band-labels,
  .temp-band-marker-current em {
    font-size: 14px !important;
  }
}


/* V41 Temperatur kompakter rechts unten */
.temperature-card {
  right: 0 !important;
  bottom: 0 !important;
  width: 214px !important;
  height: 100px !important;
  padding: 8px 16px 8px !important;
  display: grid !important;
  grid-template-rows: 40px auto !important;
  gap: 6px !important;
  background:
    radial-gradient(circle at 18% 32%, rgba(22, 180, 255, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(9, 29, 66, 0.20), rgba(4, 16, 42, 0.30)) !important;
  border: 1px solid rgba(178, 218, 255, 0.26) !important;
  border-radius: 22px 0 20px 22px !important;
  box-shadow:
    0 15px 32px rgba(0, 12, 42, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  overflow: visible !important;
}

.temperature-card .temp-main {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  gap: 0 !important;
}

.temperature-card .eyebrow,
.temperature-card .temp-badge,
.temp-water-icon {
  display: none !important;
}

.temperature-card .hero-temp {
  color: rgba(248, 252, 255, 0.98) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 62px !important;
  font-weight: 300 !important;
  line-height: 0.88 !important;
  letter-spacing: -0.085em !important;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.54),
    0 0 18px rgba(65, 185, 255, 0.18) !important;
}

.temperature-card .hero-temp small {
  color: rgba(238, 248, 255, 0.94) !important;
  font-size: 21px !important;
  font-weight: 300 !important;
  margin-left: 6px !important;
  letter-spacing: -0.02em !important;
}

.temp-band {
  display: grid !important;
  gap: 6px !important;
  padding: 0 1px !important;
}

.temp-band-labels {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: end !important;
  gap: 7px !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.58);
}

.temp-band-min {
  color: #7fdcff !important;
  text-align: left !important;
}

.temp-band-avg-text {
  color: rgba(245, 250, 255, 0.90) !important;
  text-align: center !important;
}

.temp-band-max {
  color: #ff7c74 !important;
  text-align: right !important;
}

.temp-band-track {
  position: relative;
  height: 8px !important;
  border-radius: 999px;
  background: rgba(224, 242, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.28),
    0 0 6px rgba(80, 190, 255, 0.08) !important;
}

.temp-band-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(52, 202, 255, 0.70),
    rgba(245, 255, 255, 0.48),
    rgba(255, 92, 70, 0.70)
  ) !important;
  opacity: 0.74 !important;
}

/* Aktuellen Marker am Balken bewusst ausblenden, aktuelle Temperatur steht gross oben */
.temp-band-marker-current {
  display: none !important;
}

.temp-band-marker-avg {
  top: 50% !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  background: rgba(248, 252, 255, 0.96) !important;
  border: 2px solid rgba(7, 28, 72, 0.62) !important;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.36),
    0 0 7px rgba(255,255,255,0.34) !important;
  transform: translate(-50%, -50%) !important;
  z-index: 5;
}

.temp-band-marker-avg::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 1px;
  height: 12px;
  border-left: 1px dotted rgba(245, 250, 255, 0.34);
  transform: translateX(-50%);
}

@media (max-height: 850px) {
  .temperature-card {
    width: 208px !important;
    height: 108px !important;
    padding: 11px 15px 13px !important;
    grid-template-rows: 60px auto !important;
  }

  .temperature-card .hero-temp {
    font-size: 59px !important;
  }

  .temperature-card .hero-temp small {
    font-size: 20px !important;
  }

  .temp-band-labels {
    font-size: 13px !important;
  }
}

@media (max-width: 390px) {
  .temperature-card {
    width: 190px !important;
    height: 88px !important;
    padding: 4px 14px 8px !important;
    grid-template-rows: 46px auto !important;
  }

  .temperature-card .hero-temp {
    font-size: 58px !important;
  }

  .temperature-card .hero-temp small {
    font-size: 20px !important;
  }

  .temp-band-labels {
    font-size: 16px !important;
  }
}


/* V42 Smartphone Temperaturkarte final */
@media (max-width: 480px) {
  .temperature-card {
    width: 190px !important;
    height: 86px !important;
    padding: 3px 14px 7px !important;
    grid-template-rows: 44px auto !important;
    gap: 2px !important;
  }

  .temperature-card .hero-temp {
    font-size: 60px !important;
    line-height: 0.86 !important;
  }

  .temperature-card .hero-temp small {
    font-size: 20px !important;
  }

  .temp-band {
    gap: 3px !important;
    padding: 0 1px !important;
  }

  .temp-band-labels {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .temp-band-track {
    height: 8px !important;
  }
}

/* Für iPhones mit kleiner Displayhöhe: explizit nochmals stärker überschreiben */
@media (max-width: 480px) and (max-height: 950px) {
  .temperature-card {
    height: 98px !important;
    padding: 3px 14px 7px !important;
    grid-template-rows: 54px auto !important;
  }

  .temperature-card .hero-temp {
    font-size: 60px !important;
  }

  .temp-band-labels {
    font-size: 17px !important;
    font-weight: 700 !important;
  }
}

/* V43 Mac / PC Korrektur, Smartphone unverändert */
@media (hover: hover) and (any-pointer: fine) {
  .temperature-card {
    width: 214px !important;
    height: 112px !important;
    padding: 8px 16px 10px !important;
    grid-template-rows: 54px auto !important;
    gap: 5px !important;
  }

  .temperature-card .hero-temp {
    font-size: 58px !important;
    line-height: 0.88 !important;
  }

  .temperature-card .hero-temp small {
    font-size: 20px !important;
  }

  .temp-band {
    gap: 4px !important;
    padding: 0 1px !important;
  }

  .temp-band-labels {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .temp-band-track {
    height: 8px !important;
  }
}


/* V44 Lower Stack und Lufttemperatur Premium */
.lower-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: var(--gap);
}

.lower-stack > .air-card,
.lower-stack > .water-card,
.lower-stack > .info-card,
.lower-stack > .status-card {
  margin-top: 0 !important;
}

.pool-dashboard.has-alert .lower-stack .block-status {
  order: -10;
}

.pool-dashboard.has-alert .lower-stack .block-air {
  order: 1;
}

.pool-dashboard.has-alert .lower-stack .block-water {
  order: 2;
}

.pool-dashboard.has-alert .lower-stack .block-info {
  order: 3;
}

.air-card-v44 {
  height: 82px !important;
  padding: 11px 16px !important;
  display: grid !important;
  grid-template-columns: 50px 1fr 82px 82px !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 35%, rgba(45, 197, 255, 0.20), transparent 38%),
    linear-gradient(180deg, rgba(239, 248, 255, 0.88), rgba(192, 221, 242, 0.72)) !important;
  border: 1px solid rgba(245, 252, 255, 0.72) !important;
  box-shadow:
    0 14px 30px rgba(0, 20, 58, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.58) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.air-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #1aa7ff;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.20))
    drop-shadow(0 0 12px rgba(26, 167, 255, 0.24));
}

.air-icon svg {
  width: 46px;
  height: 46px;
  overflow: visible;
}

.air-icon-cloud {
  fill: rgba(255,255,255,0.62);
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.air-icon-line,
.air-icon-temp {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-icon-line {
  opacity: 0.72;
}

.air-icon-line-2 {
  opacity: 0.48;
}

.air-icon-dot {
  fill: currentColor;
}

.air-current {
  min-width: 0;
  color: var(--blue-dark);
  font-size: 46px;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.64),
    0 8px 16px rgba(0, 32, 90, 0.12);
}

.air-current small {
  font-size: 22px;
  margin-left: 3px;
  letter-spacing: -0.02em;
}

.air-24h {
  min-width: 0;
  height: 50px;
  padding: 7px 8px 6px;
  border-radius: 13px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(255,255,255,0.44);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.44),
    0 6px 14px rgba(0, 30, 80, 0.10);
}

.air-meta-label {
  color: rgba(7, 25, 74, 0.58);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.air-24h strong {
  font-size: 25px;
  color: var(--blue-dark);
  line-height: 1;
  letter-spacing: -0.05em;
}

.air-low strong {
  color: #167aff;
}

.air-high strong {
  color: #ff5b4d;
}

@media (max-width: 390px) {
  .air-card-v44 {
    height: 78px !important;
    grid-template-columns: 42px 1fr 68px 68px !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .air-icon,
  .air-icon svg {
    width: 40px;
    height: 40px;
  }

  .air-current {
    font-size: 40px;
  }

  .air-current small {
    font-size: 18px;
  }

  .air-24h {
    height: 48px;
    padding: 7px 6px 6px;
  }

  .air-meta-label {
    font-size: 8px;
  }

  .air-24h strong {
    font-size: 21px;
  }
}


/* V45 Lufttemperatur Icon ohne Wolke */
.air-temp-svg {
  overflow: visible;
}

.air-icon-cloud {
  display: none !important;
}

.air-icon-temp-main,
.air-icon-temp-inner,
.air-icon-tick,
.air-icon-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-icon-temp-main {
  stroke-width: 3.1;
  opacity: 0.94;
}

.air-icon-temp-inner {
  stroke-width: 4.2;
  opacity: 0.82;
}

.air-icon-tick {
  stroke-width: 2.5;
  opacity: 0.62;
}

.air-icon-line {
  stroke-width: 3.2;
  opacity: 0.55;
}

.air-icon-line-1 {
  opacity: 0.40;
}

.air-icon-line-2 {
  opacity: 0.72;
}

.air-icon-line-3 {
  opacity: 0.48;
}

.air-icon-dot {
  fill: currentColor;
  opacity: 0.88;
}

.air-icon {
  color: #1aa7ff;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.18))
    drop-shadow(0 0 10px rgba(26, 167, 255, 0.38));
}


/* V47 Solar Rücklauftemperatur korrekt */
.solar-return-temp {
  width: 100%;
  margin-top: -7px;
  margin-bottom: 7px;
  text-align: center;
  color: rgba(255, 235, 210, 0.95);
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.58),
    0 0 8px rgba(255, 120, 70, 0.16);
  pointer-events: none;
}

.solar-overlay.is-active .solar-return-temp {
  color: rgba(255, 198, 150, 0.86);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.62),
    0 0 10px rgba(255, 110, 50, 0.24);
}

@media (max-height: 850px) {
  .solar-return-temp {
    margin-top: -8px;
    margin-bottom: 6px;
    font-size: 15px;
  }
}


/* V48 LED Glow und Rücklauf heller */
.solar-return-temp {
  color: rgba(255, 240, 222, 0.98) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.64),
    0 0 10px rgba(255, 150, 85, 0.36),
    0 0 18px rgba(255, 120, 60, 0.20) !important;
}

.solar-overlay.is-active .solar-return-temp {
  color: rgba(255, 226, 196, 0.98) !important;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.68),
    0 0 12px rgba(255, 145, 70, 0.46),
    0 0 22px rgba(255, 95, 40, 0.26) !important;
}

.solar-led-segment.is-on {
  opacity: 1 !important;
  filter: brightness(1.12) saturate(1.10) !important;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.46),
    inset 0 -1px 2px rgba(0,0,0,0.30),
    0 0 5px currentColor,
    0 0 12px currentColor,
    0 0 22px currentColor !important;
}

.solar-overlay.is-active .solar-led-segment.is-on {
  filter: brightness(1.24) saturate(1.22) !important;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.52),
    inset 0 -1px 2px rgba(0,0,0,0.28),
    0 0 7px currentColor,
    0 0 17px currentColor,
    0 0 31px currentColor !important;
  animation: solarLedGlowStrong 4.8s ease-in-out infinite !important;
}

.solar-overlay.is-active .solar-led-bar {
  box-shadow:
    inset 0 0 14px rgba(0,0,0,0.34),
    0 0 12px rgba(80, 185, 255, 0.22),
    0 0 24px rgba(120, 255, 95, 0.18) !important;
}

@keyframes solarLedGlowStrong {
  0%, 100% {
    filter: brightness(1.14) saturate(1.12);
  }
  50% {
    filter: brightness(1.34) saturate(1.30);
  }
}

@media (max-height: 850px) {
  .solar-return-temp {
    font-size: 16px !important;
  }
}


/* V50 Lufttemperatur SVG eindeutig */
.air-current-label {
  display: none !important;
}

.air-temp-svg-v50 {
  overflow: visible;
}

.air-temp-svg-v50 .air-flow,
.air-temp-svg-v50 .air-thermo-body,
.air-temp-svg-v50 .air-thermo-fill,
.air-temp-svg-v50 .air-thermo-ticks {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-temp-svg-v50 .air-flow {
  stroke: #42bcff;
  stroke-width: 3.4;
  opacity: 0.78;
  filter:
    drop-shadow(0 0 4px rgba(55, 188, 255, 0.38));
}

.air-temp-svg-v50 .air-flow-1 {
  opacity: 0.58;
}

.air-temp-svg-v50 .air-flow-2 {
  opacity: 0.88;
}

.air-temp-svg-v50 .air-flow-3 {
  opacity: 0.62;
}

.air-temp-svg-v50 .air-thermo-glow {
  fill: none;
  stroke: rgba(30, 170, 255, 0.20);
  stroke-width: 8.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(1.2px);
}

.air-temp-svg-v50 .air-thermo-body {
  stroke: url(#airThermoGradient);
  stroke-width: 3.5;
}

.air-temp-svg-v50 .air-thermo-fill {
  stroke: url(#airThermoGradient);
  stroke-width: 5.2;
}

.air-temp-svg-v50 .air-thermo-bulb {
  fill: url(#airThermoGradient);
  filter:
    drop-shadow(0 0 5px rgba(40, 180, 255, 0.58));
}

.air-temp-svg-v50 .air-thermo-ticks {
  stroke: #55cfff;
  stroke-width: 2.6;
  opacity: 0.72;
}

.air-icon {
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.18))
    drop-shadow(0 0 12px rgba(26, 167, 255, 0.42)) !important;
}


/* V51 Lufttemperatur SVG mit stärkerer Luftströmung */
.air-temp-svg-v51 {
  overflow: visible;
}

.air-temp-svg-v51 .air-flow,
.air-temp-svg-v51 .air-thermo-body,
.air-temp-svg-v51 .air-thermo-fill,
.air-temp-svg-v51 .air-thermo-ticks {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-temp-svg-v51 .air-flow {
  stroke: #34bdff;
  stroke-width: 4.1;
  opacity: 0.86;
  filter:
    drop-shadow(0 0 4px rgba(55, 188, 255, 0.46))
    drop-shadow(0 1px 1px rgba(0, 30, 80, 0.20));
}

.air-temp-svg-v51 .air-flow-main {
  opacity: 0.74;
}

.air-temp-svg-v51 .air-flow-mid {
  opacity: 0.96;
  stroke-width: 4.4;
}

.air-temp-svg-v51 .air-flow-low {
  opacity: 0.78;
}

.air-temp-svg-v51 .air-thermo-glow {
  fill: none;
  stroke: rgba(30, 170, 255, 0.19);
  stroke-width: 7.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(1.1px);
}

.air-temp-svg-v51 .air-thermo-body {
  stroke: url(#airThermoGradientV51);
  stroke-width: 3.1;
}

.air-temp-svg-v51 .air-thermo-fill {
  stroke: url(#airThermoGradientV51);
  stroke-width: 4.7;
}

.air-temp-svg-v51 .air-thermo-bulb {
  fill: url(#airThermoGradientV51);
  filter:
    drop-shadow(0 0 5px rgba(40, 180, 255, 0.60));
}

.air-temp-svg-v51 .air-thermo-ticks {
  stroke: #69d8ff;
  stroke-width: 2.2;
  opacity: 0.66;
}

.air-icon {
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.18))
    drop-shadow(0 0 13px rgba(26, 167, 255, 0.45)) !important;
}


/* V52 Lufttemperatur SVG Wind dominant */
.air-temp-svg-v52 {
  overflow: visible;
}

.air-temp-svg-v52 .air-wind,
.air-temp-svg-v52 .air-mini-thermo-body,
.air-temp-svg-v52 .air-mini-thermo-fill {
  fill: none;
  stroke: url(#airGradientV52);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.air-temp-svg-v52 .air-wind {
  stroke-width: 4.8;
  opacity: 0.88;
  filter:
    drop-shadow(0 0 5px rgba(45, 185, 255, 0.52))
    drop-shadow(0 1px 1px rgba(0, 20, 70, 0.22));
}

.air-temp-svg-v52 .air-wind-1 {
  opacity: 0.68;
  stroke-width: 4.2;
}

.air-temp-svg-v52 .air-wind-2 {
  opacity: 1;
  stroke-width: 5.2;
}

.air-temp-svg-v52 .air-wind-3 {
  opacity: 0.72;
  stroke-width: 4.2;
}

.air-temp-svg-v52 .air-mini-thermo-body {
  stroke-width: 2.7;
  opacity: 0.86;
}

.air-temp-svg-v52 .air-mini-thermo-fill {
  stroke-width: 4.2;
  opacity: 0.92;
}

.air-temp-svg-v52 .air-mini-thermo-bulb {
  fill: url(#airGradientV52);
  filter:
    drop-shadow(0 0 5px rgba(40, 180, 255, 0.58));
}

/* V52 ist absichtlich deutlich anders: Wind ist dominant, Thermometer nur noch Zusatz */
.air-icon,
.air-icon svg {
  width: 50px !important;
  height: 50px !important;
}

@media (max-width: 390px) {
  .air-icon,
  .air-icon svg {
    width: 44px !important;
    height: 44px !important;
  }
}


/* V53 Lufttemperatur Wind-Icon wirklich sichtbar */
.air-wind-icon-v53 {
  width: 64px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  color: #1aa7ff !important;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.20))
    drop-shadow(0 0 13px rgba(26, 167, 255, 0.48)) !important;
}

.air-wind-icon-v53 svg {
  width: 64px !important;
  height: 48px !important;
  overflow: visible !important;
}

.air-wind-icon-v53 .wind-main,
.air-wind-icon-v53 .tiny-thermo,
.air-wind-icon-v53 .tiny-thermo-fill {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.air-wind-icon-v53 .wind-main {
  stroke-width: 4.2 !important;
  opacity: 0.72 !important;
}

.air-wind-icon-v53 .wind-strong {
  stroke-width: 5.2 !important;
  opacity: 1 !important;
}

.air-wind-icon-v53 .tiny-thermo {
  stroke-width: 2.4 !important;
  opacity: 0.72 !important;
}

.air-wind-icon-v53 .tiny-thermo-fill {
  stroke-width: 3.5 !important;
  opacity: 0.78 !important;
}

.air-wind-icon-v53 .tiny-thermo-dot {
  fill: currentColor !important;
  opacity: 0.82 !important;
}

/* Platz für das breitere Wind-Icon */
.air-card-v44 {
  grid-template-columns: 70px 1fr 82px 82px !important;
}

@media (max-width: 390px) {
  .air-wind-icon-v53,
  .air-wind-icon-v53 svg {
    width: 56px !important;
    height: 42px !important;
  }

  .air-card-v44 {
    grid-template-columns: 58px 1fr 68px 68px !important;
  }
}


/* V54 Lufttemperatur Wind und Thermometer getrennt */
.air-wind-icon-v54 {
  width: 66px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.18))
    drop-shadow(0 0 12px rgba(26, 167, 255, 0.34)) !important;
}

.air-wind-icon-v54 svg {
  width: 66px !important;
  height: 48px !important;
  overflow: visible !important;
}

.air-wind-line-v54,
.air-thermo-body-v54,
.air-thermo-fill-v54,
.air-thermo-ticks-v54 {
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.air-wind-line-v54 {
  stroke: url(#airWindGradientV54) !important;
  stroke-width: 4.2 !important;
  opacity: 0.76 !important;
  filter:
    drop-shadow(0 0 4px rgba(55, 188, 255, 0.34));
}

.air-wind-line-1-v54 {
  opacity: 0.58 !important;
}

.air-wind-line-2-v54 {
  opacity: 0.92 !important;
  stroke-width: 4.8 !important;
}

.air-wind-line-3-v54 {
  opacity: 0.64 !important;
}

.air-thermo-glow-v54 {
  fill: none !important;
  stroke: rgba(55, 190, 255, 0.20) !important;
  stroke-width: 8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: blur(1.1px);
}

.air-thermo-body-v54 {
  stroke: url(#airThermoGradientV54) !important;
  stroke-width: 3 !important;
}

.air-thermo-fill-v54 {
  stroke: url(#airThermoGradientV54) !important;
  stroke-width: 4.8 !important;
}

.air-thermo-bulb-v54 {
  fill: #1686ff !important;
  filter:
    drop-shadow(0 0 5px rgba(35, 170, 255, 0.58));
}

.air-thermo-ticks-v54 {
  stroke: rgba(255, 156, 58, 0.82) !important;
  stroke-width: 2.2 !important;
  opacity: 0.72 !important;
}

/* Platz für getrenntes Icon, ohne den Block umzubauen */
.air-card-v44 {
  grid-template-columns: 72px 1fr 82px 82px !important;
}

@media (max-width: 390px) {
  .air-wind-icon-v54,
  .air-wind-icon-v54 svg {
    width: 58px !important;
    height: 42px !important;
  }

  .air-card-v44 {
    grid-template-columns: 60px 1fr 68px 68px !important;
  }
}


/* V55 Lufttemperatur Icon getrennt und Smartphone optimiert */
.air-wind-icon-v55 {
  width: 78px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  transform: translateX(-4px) !important;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.18))
    drop-shadow(0 0 12px rgba(26, 167, 255, 0.34)) !important;
}

.air-wind-icon-v55 svg {
  width: 78px !important;
  height: 48px !important;
  overflow: visible !important;
}

.air-wind-line-v55,
.air-thermo-body-v55,
.air-thermo-fill-v55,
.air-thermo-ticks-v55 {
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


.air-wind-line-v55 {
   stroke: #7faeff !important;
   stroke-width: 4.3px !important;
   opacity: 0.90 !important;
}

.air-wind-line-1-v55 {
  opacity: 0.54 !important;
}

.air-wind-line-2-v55 {
  opacity: 0.88 !important;
  stroke-width: 4.8 !important;
}

.air-wind-line-3-v55 {
  opacity: 0.60 !important;
}

.air-thermo-glow-v55 {
  fill: none !important;
  stroke: rgba(55, 190, 255, 0.20) !important;
  stroke-width: 8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: blur(1.1px);
}

.air-thermo-body-v55 {
  stroke: url(#airThermoGradientV55) !important;
  stroke-width: 3 !important;
}

.air-thermo-fill-v55 {
  stroke: url(#airThermoGradientV55) !important;
  stroke-width: 4.8 !important;
}

.air-thermo-bulb-v55 {
  fill: #1686ff !important;
  filter:
    drop-shadow(0 0 5px rgba(35, 170, 255, 0.58));
}

.air-thermo-ticks-v55 {
  stroke: rgba(255, 156, 58, 0.82) !important;
  stroke-width: 2.2 !important;
  opacity: 0.72 !important;
}

/* Desktop/Mac: Abstände wie bisher gut lassen */
.air-card-v44 {
  grid-template-columns: 82px 1fr 82px 82px !important;
}

/* Smartphone: Icon und aktuelle Temperatur weiter nach links, mehr Luft zu Min 24h */
@media (max-width: 480px) {
  .air-card-v44 {
    grid-template-columns: 62px 1fr 70px 70px !important;
    gap: 7px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .air-wind-icon-v55,
  .air-wind-icon-v55 svg {
    width: 62px !important;
    height: 42px !important;
  }

  .air-wind-icon-v55 {
    transform: translateX(-6px) !important;
  }

  .air-current {
    transform: translateX(-6px) !important;
    font-size: 42px !important;
  }

  .air-current small {
    font-size: 18px !important;
  }
}

@media (max-width: 390px) {
  .air-card-v44 {
    grid-template-columns: 58px 1fr 68px 68px !important;
    gap: 6px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .air-wind-icon-v55,
  .air-wind-icon-v55 svg {
    width: 58px !important;
    height: 40px !important;
  }

  .air-current {
    transform: translateX(-7px) !important;
    font-size: 40px !important;
  }
}


/* V56 Wetterblock einzeilig */
.weather-card-v56 {
  height: 86px !important;
  padding: 12px 16px !important;
  display: grid !important;
  grid-template-columns: 1.05fr 0.74fr 0.82fr 0.62fr 0.62fr !important;
  gap: 12px !important;
  align-items: stretch !important;
  background:
    radial-gradient(circle at 15% 25%, rgba(55, 190, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(239, 248, 255, 0.88), rgba(190, 219, 240, 0.72)) !important;
  overflow: hidden !important;
}

.weather-card-v56 .info-top,
.weather-card-v56 .info-bottom {
  display: none !important;
}

.weather-tile {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 38px 1fr;
  align-items: center;
  justify-items: center;
  padding: 3px 4px 0;
  border-right: 1px solid rgba(7, 26, 69, 0.12);
}

.weather-tile:last-child {
  border-right: 0;
}

.weather-icon {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateY(-6px);

  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.18))
    drop-shadow(0 0 10px rgba(40, 170, 255, 0.22));
}

.weather-svg {
  width: 42px;
  height: 38px;
  overflow: visible;
}

.weather-value {
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.66),
    0 6px 12px rgba(0, 32, 90, 0.10);
}

.weather-text {
  max-width: 100%;
  font-size: 18px;
  letter-spacing: -0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-value small {
  font-size: 11px;
  margin-left: 3px;
  letter-spacing: -0.02em;
}

.weather-rain .weather-value {
  color: #157dff;
}

.weather-wind .weather-value {
  color: var(--blue-dark);
}

.weather-cloud-main {
  fill: rgba(232, 244, 255, 0.76);
  stroke: rgba(170, 215, 255, 0.82);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.weather-cloud-line {
  fill: none;
  stroke: rgba(170, 215, 255, 0.70);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.weather-sun-core {
  fill: #ffe84a;
  filter:
    drop-shadow(0 0 6px rgba(255, 200, 40, 0.72))
    drop-shadow(0 0 13px rgba(255, 120, 35, 0.36));
}

.weather-sun-rays,
.weather-sun-rays-small {
  fill: none;
  stroke: #ffd23c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-sun-rays-small {
  stroke-width: 2.4;
  opacity: 0.88;
}

.weather-drop-main {
  fill: rgba(28, 157, 255, 0.94);
  stroke: rgba(120, 220, 255, 0.78);
  stroke-width: 2.2;
  filter:
    drop-shadow(0 0 7px rgba(25, 150, 255, 0.36));
}

.weather-drop-highlight {
  fill: none;
  stroke: rgba(230, 250, 255, 0.62);
  stroke-width: 2.1;
  stroke-linecap: round;
}

.weather-wind-line {
  fill: none;
  stroke: #57cfff;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(55, 188, 255, 0.34));
}

.weather-wind-line-1,
.weather-wind-line-3 {
  stroke-width: 3.2;
  opacity: 0.58;
}

.weather-wind-line-2 {
  stroke-width: 4.0;
  opacity: 0.88;
}


.weather-forecast-min .weather-value,
.weather-temp-bulb-low,
.weather-temp-arrow-low {
  color: #157dff;
}

.weather-forecast-max .weather-value,
.weather-temp-bulb-high,
.weather-temp-arrow-high {
  color: #ff9d16;
}

.weather-forecast-icon {
  transform: translateY(-7px) scale(0.92);
}

.weather-forecast-value {
  font-size: 19px;
  letter-spacing: -0.05em;
}

.weather-temp-stem {
  fill: none;
  stroke: rgba(255,255,255,0.72);
  stroke-width: 5.2;
  stroke-linecap: round;
}

.weather-temp-bulb {
  fill: currentColor;
  stroke: rgba(255,255,255,0.62);
  stroke-width: 2.1;
  filter: drop-shadow(0 0 7px currentColor);
}

.weather-temp-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px currentColor);
}

.weather-rain-lines {
  fill: none;
  stroke: #32b7ff;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.weather-lightning {
  fill: #ffd747;
  stroke: rgba(255, 170, 30, 0.70);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 7px rgba(255, 210, 60, 0.58));
}

@media (max-height: 850px) {
  .weather-card-v56 {
    /* Auf dem iPhone darf der Wetterblock nicht auf 76px schrumpfen,
       sonst werden die neuen Min/Max-Spalten in Safari teilweise abgeschnitten. */
    height: 86px !important;
    padding: 10px 12px !important;
  }

  .weather-tile {
    grid-template-rows: 36px 1fr;
  }

  .weather-icon,
  .weather-svg {
    width: 37px;
    height: 34px;
  }

  .weather-value {
    font-size: 19px;
  }

  .weather-forecast-value {
    font-size: 17px;
  }

  .weather-text {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .weather-card-v56 {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.72fr) minmax(0, 0.82fr) minmax(0, 0.62fr) minmax(0, 0.62fr) !important;
    gap: 6px !important;
    padding: 10px 10px !important;
  }

  .weather-tile {
    padding-left: 2px;
    padding-right: 2px;
  }

  .weather-value {
    font-size: 18px;
  }

  .weather-forecast-value {
    font-size: 16px;
  }

  .weather-text {
    font-size: 15px;
  }

  .weather-value small {
    font-size: 9px;
    margin-left: 1px;
  }

  .weather-icon,
  .weather-svg {
    width: 34px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  .weather-card-v56 {
    gap: 4px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .weather-value {
    font-size: 17px;
  }

  .weather-forecast-value,
  .weather-text {
    font-size: 14px;
  }

  .weather-icon,
  .weather-svg {
    width: 31px;
    height: 30px;
  }
}


/* V57b Alarm-Reihenfolge und Offline-Logik */
/* Normal bleibt HTML-Reihenfolge:
   Lufttemperatur, Wetter, Chemie, Status.
   Bei aktivem Alarm:
   Lufttemperatur, Wetter, Status, Chemie.
   Offline alleine setzt has-alert nicht mehr. */
.pool-dashboard.has-alert .lower-stack .block-air {
  order: 1 !important;
}

.pool-dashboard.has-alert .lower-stack .block-info {
  order: 2 !important;
}

.pool-dashboard.has-alert .lower-stack .block-status {
  order: 3 !important;
}

.pool-dashboard.has-alert .lower-stack .block-water {
  order: 4 !important;
}

/* V61 Chemieblock Marker: kleines Dreieck nach unten + Messlinie */
.chemistry-card {
  height: var(--water-height);
  padding: 9px 14px 14px;
  display: grid;
  gap: 7px;
  align-content: center;
}

.chemistry-card .quality-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 68px;
  gap: 12px;
  align-items: center;
  min-height: 37px;
}

.chemistry-card .quality-icon {
  width: 43px;
  height: 43px;
  border-radius: 0;
  transform: none;
  box-shadow: none;
  background: transparent;
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 5px 9px rgba(6, 28, 64, 0.14))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.08));
}

.quality-svg-icon svg {
  width: 43px;
  height: 43px;
  overflow: visible;
}

.quality-svg-icon .chem-icon-drop-fill {
  stroke: none;
}

.quality-svg-icon.cl .chem-icon-drop-fill {
  fill: url(#chemClDrop);
}

.quality-svg-icon.ph .chem-icon-drop-fill {
  fill: url(#chemPhDrop);
}

.quality-svg-icon .chem-icon-drop-line {
  fill: none;
  stroke-width: 2.35;
  stroke-linejoin: round;
}

.quality-svg-icon.cl .chem-icon-drop-line {
  stroke: rgba(117, 245, 139, 0.96);
}

.quality-svg-icon.ph .chem-icon-drop-line {
  stroke: rgba(100, 231, 255, 0.96);
}

.quality-svg-icon .chem-icon-wave {
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quality-svg-icon .chem-icon-text {
  fill: rgba(255, 255, 255, 0.98);
  font-size: 16px;
  font-weight: 950;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.7px;
  paint-order: stroke;
  stroke: rgba(7, 26, 69, 0.18);
  stroke-width: 0.8px;
}

.quality-svg-icon .chem-icon-text-cl {
  font-size: 15px;
  letter-spacing: -0.6px;
}

.quality-scale-wrap {
  min-width: 0;
  padding: 11px 0;
}

.quality-scale {
  --quality-gradient: linear-gradient(90deg, #ef4444 0%, #f59e0b 28%, #22c55e 50%, #f59e0b 72%, #ef4444 100%);
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: var(--quality-gradient);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    inset 0 -1px 2px rgba(0, 0, 0, 0.20),
    0 7px 14px rgba(7, 26, 69, 0.12);
  overflow: visible;
}

.quality-scale::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36);
  pointer-events: none;
}

.quality-scale::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.55), rgba(255,255,255,0.07));
  pointer-events: none;
}

.quality-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 30px;
  transform: translate(-50%, -50%);
  transition: left 0.45s ease;
  z-index: 3;
  pointer-events: none;
}

/* Feiner Messwert-Marker: vertikale Linie mit kleinem Mittelpunkt. */
.quality-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(235, 252, 255, 0.98) 52%,
    rgba(255, 255, 255, 0.95) 100%
  );
  box-shadow:
    0 0 0 1px rgba(7, 26, 69, 0.16),
    0 0 4px rgba(67, 211, 255, 0.24);
  transform: translateX(-50%);
}

.quality-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 1px rgba(7, 26, 69, 0.18),
    0 0 5px rgba(67, 211, 255, 0.26),
    0 1px 2px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, -50%);
}


.quality-value {
  justify-self: end;
  min-width: 64px;
  text-align: right;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.8px;
  line-height: 1;
  white-space: nowrap;
}

.quality-value small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(7, 26, 69, 0.64);
  letter-spacing: -0.2px;
}

@media (max-width: 420px) {
  .chemistry-card {
    padding-left: 12px;
    padding-right: 12px;
    gap: 6px;
  }

  .chemistry-card .quality-row {
    grid-template-columns: 42px minmax(0, 1fr) 62px;
    gap: 9px;
  }

  .quality-value {
    min-width: 60px;
    font-size: 20px;
  }

  .chemistry-card .quality-icon,
  .quality-svg-icon svg {
    width: 40px;
    height: 40px;
  }
}
/* V62 Chemieblock OK-Bereich dynamisch aus poolklar_limits.json */
.quality-scale-wrap {
  padding: 11px 0 15px;
}

.quality-scale {
  margin-bottom: 8px;
}

.quality-scale-wrap::after {
  content: attr(data-ok-label);
  display: block;
  margin-top: 5px;
  height: 12px;
  color: rgba(7, 25, 74, 0.50);
  font-size: 9px;
  font-weight: 850;
  line-height: 12px;
  letter-spacing: -0.2px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.36);
  pointer-events: none;
}

.quality-scale-wrap[data-ok-label=""]::after {
  content: "";
}
/* V66 Chemieblock final:
   Scharfe Segmente bleiben aus app.js erhalten.
   OK-Limits werden unter dem grünen Bereich dynamisch angezeigt.
   Icons sind optisch zur Skala zentriert. */
.chemistry-card {
  height: var(--water-height);
  padding: 9px 14px 14px !important;
  display: grid;
  gap: 7px;
  align-content: center !important;
}

.chemistry-card .quality-row {
  align-items: center !important;
}

.chemistry-card .quality-icon {
  align-self: center !important;
  transform: translateY(-3px) !important;
}

.quality-scale-wrap {
  position: relative !important;
  min-width: 0;
  padding: 11px 0 20px !important;
  --ok-center: 50%;
}

.quality-scale {
  margin-bottom: 0 !important;
}

.quality-scale-wrap::after {
  content: attr(data-ok-label);
  position: absolute !important;
  left: var(--ok-center) !important;
  top: 28px !important;
  transform: translateX(-50%) !important;
  display: block !important;
  width: max-content !important;
  height: 13px !important;
  margin: 0 !important;
  color: rgba(7, 25, 74, 0.56) !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  line-height: 13px !important;
  letter-spacing: -0.2px !important;
  text-align: center !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.42);
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
}

.quality-scale-wrap[data-ok-label=""]::after {
  content: "";
}

.quality-marker {
  height: 30px !important;
}

.quality-marker::before {
  height: 22px !important;
  top: 4px !important;
}

/* V68 Lufttemperatur: Variante A behalten, nur Wert leicht nach rechts */
.air-current {
  color: rgba(20, 40, 90, 0.75) !important;
  font-size: 41px !important;
  font-weight: 600 !important;
  letter-spacing: -0.06em !important;
  transform: translateX(6px) !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.58),
    0 6px 12px rgba(0, 32, 90, 0.08) !important;
}

.air-current small {
  font-weight: 600 !important;
}

@media (max-width: 480px) {
  .air-current {
    color: rgba(20, 40, 90, 0.75) !important;
    font-size: 42px !important;
    font-weight: 600 !important;
    letter-spacing: -0.06em !important;
    transform: translateX(4px) !important;
  }

  .air-current small {
    font-size: 18px !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 390px) {
  .air-current {
    color: rgba(20, 40, 90, 0.75) !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    letter-spacing: -0.06em !important;
    transform: translateX(4px) !important;
  }
}


/* V62 Alarmblock Logik: nur sichtbar bei Alarm/Warnung.
   Nur echte/blockierende Alarme verdrängen den Wetterblock. */
.status-card[hidden] {
  display: none !important;
}

.pool-dashboard.has-alert .lower-stack .block-air {
  order: 1 !important;
}

.pool-dashboard.has-alert .lower-stack .block-status {
  order: 2 !important;
}

.pool-dashboard.has-alert .lower-stack .block-info {
  order: 3 !important;
}

.pool-dashboard.has-alert .lower-stack .block-water {
  order: 4 !important;
}

.pool-dashboard.has-status-message:not(.has-alert) .lower-stack .block-air {
  order: 1 !important;
}

.pool-dashboard.has-status-message:not(.has-alert) .lower-stack .block-info {
  order: 2 !important;
}

.pool-dashboard.has-status-message:not(.has-alert) .lower-stack .block-water {
  order: 3 !important;
}

.pool-dashboard.has-status-message:not(.has-alert) .lower-stack .block-status {
  order: 4 !important;
}

.status-card {
  min-height: 74px;
  height: auto !important;
  justify-content: flex-start;
  padding: 12px 15px !important;
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.92), rgba(221, 239, 252, 0.84));
}

.status-card.alarm {
  border-color: rgba(255, 54, 54, 0.46) !important;
  background: linear-gradient(180deg, rgba(88, 14, 24, 0.78), rgba(55, 10, 20, 0.68)) !important;
}

.status-card.warn {
  border-color: rgba(255, 197, 39, 0.52) !important;
  background: linear-gradient(180deg, rgba(88, 58, 10, 0.74), rgba(54, 36, 8, 0.64)) !important;
}

.status-card.alarm .eyebrow,
.status-card.alarm h2,
.status-card.alarm p,
.status-card.warn .eyebrow,
.status-card.warn h2,
.status-card.warn p {
  color: rgba(255, 255, 255, 0.94) !important;
}

.status-card.alarm p,
.status-card.warn p {
  color: rgba(255, 255, 255, 0.76) !important;
}

.status-card.alarm .status-symbol {
  color: #fff7f7;
  border-color: rgba(255, 92, 92, 0.56);
  background: rgba(255, 54, 54, 0.22);
}

.status-card.warn .status-symbol {
  color: #fff8df;
  border-color: rgba(255, 213, 76, 0.58);
  background: rgba(255, 197, 39, 0.20);
}

/* V21 Copyright: normaler letzter Block im unteren Stack, kein Overlay */
.lower-stack > .copyright-card {
  order: 99 !important;
  margin-top: 0 !important;
}

.copyright-card {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px 8px;
  border-radius: 14px;

  background: rgba(2, 8, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);

  color: rgba(218, 237, 255, 0.38);
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(95, 180, 255, 0.10);
}

.copyright-card .copyright-online {
  color: rgba(235, 248, 255, 0.50);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.copyright-card .copyright-name {
  text-transform: none;
  letter-spacing: 0.08em;
}

.copyright-card .copyright-mark {
  color: rgba(218, 237, 255, 0.30);
}



/* V22 Copyright Feinschliff: heller, groesser, POOL · ONLINE */
.copyright-card {
  min-height: 38px !important;
  gap: 5px !important;
  padding: 8px 10px 9px !important;
  font-size: 11.5px !important;
  letter-spacing: 0.13em !important;
  color: rgba(218, 237, 255, 0.44) !important;
  text-shadow:
    0 0 10px rgba(95, 180, 255, 0.14),
    0 1px 2px rgba(0,0,0,0.24) !important;
}

.copyright-card .copyright-online {
  color: rgba(235, 248, 255, 0.58) !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
}

.copyright-card .copyright-dot {
  color: rgba(218, 237, 255, 0.48) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

.copyright-card .copyright-mark {
  color: rgba(218, 237, 255, 0.36) !important;
}

.copyright-card .copyright-name {
  text-transform: none !important;
  letter-spacing: 0.075em !important;
}

@media (max-width: 390px) {
  .copyright-card {
    font-size: 10.8px !important;
    letter-spacing: 0.115em !important;
  }
}


/* V24 Bottom Navigation: 4 Tabs ohne System */
.bottom-nav {
  grid-template-columns: repeat(4, 1fr) !important;
}


/* V59 Wetterblock Forecast final: zentriert ueber den beiden Forecast-Werten */
.weather-card-v56 {
  position: relative !important;
  height: 86px !important;
  padding: 12px 16px 10px !important;
  grid-template-columns: 1.08fr 0.74fr 0.82fr 0.72fr 0.72fr !important;
  gap: 8px !important;
}

.weather-card-v56::after {
  content: "Forecast" !important;
  position: absolute !important;
  top: 8px !important;
  right: 9.5% !important;
  width: 26.5% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(8, 42, 93, 0.62) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.075em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.weather-card-v56::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 9.5%;
  width: 26.5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(8, 42, 93, 0.62) 0 21%,
    transparent 21% 79%,
    rgba(8, 42, 93, 0.62) 79% 100%
  );
  pointer-events: none;
}

.weather-tile {
  grid-template-rows: 37px 1fr !important;
}

.weather-forecast-min,
.weather-forecast-max {
  padding-top: 12px !important;
  grid-template-rows: 31px 1fr !important;
}

.weather-forecast-label {
  display: none !important;
}

.weather-forecast-icon {
  transform: translateY(-1px) scale(0.74) !important;
  opacity: 1 !important;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.18))
    drop-shadow(0 0 8px currentColor) !important;
}

.weather-svg-thermo {
  width: 38px !important;
  height: 38px !important;
  overflow: visible !important;
}

.weather-svg-temp-low,
.weather-forecast-min .weather-svg-thermo,
.weather-forecast-min .weather-value {
  color: #147dff !important;
}

.weather-svg-temp-high,
.weather-forecast-max .weather-svg-thermo,
.weather-forecast-max .weather-value {
  color: #ff2a2f !important;
}

.weather-thermo-glow {
  fill: none;
  stroke: currentColor;
  stroke-width: 8.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.18;
  filter: blur(1px);
}

.weather-thermo-body {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-thermo-fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 5.2;
  stroke-linecap: round;
}

.weather-thermo-bulb {
  fill: currentColor;
  stroke: rgba(255,255,255,0.78);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px currentColor);
}

.weather-thermo-ticks {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.30;
}

.weather-thermo-highlight {
  fill: none;
  stroke: rgba(255,255,255,0.75);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.weather-temp-stem,
.weather-temp-arrow {
  display: none !important;
}

.weather-forecast-value {
  align-self: start !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
  transform: translateY(-2px) !important;
}

.weather-forecast-value small {
  font-size: 12px !important;
  margin-left: 1px !important;
}

@media (max-height: 850px) {
  .weather-card-v56 {
    height: 84px !important;
    padding: 10px 12px 9px !important;
  }

  .weather-card-v56::after {
    top: 7px !important;
    font-size: 12px !important;
  }

  .weather-card-v56::before {
    top: 13px !important;
  }

  .weather-forecast-min,
  .weather-forecast-max {
    padding-top: 12px !important;
    grid-template-rows: 29px 1fr !important;
  }

  .weather-svg-thermo {
    width: 36px !important;
    height: 36px !important;
  }

  .weather-forecast-value {
    font-size: 23px !important;
  }
}

@media (max-width: 430px) {
  .weather-card-v56 {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.68fr) minmax(0, 0.78fr) minmax(0, 0.72fr) minmax(0, 0.72fr) !important;
    gap: 5px !important;
  }

  .weather-card-v56::after {
    right: 8.5% !important;
    width: 29% !important;
    font-size: 11px !important;
  }

  .weather-card-v56::before {
    right: 8.5% !important;
    width: 29% !important;
  }

  .weather-forecast-value {
    font-size: 22px !important;
  }
}

@media (max-width: 360px) {
  .weather-card-v56::after {
    font-size: 10px !important;
  }

  .weather-svg-thermo {
    width: 33px !important;
    height: 33px !important;
  }

  .weather-forecast-value {
    font-size: 20px !important;
  }
}

/* V60 Wetterblock Forecast final ohne Thermometer-Icons */
.weather-card-v56 {
  position: relative !important;
  height: 86px !important;
  padding: 12px 16px 10px !important;
  grid-template-columns: 1.08fr 0.74fr 0.82fr 0.72fr 0.72fr !important;
  gap: 8px !important;
  overflow: hidden !important;
}

/* Alte Forecast-Beschriftung aus V59 deaktivieren */
.weather-card-v56::before,
.weather-card-v56::after {
  content: none !important;
  display: none !important;
}

.weather-tile {
  grid-template-rows: 37px 1fr !important;
}

.weather-state,
.weather-rain,
.weather-wind {
  grid-template-rows: 37px 1fr !important;
}

.weather-forecast-min,
.weather-forecast-max {
  position: relative !important;
  padding-top: 20px !important;
  grid-template-rows: 1fr !important;
  overflow: visible !important;
}

/* Forecast-Titel exakt über den beiden Forecast-Spalten zentriert */
.weather-forecast-min::before {
  content: "Forecast" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: calc(200% + 8px) !important;
  height: 14px !important;
  color: rgba(8, 42, 93, 0.62) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.075em !important;
  line-height: 14px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.weather-forecast-min::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 7px !important;
  width: calc(200% + 8px) !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    rgba(8, 42, 93, 0.58) 0 22%,
    transparent 22% 78%,
    rgba(8, 42, 93, 0.58) 78% 100%
  ) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.weather-forecast-icon,
.weather-forecast-label,
.weather-svg-thermo {
  display: none !important;
}

.weather-forecast-value {
  align-self: center !important;
  justify-self: center !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.055em !important;
  transform: translateY(2px) !important;
}

.weather-forecast-value small {
  font-size: 13px !important;
  margin-left: 1px !important;
}

.weather-forecast-min .weather-value {
  color: #147dff !important;
}

.weather-forecast-max .weather-value {
  color: #ff2a2f !important;
}

@media (max-height: 850px) {
  .weather-card-v56 {
    height: 84px !important;
    padding: 10px 12px 9px !important;
  }

  .weather-forecast-min,
  .weather-forecast-max {
    padding-top: 19px !important;
  }

  .weather-forecast-min::before {
    font-size: 12px !important;
  }

  .weather-forecast-value {
    font-size: 26px !important;
  }
}

@media (max-width: 430px) {
  .weather-card-v56 {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.68fr) minmax(0, 0.78fr) minmax(0, 0.72fr) minmax(0, 0.72fr) !important;
    gap: 5px !important;
  }

  .weather-forecast-min::before,
  .weather-forecast-min::after {
    width: calc(200% + 5px) !important;
  }

  .weather-forecast-min::before {
    font-size: 11px !important;
  }

  .weather-forecast-value {
    font-size: 25px !important;
  }
}

@media (max-width: 360px) {
  .weather-forecast-min::before {
    font-size: 10px !important;
  }

  .weather-forecast-value {
    font-size: 23px !important;
  }
}

/* V61 Wetterblock Forecast optional schaltbar
   Steuerung in js/app.js:
   CONFIG.ui.showWeatherForecastMinMax = true  -> Forecast Min/Max sichtbar
   CONFIG.ui.showWeatherForecastMinMax = false -> Forecast Min/Max ausgeblendet */
.weather-card-v56.weather-forecast-disabled {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.weather-card-v56.weather-forecast-disabled .weather-forecast-min,
.weather-card-v56.weather-forecast-disabled .weather-forecast-max {
  display: none !important;
}

.weather-card-v56.weather-forecast-disabled .weather-state,
.weather-card-v56.weather-forecast-disabled .weather-rain,
.weather-card-v56.weather-forecast-disabled .weather-wind {
  grid-template-rows: 40px 1fr !important;
  padding-top: 3px !important;
  padding-bottom: 2px !important;
}

.weather-card-v56.weather-forecast-disabled .weather-icon {
  justify-self: center !important;
  align-self: center !important;
  transform: translateY(-4px) !important;
}

.weather-card-v56.weather-forecast-disabled .weather-value {
  justify-self: center !important;
  align-self: center !important;
}

.weather-card-v56.weather-forecast-enabled {
  grid-template-columns: 1.08fr 0.74fr 0.82fr 0.72fr 0.72fr !important;
}

@media (max-width: 430px) {
  .weather-card-v56.weather-forecast-disabled {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .weather-card-v56.weather-forecast-enabled {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.68fr) minmax(0, 0.78fr) minmax(0, 0.72fr) minmax(0, 0.72fr) !important;
  }
}

/* Subtile Wasseranimation im Hero-Bild */
.hero-card {
  position: relative;
}

.hero-shade {
  z-index: 1;
}

.hero-water-animation {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 43%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  opacity: 0.78;
  mix-blend-mode: screen;
  clip-path: polygon(0 31%, 100% 20%, 100% 100%, 0 100%);
}

.hero-water-animation::before,
.hero-water-animation::after {
  content: "";
  position: absolute;
  inset: -35% -50%;
  background:
    radial-gradient(ellipse at 22% 58%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.00) 34%),
    repeating-linear-gradient(
      166deg,
      rgba(255,255,255,0.00) 0px,
      rgba(255,255,255,0.00) 13px,
      rgba(255,255,255,0.26) 16px,
      rgba(70,211,255,0.18) 20px,
      rgba(255,255,255,0.00) 32px
    );
  filter: blur(0.8px);
  transform: translate3d(-8%, 0, 0) skewY(-2deg);
  animation: heroWaterDrift 7s ease-in-out infinite alternate;
}

.hero-water-animation::after {
  opacity: 0.64;
  background:
    radial-gradient(ellipse at 74% 48%, rgba(153,231,255,0.26) 0%, rgba(153,231,255,0.00) 32%),
    repeating-linear-gradient(
      14deg,
      rgba(255,255,255,0.00) 0px,
      rgba(255,255,255,0.00) 22px,
      rgba(160,236,255,0.20) 26px,
      rgba(255,255,255,0.12) 30px,
      rgba(255,255,255,0.00) 45px
    );
  filter: blur(1.4px);
  animation: heroWaterDriftReverse 9s ease-in-out infinite alternate;
}

.hero-clock,
.solar-overlay,
.temperature-card {
  z-index: 5;
}

@keyframes heroWaterDrift {
  0% { transform: translate3d(-10%, -1%, 0) skewY(-2deg) scale(1.02); }
  100% { transform: translate3d(10%, 1%, 0) skewY(-2deg) scale(1.02); }
}

@keyframes heroWaterDriftReverse {
  0% { transform: translate3d(8%, 1%, 0) skewY(1.5deg) scale(1.02); }
  100% { transform: translate3d(-8%, -1%, 0) skewY(1.5deg) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-water-animation::before,
  .hero-water-animation::after {
    animation: none;
  }
}


/* V30 Soll erreicht: kompakte Minimaldarstellung.
   Normal bleibt unveraendert. Bei SOLL ERREICHT wird nur der
   notwendige Zusatzraum eingeblendet. Haupttemperatur und SOLL-Zeile
   werden leicht nach unten geschoben, Min/Ø/Max bleibt unten fix. */
.temperature-card.is-target-reached {
  height: 108px !important;
  min-height: 108px !important;
  padding-top: 4px !important;
  padding-bottom: 7px !important;
  grid-template-rows: 38px 15px auto !important;
  gap: 1px !important;
}

.temperature-card.is-target-reached .temp-main {
  align-items: flex-end !important;
  transform: translateY(10px) !important;
}

.temperature-card.is-target-reached .target-reached {
  display: block !important;
  margin: 0 !important;
  align-self: end !important;
  transform: translateY(10px) !important;
  color: #64e35a !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.48) !important;
}

.temperature-card.is-target-reached .temp-band {
  align-self: end !important;
  gap: 2px !important;
  padding: 0 1px !important;
  transform: none !important;
}

.temperature-card.is-target-reached .temp-band-labels {
  font-size: 16px !important;
  line-height: 0.95 !important;
}

.temperature-card.is-target-reached .temp-band-track {
  height: 8px !important;
}

@media (hover: hover) and (any-pointer: fine) {
  .temperature-card.is-target-reached {
    height: 114px !important;
    min-height: 114px !important;
    padding-top: 5px !important;
    padding-bottom: 8px !important;
    grid-template-rows: 42px 16px auto !important;
    gap: 1px !important;
  }

  .temperature-card.is-target-reached .temp-main {
    transform: translateY(10px) !important;
  }

  .temperature-card.is-target-reached .target-reached {
    font-size: 15px !important;
    letter-spacing: 0.08em !important;
    transform: translateY(10px) !important;
  }
}

@media (max-width: 480px) {
  .temperature-card.is-target-reached {
    height: 106px !important;
    min-height: 106px !important;
    padding-top: 4px !important;
    padding-bottom: 7px !important;
    grid-template-rows: 38px 15px auto !important;
    gap: 1px !important;
  }

  .temperature-card.is-target-reached .temp-main {
    transform: translateY(10px) !important;
  }

  .temperature-card.is-target-reached .target-reached {
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    transform: translateY(10px) !important;
  }

  .temperature-card.is-target-reached .temp-band-labels {
    font-size: 16px !important;
  }
}

@media (max-width: 390px) {
  .temperature-card.is-target-reached {
    height: 104px !important;
    min-height: 104px !important;
    grid-template-rows: 37px 14px auto !important;
  }

  .temperature-card.is-target-reached .target-reached {
    font-size: 13px !important;
  }

  .temperature-card.is-target-reached .temp-band-labels {
    font-size: 15px !important;
  }
}
