/* Wannentechnik GmbH: draft of the new website.
   The look comes from the company's logo, its adverts and its van. Four colours, the logo's own: the blue
   of "WANNEN", the yellow of "TECHNIK", white, and the black of "Ronny Gasser". Square tiles.
   Every colour, size and space is named once in :root;
   no rule below types one of its own (EmicTech tenant-site rule). */

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

:root {
  /* Colours */
  /* Colours: only the four of the logo (William, 2026-11-18), each measured in the logo file */
  --blue: #0f6fb7;            /* "WANNEN": headings, links, hairlines, the footer; 5.3:1 with white, either way round */
  --yellow: #f9b130;          /* "TECHNIK": only ever a line that tells nothing by itself, never text (1.9:1 on white) */
  --ground: #ffffff;          /* the ground of every section, and the text on the footer */
  --black: #000000;           /* "Ronny Gasser": the menu and everything that is read */
  /* The one exception (William, 2026-11-18): the three companies' marks keep their own colours */
  --whatsapp: #25d366;
  --youtube: #ff0000;
  --instagram-1: #feda75;     /* Instagram's gradient, from the lower left to the upper right */
  --instagram-2: #fa7e1e;
  --instagram-3: #d62976;
  --instagram-4: #962fbf;
  --instagram-5: #4f5bd5;

  /* Type: three sizes for headings, two for text (fixed at every width) */
  --size-hero: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem);
  --size-title: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  --size-sub: 1.5rem;
  --size-text: 1.25rem;       /* 20 px, what is read */
  --size-small: 1rem;         /* 16 px, the small */
  --weight-head: 800;         /* as heavy as the adverts' headlines */
  --weight-strong: 600;
  --track-head: -0.015em;
  --lh-head: 1.1;
  --lh-sub: 1.2;
  --lh-text: 1.5;

  /* Widths and columns: one wrap, one gutter */
  --wrap: 75rem;
  --gutter: 2rem;
  --edge: clamp(1rem, 4vw, 2rem);
  --text-width: 44rem;        /* about 75 characters at 20 px */
  --sheet: calc(var(--wrap) + 2 * var(--edge) + 2 * var(--tile-size));   /* the white page on a wide monitor: the wrap and a margin for the marks */
  --label-w: 7rem;            /* the label column of the contact rows */

  /* Spaces */
  --space-section: clamp(3.5rem, 7vw, 6rem);   /* section top and bottom */
  --space-hero: clamp(1.5rem, 4vw, 3rem);      /* above the opening of the home page */
  --space-block: 2rem;        /* a text block to what follows it */
  --space-group: 3rem;        /* a new group inside a section */
  --space-item: 1rem;         /* heading to text, paragraph to paragraph */
  --space-tight: 0.5rem;      /* what belongs together */
  --space-small: 0.25rem;
  --nav-gap: 1.5rem;          /* between two menu words */
  --indent: 1.75rem;          /* a bullet's text from its square */

  /* Parts */
  --head-h: 6rem;             /* header height: room above and below the logo (William, 2026-11-18: a bit more) */
  --logo-h: 2.75rem;          /* the wide logo; with the six menu words it just fills the wrap */
  --stripe-h: 0.75rem;        /* the blue and yellow line, as on the van (William, 2026-11-18: a bit thicker) */
  --bar-w: 3.5rem;            /* the yellow bar under a section heading */
  --bar-h: 0.3rem;
  --bullet: 0.75rem;          /* the square bullet of the adverts */
  --row-h: 3.5rem;            /* a list row */
  --tap: 2.75rem;             /* 44 px, the smallest thing to tap */
  --icon: 1.5rem;
  --mark: 2rem;               /* a company's mark standing free at the screen's edge */
  --badge-h: 1.25rem;         /* the EmicTech badge in the credit */
  --tile-size: 2.5rem;        /* one tile of the strip above the footer; the width of the column of marks */
  --grout: 3px;
  --ratio: 16 / 10;           /* every photo card */
  --intro-min: 20rem;         /* least height of a page's first photo */
  --hairline: 1px;
  --underline-offset: 4px;
  --focus: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + var(--stripe-h));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--black);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--size-text);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-underline-offset: var(--underline-offset); }
a:hover { color: var(--black); }
:focus-visible { outline: var(--focus) solid var(--black); outline-offset: var(--focus); }

.skip { position: absolute; left: var(--edge); top: 0; z-index: 20; display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-item); background: var(--ground); font-size: var(--size-small); transform: translateY(-100%); }
.skip:focus { transform: none; }

h1, h2, h3 { color: var(--blue); font-weight: var(--weight-head); line-height: var(--lh-head); letter-spacing: var(--track-head); margin: 0; overflow-wrap: break-word; }
h1 { font-size: var(--size-hero); }
h2 { font-size: var(--size-title); }
h3 { font-size: var(--size-sub); line-height: var(--lh-sub); }
h2::after { content: ""; display: block; width: var(--bar-w); height: var(--bar-h); margin-top: var(--space-tight); background: var(--yellow); }
p { margin: 0; }

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

/* Header: the wide logo, the menu, then the van's line */
.head { position: sticky; top: 0; z-index: 10; background: var(--ground); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); min-height: var(--head-h); }
.head .logo { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.head .logo img { width: auto; height: var(--logo-h); }
.stripe { height: var(--stripe-h); background: linear-gradient(to bottom, var(--blue) 0 50%, var(--yellow) 50% 100%); }

.nav ul { margin: 0; padding: 0; list-style: none; }
.nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-small) var(--nav-gap); }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--size-small); font-weight: var(--weight-strong); color: var(--black); text-decoration: none; }
.nav a:hover { color: var(--blue); text-decoration: underline; }
/* the mark of the current page tells something, so it is blue: a mark needs 3:1 on its ground, yellow has 1.9:1 */
.nav a[aria-current] { color: var(--blue); box-shadow: inset 0 calc(var(--bar-h) * -1) 0 var(--blue); }
/* The pages under a menu word open below it, on hover and for the keyboard; the word itself stays a link */
.nav li { position: relative; }
.nav .under { display: none; position: absolute; left: calc(var(--space-item) * -1); top: 100%; z-index: 1; width: max-content; padding: var(--space-tight) var(--space-item); background: var(--ground); border: var(--hairline) solid var(--blue); }
.nav li:hover > .under, .nav li:focus-within > .under { display: block; }
.menu-btn { display: none; }

/* Opening of a page */
.hero { padding-block: var(--space-hero) var(--space-section); }
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.lead { font-weight: var(--weight-strong); }
.run-in { font-weight: var(--weight-head); }
.hero .lead { margin-top: var(--space-item); }
.squares { margin: var(--space-block) 0 0; padding: 0; list-style: none; }
.squares li { position: relative; padding-left: var(--indent); margin-top: var(--space-tight); }
.squares li::before { content: ""; position: absolute; left: 0; top: calc((var(--size-text) * var(--lh-text) - var(--bullet)) / 2); width: var(--bullet); height: var(--bullet); background: var(--blue); }
.call { margin-top: var(--space-block); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-tight) var(--space-item); }
.call .tel { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--size-title); font-weight: var(--weight-head); letter-spacing: var(--track-head); text-decoration: none; }
.call .tel:hover { text-decoration: underline; }
.call span { font-size: var(--size-small); }
.photo { aspect-ratio: var(--ratio); width: 100%; object-fit: cover; }
.hero .halves { align-items: stretch; }
.hero .photo { aspect-ratio: auto; height: 100%; min-height: var(--intro-min); }

/* Sections */
.section { padding-block: var(--space-section); }
/* every other section stands between two blue hairlines, where a second ground would be a fifth colour */
.section.ruled { border-block: var(--hairline) solid var(--blue); }
.section > .wrap > h2 + p, .section > .wrap > h1 + p { margin-top: var(--space-item); max-width: var(--text-width); }
.block { margin-top: var(--space-block); }

.thirds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card { display: flex; flex-direction: column; align-items: flex-start; color: var(--black); text-decoration: none; }
/* a card's heading is an h3 under a section heading, an h2 straight under a page title: one look for both */
.card:hover :is(h2, h3) { text-decoration: underline; }
.card :is(h2, h3) { margin-top: var(--space-item); font-size: var(--size-sub); line-height: var(--lh-sub); }
.card h2::after { content: none; }
.card p { margin-top: var(--space-tight); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); margin: var(--space-block) 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; font-size: var(--size-small); }
.steps li::before { content: counter(step); display: block; color: var(--blue); font-size: var(--size-title); font-weight: var(--weight-head); line-height: var(--lh-head); margin-bottom: var(--space-tight); }
.steps li img { margin-bottom: var(--space-item); }
.steps-title { margin-top: var(--space-group); }

.quarters { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.sub { margin-top: var(--space-group); }

.prose { max-width: var(--text-width); }
.prose > * + * { margin-top: var(--space-item); }
.prose > h2 { margin-top: var(--space-group); }
.legal > h2 { font-size: var(--size-sub); }
.legal > h2::after { content: none; }
.small { font-size: var(--size-small); }
.notice { padding-left: var(--space-item); border-left: var(--bar-h) solid var(--yellow); font-size: var(--size-small); }
.ext::after { content: "\00a0↗"; }

.text > * + * { margin-top: var(--space-item); }
.more { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--weight-strong); }
/* in a card the whole card is the link; its last line says so, in the look of a link */
.card .more { margin-top: auto; color: var(--blue); text-decoration: underline; text-underline-offset: var(--underline-offset); }

/* Lists with a hairline between the rows, never above the first or under the last */
.rows { margin: var(--space-block) 0 0; padding: 0; list-style: none; max-width: var(--text-width); }
.rows li { display: grid; grid-template-columns: var(--label-w) 1fr; align-items: center; min-height: var(--row-h); }
.rows li + li { border-top: var(--hairline) solid var(--blue); }
.rows span { font-size: var(--size-small); }
.rows a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--weight-strong); overflow-wrap: anywhere; }
.rows.files li { grid-template-columns: 1fr auto; gap: var(--space-item); }

.address { font-style: normal; }
.address strong { color: var(--blue); font-weight: var(--weight-head); }

/* Footer: the blue tiles of the logo with white joints, then two columns on the page's own lines */
.foot { color: var(--ground); font-size: var(--size-small); background: var(--blue); }
.foot::before {
  content: "";
  display: block;
  height: calc(var(--tile-size) * 2);
  background-color: var(--blue);
  background-image:
    linear-gradient(to right, var(--ground) var(--grout), transparent var(--grout)),
    linear-gradient(to bottom, var(--ground) var(--grout), transparent var(--grout));
  background-size: var(--tile-size) var(--tile-size);
  background-position: center top;
  border-bottom: var(--grout) solid var(--ground);
}
.foot .halves { align-items: start; padding-block: var(--space-block); }
.foot :focus-visible { outline-color: var(--ground); }
.foot a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ground); }
.foot .links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--nav-gap); }
.foot .credit { display: inline-flex; align-items: center; gap: var(--space-tight); min-height: var(--tap); }
.foot .credit img { height: var(--badge-h); width: auto; }

/* Contact marks, on every page and always in view: the companies' own icons, no tile behind them (William,
   2026-11-18), floating at the right edge of a large screen. The column is white and one tile wide, so at the
   wrap's full width it stands in the margin beside the pictures. */
.marks { position: fixed; right: 0; top: 50%; z-index: 9; display: flex; flex-direction: column; width: var(--tile-size); transform: translateY(-50%); background: var(--ground); }
.marks a { display: flex; align-items: center; justify-content: center; height: var(--tap); color: var(--blue); }
.marks .whatsapp { color: var(--whatsapp); }
.marks .youtube { color: var(--youtube); }
.marks a:hover { color: var(--black); }
/* the ring is inside the link: outside it would leave the screen */
.marks a:focus-visible { outline-offset: calc(var(--focus) * -1); }
.marks svg { width: var(--mark); height: var(--mark); fill: currentColor; }
.marks .instagram svg { fill: url(#instagram); }
.marks .instagram:hover svg { fill: currentColor; }
#instagram stop:nth-child(1) { stop-color: var(--instagram-1); }
#instagram stop:nth-child(2) { stop-color: var(--instagram-2); }
#instagram stop:nth-child(3) { stop-color: var(--instagram-3); }
#instagram stop:nth-child(4) { stop-color: var(--instagram-4); }
#instagram stop:nth-child(5) { stop-color: var(--instagram-5); }
.marks .dial svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.marks .dial { display: none; }

/* The menu becomes a button before its words would wrap */
@media (max-width: 79rem) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; }
  .menu-btn svg { width: var(--icon); height: var(--icon); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
  .menu-btn[aria-expanded="false"] .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: var(--bar-h) solid var(--blue); padding: var(--space-tight) var(--edge) var(--space-item); }
  .nav.open { display: block; max-height: calc(100dvh - var(--head-h) - var(--stripe-h)); overflow-y: auto; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav li + li, .nav .under li { border-top: var(--hairline) solid var(--blue); }
  .nav a { width: 100%; }
  .nav a[aria-current] { box-shadow: none; }
  .nav .under { display: block; position: static; width: auto; padding: 0 0 0 var(--indent); border: 0; }
}

/* Tablet and phone: one column */
@media (max-width: 60rem) {
  :root { --head-h: 4.75rem; --logo-h: 2.5rem; }
  .halves, .thirds { grid-template-columns: 1fr; }
  .quarters { grid-template-columns: 1fr 1fr; gap: var(--space-item); }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero .photo { order: -1; aspect-ratio: var(--ratio); height: auto; min-height: 0; }
  /* the marks become a white bar at the foot of the screen, with the telephone first; the page ends above it */
  html { scroll-padding-bottom: calc(var(--tap) + var(--hairline)); }
  body { padding-bottom: calc(var(--tap) + var(--hairline)); }
  .marks { left: 0; top: auto; bottom: 0; flex-direction: row; width: auto; transform: none; border-top: var(--hairline) solid var(--blue); }
  .marks a { flex: 1; }
  .marks .dial { display: flex; }
  .nav.open { max-height: calc(100dvh - var(--head-h) - var(--stripe-h) - var(--tap) - var(--hairline)); }
}
@media (max-width: 30rem) {
  .steps { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; align-content: center; min-height: calc(var(--size-small) * var(--lh-text) + var(--tap)); }
  .rows.files li { grid-template-columns: 1fr auto; }
}
/* Wide monitors (William, 2026-11-18: the sides were too empty): the page is a white sheet with a blue hairline at
   each side, over one of the company's own photos. The photo is washed with white in the file itself, so it stays
   quiet and no rule here types a colour. Smaller screens never load it. */
@media (min-width: 100rem) {
  /* a fixed layer behind the page, not a background that moves with it: nothing is redrawn while the page scrolls */
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url("assets/background.jpg") center / cover; }
  main { max-width: var(--sheet); margin-inline: auto; background: var(--ground); border-inline: var(--hairline) solid var(--blue); }
  /* the marks stand outside the sheet, beside its right edge, on the photo and with no white behind them */
  .marks { right: auto; left: calc(50% + var(--sheet) / 2 + var(--space-tight)); background: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
