/* modules/meteograms/meteograms.css */
#meteograms-root{ display:block; }

.mg-wrap{ display:grid; gap: 12px; }

.mg-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mg-card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  overflow:hidden;
}

.mg-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .04), rgba(255,255,255,0) 60%);
}

.mg-title{
  font-weight: 650;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-badge{
  font-size: .78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: .14rem .48rem;
  white-space: nowrap;
}

.mg-body{ padding: 10px; }

.mg-framewrap{
  width: 100%;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: #fff;
  overflow: hidden;
  position: relative;
}

.mg-frameinner{
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: top center;
}

.mg-iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* Meteoblue fluido */
.mg-framewrap.is-fluid .mg-frameinner{
  position: static;
  left: auto;
  transform: none;
  width: 100%;
  height: 100%;
}
.mg-framewrap.is-fluid .mg-iframe{
  width: 100%;
  height: 100%;
}

/* Attribution meteoblue (DO NOT REMOVE) */
.mg-attrib{
  display:flex;
  justify-content:flex-end;
  padding-top: 10px;
}
.mg-attrib a{
  font-size: .90rem;
  color: var(--muted);
  text-decoration: none;
}
.mg-attrib a:hover{ text-decoration: underline; }

/* Wetterzentrale images */
.mg-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: var(--bg);
}

.mg-card.is-compact .mg-img{
  max-height: 420px;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 820px){
  .mg-card.is-compact .mg-img{ max-height: 520px; }
}
@media (max-width: 520px){
  .mg-card.is-compact .mg-img{ max-height: none; }
}

/* Fallback link */
.mg-fallback{
  display:flex;
  justify-content:flex-end;
  padding-top: 10px;
}
.mg-fallback a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: .42rem .70rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg, var(--text));
  font-size: .92rem;
  text-decoration: none;
}
.mg-fallback a:hover{
  background: var(--brand-50, rgba(0,0,0,.04));
  border-color: var(--brand-200, var(--border));
}
