/* hapo SEO Check — Styles v4.0
   Schriften: Varela Round (Überschriften), Roboto (Text)
   Quellen direkt von hapo.at
*/

/* ── Schriften ────────────────────────────────────────────────── */
@font-face {
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('https://hapo.at/wp-content/uploads/2023/01/varela-round-v19-latin-regular.woff2') format('woff2'),
       url('https://hapo.at/wp-content/uploads/2023/01/varela-round-v19-latin-regular.woff')  format('woff'),
       url('https://hapo.at/wp-content/uploads/2023/01/varela-round-v19-latin-regular.ttf')   format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('https://hapo.at/wp-content/uploads/2023/02/roboto-v30-latin-regular.woff2') format('woff2'),
       url('https://hapo.at/wp-content/uploads/2023/02/roboto-v30-latin-regular.woff')  format('woff'),
       url('https://hapo.at/wp-content/uploads/2023/02/roboto-v30-latin-regular.ttf')   format('truetype');
}

/* ── Basis ───────────────────────────────────────────────────── */
#hapo-seo-app {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0;
  color: #1a1a2e;
}

/* ── Header ──────────────────────────────────────────────────── */
.hsc-header { margin-bottom: 1.8rem; }

.hsc-tag {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #7c3aed;
  border: 1px solid #7c3aed;
  padding: .18rem .55rem;
  border-radius: 3px;
  margin-bottom: .8rem;
}

.hsc-title {
  font-family: 'Varela Round', sans-serif !important;
  font-size: clamp(1.8rem, 4vw, 2.4rem) !important;
  line-height: 1.2 !important;
  color: #1a1a2e !important;
  margin-bottom: .4rem !important;
  font-weight: 400 !important;
}

.hsc-title em {
  font-style: normal;
  color: #7c3aed;
}

.hsc-sub {
  font-family: 'Roboto', sans-serif;
  color: #6b7280;
  font-size: 14px;
  margin: 0 !important;
}

/* ── Input ───────────────────────────────────────────────────── */
.hsc-input-row {
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#hsc-url {
  flex: 1;
  min-width: 200px;
  border: 1.5px solid #e2e0f0 !important;
  border-radius: 8px !important;
  padding: .75rem 1rem !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #fafafa !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s !important;
}

#hsc-url:focus {
  border-color: #7c3aed !important;
  background: #fff !important;
}

#hsc-url::placeholder { color: #9ca3af !important; }

#hsc-btn {
  background: #7c3aed !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: .75rem 1.5rem !important;
  font-family: 'Varela Round', sans-serif !important;
  font-size: 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: opacity .2s !important;
  box-shadow: 0 2px 8px rgba(124,58,237,.3) !important;
}

#hsc-btn:hover   { opacity: .88 !important; }
#hsc-btn:disabled { opacity: .45 !important; cursor: not-allowed !important; }

/* ── CAPTCHA ─────────────────────────────────────────────────── */
#hsc-captcha-wrap {
  background: #fff;
  border: 1.5px solid #e8e8f0;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
  display: inline-block;
}

#hsc-captcha-wrap > p {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  margin: 0 0 .5rem !important;
}

#hsc-captcha-wrap img {
  width: 130px;
  height: 50px;
  object-fit: cover;
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  margin-bottom: .6rem;
}

#hsc-captcha {
  width: 160px !important;
  padding: .55rem .8rem !important;
  border: 1.5px solid #e2e0f0 !important;
  border-radius: 6px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  outline: none !important;
  transition: border-color .2s !important;
}

#hsc-captcha:focus  { border-color: #7c3aed !important; }

#hsc-captcha-msg {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #dc2626;
  margin-left: .4rem;
}

/* ── Fortschritt ─────────────────────────────────────────────── */
.hsc-progress {
  height: 3px;
  background: #e8e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .8rem;
  display: none;
}
.hsc-progress.on { display: block; }
.hsc-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  animation: hsc-prog 1.5s ease-in-out infinite;
}
@keyframes hsc-prog {
  0%   { width: 20%; margin-left: 0; }
  50%  { width: 55%; margin-left: 25%; }
  100% { width: 0;   margin-left: 100%; }
}

.hsc-status {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: .6rem;
  display: none;
}

/* ── Fehler ──────────────────────────────────────────────────── */
.hsc-error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: .9rem 1.2rem;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #dc2626;
  line-height: 1.5;
  display: none;
  margin-bottom: 1rem;
}
.hsc-error.on { display: block; }

/* ── Ergebnisse ──────────────────────────────────────────────── */
.hsc-results { display: none; }
.hsc-results.on { display: block; }

/* ── Score Box ───────────────────────────────────────────────── */
.hsc-scorebox {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1.5px solid #e8e8f0;
  border-radius: 12px;
  padding: 1.3rem 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(124,58,237,.07);
}

.hsc-ring-wrap { position: relative; flex-shrink: 0; }
.hsc-ring-wrap svg { display: block; }

#hsc-ring {
  transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1), stroke .3s ease;
}

.hsc-ring-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  line-height: 1;
}

.hsc-ring-center span {
  display: block;
  font-family: 'Varela Round', sans-serif;
  font-size: 1.7rem;
  color: #7c3aed;
}

.hsc-ring-center small {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9ca3af;
}

.hsc-score-meta { flex: 1; }

.hsc-domain-tag {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #7c3aed;
  margin-bottom: .4rem;
}

.hsc-score-meta h3 {
  font-family: 'Varela Round', sans-serif !important;
  font-size: 1.25rem !important;
  color: #1a1a2e !important;
  margin-bottom: .25rem !important;
  font-weight: 400 !important;
}

.hsc-score-meta p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 !important;
}

/* ── Hinweis ─────────────────────────────────────────────────── */
.hsc-hint {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: .8rem;
}

/* ── Kategorie-Karten ────────────────────────────────────────── */
.hsc-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 560px) { .hsc-cats { grid-template-columns: 1fr; } }

.hsc-cat {
  background: #fff;
  border: 1.5px solid #e8e8f0;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.hsc-cat:hover { border-color: #a78bfa; }
.hsc-cat.open  { border-color: #7c3aed; box-shadow: 0 2px 10px rgba(124,58,237,.1); }

.hsc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .45rem;
}

.hsc-cat-name {
  font-family: 'Varela Round', sans-serif;
  font-size: 13px;
  color: #374151;
}

.hsc-cat-score {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.2rem;
}

.hsc-cat-bar-bg {
  height: 3px;
  background: #e8e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .65rem;
}

.hsc-cat-bar {
  height: 100%;
  border-radius: 3px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

.hsc-cat-items { display: none; }
.hsc-cat.open .hsc-cat-items { display: block; }

.hsc-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .38rem 0;
  border-top: 1px solid #f0eeff;
  font-size: 14px;
  line-height: 1.5;
}

.hsc-ico {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.hsc-ok   { background: #059669; color: #fff; }
.hsc-warn { background: #d97706; color: #fff; }
.hsc-fail { background: #dc2626; color: #fff; }
.hsc-info { background: #2563eb; color: #fff; }

.hsc-item-label { font-family: 'Roboto', sans-serif; color: #374151; font-size: 14px; }
.hsc-item-val   { font-family: 'Roboto', sans-serif; font-size: 12px; color: #9ca3af; margin-top: .08rem; }

/* ── PageSpeed / Core Web Vitals ─────────────────────────────── */
.hsc-psi {
  background: #fff;
  border: 1.5px solid #e8e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

.hsc-psi h4 {
  font-family: 'Varela Round', sans-serif !important;
  font-size: 14px !important;
  color: #374151 !important;
  margin-bottom: .8rem !important;
  font-weight: 400 !important;
}

.hsc-psi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: .8rem;
}

.hsc-psi-item { text-align: center; }

.hsc-psi-val {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: .2rem;
}

.hsc-psi-lbl {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
}

/* ── Empfehlungen ────────────────────────────────────────────── */
.hsc-rec-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .5rem 0;
  border-bottom: 1px solid #f0eeff;
  font-size: 14px;
  line-height: 1.5;
}
.hsc-rec-item:last-child { border-bottom: none; }

.hsc-rec-cat {
  flex-shrink: 0;
  width: 120px;
  font-family: 'Varela Round', sans-serif;
  font-size: 12px;
  color: #7c3aed;
  padding-top: .1rem;
}

.hsc-rec-text {
  font-family: 'Roboto', sans-serif;
  color: #374151;
  font-size: 14px;
}

/* ── Rohdaten ────────────────────────────────────────────────── */
.hsc-details {
  background: #fff;
  border: 1.5px solid #e8e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.2rem;
}

.hsc-details h4 {
  font-family: 'Varela Round', sans-serif !important;
  font-size: 14px !important;
  color: #374151 !important;
  margin-bottom: .9rem !important;
  font-weight: 400 !important;
}

.hsc-row {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .45rem 0;
  border-bottom: 1px solid #f0eeff;
  font-size: 14px;
}

.hsc-row:last-child { border-bottom: none; }

.hsc-row-key {
  flex-shrink: 0;
  width: 120px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #9ca3af;
  padding-top: 2px;
}

.hsc-row-val {
  flex: 1;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #1a1a2e;
  line-height: 1.5;
  word-break: break-word;
}

/* ── Pills ───────────────────────────────────────────────────── */
.hsc-pill {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  padding: .1rem .45rem;
  border-radius: 3px;
  margin: .05rem .08rem;
}

.hsc-pill-ok   { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.hsc-pill-warn { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.hsc-pill-fail { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.hsc-pill-info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* ── E-Mail Gate ─────────────────────────────────────────────── */
#hsc-email-gate h3 {
  font-family: 'Varela Round', sans-serif !important;
  font-weight: 400 !important;
}

#hsc-email-gate p {
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
}

#hsc-email {
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
}

#hsc-email-btn {
  font-family: 'Varela Round', sans-serif !important;
  font-size: 14px !important;
}

/* ── Footer ──────────────────────────────────────────────────── */
.hsc-footer-note {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 1.2rem !important;
  text-align: right;
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  #hsc-btn, #hsc-url, .hsc-input-row,
  .hsc-hint, .hsc-tag, #hsc-captcha-wrap { display: none !important; }
  #hapo-seo-app { padding: 0 !important; }
  .hsc-cat { break-inside: avoid; }
  .hsc-results { display: block !important; }
}

/* ── Rohdaten Erklärung ──────────────────────────────────────── */
.hsc-row-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
  margin-top: .3rem;
  padding-top: .3rem;
  border-top: 1px dashed #f0eeff;
}
