/* ==========================================================================
   HRBR23 — Project Harbor
   Tokens
   ========================================================================== */

:root {
  --ink: #0b0b0a;
  --paper: #e9e7df;
  --acid: #ff4d00;
  --line: rgba(11, 11, 10, 0.28);
  --line-invert: rgba(233, 231, 223, 0.28);
  --muted: #aaa89f;

  --header-h: 92px;
  --gutter: 22px;

  --font-display: "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

@media (max-width: 760px) {
  :root {
    --header-h: 70px;
    --gutter: 16px;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fliesstext in der Textschrift, Ueberschriften in der schweren Displayschrift.
   Ohne diese Trennung fiel der Fliesstext unter Windows auf "Arial Black". */
h1,
h2,
h3,
.overlay-menu a,
.contact-link,
.project-copy strong {
  font-family: var(--font-display);
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--acid);
  color: var(--paper);
}

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

.site {
  min-height: 100vh;
  background: var(--paper);
}

/* Anker nicht unter dem fixierten Header verstecken */
section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

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

/* ==========================================================================
   Textur + Boot-Sequenz
   ========================================================================== */

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

/* Läuft rein per CSS: die Seite ist auch ohne JavaScript sofort sichtbar. */
.boot-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #090909;
  color: var(--acid);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  pointer-events: none;
  animation: boot-out 0.35s ease 0.45s forwards;
}

.boot-screen p {
  margin: 0;
}

@keyframes boot-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.header.is-scrolled {
  background: rgba(11, 11, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-invert);
}

.header.is-menu-open {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: rgba(0, 0, 0, 0.35);
  color: var(--ink);
}

/* Logo — echte Bilddatei statt nachgebautem CSS-Schriftzug */
.brand {
  justify-self: start;
  display: block;
  position: relative;
  line-height: 0;
  height: 60px;
  aspect-ratio: 640 / 483;
}

.brand-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.35s ease;
}

.brand-img--dark {
  opacity: 0;
}

.header.is-menu-open .brand-img--light {
  opacity: 0;
}

.header.is-menu-open .brand-img--dark {
  opacity: 1;
}

.header-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  margin-right: 8px;
  animation: blink 1.2s steps(1) infinite;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.lang-switch a {
  text-decoration: none;
  opacity: 0.55;
  padding: 4px 2px;
}

.lang-switch a:hover {
  opacity: 1;
}

.lang-switch a.is-current {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  background: var(--acid);
  color: var(--ink);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.menu-button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   Overlay-Navigation
   ========================================================================== */

.overlay-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: var(--acid);
  color: var(--ink);
  padding: calc(var(--header-h) + 40px) var(--gutter) var(--gutter);
  transform: translateY(-105%);
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.55s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  overflow-y: auto;
}

.overlay-menu > * {
  flex-shrink: 0;
}

.overlay-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}

.overlay-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.overlay-menu a {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  font-size: clamp(44px, 9vw, 140px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  padding: 0.06em 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.overlay-menu small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-right: 30px;
}

.overlay-contact {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.overlay-contact a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  padding: calc(var(--header-h) + 20px) var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #e9e7df 25%);
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
}

.hero-title-wrap {
  position: relative;
  margin: auto 0;
  z-index: 2;
}

.system-line {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  margin: 0 0 12px 4px;
}

.hero h1 {
  font-size: clamp(60px, 11.5vw, 178px);
  line-height: 0.78;
  letter-spacing: -0.075em;
  margin: 0;
  font-weight: 900;
}

.hero h1 .accent {
  color: var(--acid);
}

.hero-footer {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  z-index: 2;
}

.hero-footer p {
  max-width: 530px;
  margin: 0;
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.35;
}

.enter-link {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid;
  padding-bottom: 5px;
  white-space: nowrap;
}

.enter-link span {
  color: var(--acid);
  font-size: 20px;
  margin-left: 18px;
}

.signal-grid {
  position: absolute;
  right: 4vw;
  top: 17%;
  height: 38%;
  width: 20%;
  display: flex;
  gap: 6px;
  align-items: center;
  opacity: 0.28;
}

.signal-grid i {
  width: 3px;
  background: var(--paper);
  height: 20%;
  animation: signal 1.8s ease-in-out infinite alternate;
}

.signal-grid i:nth-child(3n) {
  height: 92%;
}

.signal-grid i:nth-child(4n) {
  height: 55%;
}

/* ==========================================================================
   Manifest
   ========================================================================== */

.manifesto {
  padding: 110px var(--gutter) 130px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-size: 11px;
  margin-bottom: 70px;
}

.manifesto-copy {
  font-weight: 900;
  font-size: clamp(46px, 9vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.07em;
  margin: 0;
}

.manifesto-copy span {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  max-width: 850px;
  margin: 80px 0 0 auto;
}

.manifesto-grid p {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   Archiv / Projekte
   ========================================================================== */

.archive {
  background: var(--ink);
  color: var(--paper);
  padding: 110px var(--gutter);
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 45px;
}

.archive-head h2 {
  font-size: clamp(38px, 6vw, 86px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0;
  font-weight: 900;
}

.archive-head span {
  font-size: 10px;
  white-space: nowrap;
}

.project-list {
  border-top: 1px solid var(--line-invert);
}

.project {
  border-bottom: 1px solid var(--line-invert);
  transition: background 0.3s;
}

.project:hover,
.project.is-active {
  background: rgba(255, 77, 0, 0.07);
}

.project-head {
  width: 100%;
  min-height: 190px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 80px 280px 1fr 45px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.project-id {
  align-self: start;
  font-size: 10px;
  color: var(--acid);
}

.project-visual {
  width: 235px;
  height: 140px;
  position: relative;
  overflow: hidden;
  background: #20201e;
  transition: width 0.4s, height 0.4s;
}

.is-active .project-visual {
  width: 260px;
  height: 210px;
}

.project-visual::before,
.project-visual::after,
.project-visual i {
  content: "";
  position: absolute;
  display: block;
}

.project-a .project-visual::before {
  inset: 0;
  background: repeating-radial-gradient(
    ellipse at 50% 115%,
    transparent 0 16px,
    rgba(255, 77, 0, 0.9) 17px 19px,
    transparent 20px 31px
  );
  transform: perspective(120px) rotateX(35deg) scale(1.5);
}

.project-a .project-visual::after {
  width: 2px;
  height: 120%;
  background: white;
  left: 50%;
  top: -10%;
  box-shadow: 0 0 15px 5px var(--acid);
  transform: rotate(23deg);
}

.project-b .project-visual {
  background: linear-gradient(145deg, #151515 0 49%, #ff4d00 50% 52%, #232323 53%);
}

.project-b .project-visual::before {
  width: 80%;
  height: 70%;
  border: 12px solid rgba(233, 231, 223, 0.7);
  left: 10%;
  top: 15%;
  transform: skew(-14deg);
}

.project-c .project-visual {
  background: repeating-linear-gradient(115deg, #0b0b0b 0 13px, #e9e7df 14px 16px, #0b0b0b 17px 28px);
}

.project-c .project-visual::after {
  inset: 15%;
  border-radius: 50%;
  background: var(--acid);
  mix-blend-mode: screen;
  filter: blur(12px);
}

.project-d .project-visual {
  background: #dedbd0;
}

.project-d .project-visual::before {
  inset: 12% 9%;
  border: 2px solid #111;
  box-shadow: 20px 15px 0 #ff4d00, 40px 30px 0 #111;
  transform: rotate(-7deg);
}

.project-copy {
  padding-left: 2vw;
}

.project-copy small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 15px;
}

.project-copy strong {
  display: block;
  font-size: clamp(28px, 4.4vw, 68px);
  letter-spacing: -0.055em;
  line-height: 0.9;
  font-weight: 900;
}

.project-copy em {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-style: normal;
  color: var(--muted);
  margin-top: 0;
  transition: 0.35s;
}

.is-active .project-copy em {
  max-height: 60px;
  opacity: 1;
  margin-top: 24px;
}

.project-open {
  font-size: 30px;
  color: var(--acid);
  font-weight: 200;
  justify-self: end;
}

/* Panel steht immer im HTML — sichtbar wird es über die Elternklasse.
   So sind Texte und Medien auch ohne JavaScript im Dokument. */
.project-panel {
  display: none;
  overflow: hidden;
}

.project.is-active .project-panel {
  display: block;
  animation: panel-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.noscript-note {
  position: relative;
  z-index: 60;
  margin: 0;
  padding: 14px var(--gutter);
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
}

.project-panel-inner {
  padding: 0 0 44px 80px;
  max-width: 1180px;
}

.project-body {
  margin: 0 0 34px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.project-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-invert);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.gallery-open {
  display: inline-block;
  text-decoration: none;
  border: 0;
  background: none;
  color: var(--acid);
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  border-bottom: 1px solid currentColor;
}

.project-media {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.media-thumb {
  position: relative;
  display: block;
  text-decoration: none;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-invert);
  background: #161614;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.media-thumb:hover {
  border-color: var(--acid);
  transform: translateY(-3px);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.25s ease;
}

.media-thumb:hover img {
  filter: saturate(1.1);
}

.media-thumb-ref {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: rgba(11, 11, 10, 0.75);
  padding: 3px 6px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   Lightbox / Galerie
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--paper);
  animation: lightbox-in 0.25s ease;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.96);
}

.lightbox-bar,
.lightbox-stage,
.lightbox-strip,
.lightbox-nav {
  position: relative;
  z-index: 1;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid rgba(233, 231, 223, 0.2);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.lightbox-counter {
  color: var(--acid);
}

.lightbox-close {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 6px 2px;
}

.lightbox-stage {
  margin: 0;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
}

.lightbox-stage img {
  max-width: min(1180px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(233, 231, 223, 0.18);
  animation: lightbox-in 0.3s ease;
}

.lightbox-stage figcaption {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}

.lightbox-ref {
  color: var(--acid);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(233, 231, 223, 0.3);
  background: rgba(11, 11, 10, 0.6);
  color: var(--paper);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.lightbox-nav:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.lightbox-prev {
  left: var(--gutter);
}

.lightbox-next {
  right: var(--gutter);
}

.lightbox-strip {
  list-style: none;
  margin: 0;
  padding: 14px var(--gutter) 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(233, 231, 223, 0.2);
}

.lightbox-strip button {
  width: 92px;
  height: 58px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.lightbox-strip button:hover,
.lightbox-strip button.is-current {
  opacity: 1;
  border-color: var(--acid);
}

.lightbox-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

/* ==========================================================================
   Methode
   ========================================================================== */

.method {
  padding: 110px var(--gutter) 130px;
}

.method-intro {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 7vw;
}

.method-intro h2 {
  font-size: clamp(52px, 10vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.07em;
  margin: 0;
  font-weight: 900;
}

.method-intro p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
}

.method-intro-copy p + p {
  margin-top: 14px;
}

.capabilities {
  margin-top: 100px;
  border-top: 1px solid var(--line);
}

.capabilities article {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.capabilities article > span {
  font-size: 10px;
  color: var(--acid);
}

.capabilities h3 {
  font-size: clamp(28px, 4vw, 54px);
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.capabilities p {
  margin: 0;
  max-width: 440px;
  line-height: 1.4;
}

/* ==========================================================================
   Terminal
   ========================================================================== */

.terminal {
  margin: 0 var(--gutter) 110px;
  background: #050505;
  color: var(--acid);
  border: 1px solid #444;
  box-shadow: 8px 8px 0 var(--acid);
  font-family: var(--font-mono);
}

.terminal-bar {
  padding: 10px 14px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: #aaa;
}

.terminal-body {
  padding: clamp(25px, 5vw, 70px);
  font-size: clamp(13px, 1.8vw, 24px);
  line-height: 1.6;
}

.terminal-body p {
  margin: 0;
}

.terminal-question {
  color: var(--paper);
  margin-top: 40px !important;
  font-size: clamp(22px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.cursor {
  color: var(--acid);
  animation: blink 0.8s steps(1) infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--acid);
  color: var(--ink);
  padding: 80px var(--gutter) 20px;
}

.footer-kicker {
  font-size: 10px;
  margin: 0;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(56px, 13vw, 210px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.9;
  margin: 60px 0;
}

.contact-link span {
  font-size: 0.55em;
  transition: transform 0.3s ease;
}

.contact-link:hover span {
  transform: translate(6px, -6px);
}

.contact-grid {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
  padding-bottom: 60px;
}

.footer-logo {
  width: 190px;
  height: auto;
  mix-blend-mode: multiply;
}

.contact-col h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 400;
  margin: 0 0 14px;
  opacity: 0.7;
}

.contact-col p,
.contact-col a {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.contact-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 9px;
}

.footer-bottom a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   Legal-Seiten
   ========================================================================== */

.legal-page {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding: 40px var(--gutter) 90px;
  max-width: 820px;
}

.legal-brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: 60px;
}

.legal-brand img {
  width: 90px;
  height: auto;
}

.legal-page h1 {
  font-size: clamp(40px, 8vw, 90px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0 0 40px;
  font-weight: 900;
}

.legal-note {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  background: var(--acid);
  color: var(--ink);
  padding: 6px 10px;
  margin: 0 0 30px;
}

.legal-page h2 {
  font-size: 20px;
  margin: 40px 0 10px;
}

.legal-page p {
  line-height: 1.6;
  margin: 0 0 12px;
}

.legal-back {
  display: inline-block;
  margin-top: 50px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-bottom: 1px solid;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

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

@keyframes signal {
  to {
    height: 8%;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .header-status {
    display: none;
  }

  .brand {
    height: 44px;
  }

  .hero-meta span:nth-child(2) {
    display: none;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 92px);
    line-height: 0.82;
  }

  .hero-footer {
    display: block;
  }

  .hero-footer p {
    max-width: 92%;
  }

  .enter-link {
    display: inline-block;
    margin-top: 35px;
  }

  .signal-grid {
    width: 45%;
    right: -5%;
    opacity: 0.17;
  }

  .manifesto,
  .archive,
  .method {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .section-label {
    margin-bottom: 40px;
  }

  .manifesto-grid,
  .method-intro {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 50px;
  }

  .manifesto-copy span {
    -webkit-text-stroke-width: 1px;
  }

  .project-head {
    grid-template-columns: 35px 95px 1fr 25px;
    min-height: 120px;
  }

  .project-panel-inner {
    padding: 0 0 32px 35px;
  }

  .project-body {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .project-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .project-media-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .lightbox-strip button {
    width: 62px;
    height: 40px;
  }

  .lightbox-bar {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .header-actions {
    gap: 14px;
  }

  .lang-switch {
    font-size: 10px;
  }

  .project-visual {
    width: 82px;
    height: 82px;
  }

  .is-active .project-visual {
    width: 90px;
    height: 130px;
  }

  .project-copy {
    padding-left: 12px;
  }

  .project-copy strong {
    font-size: 25px;
  }

  .project-copy small {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .project-copy em {
    font-size: 12px;
  }

  .archive-head {
    display: block;
  }

  .archive-head span {
    display: block;
    margin-top: 15px;
  }

  .capabilities article {
    grid-template-columns: 35px 1fr;
  }

  .capabilities article p {
    grid-column: 2;
    margin-top: 8px;
    font-size: 14px;
  }

  .terminal {
    margin-bottom: 80px;
    box-shadow: 5px 5px 0 var(--acid);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-logo {
    width: 150px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .contact-link {
    margin: 45px 0 50px;
  }
}

@media (max-width: 420px) {
  .project-media {
    grid-template-columns: 1fr;
  }
}

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

  .boot-screen {
    display: none;
  }
}

/* ======================================================================== *
 * MOBILE FIRST — Basis ist das Telefon, groessere Schirme kommen additiv
 * dazu (min-width). Ueberschreibt bewusst die desktopgedachten Regeln oben.
 * ======================================================================== */

/* --- 1. Basis: Telefon (kein Breakpoint noetig) ------------------------- */
.project-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "id copy open" "visual visual visual";
  gap: 0.75rem 0.9rem;
  align-items: start;
  padding: 1.1rem 1rem;
  min-height: 3rem;
  text-align: left;
}
.project-id { grid-area: id; }
.project-copy { grid-area: copy; min-width: 0; }
.project-open { grid-area: open; }
.project-visual {
  grid-area: visual;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
}
.is-active .project-visual { width: 100%; height: auto; }
.project-visual img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(1.02) contrast(1.02);
}
.project-copy strong { overflow-wrap: anywhere; hyphens: auto; }

/* Touchflaechen: nichts Klickbares unter 44px */
.project-head, .media-thumb, .lightbox-nav, .lightbox-close,
.nav a, .footer a, .gallery-open { min-height: 44px; }
.lightbox-nav, .lightbox-close { min-width: 44px; }

/* Galerie: eine Spalte, damit Vorschauen auf dem Telefon gross genug sind */
.project-media { grid-template-columns: 1fr; gap: 0.6rem; }

/* Keine horizontale Ueberbreite durch lange Wortmarken */
body { overflow-x: hidden; }
.hero h1, .manifesto h2, .archive h2 { overflow-wrap: break-word; }

/* --- 2. Ab Tablet ------------------------------------------------------- */
@media (min-width: 620px) {
  .project-media { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

/* --- 3. Ab Desktop: urspruengliches Zeilenlayout ------------------------ */
@media (min-width: 900px) {
  .project-head {
    grid-template-columns: auto 235px 1fr auto;
    grid-template-areas: "id visual copy open";
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
  }
  .project-visual {
    width: 235px; height: 140px; aspect-ratio: auto;
    transition: width 0.4s, height 0.4s;
  }
  .is-active .project-visual { width: 260px; height: 210px; }
  .project-media { grid-template-columns: repeat(4, 1fr); }
}

/* --- 4. Video in Galerie und Lightbox ----------------------------------- */
.media-thumb.is-video { position: relative; }
.media-play {
  position: absolute; inset: 0; margin: auto;
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(10, 10, 9, 0.45);
  color: #fff; font-size: 0.95rem;
  pointer-events: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.media-thumb.is-video:hover .media-play,
.media-thumb.is-video:focus-visible .media-play {
  transform: scale(1.08);
  background: rgba(10, 10, 9, 0.65);
}
.lightbox-video {
  max-width: 100%; max-height: 70vh;
  display: block; margin: 0 auto; background: #000;
}
@media (prefers-reduced-motion: reduce) {
  .project-visual, .media-play { transition: none; }
}

/* --- 5. Nachbesserungen aus dem Geraetetest ----------------------------- */
/* Dekoratives Raster lief 20px ueber den rechten Rand hinaus */
.signal-grid { max-width: 100%; overflow: hidden; }

/* Touchziele im Kopfbereich auf 44px bringen, ohne die Optik zu aendern */
.menu-button { min-height: 44px; padding-block: 0.6rem; }
.lang-switch a,
.lang-switch a.is-current {
  display: inline-grid; place-items: center;
  min-width: 44px; min-height: 44px;
}
.enter-link { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }

/* Deko-Muster der alten Platzhalter deaktivieren — echte Fotos stehen jetzt drin */
.project-visual::before,
.project-visual::after { content: none; }
.project-visual { background: #14140f; }

/* Manifest traegt jetzt drei Spalten — mobil gestapelt, ab Tablet zwei, ab Desktop drei */
.manifesto-grid { grid-template-columns: 1fr; gap: 2.2rem; max-width: 850px; }
@media (min-width: 620px) { .manifesto-grid { grid-template-columns: 1fr 1fr; gap: 6vw; } }
@media (min-width: 1100px) {
  .manifesto-grid { grid-template-columns: repeat(3, 1fr); gap: 4vw; max-width: 1180px; }
}

/* Abschlusstext im Terminal */
.terminal-answer {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 58ch;
}
.terminal-answer:first-of-type { margin-top: 1.6rem; }

/* Manifest traegt vier Absaetze: mobil gestapelt, ab Tablet zwei Spalten */
@media (min-width: 1100px) {
  .manifesto-grid { grid-template-columns: 1fr 1fr; gap: 4vw 6vw; max-width: 1080px; }
}
/* ======================================================================== *
 * 6. Ueberarbeitung Oktober 2026 — Anfrage-Wege, "Warum wir", Laufband
 * ======================================================================== */

/* --- Buttons ------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.button span {
  transition: transform 0.25s ease;
}

.button:hover span {
  transform: translate(3px, -3px);
}

.button--acid {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.button--acid:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.button--ghost {
  color: var(--paper);
  border-color: var(--line-invert);
}

.button--ghost:hover {
  border-color: var(--paper);
}

/* --- Header-Anfrage ------------------------------------------------------ */
.header-cta {
  display: none;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-cta:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.header.is-menu-open .header-cta {
  display: none;
}

@media (min-width: 761px) {
  .header-cta {
    display: inline-flex;
  }
}

/* --- Hero ---------------------------------------------------------------- */
.hero-copy {
  max-width: 560px;
}

.hero-copy p {
  max-width: none;
}

.hero-copy p + p {
  margin-top: 12px;
  color: var(--muted);
}

.hero-copy p:first-child {
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

@media (max-width: 760px) {
  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .enter-link {
    margin-top: 0;
  }

  .hero-footer p {
    max-width: none;
  }
}

/* --- Laufband mit Disziplinen ------------------------------------------- */
.ticker {
  display: flex;
  overflow: hidden;
  background: var(--acid);
  color: var(--ink);
  border-block: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.ticker-track {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  animation: ticker 32s linear infinite;
}

.ticker-track li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-left: 44px;
}

.ticker-track li::after {
  content: "✕";
  margin-left: 44px;
  opacity: 0.55;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* --- Manifest: vier ruhige Absaetze statt acht Fragmente ---------------- */
.manifesto-grid p:last-child {
  font-weight: 700;
}

@media (min-width: 1100px) {
  .manifesto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem 6vw;
    max-width: 1000px;
  }
}

/* --- Methode: Textspalte war auf mittleren Breiten nur ~200px schmal ---- */
.method-intro {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
}

.method-intro h2 {
  overflow-wrap: break-word;
}

/* Die Riesenzeile "STRUCTURE." braucht volle Breite, bevor die Spalten passen */
@media (max-width: 1180px) {
  .method-intro {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .method-intro-copy p {
    max-width: 620px;
  }
}

/* --- Warum wir ----------------------------------------------------------- */
.why {
  padding: 110px var(--gutter) 120px;
  border-bottom: 1px solid var(--line);
}

.why-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 32px 7vw;
}

.why-title {
  font-weight: 900;
  font-size: clamp(46px, 9vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.07em;
  margin: 0;
  overflow-wrap: break-word;
}

.why-title span {
  color: var(--acid);
}

.why-intro p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.reasons {
  list-style: none;
  margin: 80px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.reasons li {
  padding: 30px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.reasons li:hover {
  background: rgba(255, 77, 0, 0.08);
}

.reasons li > span {
  display: block;
  font-size: 10px;
  color: var(--acid);
  margin-bottom: 40px;
}

.reasons h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.reasons p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.clients {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 40px;
}

.clients p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #6d6b64;
}

.clients ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.clients li {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -0.02em;
}

@media (max-width: 1080px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .why {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .why-intro {
    grid-template-columns: 1fr;
  }

  .reasons {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .reasons li {
    padding: 24px 20px 28px;
  }

  .reasons li > span {
    margin-bottom: 18px;
  }

  .clients {
    display: block;
  }

  .clients p {
    margin-bottom: 14px;
  }
}

/* --- Terminal: direkte Anfrage ------------------------------------------ */
.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

@media (max-width: 420px) {
  .terminal-actions .button {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }
}

/* Laufband ohne Bewegung: statische, umbrechende Liste */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    flex-shrink: 1;
    row-gap: 8px;
  }

  .ticker-track[aria-hidden="true"] {
    display: none;
  }
}

/* Footer-Links: Touchflaeche 44px, Text trotzdem vertikal mittig und
   Unterstrich direkt am Wort statt am unteren Rand der Flaeche */
.contact-col a {
  display: flex;
  align-items: center;
  margin: 0;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  border-bottom: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  align-items: center;
}
