/*
  Sidens egne styles til jobopslaget (index.html) og siden om behandling af ansøgninger.
  Farver, fonte og komponentklasser (knap, advarselsboks, eyebrow-green, corner-signature)
  kommer fra designsystemet i ../ds/styles.css, som indlæses før denne fil.
*/

/*
  Elementstandarder ligger i designsystemets lag "base". Så vinder designsystemets
  utility-klasser stadig over dem, fx tekstfarven på links, der er stylet som knapper.
*/
@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    /* Lange danske ord må ikke give vandret scroll i 320 px bredde. */
    overflow-wrap: break-word;
  }

  a {
    color: var(--primary);
    text-underline-offset: 3px;
  }

  /* Links i tekst understreges, så de ikke kun kendes på farven (WCAG 1.4.1). */
  a:not([data-slot="button"]) {
    text-decoration: underline;
  }

  a:hover {
    color: var(--primary-hover);
  }

  a:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
}

/* ---------- Header (begge sider) ---------- */

.site-header {
  background: var(--sidebar);
  color: #fff;
}

.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 12px;
  height: 12px;
  background: var(--brand-green);
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.header-link {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
}

.header-link:hover {
  background: var(--sidebar-accent);
  color: #fff;
}

/* Fokusringen på mørk baggrund bruger designsystemets lyse sidebar-ring. */
.site-header a:focus-visible,
.hero a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--sidebar-ring);
}

/* ---------- Footer (begge sider) ---------- */

.site-footer {
  background: var(--sidebar);
  color: #fff;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 12px 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
}

.site-footer a,
.site-footer a:hover {
  color: #fff;
}

/* ---------- Jobopslag: banner ---------- */

.hero {
  padding: 24px 24px 0;
}

.hero__panel {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--sidebar);
  color: #fff;
  /* Mindsteværdierne for padding og titel er lavere end i designkilden (32px og 34px),
     så "Miljøkonsulent" kan stå på én linje i 320 px bredde. */
  padding: clamp(24px, 6vw, 72px);
  display: grid;
  gap: 24px;
}

.hero__eyebrow {
  color: #fff;
  font-size: 13px;
}

.hero__title {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 17ch;
  text-wrap: balance;
  color: #fff;
}

.hero__lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
  color: #fff;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.hero__link,
.hero__link:hover {
  color: #fff;
  font-size: 15px;
  padding: 10px 4px;
}

/* ---------- Jobopslag: indhold ---------- */

.job-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.job-content {
  flex: 1 1 520px;
  min-width: 0;
  display: grid;
  gap: 64px;
}

.job-section {
  display: grid;
  gap: 20px;
  scroll-margin-top: 80px;
}

.prose {
  display: grid;
  gap: 16px;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.prose p {
  margin: 0;
}

.section-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--heading);
}

.subsection-title {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.task-list__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.6;
}

.task-list__nr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  padding-top: 3px;
}

.task-list__text {
  text-wrap: pretty;
}

.requirement-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.requirement-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.section-note {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.offer-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.offer-list__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.6;
  align-items: start;
}

.offer-list__mark {
  width: 10px;
  height: 10px;
  background: var(--brand-green-strong);
  margin-top: 7px;
}

.offer-list__text {
  text-wrap: pretty;
}

/* ---------- Jobopslag: praktisk information ---------- */

.job-aside {
  flex: 0 1 340px;
  min-width: min(100%, 280px);
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.facts {
  margin: 0;
  display: grid;
  gap: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.facts__row {
  display: grid;
  gap: 2px;
}

.facts__term {
  color: var(--muted-foreground);
  font-size: 13px;
}

.facts__value {
  margin: 0;
}

.info-card__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.data-link {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Jobopslag: afslutning ---------- */

.cta {
  padding: 40px 24px 72px;
}

.cta__panel {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.cta__text {
  flex: 1 1 380px;
  display: grid;
  gap: 10px;
}

.cta__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--heading);
}

.cta__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Sådan behandler vi dine data ---------- */

.privacy-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  gap: 48px;
}

.privacy-intro {
  display: grid;
  gap: 16px;
}

.privacy-title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--heading);
  text-wrap: balance;
}

.privacy-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.privacy-section {
  display: grid;
  gap: 16px;
}

.privacy-section--divided {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.privacy-section--steps {
  gap: 4px;
}

.privacy-section--rights {
  gap: 12px;
}

.privacy-heading {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--heading);
}

.privacy-section--steps .privacy-heading {
  margin-bottom: 12px;
}

.privacy-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.step-list__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.step-list__nr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  padding-top: 4px;
}

.step-list__body {
  display: grid;
  gap: 4px;
}

.step-list__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
}

.step-list__text {
  font-size: 16px;
  text-wrap: pretty;
}

.privacy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
