/* === SawStop Konfigurator — Ballas Look & Feel === */

:root {
    --primary: #2a5298;
    --primary-dark: #1a3a6e;
    --secondary: #3c3c3c;
    --accent: #e67e22;
    --success: #27ae60;
    --bg: #f5f5f7;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #dddddd;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 40px; }
.header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
}
.header-nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
}
.header-nav a:hover { color: var(--primary); }

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 48px 24px;
    text-align: center;
}
.hero-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}
.hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.hero-sub { font-size: 15px; opacity: 0.85; max-width: 500px; margin: 0 auto; }

/* --- Product Grid (Landing) --- */
.product-grid {
    max-width: 960px;
    margin: 32px auto;
    padding: 0 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.product-card {
    flex: 1;
    min-width: 260px;
    max-width: 300px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.product-card.featured { border-color: var(--primary); }
.product-card .badge-featured {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--accent);
    color: var(--white);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    padding: 4px;
}
.product-card .card-img {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
}
.product-card .card-img img { max-width: 180px; max-height: 130px; }
.product-card .card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card .card-body h3 { font-size: 17px; margin-bottom: 6px; }
.product-card .card-body .desc { font-size: 13px; color: var(--text-light); margin-bottom: 12px; flex: 1; }
.product-card .card-price { font-size: 22px; font-weight: 700; color: var(--primary); }
.product-card .card-price-hint { font-size: 11px; color: var(--text-muted); }
.product-card .promo-banner {
    background: #fff8e1;
    border-radius: 6px;
    padding: 6px 8px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--accent);
    text-align: center;
}

/* --- Trust Bar --- */
.trust-bar {
    background: #f8f9fa;
    padding: 20px 24px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}
.trust-item {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}
.trust-icon { font-size: 20px; display: block; margin-bottom: 4px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: var(--white); border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--white); border: 1px solid var(--border); color: var(--text-light); }
.btn-skip { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- Wizard --- */
.wizard { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Progress bar */
.wizard-progress {
    background: #f8f9fa;
    padding: 16px 24px;
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 4px;
}
.progress-step.clickable {
    cursor: pointer;
}
.progress-step.clickable:hover .step-circle {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.progress-step.clickable:hover .step-label {
    color: var(--primary);
}
.step-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
}
.step-circle.done { background: var(--success); color: var(--white); }
.step-circle.active { background: var(--primary); color: var(--white); }
.step-circle.pending { background: var(--border); color: var(--text-muted); }
.step-label { font-size: 10px; max-width: 60px; text-align: center; }
.step-label.active { color: var(--primary); font-weight: 600; }
.step-label.done { color: var(--success); }
.step-label.pending { color: var(--text-muted); }
.step-connector { width: 20px; height: 2px; }
.step-connector.done { background: var(--success); }
.step-connector.active { background: var(--primary); }
.step-connector.pending { background: var(--border); }

/* Mobile progress */
.progress-mobile {
    display: none;
    padding: 12px 0;
}
.progress-mobile-label { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.progress-mobile-bar { background: #eee; height: 4px; border-radius: 2px; }
.progress-mobile-fill { background: var(--primary); height: 4px; border-radius: 2px; transition: width 0.3s; }

/* Wizard content */
.wizard-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    padding: 32px 24px;
}
.wizard-content h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 4px;
}
.wizard-content .step-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Option cards */
.option-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.option-card {
    flex: 1;
    min-width: 180px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.option-card:hover { border-color: var(--primary); }
.option-card.selected {
    border-color: var(--primary);
    background: #f0f4ff;
}
.option-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.option-card .radio-dot {
    position: absolute;
    top: 12px; right: 12px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
}
.option-card.selected .radio-dot {
    border-color: var(--primary);
}
.option-card.selected .radio-dot::after {
    content: '';
    display: block;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
    margin: 2px;
}
.option-card .card-img {
    width: 100%;
    height: 80px;
    background: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.option-card .card-img img { width: 100%; height: 100%; object-fit: contain; }
.option-card .opt-name { font-weight: 700; font-size: 15px; }
.option-card .opt-desc { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.option-card .opt-price { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--primary); }
.option-card .opt-price.standard { color: var(--success); }
.option-card .opt-price.gratis {
    color: var(--success);
    font-weight: 700;
}
.option-card .opt-price .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 6px;
}
.badge-recommended {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.badge-gratis {
    background: var(--success);
    color: var(--white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.rule-warning {
    background: #fff3e0;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--accent);
}

/* Wizard footer (sticky) */
.wizard-footer {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-top: 2px solid #eee;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-price { text-align: right; }
.footer-price .label { font-size: 12px; color: var(--text-light); }
.footer-price .brutto { font-size: 20px; font-weight: 700; color: var(--primary); }
.footer-price .netto { font-size: 12px; color: var(--text-muted); }

/* --- Summary --- */
.summary { max-width: 700px; margin: 32px auto; padding: 0 24px; }
.summary-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.summary-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    padding: 24px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.summary-table .col-group { color: var(--text-light); width: 120px; }
.summary-table .col-name { font-weight: 600; }
.summary-table .col-price { text-align: right; white-space: nowrap; }
.summary-table .col-edit { text-align: right; width: 30px; }
.summary-table .edit-btn {
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    background: none;
    border: none;
}
.totals { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--primary); }
.totals .row { display: flex; justify-content: space-between; font-size: 14px; }
.totals .row.total { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.totals .row.muted { color: var(--text-light); }

/* Contact form */
.contact-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eee; }
.contact-form h3 { color: var(--primary); font-size: 16px; margin-bottom: 12px; }
.form-row { display: flex; gap: 8px; margin-bottom: 8px; }
.form-row input, .form-row textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.form-row textarea { height: 60px; resize: none; }
.form-actions { display: flex; gap: 12px; margin-top: 16px; }
.form-actions .btn { flex: 1; text-align: center; }
.form-hint { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* --- Confirmation --- */
.confirmation { max-width: 500px; margin: 80px auto; padding: 0 24px; text-align: center; }
.confirmation-inner {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.confirmation-icon { font-size: 48px; margin-bottom: 16px; }
.confirmation h2 { color: var(--primary); margin-bottom: 8px; }
.confirmation p { color: var(--text-light); margin-bottom: 24px; }

/* --- Footer --- */
.site-footer {
    background: var(--secondary);
    color: #ccc;
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    margin-top: 48px;
}
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    .product-grid { flex-direction: column; align-items: center; }
    .product-card { max-width: 100%; }
    .option-cards { flex-direction: column; }
    .option-card { min-width: unset; }
    .progress-steps { display: none; }
    .progress-mobile { display: block; }
    .wizard-footer { flex-wrap: wrap; gap: 12px; }
    .footer-price { order: -1; width: 100%; text-align: center; }
    .form-row { flex-direction: column; }
    .form-actions { flex-direction: column; }
}
