/* ============================================================
   Tresmont Capital GmbH — Basis-Stylesheet
   Design-Sprache: klinisch, institutionell, monochrom kühl
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Flächen */
  --ink:        #07090C;   /* tiefstes Schwarz, kühl unterlegt */
  --ink-2:      #0D1015;   /* Sektionsfläche */
  --ink-3:      #14181F;   /* erhabene Fläche, Karten */

  /* Typografie */
  --paper:      #F3F4F6;   /* Primärtext auf Dunkel */
  --paper-dim:  #A7ACB4;   /* Sekundärtext */
  --paper-mute: #7C818A;   /* Tertiärtext, Meta. 5,0:1 auf --ink */

  /* Akzent: gedämpftes Messing */
  --brass:      #B9975B;
  --brass-soft: rgba(185, 151, 91, 0.16);

  /* Linien */
  --line:       rgba(243, 244, 246, 0.10);
  --line-soft:  rgba(243, 244, 246, 0.06);
  --line-hard:  rgba(243, 244, 246, 0.22);

  /* Schrift */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Raster */
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --maxw: 1440px;
  --measure: 68ch;

  /* Bewegung */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  position: relative;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01' 1, 'cv05' 1, 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ---------- Feinkorn über allem ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typografische Bausteine ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.625rem, 0.9vw, 0.75rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
  font-weight: 400;
}

.rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 940px; }

/* ---------- Kopfzeile ---------- */
.masthead {
  /* Bewusst mitlaufend statt fixiert. Fixiert legt sich die Kopfzeile
     beim Scrollen ueber den Fliesstext, was bei dieser reduzierten
     Seite mehr stoert als eine dauerhaft sichtbare Marke nuetzt. */
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.9rem) var(--gutter);
  mix-blend-mode: difference;
}

.masthead__mark {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 600;
  /* Versalien brauchen Laufweite, sonst kleben die Buchstaben aneinander */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  white-space: nowrap;
}

.masthead__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.72;
  white-space: nowrap;
}

/* Auf schmalen Geraeten braeuchte der Zusatz eine zweite Zeile und
   liefe in die Wortmarke. Er entfaellt dort. */
@media (max-width: 720px) {
  .masthead__meta { display: none; }
}

/* ---------- Fusszeile ---------- */
.colophon {
  position: relative;
  z-index: 3;
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.colophon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.colophon__brand {
  font-size: clamp(1.0625rem, 1.7vw, 1.375rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.colophon__claim {
  margin-top: 0.75rem;
  color: var(--paper-dim);
  font-size: 0.9375rem;
  max-width: 34ch;
}

.colophon__list { list-style: none; display: grid; gap: 0.7rem; }

.colophon__list a {
  color: var(--paper-dim);
  font-size: 0.9375rem;
  display: inline-block;
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.colophon__list a:hover { color: var(--paper); transform: translateX(3px); }

.colophon__base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 var(--brass-soft);
  animation: pulse 2.8s var(--ease-io) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(185, 151, 91, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(185, 151, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 151, 91, 0); }
}

/* ---------- Rechtsseiten ---------- */
.legal {
  padding-block: clamp(7rem, 14vw, 11rem) clamp(4rem, 8vw, 7rem);
  background: var(--ink);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.legal__back:hover { color: var(--paper); transform: translateX(-3px); }

.legal__title {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.legal__lede {
  margin-top: 1.25rem;
  color: var(--paper-dim);
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  max-width: 58ch;
}

.legal__body {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

/* Ein Abschnitt je Ueberschrift. Ab Tablettbreite steht der Titel links,
   der Text rechts. So nutzt die Seite die volle Breite, ohne dass die
   Lesezeilen unlesbar lang werden. */
.legal__section {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line-soft);
}

.legal__section:first-of-type { padding-top: 0; }
.legal__section:last-of-type { border-bottom: 0; }

@media (min-width: 900px) {
  .legal__section {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.35fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
}

.legal__prose {
  max-width: 74ch;
  margin-top: 0.85rem;   /* einspaltig braucht die Ueberschrift Luft nach unten */
}

@media (min-width: 900px) {
  .legal__prose { margin-top: 0; }
}

.legal__body h2 {
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .legal__body h2 {
    position: sticky;
    top: clamp(2rem, 6vh, 4rem);
  }
}

.legal__body h3 {
  margin-top: 2.25rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.legal__body h4 {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--paper);
}

.legal__prose > *:first-child { margin-top: 0; }

.legal__body p {
  margin-top: 1rem;
  color: var(--paper-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal__body ul {
  margin-top: 1rem;
  padding-left: 1.15rem;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.legal__body ul li {
  position: relative;
  color: var(--paper-dim);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal__body ul li::before {
  content: '';
  position: absolute;
  left: -1.15rem;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--brass);
}

.legal__body a {
  color: var(--paper);
  border-bottom: 1px solid var(--line-hard);
  transition: border-color 0.25s var(--ease-out);
  word-break: break-word;
}

.legal__body a:hover { border-color: var(--brass); }

.legal__body strong { color: var(--paper); font-weight: 600; }

.legal__address {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-2);
  font-style: normal;
  color: var(--paper-dim);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.legal__address strong {
  display: block;
  color: var(--paper);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.legal__note {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  max-width: 74ch;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-left: 1px solid var(--brass);
  background: var(--brass-soft);
  color: var(--paper-dim);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- Zugänglichkeit ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
}

.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
