/* ==========================================================================
   Innoteck website styles

   The tokens on :root are the source of truth for exact values; section 0
   of context/05-design-system.md summarises them and the reasoning is in
   context/06-decisions.md. Change a token here rather than hard-coding
   values elsewhere.

   File order:
   1. Font face
   2. Design tokens
   3. Reset
   4. Base typography
   5. Layout utilities
   6. Components
   7. Sections
   8. Responsive
   ========================================================================== */


/* 1. Font face
   --------------------------------------------------------------------------
   Self-hosted (assets/fonts/), SIL Open Font License 1.1. No third-party
   font requests.
   - Geist v1.7.2 (Geist-OFL.txt): body text, navigation, labels, buttons.
   - Albert Sans, Latin subset incl. æ ø å (AlbertSans-OFL.txt):
     headings h1 to h4. */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/AlbertSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* 2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour: approved core palette */
  --color-white: #FFFFFF;      /* primary background */
  --color-ink: #111111;        /* primary text and headings */
  --color-ink-soft: #4A4A4A;   /* dark grey: small-capitals labels and fact rows (about 8.9:1 on white) */
  --color-accent: #1E9BE0;     /* Innoteck blue: logo, large headline words, icons, dots (3.1:1 on white, large text only) */
  --color-action: #0077B6;     /* action blue: main button, link hovers (4.9:1 on white) */
  --color-action-hover: #005A8C; /* deep blue: hover on action-blue elements */
  --color-surface: #F2F8FA;    /* light blue surface: section bands, cards */
  --color-structure: #7A7A7A;  /* structural grey, never used for text */

  /* Colour: roles */
  --color-bg: var(--color-white);
  --color-text: var(--color-ink);
  --color-card: var(--color-surface);

  /* Tints derived from approved colours, for structural lines and
     secondary data marks only. No new hues. */
  --color-line: rgb(122 122 122 / 0.25);         /* from --color-structure */
  --color-hairline: rgb(17 17 17 / 0.06);         /* card and panel edges, from --color-ink */
  /* Soft horizontal divider: full strength in the middle, a short fade at
     both ends */
  --line-soft-x: linear-gradient(to right, rgb(122 122 122 / 0) 0%, var(--color-line) 12%, var(--color-line) 88%, rgb(122 122 122 / 0) 100%);
  --shadow-soft: 0 1px 2px rgb(0 60 100 / 0.06), 0 6px 16px rgb(0 60 100 / 0.07);

  /* Focus indicator. Uses ink rather than blue so it stays clearly
     visible against white and blue-white surfaces. */
  --focus-color: var(--color-ink);
  --focus-width: 2px;
  --focus-offset: 3px;

  /* Typography: family and weights */
  --font-display: "Albert Sans", "Geist", system-ui, sans-serif;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Typography: fluid sizes between about 375px and 1200px viewports */
  --text-hero: clamp(2.75rem, 2rem + 2.6vw, 4rem);                 /* 44 → 64px */
  --text-section: clamp(1.875rem, 1.6477rem + 0.9697vw, 2.375rem); /* 30 → 38px */
  --text-subsection: 1.5rem;                                       /* 24px */
  --text-card: 1.25rem;                                            /* 20px */
  --text-lead: 1.25rem;                                            /* 20px */
  --text-body: 1.0625rem;                                          /* 17px */
  --text-nav: 0.9375rem;                                           /* 15px */
  --text-small: 0.8125rem;                                         /* 13px */

  /* Typography: line heights */
  --leading-hero: 1.04;
  --leading-section: 1.2;
  --leading-card: 1.3;
  --leading-body: 1.6;

  /* Typography: tracking */
  --tracking-display: -0.025em;
  --tracking-small: 0.01em;

  /* Layout */
  --container-max: 1200px;
  --reading-max: 40rem;                                  /* 640px */
  --gutter: clamp(1.25rem, 0.4545rem + 3.3939vw, 3rem);  /* 20 → 48px */
  --grid-gap: 1.5rem;                                    /* 24px column gap */

  /* Spacing */
  --space-section: clamp(4rem, 3.0909rem + 3.8788vw, 6rem);      /* 64 → 96px */
  --space-heading: clamp(2rem, 1.5455rem + 1.9394vw, 3rem);      /* 32 → 48px */
  --space-group: clamp(3rem, 2.5455rem + 1.9394vw, 4rem);        /* 48 → 64px */
  --space-card: clamp(1.5rem, 1.3295rem + 0.7273vw, 2rem);       /* 24 → 32px */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;

  /* Shape */
  --radius-card: 12px;
  --radius-button: 8px;

  /* Components */
  --header-height: 64px;   /* 72px on desktop, set in media queries */
  --button-height: 48px;
  --button-padding-x: 1.75rem;
  --icon-height: 2.25rem;  /* shared visual height for all icons (36px) */

  /* Motion (non-essential motion is disabled under reduced motion) */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-reveal: 500ms;   /* scroll reveal (decision 24) */
  --reveal-distance: 12px;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Breakpoints (reference only; custom properties cannot be used in
     media queries). Desktop is the base; smaller screens are added as
     overrides. Ranges, tuned by testing: 1280px and up approved desktop,
     about 1024–1279px small desktop, about 768–1023px tablet, below
     768px mobile. */
}


/* 3. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keeps anchored headings clear of the header once it becomes sticky */
  scroll-padding-top: var(--header-height);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25em;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* <picture> only chooses the file (WebP with PNG fallback); it takes no
   part in the layout, so the image inside is styled and placed as before */
picture {
  display: contents;
}

/* Without this, a <source> would become a layout item of its own inside
   grids such as the icon badges. File selection is unaffected. */
picture > source {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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


/* 4. Base typography
   -------------------------------------------------------------------------- */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  color: var(--color-ink);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-hero);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-section);
  letter-spacing: var(--tracking-display);
}

h3 {
  font-size: var(--text-card);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-card);
}

h4 {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-card);
}

p {
  max-width: var(--reading-max);
  text-wrap: pretty;
}

/* Default vertical rhythm between consecutive text elements */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
p + p {
  margin-top: var(--space-sm);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-white);
  color: var(--color-ink);
  font-weight: var(--weight-medium);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Text for screen readers only (for example "åbner i en ny fane") */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  /* Read as written, not in the small capitals of its parent */
  text-transform: none;
}

/* Reveal on scroll (decision 24): section intros, groups and feature items
   fade up once as they come into view, all with the same motion. js/main.js
   marks the elements and adds .has-reveal only when motion is allowed, so
   without JavaScript or with reduced motion everything is simply visible.
   Content already on screen when the page loads is shown at once. */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
}

/* The transition sits on the revealed state only: hiding is instant */
.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--duration-reveal) var(--ease-standard),
    transform var(--duration-reveal) var(--ease-standard);
  transition-delay: var(--reveal-delay, 0ms);
}

@media print {
  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* Accent words in a headline (approved: "bedre indsigt" in the hero) */
.text-accent {
  color: var(--color-accent);
}


/* 5. Layout utilities
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  :root {
    --header-height: 72px;
  }
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 12-column grid shared by the section compositions */
.hero__layout,
.solution,
.cloud,
.contact-layout,
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

/* Major sections: spacing sits above each section so consecutive white
   sections are separated by one gap, not two. */
.section {
  padding-top: var(--space-section);
}

.section--surface {
  /* Light blue band that fades softly into white at the top and bottom,
     instead of hard edges (sensor and Cloud sections) */
  background-color: var(--color-bg);
  background-image: linear-gradient(
    to bottom,
    var(--color-bg) 0%,
    var(--color-surface) 28%,
    var(--color-surface) 72%,
    var(--color-bg) 100%
  );
  padding-bottom: var(--space-section);
}

/* Cloud: the fade at the bottom starts lower, so the feature row below the
   illustration still sits on light blue. Classes, not the section IDs, so
   the English page (English IDs) shares these rules. */
.section--cloud {
  padding-top: calc(var(--space-section) * 0.75);
  background-image: linear-gradient(
    to bottom,
    var(--color-bg) 0%,
    var(--color-surface) 22%,
    var(--color-surface) 86%,
    var(--color-bg) 100%
  );
}

/* A white section followed by a surface section needs its own bottom space */
.hero:has(+ .section--surface) {
  padding-bottom: var(--space-section);
}

/* Tighter transitions next to the light-blue bands: their soft fade
   already adds space, so the neighbouring white sections use less */
.section:has(+ .section--surface) {
  padding-bottom: var(--space-group);
}

.section--surface + .section {
  padding-top: var(--space-group);
}

main > .section:last-child {
  padding-bottom: var(--space-section);
}

/* Section intro: heading plus short supporting copy */
.section-intro h2 + p {
  margin-top: var(--space-md);
}


/* 6. Components
   -------------------------------------------------------------------------- */

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding-inline: var(--button-padding-x);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  /* Buttons share the small-capitals voice; 14px keeps the main action
     slightly stronger than the 13px navigation */
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.button--primary {
  background-color: var(--color-action);
  color: var(--color-white);
}

.button--primary:hover {
  background-color: var(--color-action-hover);
}

/* Use-case cards: the whole card sits on the pale-blue surface, with a
   small reserved graphic area beside the title and text. */
.card {
  display: grid;
  grid-template-columns: 16.25rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--space-md);
  align-items: start;
  padding: var(--space-card);
  background-color: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  transition: border-color var(--duration-base) var(--ease-standard);
}

/* Calm hover: the hairline turns blue and the illustration grows slightly.
   Cards are not links, so no colour flip. Only on devices with a real
   pointer, so a tap on a touch screen does not leave it stuck. The zoom is
   left out entirely under reduced motion. */
@media (hover: hover) {
  .card:hover {
    border-color: rgb(30 155 224 / 0.4);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover .card__visual img {
    transform: scale(1.04);
  }
}

.card__visual {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 260 × 160px. A fixed height (not a proportion) keeps the card height
     unchanged; the tallest artwork overhangs by about 3px top and bottom,
     which falls inside its own transparent margin. */
  width: 16.25rem;
  height: 10rem;
}

/* Illustrations (1536 × 1024, transparent) shown whole and centred in
   the visual area, directly on the pale-blue card */
.card__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--duration-base) var(--ease-standard);
}

.card p {
  margin-top: var(--space-xs);
}

/* Position dots for the swipeable cards: mobile only (see section 8) */
.carousel-dots {
  display: none;
}

/* Feature icons (Ekstra data and Cloud rows, above the headings).
   Trimmed files keep an 8px transparent margin. Every icon has the same
   height and its natural width, so headings stay aligned and each symbol
   sits flush with the heading's left edge. */
.feature-icon {
  display: block;
  width: auto;
  height: var(--icon-height);
  margin-bottom: var(--space-sm);
  object-fit: contain;
}

/* Icon badge: white circle holding a feature icon. Used on the light blue
   surfaces (sensor key points, Ekstra data, Cloud features). */
.icon-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-sm);
  background-color: var(--color-white);
  border: 1px solid rgb(30 155 224 / 0.14);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.icon-badge .feature-icon {
  height: 1.75rem;
  max-width: 2.5rem;
  margin-bottom: 0;
}

.icon-badge--small {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0;
}

.icon-badge--small .feature-icon {
  height: 1.5rem;
  max-width: 2.125rem;
}

/* Small label in capitals, the same voice as the hero credibility line:
   dark grey with a blue dot (e.g. "Tilvalg") */
.label,
.hero__facts,
.facts {
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.label::before,
.hero__facts li::before,
.facts li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-small);
}

.lang-switch__item + .lang-switch__item::before {
  content: "/";
  content: "/" / "";
  margin-right: var(--space-xs);
}

/* The other language: a link in soft grey, action blue on hover. The
   current language is plain text (ink; action blue in the menu). */
a.lang-switch__item {
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a.lang-switch__item:hover {
  color: var(--color-action);
}


/* 7. Sections
   -------------------------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Frosted glass: translucent white with a soft blur, so content shows
     faintly through while scrolling. Browsers without backdrop-filter
     simply show the translucent white. */
  background-color: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--color-hairline);
  transition: border-color var(--duration-fast) var(--ease-standard);
}

/* At the top of the page the header blends into the white hero; the
   hairline fades in once the page scrolls (js/main.js) or the menu opens.
   Without JavaScript the line is always shown. */
.js .site-header:not(.is-scrolled, .is-menu-open) {
  border-bottom-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: var(--header-height);
}

.site-header__logo {
  flex: none;
}

.site-header__logo img {
  width: 140px;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  gap: var(--space-lg);
  padding: 0;
  list-style: none;
}

/* Navigation in small capitals, the same voice as the credibility line
   and the "Tilvalg" label */
.site-nav__list a {
  font-size: var(--text-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav__list a {
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current] {
  color: var(--color-action);
}

/* The section being read (js/main.js): action blue with a thin line under
   the word, so it does not rely on colour and differs from a hover. The
   menu below 1024px uses semibold instead (section 8). */
.site-nav__list a[aria-current] {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* DA / EN after the navigation, set off by a hairline divider */
.site-header__utility {
  display: flex;
  align-items: center;
  padding-left: var(--space-lg);
  border-left: 1px solid var(--color-line);
}

/* Touch screens (including tablets showing the desktop layout): invisible
   44px tall tap areas around the language link and the desktop navigation
   links, which are drawn smaller. Nothing moves. */
@media (pointer: coarse) {
  /* The footer's privacy link (small text): a 44px tall tap area */
  .site-footer__privacy {
    position: relative;
  }

  .site-footer__privacy::after {
    content: "";
    position: absolute;
    inset: -12px -8px;
  }

  /* The language link (small text): a 44px tall tap area */
  a.lang-switch__item {
    position: relative;
  }

  a.lang-switch__item::after {
    content: "";
    position: absolute;
    inset: -14px -10px;
  }
}

/* The menu rows below 1024px are already 56px tall */
@media (pointer: coarse) and (min-width: 1024px) {
  .site-nav__list a {
    position: relative;
  }

  .site-nav__list a::after {
    content: "";
    position: absolute;
    inset: -14px -8px;
  }
}

/* Menu button and the language switch inside the menu: below 1024px only
   (see section 8) */
.menu-toggle,
.site-nav__extras {
  display: none;
}

/* Hero: text on the left, one large reserved illustration area right */
.hero {
  padding-top: var(--space-section);
}

.hero__layout {
  align-items: center;
}

.hero__content {
  grid-column: 1 / span 6;
}

.hero__content h1 {
  max-width: 11em;
  /* Tighter tracking than the section headings */
  letter-spacing: -0.035em;
}

/* Subheading: the second voice of the hero. Larger and with a tighter
   line-height than body copy, so it reads as a display line; regular
   weight keeps it lighter than the headline. */
.hero__lead {
  margin-top: var(--space-lg);
  max-width: 24em;
  font-size: var(--text-subsection);
  font-weight: var(--weight-regular);
  line-height: var(--leading-card);
  letter-spacing: -0.01em;
  text-wrap: balance;
}


.hero__content .button {
  margin-top: var(--space-lg);
}

/* Credibility line: three confirmed facts (context/01) in small dark-grey
   capitals below a hairline, separated by small blue dots */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md) 0 0;
  list-style: none;
  background-image: var(--line-soft-x);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  white-space: nowrap;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}


.hero__visual {
  grid-column: 7 / span 6;
}

/* Trimmed illustration (1390 × 798, transparent): shown whole at its
   natural proportion; width/height attributes reserve its space. It grows
   about 12% by extending into the column gap (left) and the page gutter
   (right), so it never overlaps the text or causes sideways scrolling. */
.hero__visual img {
  display: block;
  width: calc(100% + var(--grid-gap) + var(--gutter));
  max-width: none;
  height: auto;
  /* The master's proportion: the smaller WebP sizes differ by a fraction
     of a pixel through rounding, which would otherwise change the height */
  aspect-ratio: 1390 / 798;
  margin-left: calc(-1 * var(--grid-gap));
  object-fit: contain;
}

/* Kundetælling: the sensor on the left as the main visual; the text
   block and the four key points (2×2) together on the right. */
/* Kundetælling gets a little more vertical air than other sections */
.section--counting {
  padding-top: calc(var(--space-section) * 1.25);
  padding-bottom: var(--space-section);
}

/* The outer 1fr rows centre the text and key points as one group
   against the taller sensor */
.solution {
  grid-template-rows: 1fr auto auto 1fr;
  align-items: start;
}

.solution__sensor {
  position: relative;
  grid-column: 1 / span 6;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: center;
  width: 100%;
}

/* Signal rings: faint concentric circles behind the sensor, suggesting its
   detection field */
.solution__sensor::before {
  content: "";
  position: absolute;
  left: 35%;
  top: 50%;
  width: 92%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 30%, rgb(30 155 224 / 0.3) 30.4%, transparent 31%,
    transparent 46%, rgb(30 155 224 / 0.22) 46.4%, transparent 47%,
    transparent 62%, rgb(30 155 224 / 0.14) 62.4%, transparent 63%
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  pointer-events: none;
}

/* Soft ground shadow so the sensor rests on the surface */
.solution__sensor::after {
  content: "";
  position: absolute;
  left: 4%;
  bottom: -22px;
  width: 64%;
  height: 44px;
  background: radial-gradient(ellipse at center, rgb(0 60 100 / 0.3), rgb(0 60 100 / 0) 70%);
  filter: blur(4px);
}

.solution__sensor img {
  /* About 70% of its column, aligned with the content's left edge (the
     same line as the text in the other sections) */
  position: relative;
  z-index: 1;
  width: 70%;
  margin-inline: 0 auto;
  /* Mirror so the sensor faces the text. Remove this line to revert. */
  transform: scaleX(-1);
}

.solution__intro {
  grid-column: 7 / span 6;
  grid-row: 2;
}

/* Key points: four parts of one solution, not numbered steps */
.key-points {
  grid-column: 7 / span 6;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
  margin-top: var(--space-group);
  padding: 0;
  list-style: none;
}

.key-points__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--weight-medium);
  line-height: var(--leading-card);
}


/* Data: stacked intro, 2×2 surface cards, lighter text-led extras */
/* "Standard" label above the heading, pairing with "Tilvalg" below */
.data__intro .data__label {
  margin-bottom: var(--space-sm);
}

.data__intro p {
  max-width: 36rem;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-heading);
  padding: 0;
  list-style: none;
}

/* Ekstra data: open, no panel. "Tilvalg" label, heading and intro on top,
   then the four optional capabilities in one row, each icon in a white
   circular badge. */
.extra-data {
  margin-top: var(--space-group);
}

.extra-data__intro {
  max-width: var(--reading-max);
}

.extra-data__intro h3 {
  margin-top: var(--space-sm);
  font-size: var(--text-subsection);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
}

.extra-data__intro h3 + p {
  margin-top: var(--space-sm);
}

.extra-data__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg) var(--grid-gap);
  margin-top: var(--space-heading);
  padding: 0;
  list-style: none;
}

.extra-data__list h4 {
  font-weight: var(--weight-semibold);
}

.extra-data__list p {
  margin-top: var(--space-xs);
  font-size: var(--text-nav);
}

/* Innoteck Cloud: full-width surface section, visual left, text right */
.cloud {
  align-items: center;
}

.cloud__visual {
  position: relative;
  isolation: isolate;
  grid-column: 7 / span 6;
  grid-row: 1;
}

/* Trimmed artwork (1182 × 842, transparent): shown whole at its natural
   proportion. The width/height attributes reserve its space while loading. */
.cloud__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1182 / 842;   /* the master's proportion, as for the hero */
  object-fit: contain;
}

.cloud__intro {
  grid-column: 1 / span 5;
  grid-row: 1;
}

/* Fact row under the Cloud intro, the same voice as the hero credibility
   line (confirmed facts: ongoing updates, Excel/CSV export, API) */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md) 0 0;
  list-style: none;
  background-image: var(--line-soft-x);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  white-space: nowrap;
}

.facts li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.cloud-features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  margin-top: var(--space-group);
  padding: 0;
  list-style: none;
}

/* Hairline before each feature (Cloud and Ekstra data): slightly shorter
   than the item and fading out softly at both ends */
.cloud-features li,
.extra-data__list li {
  position: relative;
  padding-left: var(--space-md);
}

.cloud-features li::before,
.extra-data__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgb(122 122 122 / 0) 0%,
    var(--color-line) 25%,
    var(--color-line) 75%,
    rgb(122 122 122 / 0) 100%
  );
}

.cloud-features h3 {
  font-size: var(--text-body);
}

.cloud-features p {
  margin-top: var(--space-xs);
  font-size: var(--text-nav);
}

/* Kontakt: centred closing composition. Heading and intro, then the phone
   number and email address with their icon badges, side by side and
   separated by a hairline. The gap above them is the standard space
   between a section intro and its content. */
.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-layout__intro p {
  margin-inline: auto;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-heading);
}

.contact__rows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.contact__row {
  display: flex;
  align-items: center;
  padding-inline: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-lead);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}

.contact__row + .contact__row {
  position: relative;
}

/* Divider between contact rows, with soft ends like the feature rails */
.contact__row + .contact__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgb(122 122 122 / 0) 0%,
    var(--color-line) 25%,
    var(--color-line) 75%,
    rgb(122 122 122 / 0) 100%
  );
}

/* The whole row (icon and text) is the link: a 48px tall target */
.contact__row a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.contact__row a:hover {
  color: var(--color-action);
}

/* Contact icon in a white badge, matching the other icon badges */
.contact__icon {
  box-sizing: border-box;
  flex: none;
  width: 3rem;
  height: 3rem;
  padding: 0.8rem;
  background-color: var(--color-white);
  border: 1px solid rgb(30 155 224 / 0.14);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  object-fit: contain;
}

/* Privacy policy pages (privatliv/, en/privacy/): one reading column on
   the site grid, left edge aligned with the logo like the section intros.
   Decision 27. */
.legal__header h1 {
  font-size: var(--text-section);
  line-height: var(--leading-section);
}

.legal__company {
  margin-top: var(--space-xs);
  font-weight: var(--weight-semibold);
}

.legal__updated {
  margin-top: var(--space-sm);
}

.legal__body {
  margin-top: var(--space-heading);
}

.legal__body > * {
  max-width: var(--reading-max);
}

.legal__body h2 {
  margin-top: var(--space-lg);
  font-size: var(--text-card);
  line-height: var(--leading-card);
  letter-spacing: 0;
}

.legal__body > :first-child {
  margin-top: 0;
}

.legal__body h2 + p,
.legal__body h2 + ul,
.legal__body p + ul {
  margin-top: var(--space-xs);
}

.legal__body ul + p {
  margin-top: var(--space-sm);
}

.legal__body li + li {
  margin-top: 0.25rem;
}

/* Header of the privacy pages: the logo and DA / EN on every width */
.site-header--simple .site-header__utility {
  display: flex;
  margin-left: auto;
  padding-left: 0;
  border-left: 0;
}

/* 404 page (deploy/404.html): one message, in the space between the header
   and the footer. Danish by default; English when the page's script finds
   English first among the browser's languages. */
.not-found {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 8rem);
}

.not-found__message[lang="en"],
.lang-en .not-found__message[lang="da"],
.site-footer__privacy[lang="en"],
.lang-en .site-footer__privacy[lang="da"] {
  display: none;
}

.lang-en .not-found__message[lang="en"],
.lang-en .site-footer__privacy[lang="en"] {
  display: block;
}

.not-found h1 {
  font-size: var(--text-section);
  line-height: var(--leading-section);
}

.not-found .button {
  margin-top: var(--space-lg);
}

/* Footer: white, compact, subtle divider */
.site-footer {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-line);
  font-size: var(--text-nav);
}

.site-footer__inner {
  align-items: start;
  row-gap: var(--space-md);
}

.site-footer p + p {
  margin-top: 0;
}

/* Half the grid, so the address stays on one line down to tablet */
.site-footer__company {
  grid-column: 1 / span 6;
}

.site-footer__name {
  font-weight: var(--weight-semibold);
}

.site-footer a {
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.site-footer a:hover {
  color: var(--color-action);
}

/* Right column: the privacy policy link above the copyright line */
.site-footer__meta {
  grid-column: 7 / span 6;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  font-size: var(--text-small);
}

/* Small, with a light underline: recognisable as a link without drawing
   attention. On the privacy page itself it marks the current page. */
.site-footer .site-footer__privacy {
  text-decoration: underline;
  text-decoration-color: var(--color-line);
  text-underline-offset: 0.25em;
}

.site-footer .site-footer__privacy:hover {
  text-decoration-color: currentColor;
}

.site-footer .site-footer__privacy[aria-current] {
  color: var(--color-ink-soft);
  text-decoration: none;
}


/* 8. Responsive
   --------------------------------------------------------------------------
   The approved desktop (1280px and up) is the base above; the rules below
   only override it for smaller screens. Ranges: small desktop 1024–1279px,
   tablet 768–1023px, mobile below 768px. Approved design:
   context/05-design-system.md, section 0; decisions 20–22. */

/* Small desktop and below: the Data cards put the illustration above the
   text. Beside the 260px illustration the text column becomes too narrow
   for long Danish words such as "Personaleplanlægning". */
@media (max-width: 1279px) {
  .card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .card__visual {
    grid-row: auto;
    width: 100%;
    height: 12rem;
    margin-bottom: var(--space-md);
  }

  /* The box is now wider than it is tall, so the illustration is fitted
     to both its width and its height: it never grows past the box into
     the heading, and keeps its proportions. */
  .card__visual img {
    width: 100%;
    height: 100%;
  }
}

/* Tablet and mobile */
@media (max-width: 1023px) {
  /* Header bar: the logo and the menu button. DA / EN moves into the
     menu, so the utility area is not shown. */
  .site-header__inner {
    gap: var(--space-sm);
  }

  /* With a larger browser text size on a narrow phone the bar can run out
     of room; the logo then shrinks instead of pushing the menu button off
     the screen. No change at the default text size. */
  .site-header__logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header__utility {
    display: none;
  }

  /* Language switch in the menu: the active language in action blue (the
     brand blue is too light for 13px text), the other in neutral grey */
  .site-nav__extras {
    display: flex;
    align-items: center;
  }

  .site-nav__extras .lang-switch {
    gap: 0.625rem;
    letter-spacing: 0.06em;
  }

  .site-nav__extras .lang-switch__item--active {
    color: var(--color-action);
    font-weight: var(--weight-semibold);
  }

  .site-nav__extras .lang-switch__item + .lang-switch__item::before {
    margin-right: 0.625rem;
    color: var(--color-structure);
  }

  /* Without JavaScript: the links stay visible as a wrapping row under
     the logo, with comfortable tap targets. The taller header then scrolls
     away with the page, so it never covers a section heading. */
  html:not(.js) .site-header {
    position: relative;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-block: var(--space-xs);
    row-gap: 0;
  }

  /* The logo row is 36px tall, so the logo sits clear of the links below
     it */
  html:not(.js) .site-header__logo {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
  }

  html:not(.js) .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  html:not(.js) .site-nav__list,
  html:not(.js) .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-md);
  }

  html:not(.js) .site-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  /* With JavaScript: the menu button at the right end of the bar, and the
     navigation as a panel that drops down under the header */
  .js .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: 0.625rem;
    min-width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-button);
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
  }

  .menu-toggle__label {
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Two calm lines that cross into an X when the menu is open */
  .menu-toggle__icon {
    position: relative;
    width: 20px;
    height: 8px;
  }

  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    border-radius: 1px;
    background-color: currentColor;
    transition:
      top var(--duration-base) var(--ease-standard),
      transform var(--duration-base) var(--ease-standard);
  }

  .menu-toggle__icon::before {
    top: 0;
  }

  .menu-toggle__icon::after {
    top: calc(100% - 1.5px);
  }

  .is-menu-open .menu-toggle__icon::before,
  .is-menu-open .menu-toggle__icon::after {
    top: calc(50% - 0.75px);
  }

  .is-menu-open .menu-toggle__icon::before {
    transform: rotate(45deg);
  }

  .is-menu-open .menu-toggle__icon::after {
    transform: rotate(-45deg);
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height));
    margin: 0;
    overflow-y: auto;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-hairline);
    box-shadow: 0 16px 32px rgb(0 60 100 / 0.07);
  }

  .js .is-menu-open .site-nav {
    display: block;
  }

  .js .site-nav__list,
  .js .site-nav__extras {
    max-width: calc(var(--container-max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .js .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding-top: var(--space-xs);
  }

  /* Soft dividers between the links, like the feature rows */
  .js .site-nav__list li + li {
    background-image: var(--line-soft-x);
    background-size: 100% 1px;
    background-repeat: no-repeat;
  }

  .js .site-nav__list a {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    font-size: var(--text-nav);
  }

  /* The section being read: semibold action blue, like the active
     language below, without the desktop underline */
  .js .site-nav__list a[aria-current] {
    font-weight: var(--weight-semibold);
    text-decoration-line: none;
  }

  .js .site-nav__extras {
    padding-block: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--color-hairline);
  }

  /* Light-blue bands: a fixed-length fade at top and bottom. Stacked
     sections grow much taller, and a percentage fade would turn large
     parts of them white. */
  .section--surface,
  .section--cloud {
    background-image: linear-gradient(
      to bottom,
      var(--color-bg) 0,
      var(--color-surface) 6rem,
      var(--color-surface) calc(100% - 6rem),
      var(--color-bg) 100%
    );
  }

  /* Hero: one column, the illustration below the text */
  .hero {
    padding-top: var(--space-group);
    overflow-x: clip;
  }

  .hero__layout {
    display: flex;
    flex-direction: column;
  }

  .hero__content {
    max-width: 36rem;
  }

  /* The artwork sits balanced between the text and the start of the
     Kundetælling band: more space above it and less hero padding below it
     (the band's own fade supplies the rest), so the page gets no longer.
     The bottom padding is set per range below. */
  .hero__visual {
    /* Full column width: the centred column would otherwise size it to the
       image's intrinsic width, which depends on the file the browser
       picks (WebP sizes) */
    width: 100%;
    margin-top: var(--space-section);
  }

  /* Optical centring (decision 22): the visible artwork is placed, not the
     image box. The artwork spans 6.69% to 98.13% of the PNG's width
     (91.44%), and most of its weight is the dashboard on the right.
     --hero-art is the artwork's width in the column, --hero-nudge moves it
     left of the geometric centre; both are set per range below. */
  .hero__visual img {
    width: calc(var(--hero-art) / 0.9144);
    max-width: none;
    margin-left: calc((100% - var(--hero-art)) / 2 - var(--hero-nudge) - var(--hero-art) / 0.9144 * 0.0669);
  }

  /* Kundetælling: the sensor beside the text, the four key points in one
     row below (mobile stacks them, see below) */
  .solution {
    grid-template-rows: auto auto;
    row-gap: var(--space-heading);
  }

  .solution__sensor {
    grid-column: 1 / span 5;
    grid-row: 1;
  }

  .solution__sensor img {
    width: 86%;
  }

  .solution__intro {
    grid-column: 6 / span 7;
    grid-row: 1;
    align-self: center;
  }

  .key-points {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
  }

  .key-points__item {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Ekstra data and Cloud features: 2×2 with the soft rails */
  .extra-data__list,
  .cloud-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-lg);
  }

  /* Cloud: text and illustration side by side */
  .cloud__intro {
    grid-column: 1 / span 6;
  }

  .cloud__visual {
    grid-column: 7 / span 6;
  }
}

/* Tablet: more generous margins and gaps, so the two-column layouts can
   breathe */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --gutter: 2.5rem;    /* 40px */
  }

  /* Hero artwork: 84% of the column, at most 640px so it never outweighs
     the headline on larger tablets, nudged 2.5% left of centre */
  .hero {
    --hero-art: min(84%, 40rem);
    --hero-nudge: 2.5%;
  }

  .hero:has(+ .section--surface) {
    padding-bottom: var(--space-lg);
  }

  .solution,
  .cloud {
    column-gap: var(--space-lg);
  }

  .key-points {
    gap: var(--space-lg);
  }

  .use-cases {
    gap: var(--space-md);
  }

  .card {
    padding: var(--space-lg);
  }

  .card__visual {
    height: 10.5rem;
  }

  .extra-data__list,
  .cloud-features {
    column-gap: var(--space-lg);
  }

  .site-footer {
    padding-block: var(--space-lg) var(--space-heading);
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --gutter: 1.5rem;        /* 24px */
    --text-hero: 2.625rem;   /* 42px */
    --leading-hero: 1.08;
  }

  .site-header__logo img {
    width: 120px;
  }

  /* The menu button shows only its icon; the label stays available to
     screen readers as the button's name */
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Hero: the three facts as a quiet stacked list; artwork at 94% of the
     column (at most 544px, so it grows smoothly into the tablet size on
     large phones), nudged 3% so its left edge sits on the content edge */
  .hero {
    --hero-art: min(94%, 34rem);
    --hero-nudge: 3%;
  }

  .hero:has(+ .section--surface) {
    padding-bottom: var(--space-sm);
  }

  .hero__lead {
    margin-top: var(--space-md);
    font-size: var(--text-lead);
  }

  .hero__facts {
    flex-direction: column;
    gap: 0.625rem;
  }

  /* Kundetælling: text, then the sensor centred in its signal rings, then
     the key points as rows with soft dividers */
  .section--counting {
    padding-top: var(--space-section);
  }

  .solution {
    display: flex;
    flex-direction: column;
  }

  .solution__intro {
    order: 1;
  }

  .solution__sensor {
    order: 2;
    margin-block: var(--space-heading) var(--space-group);
  }

  .solution__sensor img {
    width: 58%;
    margin-inline: auto;
  }

  .solution__sensor::before {
    left: 50%;
    width: 84%;
  }

  .solution__sensor::after {
    left: 50%;
    bottom: -18px;
    width: 46%;
    transform: translateX(-50%);
  }

  .key-points {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .key-points__item {
    flex-direction: row;
    align-items: center;
    padding-block: var(--space-sm);
    background-image: var(--line-soft-x);
    background-size: 100% 1px;
    background-repeat: no-repeat;
  }

  .key-points__item:first-child {
    padding-top: 0;
    background-image: none;
  }

  /* Data (decision 21): the four cards in a swipeable row, 84% wide so the
     next card peeks in, snapping card by card. The row runs to the screen
     edges; scroll padding keeps each card aligned with the content. */
  .use-cases {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: var(--space-sm);
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) var(--space-xs);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .use-cases::-webkit-scrollbar {
    display: none;
  }

  .use-cases:focus-visible {
    outline-offset: -2px;
    border-radius: var(--radius-card);
  }

  .card {
    scroll-snap-align: start;
  }

  .card__visual {
    height: 10.5rem;
  }

  /* Position dots under the row: the current card's dot is longer and
     blue. Each dot is a button that jumps to its card. */
  .js .carousel-dots {
    display: flex;
    justify-content: center;
    /* Reserved before the script adds the dots, so nothing below moves */
    min-height: 24px;
    margin-top: var(--space-sm);
  }

  /* 44px tall tap area; the negative margins keep the 24px row */
  .carousel-dots button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 44px;
    margin-block: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .carousel-dots button::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: rgb(122 122 122 / 0.45);
    transition:
      width var(--duration-base) var(--ease-standard),
      background-color var(--duration-base) var(--ease-standard);
  }

  .carousel-dots button[aria-current="true"]::before {
    width: 18px;
    background-color: var(--color-action);
  }

  /* Ekstra data and Cloud features: rows with the icon badge on the left,
     title and text on the right, soft dividers between them */
  .extra-data__list,
  .cloud-features {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .extra-data__list li,
  .cloud-features li {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: var(--space-md);
    align-items: start;
    padding: var(--space-md) 0;
    background-image: var(--line-soft-x);
    background-size: 100% 1px;
    background-repeat: no-repeat;
  }

  .extra-data__list li:first-child,
  .cloud-features li:first-child {
    padding-top: 0;
    background-image: none;
  }

  .extra-data__list li::before,
  .cloud-features li::before {
    display: none;
  }

  .extra-data__list .icon-badge,
  .cloud-features .icon-badge {
    grid-row: 1 / span 2;
    width: 3rem;
    height: 3rem;
    margin: 0;
  }

  .extra-data__list .icon-badge .feature-icon,
  .cloud-features .icon-badge .feature-icon {
    height: 1.5rem;
    max-width: 2.125rem;
  }

  .extra-data__list h4,
  .cloud-features h3 {
    align-self: end;
    padding-top: 0.25rem;
  }

  /* Cloud: text and facts, then the illustration, then the features */
  .cloud {
    display: flex;
    flex-direction: column;
  }

  .cloud__visual,
  .cloud-features {
    margin-top: var(--space-heading);
  }

  /* Kontakt: left-aligned like the other sections (centred on tablet and
     desktop) */
  .contact-layout {
    align-items: flex-start;
    text-align: left;
  }

  .contact-layout__intro p {
    margin-inline: 0;
  }

  .contact {
    align-items: flex-start;
  }

  /* Phone and email stacked: side by side they do not fit a phone width */
  .contact__rows {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .contact__row {
    padding-inline: 0;
  }

  .contact__row + .contact__row::before {
    content: none;
  }

  /* Footer: stacked */
  .site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .site-footer__meta {
    align-items: flex-start;
  }
}
