:root {
  --archive-paper: #ffffff;
  --archive-ink: #101010;
  --archive-orange: #ff4f00;
  --archive-lime: #ffed00;
  --archive-blue: #2f52ff;
  --archive-muted: #72726c;
  --archive-pad: clamp(18px, 3.2vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.archive-page {
  margin: 0 !important;
  padding: 0;
  overflow-x: hidden;
  background: var(--archive-paper);
  color: var(--archive-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

body.archive-page a {
  color: inherit;
}

.archive-status {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px var(--archive-pad);
  background: var(--archive-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.archive-status b {
  color: var(--archive-lime);
  font-size: 8px;
}

.archive-shell {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px var(--archive-pad);
  border-bottom: 1px solid var(--archive-ink);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.archive-shell-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: 100%;
  text-decoration: none;
}

.archive-shell-brand img {
  display: block;
  width: min(165px, 28vw);
  height: auto;
}

.archive-shell-brand strong {
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -.04em;
  white-space: nowrap;
}

.archive-shell nav,
.archive-shell-language {
  display: flex;
  align-items: center;
}

.archive-shell nav {
  justify-content: flex-end;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.archive-shell nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.archive-shell nav a:hover,
.archive-shell nav a:focus-visible {
  border-color: currentColor;
}

.archive-shell-archive {
  color: var(--archive-ink) !important;
}

.archive-shell-home {
  padding: 10px 13px !important;
  border-radius: 999px;
  background: var(--archive-ink);
  color: #fff !important;
}

.archive-shell-language {
  gap: 7px;
}

.archive-shell-language strong {
  position: relative;
  padding: 8px 0;
}

.archive-shell-language strong:after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--archive-lime);
  content: "";
}

body.archive-page > .logo,
body.archive-page > #header {
  display: none !important;
}

body.archive-project > .titel,
body.archive-info > .titel {
  position: static !important;
  width: auto !important;
  max-width: 1480px;
  height: auto !important;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 120px) var(--archive-pad) clamp(40px, 6vw, 84px);
  color: var(--archive-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4.5vw, 72px);
  line-height: .96;
  letter-spacing: -.055em;
}

body.archive-project > .titel:before,
body.archive-info > .titel:before {
  display: block;
  margin-bottom: 28px;
  color: var(--archive-orange);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  content: "ORIGINAL ARCHIVE / PROJECT";
}

html[lang="de"] body.archive-project > .titel:before {
  content: "ORIGINALARCHIV / PROJEKT";
}

html[lang="de"] body.archive-info > .titel:before {
  content: "ORIGINALARCHIV / INFORMATION";
}

html[lang="en"] body.archive-info > .titel:before {
  content: "ORIGINAL ARCHIVE / INFORMATION";
}

body.archive-project > .titel strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(58px, 8vw, 136px);
  hyphens: none;
  line-height: .75;
  letter-spacing: -.085em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: uppercase;
}

body.archive-project > .titel.is-long-title strong {
  font-size: clamp(54px, 6.3vw, 108px);
  line-height: .8;
}

body.archive-project > .titel.is-extra-long-title strong {
  font-size: clamp(48px, 5vw, 88px);
  line-height: .84;
}

body.archive-project > .titel a,
body.archive-info > .titel a,
body.archive-info > .kontakt a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.archive-project > .bild {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--archive-pad);
}

body.archive-project > .bild table,
body.archive-project > .bild tbody,
body.archive-project > .bild tr {
  display: block;
  width: 100% !important;
}

body.archive-project > .bild table {
  border: 0;
  border-spacing: 0;
}

body.archive-project > .bild tr {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}

body.archive-project > .bild td {
  position: relative;
  grid-column: span 6;
  display: flex;
  min-width: 0;
  width: auto !important;
  padding: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: #dddcd6;
  color: var(--archive-muted);
  outline: none;
}

body.archive-project > .bild td.is-wide {
  grid-column: 1 / -1;
}

body.archive-project > .bild td.is-empty {
  display: none;
}

body.archive-project > .bild td:focus-visible {
  outline: 4px solid var(--archive-lime);
  outline-offset: -4px;
}

body.archive-project > .bild img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  filter: grayscale(100%) contrast(1.03);
  transition: filter .55s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
}

body.archive-project > .bild td:after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  background: var(--archive-lime);
  color: var(--archive-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  content: "COLOR / +";
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease;
}

html[lang="de"] body.archive-project > .bild td:after {
  content: "FARBE / +";
}

body.archive-project > .bild td:hover img,
body.archive-project > .bild td:focus-visible img,
body.archive-project > .bild td.is-color img {
  filter: grayscale(0) saturate(1.08);
  transform: scale(1.015);
}

body.archive-project > .bild td:hover:after,
body.archive-project > .bild td:focus-visible:after,
body.archive-project > .bild td.is-color:after {
  opacity: 1;
  transform: none;
}

body.archive-page > .navigation_bild {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: 1480px;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto;
  padding: 34px var(--archive-pad) 70px;
}

body.archive-page > .navigation_bild a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 520px;
  padding: 16px 0;
  border-top: 1px solid var(--archive-ink);
  border-bottom: 1px solid var(--archive-ink);
  color: var(--archive-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

body.archive-page > .navigation_bild a:after {
  color: var(--archive-orange);
  font-size: 22px;
  content: "←";
}

body.archive-info > .kontakt,
body.archive-info > .partner {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: 980px;
  height: auto !important;
  margin: 0;
  padding: 0 var(--archive-pad) 50px;
  color: var(--archive-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.35;
  letter-spacing: -.025em;
}

body.archive-info > .kontakt p {
  margin: 0;
}

body.archive-index > #projects {
  display: block;
  width: auto;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) var(--archive-pad);
}

body.archive-index > #projects:before {
  display: block;
  max-width: 1050px;
  margin-bottom: 80px;
  color: var(--archive-ink);
  font-size: clamp(58px, 10vw, 166px);
  font-weight: 800;
  line-height: .76;
  letter-spacing: -.085em;
  text-transform: uppercase;
  content: "ORIGINAL ARCHIVE";
}

html[lang="de"] body.archive-index > #projects:before {
  content: "ORIGINAL ARCHIV";
}

body.archive-index .category {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 90px;
}

body.archive-index .category:first-child {
  margin-top: 0;
}

body.archive-index .category h2 {
  grid-column: 1 / -1;
  margin: 0 0 22px;
  padding-top: 12px;
  border-top: 1px solid var(--archive-ink);
  color: var(--archive-orange);
  font-size: clamp(30px, 4vw, 65px);
  line-height: .9;
  letter-spacing: -.055em;
}

body.archive-index a.project {
  position: relative;
  top: auto;
  grid-column: span 4;
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #dddcd6;
  color: var(--archive-ink);
  font-size: 16px;
}

body.archive-index a.project img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

body.archive-index a.project .hover_text {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 14px;
  border: 0;
  background: var(--archive-lime);
  color: var(--archive-ink);
  font-size: 13px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .3s ease, transform .3s ease;
}

body.archive-index a.project .hover_text strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
  letter-spacing: -.025em;
}

body.archive-index a.project:hover img,
body.archive-index a.project:focus-visible img {
  filter: grayscale(0) saturate(1.08);
  transform: scale(1.04);
}

body.archive-index a.project:hover .hover_text,
body.archive-index a.project:focus-visible .hover_text {
  opacity: 1;
  transform: none;
}

footer.fhnw-footer {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  background: var(--archive-ink) !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
}

footer.fhnw-footer > .fhnw-footer-container {
  display: grid !important;
  grid-template-columns: 1fr 1.5fr 1fr;
  width: 100% !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 54px var(--archive-pad) 30px;
}

footer.fhnw-footer .col {
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 34px 40px 0 !important;
  font-size: 15px;
  line-height: 1.35;
}

footer.fhnw-footer .col p {
  margin: 0 0 14px;
}

footer.fhnw-footer .col a,
footer.fhnw-footer .col li {
  color: inherit;
  list-style: none;
}

footer.fhnw-footer .col ul {
  margin: 0;
  padding: 0;
}

footer.fhnw-footer .col.bottom {
  position: relative !important;
  grid-column: 1 / -1;
  padding: 22px 0 0 !important;
  border-top: 1px solid #555;
  color: #aaa;
  text-align: left !important;
  font-size: 12px;
}

footer.fhnw-footer .col.bottom:after {
  display: none;
}

footer.fhnw-footer .col.bottom a {
  opacity: 1;
}

.archive-js [data-archive-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}

.archive-js [data-archive-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .archive-shell {
    align-items: start;
  }

  .archive-shell nav {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  body.archive-index a.project {
    grid-column: span 6;
  }

  footer.fhnw-footer > .fhnw-footer-container {
    grid-template-columns: 1fr 1fr;
  }

  footer.fhnw-footer .col.right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .archive-status {
    font-size: 8px;
  }

  .archive-status span:last-child {
    display: none;
  }

  .archive-shell {
    position: relative;
    display: block;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .archive-shell-brand {
    gap: 10px;
  }

  .archive-shell-brand img {
    width: 100px;
  }

  .archive-shell-brand strong {
    font-size: 18px;
  }

  .archive-shell nav {
    justify-content: flex-start;
    margin-top: 12px;
    font-size: 10px;
  }

  .archive-shell-home {
    padding: 8px 10px !important;
  }

  body.archive-project > .titel,
  body.archive-info > .titel {
    padding-top: 55px;
    font-size: 24px;
    line-height: 1.05;
  }

  body.archive-project > .titel strong {
    font-size: 13.5vw;
    line-height: .8;
  }

  body.archive-project > .titel.is-long-title strong {
    font-size: 11vw;
    line-height: .84;
  }

  body.archive-project > .titel.is-extra-long-title strong {
    font-size: 9.3vw;
    line-height: .88;
  }

  body.archive-project > .bild tr {
    display: block;
  }

  body.archive-project > .bild td,
  body.archive-project > .bild td.is-wide {
    display: flex;
    width: 100% !important;
    margin-bottom: 12px;
  }

  body.archive-project > .bild td.is-empty {
    display: none;
  }

  body.archive-project > .bild td:after {
    opacity: 1;
    transform: none;
  }

  body.archive-index > #projects:before {
    margin-bottom: 55px;
    font-size: 18vw;
  }

  body.archive-index .category {
    display: block;
    margin-top: 70px;
  }

  body.archive-index a.project {
    width: 100%;
    margin-bottom: 14px;
  }

  body.archive-index a.project .hover_text {
    opacity: 1;
    transform: none;
  }

  footer.fhnw-footer > .fhnw-footer-container {
    display: block !important;
    padding-top: 42px;
  }

  footer.fhnw-footer .col {
    padding-right: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.archive-project > .bild img,
  body.archive-index a.project img,
  body.archive-index a.project .hover_text,
  .archive-js [data-archive-reveal] {
    transition: none;
  }

  .archive-js [data-archive-reveal] {
    opacity: 1;
    transform: none;
  }
}
