/* ─── StartDeineKarriere.com ─── */
/* Clean, professional German job board aesthetic. No frameworks. */

:root {
    --c-primary: #1e3a5f;
    --c-primary-light: #2563eb;
    --c-primary-hover: #1d4ed8;
    --c-accent: #f59e0b;
    --c-accent-hover: #d97706;
    --c-bg: #f8fafc;
    --c-surface: #ffffff;
    --c-text: #1e293b;
    --c-text-muted: #64748b;
    --c-text-light: #94a3b8;
    --c-border: #e2e8f0;
    --c-border-light: #f1f5f9;
    --c-success: #16a34a;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-w: 1140px;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.03);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--c-primary-light); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-hover); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ─── Container ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ─── Header ─── */
.header {
    background: var(--c-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}
.header__logo:hover { color: #fff; }
.header__logo-icon {
    background: var(--c-accent);
    color: var(--c-primary);
    font-weight: 800;
    font-size: .7rem;
    padding: .2rem .4rem;
    border-radius: var(--radius-sm);
    letter-spacing: .05em;
}
.header__logo-text { font-weight: 300; }
.header__logo-text strong { font-weight: 700; }
.header__nav { display: flex; gap: 1.5rem; }
.header__nav a {
    color: rgba(255,255,255,.8);
    font-size: .875rem;
    font-weight: 500;
    transition: color .15s;
}
.header__nav a:hover { color: #fff; }

/* Mobile menu toggle */
.header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    flex-direction: column;
    gap: 4px;
}
.header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

@media (max-width: 768px) {
    .header__toggle { display: flex; }
    .header__nav {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--c-primary);
        flex-direction: column;
        padding: 1rem 1.25rem;
        gap: .75rem;
        border-top: 1px solid rgba(255,255,255,.1);
        box-shadow: var(--shadow-md);
    }
    .header__nav.is-open { display: flex; }
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(135deg, var(--c-primary) 0%, #1a4a7a 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
.hero__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}
.hero__subtitle {
    font-size: 1.05rem;
    opacity: .85;
    font-weight: 400;
}

/* ─── Main ─── */
.main { flex: 1; padding-bottom: 3rem; }

/* ─── Home Grid ─── */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .home-grid { grid-template-columns: 1fr; }
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}

/* ─── Job Cards ─── */
.job-list { display: flex; flex-direction: column; gap: .5rem; }

.job-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: box-shadow .15s, border-color .15s;
}
.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary-light);
}
.job-card__link {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    color: var(--c-text);
    gap: 1rem;
}
.job-card__link:hover { color: var(--c-text); }
.job-card__body { flex: 1; min-width: 0; }
.job-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: .25rem;
    color: var(--c-primary);
}
.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .125rem .75rem;
    font-size: .8125rem;
    color: var(--c-text-muted);
}
.job-card__company::before { content: ""; }
.job-card__location::before { content: "📍 "; font-size: .75rem; }
.job-card__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .375rem;
    flex-shrink: 0;
}
.job-card__badge {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--c-border-light);
    color: var(--c-text-muted);
    padding: .2rem .5rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.job-card__date {
    font-size: .75rem;
    color: var(--c-text-light);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .job-card__link { flex-direction: column; gap: .5rem; }
    .job-card__aside { flex-direction: row; align-items: center; }
}

/* ─── Sidebar ─── */
.sidebar-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-block__title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--c-border-light);
}
.sidebar-list li { border-bottom: 1px solid var(--c-border-light); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    font-size: .875rem;
    color: var(--c-text);
}
.sidebar-list a:hover { color: var(--c-primary-light); }
.sidebar-list__count {
    font-size: .75rem;
    color: var(--c-text-light);
    background: var(--c-border-light);
    padding: .1rem .4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.sidebar-block__more {
    display: block;
    margin-top: .75rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--c-primary-light);
}

/* ─── Job Detail ─── */
.job-detail { margin-top: 2rem; }
.job-detail__header {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.job-detail__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}
.job-detail__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem 1.5rem;
    margin-bottom: 1.5rem;
}
.job-detail__meta-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-light);
    margin-bottom: .125rem;
}
.job-detail__meta-value {
    font-size: .9375rem;
    color: var(--c-text);
}
.job-detail__meta-value a { color: var(--c-primary-light); }
.job-detail__meta-value a:hover { text-decoration: underline; }

.job-detail__description {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.job-detail__description h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--c-border-light);
}

.job-detail__footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Prose (job descriptions) ─── */
.prose { font-size: .9375rem; line-height: 1.7; color: var(--c-text); }
.prose p { margin-bottom: 1rem; }
.prose h3, .prose h4, .prose h5 { margin: 1.5rem 0 .5rem; font-weight: 600; color: var(--c-primary); }
.prose h3 { font-size: 1.1rem; }
.prose h4 { font-size: 1rem; }
.prose ul, .prose ol { margin: .5rem 0 1rem 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .25rem; }
.prose b, .prose strong { font-weight: 600; }
.prose a { color: var(--c-primary-light); text-decoration: underline; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .625rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}
.btn--primary {
    background: var(--c-accent);
    color: var(--c-primary);
    border-color: var(--c-accent);
}
.btn--primary:hover {
    background: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    color: var(--c-primary);
}
.btn--lg { padding: .75rem 2rem; font-size: 1rem; }
.btn--ghost {
    background: transparent;
    color: var(--c-text-muted);
    border-color: var(--c-border);
}
.btn--ghost:hover {
    border-color: var(--c-text-muted);
    color: var(--c-text);
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination__pages { display: flex; align-items: center; gap: .25rem; }
.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .5rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--c-text-muted);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    transition: all .15s;
}
.pagination__link:hover {
    border-color: var(--c-primary-light);
    color: var(--c-primary-light);
}
.pagination__current {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
.pagination__dots { color: var(--c-text-light); padding: 0 .25rem; }
.pagination__prev, .pagination__next { font-weight: 600; }

/* ─── Breadcrumbs ─── */
.breadcrumbs { padding-top: 1rem; padding-bottom: .5rem; }
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    font-size: .8125rem;
    color: var(--c-text-light);
}
.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: .25rem;
    color: var(--c-text-light);
}
.breadcrumbs__item a { color: var(--c-text-muted); }
.breadcrumbs__item a:hover { color: var(--c-primary-light); }
.breadcrumbs__item [aria-current] { color: var(--c-text); font-weight: 500; }

/* ─── Browse Pages (Categories, Locations) ─── */
.browse-page { margin-top: 2rem; }
.browse-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1.5rem;
}
.browse-section { margin-bottom: 2.5rem; }
.browse-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--c-border-light);
}
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}
.browse-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.browse-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .875rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    transition: all .15s;
}
.browse-card:hover {
    border-color: var(--c-primary-light);
    box-shadow: var(--shadow);
    color: var(--c-text);
}
.browse-card__name { font-weight: 500; font-size: .9rem; }
.browse-card__count {
    font-size: .75rem;
    color: var(--c-text-light);
    background: var(--c-border-light);
    padding: .15rem .5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    white-space: nowrap;
}
.browse-card--sm { padding: .625rem .875rem; }
.browse-card--sm .browse-card__name { font-size: .8125rem; }

/* ─── Listing Page ─── */
.listing { margin-top: 2rem; }
.listing__header { margin-bottom: 1.25rem; }
.listing__header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: .25rem;
}
.listing__count {
    font-size: .875rem;
    color: var(--c-text-muted);
}
.listing__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--c-text-muted);
    font-size: 1rem;
}

/* ─── Page Content (About, 404) ─── */
.page-content { margin-top: 2rem; }
.page-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1.25rem;
}
.page-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--c-primary);
    margin: 1.5rem 0 .75rem;
}
.page-content p { margin-bottom: 1rem; }
.page-content--centered { text-align: center; padding: 4rem 1rem; }
.page-content--centered .btn { margin-top: 1rem; }

/* ─── Footer ─── */
.footer {
    background: var(--c-primary);
    color: rgba(255,255,255,.7);
    margin-top: auto;
    padding: 2rem 0;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer__brand {
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: .25rem;
}
.footer__brand strong { font-weight: 700; }
.footer__stats { font-size: .8125rem; }
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a { color: rgba(255,255,255,.6); font-size: .8125rem; }
.footer__links a:hover { color: #fff; }
.footer__powered { font-size: .8125rem; text-align: right; }
.footer__powered a { color: var(--c-accent); font-weight: 600; }
.footer__powered a:hover { color: #fff; }
.footer__copy { font-size: .75rem; margin-top: .25rem; opacity: .5; }

@media (max-width: 600px) {
    .footer__inner { flex-direction: column; align-items: center; text-align: center; }
    .footer__powered { text-align: center; }
}
