/* Geteiltes CSS der Feature-Seiten. Lag vorher in jeder der fuenf
   Seiten identisch inline - und muesste sonst fuer jede englische
   Fassung ein zweites Mal dupliziert werden. */

.feature-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.feature-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.feature-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-problem {
  padding: 32px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-problem .container {
  max-width: 640px;
}

.feature-problem h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 12px;
}

.feature-problem h2:first-child {
  margin-top: 0;
}

.feature-problem p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-cta {
  padding: 64px 0;
  text-align: center;
}

.feature-cta h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── drills ─────────────────────────────────────────────── */

.feature-how {
  padding: 48px 0;
}

.feature-how .container {
  max-width: 640px;
}

.feature-how h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-how p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.drill-sets {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 32px;
}

.drill-set {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.drill-set:last-child {
  border-bottom: none;
}

.drill-set strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.drill-set span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-meaning {
  padding: 32px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-meaning .container {
  max-width: 640px;
}

.feature-meaning h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-meaning p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-meaning p:last-child {
  margin-bottom: 0;
}

/* ── freq_order ─────────────────────────────────────────────── */

.freq-chart {
  padding: 48px 0;
}

.freq-chart h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.freq-chart-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.freq-bars {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.freq-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.freq-bar-label {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.freq-bar-track {
  background: var(--border);
  border-radius: 4px;
  height: 20px;
  overflow: hidden;
}

.freq-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #e07b54, #ffb347);
  transition: width 0.6s ease;
}

.freq-bar-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.freq-chart-note {
  max-width: 540px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.gap-steps {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gap-steps h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.step-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── gap_mode ─────────────────────────────────────────────── */

.gap-demo {
  padding: 48px 0;
}

.gap-demo h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.gap-demo-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.demo-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.demo-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.demo-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(224,123,84,0.12);
}

.demo-card-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.demo-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.demo-badge.mood  { color: #e07b54; border-color: #e07b54; }

.demo-badge.tense { color: #e07b54; border-color: #e07b54; }

.demo-card-infinitive {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.demo-card-person {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.demo-sentence {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 28px;
}

.gap-blank {
  display: inline-block;
  width: 64px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  vertical-align: middle;
  margin: 0 2px;
  position: relative;
  top: -3px;
}

.gap-filled {
  color: #16a34a;
  font-weight: 700;
}

.demo-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.demo-card.is-revealed .demo-hint {
  display: none;
}

.gap-steps {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gap-steps h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}

.step-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── spaced_repetition ─────────────────────────────────────────────── */

.feature-how {
  padding: 48px 0;
}

.feature-how .container {
  max-width: 640px;
}

.feature-how h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-how p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 32px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-day {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 2px;
}

.timeline-content {
  font-size: 15px;
  line-height: 1.5;
}

.timeline-content strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-content span {
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-correct {
  background: color-mix(in srgb,#16a34a 20%,var(--surface));
  color: #15803d;
  border: 1px solid color-mix(in srgb,#16a34a 40%,var(--border));
}

.badge-wrong {
  background: color-mix(in srgb,#dc2626 20%,var(--surface));
  color: #b91c1c;
  border: 1px solid color-mix(in srgb,#dc2626 40%,var(--border));
}

.feature-meaning {
  padding: 32px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-meaning .container {
  max-width: 640px;
}

.feature-meaning h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-meaning p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-meaning p:last-child {
  margin-bottom: 0;
}

/* ── tense_colors ─────────────────────────────────────────────── */

.color-preview {
  padding: 48px 0;
}

.color-preview h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.color-chip {
  border-radius: 12px;
  padding: 16px 18px;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  border: 1.5px solid;
}

.color-chip .chip-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  opacity: 0.7;
}

.color-chip .chip-es {
  font-size: 13px;
  font-weight: 700;
}

.color-chip .chip-de {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 2px;
}

.screenshots {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.screenshots-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
  display: block;
}

@media (max-width: 600px) {
  .screenshot-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}
