/* ============================================================
   EINZELGESELLSCHAFT — Research Studio
   Schwarz / Weiß, editoriales Raster
   ============================================================ */

:root {
  --paper: #f3f3f1;
  --ink: #0a0a0a;

  --bg: var(--paper);
  --fg: var(--ink);

  --maxw: 1560px;
  --gutter: clamp(18px, 3.2vw, 54px);
  --col-gap: clamp(14px, 1.6vw, 26px);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-meta: 14px;
  --fs-body: 17px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--ink); color: var(--paper); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Cursor: Lupe, läuft leicht nach ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.cursor.on { opacity: 1; }

/* Position kommt per JS auf .cursor — Skalierung deshalb aufs SVG */
.cursor svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.18s ease;
}

.cursor.grow svg { transform: scale(1.35); }

/* Standard-Cursor nur ausblenden, wenn das Skript die Lupe wirklich
   aktiviert hat — sonst stünde man ganz ohne Zeiger da. */
@media (hover: hover) and (pointer: fine) {
  html.has-lens body,
  html.has-lens a,
  html.has-lens button,
  html.has-lens .row,
  html.has-lens summary { cursor: none; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { transition: opacity 0.25s ease; }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
}

/* Umkehrung: schwarze Fläche */
.inv { --bg: var(--ink); --fg: var(--paper); }

.pos, .inv { background: var(--bg); color: var(--fg); }

.meta { font-size: var(--fs-meta); line-height: 1.45; }
.soft { opacity: 0.6; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(18px, 2.2vw, 30px);
  padding-bottom: clamp(20px, 2.4vw, 34px);
  overflow: hidden;
}

/* Bild in der Ecke — liegt hinter dem Text, kommt beim
   Drüberfahren nach vorn */
.hero-img {
  position: absolute;
  right: 0;
  top: clamp(170px, 26vh, 300px);
  width: clamp(230px, 38vw, 610px);
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
}

.hero-img img { width: 100%; height: auto; }

.hero-img:hover {
  z-index: 30;
  transform: translate(-4vw, -3vh) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .hero-img { transition: none; }
  .hero-img:hover { transform: none; }
}

/* Text liegt standardmäßig über dem Bild.
   Kein z-index auf .wrap — sonst entsteht ein eigener Stacking-Context
   und die Headline könnte nicht mehr gegen das Bild blenden. */
.hero > .wrap { position: relative; }

@media (max-width: 1000px) {
  .hero-img { width: 48vw; bottom: auto; top: 44vh; opacity: 0.9; }
}

/* .wrap ist das Flex-Item — muss selbst Spalte sein, damit
   margin-top:auto die Meta-Leiste nach unten schiebt */
.hero > .wrap { flex: 1; display: flex; flex-direction: column; }

.hero-bar { align-items: start; padding-bottom: clamp(22px, 3vw, 44px); }

.hero-bar .b-name {
  grid-column: 1 / span 4;
  font-size: var(--fs-meta);
  font-weight: 700;
}

.hero-bar .b-claim { grid-column: 5 / span 4; font-size: var(--fs-meta); }

.hero-bar .b-mail {
  grid-column: 10 / span 3;
  justify-self: end;
  text-align: right;
  font-size: var(--fs-meta);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

@media (max-width: 1000px) {
  .hero-bar .b-name { grid-column: 1 / span 7; }
  .hero-bar .b-mail { grid-column: 8 / span 5; }
  .hero-bar .b-claim { grid-column: 1 / span 12; margin-top: 16px; }
}

.hero-name {
  font-size: clamp(38px, 10.6vw, 190px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  margin-bottom: clamp(18px, 2.4vw, 36px);
  /* invertiert sich über dem Foto: dunkel auf Papier, hell auf Bild */
  color: #fff;
  mix-blend-mode: difference;
}

.hero-name .ast { font-weight: 400; }

/* Große Zwischenzeile */
.hero-kind {
  font-size: clamp(30px, 7vw, 128px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  border-top: 2px solid currentColor;
  padding-top: clamp(14px, 1.8vw, 26px);
  margin-bottom: clamp(22px, 3vw, 44px);
}

.hero-mid { align-items: start; row-gap: clamp(24px, 3vw, 40px); }

.hero-left { grid-column: 1 / span 4; }

.hero-copy { font-size: var(--fs-body); line-height: 1.45; }

.hero-tags {
  grid-column: 6 / span 3;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.hero-tags .h {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 400;
  opacity: 0.6;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.hero-nav {
  margin-top: clamp(20px, 2.6vw, 34px);
  display: grid;
  gap: 2px;
  justify-items: start;
}

.hero-nav a {
  font-size: clamp(19px, 2.1vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1.12;
}

.hero-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-strip {
  margin-top: auto;
  padding-top: clamp(26px, 3.2vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: space-between;
  font-size: var(--fs-meta);
  border-top: 1px solid currentColor;
}

@media (max-width: 1000px) {
  .hero-left { grid-column: 1 / span 12; }
  .hero-tags { grid-column: 1 / span 12; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding-top: clamp(52px, 6.6vw, 112px); padding-bottom: clamp(52px, 6.6vw, 112px); }

.sec-head { margin-bottom: clamp(28px, 3.6vw, 56px); align-items: start; }

.sec-head .no { grid-column: 1 / span 1; font-size: var(--fs-meta); font-weight: 700; }

.sec-head h2 {
  grid-column: 3 / span 6;
  font-size: clamp(32px, 5.6vw, 96px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.sec-head .note { grid-column: 10 / span 3; font-size: var(--fs-meta); line-height: 1.5; }

@media (max-width: 1000px) {
  .sec-head .no { grid-column: 1 / span 12; }
  .sec-head h2 { grid-column: 1 / span 12; margin-top: 10px; }
  .sec-head .note { grid-column: 1 / span 12; margin-top: 18px; }
}

/* ---------- Zeilen ---------- */

.rows { border-top: 2px solid currentColor; }

.row {
  padding: clamp(16px, 2.1vw, 30px) 0;
  border-bottom: 1px solid currentColor;
  align-items: baseline;
  transition: padding-left 0.22s ease;
}

.row:hover { padding-left: 14px; }

.row .no { grid-column: 1 / span 1; font-size: var(--fs-meta); font-weight: 700; }

.row h3 {
  grid-column: 3 / span 4;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.row p { grid-column: 8 / span 4; font-size: 15.5px; line-height: 1.5; }

.row .tag {
  grid-column: 12 / span 1;
  justify-self: end;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .row .no { grid-column: 1 / span 2; }
  .row h3 { grid-column: 3 / span 10; }
  .row p { grid-column: 3 / span 10; margin-top: 8px; }
  .row .tag { grid-column: 3 / span 10; justify-self: start; text-align: left; margin-top: 8px; }
}

/* ---------- Studio ---------- */

.studio-lead {
  grid-column: 1 / span 6;
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.studio-body { grid-column: 8 / span 5; display: grid; gap: 12px; }
.studio-body p { font-size: 15.5px; line-height: 1.55; }

.link-u {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
}

@media (max-width: 1000px) {
  .studio-lead, .studio-body { grid-column: 1 / span 12; }
  .studio-body { margin-top: 20px; }
}

.facts { margin-top: clamp(36px, 4.4vw, 72px); border-top: 2px solid currentColor; }

.fact { grid-column: span 3; padding-top: 16px; }

.fact .v {
  display: block;
  font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 8px;
}

.fact .k { font-size: 12.5px; opacity: 0.66; }

@media (max-width: 760px) { .fact { grid-column: span 6; padding-bottom: 16px; } }

/* ---------- Kontakt ---------- */

.contact-lead {
  grid-column: 1 / span 5;
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.contact-note { grid-column: 8 / span 4; font-size: 15.5px; line-height: 1.55; }

.contact-mail {
  display: block;
  margin-top: clamp(26px, 3.2vw, 52px);
  font-size: clamp(27px, 6.6vw, 112px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-decoration: none;
  word-break: break-word;
}

.contact-mail:hover { text-decoration: underline; text-underline-offset: 0.08em; }

.contact-rows { margin-top: clamp(28px, 3.4vw, 54px); border-top: 2px solid currentColor; }

.contact-rows .r {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid currentColor;
  font-size: 15.5px;
}

.contact-rows .r span:last-child { text-align: right; font-weight: 700; }

@media (max-width: 1000px) {
  .contact-lead, .contact-note { grid-column: 1 / span 12; }
  .contact-note { margin-top: 16px; }
}

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(30px, 3.4vw, 52px); padding-bottom: clamp(30px, 3.4vw, 52px); }

.foot-word {
  font-size: clamp(30px, 8.6vw, 156px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.foot { align-items: baseline; row-gap: 20px; }

.foot .c1 { grid-column: 1 / span 4; font-size: var(--fs-meta); }
.foot .c2 { grid-column: 6 / span 3; }
.foot .c3 { grid-column: 10 / span 3; justify-self: end; text-align: right; }

.foot .h { font-size: 12.5px; opacity: 0.6; display: block; margin-bottom: 8px; }

.foot .c2 a, .foot .c3 a {
  display: block;
  text-decoration: none;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
  padding: 2px 0;
}

.foot .c2 a:hover, .foot .c3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .foot .c1, .foot .c2, .foot .c3 { grid-column: 1 / span 12; justify-self: start; text-align: left; }
}

/* ---------- Rechtsseiten ---------- */

.legal-top { padding-top: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(30px, 4vw, 62px); }

.legal-top .back {
  grid-column: 1 / span 4;
  font-size: var(--fs-meta);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  justify-self: start;
}

.legal-top .mail {
  grid-column: 10 / span 3;
  justify-self: end;
  font-size: var(--fs-meta);
  text-decoration: none;
}

.legal-top h1 {
  grid-column: 1 / span 12;
  margin-top: clamp(26px, 3.6vw, 58px);
  font-size: clamp(38px, 9vw, 156px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.legal-top .legal-sub { grid-column: 1 / span 6; margin-top: 18px; font-size: var(--fs-meta); line-height: 1.5; }

.legal-main { padding-top: clamp(34px, 4vw, 60px); padding-bottom: clamp(48px, 6vw, 96px); }

.legal-body { grid-column: 3 / span 7; }

.legal-body h2 {
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 2px solid currentColor;
  margin-bottom: 10px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.6; max-width: 68ch; }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { padding-left: 18px; display: grid; gap: 5px; margin-top: 8px; }
.legal-body a { text-underline-offset: 3px; }

.legal-body .placeholder {
  background: var(--ink);
  color: var(--paper);
  padding: 1px 7px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .legal-body { grid-column: 1 / span 12; }
  .legal-top .back { grid-column: 1 / span 6; }
  .legal-top .mail { grid-column: 7 / span 6; }
  .legal-top .legal-sub { grid-column: 1 / span 12; }
}
