/* website-a-und-o.css: Styles fuer Website A und O (public/website-a-und-o.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); }

/* ---- Vergleich zum letzten Mal ---- */
.st-vergleich { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.st-vergleich.st-vergleich-gut { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, var(--card)); }
.st-vergleich p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.st-vergleich-titel { font-weight: 600; }
.st-vergleich-liste { margin: 0; padding-left: 20px; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.st-vergleich-zeit { font-size: 14px; color: var(--muted); }

/* ---- Teile und Punkte ---- */
.st-groups { display: flex; flex-direction: column; gap: 48px; }
.st-teil-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.st-teil-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-teil-zeile h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); }
.st-teil-nr {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
  color: var(--card); background: var(--ink);
}
.st-teil-zaehler {
  margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border2); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.st-group-sub { margin: 0; font-size: 15px; color: var(--muted); }
.st-block {
  margin: 26px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--caption);
}
.st-block:first-of-type { margin-top: 0; }
.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-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-hand .st-dot { background: var(--card); border: 2px solid var(--caption); }
.st-abgehakt .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-regel { border-left-color: var(--teal); }
.st-regel .st-fix-label { color: var(--teal); }
.st-regel .st-copy { color: var(--teal); border-color: var(--teal); }
.st-regel .st-copy:hover { background: var(--teal); color: #FFFFFF; }
.st-copy:hover { background: var(--magenta); color: #FFFFFF; }
.st-copy.copied { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.st-item-fuss { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.st-haken { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.st-haken input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; flex: none; }
.st-anker { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--caption); text-decoration: underline; text-underline-offset: 3px; }
.st-anker:hover { color: var(--magenta); }
.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%; }
  /* Nummer und Titel bleiben zusammen, der Zaehler kriegt eine eigene Zeile,
     eingerueckt auf die Textkante. Sonst zerfaellt eine lange Ueberschrift
     wie «Kann sie Kunden empfangen?» in drei Zeilen. */
  .st-teil-zeile h3 { font-size: 22px; flex: 1 1 0; min-width: 0; }
  .st-teil-zaehler { order: 3; flex-basis: 100%; margin-left: 44px; width: max-content; }
  .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-vergleich[hidden], .st-result[hidden], .st-copy[hidden], .btn[hidden] { display: none !important; }
