/* =========================================================
   SERP Snippet Vorschau – Styles (Basis: assets/css/tool-ui.css)
   Die Vorschau nutzt bewusst Arial und Googles Farben, damit Breiten und Wirkung stimmen.
   ========================================================= */
.sp .tu-label code { font-family: var(--mono); }
.sp-extras { display: grid; gap: 14px; }
.sp-dateinput { max-width: 220px; }
.sp-dateinput[hidden], .sp-rate[hidden] { display: none; }
.sp-rate { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-rate label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sp-rate .tu-input { width: 120px; }
.sp-preview .tu-card__head { flex-wrap: wrap; }
.sp-dark { font-size: 13px; }

/* Google-Ansicht in echter Breite (Desktop 600 px Ergebnis, Mobil 412 px Bildschirm) – passt sie nicht, wird sie per JS verkleinert */
.sp-fit { position: relative; overflow: hidden; }
.sp-fit .sp-serp { transform-origin: top left; }
.sp-serp {
  --bg: #fff; --text: #4d5156; --title: #1a0dab; --url: #202124; --muted: #70757a; --line: #ecedef; --fav: #f1f3f4;
  width: 652px; padding: 16px 26px 18px; border-radius: 14px; background: var(--bg); border: 1px solid rgba(15,19,48,.1);
  font-family: Arial, sans-serif; color: var(--text); transition: background .25s, color .25s;
}
.sp-serp.is-dark { --bg: #202124; --text: #bdc1c6; --title: #99c3ff; --url: #dadce0; --muted: #9aa0a6; --line: #3c4043; --fav: #3c4043; }
.sp-bar { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.sp-bar__logo { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sp-bar__logo b { font-weight: 700; }
.sp-bar__q { flex: 1; min-width: 0; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--url); background: var(--fav); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-result { max-width: 600px; }
.sp-result + .sp-result { margin-top: 22px; }
.sp-result--ghost { display: grid; gap: 7px; opacity: .6; }
.sp-result--ghost i { display: block; height: 9px; border-radius: 5px; background: var(--line); }
.sp-result--ghost i:nth-child(1) { width: 35%; } .sp-result--ghost i:nth-child(2) { width: 75%; height: 13px; } .sp-result--ghost i:nth-child(3) { width: 92%; }
.sp-site { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sp-fav { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--url); background: var(--fav); border: 1px solid var(--line); }
.sp-site__text { display: grid; min-width: 0; line-height: 1.3; }
.sp-site__name { font-size: 14px; color: var(--url); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-site__url { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sep { padding: 0 1px; }
.sp-bad { color: #d93025; }
.sp-dots { margin-left: 4px; color: var(--muted); font-size: 16px; }
.sp-title { margin: 0; font-family: Arial, sans-serif; font-size: 20px; font-weight: 400; line-height: 1.3; letter-spacing: 0; color: var(--title); white-space: nowrap; overflow: hidden; cursor: pointer; }
.sp-title:hover { text-decoration: underline; }
.sp-rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.sp-rating[hidden] { display: none; }
.sp-stars::before { content: "★★★★★"; letter-spacing: 1px; background: linear-gradient(90deg, #fbbc04 calc(var(--r) / 5 * 100%), #dadce0 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.58; color: var(--text); overflow-wrap: anywhere; }
.sp-desc b { font-weight: 700; color: inherit; }
.sp-serp.is-dark .sp-desc b { color: #e8eaed; }
.sp-date { color: var(--muted); }
.is-placeholder { opacity: .5; }

/* Mobil: schmaler, Titel darf umbrechen */
.sp-serp.is-mobile { width: 412px; padding: 14px 16px 16px; }
.sp-serp.is-mobile .sp-title { white-space: normal; font-size: 18px; line-height: 1.33; }
.sp-serp.is-mobile .sp-bar__logo { font-size: 18px; }

.sp-muted { color: #8f96b8; font-family: Inter, sans-serif; font-style: italic; }
.sp .c-tag { color: #f07178; } .sp .c-attr { color: #ffcb6b; }
