/* Pflegenot Counter — iframe styles
 *
 * Mirrors the legacy widget's class names so the JS engine in pgntct.js
 * keeps producing the same DOM, but updates type, spacing and shape to
 * match the 2026 brand. Inline `style` assignments from pgntct.json
 * (bgColor, gridRowEnd, iconDisplay, fontSize*) still take precedence —
 * we use rem-based sizes here so they don't fight the inline `1em`/`2.5em`.
 */

body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "cv11", "tnum";
}

#pgntct-root {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(48, 1fr);
  grid-auto-flow: column;
  grid-gap: 12px;
  color: white;
}

@media (min-width: 30em) {
  #pgntct-root {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(24, 1fr);
    grid-gap: 16px;
  }
}

@media (min-width: 50em) {
  #pgntct-root {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(12, 1fr);
    grid-gap: 16px;
  }
}

.pgntct-element-wrap {
  padding: 18px;
  border-radius: 12px;
  box-shadow:
    0 1px 3px rgba(15, 26, 31, 0.06),
    0 4px 12px rgba(15, 26, 31, 0.04);
  overflow: hidden;
}

.pgntct-element-cnt {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.pgntct-element-cnt > * {
  width: 100%;
}

.pgntct-value-icon-cnt {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pgntct-icon-cnt {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pgntct-icon {
  display: inline-flex;
  line-height: 0;
}

.pgntct-icon svg {
  height: 1.75rem;
  width: auto;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pgntct-icon img {
  height: 1.75rem;
  width: auto;
  display: block;
}

.pgntct-value {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pgntct-headline {
  margin: 0;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.85;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

.pgntct-text-wrap {
  flex: 1 0 auto;
}

.pgntct-text {
  margin: 0;
  line-height: 1.4;
  font-size: 0.8125rem;
  opacity: 0.92;
}

.pgntct-link-wrap {
  text-align: right;
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-top: 2px;
}

.pgntct-link-wrap a,
.pgntct-link-wrap a:link,
.pgntct-link-wrap a:visited {
  color: currentColor;
  opacity: 0.85;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  padding-bottom: 1px;
  transition: opacity 150ms ease, border-color 150ms ease;
}

.pgntct-link-wrap a:hover,
.pgntct-link-wrap a:active {
  opacity: 1;
  border-bottom-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .pgntct-link-wrap a {
    transition: none;
  }
}

@media (min-width: 50em) {
  .pgntct-element-wrap {
    padding: 22px;
  }
  .pgntct-icon svg,
  .pgntct-icon img {
    height: 2rem;
  }
  .pgntct-text {
    font-size: 0.875rem;
  }
  /* On the 4-column desktop layout, cap the value font-size so long sums
   * (e.g. 18.759.484.185 €, 14 chars + suffix) stay on a single line. */
  .pgntct-value {
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  }
}
