/* 01 swiss-grid — the coldest slice of the family: near-black blue-grey ink on
   white, with the original's electric #0050C8 as the one signal. Zero radius,
   hairlines, an explicitly unequal 12-column grid, everything flush left. */
@layer tokens, base, layout, components;

@layer tokens {
  :root {
    color-scheme: light dark;

    --ink:    light-dark(#101418, #eef1f4);
    --ground: light-dark(#ffffff, #0b0e11);
    --muted:  light-dark(#586472, #9aa6b4);
    /* The site's own header blue. It has to lift on dark to stay a signal. */
    --signal: light-dark(#0050C8, #5b95ff);
    --rule:   light-dark(#101418, #38414c);
    --hair:   light-dark(#d3d9e0, #262d36);

    --gutter: clamp(1rem, 2.5vw, 2rem);
    --radius: 0;
  }
  :root:has(#light:target) { color-scheme: light; }
  :root:has(#dark:target)  { color-scheme: dark; }
}

@layer base {
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 0.9375rem/1.55 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  }
  h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
  p { margin: 0; }
  ol, ul { margin: 0; padding: 0; list-style: none; }
  dl, dd { margin: 0; }
  figure { margin: 0; }
  img { display: block; max-inline-size: 100%; block-size: auto; }
  a { color: inherit; }
  a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
  }
}

@layer layout {
  .masthead, .hero, .angebot, .kontakt, .colophon {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding-inline: var(--gutter);
    max-inline-size: 1600px;
    margin-inline: auto;
  }
  @media (max-width: 760px) {
    .masthead, .hero, .angebot, .kontakt, .colophon { grid-template-columns: 1fr; }
    .masthead > *, .hero > *, .angebot > *, .kontakt > *, .colophon > * {
      grid-column: 1 !important;
    }
  }
}

@layer components {
  .masthead {
    align-items: start;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--rule);
    row-gap: 1rem;
  }
  .brand {
    grid-column: 1 / 5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
  }
  /* The logo is a 100×69 GIF with a black field; on dark it needs no
     treatment, on light it sits on white and reads as intended. */
  .brand img { inline-size: 3rem; block-size: auto; }
  .brand-text { display: grid; }
  .name { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
  .tag { font-size: 0.75rem; color: var(--muted); }
  .nav {
    grid-column: 5 / 11;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    align-self: center;
    font-size: 0.8125rem;
  }
  .nav a { text-decoration: none; color: var(--muted); }
  .nav a:hover { color: var(--signal); }
  .schemes {
    grid-column: 11 / 13;
    justify-self: end;
    align-self: center;
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .schemes a { text-decoration: none; color: var(--muted); }
  .schemes a:hover { color: var(--signal); }

  .hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) 0; row-gap: 2rem; }
  .hero h1 {
    grid-column: 1 / 8;
    font-size: clamp(2.25rem, 5.6vw, 4.75rem);
    line-height: 0.98;
    text-wrap: balance;
  }
  .hero-side { grid-column: 8 / 13; align-self: end; display: grid; gap: 1.5rem; }
  .lede { font-size: 1.0625rem; max-inline-size: 34ch; color: var(--muted); }
  .hero-figure {
    grid-column: 1 / 13;
    margin-block-start: clamp(1.5rem, 4vw, 3rem);
  }
  /* A hard 21:9 crop turns a snapshot into a band — the photo is 4:3 and
     amateur, and cropping it is what makes it look deliberate. */
  .hero-figure img {
    inline-size: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: 50% 62%;
  }

  .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .btn {
    display: inline-block;
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
  }
  .btn:hover { background: var(--ink); color: var(--ground); }
  .btn-primary { background: var(--signal); border-color: var(--signal); color: #fff; }
  .btn-primary:hover { background: var(--ink); border-color: var(--ink); }

  .angebot, .kontakt { padding-block: clamp(3rem, 7vw, 5.5rem) 0; row-gap: 1.5rem; }
  .angebot > h2, .kontakt > h2 {
    grid-column: 1 / 4;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-block-start: 0.75rem;
    border-block-start: 2px solid var(--signal);
  }
  .num { color: var(--signal); margin-inline-end: 0.75em; }

  /* Rows separated by hairlines, never cards. */
  .items { grid-column: 4 / 13; }
  .items li {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--gutter);
    padding-block: 1.125rem;
    border-block-start: 1px solid var(--hair);
  }
  .items li:last-child { border-block-end: 1px solid var(--hair); }
  .items h3 { font-size: 1.0625rem; }
  .items p { color: var(--muted); max-inline-size: 62ch; }
  @media (max-width: 760px) { .items li { grid-template-columns: 1fr; gap: 0.25rem; } }

  /* Four photographs at one uniform square crop, on the grid, no captions —
     the plates are evidence, not decoration. */
  .plates {
    grid-column: 4 / 13;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gutter);
    margin-block-start: 2rem;
  }
  .plates img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; }
  @media (max-width: 760px) { .plates { grid-template-columns: repeat(2, 1fr); } }

  .contact { grid-column: 4 / 13; display: grid;
             grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
             border-block-start: 1px solid var(--hair); padding-block-start: 1.125rem; }
  .contact dt { font-size: 0.6875rem; text-transform: uppercase;
                letter-spacing: 0.12em; color: var(--muted); margin-block-end: 0.5rem; }
  .contact dd { font-size: 1rem; line-height: 1.7; }
  .contact a { color: var(--signal); text-underline-offset: 0.2em; }
  @media (max-width: 620px) { .contact { grid-template-columns: 1fr; } }

  .colophon {
    margin-block-start: clamp(4rem, 9vw, 7rem);
    padding-block: 1.5rem 3rem;
    border-block-start: 1px solid var(--rule);
    row-gap: 1rem;
    font-size: 0.8125rem;
  }
  .sections { grid-column: 1 / 10; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .sections a { text-decoration: none; color: var(--muted); }
  .sections a:hover { color: var(--signal); text-decoration: underline; }
  .up { grid-column: 10 / 13; justify-self: end; }
  .up a { color: var(--signal); }
}
