/* ===== KARTHÄUSERHOF WEIN SOMMELIER ===== */
/* Exaktes Design-System von karthaeuserhof.com */

:root {
  --black: #151515;
  --white: #ffffff;
  --gold: #c7a558;
  --bg: #ffffff;
  --bg-dark: #f7f7f7;
  --text: #151515;
  --text-mid: #555;
  --text-light: #888;
  --border: #E2E2E2;
  --font: 'Archivo Narrow', sans-serif;
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

/* ===== CONTAINER ===== */

.konfigurator {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 28px 60px;
}

/* ===== HEADER — Echtes Logo ===== */

.konfig-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.logo-link {
  display: inline-block;
  margin-bottom: 10px;
}

.logo-img {
  height: 80px;
  width: auto;
}

.header-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== PROGRESS BAR ===== */

.progress-bar {
  margin-bottom: 48px;
}

.progress-track {
  height: 1px;
  background: var(--border);
  margin-bottom: 12px;
}

.progress-fill {
  height: 2px;
  background: var(--black);
  transition: width 0.5s ease;
  width: 10%;
  margin-top: -1px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
}

.progress-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}

.progress-label.active {
  color: var(--black);
  font-weight: 600;
}

.progress-label.completed {
  color: var(--text-mid);
}

/* ===== QUIZ STEPS ===== */

.quiz-step {
  display: none;
  animation: stepIn 0.35s ease;
}

.quiz-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-content { text-align: center; }

.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.step-content h2 {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: 0;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 400;
}

/* ===== OPTION CARDS — Clean, text-only ===== */

.options-grid {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.options-2-wide {
  grid-template-columns: repeat(2, 1fr);
  max-width: 660px;
}

.options-3 { grid-template-columns: repeat(3, 1fr); }
.options-4 { grid-template-columns: repeat(4, 1fr); }

.option-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 22px 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.option-card:hover {
  border-color: var(--black);
}

.option-card.selected {
  border-color: var(--black);
  border-width: 2px;
  padding: 21px 13px 17px; /* compensate for border */
  background: var(--bg-dark);
}

.option-card.selected::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--black);
  border-radius: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.option-desc {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
}

/* ===== BUDGET CARDS ===== */

.budget-card { padding: 20px 12px 16px; }
.budget-card.selected { padding: 19px 11px 15px; }

.budget-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  line-height: 1;
}

.budget-card.selected .budget-price {
  color: var(--black);
}

/* ===== TASTE CARDS (Step 2) ===== */

.taste-card {
  flex-direction: row;
  text-align: left;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.taste-card.selected { padding: 0; }

.taste-bar {
  width: 5px;
  min-height: 100%;
  flex-shrink: 0;
}

.bar-trocken { background: #B8AD8A; }
.bar-feinherb { background: #D4B870; }
.bar-fruchtig { background: #D49B20; }
.bar-prickelnd { background: #D8D2C4; }

.taste-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.taste-card .option-label {
  font-size: 14px;
}

.taste-card .option-desc {
  font-size: 12px;
  line-height: 1.5;
  text-transform: none;
}

/* ===== NAVIGATION — wie karthaeuserhof.com Buttons ===== */

.quiz-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  padding: 11px 28px;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: #2a2a2a;
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-light);
  border-color: var(--border);
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.2);
}

.btn-outline:hover {
  border-color: var(--black);
}

.btn-back {
  background: transparent;
  color: var(--text-light);
  border: none;
}

.btn-back:hover:not(:disabled) {
  color: var(--black);
}

.btn-back:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ===== ANALYSIS ANIMATION ===== */

.analysis-content {
  padding: 50px 0 30px;
}

.analysis-icon-wrap {
  margin-bottom: 24px;
}

.analysis-logo {
  height: 64px;
  width: auto;
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.analysis-steps {
  max-width: 340px;
  margin: 24px auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analysis-step {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.2;
  transform: translateX(-6px);
  transition: all 0.5s ease;
}

.analysis-step.active {
  opacity: 1;
  transform: translateX(0);
}

.analysis-step.done {
  opacity: 1;
  transform: translateX(0);
}

.analysis-check {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.analysis-step.active .analysis-check {
  background: var(--gold);
}

.analysis-step.done .analysis-check {
  background: var(--black);
}

.check-icon {
  width: 12px;
  height: 12px;
  fill: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.analysis-step.done .check-icon {
  opacity: 1;
  transform: scale(1);
}

.analysis-step span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
}

.analysis-step.active span {
  color: var(--text);
  font-weight: 500;
}

.analysis-progress {
  max-width: 340px;
  margin: 20px auto 0;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.analysis-progress-bar {
  height: 2px;
  width: 0%;
  background: var(--black);
  margin-top: -1px;
  transition: width 0.6s ease;
}

/* ===== RESULTS ===== */

.results-content { text-align: center; }
.results-header { margin-bottom: 20px; }

.results-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.results-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.summary-tag {
  background: var(--bg-dark);
  color: var(--text);
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== PRODUCT CARDS — wie karthaeuserhof.com ===== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  text-align: left;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--black);
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.product-img-wrap .wine-placeholder {
  color: var(--border);
  opacity: 0.6;
}

.product-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.product-info {
  padding: 12px 14px 14px;
}

.product-type {
  font-size: 9px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 2px;
}

.product-year {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 8px;
}

.price-current {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.product-match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
  padding: 4px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 0 0 3px 0;
}

.match-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== RESULTS CTA ===== */

.results-cta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.cta-text {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--text-light);
}

.no-results h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--black);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .konfigurator { padding: 24px 16px 40px; }
  .logo-img { height: 60px; }
  .step-content h2 { font-size: 21px; }
  .step-subtitle { font-size: 13px; margin-bottom: 24px; }
  .options-4 { grid-template-columns: repeat(2, 1fr); }
  .options-2-wide { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .progress-label { font-size: 9px; }
}

@media (max-width: 480px) {
  .options-3 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 13px; }
  .results-actions { flex-direction: column; align-items: stretch; }
  .results-actions .btn { justify-content: center; }
}
