/* ==========================================================================
   Website-Audit v2 — "Studio" Design System
   Warm professional aesthetic, DM Serif Display + DM Sans, Teal accent
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-muted: #F5F4F0;
  --bg-accent: #F0FDFA;
  --bg-dark: #0F172A;

  /* Text */
  --text: #1A1A1A;
  --text-secondary: #57534E;
  --text-muted: #A3A29E;

  /* Accent — Teal */
  --accent: #0F766E;
  --accent-hover: #0D6560;
  --accent-light: #99F6E4;
  --accent-bg: #F0FDFA;
  --accent-dim: rgba(15, 118, 110, 0.08);
  --accent-glow: rgba(15, 118, 110, 0.15);

  /* Status */
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --red-dim: rgba(220, 38, 38, 0.08);
  --yellow: #D97706;
  --yellow-bg: #FFFBEB;
  --yellow-dim: rgba(217, 119, 6, 0.08);
  --green: #059669;
  --green-bg: #ECFDF5;
  --green-dim: rgba(5, 150, 105, 0.08);
  --blue: #2563EB;
  --blue-bg: #EFF6FF;
  --blue-dim: rgba(37, 99, 235, 0.08);

  /* Layout */
  --border: #E7E5E4;
  --border-focus: #0F766E;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Motion */
  --transition: 0.2s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Max width */
  --max-width: 880px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grain texture for warmth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dashoffset: 264; }
  50% { stroke-dashoffset: 66; }
  100% { stroke-dashoffset: 264; }
}

@keyframes bar-fill {
  from { width: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section[hidden] {
  display: none !important;
}

.section:not([hidden]) {
  animation: fadeInUp 0.6s ease-out;
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 0;
  z-index: 10000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lang-toggle__btn {
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle__btn:hover {
  color: var(--text-secondary);
}

.lang-toggle__btn--active {
  color: #fff;
  background: var(--accent);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft radial gradient accent */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(15, 118, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__logo {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- How-To Text ---------- */
.hero__howto {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  text-align: center;
}

/* ---------- Scan Form ---------- */
.scan-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.scan-form__input-wrap {
  position: relative;
  flex: 1;
}

.scan-form__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.scan-form__input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}

.scan-form__input::placeholder {
  color: var(--text-muted);
}

.scan-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow-xs);
}

.scan-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.scan-form__btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.25);
  transform: translateY(-1px);
}

.scan-form__btn:active {
  transform: translateY(0);
}

.scan-form__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.scan-form__btn-arrow {
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.scan-form__btn:hover .scan-form__btn-arrow {
  transform: translateX(3px);
}

/* ---------- Trust Badges ---------- */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero__trust-item svg {
  flex-shrink: 0;
}

/* ---------- Scan Counter ---------- */
.hero__scan-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

/* ---------- Methodik Button ---------- */
.hero__methodik-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 2rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition);
}

.hero__methodik-btn:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
}

.hero__methodik-btn svg {
  flex-shrink: 0;
  color: var(--accent);
  stroke: var(--accent);
}

.hero__methodik-btn-arrow {
  font-size: 1rem;
  transition: transform var(--transition);
}

.hero__methodik-btn:hover .hero__methodik-btn-arrow {
  transform: translateX(3px);
}

/* ---------- Error Message ---------- */
.error-message {
  max-width: 520px;
  margin: -0.25rem auto 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius);
  text-align: left;
}

/* ---------- Loading Section ---------- */
.loading {
  text-align: center;
  padding: 6rem 0;
}

.loading__spinner {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

.loading__svg {
  width: 100%;
  height: 100%;
  animation: spin 2s linear infinite;
}

.loading__track {
  fill: none;
  stroke: var(--border);
  stroke-width: 5;
}

.loading__progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 264;
  animation: dash 1.5s ease-in-out infinite;
}

.loading__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
}

.loading__text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
  min-height: 1.6em;
}

.loading__bar {
  max-width: 300px;
  height: 4px;
  margin: 0 auto 1rem;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loading__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #14B8A6);
  border-radius: 2px;
  transition: width 0.5s ease-out;
}

.loading__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Results Section ---------- */
.results {
  padding-top: 2rem;
}

.results__heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.results__url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  word-break: break-all;
}

.results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* ---------- Score Circle ---------- */
.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 1rem;
}

.score-circle__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle__track {
  fill: none;
  stroke: var(--bg-muted);
  stroke-width: 10;
}

.score-circle__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 0.5s ease;
}

.score-circle__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-circle__number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  animation: countUp 0.6s ease-out;
}

.score-circle__max {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.score-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* Score Delta Banner */
.score-delta {
  margin-top: 0.6rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.score-delta--up {
  background: #dcfce7;
  color: #15803d;
}

.score-delta--down {
  background: #fee2e2;
  color: #b91c1c;
}

.score-delta--neutral {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Score color classes */
.score-circle--red .score-circle__fill { stroke: var(--red); }
.score-circle--red .score-circle__number { color: var(--red); }
.score-circle--yellow .score-circle__fill { stroke: var(--yellow); }
.score-circle--yellow .score-circle__number { color: var(--yellow); }
.score-circle--green .score-circle__fill { stroke: var(--green); }
.score-circle--green .score-circle__number { color: var(--green); }

/* ---------- Dimensions ---------- */
.dimensions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.dimension__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dimension__icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.dimension__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.dimension__score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dimension__bar {
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
}

.dimension__bar-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bar-fill 1.2s ease-out;
}

.dimension__bar-fill--red {
  background: linear-gradient(90deg, var(--red), #EF4444);
}

.dimension__bar-fill--yellow {
  background: linear-gradient(90deg, var(--yellow), #F59E0B);
}

.dimension__bar-fill--green {
  background: linear-gradient(90deg, var(--green), #10B981);
}

/* ---------- ChatGPT Test Block ---------- */
.chatgpt-test {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.chatgpt-test__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.chatgpt-test__icon {
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
}

.chatgpt-test__label {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.chatgpt-test__badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.chatgpt-test__badge--yes {
  background: #dcfce7;
  color: #15803d;
}

.chatgpt-test__badge--skip {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.chatgpt-test__badge--no {
  background: #fee2e2;
  color: #b91c1c;
}

.chatgpt-test__badge--partial {
  background: #fef9c3;
  color: #92400e;
}

.chatgpt-test__query {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.chatgpt-test__reason {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.chatgpt-test__confidence {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chatgpt-test__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ---------- Local SEO Checklist ---------- */
.local-seo__checklist { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.2rem; }
.local-seo__item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; line-height: 1.4; }
.local-seo__icon { flex-shrink: 0; font-weight: 700; width: 1rem; }
.local-seo__item--critical .local-seo__icon { color: #dc2626; }
.local-seo__item--warning  .local-seo__icon { color: #d97706; }
.local-seo__item--info     .local-seo__icon { color: #059669; }
.local-seo__text { color: var(--text); }

/* ---------- robots.txt Detail ---------- */
.robots-detail {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.robots-detail__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.robots-detail__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.robots-detail__bots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.robots-detail__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.robots-detail__group-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.2rem;
}

.robots-detail__group-label--blocked { color: #b91c1c; }
.robots-detail__group-label--restricted { color: #92400e; }
.robots-detail__group-label--allowed { color: #15803d; }

.robots-detail__chip {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
}

.robots-detail__chip--blocked {
  background: #fee2e2;
  color: #b91c1c;
}

.robots-detail__chip--restricted {
  background: #fef3c7;
  color: #92400e;
}

.robots-detail__chip--allowed {
  background: #dcfce7;
  color: #15803d;
}

/* ---------- Findings ---------- */
.findings {
  margin-bottom: 2rem;
}

.findings__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
}

.findings__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.finding {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--text-muted);
  transition: border-color var(--transition), background var(--transition);
  box-shadow: var(--shadow-xs);
}

.finding:hover {
  background: var(--bg-muted);
}

.finding--critical {
  border-left-color: var(--red);
  background: var(--red-bg);
}

.finding--warning {
  border-left-color: var(--yellow);
  background: var(--yellow-bg);
}

.finding--info {
  border-left-color: var(--blue);
  background: var(--blue-bg);
}

.finding__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.finding__badge--critical {
  color: var(--red);
  background: var(--red-dim);
}

.finding__badge--warning {
  color: var(--yellow);
  background: var(--yellow-dim);
}

.finding__badge--info {
  color: var(--blue);
  background: var(--blue-dim);
}

.finding__text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  flex: 1;
}

/* ---------- Expandable Findings ---------- */
.finding--expandable {
  flex-wrap: wrap;
  cursor: default;
}

.finding__toggle {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.15rem 0.2rem;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  align-self: center;
  line-height: 0;
}

.finding__toggle:hover {
  color: var(--text);
  background: rgba(0,0,0,0.06);
}

.finding__toggle svg {
  display: block;
  transition: transform 0.22s ease;
}

.finding__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.finding__fix {
  flex-basis: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.22s ease, margin-top 0.22s ease, padding-top 0.22s ease;
  margin-top: 0;
  padding-top: 0;
}

.finding--open .finding__fix {
  max-height: 260px;
  opacity: 1;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.finding--critical.finding--open .finding__fix {
  border-top-color: rgba(220,38,38,0.15);
}

.finding--warning.finding--open .finding__fix {
  border-top-color: rgba(217,119,6,0.15);
}

.finding--info.finding--open .finding__fix {
  border-top-color: rgba(37,99,235,0.15);
}

.finding__fix-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.finding__fix-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.finding__fix-text code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgba(0,0,0,0.07);
  padding: 0.08rem 0.32rem;
  border-radius: 3px;
  word-break: break-all;
}

/* ---------- Design Suggestions (Aha) ---------- */
.design-suggestions {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.design-suggestions__heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.design-suggestions__desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.design-suggestions__tabs {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.design-tab {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.design-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.design-tab--active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.design-suggestions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .design-suggestions__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.design-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.design-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.design-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.design-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.design-card__sub,
.design-card__desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.design-card__cta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Design Preview ---------- */
.design-preview {
  margin-top: 1.25rem;
}

.design-preview__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.design-preview__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 860px) {
  .design-preview__compare {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.design-preview__tabs {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.shot-tab {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.shot-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.shot-tab--active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.design-preview__before img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

/* WOW Preview */
.wow {
  margin-top: 1.25rem;
}

.wow__btn {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.wow__btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.wow__email {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.wow__email input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.wow__email input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.wow__email button {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.wow__email button:hover {
  background: var(--accent-hover);
}

.wow__email-hint {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.wow__status {
  margin-top: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.wow__wrap {
  margin-top: 0.8rem;
}

.design-preview__frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  padding: 12px;
  box-shadow: var(--shadow);
}

.design-preview__frame iframe {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-muted);
}

@media (min-width: 640px) {
  .design-preview__frame iframe {
    height: 700px;
  }
  .design-preview__before img {
    height: 700px;
  }
}

.design-preview__actions {
  margin-top: 0.6rem;
  font-size: 0.82rem;
}

.design-preview__actions a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.design-preview__actions a:hover {
  text-decoration: underline;
}

/* CTA Buttons */
.design-preview__cta {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.cta-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.cta-btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.25);
  transform: translateY(-1px);
}

.cta-btn--share {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.cta-btn--share:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-btn--share-img {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.cta-btn--share-img:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-btn--ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.cta-btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-hint {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .design-preview__cta {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .cta-hint {
    grid-column: 1 / -1;
  }
}

/* ---------- Email Gate ---------- */
.email-gate {
  padding: 1rem 0 3rem;
}

.email-gate__card {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Accent line at top */
.email-gate__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #14B8A6, var(--accent));
}

.email-gate__icon {
  margin-bottom: 1rem;
}

.email-gate__icon svg {
  stroke: var(--accent);
}

.email-gate__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.email-gate__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.email-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.email-gate__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.email-gate__input::placeholder {
  color: var(--text-muted);
}

.email-gate__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.email-gate__btn {
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.email-gate__btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.25);
}

.email-gate__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-gate__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--green);
  background: var(--green-bg);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.email-gate__success svg {
  stroke: var(--green);
}

.email-gate__error {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.scan-form__privacy {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
}
.scan-form__privacy a {
  color: var(--text-muted);
  text-decoration: underline;
}
.scan-form__privacy a:hover {
  color: var(--text-secondary);
}

.email-gate__privacy,
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-hint a {
  color: var(--accent);
  text-decoration: none;
}

.form-hint a:hover {
  text-decoration: underline;
}

/* ---------- Design Preview Section (Full) ---------- */
#design-preview.design-preview {
  padding: 3rem 0;
}

.design-preview__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.design-preview__desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

.design-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .design-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
}

.footer__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__link--active {
  color: var(--accent);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .scan-form {
    flex-direction: row;
  }

  .scan-form__btn {
    flex-shrink: 0;
  }

  .email-gate__form {
    flex-direction: row;
  }

  .email-gate__input {
    flex: 1;
  }

  .email-gate__btn {
    flex-shrink: 0;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__copy {
    order: 0;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 7rem 0 4.5rem;
  }

  .results__grid {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .score-card {
    position: sticky;
    top: 2rem;
  }

  .loading {
    padding: 7rem 0;
  }
}

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

/* ---------- Methodik Page ---------- */
.methodik-hero {
  padding: 5rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.methodik-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(15, 118, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.methodik-hero > .container {
  position: relative;
  z-index: 1;
}

.methodik-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.methodik-back:hover {
  color: var(--accent);
}

.methodik-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.methodik-hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Methodik sections */
.methodik-section {
  padding: 2.5rem 0;
}

.methodik-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.methodik-section__subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

/* KI-Sichtbarkeit highlight box */
.methodik-highlight {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.methodik-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.methodik-highlight::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.methodik-highlight__icon {
  margin-bottom: 1rem;
}

.methodik-highlight__icon svg {
  stroke: var(--accent);
}

.methodik-highlight__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1rem;
}

.methodik-highlight__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 680px;
}

.methodik-highlight__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.methodik-highlight__item {
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.methodik-highlight__item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.methodik-highlight__item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dimension cards */
.methodik-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.methodik-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition);
  box-shadow: var(--shadow);
}

.methodik-card:hover {
  border-color: var(--text-muted);
}

.methodik-card--accent {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.methodik-card--accent:hover {
  border-color: var(--accent);
}

.methodik-card--muted {
  opacity: 0.7;
  border-style: dashed;
}

.methodik-card--muted:hover {
  opacity: 0.85;
  border-color: var(--text-muted);
}

.methodik-card__pts--extra {
  background: var(--bg-page);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.methodik-card__note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.methodik-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.methodik-card__icon {
  display: flex;
  align-items: center;
  color: var(--accent);
}

.methodik-card__icon svg {
  stroke: var(--accent);
}

.methodik-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  flex: 1;
  color: var(--text);
}

.methodik-card__pts {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.methodik-card__list {
  list-style: none;
  padding: 0;
}

.methodik-card__list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.methodik-card__list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.45rem;
}

/* Score table */
.methodik-table-wrap {
  overflow-x: auto;
}

.methodik-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.methodik-table th,
.methodik-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.methodik-table th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-muted);
}

.methodik-table td {
  color: var(--text-secondary);
}

.methodik-table__dim {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  vertical-align: top;
}

.methodik-table__dim--accent {
  color: var(--accent);
}

.methodik-table__pts {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: center !important;
  color: var(--text);
}

.methodik-table__pts--total {
  color: var(--accent);
  font-size: 0.95rem;
}

.methodik-table tfoot td {
  font-weight: 700;
  color: var(--text);
  border-top: 2px solid var(--accent);
  border-bottom: none;
  background: var(--bg);
}

/* Score ranges */
.methodik-ranges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.methodik-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--text-muted);
  box-shadow: var(--shadow-xs);
}

.methodik-range--red {
  border-left-color: var(--red);
  background: var(--red-bg);
}

.methodik-range--yellow {
  border-left-color: var(--yellow);
  background: var(--yellow-bg);
}

.methodik-range--green {
  border-left-color: var(--green);
  background: var(--green-bg);
}

.methodik-range__score {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 70px;
}

.methodik-range--red .methodik-range__score { color: var(--red); }
.methodik-range--yellow .methodik-range__score { color: var(--yellow); }
.methodik-range--green .methodik-range__score { color: var(--green); }

.methodik-range__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CTA */
.methodik-cta {
  padding: 1rem 0 3rem;
}

.methodik-cta__btn {
  display: inline-flex;
  text-decoration: none;
}

/* Methodik responsive */
@media (min-width: 640px) {
  .methodik-highlight__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .methodik-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .methodik-hero {
    padding: 6rem 0 3rem;
  }
}

/* ---------- Selection & Scrollbar ---------- */
::selection {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- Why It Matters Section ---------- */
.why-matters {
  background: var(--bg-muted);
  padding: 4rem 0;
}

/* ── How It Works ── */
.how-it-works {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-it-works__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.how-it-works__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.how-it-works__step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 0 1rem;
}

.how-it-works__arrow {
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .how-it-works__arrow { display: none; }
  .how-it-works__step { min-width: 100%; max-width: 100%; padding: 0; }
  .how-it-works__steps { flex-direction: column; align-items: stretch; gap: 1.5rem; }
}

.how-it-works__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.how-it-works__icon {
  margin-bottom: 0.75rem;
}

.how-it-works__price-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25em 0.75em;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.how-it-works__price-badge--free {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-light);
}

.how-it-works__price-badge--paid {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.how-it-works__step h3 {
  font-family: var(--font-sans, var(--font-body));
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.how-it-works__step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.how-it-works__final-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.how-it-works__final-cta-btn {
  display: inline-flex;
}

.why-matters__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
}

.why-matters__intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.why-matters__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .why-matters__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.why-matters__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.why-matters__card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-dim);
}

.why-matters__icon {
  margin-bottom: 1rem;
}

.why-matters__card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.why-matters__card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.why-matters__card code {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: var(--font-mono);
}

.why-matters__chatgpt-pitch {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.chatgpt-pitch__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.chatgpt-pitch__quote {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.5;
}

.chatgpt-pitch__cta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.why-matters__bottom {
  text-align: center;
}

.why-matters__cta-text {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.why-matters__cta-btn {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  transition: background 0.2s, color 0.2s;
}

.why-matters__cta-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== Potenzial-Score Block ========== */
.potential-block {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.potential-block__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.potential-block__bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 0.6rem;
}

.potential-block__current {
  background: var(--accent);
  height: 100%;
  transition: width 0.8s ease;
}

.potential-block__gain {
  background: #22c55e;
  height: 100%;
  opacity: 0.6;
  transition: width 0.8s ease;
}

.potential-block__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.benchmark-block {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.benchmark-block__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.benchmark-block__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.benchmark-block__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Track */
.benchmark-block__track-wrap {
  padding: 1.2rem 0 0.5rem;
}

.benchmark-block__track {
  position: relative;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  margin: 0 6px;
}

/* IQR zone p25–p75 */
.benchmark-block__zone {
  position: absolute;
  top: 0; bottom: 0;
  background: #d1d5db;
  border-radius: 99px;
}

/* Average line */
.benchmark-block__avg-line {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 2px;
  background: #6b7280;
  border-radius: 1px;
  transform: translateX(-50%);
}

.benchmark-block__avg-tip {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: #6b7280;
  white-space: nowrap;
  font-weight: 600;
}

/* Your score pin */
.benchmark-block__you-pin {
  position: absolute;
  top: -5px; bottom: -5px;
  width: 18px;
  background: var(--accent, #1d4ed8);
  border-radius: 99px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.18);
  cursor: default;
}

.benchmark-block__you-tip {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent, #1d4ed8);
  white-space: nowrap;
}

/* Legend */
.benchmark-block__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.benchmark-block__legend-zone {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.benchmark-block__legend-zone::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 6px;
  background: #d1d5db;
  border-radius: 3px;
}

.benchmark-block__legend-you {
  color: var(--accent, #1d4ed8);
  font-weight: 600;
}
