/* ID-Agency candidate site (www.id-agency.eu) — base built from the
   client-accepted employer-site concept
   (docs/06-website/mockups/employers/concept-3/style.css), copied wholesale
   below, with candidate-site-specific additions appended at the end:
   service cards, three-column layout, numbered process list, hero layout,
   real-photo frame (adapted from concept-3a's accepted photo treatment),
   and the language-selector dropdown. Card grids in the additions section
   are written mobile-first (single column, then a min-width query adds
   columns) per the mock-up's mobile-first rule; the nav collapse below is
   kept as a max-width override by design, since the mobile nav is a drawer,
   not a grid that should ever default to multi-column. */
/* ID-Agency employer site — shared structural base (per-concept theme below) */
:root {
  --color-bg: #f6f4ef;
  --color-text: #2a2a27;
  --color-heading: #1a1a18;
  --color-muted: #6c6a62;
  --color-accent: #606d54;
  --color-accent-hover: #4b5542;
  --color-on-accent: #f6f4ef;
  --color-border: #dedad0;
  --color-field-border: #858279;
  --color-focus: #6b7a5e;
  --color-header-bg: #f6f4ef;
  --color-footer-bg: #1a1a18;
  --color-footer-text: #dedad0;
  --color-footer-heading: #f6f4ef;
  --color-field-bg: #ffffff;
  --color-photo-bg: #e5e1d6;
  --color-photo-stripe: #d5cfbf;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --weight-heading: 800;
  --max-width: 1240px;
  --copy-width: 640px;
  --header-height: 72px;
  --header-height-compact: 52px;
  /* Spacing: one gap per section boundary (packet 6, 2026-10-11). Scale in px:
     2 4 8 12 16 24 32 48 80. --section-spacing is the only gap between two sections. */
  --section-spacing: 80px;
  --section-spacing-mobile: 48px;
  /* Type scale (packet 6): display (home hero) > h1 (page title) > h2 (section) > h3 (card). */
  --fs-display: clamp(2rem, 1rem + 6vw, 5rem);
  --fs-h1: clamp(2rem, 1.25rem + 2.5vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.25vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-lede: 1.1875rem;
  --fs-ui: 1rem;
  --fs-small: 0.875rem;
  --button-radius: 0px;
  --gutter: clamp(16px, 5vw, 24px);
}
@media (max-width: 720px) {
  :root { --section-spacing: var(--section-spacing-mobile); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background watermark (operator, 2026-10-13, verbatim: "Turn logo into a
   very waterish watermark andf make it a consistent background, subtle,
   barely noticeable"). One fixed, centred mark behind all content, the same
   position on every page -- a pseudo-element, not background-attachment:
   fixed (broken on iOS Safari). z-index:-1 with no stacking context on body
   paints it above the page's own canvas background colour but below every
   normal-flow section; sections with their own opaque background (header,
   photo placeholders, cookie banner, the dark footer) hide it locally by
   simply painting over it -- see docs/06-website/brand/README.md for the
   measured contrast and which sections do this. */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 65vmin;
  height: 65vmin;
  transform: translate(-50%, -50%);
  background: url("logo-watermark.png") no-repeat center / contain;
  pointer-events: none;
  z-index: -1;
}
@media print {
  body::before { display: none; }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: var(--weight-heading);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-ui); }
h1, h2, h3 { text-wrap: balance; }

p { margin: 0 0 1em; }
a { color: var(--color-accent); }
a:not(.button) { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Header / navigation ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}
.site-header.is-compact {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.site-header.is-compact .header-inner {
  min-height: var(--header-height-compact);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-mark {
  display: block;
  height: 44px;
  width: auto;
}
.logo-name {
  /* Operator, 2026-10-13 (verbatim): "Drop "ID-Agency" in small grey text."
     Visually hidden, not display:none, so the logo link keeps an
     accessible name (the img has alt=""); the text node itself and its
     strings-de.csv/strings.csv key are unchanged. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 640px) {
  .logo-mark { height: 56px; }
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--fs-ui);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-heading);
}
.primary-nav a:hover { border-bottom-color: var(--color-accent); }

.nav-toggle {
  display: none;
  grid-template-columns: auto 20px;
  grid-template-rows: repeat(3, 2px);
  column-gap: 12px;
  row-gap: 4px;
  align-content: center;
  min-height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
}
.nav-toggle-label { grid-column: 1; grid-row: 1 / 4; align-self: center; line-height: 1; font-weight: 600; font-size: var(--fs-small); color: var(--color-heading); }
.nav-toggle-bar {
  grid-column: 2;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-heading);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
  }
  .primary-nav a { display: block; padding: 12px 0; }
}

/* Sections ----------------------------------------------------------------- */
/* Each section carries only its top gap; the last block of <main> also carries the
   gap to the footer. Two sections never add their paddings together. */
.section { padding-top: var(--section-spacing); padding-bottom: 0; }
main > :last-child { padding-bottom: var(--section-spacing); }
.section-narrow { max-width: var(--copy-width); margin-left: auto; margin-right: auto; }
.section-head { max-width: var(--copy-width); margin: 0 0 32px; }
.section-head > :last-child { margin-bottom: 0; }
.lede { font-size: var(--fs-lede); }
.more-link { margin: 24px 0 0; }
/* A paragraph that ends its block adds no space; the section gap alone separates blocks. */
main p:last-child { margin-bottom: 0; }

/* Hero ----------------------------------------------------------------------*/
.hero { padding-top: var(--section-spacing); padding-bottom: 0; }

/* Photo placeholders --------------------------------------------------------*/
.photo-placeholder {
  aspect-ratio: var(--aspect-ratio, 16/9);
  width: 100%;
  background: var(--color-photo-bg);
  background-image: repeating-linear-gradient(135deg, var(--color-photo-stripe) 0 2px, transparent 2px 14px);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.photo-placeholder-caption {
  background: rgba(255,255,255,0.88);
  color: var(--color-text);
  font-size: var(--fs-small);
  padding: 4px 8px;
  border-radius: 2px;
}

/* Buttons --------------------------------------------------------------------*/
.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--button-radius);
  border: 2px solid var(--color-accent);
  cursor: pointer;
  font-size: var(--fs-ui);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.button-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.button-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.button-secondary {
  background: transparent;
  color: var(--color-accent);
}
.button-secondary:hover { background: var(--color-accent); color: var(--color-on-accent); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* Partner logos ---------------------------------------------------------------*/
.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}
.partner-logo {
  aspect-ratio: 3/2;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--fs-small);
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.partner-logo:hover, .partner-logo:focus-within {
  filter: grayscale(0);
  opacity: 1;
}

/* Forms ------------------------------------------------------------------------*/
.form-field { margin-bottom: 24px; max-width: var(--copy-width); }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-field-border);
  border-radius: var(--button-radius);
  font: inherit;
  background: var(--color-field-bg);
  color: var(--color-text);
}
.form-field textarea { resize: vertical; }
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-privacy {
  font-size: var(--fs-small);
  color: var(--color-muted);
  max-width: var(--copy-width);
}
.contact-success {
  border: 1px solid var(--color-border);
  background: var(--color-field-bg);
  padding: 24px;
  max-width: var(--copy-width);
  scroll-margin-top: calc(var(--header-height) + 16px);
}
#form-error-service {
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.success-heading { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h3); color: var(--color-heading); }
.success-sub { margin: 8px 0 0; }
.success-meta { color: var(--color-muted); font-size: var(--fs-small); margin-top: 16px; margin-bottom: 0; }
.contact-info {
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
  margin-bottom: 32px;
  max-width: var(--copy-width);
}
.contact-info-heading { font-family: var(--font-heading); font-weight: 700; margin-bottom: 4px; }
.contact-info address { font-style: normal; }
.contact-info:last-child { margin-bottom: 0; }

.field-error {
  color: #a33b2b;
  font-size: var(--fs-small);
  margin: 4px 0 0;
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #a33b2b;
}

/* Legal placeholder pages -------------------------------------------------------*/
.legal-page { max-width: var(--copy-width); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; padding-top: var(--section-spacing); }
.back-link { margin: 0 0 16px; font-size: var(--fs-small); }
.back-link a { font-weight: 600; }
.legal-placeholder {
  border: 1px dashed var(--color-border);
  padding: 24px;
  color: var(--color-muted);
  font-style: italic;
}

/* Legal content pages (filled-in Impressum/Datenschutz/Cookie/AGB text) ----------*/
.legal-intro { color: var(--color-muted); font-style: italic; }
.legal-page h2 { font-size: var(--fs-h3); margin-top: 32px; }
.legal-page h2:first-of-type { margin-top: 8px; }
.legal-page address { font-style: normal; margin: 0 0 16px; }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: var(--fs-small);
}
.legal-page th, .legal-page td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-page th { font-family: var(--font-heading); font-weight: 700; }
@media (max-width: 720px) {
  .legal-page table { display: block; overflow-x: auto; }
  .legal-page th, .legal-page td { min-width: 9em; }
}

/* Footer --------------------------------------------------------------------------*/
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lede); margin-bottom: 8px; color: var(--color-footer-heading); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: var(--color-footer-text); }
.footer-heading { font-family: var(--font-heading); font-weight: 700; margin-bottom: 8px; color: var(--color-footer-heading); }
.social-links, .legal-links { list-style: none; margin: 0; padding: 0; line-height: 1.4; }
.social-links a, .legal-links a { display: inline-block; padding: 12px 0; }
/* .footer-copy sits outside .container in the markup; it gets the container's edges here. */
.footer-copy { max-width: var(--max-width); margin: 32px auto 0; padding: 0 var(--gutter); font-size: var(--fs-small); opacity: 0.7; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Concept 3 theme ----------------------------------------------------------- */
body { letter-spacing: 0.005em; }
.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-header-bg); border-bottom: 1px solid var(--color-border); display: none; }
.primary-nav.is-open { display: block; }
.primary-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; }
.primary-nav a { display: block; padding: 12px 0; font-size: var(--fs-lede); }
.nav-toggle { display: inline-grid; }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}
/* Page heroes (every page except the home page) use the page-title size. */
.hero.section-narrow h1 { font-size: var(--fs-h1); }
.hero .lede { font-size: var(--fs-lede); max-width: 60ch; }
.hero-media { margin-top: 48px; }

.oversized {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.15;
  max-width: 18ch;
}

/* Card grids below are mobile-first: single column by default, multi-column
   only from the min-width breakpoint up (operator instruction, 2026-10-07). */
.service-sequence {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-sequence .step h3 {
  font-size: var(--fs-h3);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
@media (min-width: 861px) { .service-sequence { grid-template-columns: repeat(3, 1fr); } }

.big-blocks { display: flex; flex-direction: column; gap: 32px; }
.big-block { border-top: 1px solid var(--color-border); padding-top: 24px; }
.big-block h3 {
  font-size: var(--fs-h3);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.big-block .num { color: var(--color-accent); font-weight: 800; }
.big-block p { max-width: var(--copy-width); }

.three-words {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.three-words .word h3 { font-size: var(--fs-h3); color: var(--color-accent); }
@media (min-width: 861px) { .three-words { grid-template-columns: repeat(3, 1fr); } }

.closing-statement { font-size: var(--fs-h2); font-weight: 800; }

.cta-banner { text-align: left; }
.cta-banner .oversized { margin-bottom: 0.4em; }
.cta-banner p { max-width: var(--copy-width); }

/* Home page: numbered steps ("So läuft es ab" / application process), packet 6. */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.steps-list li { border-top: 1px solid var(--color-border); padding-top: 12px; }
.steps-list h3 { margin: 0; display: flex; gap: 12px; align-items: baseline; }
.steps-list .num { color: var(--color-accent); font-weight: 800; }
.steps-list p { margin: 8px 0 0; }
@media (min-width: 600px) { .steps-list { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .steps-list { grid-template-columns: repeat(4, 1fr); } }

/* Home page: contact strip under the closing statement, packet 6. */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.contact-strip .contact-info { margin-bottom: 0; }

.faq-list { display: flex; flex-direction: column; gap: 24px; }
.faq-item { border-top: 1px solid var(--color-border); padding-top: 16px; }
.faq-item h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.faq-item p { max-width: var(--copy-width); margin: 0; }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  border-top: 1px solid var(--color-border);
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.cookie-banner-text { margin: 0; max-width: 760px; font-size: var(--fs-small); color: var(--color-footer-text); }
.cookie-banner-text a { color: var(--color-footer-text); }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-banner .button { padding: 8px 16px; font-size: var(--fs-small); }
.cookie-banner .button-secondary { border-color: var(--color-footer-text); color: var(--color-footer-text); }
.cookie-banner .button-secondary:hover { background: var(--color-footer-text); color: var(--color-footer-bg); }
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .cookie-banner-text, .cookie-banner-inner p { font-size: var(--fs-small); line-height: 1.45; }
  .cookie-banner-actions { flex-wrap: nowrap; justify-content: flex-start; }
  .cookie-banner .button { flex: 1 1 0; padding: 8px 12px; text-align: center; }
}

/* Candidate site additions (www.id-agency.eu) ---------------------------------
   Everything below is specific to the candidate site and absent from
   concept-3: service cards, the about-page three-column layout, the
   services-page numbered process list, the home-page two-column hero,
   the real-photo frame, and the language-selector dropdown. */

/* Tap targets: ensure the nav toggle meets the >=44px minimum (concept-3's
   own value was smaller). */
.nav-toggle { min-height: 44px; min-width: 44px; padding: 8px 12px; }

/* Service cards (home.html "why us" + jobs teaser, jobs.html sample adverts).
   A bordered card, distinct from concept-3's underlined .service-sequence
   steps, kept as one consistent pattern across every template that needs
   it rather than renaming templates to .step. Mobile-first: single column
   by default, three columns from 860px. */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  border: 1px solid var(--color-border);
  padding: 24px;
  background: var(--color-field-bg);
}
.service-card h3 {
  font-size: var(--fs-h3);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
@media (min-width: 861px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Modifier for a .service-cards instance holding exactly 2 cards (the
   home-page jobs teaser): 3 equal columns would leave one empty, so this
   variant uses 2. */
@media (min-width: 861px) {
  .service-cards-2 { grid-template-columns: repeat(2, 1fr); }
}

/* about.html "values" section: three plain columns, no border. Mobile-first. */
.columns-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 861px) {
  .columns-3 { grid-template-columns: repeat(3, 1fr); }
}

/* services.html numbered process list. Mobile-first: number stacks above
   the text on narrow screens, sits beside it from 640px. */
.leistungen-list { display: flex; flex-direction: column; gap: 32px; }
.leistung-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}
.leistung-item .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-h3);
  color: var(--color-accent);
}
@media (min-width: 641px) {
  .leistung-item { grid-template-columns: 90px 1fr; gap: 24px; }
  .leistung-item .num { font-size: var(--fs-h2); }
}

/* index.html hero: headline across the full container width, then text
   stacked above the photo on narrow screens (source order already puts text
   first), two columns side by side from 860px. */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 861px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}

/* Home headline (operator decisions 2026-10-14, LEGAL-FACTS.md): one h1, two
   block lines. Line 1 is the headline sentence and stays on ONE line from
   768 px in all six languages: it spans the whole container (grid-column
   1 / -1) and is sized fluidly -- 29 px at 768 (one-line maximum for the
   longest language, bg, in the 720 px box: 30 px), 48 px at 1280 and above.
   Line 2 is 0.8 em of line 1: at least 4 pt (5.33 px) smaller at every width
   (operator, second decision: line 1 larger, line 2 "at least 4 points
   smaller"). Below 768 px both lines may wrap: 28 px / 22.4 px. */
.hero-inner > .hero-title {
  grid-column: 1 / -1;
  --hero-l1: 28px;
  font-size: var(--hero-l1);
  margin-bottom: 0;
}
.hero-title-line1, .hero-title-line2 { display: block; }
.hero-title-line2 { font-size: 0.8em; }
@media (min-width: 768px) {
  .hero-inner > .hero-title { --hero-l1: clamp(28px, 0.5px + 3.711vw, 48px); }
  .hero-title-line1 { white-space: nowrap; }
}
/* With the headline in its own grid row, the lede + buttons column is
   top-aligned so it follows the headline directly instead of being centred
   against the taller photo (align-items: center on .hero-inner). */
@media (min-width: 861px) {
  .hero-inner > .hero-text { align-self: start; }
}

/* Real-photo frame, adapted from concept-3a's accepted photo treatment:
   a fixed aspect-ratio box with object-fit:cover so layout never jumps
   while the comp image loads. Comp photos (docs/06-website/mockups/
   employers/photos-comp/) are a single resolution today; srcset/sizes are
   still declared below so the markup is ready for real responsive
   variants in production. */
.photo-frame {
  width: 100%;
  aspect-ratio: var(--aspect-ratio, 3/2);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-photo-bg);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Language selector: a compact button that discloses a dropdown of the six
   languages by native name (build.py's lang_switcher_html()). Toggle state
   is handled in assets/script.js; the dropdown is a plain, keyboard-reachable
   list of links, no custom widget semantics. */
.lang-switcher { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--color-border);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-heading);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--color-accent); }
.lang-toggle-caret { font-size: var(--fs-small); }
.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 180px;
  background: var(--color-header-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.lang-menu[hidden] { display: none; }
.lang-menu li + li { margin-top: 2px; }
.lang-menu a,
.lang-menu .lang-current {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}
.lang-menu a:hover { background: var(--color-bg); color: var(--color-accent); }
.lang-menu .lang-current { color: var(--color-heading); background: var(--color-bg); }

/* Header (packet 6): logo left; language button and menu button together at the
   right at every width, both with the site's button corner radius. */
.header-inner { flex-wrap: nowrap; column-gap: 8px; }
.lang-switcher { order: 2; margin-left: auto; }
.nav-toggle { order: 3; }
.nav-toggle, .lang-toggle { border-radius: var(--button-radius); }
@media (max-width: 860px) {
  .lang-toggle { padding: 8px 12px; }
}

/* Footer: fourth column with the six languages by native name (packet 6). */
@media (min-width: 721px) and (max-width: 1023px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
html[lang="hr"] .footer-langs a[hreflang="hr"], html[lang="de"] .footer-langs a[hreflang="de"],
html[lang="en"] .footer-langs a[hreflang="en"], html[lang="mk"] .footer-langs a[hreflang="mk"],
html[lang="bg"] .footer-langs a[hreflang="bg"], html[lang="sq"] .footer-langs a[hreflang="sq"] {
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 480px) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { grid-template-columns: 20px; }
  .nav-toggle-bar { grid-column: 1; }
}
/* D10: template <p> lacks .cookie-banner-text; fallback for the raw <p> */
.cookie-banner-inner p { margin: 0; font-size: var(--fs-small); color: var(--color-footer-text); }
.cookie-banner-inner p a { color: var(--color-footer-text); }

/* Phone contact button + panel (operator ruling 2026-10-21, addenda-1 item 1). */
.phone-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  margin: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-ui);
  text-decoration: none;
  white-space: nowrap;
}
.phone-trigger:hover,
.phone-trigger:focus-visible {
  background: var(--color-heading);
}
.phone-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
}
.phone-panel-overlay[hidden] { display: none; }
.phone-panel {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.phone-panel-heading-visible { margin: 0 0 16px; font-size: var(--fs-h3, 1.25rem); }
.phone-panel-list { list-style: none; margin: 0 0 16px; padding: 0; }
.phone-panel-list li { margin-bottom: 16px; }
.phone-panel-lang { font-size: var(--fs-small); color: var(--color-text); }
.phone-panel-call {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}
.phone-panel-close-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  font-weight: 600;
}
.phone-plain-list { list-style: none; margin: 16px 0; padding: 0; }
.phone-plain-list li { margin-bottom: 16px; }
