/* ==========================================================================
   sommerlade design – temporary landing page
   Static, no JavaScript, no external requests (fonts are self-hosted).
   ========================================================================== */

/* Noto Sans (SIL Open Font License, see fonts/OFL.txt), variable weight 100–900,
   Latin subset incl. German umlauts. Hosted on this server – nothing is loaded from Google. */
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #f2f2ef;
  --light: #e7e7e5;
  --muted: #5e5e5a;
  --rule: #b8b8b3;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);

  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); line-height: 1.5; }
h1, h2, h3, p, blockquote, address, figure { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: var(--ink);
  background: #fff;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero: photo area + award strip, together at least one screen high
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--light);
  background: var(--ink);
}

.hero__stage {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  overflow: hidden;
  min-height: 34rem;
}

.hero__picture,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1);
  transform: scale(1.015);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgb(0 0 0 / .48), transparent 50%, rgb(0 0 0 / .22)),
    linear-gradient(0deg, rgb(0 0 0 / .38), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  padding: calc(clamp(2.5rem, 5.5vw, 6rem) + 20px) var(--page-pad) clamp(1.75rem, 4vw, 3.75rem);
}

/* Logo (h1 holds the logo plus a hidden descriptive text for search engines) */
.hero__logo {
  width: 500px;
  min-width: 200px;
  max-width: 100%;
  height: auto;
}

/* Slogan */
.slogan {
  align-self: center;
  display: grid;
  gap: .5em;
  width: min(30rem, 40vw);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
  padding-block: 2.5rem;
}

/* Bottom row: news (left) and contact (right) */
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__news {
  display: grid;
  width: 16rem;
  gap: 1.5rem;
}

.news-link {
  display: grid;
  padding-left: 1rem;
  border-left: 1px solid rgb(255 255 255 / .65);
  font-size: clamp(.9rem, 1.15vw, 1.1rem);
  line-height: 1.3;
}
.news-link--primary { padding-block: .125rem; }
.news-link--primary .eyebrow { line-height: 1.25; }
.news-link__title {
  margin: .4rem 0 .1rem;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  line-height: 1.18;
}
.news-link__arrow { margin-left: .35em; }
a.news-link:hover .news-link__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

.news-link--secondary { font-size: clamp(.9rem, 1.15vw, 1.1rem); line-height: 1.28; }

/* Contact block */
.contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(19rem, 29vw);
  color: #c4c4c2;
  font-size: clamp(.82rem, 1.13vw, 1.05rem);
  font-style: normal;
  line-height: 1.35;
}
.contact__name { color: var(--light); }
.contact__channels a { display: block; width: fit-content; }
.contact a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.contact a:hover { text-decoration-line: underline; }

/* ==========================================================================
   Award strip – full width, never cropped; scrolls sideways on phones
   ========================================================================== */
.awards {
  background: #fff;
  color: var(--ink);
}
.awards__inner {
  padding: clamp(.75rem, 1.4vw, 1.5rem) var(--page-pad);
}
.awards__strip {
  width: 100%;
  max-width: 1920px;
  height: auto;
  margin-inline: auto;
}

/* ==========================================================================
   News section
   ========================================================================== */
.news-section {
  display: grid;
  grid-template-columns: .4fr 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  min-height: clamp(42rem, 43.5vw, 52rem);
  padding: clamp(5rem, 11vw, 10rem) var(--page-pad);
  border-bottom: 1px solid var(--rule);
}
.news-section__heading { grid-column: 2; }
.news-section__heading .eyebrow { margin-bottom: 2.2rem; }
.news-section__title {
  font-size: clamp(3.4rem, 8vw, 9rem);
  letter-spacing: -.065em;
  line-height: 1.1;
}
.news-section__details {
  grid-column: 3;
  align-self: end;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}
.news-product { font-size: clamp(1.45rem, 2.2vw, 2.25rem); }
.news-note { max-width: 28rem; padding-top: 2.5rem; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem var(--page-pad);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer__home { display: block; width: 18rem; max-width: 50%; }
.footer__logo { width: 100%; height: auto; }
.footer__links { display: flex; gap: 1.5rem; }
.site-footer a { transition: opacity 160ms ease; }
.site-footer a:hover { opacity: .55; }

/* ==========================================================================
   Legal pages (Impressum, Datenschutz) and 404
   ========================================================================== */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: calc(clamp(1.25rem, 3vw, 2.5rem) + env(safe-area-inset-top, 0px)) var(--page-pad) clamp(1.25rem, 3vw, 2.5rem);
  color: var(--light);
  background: var(--ink);
}
.page-head__logo { width: clamp(12rem, 22vw, 20rem); height: auto; }
.page-head nav {
  display: flex;
  gap: clamp(1rem, 2.7vw, 2.8rem);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-head nav a:hover { opacity: .55; }
.page-head nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }

.legal-page {
  display: grid;
  grid-template-columns: .8fr 2fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) var(--page-pad);
  border-bottom: 1px solid var(--rule);
}
.legal-page__title {
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  letter-spacing: -.06em;
  line-height: .95;
  hyphens: auto;
  overflow-wrap: break-word;
}
.legal-page__body { max-width: 42rem; color: #303030; font-size: .95rem; line-height: 1.6; }
.legal-page__body h2 {
  margin: 2.6rem 0 .8rem;
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-page__body h2:first-child { margin-top: 0; }
.legal-page__body p,
.legal-page__body ul,
.legal-page__body address { margin: 0 0 1em; }
.legal-page__body ul { padding-left: 1.2em; }
.legal-page__body address { font-style: normal; }
.legal-page__body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.legal-page .meta { color: var(--muted); font-size: .85rem; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 760px) {
  .hero__stage { min-height: 0; }

  .hero__image { transform: scale(1.04); }

  .hero__shade {
    background:
      linear-gradient(180deg,
        rgb(0 0 0 / .68) 0%,
        rgb(0 0 0 / .5) 25%,
        transparent 45%,
        transparent 58%,
        rgb(0 0 0 / .88) 100%),
      linear-gradient(90deg, rgb(0 0 0 / .24), transparent);
  }

  .hero__content {
    display: block;
    padding-top: calc(max(3rem, env(safe-area-inset-top, 0px) + 1.5rem) + 20px);
    padding-bottom: 1.5rem;
  }

  .hero__logo { width: 280px; }

  .slogan {
    width: min(100%, 28rem);
    margin-top: clamp(3rem, 10vh, 5rem);
    padding-block: 0;
    font-size: 18px;
  }

  .hero__bottom {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .news-link { font-size: .82rem; }
  .news-link__title { margin: .3rem 0 .15rem; font-size: 1.1rem; }
  .news-link--secondary { font-size: .82rem; }

  .contact {
    width: 100%;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / .35);
  }
  .contact__address { display: none; }

  /* Award strip: fixed readable height, swipe sideways */
  .awards {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .awards::-webkit-scrollbar { display: none; }
  .awards__inner {
    display: flex;
    align-items: stretch;
    width: max-content;
    padding: .75rem 1.25rem;
  }
  .awards__strip { flex: none; width: auto; max-width: none; height: 7rem; }

  /* Scroll cues: soft fade + arrow, pinned to the screen edges with
     position: sticky inside the scrolling strip (no JavaScript).
     Right cue: always shown; where supported it fades out at the end.
     Left cue: only where supported, fades in once the strip is scrolled. */
  .awards__inner::before,
  .awards__inner::after {
    position: sticky;
    z-index: 1;
    flex: none;
    width: 4.5rem;
    display: flex;
    align-items: center;
    color: var(--ink);
    font-size: 1.1rem;
    pointer-events: none;
  }
  .awards__inner::after {
    content: "→";
    right: 0;
    margin-left: -4.5rem;
    justify-content: flex-end;
    padding-right: .9rem;
    background: linear-gradient(90deg, rgb(255 255 255 / 0), #fff 70%);
  }
  @supports (animation-timeline: scroll(x)) {
    .awards__inner::before {
      content: "←";
      left: 0;
      margin-right: -4.5rem;
      padding-left: .9rem;
      background: linear-gradient(270deg, rgb(255 255 255 / 0), #fff 70%);
      animation: awards-cue-in linear both;
      animation-timeline: scroll(x nearest);
      animation-range: 0% 15%;
    }
    .awards__inner::after {
      animation: awards-cue-out linear both;
      animation-timeline: scroll(x nearest);
      animation-range: 85% 100%;
    }
    @keyframes awards-cue-out { to { opacity: 0; } }
    @keyframes awards-cue-in { from { opacity: 0; } to { opacity: 1; } }
  }

  .news-section { grid-template-columns: 1fr; min-height: 0; }
  .news-section__heading,
  .news-section__details { grid-column: 1; }
  .news-section__details { margin-top: 2rem; }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .footer__home { width: 100%; max-width: none; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
  .footer__links { flex-direction: column; align-items: flex-end; gap: .7rem; text-align: right; }

  .legal-page { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
