/* Akari starter kit · style
 *
 * Two parts:
 *   1. @layer kit and @layer switches: the mechanics the behaviour depends on (touch targets, the menu
 *      takeover, the carousel, the form, the action bar, iOS, reveal). Keep them. They use only tokens, so
 *      they take any look. kit comes first, so the look can restyle it; switches (the phone breakpoint,
 *      landscape, reduced motion) comes last, so no look can break the behaviour.
 *   2. @layer base, components, pages: the look. Here it is a WIREFRAME, grey and plain on purpose.
 *      Replace it with the direction in RETNING.md: design every token, the type, the header, the buttons,
 *      the cards, the menu, the form and the footer from scratch. Do not adjust the wireframe.
 *      Remove --wireframe from :root when the look is yours (the build warns while it is there).
 *
 * Two kinds of rule stay unlayered, at the very end: [hidden] (RULES.md L12), and the overrides of what
 * Akari Engine injects (the cookie banner, the privacy notice), because injected CSS beats any layer.
 */
@layer kit, base, components, pages, switches;

/* =====================================================================================================
   1 · The kit: mechanics. Keep.
   ===================================================================================================== */
@layer kit {
  *, *::before, *::after { box-sizing: border-box; }

  /* html and body carry the colour of the iPhone bars; main carries the page (I1). */
  html {
    background-color: var(--color-deep);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
  }
  body { margin: 0; background-color: var(--color-deep); -webkit-font-smoothing: antialiased; }
  main { display: block; background-color: var(--color-bg); overflow-x: clip; }
  /* An instant restore after the menu closes (T4), and the scroll lock while it is open. */
  html[data-instant] { scroll-behavior: auto; }
  html[data-locked], html[data-locked] body { overflow: hidden; }

  h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
  p, li, dd, figcaption, blockquote { text-wrap: pretty; }
  /* No automatic hyphenation (L9). */
  * { hyphens: manual; }

  img, svg, video { display: block; max-width: 100%; height: auto; }
  svg.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

  /* Anchor targets clear the header (never scroll-padding on html). */
  [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

  .nw { white-space: nowrap; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--color-surface); color: var(--color-text); }
  .skip:focus { top: 12px; }
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

  /* The contact section on a wide screen: the heading beside the form, so both fit one laptop screen (L13). */
  @media (min-width: 900px) {
    [data-form] > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
    [data-form] > .wrap > .section__head { margin-bottom: 0; }
  }

  /* Buttons and links: 44–48 px targets (A2). */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; text-decoration: none; cursor: pointer;
  }
  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .card > a, .link-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  details > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
  .site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
  .site-header__logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
  .site-nav { display: flex; align-items: center; }
  .site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .menu-button { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; cursor: pointer; }

  /* The menu takeover (T2–T12) */
  .takeover {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: var(--color-deep); color: var(--color-on-deep);
    overscroll-behavior: contain;
  }
  .takeover::backdrop { background: var(--color-deep); }
  .takeover[open] { display: flex; flex-direction: column; }
  .takeover__top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: var(--header-h); padding: env(safe-area-inset-top) var(--gutter) 0; flex: none;
  }
  .takeover__close { display: inline-grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
  .takeover__body { flex: 1; overflow-y: auto; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
  .takeover__links { list-style: none; margin: 0; padding: 0; }
  .takeover__links a { display: flex; align-items: center; min-height: 56px; text-decoration: none; }
  .takeover__contact a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Carousel (K1–K9): the list, and the bar with the counter */
  .cards { margin: 0; padding: 0; list-style: none; }
  .cards > li { min-width: 0; }
  .carousel-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
  .carousel-bar__count { font-variant-numeric: tabular-nums; }
  .carousel-bar__buttons { display: flex; gap: 8px; }
  .carousel-bar button { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
  .carousel-bar button:disabled { cursor: default; }

  /* Form (S1–S15) */
  .form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form fieldset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
  .form legend { padding: 0; }
  .field { display: grid; gap: 6px; min-width: 0; }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 48px;
    font-size: max(16px, 1rem); /* 16 px or iOS zooms (S9) */
  }
  .field textarea { min-height: 104px; resize: vertical; }   /* three lines: the whole form fits a laptop screen (L13) */
  .field [aria-invalid="true"] { border-color: var(--color-error); }
  .field__error { margin: 0; color: var(--color-error); }
  .form__summary ul { margin: 8px 0 0; padding-left: 20px; }
  .form__steps { display: flex; justify-content: space-between; gap: 12px; }
  /* The submit button stands in its own block: the published privacy notice goes before it. */
  [data-submit-row] { display: flex; flex-wrap: wrap; gap: 12px; }
  .form[aria-busy="true"] [type="submit"] { opacity: 0.7; cursor: progress; }
  .form__status, .form__answer { scroll-margin: calc(var(--header-h) + 16px) 0 calc(var(--bar-h) + 24px); }
  .form__status:empty { margin: 0; }
  /* The honeypot is off screen, inert and aria-hidden in the markup (S1). */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Action bar (H1–H6, E2) */
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: none; align-items: center; gap: 10px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)) 72px; /* 72 px: the cookie button's slot */
    background: var(--color-deep); color: var(--color-on-deep);
    transform: translateY(110%);
    transition: transform var(--dur) var(--ease);
  }
  .actionbar[data-visible="true"] { transform: none; }
  .actionbar .btn { flex: 1; min-height: 48px; padding-inline: 12px; }
  .actionbar__slot { position: absolute; left: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }

  /* Reveal (E5, A7): visible without JavaScript */
  html[data-js] .reveal:not([data-shown]) { opacity: 0; transform: translateY(16px); }
  .reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

  /* Footer targets (A2) */
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .site-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
}

/* The switches: the mechanics that must win over any look, so they sit in the last layer. Keep. */
@layer switches {
  /* Phone (the one breakpoint, T3: keep it equal to script.js) */
  @media (max-width: 899.98px) {
    .site-nav { display: none; }
    .menu-button { display: inline-flex; }
    .actionbar { display: flex; }
    /* Room for the action bar, in the footer's own colour (no light band above it). */
    body:has(.actionbar) .site-footer { padding-bottom: calc(32px + var(--bar-h) + env(safe-area-inset-bottom)); }
    .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); }
    .btn-row .btn { width: 100%; }
    [data-submit-row] .btn { width: 100%; }

    [data-carousel] {
      display: flex; gap: 16px;
      overflow-x: auto; overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
      margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
      scrollbar-width: none;
    }
    [data-carousel]::-webkit-scrollbar { display: none; }
    [data-carousel] > li { flex: 0 0 82%; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
    .carousel-bar { display: flex; }
  }

  /* Landscape phone: fixed elements take little room (H5, T10) */
  @media (max-height: 480px) and (orientation: landscape) {
    .site-header { position: static; }
    .actionbar { padding-block: 4px calc(4px + env(safe-area-inset-bottom)); }
    .actionbar .btn { min-height: 44px; }
    .takeover__links a { min-height: 48px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms; animation-iteration-count: 1; transition-duration: 0.01ms; }
    html[data-js] .reveal:not([data-shown]) { opacity: 1; transform: none; }
  }
}

/* =====================================================================================================
   2 · The look: Villagruppen as on the old site (Enfold, 2021): white pages, Work Sans, the four company
   colours (green, orange, red, blue) and the deep green footer. Moved 1:1, with contrast and mobile fixed.
   ===================================================================================================== */
@layer base {
  :root {
    /* AGENTS.md requires these eight */
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #222222;
    --color-text-muted: #595959;
    --color-accent: #006838;
    --color-accent-muted: #e5f0ea;
    --font-display: 'Work Sans', var(--fallback-sans);
    --font-body: 'Work Sans', var(--fallback-sans);

    /* The four companies, as on the old site. Red is 1 % darker so white text passes AA (4.5:1);
       orange keeps its colour and gets dark text instead (white on orange was 2.4:1). */
    --color-green: #006838;
    --color-orange: #e59620;
    --color-red: #e81642;
    --color-blue: #233f74;
    --color-on-orange: #1a1a1a;
    --color-white: #ffffff;
    --color-alt: #f4f6f4;
    --color-overlay: rgb(0 0 0 / 0.38);
    --color-shadow: rgb(0 0 0 / 0.45);
    --color-footer-title: #b9cfc1;

    /* Roles the kit uses */
    --color-deep: #00381c;           /* footer, the stripe over the header and the iPhone bars (I1) */
    --color-on-deep: #ffffff;
    --color-on-accent: #ffffff;
    --color-line: #e1e1e1;
    --color-line-on-deep: rgb(255 255 255 / 0.4);
    --color-field: #858585;
    --color-error: #a3261c;
    --color-focus: #00381c;
    --fallback-sans: 'Akari Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --space-section: clamp(48px, min(7vw, 9vh), 104px);
    --space-head: clamp(24px, min(3vw, 4vh), 48px);
    --gap: 24px;
    --gutter: clamp(20px, 5vw, 48px);
    --measure: 66ch;
    --wrap: 1180px;
    --radius: 0px;
    --header-h: 76px;
    --bar-h: 64px;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
    --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
    --step-3: clamp(1.6rem, min(1.3rem + 1.4vw, 6vh), 2.25rem);
    --step-4: clamp(2.25rem, min(1.4rem + 3.4vw, 8vh), 3.5rem);

    --dur: 0.3s;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: light;
  }

  /* Fallback for Work Sans, measured against Arial (Y7) */
  @font-face {
    font-family: 'Akari Fallback';
    src: local('Arial');
    size-adjust: 108.4%;
    ascent-override: 85.8%;
    descent-override: 22.1%;
    line-gap-override: 0%;
  }

  body { color: var(--color-text); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.7; }
  h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--color-text); }
  h1 { font-size: var(--step-4); font-weight: 700; text-transform: uppercase; }
  h2 { font-size: var(--step-3); font-weight: 300; text-transform: uppercase; }
  h3 { font-size: var(--step-0); font-weight: 400; line-height: 1.35; text-transform: uppercase; }
  p { margin: 0 0 1em; max-width: var(--measure); }
  :is(h1, h2, h3) + :is(p, ul, ol) { margin-top: 0.75em; }
  p:last-child { margin-bottom: 0; }
  a { color: var(--color-accent); text-underline-offset: 0.18em; }
  a:hover { color: var(--color-deep); }

  .section { padding-block: var(--space-section); }
  .section__head { margin-bottom: var(--space-head); max-width: 760px; }
  .lead { font-size: var(--step-1); line-height: 1.5; color: var(--color-text-muted); }
}

@layer components {
  .btn { padding: 10px 20px; border: 2px solid transparent; border-radius: var(--radius); font-size: 0.95rem; font-weight: 400; line-height: 1.2; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
  .btn--primary:hover { background: var(--color-deep); color: var(--color-on-deep); }
  .btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
  .btn--ghost:hover { background: var(--color-accent-muted); color: var(--color-text); }
  /* The white buttons in the heroes */
  .btn--light { background: var(--color-white); color: var(--color-text); gap: 4px; padding-inline: 16px 20px; }
  .btn--light:hover { background: var(--color-accent); color: var(--color-white); }
  /* The outlined «Se mer» in the coloured tiles */
  .btn--outline { border-color: currentColor; color: inherit; background: transparent; }
  .btn--outline:hover { background: var(--color-white); color: var(--color-text); border-color: var(--color-white); }
  /* The thin grey frame on «Se flere» and «Send oss en melding» */
  .btn--line { border: 2px solid var(--color-text-muted); color: var(--color-text); background: var(--color-surface); }
  .btn--line:hover { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-white); }

  /* Header: white, the logo to the left, the deep green stripe above, as on the old site */
  .site-header { background: var(--color-surface); color: var(--color-text); border-top: 12px solid var(--color-deep); box-shadow: 0 1px 0 var(--color-line); }
  .site-header__logo img { height: 56px; width: auto; }
  .site-nav { gap: 2px; }
  .site-nav a:not(.btn) { padding: 0 12px; font-size: 0.95rem; color: var(--color-text); text-decoration: none; border-bottom: 2px solid transparent; }
  .site-nav a:not(.btn):hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
  .site-nav a[aria-current="page"] { color: var(--color-accent); font-weight: 700; }
  .site-nav .site-nav__social { justify-content: center; min-width: 44px; padding: 0 8px; color: var(--color-text-muted); }
  .site-nav .site-nav__social .icon { width: 20px; height: 20px; }
  .menu-button { padding: 0 12px; background: transparent; color: var(--color-text); border: 2px solid var(--color-line); border-radius: var(--radius); }
  .menu-button:hover { border-color: var(--color-accent); color: var(--color-accent); }

  .takeover__top h2 { font-size: var(--step-1); font-weight: 700; color: inherit; }
  .takeover__close { background: transparent; color: inherit; border: 2px solid currentColor; border-radius: var(--radius); }
  .takeover__close:hover { background: var(--color-white); color: var(--color-deep); }
  .takeover__links { margin-bottom: 32px; }
  .takeover__links a { font-size: var(--step-2); font-weight: 300; text-transform: uppercase; color: var(--color-on-deep); border-bottom: 1px solid var(--color-line-on-deep); }
  .takeover__links a:hover, .takeover__links a[aria-current="page"] { font-weight: 700; color: var(--color-on-deep); }
  .takeover .btn--primary { background: var(--color-white); color: var(--color-deep); }
  .takeover .btn--primary:hover { background: var(--color-accent-muted); color: var(--color-deep); }
  .takeover .btn--ghost:hover { background: var(--color-white); color: var(--color-deep); }
  .takeover__contact { margin-top: 32px; display: grid; gap: 4px; }
  .takeover__contact a { color: var(--color-on-deep); font-weight: 700; }
  .takeover__contact a:hover { color: var(--color-on-deep); text-decoration: none; }
  .takeover__contact p { margin: 0; }

  .form { max-width: 640px; }
  .field label { font-weight: 700; }
  .field__hint { margin: 0; font-size: var(--step--1); color: var(--color-text-muted); }
  .field input, .field select, .field textarea { padding: 12px 14px; background: var(--color-surface); border: 1.5px solid var(--color-field); border-radius: var(--radius); }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-accent); }
  .field__error { font-weight: 700; font-size: 0.95rem; }
  .form__summary { padding: 16px 20px; border: 2px solid var(--color-error); background: var(--color-surface); }
  .form__status { margin: 16px 0 0; font-weight: 700; }
  .form__answer { margin-top: 24px; padding: 28px; background: var(--color-surface); border-top: 4px solid var(--color-accent); }
  .form__answer h3 { margin-bottom: 8px; font-size: var(--step-1); }

  .slot { display: grid; align-content: center; gap: 6px; min-height: 120px; padding: 20px 24px; border: 1.5px dashed var(--color-field); background: var(--color-surface); color: var(--color-text-muted); }
  .slot__type { font-size: var(--step--1); font-weight: 700; color: var(--color-text); }
  .slot__text { font-size: 0.95rem; line-height: 1.5; max-width: 44ch; }
  .slot__rec { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }

  /* Footer: deep green, three columns with thin rules, as on the old site */
  .site-footer { background: var(--color-deep); color: var(--color-on-deep); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.95rem; }
  .site-footer p { margin: 0; }
  .site-footer a { color: var(--color-on-deep); text-decoration: underline; text-decoration-color: var(--color-line-on-deep); }
  .site-footer a:hover { color: var(--color-on-deep); text-decoration-color: var(--color-on-deep); }
  .site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px clamp(32px, 5vw, 64px); }
  .site-footer__grid > div { display: grid; align-content: start; gap: 2px; }
  .site-footer__title { padding: 6px 0; margin-bottom: 12px; border-block: 1px solid var(--color-line-on-deep); color: var(--color-footer-title); font-weight: 300; text-transform: uppercase; letter-spacing: 0.04em; }
  .site-footer__legal { margin-top: 48px; font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; }
  .site-footer__legal p:last-child { margin-left: auto; }
  .site-footer .site-footer__social { text-decoration: none; }
  .site-footer__social .icon { width: 22px; height: 22px; }
}

@layer pages {
  /* ---------- Hero: a photo with the name in white capitals and the white buttons ---------- */
  .hero { position: relative; display: grid; align-items: center; min-height: clamp(340px, 62svh, 620px); overflow: clip; background: var(--color-deep); }
  .hero__media, .hero__media picture { position: absolute; inset: 0; }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
  .hero__content { position: relative; z-index: 1; padding-block: 48px; text-align: center; }
  .hero h1 { color: var(--color-white); text-shadow: 0 2px 16px var(--color-shadow); }
  .hero__lead { margin: 16px auto 0; max-width: 46ch; color: var(--color-white); font-size: var(--step-1); line-height: 1.5; text-shadow: 0 1px 8px var(--color-shadow); }
  .hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
  .hero--home { min-height: clamp(320px, 52svh, 520px); }

  /* ---------- The four companies on the front page ---------- */
  .tiles__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
  .tile { display: grid; justify-items: center; align-content: center; gap: 18px; min-width: 0; min-height: clamp(260px, 34vh, 320px); padding: 32px 20px; text-align: center; color: var(--color-white); }
  .tile--green { background: var(--color-green); }
  .tile--orange { background: var(--color-orange); color: var(--color-on-orange); }
  .tile--red { background: var(--color-red); }
  .tile--blue { background: var(--color-blue); }
  .tile__icon { width: min(200px, 80%); }
  .tile__icon img { width: 100%; height: auto; }
  .tile__title { color: inherit; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }

  /* ---------- Products ---------- */
  .section-title { font-size: var(--step-2); font-weight: 700; text-align: center; }
  .section-title::after { content: ""; display: block; width: 64px; height: 2px; margin: 28px auto 0; background: var(--color-accent); }
  .products__intro { margin: 0 auto var(--space-head); max-width: 52ch; text-align: center; font-size: var(--step-1); line-height: 1.6; }
  .products__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: var(--space-head) 0 0; padding: 0; list-style: none; }
  .products__intro + .products__list { margin-top: 0; }
  .product { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 32px 20px; text-align: center; border-bottom: 1px solid var(--color-line); }
  .product picture { display: grid; place-items: center; height: 200px; margin-bottom: 12px; }
  .product img { max-height: 200px; width: auto; }
  .product h3 { color: var(--color-text-muted); }
  .product p { margin: 0; font-size: 0.95rem; line-height: 1.7; }
  .products__more { margin: 40px 0 0; max-width: none; text-align: center; }

  /* ---------- Suppliers ---------- */
  .suppliers { padding-top: 0; }
  .suppliers__top, .suppliers__list { display: grid; align-items: center; justify-items: center; margin: 0; padding: 0; list-style: none; }
  .suppliers__top { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin-block: var(--space-head) 24px; }
  .suppliers__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 24px; }
  /* The cell is full width, so each logo has its height before it loads (no jump while scrolling, CLS) */
  .suppliers li { display: grid; justify-items: center; width: 100%; min-width: 0; }
  .suppliers__top img { width: 100%; max-width: 230px; height: auto; }
  .suppliers__list img { width: 100%; max-width: 170px; height: auto; }

  /* ---------- «Hvorfor velge …»: the company's mark beside the text ---------- */
  .about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
  .about__media { justify-self: center; width: min(100%, 460px); }
  .about__media--photo { width: min(100%, 240px); justify-self: start; }
  .about__media img { width: 100%; height: auto; }
  .about__text h2 { margin-bottom: 4px; }
  .checklist { margin: 0.5em 0 0; padding-left: 1.2em; }
  .checklist li { padding-left: 4px; }

  /* ---------- The coloured rows: text in the company colour beside a photo ---------- */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split__text { display: grid; align-content: center; min-width: 0; padding: clamp(40px, 6vw, 96px) clamp(20px, 6vw, 96px); }
  .split__media { min-width: 0; min-height: clamp(280px, 40vw, 620px); position: relative; }
  .split__media picture { position: absolute; inset: 0; }
  .split__media img { width: 100%; height: 100%; object-fit: cover; }
  .split--flip .split__media { order: -1; }
  .split--green { background: var(--color-green); }
  .split--orange { background: var(--color-orange); }
  .split--red { background: var(--color-red); }
  .split--blue { background: var(--color-blue); }
  .split--white { background: var(--color-surface); }
  :is(.split--green, .split--red, .split--blue) :is(h2, p, a) { color: var(--color-white); }
  .split--orange :is(h2, p, a) { color: var(--color-on-orange); }
  .split h2 { margin-bottom: 4px; }
  .split--white p { margin-bottom: 0.6em; }
  .split--white .btn--line { margin-top: 12px; }

  /* ---------- The form on the front page ---------- */
  [data-form] { background: var(--color-alt); }
  [data-form] h2 { font-weight: 700; }
  /* Two fields per row on a wide screen, so the whole form fits a laptop screen (L13) */
  @media (min-width: 900px) {
    [data-form] .form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
    [data-form] .form > :is(.form__summary, [data-topic-line], .field__hint, .field:has(textarea), [data-submit-row]) { grid-column: 1 / -1; }
  }

  /* ---------- Desktop with little room: the five links in the header ---------- */
  @media (min-width: 900px) and (max-width: 1099.98px) {
    .site-nav a:not(.btn) { padding: 0 7px; font-size: 0.875rem; }
    .site-header__logo img { height: 48px; }
  }

  /* ---------- Phone (the one breakpoint, 900 px) ---------- */
  @media (max-width: 899.98px) {
    .site-header { border-top-width: 8px; }
    .site-header__logo img { height: 48px; }
    .hero { min-height: clamp(320px, 62svh, 520px); }
    .hero--home { min-height: clamp(300px, 56svh, 480px); }
    .hero__buttons { flex-direction: column; align-items: center; }
    .hero__buttons .btn { min-width: 240px; }
    .tiles__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tile { min-height: 0; padding: 28px 12px; gap: 14px; }
    .tile__icon { width: min(140px, 80%); }
    .tile__title { font-size: 1rem; }
    .products__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .product { padding: 24px 8px; }
    .product picture { height: 140px; }
    .product img { max-height: 140px; }
    .suppliers__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .suppliers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
    .about__grid { grid-template-columns: minmax(0, 1fr); }
    .about__media { width: min(100%, 320px); }
    .about__media--photo { justify-self: center; width: min(100%, 240px); }
    .split { grid-template-columns: minmax(0, 1fr); }
    .split--flip .split__media { order: 0; }
    .split__media { min-height: 0; aspect-ratio: 4 / 3; }
    .site-footer__legal p:last-child { margin-left: 0; }
  }

  /* Long product names («Forbrenningstoalett») do not fit two columns in capitals on a phone */
  @media (max-width: 519.98px) {
    .product h3 { text-transform: none; font-weight: 700; }
  }

  @media (max-width: 379.98px) {
    .tiles__list, .products__list { grid-template-columns: minmax(0, 1fr); }
  }
}

/* ---------- Unlayered: what Akari Engine injects (E1, E2) ---------- */
body #cc-main {
  --cc-btn-primary-bg: var(--color-accent);
  --cc-btn-primary-color: var(--color-on-accent);
  --cc-btn-primary-hover-bg: var(--color-deep);
  --cc-btn-primary-hover-color: var(--color-on-deep);
  --cc-toggle-on-bg: var(--color-accent);
  --cc-toggle-on-knob-bg: var(--color-surface);
}
body .floating-cookie-btn {
  position: fixed; left: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 31;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--color-accent); color: var(--color-on-accent);
}
body .ae-privacy-notice { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-text-muted); }

/* ---------- Unlayered, and last: [hidden] always hides (L12) ---------- */
[hidden]:not([hidden="until-found"]) { display: none; }
