/* V9: volle Studio-Seite (Leistungen, Software, Arbeitsweise) und X-Bridge-Produktseite.
   Baut auf site.css (V8) auf und nutzt dieselben Tokens. */

:root {
  --ink-soft: rgb(9 17 22 / 68%);
  --ink-quiet: rgb(9 17 22 / 54%);
  --paper-soft: rgb(241 238 229 / 70%);
  --paper-quiet: rgb(241 238 229 / 52%);
  --block: #a2452f;
  /* Signalgrün aus Sichtkandidat 02, nur für Zustand „in Ordnung“ */
  --signal-on-night: #7fcf9b;
}

/* Hero: V8 hatte drei Spalten inkl. Index-Kennung, V9 nur Titel und Intro */
.hero-bottom {
  grid-template-columns: minmax(18rem, 1.1fr) minmax(18rem, 0.9fr);
}

.arrow-link {
  text-decoration: underline;
  text-decoration-color: var(--sand);
}

/* Gemeinsamer Abschnittskopf */
.v9-services,
.v9-software,
.v9-way {
  padding: var(--section) var(--side);
}

.v9-head {
  display: grid;
  grid-template-columns: minmax(18rem, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.v9-head h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 6.1vw, 7.2rem);
  font-weight: 360;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.v9-head > p {
  max-width: 34rem;
  margin: 0;
  padding-bottom: 0.4rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.v9-head-dark > p {
  color: var(--paper-soft);
}

/* Leistungen als Tabelle aus Zeilen */
.v9-services {
  background: var(--paper);
}

.v9-service-table {
  border-top: 1px solid var(--night);
}

.v9-service {
  display: grid;
  grid-template-columns: minmax(12rem, 0.95fr) minmax(16rem, 1.25fr) minmax(12rem, 0.8fr);
  gap: clamp(1.2rem, 3.5vw, 4rem);
  align-items: start;
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(1.6rem, 3vw, 2.5rem) 0;
}

.v9-service h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.v9-service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
}

.v9-service ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0 0;
  list-style: none;
  color: var(--ink-quiet);
  font-size: 0.92rem;
  line-height: 1.35;
}

.v9-service li {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
}

.v9-service li::before {
  content: "";
  width: 0.32rem;
  height: 0.32rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--steel);
}

/* Software */
.v9-software {
  background: var(--night);
  color: var(--paper);
}

.v9-product-lead {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  border-top: 1px solid var(--paper);
  border-bottom: 1px solid var(--line-light);
  padding: clamp(2rem, 4.5vw, 4rem) 0;
  color: var(--paper);
  text-decoration: none;
}

.v9-product-lead h3 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 360;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.v9-product-claim {
  margin: 0.6rem 0 1.4rem;
  color: var(--sand);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  letter-spacing: -0.03em;
}

.v9-product-lead-copy > p:not(.v9-product-claim) {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  color: var(--paper-soft);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.v9-more {
  display: inline-block;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 0.25rem;
  font-weight: 520;
}

.v9-product-lead:hover .v9-more,
.v9-product-lead:focus-visible .v9-more {
  color: var(--sand);
}

/* Kleine Brücke: links das PDF, rechts die Daten, verbunden über gleiche Werte */
.v9-mini-bridge {
  display: grid;
  grid-template-columns: 1fr 4.5rem 1fr;
  align-items: stretch;
  min-height: 11rem;
}

.v9-mini-pdf,
.v9-mini-xml {
  display: grid;
  grid-auto-rows: min-content;
  align-content: space-between;
  gap: 0.35rem;
  padding: 1.1rem 1.1rem 1.2rem;
}

.v9-mini-pdf {
  background: var(--paper);
  color: var(--night);
}

.v9-mini-pdf span {
  color: var(--ink-quiet);
  font-size: 0.72rem;
}

.v9-mini-pdf b {
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.v9-mini-pdf i,
.v9-mini-xml i {
  display: block;
  height: 0.32rem;
  background: rgb(9 17 22 / 12%);
}

.v9-mini-pdf i:nth-of-type(2) { width: 72%; }
.v9-mini-pdf i:nth-of-type(3) { width: 48%; margin-bottom: 0.4rem; }

.v9-mini-xml {
  border: 1px solid var(--line-light);
  font-family: "CH Mono", monospace;
}

.v9-mini-xml code {
  color: var(--paper-quiet);
  font-family: inherit;
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.v9-mini-xml b {
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 400;
}

.v9-mini-xml i {
  background: rgb(241 238 229 / 10%);
}

.v9-mini-xml i:nth-of-type(2) { width: 64%; }
.v9-mini-xml i:nth-of-type(3) { width: 40%; margin-bottom: 0.4rem; }

.v9-mini-bridge svg {
  width: 100%;
  height: 100%;
}

.v9-mini-bridge path {
  fill: none;
  stroke: var(--sand);
  stroke-width: 1.4;
  stroke-dasharray: 1.5 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.v9-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.v9-product {
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.2rem, 2.5vw, 2.4rem) 0 0;
}

.v9-product + .v9-product {
  border-left: 1px solid var(--line-light);
  padding-left: clamp(1.2rem, 2.5vw, 2.4rem);
}

.v9-product h3 {
  max-width: 22ch;
  margin: 0 0 0.9rem;
  font-size: clamp(1.3rem, 1.9vw, 1.85rem);
  font-weight: 430;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.v9-product p {
  margin: 0;
  color: var(--paper-soft);
}

/* Arbeitsweise */
.v9-way {
  background: var(--paper);
}

.v9-way-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 5vw, 6rem);
  margin: 0;
  border-top: 1px solid var(--night);
}

.v9-way-list > div {
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 2.8vw, 2.3rem) 0;
}

.v9-way-list dt {
  margin-bottom: 0.6rem;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.v9-way-list dd {
  max-width: 36rem;
  margin: 0;
  color: var(--ink-soft);
}

.v9-way-list a {
  text-decoration-color: var(--steel);
}

/* Studio ohne Abschnittsnummer */
.studio-copy h2 {
  margin-top: 0;
}

/* Kontakt: zwei Spalten statt drei */
.v9-contact {
  grid-template-columns: minmax(18rem, 1.35fr) minmax(16rem, 0.65fr);
}

@media (max-width: 980px) {
  .v9-service {
    grid-template-columns: 1fr 1.3fr;
  }

  .v9-service ul {
    grid-column: 2;
  }

  .v9-product-lead {
    grid-template-columns: 1fr;
  }

  .v9-products {
    grid-template-columns: 1fr;
  }

  .v9-product,
  .v9-product + .v9-product {
    border-left: 0;
    border-bottom: 1px solid var(--line-light);
    padding: 1.8rem 0;
  }
}

@media (max-width: 760px) {
  .hero-bottom,
  .v9-head,
  .v9-contact,
  .v9-service,
  .v9-way-list {
    grid-template-columns: 1fr;
  }

  .v9-service {
    gap: 0.9rem;
  }

  .v9-service ul {
    grid-column: 1;
  }

  .v9-mini-bridge {
    grid-template-columns: 1fr 2.5rem 1fr;
    min-height: 9.5rem;
  }

  .v9-mini-pdf,
  .v9-mini-xml {
    padding: 0.8rem;
  }
}

.nobr {
  white-space: nowrap;
}

/* Hervorhebung im Kontakt: Kreide auf Sand hatte zu wenig Kontrast */
.v9-contact .contact-copy h2 em {
  color: var(--night);
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

/* backdrop-filter am Kopf macht ihn zum Bezugsrahmen für das fixierte Mobilmenü
   (Overlay blieb in der Kopfzeile hängen, V8-Fehler beim Scrollen). Mobil daher deckender Grund ohne Filter. */
@media (max-width: 760px) {
  .site-header.is-scrolled,
  .site-header.is-solid {
    background: var(--night);
    backdrop-filter: none;
  }
}
