/* Karolus Kapital — One-Pager
   Swiss-Editorial: Host Grotesk, 12-Spalten-Raster, Haarlinien, Scroll-Effekte.
   Schrift lokal gehostet (DSGVO: kein Abruf bei Google). */

@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --grey: #8f8f8f;
  --grey-light: #b9b9b9;
  --line: #dadada;
  --soft: #f2f2f2;
  --red: #d12a1e;

  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gx: 24px;            /* Seitenrand */
  --gap: 24px;           /* Spaltenabstand */
  --pre: 5;             /* Spalten links der senkrechten Haarlinie */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Raster ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--gx);
}
.c-label { grid-column: 4 / 6; }
.c-main  { grid-column: 6 / 13; }
.c-text  { grid-column: 6 / 10; }
.c-wide  { grid-column: 4 / 13; }

.ruled { position: relative; }
.ruled::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--gx) + (100% - 2 * var(--gx) + var(--gap)) * var(--pre) / 12 - var(--gap) / 2);
  width: 1px;
  background: var(--ink);
  pointer-events: none;
}

/* ---------- Typografie ---------- */

.mega, .big, .h-name {
  font-weight: 500;
  letter-spacing: -0.05em;
  margin: 0;
}
.mega {
  font-size: clamp(46px, 7.4vw, 132px);
  line-height: 0.88;
}
.big {
  font-size: clamp(40px, 6.2vw, 112px);
  line-height: 0.9;
}
.h-name {
  font-size: clamp(26px, 2.3vw, 36px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.small {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}
.muted { color: var(--grey); }

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.4;
  max-width: 30em;
  margin: 0;
}

/* Zeilen-Maske für das Hochfahren der Headlines */
.ln { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.ln__i { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .ln__i { transform: none; }
.is-in .ln:nth-child(2) .ln__i { transition-delay: 0.08s; }
.is-in .ln:nth-child(3) .ln__i { transition-delay: 0.16s; }
.is-in .ln:nth-child(4) .ln__i { transition-delay: 0.24s; }

/* Einfaches Einblenden */
.fade { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.fade.is-in { opacity: 1; transform: none; }

/* ---------- Buttons & Links ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.pill:hover { transform: translateY(-1px); background: #2a2a2a; }
.pill--light { background: var(--bg); color: var(--ink); }
.pill--light:hover { background: var(--soft); }

.ul {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ease);
}
.ul:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Kopfzeile ---------- */

.top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: 64px;
  align-items: center;
}
.top__logo { grid-column: 1 / 4; display: inline-flex; }
.top__logo img { height: 30px; width: auto; }
.top__meta { grid-column: 6 / 9; }
.top__nav {
  grid-column: 9 / 13;
  justify-self: end;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Fixe Mini-Leiste beim Hochscrollen */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gx);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.bar.is-shown { transform: none; }
.bar img.logo { height: 26px; width: auto; }
.bar nav { display: flex; gap: 22px; align-items: center; white-space: nowrap; }

/* ---------- Ecken-Schriftzug ---------- */

.corner {
  position: fixed;
  bottom: 10px;
  z-index: 15;
  font-size: clamp(48px, 5.6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.8;
  color: var(--grey);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.corner--l { left: var(--gx); }
.corner--r { right: var(--gx); }
.corners-off .corner { opacity: 0; transform: translateY(30px); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow-x: clip; }
.hero__top { padding-top: 150px; }

.hero__brand { grid-column: 6 / 13; margin-bottom: 0.08em; }
.hero__label { grid-column: 4 / 6; align-self: end; padding-bottom: 0.9vw; }
.hero__claim { grid-column: 4 / 13; }
.hero__claim .ln:nth-child(3) { margin-left: calc((100% + var(--gap)) * 2 / 9); }
.hero__claim .ln:nth-child(4) { margin-left: calc((100% + var(--gap)) * 3.4 / 9); }

.hero__foot { padding-top: 52px; padding-bottom: 170px; align-items: start; row-gap: 32px; }
.facts { grid-column: 4 / 6; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.facts span:first-child { color: var(--grey); }
.hero__intro { grid-column: 6 / 11; display: grid; gap: 28px; }
.hero__cta { display: flex; align-items: center; gap: 20px; }

[data-drift] { will-change: transform; }

/* ---------- Dunkles Band ---------- */

.band { position: relative; color: #f2f2f2; }
.band__bg {
  position: absolute;
  inset: 0;
  background: #0b0b0b;
  clip-path: inset(0 var(--r, 0px) 0 var(--l, 0px));
  will-change: clip-path;
}
.band { min-height: clamp(640px, 112vh, 1100px); overflow: hidden; }

/* Foto: randlos, linke Hälfte, volle Höhe des Bandes */
.band__media {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 50%;
  margin: 0;
  overflow: hidden;
  background: #1a1a1a;
  clip-path: inset(0 var(--mr, 0px) 0 var(--ml, 0px));
  will-change: clip-path;
}
.band__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.12) brightness(0.86);
  transform: scale(var(--zoom, 1.18));
  transform-origin: 50% 40%;
  will-change: transform;
}
/* Übergang ins Schwarz + Lesbarkeit der Bildunterschrift */
.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 11, 11, 0) 38%, rgba(11, 11, 11, .35) 62%, rgba(11, 11, 11, .8) 84%, #0b0b0b 100%),
    linear-gradient(to top, rgba(11, 11, 11, 0.7) 0%, rgba(11, 11, 11, 0) 28%);
  pointer-events: none;
}
.band__media figcaption {
  position: absolute;
  left: var(--gx);
  bottom: 22px;
  z-index: 1;
  color: rgba(242, 242, 242, 0.82);
}

.band__inner {
  position: relative;
  min-height: clamp(640px, 112vh, 1100px);
  align-content: center;
  padding-top: 120px;
  padding-bottom: 120px;
}
.band__quote {
  grid-column: 7 / 13;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-size: clamp(36px, 4.3vw, 84px);
}
.band__quote .ln:nth-child(2) { margin-left: calc((100% + var(--gap)) * 1 / 6); }
.band__quote .ln:nth-child(4) { margin-left: calc((100% + var(--gap)) * 2 / 6); }
.band .reveal-lines { transition-delay: 0.1s; }

/* ---------- Sektionen ---------- */

.section { padding-top: 170px; padding-bottom: 60px; }
.section__head { margin-bottom: 90px; }
.section__head .ln:nth-child(2) { margin-left: calc((100% + var(--gap)) * 2 / 9); }
.section__head .ln:nth-child(3) { margin-left: calc((100% + var(--gap)) * 3 / 9); }
/* kurze erste Zeile („Die“): weniger Einzug, sonst klafft eine Lücke */
.section__head--short .ln:nth-child(2) { margin-left: calc((100% + var(--gap)) * 1 / 9); }

.num { color: var(--red); }

/* Über uns */
.about { padding-top: 6px; padding-bottom: 6px; }
.about .c-label { display: grid; align-content: start; gap: 6px; }
.about__body p { margin: 0 0 1.1em; max-width: 34em; }
.about__body p:first-child {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 450;
  max-width: 22em;
  margin-bottom: 1.2em;
}
.about__body p:not(:first-child) { color: #3a3a3a; }

/* Was wir machen — Tabellen-Zeilen */
.rows { padding: 0 var(--gx); }
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--grey-light);
  transition: color 0.5s ease;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row.is-active { color: var(--ink); }
.row__name { grid-column: 1 / 6; }
.row__name .h-name { transition: transform 0.6s var(--ease); }
.row.is-active .row__name .h-name { transform: translateX(6px); }
.row__text { grid-column: 6 / 10; position: relative; }
.row__text p { margin: 0; max-width: 32em; }
.row__text a { display: inline-block; margin-top: 14px; }
.row__no { grid-column: 12 / 13; justify-self: end; }
.row.is-active .row__no { color: var(--red); }

/* Gesellschafter */
.people .person { border-top: 1px solid var(--ink); padding-top: 18px; }
.people .person:nth-child(1) { grid-column: 4 / 8; }
.people .person:nth-child(2) { grid-column: 8 / 12; }
.person .small { margin: 8px 0 22px; }
.person p { margin: 0; max-width: 30em; color: #3a3a3a; }

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

.contact { padding-top: 190px; padding-bottom: 170px; }
.contact .c-label { display: grid; align-content: start; gap: 18px; }
.contact .c-label img { width: 92px; height: 92px; }
.contact__mail {
  display: inline-block;
  font-size: clamp(34px, 5vw, 92px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-decoration: none;
  word-break: break-word;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.contact__mail:hover { background-size: 100% 2px; }

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

.foot { border-top: 1px solid var(--line); margin: 0 var(--gx); padding-top: 18px; }
.foot__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.foot__links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.foot__legal { display: flex; gap: 14px; justify-content: end; }
.wordmark {
  display: inline-block;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.78;
  margin: 90px 0 14px;
  font-size: 18vw;           /* wird per JS exakt auf Breite gesetzt */
}
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 18px;
}

/* ---------- Rechtstexte ---------- */

.legal { padding-top: 150px; padding-bottom: 140px; }
.legal .c-wide { max-width: 860px; }
.legal h1 { margin-bottom: 60px; }
.legal h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 44px 0 10px;
}
.legal h3 { font-size: 14px; font-weight: 600; margin: 24px 0 6px; }
.legal p, .legal li { color: #3a3a3a; font-size: 15px; }
.legal ul { padding-left: 1.2em; }
.legal .placeholder { background: var(--soft); padding: 0 4px; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  .ln__i, .fade { transform: none !important; opacity: 1 !important; transition: none !important; }
  [data-drift], .band__media img { transform: none !important; }
  .band__media { clip-path: none !important; }
  .band__bg { clip-path: none !important; }
}

/* ---------- Responsive ---------- */

/* Kopfzeile: Firmenzeile nur, wenn genug Platz neben der Navigation ist */
@media (max-width: 1240px) {
  .top__meta { display: none; }
  .top__nav { grid-column: 4 / 13; }
}

@media (max-width: 1000px) {
  :root { --pre: 4; }
  .c-label, .hero__label, .facts { grid-column: 1 / 5; }
  .c-main, .hero__brand, .c-text, .hero__intro { grid-column: 5 / 13; }
  .hero__claim, .c-wide { grid-column: 1 / 13; }
  .people .person:nth-child(1) { grid-column: 1 / 7; }
  .people .person:nth-child(2) { grid-column: 7 / 13; }
  .row__name { grid-column: 1 / 5; }
  .row__text { grid-column: 5 / 11; }
}

@media (max-width: 720px) {
  :root { --gx: 18px; --gap: 12px; }
  body { font-size: 15px; }
  .ruled::before { display: none; }
  .grid > *, .row > * { grid-column: 1 / -1 !important; }
  .top__meta, .top__nav .ul { display: none; }
  .top { display: flex; justify-content: space-between; }
  .top__logo img { height: 26px; }
  .hero__top { padding-top: 110px; }
  .hero__foot { padding-bottom: 100px; }
  .hero__label { order: -1; margin-bottom: 18px; }
  .hero__claim { margin-top: 14px; }
  .hero__claim .ln:nth-child(3) { margin-left: 12vw; }
  .hero__claim .ln:nth-child(4) { margin-left: 22vw; }
  .facts { grid-template-columns: 1fr 1fr; order: 2; }
  .band { min-height: 0; }
  .band__media { position: relative; width: 100%; height: 118vw; margin-bottom: -1px; }
  .band__media::after {
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0) 60%, #0b0b0b 100%);
  }
  .band__inner { min-height: 0; padding-top: 10px; padding-bottom: 100px; }
  .band__quote { font-size: clamp(34px, 10vw, 52px); }
  .band__quote .ln:nth-child(2), .band__quote .ln:nth-child(4) { margin-left: 8vw; }
  .section { padding-top: 110px; }
  .section__head { margin-bottom: 50px; }
  .section__head .ln:nth-child(2), .section__head .ln:nth-child(3) { margin-left: 12vw; }
  .about .c-label { margin-bottom: 20px; }
  .row { row-gap: 12px; }
  .row__no { justify-self: start; order: -1; }
  .people { row-gap: 40px; }
  .contact { padding-top: 120px; padding-bottom: 110px; }
  .contact .c-label { margin-bottom: 36px; }
  .contact .c-label img { width: 72px; height: 72px; }
  .foot__row { grid-template-columns: 1fr; }
  .foot__links, .foot__legal { justify-content: start; }
  .corner { display: none; }
  .bar nav .ul { display: none; }
}
