/* =====================================================
   MA Führerschein Theorietrainer 2026
   Farben: #003A74 Dunkelblau | #FAD130 Gelb | #fff weiß
   ===================================================== */

:root {
  --pk-blue:       #003A74;
  --pk-blue-dark:  #002855;
  --pk-blue-mid:   #0055aa;
  --pk-yellow:     #FAD130;
  --pk-yellow-dk:  #d4ae1a;
  --pk-green:      #1a9e5e;
  --pk-red:        #d63333;
  --pk-gray:       #f4f6f9;
  --pk-border:     #dde3ee;
  --pk-text:       #1a1a2e;
  --pk-muted:      #687082;
  --pk-radius:     10px;
  --pk-shadow:     0 4px 20px rgba(0,58,116,.12);
}

#ma-tt-root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--pk-text);
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== LOADING ===== */
#ma-tt-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--pk-muted);
}
.ma-tt-spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--pk-border);
  border-top-color: var(--pk-blue);
  border-radius: 50%;
  animation: ma-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes ma-spin { to { transform: rotate(360deg); } }

/* ===== SCREENS ===== */
.ma-tt-screen { display: none; }
.ma-tt-screen.active { display: block; animation: ma-fadein .25s ease; }
@keyframes ma-fadein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ===== HEADER ===== */
.ma-tt-header {
  background: var(--pk-blue);
  border-radius: var(--pk-radius) var(--pk-radius) 0 0;
  padding: 28px 32px 24px;
  color: #fff;
  position: relative;
}
.ma-tt-header-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
}
.ma-tt-header-logo .icon {
  width: 42px; height: 42px; background: var(--pk-yellow);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--pk-blue); font-weight: 700; flex-shrink: 0;
}
.ma-tt-header h1 {
  font-size: 1.5em; font-weight: 700; margin: 0; color: #fff;
}
.ma-tt-header p {
  color: rgba(255,255,255,.72); font-size: .9em; margin: 4px 0 0;
}
.ma-tt-back-btn {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 7px 16px; border-radius: 20px;
  cursor: pointer; font-size: .85em; font-weight: 500; transition: background .2s;
}
.ma-tt-back-btn:hover { background: rgba(255,255,255,.22); }

/* ===== BODY ===== */
.ma-tt-body {
  background: var(--pk-gray);
  border: 1px solid var(--pk-border);
  border-top: none;
  border-radius: 0 0 var(--pk-radius) var(--pk-radius);
  padding: 28px 28px 32px;
}

/* ===== KLASSEN GRID ===== */
.ma-tt-klassen-intro {
  background: #fff; border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 16px 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.ma-tt-klassen-intro .badge {
  background: var(--pk-blue); color: var(--pk-yellow);
  font-size: .78em; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.ma-tt-klassen-intro p { margin: 0; font-size: .9em; color: var(--pk-muted); }

.ma-tt-section-title {
  font-size: .82em; font-weight: 700; color: var(--pk-muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 20px 0 10px;
}

.ma-tt-klassen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.ma-tt-klasse-card {
  background: #fff; border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 16px 10px 14px;
  text-align: center; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  position: relative; overflow: hidden;
}
.ma-tt-klasse-card:hover {
  border-color: var(--pk-blue-mid);
  box-shadow: var(--pk-shadow);
  transform: translateY(-2px);
}
.ma-tt-klasse-card .kl-icon {
  font-size: 2em; margin-bottom: 8px; display: block;
  filter: grayscale(0); transition: transform .2s;
}
.ma-tt-klasse-card:hover .kl-icon { transform: scale(1.1); }
.ma-tt-klasse-card .kl-name {
  font-size: 1.1em; font-weight: 800; color: var(--pk-blue); display: block; line-height: 1;
}
.ma-tt-klasse-card .kl-desc {
  font-size: .74em; color: var(--pk-muted); margin-top: 4px; display: block;
  line-height: 1.3;
}
.ma-tt-klasse-card .kl-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--pk-yellow); transition: width .4s;
}
.ma-tt-klasse-card .kl-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--pk-yellow); color: var(--pk-blue);
  font-size: .64em; font-weight: 700; padding: 2px 6px; border-radius: 10px;
}
.ma-tt-klasse-card.has-progress { border-color: #b8cfe8; }

/* ===== MODUS SELECTION ===== */
.ma-tt-modus-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px;
}
.ma-tt-modus-card {
  background: #fff; border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 22px 18px;
  cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .12s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.ma-tt-modus-card:hover {
  border-color: var(--pk-blue); box-shadow: var(--pk-shadow); transform: translateY(-2px);
}
.ma-tt-modus-card .mod-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5em;
}
.ma-tt-modus-card .mod-icon.blue { background: #e8f0fb; }
.ma-tt-modus-card .mod-icon.yellow { background: #fdf5d0; }
.ma-tt-modus-card .mod-icon.green { background: #e2f5ec; }
.ma-tt-modus-card .mod-icon.orange { background: #fef0e0; }
.ma-tt-modus-card h3 {
  font-size: 1em; font-weight: 700; color: var(--pk-blue); margin: 0;
}
.ma-tt-modus-card p { font-size: .82em; color: var(--pk-muted); margin: 0; line-height: 1.4; }
.ma-tt-modus-card .mod-count {
  margin-top: 4px; background: var(--pk-gray); border-radius: 6px;
  padding: 4px 10px; font-size: .78em; font-weight: 600; color: var(--pk-blue);
}

/* ===== KATEGORIE SELECTION ===== */
.ma-tt-kategorie-list { display: flex; flex-direction: column; gap: 8px; }
.ma-tt-kat-item {
  background: #fff; border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 14px 18px;
  cursor: pointer; display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.ma-tt-kat-item:hover { border-color: var(--pk-blue); box-shadow: 0 2px 10px rgba(0,58,116,.08); }
.ma-tt-kat-item .kat-icon { font-size: 1.4em; flex-shrink: 0; }
.ma-tt-kat-item .kat-info { flex: 1; }
.ma-tt-kat-item .kat-name { font-weight: 600; color: var(--pk-blue); font-size: .95em; }
.ma-tt-kat-item .kat-count { font-size: .78em; color: var(--pk-muted); margin-top: 2px; }
.ma-tt-kat-item .kat-progress-bar {
  height: 6px; background: var(--pk-gray); border-radius: 3px; margin-top: 6px; overflow: hidden;
}
.ma-tt-kat-item .kat-progress-fill {
  height: 100%; background: var(--pk-green); border-radius: 3px; transition: width .4s;
}
.ma-tt-kat-item .kat-score {
  font-size: .8em; font-weight: 700; color: var(--pk-green);
  background: #e2f5ec; padding: 4px 10px; border-radius: 20px; flex-shrink: 0;
}
.ma-tt-kat-item .kat-score.low { color: var(--pk-red); background: #fde8e8; }

/* ===== QUESTION SCREEN ===== */
.ma-tt-qheader {
  background: #fff; border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 14px 18px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 14px;
}
.ma-tt-progress-bar-wrap {
  flex: 1; height: 8px; background: var(--pk-gray); border-radius: 4px; overflow: hidden;
}
.ma-tt-progress-bar-fill {
  height: 100%; background: var(--pk-blue); border-radius: 4px; transition: width .4s ease;
}
.ma-tt-q-counter {
  font-size: .9em; font-weight: 700; color: var(--pk-blue); white-space: nowrap;
}
.ma-tt-fp-indicator {
  background: var(--pk-gray); border-radius: 20px;
  padding: 5px 12px; font-size: .8em; font-weight: 700; color: var(--pk-muted);
  white-space: nowrap;
}
.ma-tt-fp-indicator.warn { background: #fff3cd; color: #856404; }
.ma-tt-fp-indicator.danger { background: #fde8e8; color: var(--pk-red); }
.ma-tt-timer {
  background: var(--pk-blue); color: #fff;
  border-radius: 20px; padding: 5px 14px; font-size: .85em; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.ma-tt-timer.warn { background: #cc7700; }
.ma-tt-timer.danger { background: var(--pk-red); animation: ma-pulse .6s infinite alternate; }
@keyframes ma-pulse { from { opacity:.7; } to { opacity:1; } }

.ma-tt-q-card {
  background: #fff; border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 24px 26px;
  box-shadow: var(--pk-shadow); margin-bottom: 14px;
}
.ma-tt-q-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.ma-tt-q-meta .q-kat {
  font-size: .76em; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: #e8f0fb; color: var(--pk-blue); text-transform: uppercase;
  letter-spacing: .04em;
}
.ma-tt-q-meta .q-pts {
  font-size: .76em; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.q-pts-5 { background: #fde8e8; color: #a52020; }
.q-pts-4 { background: #fff3cd; color: #7a5700; }
.q-pts-3 { background: #e2f5ec; color: #1a6e40; }
.q-pts-2 { background: #f0f0f0; color: #555; }
.ma-tt-q-meta .q-id { font-size: .74em; color: var(--pk-muted); margin-left: auto; }

.ma-tt-q-text {
  font-size: 1.05em; font-weight: 600; color: var(--pk-text);
  line-height: 1.55; margin-bottom: 20px;
}

.ma-tt-answers { display: flex; flex-direction: column; gap: 10px; }
.ma-tt-answer {
  border: 1.5px solid var(--pk-border); border-radius: var(--pk-radius);
  padding: 14px 16px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color .15s, background .15s;
  background: #fff;
}
.ma-tt-answer:hover:not(.revealed) {
  border-color: var(--pk-blue-mid); background: #f0f5fd;
}
.ma-tt-answer.selected:not(.revealed) {
  border-color: var(--pk-blue); background: #e8f0fb;
}
.ma-tt-answer .ans-circle {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--pk-border); background: var(--pk-gray);
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .8em;
  color: var(--pk-muted); transition: all .15s; margin-top: 1px;
}
.ma-tt-answer.selected .ans-circle {
  border-color: var(--pk-blue); background: var(--pk-blue); color: #fff;
}
.ma-tt-answer .ans-text {
  font-size: .95em; color: var(--pk-text); line-height: 1.5; flex: 1;
}

/* Answer states after reveal */
.ma-tt-answer.correct {
  border-color: var(--pk-green); background: #edfaf5;
}
.ma-tt-answer.correct .ans-circle {
  border-color: var(--pk-green); background: var(--pk-green); color: #fff;
}
.ma-tt-answer.wrong {
  border-color: var(--pk-red); background: #fde8e8;
}
.ma-tt-answer.wrong .ans-circle {
  border-color: var(--pk-red); background: var(--pk-red); color: #fff;
}
.ma-tt-answer.revealed { cursor: default; }
.ma-tt-answer.correct-marker {
  border-color: var(--pk-green); background: #edfaf5;
}

/* Explanation box */
.ma-tt-explanation {
  background: #f0f6ff; border-left: 4px solid var(--pk-blue);
  border-radius: 0 var(--pk-radius) var(--pk-radius) 0;
  padding: 14px 16px; margin-top: 12px;
  font-size: .9em; color: #1a3a60; line-height: 1.6;
  animation: ma-fadein .2s ease;
}
.ma-tt-explanation strong { color: var(--pk-blue); }

/* Action buttons */
.ma-tt-q-actions {
  display: flex; gap: 10px; margin-top: 14px;
}
.ma-tt-btn {
  padding: 12px 26px; border-radius: 8px; border: none;
  cursor: pointer; font-size: .95em; font-weight: 700;
  transition: transform .1s, opacity .15s;
}
.ma-tt-btn:hover { opacity: .9; transform: translateY(-1px); }
.ma-tt-btn:active { transform: translateY(0); }
.ma-tt-btn-primary {
  background: var(--pk-blue); color: #fff; flex: 1;
}
.ma-tt-btn-yellow {
  background: var(--pk-yellow); color: var(--pk-blue);
}
.ma-tt-btn-ghost {
  background: transparent; border: 1.5px solid var(--pk-border);
  color: var(--pk-muted);
}
.ma-tt-btn-ghost:hover { border-color: var(--pk-blue); color: var(--pk-blue); opacity:1; }
.ma-tt-btn:disabled { opacity: .45; cursor: default; transform: none; }

/* ===== RESULT SCREEN ===== */
.ma-tt-result-hero {
  text-align: center; padding: 32px 20px 24px;
  background: #fff; border-radius: var(--pk-radius); margin-bottom: 16px;
  border: 1.5px solid var(--pk-border); box-shadow: var(--pk-shadow);
}
.ma-tt-result-emoji { font-size: 3.5em; margin-bottom: 12px; display: block; }
.ma-tt-result-hero h2 { font-size: 1.6em; font-weight: 800; margin: 0 0 6px; }
.ma-tt-result-hero h2.passed { color: var(--pk-green); }
.ma-tt-result-hero h2.failed { color: var(--pk-red); }
.ma-tt-result-hero p { color: var(--pk-muted); margin: 0; font-size: .95em; }
.ma-tt-result-fp {
  display: inline-block; margin-top: 14px;
  font-size: 1.3em; font-weight: 800; padding: 8px 24px;
  border-radius: 30px;
}
.ma-tt-result-fp.passed { background: #e2f5ec; color: var(--pk-green); }
.ma-tt-result-fp.failed { background: #fde8e8; color: var(--pk-red); }

.ma-tt-result-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.ma-tt-stat-card {
  background: #fff; border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 16px; text-align: center;
}
.ma-tt-stat-card .st-val {
  font-size: 1.8em; font-weight: 800; color: var(--pk-blue); display: block;
}
.ma-tt-stat-card .st-lbl {
  font-size: .78em; color: var(--pk-muted); margin-top: 4px; display: block;
}

.ma-tt-result-breakdown {
  background: #fff; border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius); overflow: hidden; margin-bottom: 16px;
}
.ma-tt-result-breakdown .rb-header {
  background: var(--pk-blue); color: #fff;
  padding: 12px 18px; font-weight: 700; font-size: .9em;
}
.ma-tt-result-row {
  display: flex; align-items: center; padding: 11px 18px;
  border-bottom: 1px solid var(--pk-border); gap: 10px;
}
.ma-tt-result-row:last-child { border-bottom: none; }
.ma-tt-result-row .r-q { flex: 1; font-size: .88em; color: var(--pk-text); line-height: 1.4; }
.ma-tt-result-row .r-status {
  font-size: .78em; font-weight: 700; padding: 3px 10px; border-radius: 20px; flex-shrink: 0;
}
.r-status-ok { background: #e2f5ec; color: var(--pk-green); }
.r-status-err { background: #fde8e8; color: var(--pk-red); }
.r-status-pts { font-size: .82em; color: var(--pk-red); font-weight: 700; min-width: 24px; text-align: right; }

.ma-tt-result-actions {
  display: flex; flex-direction: column; gap: 10px;
}

/* ===== STATISTIK SCREEN ===== */
.ma-tt-stats-card {
  background: #fff; border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius); padding: 22px;
  margin-bottom: 14px;
}
.ma-tt-stats-card h3 {
  font-size: 1em; font-weight: 700; color: var(--pk-blue);
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--pk-border);
}
.ma-tt-overall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px;
}
.ma-tt-ov-item { text-align: center; }
.ma-tt-ov-item .ov-val {
  font-size: 1.6em; font-weight: 800; color: var(--pk-blue); display: block;
}
.ma-tt-ov-item .ov-lbl { font-size: .74em; color: var(--pk-muted); display: block; }

.ma-tt-kat-stat { margin-bottom: 12px; }
.ma-tt-kat-stat .ks-head {
  display: flex; justify-content: space-between; margin-bottom: 5px;
  font-size: .88em; font-weight: 600;
}
.ma-tt-kat-stat .ks-bar {
  height: 8px; background: var(--pk-gray); border-radius: 4px; overflow: hidden;
}
.ma-tt-kat-stat .ks-fill {
  height: 100%; border-radius: 4px; transition: width .6s ease;
}
.ks-fill.good { background: var(--pk-green); }
.ks-fill.mid  { background: var(--pk-yellow); }
.ks-fill.low  { background: var(--pk-red); }

.ma-tt-reset-btn {
  background: transparent; border: 1px solid #ddd; color: var(--pk-muted);
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: .82em;
  transition: all .15s; margin-top: 8px;
}
.ma-tt-reset-btn:hover { border-color: var(--pk-red); color: var(--pk-red); }

/* ===== INFO BANNER ===== */
.ma-tt-info-banner {
  background: var(--pk-blue); color: #fff;
  border-radius: var(--pk-radius); padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px;
}
.ma-tt-info-banner .ib-icon { font-size: 1.4em; flex-shrink: 0; margin-top: 2px; }
.ma-tt-info-banner h4 { margin: 0 0 4px; font-size: .9em; color: var(--pk-yellow); }
.ma-tt-info-banner p { margin: 0; font-size: .82em; color: rgba(255,255,255,.8); line-height: 1.5; }

/* ===== LEARN MODE FEEDBACK ===== */
.ma-tt-learn-feedback {
  border-radius: var(--pk-radius); padding: 16px 18px; margin-top: 14px;
  display: flex; align-items: flex-start; gap: 12px; animation: ma-fadein .2s;
}
.ma-tt-learn-feedback.correct-fb {
  background: #e2f5ec; border: 1.5px solid var(--pk-green);
}
.ma-tt-learn-feedback.wrong-fb {
  background: #fde8e8; border: 1.5px solid var(--pk-red);
}
.ma-tt-learn-feedback .fb-icon { font-size: 1.4em; flex-shrink: 0; margin-top: 2px; }
.ma-tt-learn-feedback .fb-title { font-weight: 700; font-size: .95em; margin-bottom: 4px; }
.ma-tt-learn-feedback .fb-text { font-size: .87em; line-height: 1.5; }
.correct-fb .fb-title { color: var(--pk-green); }
.wrong-fb .fb-title { color: var(--pk-red); }

/* ===== KLASSE BADGE in header ===== */
.ma-tt-klasse-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border-radius: 20px;
  padding: 6px 14px; margin-top: 10px;
}
.ma-tt-klasse-badge .kb-letter {
  background: var(--pk-yellow); color: var(--pk-blue);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .85em;
}
.ma-tt-klasse-badge span { color: rgba(255,255,255,.88); font-size: .88em; }

/* ===== EMPTY STATE ===== */
.ma-tt-empty {
  text-align: center; padding: 48px 20px; color: var(--pk-muted);
}
.ma-tt-empty .em-icon { font-size: 3em; margin-bottom: 12px; display: block; }
.ma-tt-empty h3 { color: var(--pk-blue); margin: 0 0 8px; }
.ma-tt-empty p { font-size: .9em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .ma-tt-header { padding: 20px 16px; border-radius: var(--pk-radius) var(--pk-radius) 0 0; }
  .ma-tt-body { padding: 16px; }
  .ma-tt-klassen-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ma-tt-klasse-card { padding: 12px 8px; }
  .ma-tt-klasse-card .kl-name { font-size: 1em; }
  .ma-tt-modus-grid { grid-template-columns: 1fr; }
  .ma-tt-result-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ma-tt-overall { grid-template-columns: repeat(2, 1fr); }
  .ma-tt-back-btn { position: static; margin-top: 12px; display: inline-block; }
  .ma-tt-q-card { padding: 16px; }
  .ma-tt-q-actions { flex-wrap: wrap; }
  .ma-tt-btn-primary { flex: none; width: 100%; }
}
@media (max-width: 400px) {
  .ma-tt-klassen-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-tt-result-stats { grid-template-columns: 1fr; }
}

/* =====================================================
   SEO CONTENT BLOCK (unterhalb des Trainers)
   ===================================================== */

.ma-tt-seo-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1a1a2e;
  max-width: 980px;
  margin: 40px auto 0;
  line-height: 1.75;
}

.ma-tt-seo-divider {
  text-align: center;
  margin: 0 0 36px;
  position: relative;
}
.ma-tt-seo-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px; background: var(--pk-border);
}
.ma-tt-seo-divider span {
  position: relative;
  background: #fff;
  padding: 0 16px;
  font-size: .85em;
  font-weight: 700;
  color: var(--pk-blue);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ma-tt-seo-section {
  margin-bottom: 48px;
}
.ma-tt-seo-section h2 {
  font-size: 1.55em;
  font-weight: 800;
  color: var(--pk-blue);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--pk-yellow);
  line-height: 1.3;
}
.ma-tt-seo-section h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--pk-blue);
  margin: 24px 0 10px;
}
.ma-tt-seo-section h4 {
  font-size: 1em;
  font-weight: 700;
  color: var(--pk-blue);
  margin: 0 0 6px;
}
.ma-tt-seo-section p {
  margin: 0 0 14px;
  font-size: .97em;
  color: #2c2c40;
}
.ma-tt-seo-section ul {
  padding-left: 1.4em;
  margin-bottom: 14px;
}
.ma-tt-seo-section li {
  margin-bottom: 7px;
  font-size: .95em;
  color: #2c2c40;
}

/* Info / Warn Boxes */
.ma-tt-seo-box {
  border-radius: var(--pk-radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .92em;
  line-height: 1.6;
}
.ma-tt-seo-box.info {
  background: #e8f0fb;
  border-left: 4px solid var(--pk-blue);
  color: #1a3a60;
}
.ma-tt-seo-box.warn {
  background: #fdf5d0;
  border-left: 4px solid var(--pk-yellow-dk);
  color: #5a4000;
}

/* Steps */
.ma-tt-seo-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}
.ma-tt-seo-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius);
  padding: 16px 18px;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--pk-blue); color: var(--pk-yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1em; flex-shrink: 0;
  margin-top: 2px;
}
.step-body { flex: 1; }
.step-body strong { display: block; color: var(--pk-blue); margin-bottom: 5px; font-size: .97em; }
.step-body p { margin: 0; font-size: .9em; color: var(--pk-muted); }

/* Fehlerpunkt-Tabelle */
.ma-tt-seo-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}
.ma-tt-seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9em;
  min-width: 420px;
}
.ma-tt-seo-table thead {
  background: var(--pk-blue);
  color: #fff;
}
.ma-tt-seo-table thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: .85em;
}
.ma-tt-seo-table tbody tr {
  border-bottom: 1px solid var(--pk-border);
}
.ma-tt-seo-table tbody tr:hover { background: #f4f7fc; }
.ma-tt-seo-table tbody td { padding: 10px 14px; vertical-align: middle; }
.ma-tt-seo-table tbody tr:nth-child(even) { background: #f9fafb; }
.ma-tt-seo-table tbody tr:nth-child(even):hover { background: #eef3fa; }
.fp-5 td { background: #fde8e8 !important; }
.fp-4 td { background: #fff3cd !important; }
.fp-3 td { background: #e2f5ec !important; }
.fp-2 td { background: #f0f0f0 !important; }

/* Two-col layout */
.ma-tt-seo-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.ma-tt-seo-col-card {
  background: #fff;
  border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius);
  padding: 20px;
}
.ma-tt-seo-col-card h3 {
  font-size: 1em;
  font-weight: 700;
  color: var(--pk-blue);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pk-yellow);
}
.ma-tt-seo-col-card ul {
  padding-left: 1.2em;
  margin: 8px 0 0;
}
.ma-tt-seo-col-card li { font-size: .88em; margin-bottom: 5px; color: #2c2c40; }
.ma-tt-seo-col-card p  { font-size: .88em; color: #2c2c40; }

/* Neuheiten Grid */
.ma-tt-seo-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.ma-tt-seo-news-item {
  background: #fff;
  border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius);
  padding: 18px;
}
.ni-icon { font-size: 1.6em; display: block; margin-bottom: 8px; }
.ma-tt-seo-news-item h4 {
  font-size: .95em;
  font-weight: 700;
  color: var(--pk-blue);
  margin: 0 0 7px;
}
.ma-tt-seo-news-item p {
  font-size: .85em;
  color: var(--pk-muted);
  margin: 0;
  line-height: 1.55;
}

/* Tips */
.ma-tt-seo-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.ma-tt-seo-tip {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius);
  padding: 16px 18px;
  align-items: flex-start;
}
.tip-num {
  font-size: 1.2em;
  font-weight: 900;
  color: var(--pk-yellow-dk);
  min-width: 32px;
  flex-shrink: 0;
  line-height: 1.4;
}
.tip-body h4 { font-size: .95em; font-weight: 700; color: var(--pk-blue); margin: 0 0 5px; }
.tip-body p  { font-size: .88em; color: #2c2c40; margin: 0; line-height: 1.55; }

/* FAQ */
.ma-tt-seo-faq { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.ma-tt-faq-item {
  background: #fff;
  border: 1.5px solid var(--pk-border);
  border-radius: var(--pk-radius);
  overflow: hidden;
}
.ma-tt-faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: .95em;
  color: var(--pk-blue);
  cursor: pointer;
  background: #f4f8ff;
  border-bottom: 1px solid transparent;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s;
}
.ma-tt-faq-item summary::-webkit-details-marker { display: none; }
.ma-tt-faq-item summary::before {
  content: '+';
  width: 22px; height: 22px;
  background: var(--pk-blue); color: var(--pk-yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1em; font-weight: 900; flex-shrink: 0;
  transition: transform .2s;
}
.ma-tt-faq-item[open] summary::before {
  content: '−';
  transform: rotate(0deg);
}
.ma-tt-faq-item[open] summary {
  background: var(--pk-blue); color: #fff;
  border-bottom-color: transparent;
}
.ma-tt-faq-item[open] summary::before {
  background: var(--pk-yellow); color: var(--pk-blue);
}
.ma-tt-faq-item p {
  padding: 14px 18px;
  margin: 0;
  font-size: .9em;
  line-height: 1.65;
  color: #2c2c40;
  border-top: 1px solid var(--pk-border);
}

/* Disclaimer */
.ma-tt-seo-disclaimer {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: var(--pk-radius);
  padding: 18px 20px;
  font-size: .82em;
  color: #666;
  line-height: 1.65;
  margin-top: 40px;
}

/* Responsive SEO */
@media (max-width: 640px) {
  .ma-tt-seo-two-col { grid-template-columns: 1fr; }
  .ma-tt-seo-news-grid { grid-template-columns: 1fr; }
  .ma-tt-seo-tip { flex-direction: column; gap: 8px; }
  .ma-tt-seo-step { flex-direction: column; }
  .ma-tt-seo-section h2 { font-size: 1.3em; }
}
