/* homeoffice-total.de — hand-written, no build step */
:root {
  --ink: #14232B;
  --muted: #5B6B73;
  --line: #DCE4E8;
  --paper: #FFFFFF;
  --mist: #F4F8FA;
  --teal: #0F4C5C;
  --teal-dark: #0A3540;
  --teal-soft: #E3EFF2;
  --lime: #C6E36B;
  --amber: #F2B84B;
  --brick: #C8443A;
  --green: #1F8A70;
  --shadow: 0 1px 2px rgba(20, 35, 43, .06), 0 8px 24px rgba(20, 35, 43, .06);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--mist); line-height: 1.55; font-size: 16px; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 680px; }
.section { padding: 2.5rem 0; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.hp { position: absolute; left: -9999px; }
.inline { display: inline; }

/* Header / footer */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.brand__logo { width: 40px; height: 40px; display: block; }
.brand strong { color: var(--teal); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.site-nav a.button--primary, .site-nav a.button--primary:hover { color: #fff; }
.site-main { min-height: 60vh; padding-bottom: 3rem; }
.site-footer { background: var(--ink); color: #CBD6DB; padding: 2rem 0; font-size: .9rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: #fff; margin-right: 1rem; }
.site-footer strong { color: #fff; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2; transition: background .15s, transform .05s; }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--teal); color: #fff; }
.button--primary:hover { background: var(--teal-dark); }
.button--secondary { background: var(--teal-soft); color: var(--teal-dark); }
.button--outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.button--small { padding: .5rem .9rem; font-size: .9rem; }
.button--block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; padding: 4rem 0 3.5rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__q { color: var(--lime); }
.hero .kicker { color: var(--lime); }
.hero .lead { color: #D6E6EA; max-width: 60ch; }
.search-bar { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; background: #fff; padding: .5rem; border-radius: 14px; box-shadow: var(--shadow); max-width: 820px; }
.search-bar input, .search-bar select { border: 0; background: transparent; padding: .8rem .9rem; font: inherit; color: var(--ink); min-width: 0; }
.search-bar select { border-left: 1px solid var(--line); }
@media (max-width: 640px) { .search-bar { grid-template-columns: 1fr; } .search-bar select { border-left: 0; border-top: 1px solid var(--line); } }

/* Job cards */
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.job-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, border-color .15s; }
.job-card:hover { box-shadow: var(--shadow); border-color: #C5D3D9; }
.job-card--featured { border-color: var(--amber); background: #FFFBF0; }
.job-card__link { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; text-decoration: none; color: inherit; }
.job-card__title { margin: 0 0 .15rem; font-size: 1.05rem; }
.job-card__company { margin: 0; color: var(--muted); font-size: .95rem; }
.job-card__date { color: var(--muted); font-size: .85rem; white-space: nowrap; }
@media (max-width: 720px) { .job-card__link { grid-template-columns: 1fr; gap: .5rem; } }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--mist); color: var(--muted); border: 1px solid var(--line); }
.tag--full { background: #E6F5EF; color: var(--green); border-color: #BFE5D6; }
.tag--hybrid { background: #FFF4DD; color: #8A5A00; border-color: #F5DDA3; }
.tag--salary { background: var(--teal-soft); color: var(--teal-dark); border-color: #BFD8DF; }
.tag--muted { opacity: .7; }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Category grid & CTA */
.category-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.category-grid a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.category-grid a:hover { border-color: var(--teal); }
.category-grid small { color: var(--muted); font-weight: 400; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.cta-band p { margin: 0; color: var(--muted); }

/* Jobs page */
.page-head { padding: 2rem 0 1rem; }
.page-head--center { text-align: center; }
.page-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .jobs-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 80px; display: grid; gap: 1rem; }
.filters form, .alert-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .5rem; }
.filters label { font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: .4rem; }
.alert-box h2 { font-size: 1.05rem; margin: 0; }
.alert-box p { margin: 0; color: var(--muted); font-size: .9rem; }
.alert-form { display: grid; gap: .5rem; margin-top: .5rem; }
[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.pagination { display: flex; justify-content: center; gap: 1.5rem; align-items: center; padding: 1.5rem 0; }
.result-summary { margin: 0 0 .75rem; }

/* Forms */
input, select, textarea { width: 100%; padding: .65rem .8rem; border: 1px solid #B9C7CE; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(15, 76, 92, .35); outline-offset: 1px; }
textarea { min-height: 260px; resize: vertical; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field--check label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.field--check input { width: auto; margin-top: .2rem; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--brick); }
.field-error { color: var(--brick); font-size: .85rem; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.filter-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.filter-row select { width: auto; }

/* Flash */
.flash { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; border: 1px solid; }
.flash--success { background: #E6F5EF; border-color: #BFE5D6; color: #135F4C; }
.flash--error { background: #FDECEA; border-color: #F3C2BC; color: #8E2A22; }
.flash--info { background: var(--teal-soft); border-color: #BFD8DF; color: var(--teal-dark); }

/* Job detail */
.job-detail__head { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.job-detail__company { color: var(--muted); font-size: 1.05rem; }
.job-detail__layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .job-detail__layout { grid-template-columns: 1fr; } }
.job-detail__aside { position: sticky; top: 80px; display: grid; gap: 1rem; }
.apply-box, .company-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.company-box h2 { font-size: 1.05rem; }
.prose { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose.narrow, .container.prose { margin-top: 2rem; }

/* Pricing */
.pricing .price-card { max-width: 460px; margin: 1rem auto 3rem; background: var(--paper); border: 2px solid var(--teal); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); }
.price-card__name { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--teal); }
.price-card__price { font-size: 2.6rem; font-weight: 800; margin: 0 0 1rem; }
.price-card__price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.checklist li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Tables, admin */
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--mist); }
.table-wrap { overflow-x: auto; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.status { font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--mist); }
.status--active { background: #E6F5EF; color: var(--green); }
.status--pending_payment { background: #FFF4DD; color: #8A5A00; }
.status--rejected, .status--expired { background: #F1F3F4; color: var(--muted); }
.stats { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.stats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.stats strong { display: block; font-size: 1.6rem; }
.admin-nav { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #FFF4DD; border: 1px solid #F5DDA3; border-radius: var(--radius); padding: .8rem 1rem; margin: 1.5rem 0; flex-wrap: wrap; }
pre { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Employer profile / salary estimate */
.tag--estimate { background: #F3EEFF; color: #4B2C92; border-color: #D9CCF5; }
.tag--estimate small { font-weight: 400; opacity: .8; margin-left: .2rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0 0 1rem; font-size: .92rem; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; }
.company-box__logo { max-height: 56px; max-width: 160px; display: block; margin: -.2rem 0 .8rem; }
.company-head { display: flex; gap: 1.25rem; align-items: center; }
.company-head__logo { max-height: 72px; max-width: 180px; }
.ai-note { border-top: 1px dashed var(--line); padding-top: .6rem; margin-top: .8rem; }
select[multiple] { min-height: 160px; }
