/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }

/* === NAV === */
.nav {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}
.nav-logo-icon { color: #2563eb; font-size: 1.5rem; }
.nav-logo-text { font-weight: 800; font-size: 1.25rem; color: #0f172a; letter-spacing: -0.02em; }
.nav-logo-text span { color: #2563eb; }
.nav-links {
    display: none;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: #2563eb; }
.badge-green {
    background: #dcfce7;
    color: #15803d;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
}

/* === LAYOUT === */
.page-main {
    flex-grow: 1;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .page-main { flex-direction: row; }
}

.col-main { width: 100%; }
.col-sidebar { width: 100%; display: flex; flex-direction: column; gap: 1.5rem; }

@media (min-width: 1024px) {
    .col-main { width: 66.666%; }
    .col-sidebar { width: 33.333%; }
}

/* === QUIZ CARD === */
.quiz-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}
.quiz-card-body {
    padding: 2rem 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === PROGRESS === */
.progress-container { background: #f1f5f9; height: 8px; width: 100%; }
.progress-bar { background: #2563eb; height: 8px; transition: width 0.5s ease; width: 0; }

/* === STEPS === */
.step { text-align: center; }
.step-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-bottom: 0.5rem;
}
.step h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.step h2.small-mb { margin-bottom: 1rem; }
.step-hint { font-size: 0.875rem; color: #64748b; margin-bottom: 1.5rem; }

/* Welcome step */
.welcome-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.welcome-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
@media (min-width: 768px) { .welcome-title { font-size: 2.25rem; } }
.welcome-desc {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}
.btn-primary {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    display: inline-block;
    border: none;
}
.btn-primary:hover { background: #1d4ed8; transform: scale(1.03); }

/* === OPTION GRIDS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-1 { display: flex; flex-direction: column; gap: 0.75rem; }

.quiz-btn {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
}
.quiz-btn:hover { border-color: #2563eb; background: #eff6ff; }
.quiz-btn:hover .btn-icon { color: #2563eb; }
.quiz-btn.danger:hover { border-color: #ef4444; background: #fef2f2; }
.quiz-btn.success:hover { border-color: #22c55e; background: #f0fdf4; }

.btn-icon { font-size: 1.75rem; color: #94a3b8; display: block; margin-bottom: 0.25rem; }
.btn-icon-red { color: #f87171 !important; }
.btn-icon-green { color: #4ade80 !important; }

.quiz-btn-row {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
.quiz-btn-row:hover { border-color: #2563eb; background: #eff6ff; }
.quiz-btn-row .btn-row-icon { color: #94a3b8; width: 1.5rem; text-align: center; }

.quiz-btn-text {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
}
.quiz-btn-text:hover { border-color: #2563eb; background: #eff6ff; }

.quiz-btn-row-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}
.quiz-btn-row-text .icon-box {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 9999px;
    flex-shrink: 0;
    color: #475569;
    font-size: 1.1rem;
}
.quiz-btn-row-text .label { font-weight: 700; font-size: 1.1rem; }
.quiz-btn-row-text .sublabel { font-size: 0.75rem; color: #64748b; }

.back-btn {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    transition: color 0.2s;
}
.back-btn:hover { color: #1e293b; }

/* === LOADING === */
.loading-screen { text-align: center; padding: 3rem 0; }
.loader {
    border: 4px solid #f1f5f9;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; }
.loading-text { font-size: 0.875rem; color: #64748b; }

/* === RESULTS === */
.results-title { font-size: 1.875rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; text-align: center; }
.savings-box {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.savings-label { font-size: 0.75rem; font-weight: 700; color: #2563eb; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.savings-amount { font-size: 3rem; font-weight: 800; color: #0f172a; }
.savings-amount span { color: #2563eb; }
.savings-unit { font-size: 1.1rem; color: #64748b; font-weight: 400; }
.savings-sub { font-size: 0.875rem; color: #475569; margin-top: 0.5rem; }

.risk-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.risk-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-align: left;
}
.risk-item.info { background: #f1f5f9; border: 1px solid #e2e8f0; }
.risk-item.info .risk-icon { color: #64748b; }
.risk-item.success { background: #f0fdf4; border: 1px solid #bbf7d0; }
.risk-item.success .risk-icon { color: #22c55e; }
.risk-item.danger { background: #fef2f2; border: 1px solid #fee2e2; }
.risk-item.danger .risk-icon { color: #ef4444; }
.risk-item.warning { background: #fefce8; border: 1px solid #fef9c3; }
.risk-item.warning .risk-icon { color: #ca8a04; }
.risk-item.orange { background: #fff7ed; border: 1px solid #ffedd5; }
.risk-item.orange .risk-icon { color: #f97316; }
.risk-icon { margin-top: 0.25rem; flex-shrink: 0; }
.risk-title { font-weight: 700; color: #1e293b; font-size: 0.9375rem; }
.risk-desc { font-size: 0.875rem; color: #475569; margin-top: 0.125rem; }

.cta-dark {
    background: #0f172a;
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}
.cta-dark h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-dark p { color: #cbd5e1; font-size: 0.875rem; margin-bottom: 1.5rem; }
.cta-dark strong { color: #fff; }
.btn-cta-calendly {
    display: block;
    width: 100%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    transition: background 0.2s;
    text-align: center;
}
.btn-cta-calendly:hover { background: #3b82f6; }
.cta-note { font-size: 0.75rem; color: #94a3b8; margin-top: 0.75rem; }

/* === SIDEBAR === */
.card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}
.profile-card { display: flex; align-items: center; gap: 1rem; }
.profile-avatar {
    width: 4rem;
    height: 4rem;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
    font-size: 1.5rem;
    overflow: hidden;
}
.profile-name { font-weight: 700; font-size: 1.1rem; }
.profile-role { font-size: 0.875rem; color: #64748b; margin-top: 0.25rem; line-height: 1.4; }

.card-dark {
    background: #1e293b;
    color: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.card-dark h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-dark p { font-size: 0.875rem; color: #cbd5e1; margin-bottom: 1.25rem; }
.dark-link-list { display: flex; flex-direction: column; gap: 0.75rem; }
.dark-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
    text-decoration: none;
    color: #fff;
}
.dark-link:hover { background: rgba(255,255,255,0.2); }
.dark-link-inner { display: flex; align-items: center; gap: 0.75rem; }
.dark-link-icon { color: #93c5fd; width: 1.25rem; text-align: center; }
.dark-link span { font-size: 0.875rem; font-weight: 500; }
.dark-link-arrow { font-size: 0.75rem; opacity: 0.5; }

.compare-links { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.compare-link-std {
    display: block;
    text-align: center;
    border: 2px dashed #cbd5e1;
    color: #475569;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.compare-link-std:hover { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.compare-link-eco {
    display: block;
    text-align: center;
    border: 2px dashed #86efac;
    color: #475569;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.compare-link-eco:hover { border-color: #22c55e; background: #f0fdf4; color: #15803d; }

/* === FOOTER === */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    margin-top: auto;
}
.footer-inner { max-width: 64rem; margin: 0 auto; }
.footer-tagline { margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; }
.footer-links a, .footer-links button {
    color: #94a3b8;
    transition: color 0.2s;
    font-size: 0.875rem;
    font-family: inherit;
}
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-disclaimer { margin-top: 1rem; font-size: 0.75rem; opacity: 0.4; max-width: 40rem; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* === MODALS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 1rem;
    max-width: 40rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-box.narrow { max-width: 24rem; }
.modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.modal-header h2 { font-weight: 700; font-size: 1.25rem; }
.modal-close {
    color: #64748b;
    font-size: 1.5rem;
    padding: 0 0.5rem;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover { color: #1e293b; }
.modal-body { padding: 1.5rem; font-size: 0.875rem; color: #334155; }
.modal-body p { margin-bottom: 1rem; }
.modal-body h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.modal-body hr { border: none; border-top: 1px solid #e2e8f0; margin: 1rem 0; }
.modal-body strong { font-weight: 700; }

.modal-contact-body { padding: 1.5rem; padding-top: 0; text-align: center; }
.modal-contact-icon { color: #22c55e; font-size: 3rem; margin-bottom: 1rem; }
.modal-contact-body h2 { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.modal-contact-body p { font-size: 0.875rem; color: #475569; margin-bottom: 1.5rem; }
.modal-close-row { display: flex; justify-content: flex-end; padding: 0.5rem; }
.btn-whatsapp {
    display: block;
    width: 100%;
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
    text-align: center;
}
.btn-whatsapp:hover { background: #16a34a; }

/* === ANIMATIONS === */
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
.slide-up { animation: slideUp 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hidden-step { display: none !important; }

/* === LEAD CAPTURE === */
.savings-preview {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #1e293b;
}
.savings-preview strong { color: #2563eb; font-size: 1.25rem; }

.lead-form { display: flex; flex-direction: column; gap: 0.75rem; }
.lead-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    transition: border-color 0.2s;
    outline: none;
}
.lead-input:focus { border-color: #2563eb; }
.lead-input::placeholder { color: #94a3b8; }
.lead-error { color: #ef4444; font-size: 0.875rem; margin-top: -0.25rem; }

/* === BOOKING WIDGET === */
#booking-widget { margin-top: 1.5rem; }

.bw-inner { display: flex; flex-direction: column; }
.bw-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 0.6rem; }

.bw-dates {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
.bw-date-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bw-date-btn:hover { border-color: #2563eb; color: #2563eb; }
.bw-date-btn.active { border-color: #2563eb; background: #2563eb; color: #fff; }

.bw-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.bw-time-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    transition: border-color 0.15s, background 0.15s;
}
.bw-time-btn:hover { border-color: #2563eb; background: #eff6ff; }

.bw-empty { font-size: 0.875rem; color: #94a3b8; }

.bw-back {
    align-self: flex-start;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    transition: color 0.15s;
}
.bw-back:hover { color: #1e293b; }

.bw-slot-preview {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.bw-loading { text-align: center; padding: 2rem 0; }
.bw-loading p { color: #64748b; margin-top: 0.75rem; font-size: 0.9rem; }

.bw-success { text-align: center; padding: 1.5rem 0; }
.bw-success-icon { font-size: 3rem; color: #22c55e; margin-bottom: 1rem; }
.bw-success h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.bw-success p { color: #475569; font-size: 0.9375rem; }
.bw-success-note { font-size: 0.8125rem; color: #94a3b8; margin-top: 0.5rem; }

.bw-error-box { text-align: center; padding: 1.5rem 0; }
.bw-error-box i { font-size: 2rem; color: #f97316; margin-bottom: 0.75rem; display: block; }
.bw-error-box p { color: #475569; margin-bottom: 1rem; font-size: 0.9rem; }

/* === TECHNIK-SEITE === */
.tk-hero { text-align: center; margin-bottom: 2rem; }
.tk-hero-desc { color: #64748b; font-size: 1.05rem; max-width: 36rem; margin: 0 auto; }

.tk-grid { display: flex; flex-direction: column; gap: 1.25rem; }

.tk-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tk-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.tk-card-body { flex: 1; }
.tk-card-body h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: #0f172a; }
.tk-card-body p { font-size: 0.875rem; color: #475569; line-height: 1.6; margin-bottom: 1rem; }

.tk-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tk-link-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    transition: background 0.15s;
}
.tk-link-primary:hover { background: #1d4ed8; }
.tk-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    transition: background 0.15s, color 0.15s;
}
.tk-link-secondary:hover { background: #e2e8f0; color: #1e293b; }
.tk-link-eco { background: #f0fdf4; color: #16a34a; border: 1.5px solid #bbf7d0; }
.tk-link-eco:hover { background: #dcfce7; color: #15803d; }

/* === SUBPAGES === */
.subpage-main {
    flex-grow: 1;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}
.subpage-main--widget {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.subpage-main--widget .subpage-title,
.subpage-main--widget .powered-by {
    padding-left: 1rem;
    padding-right: 1rem;
}
.subpage-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
    padding: 0 1rem;
    text-align: center;
    line-height: 1.2;
}
.powered-by {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.widget-fullwidth {
    width: 100%;
}
.subpage-desc { text-align: center; color: #475569; }
.widget-wrapper { width: 100%; margin-top: 1.5rem; }
