/* Frigus Kälte und Klima AG — the one stylesheet of the site.
   Black and dark grey grounds, no colour at all (Qing: no blue), one typeface (Inter, served
   from this folder) in one scale, panels without box borders. What Qing turned down on 2026-11-14 and why each rule
   is here: README, "The look". */

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ── tokens ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  /* grounds: black, and dark greys a step apart */
  --bg: #0A0A0A;          /* the page */
  --bg-2: #181818;        /* every other section: a step you can see (Qing: #141414 was too close) */
  --panel: var(--bg-2);   /* cards on the black ground: the one grey (Qing, 2026-11-14: one grey, not two); on a grey section they turn black (below) */
  --deep: #050505;        /* footer */
  --line: rgba(255, 255, 255, .18);        /* hairlines between list rows, header and footer edges */
  /* text: three greys, nothing else */
  --head: #F5F5F5;        /* headings, names, links, the logo */
  --on-photo: #FFFFFF;    /* a heading, a mark or an arrow on a photograph (the hero, the Lösungen row) */
  --on-photo-text: rgba(255, 255, 255, .85);   /* a sentence on a photograph */
  /* the hero's shade lies where the words are, as dark on every screen (Qing: "why on phone the gradient effect is
     less than desktop??"): on a desktop from the left, the words in the middle of the height (Qing: "on desktop, hero
     text too above?"), the photo clear on the right */
  --hero-shade: linear-gradient(90deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .76) 32%, rgba(10, 10, 10, .5) 48%,
                rgba(10, 10, 10, .12) 62%, rgba(10, 10, 10, .05) 72%, rgba(10, 10, 10, 0) 100%);
  /* ... and on a phone, the words in the middle of the height (Qing: "hero text better in middle vertically? on
     phone"): as dark under them, a little under the header at the top and under Kontakt at the foot */
  --hero-shade-mid: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .45) 22%, rgba(10, 10, 10, .85) 40%,
                    rgba(10, 10, 10, .85) 62%, rgba(10, 10, 10, .45) 80%, rgba(10, 10, 10, .6) 100%);
  --underline: rgba(245, 245, 245, .45);       /* a content link's quiet line, before hover */
  --text: #BDBDBD;        /* sentences: 10.5:1 on the page, 9.5:1 on the grey */
  --mute: #9A9A9A;        /* labels, captions, roles: 7.0:1 on the page, 6.3:1 on the grey */
  /* buttons: white with black text (Qing, after grey), 18.1:1 */
  /* the type scale: every size on the site is one of these five (Qing: "consistency and minimum font sizes").
     Three for headings (hero, page title, section), two for text: 20 for what is read (a section's paragraphs, the hero's line, quotes, the points
     of a list, every card's and list point's title), 16 for the small (card text, captions, links and buttons, the
     menu, the footer, the Impressum). Nothing at 17 or 18, and no text size changes with the screen. */
  --fs-hero: clamp(44px, min(7vw, 10.5vh), 140px);   /* scales with the window, a short laptop screen too; up to
     140 px, where "mit Wasser." (4.75 em) fills the hero's text column at the widest wrap (Qing, 2026-11-15: "if big
     browser window, the font too small?"; it stopped at 104 px from 1500 px wide) */
  --fs-hero-line: max(var(--fs-text), calc(var(--fs-hero) / 3.5));   /* the hero's line: the heading's size over 3.5 on
     every screen, as on an iPhone, never under the text size (Qing, 2026-11-15: "too small against «Wir kühlen mit
     Wasser.»? same ratio for phone?"; at a fixed 20 px it was 3.35 to 3.9 on phones, 4.2 at 1280, 7 at 2560) */
  --fs-h1: clamp(36px, 4.4vw, 62px);
  --fs-h2: clamp(30px, 3.3vw, 46px);
  --fs-text: 20px;
  --fs-small: 16px;
  --head-bg: rgba(10, 10, 10, .82);
  --wrap: 1240px;
  --measure: 38em;       /* a long text's line where the columns stack: about 76 characters, as the widest desktop column (616 px) */
  --gut: clamp(20px, 4vw, 48px);
  --hero-pad: clamp(48px, 7vh, 96px);   /* the hero's words from the header above and to the photo's foot, on a phone too */
  --head-h: 84px;         /* the header; the logo in it is the bear and the word, 44 px (Qing, 2026-11-15) */
  /* spacing: every space between two design elements on the site is one of these (Qing: global definitions, so
     the same thing is the same everywhere). Nothing below types a space of its own. */
  --sec: clamp(80px, 9vw, 136px);        /* a section's padding, top and bottom */
  --block-gap: clamp(40px, 5vw, 64px);   /* a text block to what follows it: cards, a quote, a list; a first photo to its title */
  --col-gap: clamp(32px, 6vw, 96px);     /* between the two columns of a grid */
  --head-gap: 24px;                      /* a heading to its text */
  --head-gap-box: calc(var(--head-gap) + .4 * var(--fs-text));   /* a heading to a box: the box starts where a text's
     capitals would, below the leading its first line carries (8 px at 20 px; Qing, 2026-11-16: the Referenzen boxes sat
     visibly closer to their heading than Über uns's text) */
  --title-gap: 12px;                     /* a card's or a step's title to its text */
  --para-gap: 16px;                      /* paragraph to paragraph */
  --action-gap: 28px;                    /* text to the button, link or tags after it */
  --gap: clamp(16px, 2vw, 24px);         /* between cards */
  --card-pad: clamp(24px, 2.4vw, 32px);  /* inside every card; a card's photo to its title */
  --row-pad: 14px;                       /* a list row between its hairlines: every list */
  --icon-gap: 16px;                      /* a point's line drawing, or a quote's portrait, to its words */
  --tight: 4px;                          /* what belongs together: a title to its sentence, a name to its role, a label to its value */
  --small-gap: 8px;                      /* small things side by side: the names, the credit */
  --band-h-head: clamp(420px, 32vw, 520px);   /* a field page's first photo with its title and paragraph on it: tall enough for the longest (Transportkälte) at every width, so one height on every page */
  /* shapes */
  --ratio: 3 / 2;         /* every photo and picture panel, landscape (Qing: the people's upright photos were "not consistent") */
  --r: 0;                 /* every corner of a panel, card or photograph: square (Qing, 2026-11-16: "better everywhere
                             eckige?", "Yes, square"; 8 px before). Circles stay circles: the row's arrows, the portraits */
  --tap: 44px;            /* what a finger needs: every control on a touch screen at least this tall */
  --underline-offset: 5px;   /* a link's line under its words, everywhere */
  --mark-opacity: .9;     /* drawn marks on a ground: the points' line drawings, the partners' logos */
  --ui-ease: .2s;         /* a control's change on hover, focus or tap */
}
@media (min-width: 1600px) { :root { --wrap: 1400px; } }

/* ── base ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }   /* a section reached by a link starts under the header's 1 px line, so nothing of the section above shows, not even a fraction of a pixel (Qing, 2026-11-16: "intended to have some thing from the above sections?"; it was 12 px lower) */
html:focus-within { scroll-behavior: smooth; }   /* a link that arrives at #kontakt lands there at once */
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-small);
  line-height: 1.5;   /* the small text's line spacing everywhere: cards, lists, footer */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--head); font-weight: 600; text-wrap: balance; }
b, strong { font-weight: 600; }   /* one bold on the site: the headings' weight (the browser's own is 700) */
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.032em; }
h3 { font-size: var(--fs-text); line-height: 1.3; letter-spacing: -0.012em; }
h2 { margin-bottom: var(--head-gap); }
p { margin: 0 0 var(--para-gap); }
:is(p, ul, ol, figure):has(+ .link) { margin-bottom: var(--action-gap); }   /* whatever comes before an action */
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
.keep { display: inline-block; }   /* words that move to the next line together */

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--deep); color: var(--head); padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--head); outline-offset: 3px; }

/* ── links: one rule each ─────────────────────────────────────────────────── */
/* no buttons: Kontakt is a menu item like the others (Qing, 2026-11-15: "kontakt on desktop just a menu item not a
   button to be simple") */

/* links. With no accent colour the underline is what marks a link (Qing: make links stand out the same way
   everywhere). Menus and cards say "link" by their place: no line until hover. A link in the content (text links,
   phone and e-mail, the Impressum) is always underlined, a quiet line that turns white on hover. Hover is the same
   2 px white line everywhere. */
.link, .nav a, .site-foot ul a, .person-body a, .prose a, .feats strong a {
  color: var(--head); text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: var(--underline-offset);
}
.link:hover, .nav a:hover, .site-foot ul a:hover, .person-body a:hover {
  text-decoration-line: underline; text-decoration-color: currentColor;
}
.link { display: inline-flex; align-items: center; font-weight: 500; }   /* inline-flex so a phone's 44 px floor applies */
.prose a { font-weight: 500; }
.link, .person-body a, .prose a, .feats strong a {
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: var(--underline-offset);
  text-decoration-color: var(--underline);
}
.link:hover, .person-body a:hover, .prose a:hover, .feats strong a:hover { text-decoration-color: var(--head); text-decoration-thickness: 2px; }
/* the one arrow: a link that leaves the site (a PDF on another server, in a new window) ends in a drawn north-east
   arrow, the same in every browser. Its box is centred on the line, which for Inter is the middle of the capitals */
.link[target]::after, .prose a[target]::after {
  content: ""; flex: none; width: .62em; height: .62em; margin-left: 7px; background: currentColor;
  -webkit-mask: var(--ext) center / contain no-repeat; mask: var(--ext) center / contain no-repeat;
}
:root { --ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10 10 2M4 2h6v6'/%3E%3C/svg%3E"); }

.lead, .sec-head > p, .text-list-copy > p, .split > div > p { font-size: var(--fs-text); line-height: 1.5; }   /* every paragraph of a section's text: one size, no 20 beside 17 (Qing: "not organised") */
/* a section's heading is its menu word; Frigus's own heading opens the first paragraph, bold and white
   (Qing: a visitor who clicks "Produkte" lands on "Produkte", and their heading reads as the first sentence) */
.run-in { color: var(--head); font-weight: 600; }
/* a part of a section under its own heading, a level below the section's (Über uns: how they work) */

/* every section begins the same way (Qing: the first text sits where it sits in Service): its heading and text at
   the top left, then what belongs to it (cards, a list). The big photos are the hero's and each field page's first
   one; nothing inside a section is a big photo (Qing, 2026-11-15: "other places no need big photos"). */
/* the two two-column grids left (a field page's header; Kaltwasser's text and list): one grid, both columns from the
   top, so every title and every first line sits at one height */
/* one column logic for the whole site (Qing: "the consistency should be there for 2-col, 3-col and x-col, logically"):
   every grid has the same outer edges (.wrap) and the same gutter (--gap); rows of the same count share their lines:
   two columns are halves, three are thirds, two plus one sits on the thirds (Referenzen), the five fields are fifths.
   A text column keeps its distance from its neighbour as space inside itself (the side it faces), so the boxes,
   photos, panels and lists stand on the shared lines while text still breathes (--col-gap from its neighbour). */
.text-list, .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--head-gap) var(--gap); align-items: start; }
/* a text-only section (Qing: Kaltwasser and Service are the template): its heading at the top left, as every
   section's; its text starts right under the heading; its points beside the text, centred on it when they are the
   shorter column, level with it when they are the longer one */
.text-list { row-gap: 0; align-items: start; }
.text-list > h2, .text-list > .text-list-copy { grid-column: 1; padding-right: calc(var(--col-gap) - var(--gap)); }   /* the text is the left column */
.text-list > h2 { grid-row: 1; }
.text-list > .text-list-copy { grid-row: 2; }
.text-list > .feats { grid-column: 2; grid-row: 2; align-self: center; }
.text-list > h2 + .feats { grid-row: 2; }   /* a heading with points only */
.points-two > .feats { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: var(--gap); }   /* six points under their head (home Produkte, Produkte's i-290 highlights): three and three in the halves */
.points-two > .feats li:nth-child(3n+1) { padding-top: 0; }   /* the first of each column, as a list's first */
.points-two > .feats li:nth-child(3n) { border-bottom: 0; padding-bottom: 0; }   /* the last of each column, as a list's last */
.split > :first-child { padding-right: calc(var(--col-gap) - var(--gap)); }   /* the text is the left column, as in every row: the heading on the left (Qing) */
/* balance (Qing, asked three times): two columns never end at different heights. A text-only section's text and
   list are centred on each other (Kaltwasser, the template). In a row with a product beside its text, the picture is
   exactly as tall as the text: same top, same foot, at every width */
.split { row-gap: var(--col-gap); align-items: stretch; }
.split > .product-img { aspect-ratio: auto; min-height: 320px; }
.split > .product-img { display: grid; place-items: center; border-radius: var(--r); }   /* a product beside its text: its picture on the manufacturer's ground (Produkte, LYS) */
.split > .product-img img { width: 72%; height: auto; }
/* a heading with nothing under it but cards (Lösungen, Unsere Partner): the cards a heading's gap below it, as a
   heading's text is */
.sec-head:has(> h2:only-child) { margin-bottom: var(--head-gap-box); }   /* a heading alone is followed by boxes (Lösungen's cards, the partners) */
.sec-head > h2:only-child { margin-bottom: 0; }
.sec > .wrap:has(> .sec-head > h2:only-child) + .cells-frame { margin-top: var(--head-gap); }
/* a field page's first photo, full width under the header (.page-hero .band) */
.band { overflow: hidden; background: var(--panel); }
.band img { width: 100%; height: 100%; object-fit: cover; }   /* still (Qing: no scroll movement once the title is on the photo) */
.sec > .wrap + .wrap { margin-top: var(--block-gap); }   /* two blocks one after the other: a block apart */

.frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel); aspect-ratio: var(--ratio); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg);
  -webkit-backdrop-filter: saturate(1.2) blur(16px); backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 32px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* their logo, white on black: in the header the bear and the word without the small line, smaller (Qing, 2026-11-15:
   "the logo on header can be smaller with the text removed below Frigus"); in the footer the whole logo */
.logo { display: block; height: 44px; width: auto; }
.lg-ink { fill: var(--head); }
.lg-body { fill: none; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); margin-left: auto; }
.nav a { font-size: var(--fs-small); font-weight: 500; padding: 8px 0; }
.nav-group { position: relative; }
.nav-top.here { text-decoration-line: underline; text-decoration-color: currentColor; }
/* the five field pages under "Lösungen": a plain dark list, opened by hover or keyboard focus */
.nav-sub {
  position: absolute; left: -16px; top: calc(50% + var(--head-h) / 2 + 1px); z-index: 60; min-width: 220px;   /* opens at the header's foot, clear of the item and its underline (Qing) */
  margin: 0; padding: 10px 0; list-style: none;
  background: var(--bg-2); border-radius: var(--r);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--ui-ease), transform var(--ui-ease), visibility var(--ui-ease);
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }   /* keeps hover across the gap */
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 9px 16px; color: var(--head); white-space: nowrap; }   /* white like every menu item */
.nav-sub a:hover { color: var(--head); }
.nav-sub a[aria-current] { color: var(--head); }
.menu-btn { display: none; }

/* ── home: the hero is the photograph ────────────────────────────────────── */
.hero { position: relative; isolation: isolate; touch-action: pan-y; display: flex; flex-direction: column; min-height: clamp(600px, calc(100svh - var(--head-h) - 1px), 1400px); }   /* the whole first screen, so the van sits low on tall monitors too */
.hero-photo { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero > .hero-photo { margin: 0; }   /* never the gap before an action: the Kontakt button follows it on a phone, and a margin
                                       cut the photo 28 px short of the hero's foot (the black strip on iPhones) */
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* the slideshow: the photos lie on each other and cross-fade; the van (the first) keeps its own framing */
.hero-photo > .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-photo > .slide.is-on { opacity: 1; }
.hero::before {   /* dark where the words are, the sky at the top; clear over the van */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero-shade);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--head-gap) var(--gap); align-items: end;   /* halves, as every two-column row */
  padding-top: var(--hero-pad);
}
/* home: the headline and its line at the top left, in the wider of two columns, so it breaks into two lines and
   stays above the van; no buttons (Qing: Kontakt and the menu are in the header) */
.hero > .hero-grid { flex: 1; align-items: start; align-content: center; padding-bottom: var(--hero-pad); }   /* the words in the middle of the height */
.hero h1 { max-width: 5.35em; font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.045em; color: var(--on-photo); }   /* always «Kühlen / mit Wasser.» («mit Wasser.» held together in the page): wider than «mit Wasser.» (4.75 em),
   so no screen sets it on one line (900 to 960 px did; Qing, 2026-11-15) */
/* the line under the headline (one line, as on frigus.ch; the other two moved to Über uns and Kontakt, Qing) */
.hero-line { margin: 0; max-width: calc(100% - var(--col-gap) + var(--gap)); font-size: var(--fs-hero-line); line-height: 1.5; text-wrap: balance; color: var(--on-photo-text); }
.hero h1 + .hero-line { margin-top: var(--head-gap); }
.hero-line + .hero-line { margin-top: var(--tight); }

/* ── sections ────────────────────────────────────────────────────────────── */
.sec { padding-block: var(--sec); }
.sec-ice { background: var(--bg-2); }
/* a box is the opposite of its ground: grey boxes on black sections, black boxes on grey ones (Qing) */
.sec-ice { --panel: var(--bg); }
/* one width for a section's text (Qing: "the text/paragraph (after title) layout/width consistent with others?? again!!"):
   the left column of the halves, keeping its distance on the side it faces, as in the text-only template */
.sec-head { max-width: calc(50% - var(--gap) / 2); padding-right: calc(var(--col-gap) - var(--gap)); margin-bottom: var(--block-gap); }
.sec-head:last-child { margin-bottom: 0; }

/* the five fields: photograph, name, line; spacing does the dividing, no arrows (Qing) */
.sec:has(> .cells-frame) { container-type: inline-size; }   /* the row measures itself against the section's width */
/* the five fields: a row of cards a third wide on the three column lines, starting at the content's left edge and
   running on past the right one, so the fourth shows at the edge; it scrolls sideways (trackpad, the line under it,
   the keyboard through its links). Qing: "two or three cards with the rest to scroll from left to right". */
.cells { --bleed: max(var(--gut), (100cqw - var(--wrap)) / 2);
  list-style: none; margin: 0; padding: 0 var(--bleed); display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((min(var(--wrap), 100cqw - 2 * var(--gut)) - 2 * var(--gap)) / 3);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); scroll-behavior: smooth; scrollbar-width: none; }
.cells::-webkit-scrollbar { display: none; }
.cell { scroll-snap-align: start; }
.sec > .wrap + .cells-frame { margin-top: var(--block-gap); }   /* a text block to what follows it, as everywhere */
/* two arrows over the photos (Qing: "just arrows on the photo with alpha"), at the content's left and right edges,
   centred on the photos' height; the one place with arrows besides the ↗ on links that leave the site */
.cells-frame { position: relative; --cellw: calc((min(var(--wrap), 100cqw - 2 * var(--gut)) - 2 * var(--gap)) / 3); }
.cells-step { position: absolute; top: calc(var(--cellw) / 1.5 / 2 - var(--tap) / 2); width: var(--tap); height: var(--tap); display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: rgba(10, 10, 10, .45); color: var(--on-photo); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background var(--ui-ease), opacity var(--ui-ease); }
.cells-step:hover { background: rgba(10, 10, 10, .7); }
.cells-step:focus-visible { outline: 2px solid var(--on-photo); outline-offset: 2px; }
.cells-step[data-step="-1"] { left: calc(max(var(--gut), (100cqw - var(--wrap)) / 2) + 16px); }
.cells-step[data-step="1"] { right: calc(max(var(--gut), (100cqw - var(--wrap)) / 2) + 16px); }
.cells-step.is-off { opacity: 0; pointer-events: none; }
/* a field card is a panel like every card, its photo on top: the five are of one height (balance audit) */
.cell a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border-radius: var(--r); overflow: hidden; background: var(--panel); }
.cell-img { display: block; aspect-ratio: var(--ratio); overflow: hidden; }   /* a photo's shape, like every card a third wide */
.cell-body { display: block; padding: var(--card-pad); }
.cell-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.cell a:hover .cell-img img { transform: scale(1.05); }
.cell h3, .product-body h3 { margin-bottom: var(--title-gap); }   /* every card's title to its text */
.cell p { margin: 0; text-wrap: balance; font-size: var(--fs-small); color: var(--text); }

/* the one list of the site, and with it the template of every text-only section (Qing, 2026-11-15: Kaltwasser and
   Service): a section's text left, its points right, centred on each other. A point: its line drawing ({{icon}} in
   build.py), its title in the heading's colour (text size), its sentence like card text (small size); hairlines between
   the points only, none above the first or under the last, so the column ends where its words end */
.feats { list-style: none; margin: 0; padding: 0; }
.feats li { display: flex; align-items: flex-start; gap: var(--icon-gap); padding-block: var(--row-pad); border-bottom: 1px solid var(--line); color: var(--text); font-size: var(--fs-small); line-height: 1.5; }
.feats li:first-child { padding-top: 0; }
.feats li:last-child { border-bottom: 0; padding-bottom: 0; }
.feats strong { display: block; margin-bottom: var(--tight); color: var(--head); font-size: var(--fs-text); line-height: 1.3; font-weight: 600; }
.feats .link { display: flex; width: max-content; margin-top: var(--title-gap); }   /* a point's link on its own line under its sentence */
.feats svg { flex: none; color: var(--head); opacity: var(--mark-opacity); }

.quote { display: flex; align-items: center; gap: var(--icon-gap); margin-top: var(--block-gap); }
.quote img { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.quote blockquote { margin: 0; font-size: var(--fs-text); font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; color: var(--head); }
.quote figcaption { margin-top: var(--tight); font-size: var(--fs-small); color: var(--mute); }

/* products and partners */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--block-gap); }
.product { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--panel); }
/* #EFF1F4 is the ground the manufacturer's pictures are cut on, so each one ends where its panel ends */
.product-img { aspect-ratio: var(--ratio); overflow: hidden; padding: var(--card-pad); background: #EFF1F4; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: var(--card-pad); }
.product-body p { font-size: var(--fs-small); }
.product-body .link { margin-top: auto; }
.sec-head + .products { margin-top: 0; }   /* the text block's own gap is the one block apart */
@media (min-width: 961px) {   /* where cards stand three in a row (below, every grid stacks or swipes) */
  .products:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }   /* two cards take two columns, as three logos take three */
  /* ... and their picture panel keeps the height it has in a row of three, so a product is drawn at one size on a page */
  .products:has(> :nth-child(2):last-child) .product-img { aspect-ratio: auto; height: calc((min(var(--wrap), 100vw - 2 * var(--gut)) - 2 * var(--gap)) / 3 / 1.5); }
}

/* customers, text only (Qing, 2026-11-15: no logos): the heading with the Google rating at the row's right end; then
   two halves side by side (Qing, 2026-11-16: "make side by side design", "the moving part right side but in a box
   rather than full width", "two black box to make it look balanced?"): the owner's main references and projects, a
   name and its line each, in a box in the panel ground, and beside it a box of the same height where every other customer's name moves in five rows spread over its height, in turn left
   and right, fading at the box's sides */
.ref-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--small-gap) var(--gap);
  max-width: none; padding-right: 0; margin-bottom: var(--head-gap-box); }   /* the heading and its rating: one row; boxes follow */
.ref-head > h2 { margin: 0; }
.ref-rating { flex-wrap: wrap; gap: var(--tight); }   /* on a phone the stars take their own line, the words and their arrow stay together */
.ref-stars { display: inline-flex; gap: 2px; margin-right: 4px; color: var(--head); }   /* the text's white, never Google's yellow */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }   /* halves, as every two-column row */
.ref-projects, .ref-names { list-style: none; margin: 0; padding: 0; }
.ref-projects { display: grid; gap: var(--head-gap); align-content: center; padding: var(--card-pad); background: var(--panel); }   /* a box like the names' beside it, the same height (Qing: "two black box to make it look balanced?") */
.ref-projects h3 { margin-bottom: var(--tight); }
.ref-projects p { margin: 0; font-size: var(--fs-small); color: var(--text); }
.ref-band { display: grid; align-content: center; gap: var(--small-gap) var(--gap); padding: var(--card-pad); background: var(--panel); }
.ref-names { display: flex; flex-wrap: wrap; gap: var(--small-gap) var(--gap); }   /* standing still (no script, reduced motion): the names wrap in the box */
.ref-names li { font-size: var(--fs-text); line-height: 1.5; color: var(--text); white-space: nowrap; }
.ref-band.is-moving { align-content: stretch; }   /* the rows' lane fills the box's height ... */
.ref-rows { display: grid; align-content: space-between; gap: var(--head-gap); overflow: hidden;   /* ... and the rows spread over it, the first level with the first reference, the last with the last line (Qing: "too much gap above and at the btm"); they fade at its sides */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ref-band.is-moving .ref-names { flex-wrap: nowrap; gap: 0; width: max-content; animation: ref-band 60s linear infinite; }
.ref-rows .ref-names:nth-child(even) { animation-direction: reverse; }   /* every second row moves right */
.ref-band.is-moving .ref-names li { padding: 0 var(--gap); border-left: 1px solid var(--line); }
@keyframes ref-band { to { transform: translateX(-50%); } }   /* each list is doubled: half its width is one turn */
/* partners: the one exception, white logos on dark panels (Qing); four since GOVI joined (Qing, 2026-11-15), so
   quarters: the halves every two-column row uses, halved; two to a row up to 960 px */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.partners li { display: grid; place-items: center; height: 140px; padding: var(--card-pad); border-radius: var(--r); background: var(--panel); }
.partners img { max-width: 72%; max-height: 46px; width: auto; height: auto; opacity: var(--mark-opacity); }
.partners img[src*="maxa"] { max-height: 32px; }
.partners img[src*="cta"] { max-height: 62px; }
.partners img[src*="gkm"] { max-height: 40px; }
.partners img[src*="govi"] { max-height: 56px; }
/* a plain list in a card: a product's points, one a line */
.product-body ul { list-style: none; margin-block-start: 0; margin-inline: 0; padding: 0; font-size: var(--fs-small); }   /* its bottom margin is the gap to the link, as after a paragraph */
.product-body li + li { margin-top: var(--tight); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
.people { display: contents; }   /* the two people are two cells of the grid; on a phone they are a swipe row */
.person { border-radius: var(--r); overflow: hidden; background: var(--panel); }
.person .frame { border-radius: 0; aspect-ratio: var(--ratio); }   /* landscape like every photo card */
.person .frame img { object-position: 50% 10%; }   /* head and shoulders, the shirt's logo at the foot */
.person-body { padding: var(--card-pad); }
.person-body h3 { margin-bottom: var(--tight); }   /* a name and its role belong together */
.person-body .role { margin-bottom: var(--title-gap); font-size: var(--fs-small); color: var(--mute); }
.person-body a { display: block; width: fit-content; font-weight: 500; }
.person-chat { display: flex; }   /* the assistant's card: a small window of the chat, as tall as the people beside it */
.chat-window { display: flex; flex-direction: column; justify-content: space-between; gap: var(--title-gap); width: 100%; padding: var(--card-pad); }   /* as tall as the people beside it: the name at the top, «Chat öffnen» at the foot, greeting and buttons spread evenly between, so the gaps grow with the card (Qing: "distribute in relation to the box!") */
.chat-head { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding-bottom: var(--title-gap); border-bottom: 1px solid var(--line); }
.chat-head h3 { margin: 0; }
.chat-head .role { grid-column: 2; margin: var(--tight) 0 0; font-size: var(--fs-small); color: var(--mute); }
.chat-head > svg { width: 20px; height: 20px; color: var(--head); align-self: center; }   /* the icon set's chat bubble, the size of the name (Qing: "why a dot … either no or a meaningful svg icon") */
.chat-greeting { margin: 0; font-size: var(--fs-small); color: var(--text); }
.chat-window > .chat-preview { margin-bottom: 0; }   /* not the action gap a list before a link gets elsewhere */
.chat-window > .link { margin-top: 0; }   /* right under the buttons, as a person's links follow their role (Qing: "too much gap between the last question box and chat oeffnen?") */
.chat-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--small-gap); justify-items: start; }
.chat-preview a { display: block; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .32); color: var(--head);
  font-size: var(--fs-small); line-height: 1.35; text-decoration: none; transition: border-color var(--ui-ease); }   /* as the chat draws them, square like every box here */
.chat-preview a:hover { border-color: var(--head); }

/* ── a field's page ──────────────────────────────────────────────────────── */
/* a field page opens with its photo, flush under the menu, its title and paragraph on it at the top left, as the
   hero's headline sits on its photo (Qing, 2026-11-15: "such title on top of the first image"): white words on a shade
   that is darkest where they are. One photo height on every page (--band-h-head holds the longest title and
   paragraph); the title starts at one place on all of them. On a phone the words go under the photo, as in the hero.
   No button: Kontakt is in the header. */
.page-hero { display: grid; }
.page-hero > .band, .page-hero > .wrap { grid-area: 1 / 1; }
.page-hero .band { position: relative; min-height: var(--band-h-head); margin: 0; }
.page-hero .band img { position: absolute; inset: 0; }
.page-hero .band::after {   /* the hero's shade, from the top: dark under the words, the photo clearer below them */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .7) 38%, rgba(10, 10, 10, .32) 72%, rgba(10, 10, 10, .4) 100%);
}
.page-hero > .wrap { position: relative; z-index: 1; padding-top: var(--block-gap); padding-bottom: var(--block-gap); }
.page-hero .sec-head { margin-bottom: 0; max-width: none; padding-right: 0; }   /* a page's title takes the width it needs ... */
.page-hero .lead { max-width: calc(50% - var(--gap) / 2 - var(--col-gap) + var(--gap)); }   /* ... its line the text width of every section */
.page-hero h1 { margin-bottom: var(--head-gap); color: var(--on-photo); }
.page-hero .lead { color: var(--on-photo-text); }
.page-hero .run-in { color: var(--on-photo); }

/* plain text page */
.prose { padding-block: clamp(32px, 4.5vw, 72px) var(--sec); }   /* the title as far under the header as on a field page */
.prose-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: var(--block-gap); align-items: start; }   /* the
   Impressum in two halves, as every two-column row (Qing, 2026-11-16: "make it two col design"): its facts and the
   liability texts left, Urheberrechte and Datenschutz right */
.prose-cols > div { padding-right: calc(var(--col-gap) - var(--gap)); }   /* each half's text as wide as a section's text
   column (616 px at most, under 80 characters a line: the site audit found 760 px, about 100) */
.prose-cols > div > h2:first-child { margin-top: 0; }   /* both halves start level, under the title */
.prose h1 { margin-bottom: var(--block-gap); }
.prose h2 { font-size: var(--fs-text); line-height: 1.3; letter-spacing: -0.012em; margin: var(--block-gap) 0 var(--title-gap); }   /* a small heading, like a card title */

/* ── footer (Qing, 2026-11-15: "redesign!! … alignment row by row, col distribution. and one separate btm row!!"):
   the logo on a row of its own; then three columns, each a label and its lines, every line on one rhythm (16 px at
   1.5), so the labels share one line and the first, second and third lines of the columns share theirs; the columns
   take their own width and the space between them is shared equally, the last ending at the right edge. Four
   columns, so no row under them (Qing: "better 4-col so no need to have the extra btm row?"): the fourth's label is
   the copyright, its lines Impressum and the credit. No link lists (the header's menu is on every page), no map. */
.site-foot { padding: var(--block-gap) 0; background: var(--deep); border-top: 1px solid var(--line); color: var(--head); font-size: var(--fs-small); line-height: 1.5; }   /* two colours (Qing: "three colors in footer??"): the labels grey, every line white, as in the address panel above it */
.site-foot .brand { align-self: start; }   /* the logo is the first column (Qing: "the logo for col1 make other three gaps to the top"): every column starts on one top line */
.site-foot .logo { height: 64px; }   /* the whole logo (Qing: "the full logo on footer too big", 96 before) */
.foot-grid { display: grid; grid-template-columns: repeat(5, max-content); justify-content: space-between; column-gap: var(--gap); }   /* each column as wide as its longest line, so the two gaps are equal */
.site-foot h4 { margin: 0 0 var(--title-gap); font-size: var(--fs-small); font-weight: 500; line-height: 1.5; color: var(--mute); }
.foot-about p { margin: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { min-height: 1.5em; }   /* every line one rhythm: an address line, a phone number, the LinkedIn mark */
.site-foot .social { display: inline-flex; vertical-align: middle; color: var(--head); }
/* "Website & AI by" and the EmicTech badge, the last line of the last column, as on SHIN and La Famiglia (Qing); the
   badge is emictech-web's emictech-badge-white.svg, a little under the line's height */
.credit { display: flex; align-items: center; gap: var(--small-gap); }
.credit a { display: inline-flex; }
.credit img { display: block; height: 20px; width: auto; }

/* ── what appears as it scrolls into view (only with the script; the page is whole without it) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── narrower screens ────────────────────────────────────────────────────── */
/* a short laptop screen: the headline and its lines stay above the van's roof */
@media (min-width: 601px) and (max-height: 920px) {
  .hero > .hero-grid { padding-block: 32px; }   /* top and foot alike, so the words stay in the middle */
  .hero h1 + .hero-line { margin-top: var(--para-gap); }
}
@media (max-width: 1299px) {   /* where five do not fit with room between them: the logo on top, the four columns two by two under it */
  .chat-greeting { display: none; }   /* the chat window in a narrow third: its buttons say enough; the greeting would make it taller than the people */
  .foot-grid { grid-template-columns: 1fr 1fr; justify-content: stretch; row-gap: var(--block-gap); }
  .site-foot .brand { grid-column: 1 / -1; margin-bottom: calc(var(--head-gap) - var(--block-gap)); }
}
@media (max-width: 960px) {
  .chat-greeting { display: block; }   /* a full row again: room for the greeting */
  :root { --fs-hero: clamp(40px, calc((100vw - 2 * var(--gut)) / 5), 88px); }   /* the headline as large as the screen allows, "mit Wasser." (4.75 em) filling the text column: nearer the desktop's size against the 20 px line (Qing: "too small on phone?"); tablets too, where the text stacks as on a phone */
  /* the menu: three lines, no box (Qing: "why 2 lines instead of 3, why need a box outside the menu symbol?"), as
     tall as the Kontakt button beside it ("why diff height"): both the 44 px a finger needs; the lines end at the
     content's right edge, the button's tap area reaching past it */
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    width: var(--tap); height: var(--tap); margin-left: auto; margin-right: calc((22px - var(--tap)) / 2); padding: 0; border: 0; background: transparent; cursor: pointer;
  }
  .menu-btn span { position: absolute; width: 22px; height: 2px; background: var(--head); transition: transform var(--ui-ease), opacity var(--ui-ease); }
  .menu-btn span:first-child { transform: translateY(-7px); }
  .menu-btn span:nth-child(3) { transform: translateY(7px); }
  .open .menu-btn span:first-child { transform: rotate(45deg); }
  .open .menu-btn span:nth-child(2) { opacity: 0; }
  .open .menu-btn span:nth-child(3) { transform: rotate(-45deg); }
  :root { --head-h: 72px; }
  .head-row { gap: 10px; }
  .site-head .logo { height: var(--tap); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--head-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gut) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .open .nav { display: flex; }
  .nav > a, .nav .nav-top { padding: 0; font-size: var(--fs-text); border-bottom: 1px solid var(--line); }
  .nav > a:last-child { border-bottom: 0; }
  .nav-top { display: flex; }
  .nav-sub {   /* in the phone menu the five pages are simply listed under "Lösungen" */
    position: static; min-width: 0; padding: 4px 0 8px 16px; border-bottom: 1px solid var(--line); border-radius: 0;
    background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-sub::before { content: none; }
  .nav-sub a { padding: 0; font-size: var(--fs-small); }
  .nav > a, .nav .nav-top, .nav-sub a { display: flex; align-items: center; min-height: var(--tap); }   /* every menu row a finger's height */
  /* a touch screen (up to 960 px, where the menu button appears): every link standing alone a finger's height,
     with no padding of its own; links inside running text keep theirs */
  .link { min-height: var(--tap); }
  .person-body a, .site-foot ul a { display: flex; align-items: center; width: fit-content; min-height: var(--tap); }

  .hero-grid, .text-list, .split { grid-template-columns: 1fr; }   /* every two-column grid stacks */
  .sec-head, .page-hero .lead, .hero-line { max-width: none; padding-right: 0; }   /* stacked: the text the screen's width */
  .text-list > h2, .text-list > .text-list-copy, .split > :first-child { padding-inline: 0; }   /* stacked: no neighbour to keep a distance from */
  .text-list { row-gap: var(--head-gap); }
  .prose-cols { grid-template-columns: 1fr; }   /* stacked: the left half, then Datenschutz */
  .prose-cols > div { padding-right: 0; max-width: var(--measure); }   /* the small text at most about 76 characters a line (tablets set 87 to 110) */
  .text-list > h2 { margin-bottom: 0; }
  .text-list > .feats { grid-column: 1; grid-row: 3; }   /* stacked: heading, text, points */
  .points-two > .feats { display: block; }   /* one column again */
  .points-two > .feats li:nth-child(3) { border-bottom: 1px solid var(--line); padding-bottom: var(--row-pad); }
  .points-two > .feats li:nth-child(4) { padding-top: var(--row-pad); }
  .split > .product-img { margin-inline: calc(-1 * var(--gut)); border-radius: 0; aspect-ratio: var(--ratio); min-height: 0; }   /* stacked: edge to edge, 3:2, like every photo */
  .hero-grid { align-items: start; }
  .cells { grid-auto-columns: calc((min(var(--wrap), 100cqw - 2 * var(--gut)) - var(--gap)) / 2); }   /* two a view */
  .cells-frame { --cellw: calc((min(var(--wrap), 100cqw - 2 * var(--gut)) - var(--gap)) / 2); }
  .products { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }   /* stacked: the references, then the box */
  .partners { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .person-chat { grid-column: 1 / -1; }   /* two to a row on a tablet: the assistant's card takes the row under the people */
  :root { --band-h-head: 340px; }   /* the longest title and paragraph still fit on the photo */
}
@media (max-width: 600px) {
  h1, h2, h3 { overflow-wrap: break-word; }   /* a long compound breaks only where it would leave the screen */
  /* the hero on a phone: the photograph first and clear (an upright cut with the mountains, the lake and the van),
     the words below it on the page's black (Qing: the mountains were hidden under text) */
  /* the hero on a phone: the first screen under the header, whatever the phone (Qing: "optimised for iphone duo and
     not other phones?"), as on the desktop; the words on the photo's sky at the top, on the same shade (Qing:
     "lighter is wrong"); a swipe changes the photo */
  .hero { min-height: 100lvh; }   /* the whole screen to its foot, under the browser's own bars too (with 100svh a black
                                      strip showed above Safari's floating bar on iPhones, Qing) */
  /* a field page on a phone: the photo, then its title and paragraph on the black, as the hero */
  :root { --band-h-head: 240px; }
  .page-hero { display: block; }
  .page-hero .band { height: calc(var(--band-h-head) + var(--head-h)); min-height: 0; }   /* the header lies on its top */
  .page-hero .band::after { background: linear-gradient(180deg, rgba(10, 10, 10, .7) 0%, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0) 65%, rgba(10, 10, 10, .45) 100%); }   /* dark under the header, the photo clear below */
  /* a phone: the header lies on the first photo, clear until the photo has passed under it, then solid (Qing:
     "menu and logo should blend into the hero image"); Kontakt leaves the header for the menu's last line (the
     button on the photo went too: Qing, "just remove kontakt button on phone") */
  .site-head { position: fixed; inset: 0 0 auto; transition: background var(--ui-ease), border-color var(--ui-ease); }
  .site-head.over-photo:not(.open) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  main:not(:has(> .hero, > .page-hero)) { padding-top: var(--head-h); }   /* a page without a first photo (Impressum) starts under the header */
  .page-hero > .wrap { padding-bottom: 0; }
  .page-hero h1, .page-hero .run-in { color: var(--head); }
  .page-hero .lead { color: var(--text); }
  .hero::before { background: var(--hero-shade-mid); }
  /* the words in the middle between the header and the chat button's row (60 px + 16 px from the screen's foot, 16 px
     apart, while the browser's bars show; the bars' height is added when they hide) */
  .hero > .hero-grid { align-content: center; padding: var(--head-h) 0 calc(100lvh - 100svh + 92px); gap: var(--para-gap); }
  .hero h1 + .hero-line { margin-top: var(--title-gap); }
  /* every group of cards is a row the thumb swipes, the next card showing at the edge, one width for all (Qing: the
     five fields first, then "the same layout and behaviour" everywhere): fields, products, the two people.
     Lists and the customer logos stay as they are; the address panel stays below the people, never off screen */
  .cells, .products, .people {
    display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: none;
  }
  .cells::-webkit-scrollbar, .products::-webkit-scrollbar, .people::-webkit-scrollbar { display: none; }
  .cell, .product, .person { flex: 0 0 80%; scroll-snap-align: start; }
  .cells-frame > .cells { margin-inline: 0; }   /* the fields' row is not inside the content width: it starts at the edge's margin */
  .cells-step { display: none; }   /* a phone shows the next card at the edge, as every swipe row */
  .contact-grid { grid-template-columns: 1fr; }
  .partners li { height: 110px; }
  .quote { align-items: flex-start; }
  /* every link a thumb can hit: 44 px tall at least */
  .prose a { display: inline-block; padding: 10px 0; }

  .person-body .role { margin-bottom: var(--small-gap); }

  .site-foot ul { gap: 0; }

  .foot-grid { grid-template-columns: 1fr; }   /* a phone: their line, Adresse, Kontakt one under the other (side by side the address wrapped out of step) */
  .foot-about br { display: none; }   /* the sentence wraps where the screen ends */
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
