/* ==========================================
   KONFIGURATOR PAGE STYLES
   Royal Bronze Theme
   ========================================== */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }

/* ── Hero ── */
.konfig-hero { padding: 140px 20px 60px; text-align: center; }

.konfig-hero-container { max-width: 900px; margin: 0 auto; }

/* Kicker — Inter */
.konfig-kicker {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-label);
  color: rgba(176,141,87,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

html[data-theme="dim"] .konfig-kicker { color: #B08D57; }

/* Hero title — Cormorant Garamond */
.konfig-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: var(--weight-h1);
  font-style: normal;
  line-height: 1.1;
  color: #2C3E50; margin: 0 0 20px;
  word-break: break-word; overflow-wrap: break-word;
}

html[data-theme="dim"] .konfig-hero-title { color: #B08D57; }

/* Hero subtitle — Inter */
.konfig-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: var(--weight-lead);
  color: rgba(44,62,80,0.7); line-height: 1.6; margin: 0;
}

html[data-theme="dim"] .konfig-hero-subtitle { color: rgba(245,242,237,0.7); }

.konfig-hero-cta { margin-top: 40px; display: flex; justify-content: center; }

/* Hero CTA button — Inter (kursiv als Akzent) */
.konfig-hero-cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 0 6px;
  background: none; border: none;
  border-bottom: 2px solid currentColor;
  color: #2C3E50;
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: var(--weight-button);
  font-style: italic;
  letter-spacing: 0.02em; cursor: pointer;
  transition: all 0.3s ease;
}

html[data-theme="dim"] .konfig-hero-cta-btn { color: #B08D57; }
.konfig-hero-cta-btn:hover { color: #B08D57; border-bottom-color: #B08D57; transform: translateY(-1px); }
html[data-theme="dim"] .konfig-hero-cta-btn:hover { color: #d4b07a; border-bottom-color: #d4b07a; }

.konfig-main { min-height: 100vh; }

/* ── Trust ticker ── */
.konfig-trust {
  padding: 20px;
  background: rgba(176,141,87,0.08);
  border-bottom: 1px solid rgba(176,141,87,0.15);
  margin-bottom: 60px;
}

html[data-theme="dim"] .konfig-trust { background: rgba(176,141,87,0.12); border-bottom: 1px solid rgba(176,141,87,0.2); }

.konfig-container-full { max-width: 1400px; margin: 0 auto; }

/* Ticker — Inter */
.konfig-trust-ticker {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-label);
  color: #B08D57;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 0; text-align: center;
}

html[data-theme="dim"] .konfig-trust-ticker { color: #d4b07a; }

/* ── Packages grid ── */
.konfig-packages { padding: 0 20px 40px; width: 100%; overflow-x: hidden; }

.konfig-container {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 32px; max-width: 1500px; width: 100%;
  margin: 0 auto; align-items: start;
}

/* ── Package card ── */
.package-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(176,141,87,0.2);
  border-radius: 20px; overflow: visible;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 20px rgba(176,141,87,0.08), inset 0 1px 0 rgba(176,141,87,0.05);
  min-width: 0; width: 100%;
}

html[data-theme="dim"] .package-card {
  background: rgba(40,45,50,0.85);
  border: 1px solid rgba(176,141,87,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(176,141,87,0.1);
}

.package-card:hover { transform: translateY(-4px); border-color: rgba(176,141,87,0.4); box-shadow: 0 8px 32px rgba(176,141,87,0.15), inset 0 1px 0 rgba(176,141,87,0.1); }
html[data-theme="dim"] .package-card:hover { border-color: rgba(176,141,87,0.4); box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(176,141,87,0.15); }

.package-card:nth-child(1),
.package-card:nth-child(3) { opacity: 0.9; }
.package-card:nth-child(1):hover,
.package-card:nth-child(3):hover { opacity: 1; }

.package-card:nth-child(2) {
  position: relative; border-width: 2px;
  border-color: rgba(176,141,87,0.5);
  background: rgba(255,255,255,1);
  box-shadow: 0 0 30px rgba(176,141,87,0.2), 0 12px 40px rgba(176,141,87,0.15), inset 0 1px 0 rgba(176,141,87,0.1);
  opacity: 1 !important; margin-top: 20px;
}

html[data-theme="dim"] .package-card:nth-child(2) {
  background: rgba(45,50,55,0.95);
  border-color: rgba(176,141,87,0.4);
  box-shadow: 0 0 20px rgba(176,141,87,0.15), 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(176,141,87,0.1);
}

.package-card:nth-child(2):hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 40px rgba(176,141,87,0.25), 0 16px 60px rgba(176,141,87,0.2), inset 0 1px 0 rgba(176,141,87,0.15); }

/* Badge — Inter */
.package-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #B08D57, #d4b07a, #B08D57);
  background-size: 200% auto;
  color: white; padding: 7px 28px; border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: var(--weight-button);
  text-transform: uppercase; letter-spacing: 0.15em;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(176,141,87,0.5), 0 1px 0 rgba(255,255,255,0.3) inset;
  white-space: nowrap; animation: badge-shine 3s linear infinite;
}

@keyframes badge-shine { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* ── Package header ── */
.package-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(176,141,87,0.15);
}

html[data-theme="dim"] .package-header { border-bottom: 1px solid rgba(176,141,87,0.2); }
.package-card:nth-child(2) .package-header { padding: 36px 32px; text-align: center; }

/* Package title — Cormorant Garamond */
.package-header h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  font-style: normal;
  color: #1a2530; margin: 0 0 8px; line-height: 1.3;
}

html[data-theme="dim"] .package-header h3 { color: #d4b07a; }
.package-card:nth-child(2) .package-header h3 { font-size: var(--text-h2); margin-bottom: 12px; }

/* Package subtitle — Inter */
.package-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-body);
  color: rgba(26,37,48,0.75); margin: 0; line-height: 1.4;
}

html[data-theme="dim"] .package-subtitle { color: rgba(212,176,122,0.85); }
.package-card:nth-child(2) .package-subtitle { font-size: var(--text-small); }

/* ── Package body ── */
.package-body { padding: 20px; flex: 1; overflow: auto; border-radius: 0 0 20px 20px; min-width: 0; }
.package-card:nth-child(2) .package-body { padding: 40px 32px; min-height: 450px; }

.package-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid rgba(176,141,87,0.08); font-size: var(--text-label);
}

html[data-theme="dim"] .package-row { border-bottom: 1px solid rgba(176,141,87,0.12); }
.package-row:last-child { border-bottom: none; }

/* Row label — Inter */
.package-label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-label);
  color: #1a2530; flex-shrink: 0; line-height: 1.3;
}

html[data-theme="dim"] .package-label { color: #e8d4b0; }

/* Row value — Inter */
.package-value {
  font-family: var(--font-body);
  font-size: 12px; font-weight: var(--weight-body);
  color: rgba(26,37,48,0.7); text-align: right; line-height: 1.3; word-break: break-word;
}

html[data-theme="dim"] .package-value { color: #ffffff; }

/* ── Custom config empty ── */
.custom-config-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 60px 30px; }

/* Empty message — Cormorant Garamond */
.empty-message {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  font-style: normal;
  color: rgba(26,37,48,0.7); margin: 0 0 12px;
}

html[data-theme="dim"] .empty-message { color: rgba(212,176,122,0.9); }

/* Empty hint — Inter */
.empty-hint {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-body);
  color: rgba(26,37,48,0.6); margin: 0;
}

html[data-theme="dim"] .empty-hint { color: rgba(212,176,122,0.7); }

.config-item-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(176,141,87,0.1); }
html[data-theme="dim"] .config-item-row { border-bottom: 1px solid rgba(176,141,87,0.15); }
.config-item-row:last-child { border-bottom: none; }

/* Config labels — Inter */
.config-item-label { font-family: var(--font-body); font-size: var(--text-body); font-weight: var(--weight-button); color: #1a2530; }
html[data-theme="dim"] .config-item-label { color: #d4b07a; }

.config-item-value { font-family: var(--font-body); font-size: var(--text-small); font-weight: var(--weight-body); color: rgba(26,37,48,0.7); text-align: right; }
html[data-theme="dim"] .config-item-value { color: rgba(212,176,122,0.8); }

/* ── Package footer ── */
.package-footer { padding: 20px; border-top: 1px solid rgba(176,141,87,0.15); }
html[data-theme="dim"] .package-footer { border-top: 1px solid rgba(176,141,87,0.2); }
.package-card:nth-child(2) .package-footer { padding: 32px; }

/* ── Buttons ── */

/* Configure button — Inter */
.btn-configure {
  width: 100%;
  background: linear-gradient(135deg, #B08D57, #d4b07a);
  color: white; border: none;
  padding: 14px 24px; border-radius: 12px;
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: var(--weight-button);
  cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(176,141,87,0.3);
}

.btn-configure:hover { background: linear-gradient(135deg, #d4b07a, #B08D57); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(176,141,87,0.5); }
.btn-configure:active { transform: translateY(0); }

.package-cta-top { padding: 0 24px 20px; border-bottom: 1px solid rgba(176,141,87,0.1); }
html[data-theme="dim"] .package-cta-top { border-bottom-color: rgba(176,141,87,0.15); }

/* Primary configure — Inter (kursiv als Akzent) */
.btn-configure-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 0 0 8px;
  background: none; border: none;
  border-bottom: 2px solid currentColor;
  color: #2C3E50;
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: var(--weight-button);
  font-style: italic;
  cursor: pointer; transition: all 0.3s ease;
}

html[data-theme="dim"] .btn-configure-primary { color: #B08D57; }
.btn-configure-primary:hover { color: #B08D57; border-bottom-color: #B08D57; transform: translateY(-1px); }

.package-card:nth-child(2) .btn-configure { padding: 20px 40px; font-size: 1.2rem; font-weight: 900; box-shadow: 0 12px 40px rgba(176,141,87,0.4); }
.package-card:nth-child(2) .btn-configure:hover { box-shadow: 0 16px 60px rgba(176,141,87,0.6); }

/* Underline configure — Inter */
.btn-configure-underline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 0 0 6px;
  background: none; border: none;
  border-bottom: 2px solid currentColor;
  color: #2C3E50;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-button);
  font-style: italic;
  cursor: pointer; transition: all 0.3s ease;
}

html[data-theme="dim"] .btn-configure-underline { color: #e8d4b0; }
.btn-configure-underline:hover { color: #B08D57; border-bottom-color: #B08D57; transform: translateY(-1px); }
html[data-theme="dim"] .btn-configure-underline:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* Edit config — Inter */
.btn-edit-config {
  width: 100%; padding: 10px 16px;
  background: rgba(176,141,87,0.1);
  border: 1.5px solid rgba(176,141,87,0.3);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-button);
  color: #B08D57; cursor: pointer; transition: all 0.2s;
}

.btn-edit-config:hover { background: rgba(176,141,87,0.15); border-color: #B08D57; }

/* ── Service highlighting ── */
.service-highlighted { background: rgba(176,141,87,0.12); border-left: 3px solid #B08D57; padding-left: 8px; margin-left: -8px; border-radius: 4px; }
html[data-theme="dim"] .service-highlighted { background: rgba(176,141,87,0.18); }
.service-highlighted .package-label { color: #B08D57; font-weight: var(--weight-button); }
html[data-theme="dim"] .service-highlighted .package-label { color: #d4b07a; }

/* ── Custom config filled ── */
.custom-config-filled { padding: 32px 40px; display: flex; flex-direction: column; align-items: center; width: 100%; }

/* Service count — Cormorant Garamond */
.custom-config-filled > p:first-child,
.custom-config-filled .service-count {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  font-style: normal;
  color: #B08D57; text-align: center;
  margin: 0 0 32px; padding-bottom: 16px;
  border-bottom: 2px solid rgba(176,141,87,0.2); width: 100%;
}

html[data-theme="dim"] .custom-config-filled > p:first-child,
html[data-theme="dim"] .custom-config-filled .service-count { color: #ffffff; border-bottom-color: rgba(176,141,87,0.25); }

/* Category headers — Inter */
.custom-config-filled h4 {
  font-family: var(--font-body);
  font-size: var(--text-label); font-weight: var(--weight-label);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #B08D57; margin: 24px 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(176,141,87,0.2);
  text-align: center; width: 100%;
}

html[data-theme="dim"] .custom-config-filled h4 { color: #e8d4b0; border-bottom-color: rgba(176,141,87,0.25); }

.custom-config-filled ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }

/* Config items — Inter */
.custom-config-filled li {
  font-family: var(--font-body);
  font-size: var(--text-small); font-weight: var(--weight-body);
  color: #1a2530; padding: 8px 16px;
  background: rgba(176,141,87,0.08); border-radius: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s ease; word-break: break-word; max-width: 100%;
}

.custom-config-filled li:hover { background: rgba(176,141,87,0.15); transform: translateX(4px); }
.custom-config-filled li::before { content: '✓'; color: #B08D57; font-weight: var(--weight-button); font-size: 0.9rem; flex-shrink: 0; }

html[data-theme="dim"] .custom-config-filled li { color: #ffffff; background: rgba(176,141,87,0.12); }
html[data-theme="dim"] .custom-config-filled li:hover { background: rgba(176,141,87,0.18); }
html[data-theme="dim"] .custom-config-filled li::before { color: #e8d4b0; }

/* Clear button — Inter */
.btn-clear-config {
  width: 100%; margin-top: 16px; padding: 10px 20px;
  background: transparent; border: 1.5px solid rgba(176,141,87,0.3);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--text-small); font-weight: var(--weight-button);
  color: rgba(176,141,87,0.7); cursor: pointer; transition: all 0.3s ease;
}

.btn-clear-config:hover { background: rgba(176,141,87,0.1); border-color: #B08D57; color: #B08D57; }
html[data-theme="dim"] .btn-clear-config { border-color: rgba(176,141,87,0.4); color: rgba(176,141,87,0.8); }
html[data-theme="dim"] .btn-clear-config:hover { background: rgba(176,141,87,0.15); border-color: #B08D57; color: #d4b07a; }

/* ── Quick contact form ── */
.package-contact-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(176,141,87,0.15); animation: slideDown 0.3s ease; }
html[data-theme="dim"] .package-contact-form { border-top-color: rgba(176,141,87,0.2); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.quick-contact-form { display: flex; flex-direction: column; gap: 12px; }
.quick-form-group   { display: flex; flex-direction: column; }

/* Quick form inputs — Inter */
.quick-form-input,
.quick-form-textarea {
  padding: 10px 12px;
  border: 1.5px solid rgba(176,141,87,0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--text-small); font-weight: var(--weight-body);
  background: rgba(255,255,255,0.5); color: #2C3E50;
  transition: all 0.3s ease; width: 100%; max-width: 100%;
}

html[data-theme="dim"] .quick-form-input,
html[data-theme="dim"] .quick-form-textarea { border-color: rgba(176,141,87,0.25); background: rgba(176,141,87,0.05); color: #f5f3f0; }

.quick-form-input:focus,
.quick-form-textarea:focus { outline: none; border-color: #B08D57; background: rgba(176,141,87,0.08); box-shadow: 0 0 0 3px rgba(176,141,87,0.1); }

.quick-form-input::placeholder,
.quick-form-textarea::placeholder { color: rgba(44,62,80,0.5); }

html[data-theme="dim"] .quick-form-input::placeholder,
html[data-theme="dim"] .quick-form-textarea::placeholder { color: rgba(176,141,87,0.5); }

.quick-form-textarea { resize: vertical; min-height: 60px; }

/* Quick submit — Inter */
.btn-quick-submit {
  width: 100%; padding: 12px 20px;
  background: linear-gradient(135deg, #B08D57, #d4b07a);
  color: white; border: none; border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--text-button); font-weight: var(--weight-button);
  cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(176,141,87,0.3);
}

.btn-quick-submit:hover { background: linear-gradient(135deg, #d4b07a, #B08D57); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(176,141,87,0.4); }
.btn-quick-submit:active { transform: translateY(0); }

.package-contact-form.success { text-align: center; padding: 20px; }
.package-contact-form.success::before { content: '✓'; display: block; font-size: 2.5rem; color: #B08D57; margin-bottom: 12px; }

/* Success inline — Inter */
.success-message-inline {
  font-family: var(--font-body);
  font-size: var(--text-small); font-weight: var(--weight-body);
  color: rgba(44,62,80,0.7); line-height: 1.5;
}

html[data-theme="dim"] .success-message-inline { color: rgba(245,242,237,0.7); }

/* Side card titles */
.package-card:nth-child(1) .package-header h3,
.package-card:nth-child(3) .package-header h3 { color: #B08D57; }
html[data-theme="dim"] .package-card:nth-child(1) .package-header h3,
html[data-theme="dim"] .package-card:nth-child(3) .package-header h3 { color: #e8d4b0; }

.package-card:nth-child(1) .package-subtitle,
.package-card:nth-child(3) .package-subtitle { color: rgba(176,141,87,0.8); }
html[data-theme="dim"] .package-card:nth-child(1) .package-subtitle,
html[data-theme="dim"] .package-card:nth-child(3) .package-subtitle { color: rgba(232,212,176,0.7); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .konfig-container { grid-template-columns: 1fr; max-width: 680px; gap: 40px; }
  .package-card:nth-child(1), .package-card:nth-child(3) { opacity: 1; }
  .package-card:nth-child(1) { order: 2; }
  .package-card:nth-child(2) { order: 1; }
  .package-card:nth-child(3) { order: 3; }
}

@media (max-width: 768px) {
  .konfig-hero { padding: 110px 16px 36px; }
  .konfig-trust { margin-bottom: 32px; }
  .konfig-packages { padding: 0 12px 40px; }
  .konfig-container { grid-template-columns: 1fr; max-width: 100%; width: 100%; gap: 20px; padding: 0; }

  .package-card:hover, .package-card:nth-child(2):hover { transform: none; }

  .package-header { padding: 18px 16px; }
  .package-card:nth-child(2) .package-header { padding: 28px 20px; }
  .package-body { padding: 14px 16px; }
  .package-card:nth-child(2) .package-body { min-height: 180px; padding: 20px 16px; }
  .package-footer { padding: 14px 16px; }
  .package-card:nth-child(2) .package-footer { padding: 16px; }
  .package-badge { font-size: 10px; padding: 5px 16px; top: -14px; }

  .custom-config-empty { padding: 28px 16px; }
  .custom-config-filled { padding: 16px; }

  .package-card:nth-child(2) .btn-configure { padding: 16px 24px; animation: pulse-bronze 2s ease-in-out infinite; }

  .package-row { flex-wrap: wrap; gap: 2px; }
  .package-value { text-align: left; flex-basis: 100%; font-size: 12px; }
}

@media (max-width: 480px) {
  .konfig-hero { padding: 90px 12px 28px; }
  .konfig-packages { padding: 0 8px 32px; }
  .konfig-container { gap: 14px; }
  .package-header { padding: 16px 14px; }
  .package-body { padding: 12px 14px; }
  .package-footer { padding: 12px 14px; }
  .package-card:nth-child(2) .package-header { padding: 24px 14px; }
  .package-card:nth-child(2) .package-body { padding: 16px 14px; }
  .package-card:nth-child(2) .package-footer { padding: 14px; }
  .btn-configure { padding: 12px 16px; }
  .package-card:nth-child(2) .btn-configure { padding: 14px 20px; }
  .package-badge { font-size: 10px; padding: 5px 12px; }
}

@keyframes pulse-bronze {
  0%, 100% { box-shadow: 0 16px 60px rgba(176,141,87,0.5); }
  50%       { box-shadow: 0 20px 80px rgba(176,141,87,0.7); }
}