/* seo-test.css — Styles fuer den SEO-Test (public/seo-test.html).
   Eigene Datei wie linkedin-post-formatter.css: nur diese Seite laedt sie.
   Flach, Raender statt Schatten, Farben und Schriften aus styles.css. */

/* ---- Eingabe im Hero ---- */
.st-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 720px; margin-top: 6px; }
.st-input {
  flex: 1; min-width: 240px; padding: 14px 16px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--border2); border-radius: 10px; outline: none;
}
.st-input:focus-visible { border-color: var(--magenta); }
.st-form .btn { white-space: nowrap; }
.st-form .btn:disabled { opacity: .7; cursor: wait; }
.st-form-note { margin: 0; font-size: 14.5px; color: var(--caption); max-width: 720px; }
.st-form-note.st-fehler { color: var(--magenta); font-weight: 600; }

/* ---- Zusammenfassung ---- */
.st-summary { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 34px 36px; align-items: start; border-width: 2px; }
.st-summary.st-band-gruen { border-color: var(--teal); }
.st-summary.st-band-gelb { border-color: var(--ocher); }
.st-summary.st-band-rot { border-color: var(--magenta); }
.st-summary-score { display: flex; flex-direction: column; gap: 6px; }
.st-score { font-family: var(--serif); font-weight: 700; font-size: 72px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.st-score-suffix { font-size: 26px; color: var(--caption); font-weight: 500; margin-left: 4px; }
.st-band { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.st-band-gruen .st-band { color: var(--teal); }
.st-band-gelb .st-band { color: var(--ocher); }
.st-band-rot .st-band { color: var(--magenta); }
.st-summary-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.st-summary-text .h2 { font-size: 30px; overflow-wrap: anywhere; }
.st-counts { margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.st-count { display: inline-flex; align-items: center; gap: 7px; }
.st-count::before { content: ""; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.st-count-rot::before { background: var(--magenta); }
.st-count-gelb::before { background: var(--ocher); }
.st-count-gruen::before { background: var(--teal); }
.st-count b { color: var(--ink); }
.st-summary-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.st-summary-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.st-share { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }

/* ---- Hinweisbox fuer JS-Seiten ---- */
.st-spa { padding: 26px 30px; display: flex; flex-direction: column; gap: 10px; border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, var(--card)); }
.st-spa h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); }
.st-spa p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ---- Gruppen und Punkte ---- */
.st-groups { display: flex; flex-direction: column; gap: 40px; }
.st-group-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.st-group-head h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); }
.st-group-sub { margin: 0; font-size: 15px; color: var(--muted); }
.st-list { display: flex; flex-direction: column; gap: 10px; }

.st-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; transition: transform .15s ease, box-shadow .15s ease; }
.st-item:hover { box-shadow: 0 6px 18px rgba(46, 37, 40, .07); }
.st-item summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.st-item summary::-webkit-details-marker { display: none; }
.st-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--caption); flex: none; margin-top: 2px; }
.st-item[open] summary::after { content: "–"; }
.st-item.st-gruen summary::after { content: ""; }
.st-item.st-gruen summary { cursor: default; }
.st-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 5px; }
.st-rot .st-dot { background: var(--magenta); }
.st-gelb .st-dot { background: var(--ocher); }
.st-gruen .st-dot { background: var(--teal); }
.st-item-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.st-item-title { font-weight: 600; font-size: 17px; color: var(--ink); }
.st-item-befund { font-size: 14.5px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.st-item-body { padding: 0 0 18px 28px; display: flex; flex-direction: column; gap: 12px; }
.st-warum { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.st-fix { position: relative; background: var(--tint); border-left: 3px solid var(--magenta); border-radius: 0 12px 12px 0; padding: 14px 18px 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.st-fix-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--magenta); }
.st-fix p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.st-copy {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--magenta); background: var(--card);
  border: 1px solid var(--magenta); border-radius: 8px; padding: 7px 12px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.st-copy:hover { background: var(--magenta); color: #FFFFFF; }
.st-copy.copied { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.st-foot { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 820px; }

/* ---- Gut zu wissen ---- */
.st-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.st-notes h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.st-notes p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .st-summary { grid-template-columns: 1fr; gap: 20px; padding: 26px 24px; }
  .st-notes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .st-form .btn { width: 100%; }
  .st-score { font-size: 56px; }
  .st-summary-text .h2 { font-size: 24px; }
  .st-notes { grid-template-columns: 1fr; }
  .st-item { padding: 0 14px; }
  .st-item-body { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .st-item { transition: none; }
}

/* display:flex/grid oben darf das hidden-Attribut nicht ueberstimmen. */
.st-spa[hidden], .st-result[hidden], .st-copy[hidden], .btn[hidden] { display: none !important; }
