/* ==========================================================================
   AI-Ready Check - Facelift v11 (ueberschreibt styles.css, rein visuell)
   Einbindung: NACH css/styles.css laden. Rueckbau: Link entfernen.
   Marke bleibt: Verlauf #0f0c29 > #302b63 > #24243e, Akzent #667eea > #764ba2.
   Leitidee: ruhige Flaechen statt Rahmen auf allem, eine Schrift mit Charakter,
   der Score ist der einzige laute Moment.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
}

:root {
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Flaechen: drei Helligkeitsstufen statt Rahmen + Schatten */
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  /* Text */
  --text: #f3f3fc;
  --text-2: #b8b8d1;
  --text-3: #8f8fb3;

  /* Marke */
  --accent: #667eea;
  --accent-2: #764ba2;
  --accent-ink: #a9b5ff; /* Akzent als Textfarbe auf dunklem Grund */

  /* Status (wie in den Ergebnissen: gut / verbesserungswuerdig / schlecht) */
  --ok: #5fd38d;
  --warn: #f5a524;
  --bad: #f26d6d;

  /* Radien: klein (Eingaben, Chips), mittel (Karten), gross (Panels) */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
}


/* ---------- Atmosphaere: dunkler Grund, Glow oben, feines Gitter ---------- */
body {
  background-color: #080619;
  background-image:
    radial-gradient(ellipse 70% 38% at 50% -4%, rgba(102, 126, 234, 0.34), transparent 70%),
    radial-gradient(ellipse 45% 30% at 88% 22%, rgba(118, 75, 162, 0.2), transparent 70%),
    radial-gradient(ellipse 45% 30% at 8% 40%, rgba(102, 126, 234, 0.1), transparent 70%);
  background-repeat: no-repeat;
}

/* Gitter: nur im oberen Seitenbereich, scrollt mit und blendet aus */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 100% at 50% 0%, #000 15%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 100% at 50% 0%, #000 15%, transparent 100%);
}

/* ---------- Basis ---------- */
body {
  font-family: var(--font);
  color: var(--text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
}

a {
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header: schwebende Pill-Leiste ---------- */
.header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  padding: 14px 0;
}

.header .container {
  max-width: 980px;
  padding: 10px 14px 10px 22px;
  background: rgba(16, 13, 44, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}

.logo {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.nav a {
  color: var(--text-2);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.lang-link {
  border-radius: 8px;
}

@media (max-width: 768px) {
  .header .container {
    margin: 0 12px;
    padding: 10px 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 20px 72px;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  background: linear-gradient(180deg, #ffffff 30%, #aab6ff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 26ch;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.cta-button {
  border-radius: var(--r-m);
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px -10px rgba(102, 126, 234, 0.7);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(102, 126, 234, 0.85);
}

/* ---------- Kennzahlen: ein Streifen statt vier Kaesten ---------- */
.stats-section {
  background: transparent;
  padding: 24px 20px 48px;
}

.stats-section .stats-grid {
  gap: 0;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stats-section .stat-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 26px 16px;
}

.stats-section .stat-item + .stat-item {
  box-shadow: -1px 0 0 var(--line);
}

.stats-section .stat-item:hover {
  background: var(--surface-1);
  border-color: transparent;
  transform: none;
}

.stats-section .stat-number {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.stats-section .stat-label {
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Pruefen: das Werkzeug bekommt Gewicht ---------- */
.check-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 70px -34px rgba(102, 126, 234, 0.55);
}

/* Eingabe: eine helle Pill, Button sitzt darin (Ueberschreibt inline !important) */
.check-section .input-group {
  padding: 6px !important;
  gap: 8px;
  background: #f3f4ff;
  border-radius: 999px;
  align-items: center;
}

.check-section .url-input {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #14122e !important;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 14px 22px;
  box-shadow: none;
}

.check-section .url-input::placeholder {
  color: #6f6f94 !important;
  opacity: 1;
}

.check-section .url-input:focus {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.check-section .check-btn {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 14px 30px;
  border-radius: 999px;
}

.check-section .check-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(102, 126, 234, 0.9);
}

.info-text {
  color: var(--text-3);
}

/* ---------- Unterstuetzte Systeme ---------- */
.trust-headline {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-3);
}

.trust-badge {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px 20px;
}

.trust-badge:hover {
  background: var(--surface-2);
  border-color: rgba(102, 126, 234, 0.4);
  transform: none;
}

.trust-badge span {
  color: var(--text);
  font-weight: 600;
}

.trust-icon {
  color: var(--accent-ink);
}

/* ---------- Ergebnis ---------- */
.score-display {
  padding: 44px 24px 36px;
  background:
    radial-gradient(ellipse 85% 120% at 50% -15%, rgba(102, 126, 234, 0.24), transparent 62%),
    var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  font-variant-numeric: tabular-nums;
}

.categories-grid {
  gap: 14px;
}

.category-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px;
  font-variant-numeric: tabular-nums;
}

.category-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line-strong);
}

.category-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}

.category-score {
  letter-spacing: -0.03em;
}

.recommendations-section,
.details-section {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}

/* Detailbereich: Gruppen durch feine Linien statt Kasten mit Randstreifen */
.detail-category {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 4px 6px;
  margin-bottom: 8px;
}

.detail-category:first-child {
  border-top: 0;
}

.detail-category h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}

.detail-item {
  padding: 10px 0;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-label {
  color: var(--text-2);
  font-size: 0.92rem;
}

.detail-value {
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2rem);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-subtitle {
  color: var(--text-2);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.export-btn {
  font-family: inherit;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  font-weight: 600;
}

.export-btn:hover {
  background: var(--surface-3);
  border-color: var(--accent);
}

/* ---------- Kriterien / Weitere Tools ---------- */
.features {
  background: rgba(0, 0, 0, 0.18);
}

.features-headline {
  font-size: clamp(1.7rem, 1rem + 2.2vw, 2.4rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.feature-card {
  min-height: 0;
  padding: 24px 16px;
}

.feature-title {
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.feature-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  text-wrap: pretty;
}

.more-tools .feature-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 26px;
}

.more-tools .feature-card:hover {
  transform: none;
  background: var(--surface-2);
  border-color: rgba(102, 126, 234, 0.45);
}

/* ---------- FAQ: Linien statt Kaesten ---------- */
.faq-item,
.faq-acc {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 0;
}

.faq-item:hover,
.faq-item[open] {
  background: transparent;
  border-color: var(--line-strong);
}

.faq-question,
.faq-acc summary {
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 20px 4px;
}

.faq-icon {
  color: var(--accent-ink);
}

.faq-answer {
  padding: 0 4px 22px;
  max-width: 70ch;
  text-wrap: pretty;
}

.faq-acc p {
  margin: 0 4px 22px;
  max-width: 70ch;
}

/* ---------- Footer ---------- */
.footer {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--text-2);
}

.footer a:hover {
  color: var(--text);
  opacity: 1;
}

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 64px 20px 48px;
  }

  .stats-section {
    padding: 16px 20px 36px;
  }

  .stats-section .stat-item + .stat-item {
    box-shadow: none;
  }

  .stats-section .stat-item:nth-child(even) {
    box-shadow: -1px 0 0 var(--line);
  }

  .stats-section .stat-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .score-display {
    padding: 32px 16px 28px;
  }

  .detail-item {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
}

@media (max-width: 480px) {
  .check-section .input-group {
    flex-direction: column;
    border-radius: 22px;
  }

  .check-section .input-group .check-btn,
  .check-section .input-group .url-input {
    width: 100%;
  }

  .stats-section .stat-item:nth-child(even) {
    box-shadow: none;
  }

  .stats-section .stat-item:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- v3: Eingabefelder bleiben immer im Kasten ---------- */
.check-section {
  padding: 36px clamp(16px, 4vw, 40px) !important;
  /* kein overflow:hidden + backdrop-filter: verursacht in mobilem Chrome Paint-Fehler */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

input,
select,
textarea,
button {
  max-width: 100%;
  box-sizing: border-box;
}

.check-section .input-group {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  /* Ring liegt innen statt ausserhalb des Kastens */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 14px 36px -22px rgba(102, 126, 234, 0.9);
}

.check-section .input-group:focus-within {
  box-shadow: inset 0 0 0 3px rgba(169, 181, 255, 0.85), 0 14px 36px -22px rgba(102, 126, 234, 1);
}

.check-section .input-group .url-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.check-section .input-group .check-btn {
  flex: 0 0 auto;
}

/* Andere Formulare (Newsletter, Tools): nie breiter als der Container */
.subscribe-form {
  max-width: 100%;
}

.subscribe-form input[type="email"],
.subscribe-form input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- v4: Mobil - Eingabe und Button als getrennte Pills ---------- */
@media (max-width: 600px) {
  .check-section .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 !important;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .check-section .input-group:focus-within {
    box-shadow: none;
  }

  .check-section .input-group .url-input {
    width: 100%;
    background: #f3f4ff;
    border-radius: 999px;
    padding: 16px 22px !important;
    text-align: left !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  }

  .check-section .input-group .url-input:focus {
    box-shadow: inset 0 0 0 3px rgba(169, 181, 255, 0.85);
  }

  .check-section .input-group .check-btn {
    width: 100%;
    padding: 16px 24px !important;
  }

  .check-section {
    padding: 28px 18px !important;
  }
}

/* ---------- v6: Ergebnisblöcke (Inline-Styles aus ai-ready.js) ---------- */
/* Hinweis: opacity/transform des Potenzial-Kastens bleiben unangetastet (Einblend-Animation). */

/* Verbesserungspotenzial */
#potential-box {
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(95, 211, 141, 0.16), transparent 65%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(102, 126, 234, 0.14), transparent 70%),
    var(--surface-1) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-l) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#potential-box h3 {
  letter-spacing: -0.02em;
}

#potential-number {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem) !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ok) !important;
}

#potential-box > div[style*="rgba(0,0,0,0.2)"] {
  background: var(--surface-1) !important;
  border: 1px solid var(--line);
  border-radius: var(--r-m) !important;
}

#potential-box p {
  text-wrap: pretty;
}

/* Empfehlungskarten: Prioritätsfarbe bleibt als Randstreifen */
#recommendationsSection div[style*="border-left: 3px solid"] {
  border-radius: var(--r-m) !important;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 22px !important;
}

#recommendationsSection div[style*="rgba(255,255,255,0.03)"] {
  background: var(--surface-1) !important;
}

#recommendationsSection div[style*="rgba(255,0,0,0.1)"] {
  background: rgba(242, 109, 109, 0.09) !important;
}

#recommendationsSection pre {
  background: rgba(6, 4, 22, 0.6) !important;
  border: 1px solid var(--line);
  border-radius: var(--r-s) !important;
  font-size: 0.85rem;
  line-height: 1.55;
}

#recommendationsSection code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

button[id^="copy-btn-"] {
  font-family: inherit !important;
  border-radius: var(--r-s) !important;
  font-weight: 600;
}

/* Alles-in-Ordnung-Kasten und Hinweisboxen */
#recommendationsSection div[style*="rgba(76, 175, 80, 0.1)"] {
  border-radius: var(--r-l) !important;
  border: 1px solid rgba(95, 211, 141, 0.28) !important;
}

#detailsContent div[style*="border-left: 3px solid #ff9800"] {
  border-radius: var(--r-s) !important;
}

@media (max-width: 600px) {
  #potential-box {
    padding: 24px 18px !important;
  }

  #recommendationsSection div[style*="border-left: 3px solid"] {
    padding: 16px !important;
  }
}

/* Kritisch: weniger grell, Betonung über Laufweite statt Neonrot */
#recommendationsSection div[style*="text-transform: uppercase"] {
  color: var(--bad) !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em;
}

#recommendationsSection div[style*="border-left: 3px solid #ff0000"] {
  border-left-color: var(--bad) !important;
}

/* Kopieren-Button soll den Code nicht überdecken */
#recommendationsSection pre {
  padding-right: 120px !important;
}

@media (max-width: 600px) {
  #recommendationsSection pre {
    padding-top: 52px !important;
    padding-right: 15px !important;
  }
}

/* ---------- v12: Einheitliche Seitenüberschrift (H1) auf Unterseiten ---------- */
/* Tools (.tool-header), Guides (.article-hero), Blog (.page-header, Artikel .post-header), Impressum (.page-title). Glossar bleibt bewusst bei .hero h1. */
.tool-header h1,
.article-hero h1,
.page-header h1,
.post-header h1,
h1.page-title {
  font-size: clamp(1.9rem, 1.15rem + 2.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  background: linear-gradient(180deg, #ffffff 30%, #aab6ff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.tool-header p,
.article-intro,
.page-header p {
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- v13: Tool-Seiten (Klassen aus dem Seitenstil der Tools) ---------- */
input,
select,
textarea,
button {
  font-family: inherit;
}

.input-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px -40px rgba(102, 126, 234, 0.5);
  padding: 28px clamp(16px, 4vw, 36px);
}

.tabs {
  background: rgba(6, 4, 22, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 4px;
}

.tab {
  border-radius: 9px;
  color: var(--text-3);
  font-weight: 550;
  font-family: inherit;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
}

.input-section .url-input {
  background: rgba(10, 8, 30, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  font-size: 1rem;
  min-width: 0;
}

.input-section .url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.22);
}

.action-btn,
.upload-btn {
  border-radius: var(--r-m);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.action-btn:hover:not(:disabled) {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(102, 126, 234, 0.85);
}

.upload-area {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-m);
  background: var(--surface-1);
}

.stat-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 20px 12px;
}

.stat-card .stat-number {
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-number.green {
  color: var(--ok);
}

.stat-number.yellow {
  color: var(--warn);
}

.stat-number.red {
  color: var(--bad);
}

.stat-card .stat-label {
  color: var(--text-3);
  font-size: 0.85rem;
}

.score-bar-wrap,
.url-check-list {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}

.score-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.issue {
  border-radius: var(--r-m);
  padding: 14px 16px;
}

.issue.error {
  background: rgba(242, 109, 109, 0.08);
  border-color: rgba(242, 109, 109, 0.28);
}

.issue.warning {
  background: rgba(245, 165, 36, 0.08);
  border-color: rgba(245, 165, 36, 0.28);
}

.issue.ok {
  background: rgba(95, 211, 141, 0.07);
  border-color: rgba(95, 211, 141, 0.25);
}

.issue-text span {
  color: var(--text-2);
}

/* Abschnittsüberschriften im Ergebnis: kleine Beschriftung statt große Zentrierung.
   .result-section schlägt die spätere Startseiten-Regel von styles.css. */
.tool-section .result-section .section-title,
.result-section .section-title {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-3);
  margin: 28px 0 12px;
}

.error-message {
  border-radius: var(--r-m);
}

.subscribe-block {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.subscribe-form input[type="email"] {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  min-width: 0;
}

.subscribe-btn {
  border-radius: var(--r-m);
  font-weight: 650;
}

/* v13b: Gegen Startseiten-Regeln aus styles.css, die auf den Tool-Seiten stören */
.stat-card .stat-number {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  margin-bottom: 0;
}

.result-section .stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 16px;
}

.result-section .score-bar-wrap {
  margin-bottom: 8px;
}

.input-section .input-group {
  padding: 0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .result-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px 8px;
  }

  .tab {
    font-size: 0.85rem;
    padding: 10px 6px;
  }
}

/* v14b: Titel in Tool-Karten (z. B. robots.txt-Generator): Kartenüberschrift statt Startseiten-Titel */
.tool-section .section-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-align: left;
  margin: 0 0 16px;
  color: var(--text);
}

/* ---------- v16: Performance-Check (Core Web Vitals, Audits) ---------- */
.cwv-card,
.score-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cwv-header {
  gap: 12px;
  align-items: flex-start;
}

.cwv-name {
  min-width: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Wert kann auch ein langer Text sein ("Root document took 50 ms"): kleiner, rechtsbündig, darf umbrechen */
.cwv-value {
  font-size: clamp(1.15rem, 1rem + 0.45vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: right;
  max-width: 62%;
  font-variant-numeric: tabular-nums;
}

.audits-section {
  border-radius: var(--r-m);
  border-color: var(--line);
  background: var(--surface-1);
}

.audits-title {
  letter-spacing: -0.01em;
}

.strategy-tab {
  border-radius: var(--r-m);
  font-family: inherit;
}

/* ---------- v17: H2 auf Tools und Guides ohne lila Verlauf ---------- */
/* Seitenstile färben diese Überschriften per Verlauf (transparenter Text). Hier: ruhiger heller Text. */
.seo-section h2,
.seo-section .section-title,
.faq-section h2,
.faq-section-title,
.article-content h2 {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* v17b: H2 mit Verlauf direkt im style-Attribut (nur per !important erreichbar) */
h2[style*="-webkit-text-fill-color:transparent"],
h2[style*="-webkit-text-fill-color: transparent"] {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text) !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- v19: Kein Verlaufstext mehr auf H2, egal welche Klasse oder welcher Seitenstil ---------- */
/* Die Marke behält den Verlauf auf H1, Logo und Buttons. Farben, die eine Seite selbst setzt, bleiben erhalten. */
h2 {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ---------- v20: Startseiten-Eingabe gegen die Tool-Regeln (.input-section) absichern ---------- */
/* Die Startseite hat .input-section im Baum; die Tool-Regeln dürfen dort nicht greifen. Höhere Spezifität, steht zuletzt. */
.check-section .input-group {
  margin-bottom: 16px;
}

.check-section .input-group .url-input {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: #14122e !important;
}

.check-section .input-group .url-input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

/* Platzhalter besser lesbar (Kontrast ca. 6:1 auf dem hellen Feld) */
.check-section .input-group .url-input::placeholder {
  color: #5a5a7e !important;
  opacity: 1;
}

@media (max-width: 600px) {
  .check-section .input-group .url-input {
    background: #f3f4ff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  }
  .check-section .input-group .url-input:focus {
    background: #f3f4ff;
    box-shadow: inset 0 0 0 3px rgba(169, 181, 255, 0.85);
  }
}

/* v20: Tool-Karte (.input-section) soll auf der Startseite keinen zweiten Rahmen zeichnen */
.check-section .input-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* v21: Abstand der Trust-Sektion nach oben (Überschrift klebte am oberen Rand) */
.trust-section {
  padding-top: 56px !important;
}
@media (max-width: 768px) {
  .trust-section {
    padding-top: 40px !important;
  }
}

/* v22: Startseite - der äußere Wrapper .input-section (enthält .check-section) bekommt keine Tool-Karte */
.input-section:has(.check-section) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* v23: Back-to-Top Button kleiner (36px statt 55px) - Größe nur über width/height/font-size, Einblendung bleibt unberührt */
#backToTop {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  right: 20px !important;
  bottom: 20px !important;
  box-shadow: 0 6px 18px -6px rgba(102, 126, 234, 0.6) !important;
}
#backToTop svg,
#backToTop img {
  width: 16px !important;
  height: 16px !important;
}
@media (max-width: 600px) {
  #backToTop {
    right: 14px !important;
    bottom: 14px !important;
  }
}

/* v24: Unterlängen in Verlaufs-H1 nicht abschneiden (background-clip:text malt nur innerhalb der Box) */
.hero h1 {
  padding-bottom: 0.16em;
  margin-bottom: calc(24px - 0.16em);
}
.tool-header h1,
.article-hero h1,
.page-header h1,
.post-header h1,
h1.page-title {
  padding-bottom: 0.14em;
}

/* v25: Stats-Balken als Ampel statt Grün/Lila-Mix (>=75% grün, 50-74% amber, <50% rot) */
.bar-item .bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.bar-item .bar-track .bar-fill {
  border-radius: 999px;
  background: linear-gradient(90deg, #e8a33a, #f5b94f);
  box-shadow: 0 0 14px -2px rgba(245, 165, 36, 0.45);
}
.bar-item .bar-track .bar-fill.good {
  background: linear-gradient(90deg, #3fbf78, #5fd38d);
  box-shadow: 0 0 14px -2px rgba(95, 211, 141, 0.45);
}
.bar-item .bar-track .bar-fill.warn {
  background: linear-gradient(90deg, #e04f4f, #f26d6d);
  box-shadow: 0 0 14px -2px rgba(242, 109, 109, 0.45);
}
.bar-item .bar-value {
  color: var(--accent-ink);
}
