/* ============================================
   CARSAR.DE — Auto-Konfigurator Styles
   ============================================ */

/* --- Wrapper --- */
.konfig-wrapper {
  min-height: calc(100vh - 64px - 200px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

/* --- Start Screen --- */
.start-screen {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 0;
}
.start-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.start-screen h1 {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.start-screen h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.start-screen p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn-start {
  display: inline-block;
  padding: .9rem 3rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-dark);
  border: none;
  border-radius: 100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(212, 168, 67, .3);
}
.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 67, .4);
}
.start-note {
  font-size: .8rem !important;
  color: var(--text-dim) !important;
  margin-top: 1rem !important;
}

/* --- Progress Bar --- */
.quiz-progress {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, .06);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
  width: 0;
}
.progress-text {
  text-align: center;
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: .5rem;
  letter-spacing: .05em;
}

/* --- Quiz Question --- */
.quiz-question {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.quiz-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.quiz-title {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

/* --- Quiz Options --- */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.quiz-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}
.quiz-option:hover {
  border-color: rgba(212, 168, 67, .3);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(212, 168, 67, .1);
}
.quiz-option-text {
  font-size: 1rem;
  font-weight: 600;
}
.quiz-option-sub {
  font-size: .825rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* --- Loading --- */
.quiz-loading {
  text-align: center;
  padding: 4rem 0;
}
.quiz-loading p {
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: 1rem;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 168, 67, .15);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Result --- */
.result {
  max-width: 680px;
  margin: 0 auto;
}
.result-hero {
  text-align: center;
  padding: 2rem 0;
}
.result-emoji {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: fadeInUp .6s ease-out both;
}
.result-name {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
}
.result-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.result-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 2rem;
}

/* Pros & Cons */
.result-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.result-pros, .result-cons {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.result-pros h4, .result-cons h4 {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.result-pros ul, .result-cons ul {
  list-style: none;
}
.result-pros li, .result-cons li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: .25rem 0;
}
.result-pros li::before {
  content: '+ ';
  color: var(--success);
  font-weight: 700;
}
.result-cons li::before {
  content: '\2013  ';
  color: var(--gold-dim);
  font-weight: 700;
}

/* Models */
.result-models {
  margin-bottom: 2rem;
}
.result-models h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.models-disclaimer {
  font-size: .7rem;
  color: var(--text-dim);
  margin-top: .75rem;
}
.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.model-tag {
  padding: .45rem 1rem;
  background: rgba(212, 168, 67, .08);
  border: 1px solid rgba(212, 168, 67, .2);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 500;
}

/* Affiliate Cards */
.result-affiliate {
  margin-bottom: 2rem;
}
.result-affiliate h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.result-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.result-affiliate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}
.result-affiliate-card:hover {
  border-color: rgba(212, 168, 67, .3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.rac-emoji {
  font-size: 1.75rem;
  margin-bottom: .5rem;
}
.rac-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}
.rac-cta {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 600;
}
.affiliate-disclaimer {
  font-size: .7rem;
  color: var(--text-dim);
  margin-top: .75rem;
  text-align: center;
}

/* Runner-Up */
.result-runnerup {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
}
.runnerup-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: .75rem;
}
.runnerup-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.runnerup-emoji {
  font-size: 2rem;
}
.runnerup-card strong {
  color: var(--text);
  font-size: 1rem;
}
.runnerup-card span {
  color: var(--text-muted);
  font-size: .85rem;
}

/* Score Debug */
.result-debug {
  margin-bottom: 2rem;
  font-size: .8rem;
  color: var(--text-dim);
}
.result-debug summary {
  cursor: pointer;
  padding: .5rem 0;
  color: var(--text-dim);
}
.result-debug summary:hover {
  color: var(--text-muted);
}
.result-debug ul {
  list-style: none;
  margin-top: .5rem;
}
.result-debug li {
  padding: .2rem 0;
}

/* Restart Button */
.btn-restart {
  display: block;
  margin: 0 auto;
  padding: .75rem 2.5rem;
  background: rgba(212, 168, 67, .1);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, .25);
  border-radius: 100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-restart:hover {
  background: rgba(212, 168, 67, .2);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .konfig-wrapper { padding: 2rem 0; }
  .result-proscons { grid-template-columns: 1fr; }
  .result-affiliate-grid { grid-template-columns: 1fr; }
  .quiz-option { padding: .9rem 1.2rem; }
}
@media (max-width: 480px) {
  .start-screen h1 { font-size: 1.8rem; }
  .result-emoji { font-size: 3.5rem; }
}
