/* ==========================================================================
   Text-size control – nagl24care.at
   ==========================================================================
   Lives inline in the header's top row, next to the Facebook/WhatsApp icons
   (same navy background, same 20px icon scale, same 5px gap the site
   already uses for that row — see .elementor-element-094a9f9 in
   wp-content/uploads/elementor/css/post-28.css). A fixed-position fallback
   is kept in case that row is ever missing from the markup.
   ========================================================================== */

.nc-textsize {
  display: inline-flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1;
}

/* ---------- inline, inside the icon row (normal case) ---------- */
.nc-textsize--inline {
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}

.nc-textsize--inline button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, background-color .15s ease;
}

/* Same visual idea as the icon row: bigger label = bigger font-size. */
.nc-textsize--inline button[data-nc-size="1"]    { font-size: 12px; }
.nc-textsize--inline button[data-nc-size="1.15"] { font-size: 14px; }
.nc-textsize--inline button[data-nc-size="1.3"]  { font-size: 16px; }

.nc-textsize--inline button:hover { color: #fff; }

.nc-textsize--inline button[aria-pressed="true"] {
  color: #142b57;
  background: #fab30b;
}

.nc-textsize--inline button:focus-visible {
  outline: 2px solid #fab30b;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .nc-textsize--inline { margin-left: 8px; padding-left: 8px; }
  .nc-textsize--inline button { padding: 4px; }
}

/* ---------- fixed fallback (only used if the icon row isn't found) ---------- */
.nc-textsize--floating {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d8dde8;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(20, 43, 87, .18);
}

.nc-textsize--floating button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #f1f4f9;
  color: #142b57;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .16s ease, color .16s ease;
}

.nc-textsize--floating button[data-nc-size="1"]    { font-size: 14px; }
.nc-textsize--floating button[data-nc-size="1.15"] { font-size: 17px; }
.nc-textsize--floating button[data-nc-size="1.3"]  { font-size: 20px; }

.nc-textsize--floating button:hover { background: #e3e9f3; }

.nc-textsize--floating button[aria-pressed="true"] {
  background: #fab30b;
  color: #142b57;
}

.nc-textsize--floating button:focus-visible {
  outline: 3px solid #142b57;
  outline-offset: 2px;
}

@media print {
  .nc-textsize { display: none; }
}
