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

:root {
    --orange: #FF6B2C;
    --orange-hover: #E85A1E;
    --orange-light: #FFF0E8;
    --dark: #1A1A2E;
    --gray-900: #2D2D3F;
    --gray-600: #6B6B80;
    --gray-300: #C4C4D4;
    --gray-100: #F4F4F8;
    --white: #FFFFFF;
    --green: #22C55E;
    --green-light: #DCFCE7;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --yellow: #F59E0B;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ─── NAV ──────────────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}
.logo span { color: var(--orange); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-tag {
    font-size: 0.8rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 500;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--orange);
    padding: 8px 20px;
    border-radius: 100px;
    transition: background 0.2s;
}
.nav-link:hover { background: var(--orange-hover); }

/* ─── HERO ─────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--orange-light) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-light);
    color: var(--orange);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero h1 .highlight {
    color: var(--orange);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
}
.btn-secondary:hover { background: var(--gray-300); }

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ─── TRUST BAR ────────────────────────────────────────────── */

.trust-bar {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.trust-text {
    font-size: 0.85rem;
    color: var(--gray-600);
}
.trust-text strong {
    display: block;
    color: var(--dark);
    font-size: 0.95rem;
}

/* ─── CATEGORIES SECTION ───────────────────────────────────── */

.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
}
.category-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.category-count {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ─── HOW IT WORKS ─────────────────────────────────────────── */

.how-it-works {
    background: var(--gray-100);
    padding: 80px 40px;
}

.how-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ─── HANDWERKER LISTING PAGE ──────────────────────────────── */

.listing-page {
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.listing-header h1 {
    font-size: 2rem;
}

.listing-header .result-count {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-top: 4px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.filter-chip:hover, .filter-chip.active {
    border-color: var(--orange);
    background: var(--orange-light);
    color: var(--orange);
}

.sort-select {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B6B80' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.handwerker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.hw-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.hw-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hw-card-top {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hw-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
    flex-shrink: 0;
}

.hw-info {
    flex: 1;
}

.hw-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.hw-category {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.hw-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.hw-stars {
    color: var(--yellow);
    font-size: 0.9rem;
}

.hw-rating-num {
    font-weight: 600;
    font-size: 0.9rem;
}

.hw-reviews {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.hw-bio {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.hw-tag {
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 500;
}

.hw-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.hw-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}
.hw-price .unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-600);
}

.hw-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ─── BOOKING PAGE ─────────────────────────────────────────── */

.booking-page {
    padding: 120px 40px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.booking-hw-header {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--gray-100);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.booking-hw-header .hw-avatar {
    width: 72px;
    height: 72px;
    font-size: 2rem;
}

.booking-hw-info h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.booking-hw-meta {
    display: flex;
    gap: 16px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group .required {
    color: var(--red);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.booking-summary {
    background: var(--orange-light);
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-summary .price-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.booking-summary .price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

/* ─── CONFIRMATION PAGE ────────────────────────────────────── */

.confirmation-page {
    padding: 120px 40px 80px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.confirmation-page h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.confirmation-page .subtitle {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.confirmation-details {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
    margin-bottom: 32px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-300);
}
.confirmation-row:last-child { border-bottom: none; }

.confirmation-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.confirmation-value {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ─── ERROR / LOADING ──────────────────────────────────────── */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    flex-direction: column;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-100);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-msg {
    background: var(--red-light);
    color: var(--red);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.success-msg {
    background: var(--green-light);
    color: var(--green);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ─── EMPTY STATE ──────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

/* ─── BACK LINK ────────────────────────────────────────────── */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.back-link:hover { color: var(--orange); }

/* ─── FOOTER ───────────────────────────────────────────────── */

#main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 40px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer-brand p {
    color: var(--gray-300);
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-brand .logo span { color: var(--orange); }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--gray-300);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-note {
    color: var(--gray-600);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 768px) {
    nav {
        padding: 14px 20px;
    }

    .nav-link { display: none; }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 { font-size: 2.2rem; }

    .trust-bar {
        gap: 20px;
    }

    .section {
        padding: 60px 20px;
    }

    .listing-page {
        padding: 100px 20px 60px;
    }

    .handwerker-grid {
        grid-template-columns: 1fr;
    }

    .booking-page {
        padding: 100px 20px 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .booking-hw-header {
        flex-direction: column;
        text-align: center;
    }

    .booking-hw-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }

    .hero .subtitle { font-size: 1rem; }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .filter-chip {
        flex-shrink: 0;
    }
}
