/* ─── CI: Schwarz #000, Weiß #FFF, Orange #FFA600 ──────────────────────────── */

:root {
    --black: #000000;
    --white: #ffffff;
    --orange: #ffa600;
    --grey-50: #fafafa;
    --grey-100: #f4f4f4;
    --grey-200: #e6e6e6;
    --grey-400: #999999;
    --grey-600: #666666;
    --grey-800: #2a2a2a;
    --error: #d33028;
    --success: #4ca84a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--black);
    background: var(--grey-50);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
    background: var(--black);
    color: var(--white);
    padding: 64px 0 48px;
    margin-bottom: 32px;
}

.hero .container {
    text-align: center;
}

.brand {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.accent {
    color: var(--orange);
}

.subtitle {
    font-size: 18px;
    color: var(--grey-200);
    max-width: 580px;
    margin: 0 auto 28px;
}

.benefits {
    list-style: none;
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

.benefits li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    color: var(--grey-200);
}

.benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 30px;
    }
    .subtitle {
        font-size: 16px;
    }
}

/* ─── Form ─────────────────────────────────────────────────────────────────── */

#valuation-form {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    #valuation-form {
        padding: 20px;
    }
}

.progress-bar {
    height: 6px;
    background: var(--grey-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--orange);
    width: 16.67%;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 13px;
    color: var(--grey-600);
    margin-bottom: 24px;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hint {
    color: var(--grey-600);
    font-size: 15px;
    margin-bottom: 24px;
}

.hint-small {
    color: var(--grey-600);
    font-size: 13px;
    margin: -8px 0 16px;
    line-height: 1.4;
}

.sub-h {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 4px;
    color: var(--grey-800);
    border-left: 3px solid var(--orange);
    padding-left: 10px;
}

.info-box {
    background: #fff8eb;
    border: 1px solid #ffd980;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--grey-800);
}

.info-box strong {
    color: var(--black);
}

.info {
    display: block;
    font-size: 13px;
    color: var(--grey-600);
    line-height: 1.55;
    margin-top: 6px;
    font-weight: 400;
}

.info strong {
    color: var(--grey-800);
}

.info em {
    font-style: italic;
}

.lbl {
    /* Inherit from label > span */
}

label {
    display: block;
    margin-bottom: 18px;
}

label > span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--grey-800);
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.15s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
}

input.error,
select.error {
    border-color: var(--error);
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: var(--grey-200);
    border-radius: 3px;
    outline: none;
    margin: 12px 0 6px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--orange);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--orange);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--white);
}

.range-meta {
    display: block;
    font-size: 12px;
    color: var(--grey-400);
    font-weight: 400;
    margin-top: 2px;
}

.row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .row-3 {
        grid-template-columns: 1fr;
    }
}

label.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--grey-50);
    padding: 14px;
    border-radius: 8px;
    margin-top: 8px;
}

label.checkbox input {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
    transform: scale(1.2);
    accent-color: var(--orange);
}

label.checkbox span {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: var(--grey-800);
    margin-bottom: 0;
}

label.checkbox a {
    color: var(--black);
    text-decoration: underline;
}

.disclaimer-small {
    margin-top: 16px;
    padding: 12px;
    background: var(--grey-50);
    border-left: 3px solid var(--orange);
    font-size: 12px;
    color: var(--grey-600);
    line-height: 1.5;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--grey-200);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--black);
    color: var(--orange);
}

.btn-primary:hover:not(:disabled) {
    background: var(--grey-800);
}

.btn-secondary {
    background: var(--grey-100);
    color: var(--grey-800);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--grey-200);
}

#btn-back[disabled] {
    visibility: hidden;
}

/* ─── Success / Error ──────────────────────────────────────────────────────── */

.success-state,
.error-state {
    display: none;
    background: var(--white);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.success-state.active,
.error-state.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.success-state h2,
.error-state h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.success-state p,
.error-state p {
    color: var(--grey-600);
    margin-bottom: 12px;
}

#error-msg {
    color: var(--error);
    font-weight: 600;
    margin: 16px 0;
}

/* ─── Legal-Seiten (Datenschutz / Impressum) ───────────────────────────────── */

.legal {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 32px 0;
}

@media (max-width: 600px) {
    .legal {
        padding: 24px;
    }
}

.legal h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
}

.legal .legal-date {
    font-size: 13px;
    color: var(--grey-400);
    margin-bottom: 28px;
}

.legal h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 28px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--orange);
}

.legal h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 6px;
    color: var(--grey-800);
}

.legal p,
.legal li {
    font-size: 14px;
    color: var(--grey-800);
    margin-bottom: 10px;
}

.legal ul {
    padding-left: 22px;
    margin-bottom: 10px;
}

.legal a {
    color: var(--black);
    text-decoration: underline;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 13px;
}

.legal th,
.legal td {
    text-align: left;
    padding: 8px 10px;
    border: 1px solid var(--grey-200);
    vertical-align: top;
}

.legal th {
    background: var(--grey-100);
    font-weight: 700;
}

.legal .back-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 32px 20px;
    font-size: 13px;
    color: var(--grey-600);
}

footer a {
    color: var(--grey-800);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
