/* =========================================================
   Meta Tag Generator – Styles (Basis: assets/css/tool-ui.css)
   ========================================================= */
.mtg-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mtg-side { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.mtg-side .tu-card + .tu-card { margin-top: 0; }
.mtg-form .tu-details > summary.tu-card__title { margin-bottom: 0; }
.mtg-form .tu-details[open] > summary.tu-card__title { margin-bottom: 18px; }
.mtg-form .tu-details > summary span { display: inline-flex; align-items: center; gap: 10px; }
.mtg-form details.tu-span-2 { padding: 14px 16px; border-radius: 14px; background: rgba(15,19,48,.03); border: 1px solid rgba(15,19,48,.06); }
.mtg-form details.tu-span-2 > summary { font-size: 13.5px; }
#mtgImageInfo[data-state="ok"] { color: var(--ok); }
#mtgImageInfo[data-state="err"] { color: var(--err); }
.mtg-x { font-size: 15px; line-height: 1; }

.mtg-codeopts { margin-bottom: 12px; }
.mtg-codeopts .tu-switch { font-size: 13px; }

.mtg-device { margin-bottom: 14px; }
.mtg-pvhint { margin-top: 12px; }

/* ---------- Google-Vorschau ---------- */
.serp {
  padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid rgba(15,19,48,.08);
  font-family: Arial, sans-serif; color: #202124; max-width: 652px;
}
.serp.is-mobile { max-width: 380px; padding: 16px; border-radius: 18px; box-shadow: 0 6px 20px -12px rgba(15,19,48,.35); }
.serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.serp__favicon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--grad); }
.serp__siteinfo { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.serp__name { font-size: 14px; color: #202124; }
.serp__url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp__title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; word-break: break-word; }
.serp:not(.is-mobile) .serp__title { white-space: nowrap; overflow: hidden; }
.serp__desc { font-size: 14px; line-height: 1.58; color: #4d5156; word-break: break-word; }
.serp .is-ph { color: #9aa0a6; font-style: italic; }
.serp.is-noindex { position: relative; opacity: .5; }
.serp.is-noindex::after { content: "noindex – erscheint nicht bei Google"; position: absolute; right: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px/1.4 Inter, sans-serif; color: #fff; background: var(--err); }

/* ---------- Facebook / LinkedIn ---------- */
.social { max-width: 520px; border-radius: 10px; overflow: hidden; background: #f0f2f5; border: 1px solid #dadde1; font-family: Helvetica, Arial, sans-serif; }
.social__img, .xcard__img {
  position: relative; aspect-ratio: 1.91 / 1; display: grid; place-items: center;
  background: linear-gradient(135deg, #dfe4f7, #eceffa) center / cover no-repeat;
}
.social__img.has-img, .xcard__img.has-img { background-size: cover; background-position: center; }
.social__img.has-img .social__ph, .xcard__img.has-img .social__ph { display: none; }
.social__ph { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 12px/1 Inter, sans-serif; color: #8a90b0; }
.social__ph .i { width: 34px; height: 34px; stroke-width: 1.5; }
.social__body { display: grid; gap: 3px; padding: 10px 12px 12px; border-top: 1px solid #dadde1; }
.social__domain { font-size: 12px; color: #606770; letter-spacing: .02em; }
.social__title { font-size: 16px; font-weight: 600; line-height: 1.3; color: #1d2129; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.social__desc { font-size: 14px; line-height: 1.35; color: #606770; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- X ---------- */
.xcard { max-width: 520px; border-radius: 16px; overflow: hidden; border: 1px solid #cfd9de; background: #fff; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.xcard__domain { position: absolute; left: 12px; bottom: 12px; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #fff; background: rgba(0,0,0,.77); }
.xcard__body { display: none; }
.xcard.is-small { display: flex; }
.xcard.is-small .xcard__img { flex-shrink: 0; width: 130px; aspect-ratio: 1; border-right: 1px solid #cfd9de; }
.xcard.is-small .xcard__domain { display: none; }
.xcard.is-small .xcard__body { display: grid; align-content: center; gap: 2px; padding: 12px 14px; min-width: 0; }
.xcard__from { font-size: 14px; color: #536471; }
.xcard__title { font-size: 15px; color: #0f1419; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xcard__desc { font-size: 15px; line-height: 1.3; color: #536471; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1100px) {
  .mtg-layout { grid-template-columns: minmax(0, 1fr); }
  .mtg-side { position: static; }
}
