/* Rechtsform-O-Mat – main stylesheet */

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

body {
    font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-header a.logo-link img {
    height: 48px;
    width: auto;
}

.site-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1a2e;
    flex: 1;
    text-align: center;
}

/* ── Main content ────────────────────────────────────────────── */
main {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 32px 24px;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-logo img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 8px;
}

.footer-section p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #aaa;
}

.footer-section a {
    color: #aaa;
    text-decoration: underline;
    font-size: 0.82rem;
    line-height: 1.8;
}

.footer-section a:hover { color: #fff; }

/* ── Home page ───────────────────────────────────────────────── */
.key-logo {
    display: block;
    max-width: 300px;
    margin: 0 auto 32px;
}

.intro-text {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 32px;
}

.intro-text p { margin-bottom: 16px; }

.disclaimer-box {
    background: #f7f7f7;
    border-left: 4px solid #c8a86b;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: justify;
    color: #555;
}

/* ── Start button ────────────────────────────────────────────── */
.btn-start {
    display: inline-block;
    position: relative;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 40px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 8px 0 32px;
    transition: background 0.2s;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 16px 100%);
}

.btn-start:hover { background: #2e2e5e; }

/* ── Quiz page ───────────────────────────────────────────────── */
.quiz-wrapper {
    position: relative;
}

.question-panel {
    display: none;
}

.question-panel.active {
    display: block;
}

.question-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.5;
    color: #1a1a2e;
}

.question-number {
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
    display: block;
    margin-bottom: 6px;
}

.question-description {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: justify;
    border-left: 3px solid #e5e5e5;
    padding-left: 14px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 0.92rem;
}

.radio-option:hover { border-color: #c8a86b; }

.radio-option.selected {
    border-color: #1a1a2e;
    background: #f0f0f8;
}

.radio-option input[type="radio"] { display: none; }

.radio-option .option-number {
    font-weight: 700;
    color: #1a1a2e;
    min-width: 20px;
}

.double-weight {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.double-weight input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a1a2e;
}

.button-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

.nav-btn:hover { background: #2e2e5e; }

.nav-btn.skip {
    background: #888;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

.nav-btn.skip:hover { background: #666; }

.nav-btn .arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #fff;
}

/* ── Progress indicator ──────────────────────────────────────── */
.progress-bar-wrap {
    margin-top: 32px;
}

.progress-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.progress-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: background 0.15s, border-color 0.15s;
}

.progress-dot.answered { background: #c8a86b; border-color: #c8a86b; color: #fff; }
.progress-dot.current  { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }

/* ── Result page ─────────────────────────────────────────────── */
#chart-container {
    margin-bottom: 16px;
}

.result-text {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 28px;
}

.result-text a { color: #1a1a2e; }

.email-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.email-input-wrap {
    margin-bottom: 20px;
}

.email-input-wrap label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.email-input-wrap input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.email-input-wrap input[type="email"]:focus {
    outline: none;
    border-color: #1a1a2e;
}

.privacy-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-bottom: 24px;
}

.privacy-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #1a1a2e;
}

.action-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 48px;
}

.btn-primary {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) { background: #2e2e5e; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background: #888;
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

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

/* ── Q&A summary ─────────────────────────────────────────────── */
.qa-summary { margin-top: 40px; }
.qa-summary h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.qa-item {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.qa-item .q-num { color: #888; font-weight: 700; }
.qa-item .q-text { color: #333; }
.qa-item .q-answer { color: #1a1a2e; font-weight: 600; white-space: nowrap; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .site-header h1 { font-size: 1.1rem; }
    main { padding: 24px 16px 40px; }
    .footer-inner { flex-direction: column; }
    .action-row { flex-direction: column; }
    .qa-item { grid-template-columns: 24px 1fr; }
    .qa-item .q-answer { grid-column: 2; }
}
