/* ===== PK Office InfraSecureAudit Design ===== */
/* Farbschema und Hintergrund analog PkOfficeSparWizard (Orange #ff6c00 / Dunkelgrau) */
:root {
    --brand-orange: #ff6c00;
    --brand-orange-dark: #e65c00;
    --brand-orange-light: #ff8533;
    --dark-grey: #181818;
    --mid-grey: #404040;
    --light-grey: #f0f0f0;
    --dark-bg: #2e2f35;
    --darker-bg: #1e1e24;
    --white: #ffffff;
    --green: #4caf50;
    --green-light: #66bb6a;
    --ink: #181818;
    --muted: #6b6b6b;
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    /* Kein Seitenhintergrund: der Wizard ist zur Einbettung per <iframe> gedacht
       und soll sich in die Host-Seite einfuegen (wie der SparWizard). */
    background: transparent;
    color: var(--mid-grey);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wizard-container {
    width: 100%;
    max-width: 720px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* ===== Header ===== */
.wizard-header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 28px 40px 20px;
    text-align: center;
    position: relative;
}

.wizard-header .subtitle {
    color: var(--brand-orange);
    font-size: 0.95rem;
    font-weight: 600;
}

.wizard-header .logo {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}

.wizard-header .logo-img {
    max-height: 40px;
    width: auto;
}

/* ===== Score Banner (Live-Check-Wert) ===== */
.score-banner {
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
    color: var(--white);
    padding: 18px 40px;
    transition: all 0.5s ease;
}

.score-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
}

.score-banner .score-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.92);
}

.score-banner .score-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: color 0.3s ease;
}

.score-track {
    height: 14px;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 99px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: var(--white);
    transition: width 0.35s ease, background 0.35s ease;
}

/* ===== Progress Bar ===== */
.progress-wrapper {
    height: 6px;
    background: var(--light-grey);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px 0;
    background: var(--white);
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--brand-orange);
    transform: scale(1.3);
}

.progress-dot.done {
    background: var(--brand-orange);
}

/* ===== Wizard Body ===== */
.wizard-body {
    padding: 30px 40px 40px;
    min-height: 320px;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

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

.question-counter {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.question-text {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--ink);
    font-weight: 750;
    line-height: 1.35;
    margin-bottom: 28px;
}

/* ===== Ja/Nein Buttons ===== */
.answers.yes-no {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.answer-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    transition: transform 0.15s ease, filter 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.answer-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.98);
}

.answer-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.answer-btn.yes {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.answer-btn.no {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #f2b4b1;
}

.back-link {
    margin-top: 18px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    display: block;
}

.back-link:hover {
    color: var(--brand-orange);
}

/* ===== Ergebnis ===== */
.result-score-box {
    text-align: center;
    margin-bottom: 16px;
}

.result-score-box .score-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted);
}

.score-final {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 4px;
}

.result-title {
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.result-text {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.callout {
    margin: 0 0 20px;
    padding: 20px;
    border-left: 5px solid var(--brand-orange);
    border-radius: 10px;
    background: #fff5ee;
    color: var(--ink);
    line-height: 1.55;
}

.contact-title {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 16px;
    text-align: center;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mid-grey);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--mid-grey);
    transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.datenschutz-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    color: var(--mid-grey);
    margin-top: 8px;
    cursor: pointer;
}

.datenschutz-consent input[type="checkbox"] {
    width: auto !important;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.datenschutz-consent span {
    line-height: 1.5;
}

.datenschutz-consent a {
    color: var(--brand-orange-dark);
    text-decoration: underline;
    word-break: break-all;
}

/* ===== Navigation Buttons ===== */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(255, 108, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(255, 108, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--light-grey);
    color: var(--mid-grey);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ===== Disclaimer ===== */
.disclaimer {
    margin-top: 22px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #888888;
    text-align: center;
}

/* ===== Success ===== */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-message h2 {
    color: var(--dark-grey);
    margin-bottom: 12px;
}

.success-message p {
    color: var(--mid-grey);
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .wizard-header { padding: 20px 20px 16px; }
    .score-banner { padding: 14px 20px; }
    .score-banner .score-value { font-size: 1.7rem; }
    .wizard-body { padding: 20px 20px 30px; }
    .answers.yes-no { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .nav-buttons { flex-direction: column; }
    .btn { width: 100%; }
}
