/*
  „Im Aufbau“-Seite für p-tech.info, bis die fertige Seite live geht.
  Farben und Schrift wie die Startseite (site/src/styles/tokens.css, Richtung B).
*/
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/a/archivo.woff2) format("woff2-variations");
}

:root {
  color-scheme: dark;
  --c-night: #0b1420;
  --c-night-3: #15243a;
  --c-line: #24364f;
  --c-line-strong: #34507a;
  --c-ink: #eef2f6;
  --c-ink-2: #c9d3de;
  --c-ink-3: #97a6b8;
  --c-blue-soft: #9fc0e6;
  --c-red: #c1121f;
  --c-red-hover: #a50f1a;
  --c-red-on-dark: #ef5560;
  --font-sans: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --r: 2px;
  --tap: 2.75rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--c-night);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

/* ---------- Bühne mit Standbild ---------- */

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter);
}

.stage__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.stage__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(11 20 32 / 0.75) 0%, rgb(11 20 32 / 0.2) 30%, rgb(11 20 32 / 0.55) 62%, rgb(11 20 32 / 0.96) 100%),
    linear-gradient(90deg, rgb(11 20 32 / 0.7) 0%, rgb(11 20 32 / 0) 70%);
}

/* ---------- Kopf ---------- */

.top {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  color: var(--c-ink);
  text-decoration: none;
}

.logo svg {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
}

.logo__gear {
  fill: var(--c-ink);
}

.logo__beam {
  fill: var(--c-red-on-dark);
}

.logo__word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: -0.005em;
}

.logo__sub {
  margin-top: 0.22rem;
  color: var(--c-blue-soft);
  font-weight: 600;
  font-size: 0.47rem;
  letter-spacing: 0.34em;
}

/* ---------- Inhalt ---------- */

.main {
  align-self: end;
  max-width: 52rem;
  padding: 4rem 0 3rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 1.05rem + 5.6vw, 5.4rem);
  font-stretch: 66%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 38ch;
  color: var(--c-ink-2);
  font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.45;
}

.reach {
  margin: 2.25rem 0 0;
  color: var(--c-ink-3);
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.btn--red {
  background: var(--c-red);
  color: #fff;
}

.btn--line {
  border-color: var(--c-line-strong);
  background: rgb(11 20 32 / 0.45);
  color: var(--c-ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn--red:hover {
    background: var(--c-red-hover);
  }

  .btn--line:hover {
    border-color: var(--c-ink-3);
  }
}

/* ---------- Fuß ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-3);
  font-size: 0.875rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}

.foot a,
.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-ink-3);
  text-decoration: underline;
  text-decoration-color: var(--c-line-strong);
  text-underline-offset: 0.25em;
}

.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .foot a:hover,
  .linkbtn:hover {
    color: var(--c-ink);
  }
}

/* ---------- Vorschau-Zugang ---------- */

.gate {
  width: 100%;
  padding: 0 0 1.25rem;
}

/* Gilt auch für Knöpfe mit eigenem display (z. B. .linkbtn), solange zugang.js nicht läuft. */
[hidden] {
  display: none !important;
}

.gate form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.gate label {
  display: grid;
  gap: 0.35rem;
  color: var(--c-ink-2);
  font-size: 0.875rem;
}

.gate input {
  width: min(18rem, 70vw);
  min-height: var(--tap);
  padding: 0 0.85rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  background: rgb(11 20 32 / 0.8);
  color: var(--c-ink);
  font: inherit;
}

.gate .btn {
  min-height: var(--tap);
}

.gate__msg {
  flex-basis: 100%;
  min-height: 1.4em;
  margin: 0;
  color: var(--c-red-on-dark);
  font-size: 0.875rem;
}

/* ---------- Textseite (Impressum) ---------- */

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

.page h1 {
  margin-top: 2.5rem;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
}

.page h2 {
  margin: 2.25rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.page p {
  margin: 0;
  color: var(--c-ink-2);
}

.page .foot {
  margin-top: 3.5rem;
}

/* ---------- Bewegung: Überschrift steigt beim Laden auf ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 900ms var(--ease-out) both;
  }

  .rise--2 {
    animation-delay: 120ms;
  }

  .rise--3 {
    animation-delay: 240ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}
