/* SOMMON UG — company profile. Erode, white and black, SOMMON navy for the hero and the principles, signal orange for actions
   and the check. One grid for every section: heading in columns 1–4, content in 5–12. Runs in older browsers too (Chrome 87). */

@font-face { font-family: "Erode"; src: url("assets/fonts/erode-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/erode-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/erode-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #eef1f6;
  --ink: #000000;
  --muted: #4a5163;
  --navy: #1d2c54;
  --navy-light: #b4c1e2;
  --accent: #ff6831;
  --accent-ink: #000000;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 2.6vw, 4rem);
  --step-display: clamp(4.5rem, 14vw, 14rem);

  --m: clamp(16px, 2.8vw, 40px);
  --gap: 24px;
  --sec: clamp(88px, 9vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(29, 44, 84, 0.15); }
body {
  margin: 0; background: #000; color: var(--ink);
  font: 400 var(--step-body)/1.5 "Erode", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, dl, dd, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
a, button, input, label { touch-action: manipulation; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 20; background: #fff; color: #000; padding: 12px 18px; }
.skip:focus { top: 12px; }

main { position: relative; z-index: 1; background: var(--bg); }

/* one button shape: square corners, flat fill */
.knopf {
  display: inline-block; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font: 600 var(--step-body)/1.3 "Erode", Georgia, serif; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.knopf:hover { background: #000; color: #fff; transform: translateY(-2px); }
.knopf:active { transform: translateY(0) scale(0.98); }
.knopf-klein { min-height: 44px; padding: 10px 18px; font-size: var(--step-small); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; /* taste-skill-ignore: fallback for older browsers, svh follows */ min-height: 100svh;
  background: var(--navy); color: #fff; padding: 24px var(--m) 40px;
  display: grid; grid-template-rows: auto 1fr auto;
}
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--step-small); }
.kopf ul { display: flex; align-items: center; gap: 28px; }
.kopf a:not(.knopf) { text-decoration: none; }
.kopf a:not(.knopf):hover { text-decoration: underline; text-underline-offset: 4px; }
.marke { font-weight: 600; font-size: var(--step-body); }
.aussage { align-self: start; margin-top: 14vh; font-size: var(--step-display); font-weight: 500; letter-spacing: -0.025em; line-height: 0.95; }
.zeilen .zeile { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.zeilen [data-zeile] { display: block; }
.hell { color: var(--navy-light); }
.hero-satz { justify-self: end; max-width: 30ch; text-align: right; font-size: var(--step-body); line-height: 1.45; }

/* ---------- the shared section grid ---------- */
.abschnitt {
  position: relative; z-index: 1;
  padding: var(--sec) var(--m);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start;
}
.abschnitt > h2 { grid-column: 1 / 5; font-size: var(--step-head); letter-spacing: -0.025em; line-height: 1; }
.abschnitt > .inhalt { grid-column: 5 / 13; }
.einleitung { max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }

.stammdaten { margin-top: 48px; display: grid; gap: 14px; max-width: 46rem; }
.stammdaten > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--gap); }
.stammdaten dt { color: var(--muted); }
.stammdaten dd { margin: 0; }
.stammdaten a { text-decoration: none; }
.stammdaten a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* competences: five fields in two columns */
.kompetenzen { background: var(--surface); }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px var(--gap); }
.feld-k h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; }
.feld-k > p { margin-top: 10px; max-width: 38ch; }
.feld-k ul { margin-top: 18px; display: grid; gap: 8px; }
.feld-k li { position: relative; padding-left: 22px; }
.feld-k li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--navy); }

/* one full-bleed photograph: the seat; its caption sits on the photo's own ground, not above the next heading */
.band { position: relative; z-index: 1; background: var(--bg); }
.band-rahmen { height: 70vh; min-height: 380px; overflow: hidden; }
.band-rahmen img { width: 100%; height: 118%; object-fit: cover; }
.band figcaption { padding: 12px var(--m) 0; font-size: var(--step-small); color: var(--muted); background: var(--bg); padding-bottom: 12px; }

/* principles on the navy field */
.grundsaetze { background: var(--navy); color: #fff; }
.saetze { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); }
.saetze h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; }
.saetze p { margin-top: 10px; max-width: 40ch; }
.rahmen { margin-top: 64px; max-width: 60ch; }
.rahmen span { display: block; color: var(--navy-light); font-size: var(--step-small); margin-bottom: 4px; }

/* the check (a preview: nothing is checked, nothing leaves the page) */
.pruefen { background: var(--accent); color: var(--accent-ink); }
.pruefen-form { margin-top: 40px; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.feld-label { font-size: var(--step-small); font-weight: 600; }
.feld {
  width: 100%; min-height: 72px; padding: 10px 0; border: 0; border-bottom: 3px solid #000; border-radius: 0;
  background: transparent; color: #000; font: 500 var(--step-head)/1.1 "Erode", Georgia, serif; letter-spacing: -0.02em;
}
.feld::placeholder { color: rgba(0, 0, 0, 0.55); opacity: 1; }
.feld:focus { outline: none; border-bottom-color: #fff; }
.feld:focus-visible { outline: 3px solid #000; outline-offset: 4px; }
.einwilligung { display: flex; gap: 14px; align-items: flex-start; line-height: 1.4; cursor: pointer; max-width: 60ch; }
.einwilligung input { flex: none; width: 24px; height: 24px; margin: 3px 0 0; accent-color: #000; cursor: pointer; }
.pruefen-form .knopf { align-self: flex-start; background: #000; color: #fff; }
.pruefen-form .knopf:hover { background: #fff; color: #000; }
.fehler { font-weight: 600; }
.fehler[hidden] { display: none; }
.ergebnis { font-size: var(--step-lead); line-height: 1.35; max-width: 50ch; }
.ergebnis:empty { display: none; }
.hinweis { font-size: var(--step-small); max-width: 56ch; }

/* contact */
.kontakt-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 48px var(--gap); align-items: start; }
.kontakt address > p { font-size: var(--step-lead); line-height: 1.4; }
.kontakt .stammdaten { margin-top: 32px; }
.kontakt .knopf { margin-top: 40px; }
.kontakt-bild { width: 100%; }

/* ---------- footer: columns above, wordmark below, uncovered as the page slides away ---------- */
.fuss {
  position: -webkit-sticky; position: sticky; bottom: 0; z-index: 0;
  min-height: 100vh; /* taste-skill-ignore: fallback for older browsers, svh follows */ min-height: 100svh; background: #000; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; padding: 40px var(--m) 24px;
}
.fuss-spalten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); color: #c3c7d0; }
.fuss-spalten .erst { color: #fff; margin-bottom: 6px; }
.fuss-spalten a { text-decoration: none; }
.fuss-spalten a:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.wortmarke { display: block; width: 100%; height: auto; }
.wortmarke text { font-family: "Erode", Georgia, serif; font-weight: 500; font-size: 200px; fill: #fff; }
.recht { margin-top: 20px; font-size: var(--step-small); }
.recht a { margin-left: 20px; }
.nachweise { margin-top: 12px; font-size: var(--step-small); color: #c3c7d0; max-width: 120ch; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1000px) {
  .abschnitt > h2, .abschnitt > .inhalt { grid-column: 1 / -1; }
  .fuss-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 760px) {
  :root { --step-display: 19vw; }
  .kopf ul li:not(:last-child) { display: none; }
  .aussage { margin-top: 18vh; }
  .hero-satz { justify-self: start; text-align: left; max-width: none; }
  .felder, .saetze { grid-template-columns: 1fr; gap: 44px; }
  .stammdaten > div { grid-template-columns: 1fr; gap: 2px; }
  .kontakt-inhalt { grid-template-columns: 1fr; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .zeilen [data-zeile] { transform: translateY(105%); animation: zeile-hoch 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero-satz, .js .kopf { opacity: 0; animation: einblenden 700ms var(--ease-out) 850ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].drin { opacity: 1; transform: none; }
  .js .inhalt > [data-reveal]:nth-child(2), .js .felder > [data-reveal]:nth-child(2), .js .saetze > [data-reveal]:nth-child(2) { transition-delay: 90ms; }
  .js .felder > [data-reveal]:nth-child(3), .js .saetze > [data-reveal]:nth-child(3) { transition-delay: 60ms; }
  .js .felder > [data-reveal]:nth-child(4), .js .saetze > [data-reveal]:nth-child(4) { transition-delay: 150ms; }
  .js .felder > [data-reveal]:nth-child(5), .js .saetze > [data-reveal]:nth-child(5) { transition-delay: 120ms; }
  .js .saetze > [data-reveal]:nth-child(6) { transition-delay: 210ms; }
}
@keyframes zeile-hoch { to { transform: none; } }
@keyframes einblenden { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf { transition: none; }
}

/* ---------- legal pages ---------- */
.recht-seite { background: var(--bg); }
.recht-seite main { padding: 24px var(--m) var(--sec); }
.recht-kopf { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step-small); }
.recht-kopf a:not(.marke) { text-decoration: underline; text-underline-offset: 4px; }
.recht-text { max-width: 68ch; margin-top: 14vh; }
.recht-text h1 { font-size: var(--step-head); letter-spacing: -0.025em; line-height: 0.95; margin-bottom: 40px; }
.recht-text h2 { font-size: var(--step-lead); font-weight: 600; margin: 40px 0 10px; }
.recht-text p { line-height: 1.55; }
.recht-text .stand { color: var(--muted); font-size: var(--step-small); }
.recht-text .kurz { margin-top: 20px; padding: 20px 24px; background: var(--surface); }
.recht-fuss { background: #000; color: #fff; padding: 32px var(--m); font-size: var(--step-small); }
.recht-fuss a { margin-left: 20px; }
