/* ── JS Consulting — Global Styles & Brand Palette ─────── */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    /* Brand palette — gray + gold (js-smart-consulting.de style) */
    --js-primary:       #C5A443;   /* gold/yellow — CTAs, links, icons */
    --js-secondary:     #525252;   /* gray — structure, nav base */
    --js-tertiary:      #3a3a3a;   /* darker gray — gradient depth */

    /* Gray nav/hero with subtle depth; gold used for accents */
    --js-brand-gradient: linear-gradient(135deg, var(--js-secondary) 0%, var(--js-tertiary) 100%);

    --js-text:          #32373c;
    --js-text-muted:    #8a8a8a;
    --js-bg:            #ffffff;
    --js-bg-soft:       #f7f7f9;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--js-text);
    background-color: var(--js-bg);
}

a {
    color: var(--js-primary);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--js-secondary);
    text-decoration: underline;
}

/* ── Page wrapper (no sidebar) ─────────────────────── */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Footer ─────────────────────── */
.site-footer-wrapper {
    margin-top: auto;
}

/* ── Service pages ─────────────────────── */
.service-page {
    padding: 1rem 0 3rem;
}

.service-page__hero {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.service-page__hero-icon {
    font-size: 3rem;
    color: var(--js-primary);
    display: block;
    margin-bottom: 0.75rem;
}

.service-page__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--js-text);
}

.service-page__lead {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.service-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .service-page__grid {
        grid-template-columns: 1fr;
    }

    .service-page__title {
        font-size: 1.6rem;
    }
}

.service-section-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--js-primary);
    height: 100%;
}

.service-section-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.service-section-card__icon {
    color: var(--js-primary);
    font-size: 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1.6rem;
    flex-shrink: 0;
    overflow: hidden;
}

.service-section-card__title {
    font-size: 1.15rem;
    font-weight: 650;
    margin: 0;
    color: var(--js-text);
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.service-section-card__list {
    margin: 0;
    padding-left: 1.2rem;
    color: #555;
    line-height: 1.7;
}

.service-section-card__list li {
    margin-bottom: 0.35rem;
}

/* ── Legal pages (Impressum / Datenschutz) ── */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.legal-page__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.legal-page__note {
    color: #666;
    margin: 0 0 2rem;
}

.legal-page__section {
    margin-bottom: 1.75rem;
}

.legal-page__section h2 {
    font-size: 1.2rem;
    font-weight: 650;
    margin: 0 0 0.6rem;
    color: var(--js-primary);
}

.legal-page__section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    color: var(--js-text);
}

.legal-page__section p,
.legal-page__section li {
    color: #444;
    line-height: 1.7;
}

.legal-page__section ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0.75rem;
}

/* ── Not Found (404) ── */
.not-found-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px - 160px);
    padding: 2rem 1rem 3rem;
}

.not-found-page__card {
    text-align: center;
    max-width: 520px;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--js-primary);
}

.not-found-page__icon {
    font-size: 3rem;
    color: var(--js-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.not-found-page__code {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 0.5rem;
    color: var(--js-secondary);
    letter-spacing: 0.04em;
}

.not-found-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--js-text);
}

.not-found-page__lead {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

.not-found-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.not-found-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}

.not-found-page__btn .material-icons {
    font-size: 1.15rem;
}

.not-found-page__btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    opacity: 0.92;
}

.not-found-page__btn--primary {
    background: var(--js-primary);
    color: #1a1a1a;
}

.not-found-page__btn--primary:hover {
    color: #1a1a1a;
}

.not-found-page__btn--secondary {
    background: transparent;
    color: var(--js-secondary);
    border: 2px solid var(--js-secondary);
}

.not-found-page__btn--secondary:hover {
    color: var(--js-secondary);
    background: rgba(82, 82, 82, 0.06);
}

@media (max-width: 480px) {
    .not-found-page__code {
        font-size: 2.75rem;
    }

    .not-found-page__title {
        font-size: 1.45rem;
    }

    .not-found-page__actions {
        flex-direction: column;
    }

    .not-found-page__btn {
        justify-content: center;
        width: 100%;
    }
}
