/* DCL PC-Konfigurator – Frontend Styles */
:root {
  --dcl-primary:   #1a1a2e;
  --dcl-secondary: #16213e;
  --dcl-accent:    #e94560;
  --dcl-bg:        #0f0f23;
  --dcl-text:      #e8e8f0;
  --dcl-card:      #1e1e3a;
  --dcl-border:    rgba(255,255,255,0.08);
  --dcl-radius:    12px;
  --dcl-transition: 0.25s ease;
}

/* Wrapper */
.dcl-wrap {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dcl-bg);
  color: var(--dcl-text);
  border-radius: var(--dcl-radius);
  overflow: hidden;
  position: relative;
  min-height: 400px;
}

.dcl-hidden { display: none !important; }

/* Screens */
.dcl-screen {
  padding: 40px 32px;
  animation: dclFadeIn 0.35s ease;
}
@keyframes dclFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero */
.dcl-hero { text-align: center; margin-bottom: 36px; }
.dcl-badge {
  display: inline-block;
  background: var(--dcl-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.dcl-hero h2 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #fff 40%, var(--dcl-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dcl-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  margin: 0;
}

/* Platform Selection */
.dcl-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}
.dcl-platform-btn {
  background: var(--dcl-card);
  border: 2px solid var(--dcl-border);
  border-radius: var(--dcl-radius);
  color: var(--dcl-text);
  cursor: pointer;
  padding: 32px 20px;
  text-align: center;
  transition: var(--dcl-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dcl-platform-btn:hover {
  border-color: var(--dcl-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(233,69,96,0.2);
}
.dcl-platform-icon { font-size: 40px; }
.dcl-platform-label { font-size: 20px; font-weight: 700; }
.dcl-platform-sub { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* Loader */
.dcl-loader { text-align: center; padding: 60px 0; }
.dcl-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--dcl-accent);
  border-radius: 50%;
  animation: dcl-spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes dcl-spin { to { transform: rotate(360deg); } }

/* Config Header */
.dcl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.dcl-back-btn {
  background: none;
  border: 1px solid var(--dcl-border);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: var(--dcl-transition);
}
.dcl-back-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.dcl-platform-badge {
  background: var(--dcl-primary);
  border: 1px solid var(--dcl-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.dcl-price-display {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.dcl-price-display strong {
  font-size: 20px;
  color: var(--dcl-accent);
  font-weight: 800;
}

/* Progress Bar */
.dcl-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.dcl-progress-fill {
  height: 100%;
  background: var(--dcl-accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Step */
.dcl-step { display: none; }
.dcl-step.active { display: block; animation: dclFadeIn 0.3s ease; }
.dcl-step-header {
  margin-bottom: 20px;
}
.dcl-step-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.dcl-step-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.dcl-step-optional {
  display: inline-block;
  font-size: 11px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Component Cards */
.dcl-components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.dcl-comp-card {
  background: var(--dcl-card);
  border: 2px solid var(--dcl-border);
  border-radius: var(--dcl-radius);
  padding: 18px;
  cursor: pointer;
  transition: var(--dcl-transition);
  position: relative;
}
.dcl-comp-card:hover {
  border-color: rgba(233,69,96,0.4);
  transform: translateY(-2px);
}
.dcl-comp-card.selected {
  border-color: var(--dcl-accent);
  background: rgba(233,69,96,0.08);
}
.dcl-comp-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 12px;
  background: var(--dcl-accent);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.dcl-comp-card.optional-skip {
  border-style: dashed;
  opacity: 0.7;
}
.dcl-comp-card.optional-skip.selected {
  opacity: 1;
  border-style: solid;
}
.dcl-comp-img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 6px;
}
.dcl-comp-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.dcl-comp-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  margin-bottom: 10px;
}
.dcl-comp-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--dcl-accent);
}
.dcl-comp-price.free { color: #10b981; }

/* Navigation */
.dcl-nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}
.dcl-btn-primary, .dcl-btn-secondary {
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--dcl-transition);
  border: none;
}
.dcl-btn-primary {
  background: var(--dcl-accent);
  color: #fff;
  flex: 1;
}
.dcl-btn-primary:hover {
  background: #c73251;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(233,69,96,0.3);
}
.dcl-btn-secondary {
  background: var(--dcl-card);
  color: var(--dcl-text);
  border: 1px solid var(--dcl-border);
}
.dcl-btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
}

/* Summary */
.dcl-summary-list { margin-bottom: 24px; }
.dcl-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--dcl-card);
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 12px;
}
.dcl-summary-cat {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  min-width: 100px;
}
.dcl-summary-name { flex: 1; font-size: 14px; font-weight: 500; }
.dcl-summary-price { font-weight: 700; color: var(--dcl-accent); }
.dcl-summary-row.empty .dcl-summary-name { color: rgba(255,255,255,0.3); font-style: italic; }
.dcl-summary-row.empty .dcl-summary-price { color: rgba(255,255,255,0.2); }
.dcl-summary-total {
  text-align: right;
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  padding: 16px 18px;
  background: var(--dcl-primary);
  border-radius: 8px;
}
.dcl-summary-total strong { font-size: 28px; color: var(--dcl-accent); margin-left: 8px; }

/* Contact Form */
.dcl-form-wrap { max-width: 540px; margin: 0 auto; }
.dcl-form-row { margin-bottom: 20px; }
.dcl-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.7);
}
.dcl-form-row input,
.dcl-form-row textarea {
  width: 100%;
  background: var(--dcl-card);
  border: 2px solid var(--dcl-border);
  border-radius: 8px;
  color: var(--dcl-text);
  font-size: 15px;
  padding: 12px 16px;
  box-sizing: border-box;
  transition: var(--dcl-transition);
  outline: none;
  font-family: inherit;
}
.dcl-form-row input:focus,
.dcl-form-row textarea:focus {
  border-color: var(--dcl-accent);
  background: rgba(233,69,96,0.04);
}
.dcl-error {
  background: rgba(233,69,96,0.15);
  border: 1px solid rgba(233,69,96,0.4);
  color: #ff8fa0;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Success */
.dcl-success-wrap { text-align: center; padding: 40px 20px; }
.dcl-success-icon {
  width: 80px; height: 80px;
  background: #10b981;
  color: #fff;
  font-size: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: dclPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dclPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.dcl-success-wrap h2 { font-size: 26px; margin-bottom: 12px; }
.dcl-success-wrap p { color: rgba(255,255,255,0.55); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.dcl-success-id {
  display: inline-block;
  background: var(--dcl-card);
  border: 1px solid var(--dcl-border);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 640px) {
  .dcl-screen { padding: 24px 18px; }
  .dcl-platform-grid { grid-template-columns: 1fr; }
  .dcl-components-grid { grid-template-columns: 1fr; }
  .dcl-header { flex-direction: column; align-items: flex-start; }
  .dcl-nav-buttons { flex-direction: column; }
  .dcl-btn-primary, .dcl-btn-secondary { width: 100%; text-align: center; }
  .dcl-summary-row { flex-wrap: wrap; }
}

/* ── Meta-Badges (DDR4 / DDR5 / Kühler-Typ) ── */
.dcl-meta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.dcl-meta-badge.ddr4 { background: rgba(59,130,246,0.2); color: #93c5fd; border: 1px solid rgba(59,130,246,0.35); }
.dcl-meta-badge.ddr5 { background: rgba(168,85,247,0.2); color: #d8b4fe; border: 1px solid rgba(168,85,247,0.35); }
.dcl-meta-badge.air  { background: rgba(16,185,129,0.2); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.dcl-meta-badge.wakue{ background: rgba(6,182,212,0.2);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.35);  }

/* ── RAM-Kompatibilitäts-Hinweis ── */
.dcl-ram-notice {
  background: rgba(233,69,96,0.1);
  border: 1px solid rgba(233,69,96,0.3);
  color: #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.dcl-ram-notice strong { color: var(--dcl-accent); }

/* ── Shake-Animation bei Pflichtfeld-Fehler ── */
@keyframes dclShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}
.dcl-shake { animation: dclShake 0.5s ease; }

/* ── HTML in Komponentenbeschreibungen ── */
.dcl-comp-desc ul, .dcl-comp-desc ol {
  margin: 4px 0 4px 16px;
  padding: 0;
}
.dcl-comp-desc li { margin: 2px 0; }
.dcl-comp-desc strong { color: rgba(255,255,255,0.75); }
.dcl-comp-desc a { color: var(--dcl-accent); text-decoration: none; }
.dcl-comp-desc a:hover { text-decoration: underline; }
.dcl-comp-desc p { margin: 3px 0; }

/* ── Kategorie-Tabs (Gaming / Office) ── */
.dcl-category-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.dcl-cat-tab {
  background: var(--dcl-card);
  border: 2px solid var(--dcl-border);
  border-radius: 24px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  transition: var(--dcl-transition);
}
.dcl-cat-tab:hover {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.dcl-cat-tab.active {
  background: var(--dcl-accent);
  border-color: var(--dcl-accent);
  color: #fff;
}

/* Office-Buttons leicht anders färben */
.dcl-btn-office:hover {
  border-color: rgba(99,179,237,0.6);
  box-shadow: 0 12px 36px rgba(99,179,237,0.15);
}

/* Platform-Badge Farbe je nach Typ */
.dcl-platform-badge[data-badge="office"] {
  background: rgba(99,179,237,0.15);
  border-color: rgba(99,179,237,0.3);
  color: #90cdf4;
}

/* Summary – Plattform-Label oben */
.dcl-summary-platform {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--dcl-accent);
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(233,69,96,0.08);
  border-radius: 8px;
  border: 1px solid rgba(233,69,96,0.2);
}

/* ── CPU-Logos in Platform-Buttons ── */
.dcl-platform-icon { display: none; } /* Emoji-Fallback verstecken wenn SVG da */

.dcl-cpu-logo {
  width: 110px;
  height: 40px;
  display: block;
  margin: 0 auto 4px;
  flex-shrink: 0;
}

/* Intel-Button: blaues Highlight */
.dcl-btn-intel {
  border-color: rgba(0, 104, 181, 0.25);
}
.dcl-btn-intel:hover,
.dcl-btn-intel:focus {
  border-color: #0068b5;
  box-shadow: 0 12px 36px rgba(0, 104, 181, 0.25);
}

/* AMD-Button: rotes Highlight */
.dcl-btn-amd {
  border-color: rgba(227, 0, 11, 0.25);
}
.dcl-btn-amd:hover,
.dcl-btn-amd:focus {
  border-color: #e3000b;
  box-shadow: 0 12px 36px rgba(227, 0, 11, 0.25);
}

/* AMD-Logo Hintergrund damit weißer Text sichtbar ist */
.dcl-logo-amd {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 2px 6px;
}

/* ── SKU in Zusammenfassung ── */
.dcl-summary-sku {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* ── Drucken-Button ── */
.dcl-btn-print {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 12px;
  background: transparent;
  border: 2px solid var(--dcl-border);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--dcl-transition);
  text-align: center;
}
.dcl-btn-print:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
