/* Triesting Tech — Coming 2027
   Thema: Druckbett / technisches Datenblatt, Schichten wie im Logo. */

@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --petrol: #005270;
  --petrol-deep: #00293a;
  --petrol-ink: #003a50;
  --cyan: #00aeef;
  --paper: #eef1f0;
  --paper-2: #e4e9e8;
  --grid: rgba(0, 82, 112, 0.07);
  --grid-major: rgba(0, 82, 112, 0.13);
  --rule: rgba(0, 82, 112, 0.22);
  --muted: #4b6b78;

  --sans: "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--petrol-ink);
  background-color: var(--paper);
  /* Druckbett-Raster: 8 px fein, 64 px grob */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Lineal am linken Rand */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 10px;
  background:
    repeating-linear-gradient(to bottom, var(--petrol) 0 1px, transparent 1px 64px) left / 10px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 16px) left / 5px 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.topbar__logo { display: block; line-height: 0; }
.topbar__logo img { height: clamp(40px, 6vw, 56px); width: auto; }
.topbar__meta {
  margin: 0;
  color: var(--muted);
  text-align: right;
}
.topbar__meta b { color: var(--petrol); font-weight: 500; }

/* ---------- Bühne ---------- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}

.intro {
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 clamp(20px, 3vw, 36px);
  color: var(--petrol);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 2px;
  animation: blink 1.4s steps(2, jump-none) infinite;
}

.headline {
  margin: 0;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.02em;
}
.headline__coming {
  display: block;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 0.35em;
  padding-left: 0.08em;
}
/* 2027 – aus Druckschichten aufgebaut, wie das Logo.
   Beide Teile sind inline-block mit identischer Box, damit die Schichten fluchten. */
.headline__year {
  display: block;
  font-size: clamp(5.5rem, 19vw, 17rem);
  margin-left: -0.05em;
  white-space: nowrap;
}
.headline__year > span {
  display: inline-block;
  line-height: 0.82;
  --layer: var(--cyan);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--layer) 0 0.072em,
    transparent 0.072em 0.098em
  );
  background-position: 0 0.01em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
}
.headline__year > span + span { --layer: var(--petrol); } /* letzte Ziffer in Petrol, wie der Hauskörper */

.lede {
  max-width: 34ch;
  margin: clamp(24px, 3.5vw, 40px) 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--petrol-ink);
}
.lede strong { font-weight: 800; color: var(--petrol); }

/* ---------- Drucker ---------- */
.printer {
  position: relative;
  background: var(--petrol-deep);
  color: #cfe3ea;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.printer::before { /* feines Raster auf dem Druckbett */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.bed {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px);
  min-height: 340px;
}
.bed__frame {
  position: relative;
  width: min(70%, 280px);
}
/* Schneidemarken an den Ecken */
.bed__frame::before,
.bed__frame::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(0, 174, 239, 0.55);
}
.bed__frame::before { top: -26px; left: -26px; border-right: 0; border-bottom: 0; }
.bed__frame::after { bottom: -26px; right: -26px; border-left: 0; border-top: 0; }

.bed svg { display: block; width: 100%; height: auto; overflow: visible; }
.bed .layer-top { fill: var(--cyan); }
.bed .layer-body { fill: #ffffff; }
/* ---------- Fußzeile ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px var(--gutter);
  color: var(--muted);
  font-size: 0.8rem;
}
.footer p { margin: 0; }
.footer a { color: var(--petrol); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer a:hover { color: var(--cyan); }
.footer nav { display: flex; gap: 20px; }
.parent b { font-weight: 800; color: var(--petrol); letter-spacing: 0.02em; }

a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Impressum ---------- */
.legal {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--rule);
}
.legal__aside {
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  border-right: 1px solid var(--rule);
}
.legal__aside h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--petrol);
  background-image: repeating-linear-gradient(to bottom, var(--petrol) 0 0.072em, transparent 0.072em 0.098em);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
}
.legal__aside p { margin: 20px 0 0; color: var(--muted); max-width: 30ch; }
.legal__aside .back { display: inline-block; margin-top: 32px; color: var(--petrol); font-weight: 600; text-underline-offset: 3px; }

.legal__body {
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  max-width: 820px;
}
.legal__body h2 {
  margin: 48px 0 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--petrol);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h2 .mono { color: var(--cyan); margin-right: 10px; font-size: 0.75rem; }
.legal__body p { margin: 14px 0 0; color: var(--petrol-ink); max-width: 62ch; }

.facts { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
.facts dd a { color: var(--petrol); text-underline-offset: 3px; }
.facts .note { color: var(--muted); font-size: 0.85em; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .stage, .legal { grid-template-columns: 1fr; }
  .intro, .legal__aside { border-right: 0; border-bottom: 1px solid var(--rule); }
  .bed { min-height: 300px; }
}

@media (max-width: 560px) {
  body::before { display: none; }
  .topbar__meta { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
