/* Seaoak Labs – Website
   Baut auf tokens.css auf (CI 1.1). Werte, die zwischen 390 px und 1280 px Breite
   fließend laufen, sind als clamp() aus den beiden Endpunkten des Mockups gerechnet. */

@import url("tokens.css");

/* Schriften, selbst gehostet (SIL Open Font License, siehe assets/fonts) */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; }

a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 150ms, opacity 150ms, text-decoration-color 150ms;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
.on-dark :focus-visible { outline: var(--focus-ring); }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-sea);
  letter-spacing: var(--tracking-serif);
}

.page {
  max-width: var(--page-max);
  margin: 0 auto;
}

.wrap { padding-inline: var(--page-x); }

/* Sprunglink */
.skip-link {
  position: absolute;
  left: var(--page-x);
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Kopfzeile: Paper, keine Linie, kein Schatten, nicht fixiert */
.site-header {
  position: relative;
  height: var(--header-h);
  padding-inline: var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Einzeiliges Logo; „oak“ 30 px (Handy 26 px). Die SVG hat links etwas Luft. */
.logo { display: block; margin-left: -4px; }
.logo img { height: 41.6px; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-nav);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  margin-right: -8px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font: 500 var(--text-nav)/1 var(--font-sans);
  cursor: pointer;
}

/* Einstieg */
.hero {
  padding-top: clamp(44px, calc(4.944vw + 24.72px), 88px);
  padding-bottom: clamp(56px, calc(4.494vw + 38.47px), 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, calc(1.348vw + 22.74px), 40px);
}
.hero h1 {
  max-width: 1120px;
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.hero h1 .serif {
  display: block;
  font-size: var(--text-h1-serif);
  line-height: 1;
}
.lead {
  max-width: 640px;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-text-soft);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Button und Textlink */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-button);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.button:hover { opacity: var(--hover-opacity); }

.text-link {
  font-size: var(--text-button);
  font-weight: 500;
  line-height: 1;
  padding-block: 14px;
}

/* Wellenlinie: Halbwelle 40 px, Kontrollpunkt 13 px über der Mitte (Handy 20 und 10) */
.wave {
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0 20 q20 -13 40 0 t40 0' fill='none' stroke='%231A5F7A' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x left center / 80px 40px;
}

/* Abschnittsüberschrift */
.section-title {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: var(--tracking-h2);
}

/* Produkte */
.products {
  padding-top: clamp(48px, calc(3.596vw + 33.98px), 80px);
  padding-bottom: clamp(60px, calc(4.944vw + 40.72px), 104px);
}
.products .section-title { margin-bottom: clamp(28px, calc(1.798vw + 20.99px), 44px); }

.product-list { list-style: none; margin: 0; padding: 0; }

.product {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) auto;
  grid-template-areas: "name desc chip";
  column-gap: 48px;
  align-items: start;
  padding-block: var(--row-y);
  border-top: var(--line);
}
.product:last-child { border-bottom: var(--line); }

.product-name {
  grid-area: name;
  font-size: var(--text-product);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.product-body { grid-area: desc; }
.product-text {
  font-size: var(--text-lead);
  line-height: 1.4;
}
.product-platforms {
  margin-top: 12px;
  font-size: var(--text-small);
  line-height: 1.4;
  color: var(--color-muted);
}
.chip {
  grid-area: chip;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  font-size: var(--text-chip);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.product--workshop .product-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-product-serif);
  line-height: 1.08;
  letter-spacing: normal;
  color: var(--color-sea);
}
.product--workshop .product-text { color: var(--color-text-soft); }

/* Arbeitsweise: dunkle Fläche */
.approach {
  background: var(--color-ink);
  color: var(--color-paper);
  padding-top: clamp(56px, calc(4.494vw + 38.47px), 96px);
  padding-bottom: clamp(60px, calc(4.944vw + 40.72px), 104px);
}
.approach .section-title { margin-bottom: clamp(32px, calc(2.247vw + 23.24px), 52px); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}
.approach h3 {
  margin-bottom: 14px;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: var(--tracking-h3);
}
.approach p {
  max-width: 70ch;
  color: var(--color-on-dark-soft);
}

/* Kontakt */
.contact {
  padding-top: clamp(56px, calc(4.494vw + 38.47px), 96px);
  padding-bottom: clamp(48px, calc(5.393vw + 26.97px), 96px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.contact h2 {
  margin-bottom: 16px;
  font-size: var(--text-display-serif);
  line-height: 1;
  letter-spacing: normal;
}
.contact p {
  max-width: 480px;
  font-size: clamp(17px, calc(0.337vw + 15.69px), 20px);
  line-height: 1.5;
  color: var(--color-text-soft);
}
.contact-mail {
  font-size: clamp(25px, calc(1.011vw + 21.06px), 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--tracking-h2);
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
  white-space: nowrap;
}
.contact-mail:hover { text-decoration-thickness: 3px; opacity: var(--hover-opacity); }

/* Fußzeile */
.site-footer {
  min-height: clamp(76px, calc(1.798vw + 68.99px), 92px);
  border-top: var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: var(--text-small);
  line-height: 1.4;
  color: var(--color-muted);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}

/* Unterseiten (Imprint, Privacy) */
.legal {
  padding-top: clamp(44px, calc(4.944vw + 24.72px), 88px);
  padding-bottom: clamp(60px, calc(4.944vw + 40.72px), 104px);
}
.legal h1 {
  margin-bottom: clamp(28px, calc(1.798vw + 20.99px), 44px);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: var(--tracking-h2);
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: var(--tracking-h3);
}
.legal p,
.legal address { max-width: 70ch; font-style: normal; }
.legal p + p { margin-top: 12px; }
.legal .lead { margin-bottom: 8px; }

/* 720 bis 1023 px: Navigation sichtbar, Produktzeile mit 240 px Namensspalte,
   Arbeitsweise einspaltig */
@media (max-width: 1023px) {
  .site-nav ul { gap: 28px; }
  .product { grid-template-columns: 240px minmax(0, 1fr) auto; column-gap: 32px; }
  .approach-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact { flex-direction: column; align-items: flex-start; gap: 32px; }
}

/* Unter 720 px: Handy-Aufbau */
@media (max-width: 719px) {
  .logo { margin-left: -3px; }
  .logo img { height: 36px; }

  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    padding: 0 var(--page-x) 16px;
    background: var(--color-paper);
    border-bottom: var(--line);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { min-height: 48px; font-size: 18px; }
  html:not(.js) .site-header { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav ul { flex-direction: row; gap: 24px; }

  .hero h1 { line-height: 1.03; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 16px; }
  .button { min-height: 54px; width: 100%; }
  .hero-actions .text-link { align-self: center; }

  .wave {
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32' viewBox='0 0 40 32'%3E%3Cpath d='M0 16 q10 -10 20 0 t20 0' fill='none' stroke='%231A5F7A' stroke-width='2.5'/%3E%3C/svg%3E");
    background-size: 40px 32px;
  }

  .product {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name chip"
      "desc desc";
    row-gap: 14px;
    align-items: center;
  }
  .product-text { line-height: 1.45; }
  .chip { height: 32px; padding: 0 14px; }
  .product--workshop { grid-template-areas: "name name" "desc desc"; }

  .contact-mail { white-space: normal; overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 6px; }

  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding-block: 16px; }
}

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

/* Zahlen in Tabellen (CI: tabular-nums) */
table { font-variant-numeric: tabular-nums; }

/* Sprachwechsel und aktuelle Seite in der Navigation */
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lang-switch a { color: var(--color-muted); }
.lang-switch a:hover { color: var(--color-ink); }

/* Gründerin */
.founder {
  padding-top: clamp(44px, calc(4.944vw + 24.72px), 88px);
  padding-bottom: clamp(60px, calc(4.944vw + 40.72px), 104px);
}
.founder h1 {
  margin-bottom: clamp(28px, calc(1.798vw + 20.99px), 44px);
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.founder h1 .serif {
  display: block;
  font-size: var(--text-h1-serif);
  line-height: 1;
}
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.founder-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--text-small);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-text { max-width: 640px; }
.founder-text h2 {
  margin: 40px 0 12px;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: var(--tracking-h3);
}
.founder-text p + p { margin-top: 12px; }

@media (max-width: 1023px) {
  .founder-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .founder-photo { max-width: 360px; width: 100%; }
}
