

:root {

  --bg: #ecfb02;

  --fg: #6a00ff;

  --muted: #6a00ff;

  --line: rgba(106, 0, 255, .28);

  --pad: clamp(14px, 1.05vw, 18px);

  --gap: clamp(12px, 1.15vw, 18px);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

}

* { box-sizing: border-box; }

html { margin: 0; padding: 0; background: var(--bg); scroll-behavior: smooth; }

body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; line-height: 1.2; -webkit-font-smoothing: antialiased; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

img { display: block; width: 100%; }

main { min-height: 70vh; }

.page-pad { padding-left: var(--pad); padding-right: var(--pad); }

.site-header {

  position: fixed; inset: 0 0 auto; z-index: 100;

  display: grid; grid-template-columns: 1fr auto auto; align-items: center;

  padding: 14px var(--pad);
  background: rgba(236,251,2,.68);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);

}

.site-logo { font-size: 14px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }

.site-nav { display: flex; gap: 30px; justify-self: end; }

.site-nav a, .site-tools a, .site-tools button { font-size: 14px; line-height: 1; border: 0; background: none; padding: 0; cursor: pointer; }

.site-tools { justify-self: end; display: flex; gap: 22px; align-items: center; margin-left: 30px; }

.language--header { font-weight: 700; }

.menu-toggle { display: none; }

.site-tools .grid-toggle { display: none; }

.mobile-menu { display: none; }

.home-intro { padding-top: 98px; padding-bottom: 72px; }

.home-intro h1 { max-width: 1000px; margin: 0; font-size: clamp(38px, 2.65vw, 48px); line-height: 1.04; font-weight: 500; letter-spacing: -.025em; }

.home-work { padding-bottom: 86px; }

.home-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px var(--gap); }

.work-card { display: block; min-width: 0; width: 100%; }

/* Landingpage: Der Cover-Rahmen hat IMMER dieselbe feste Größe.
   cover = Bild beschneidet den Rahmen, contain = komplettes Bild innerhalb
   desselben Rahmens. Der dezente Hintergrund macht den festen Rahmen auch
   bei contain sichtbar, damit Bild und Text dieselbe Außenkante behalten. */
.work-card-media {
  width: 100%;
  aspect-ratio: 1.68 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.65,.2,1);
}

.work-card-media--cover img { object-fit: cover; }
.work-card-media--contain img { object-fit: contain; }

.work-card:hover .work-card-media img { transform: scale(1.018); }

.work-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; background: #eee; }

.work-card-placeholder span { font-size: clamp(24px, 3vw, 44px); letter-spacing: -.055em; }

.work-card-meta { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-top: 10px; font-size: 14px; }

.work-card-meta span:first-child { min-width: 0; }

.work-card-meta span:last-child { text-align: left; }

.work-empty { padding: 50px 0; border-top: 1px solid var(--line); color: var(--muted); }

.page-hero { padding-top: 150px; padding-bottom: 70px; }

.page-hero h1 { max-width: 1100px; margin: 0; font-size: clamp(42px, 4.5vw, 76px); line-height: .98; font-weight: 500; letter-spacing: -.06em; }

.page-hero.compact { padding-bottom: 40px; }

.listing-wrap { padding-bottom: 100px; }

.studio-hero { padding-bottom: 110px; }

.studio-copy { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 10vw; padding-bottom: 120px; }

.studio-main p { margin: 0; max-width: 930px; font-size: clamp(38px, 4.2vw, 72px); line-height: .98; letter-spacing: -.065em; }

.studio-aside { max-width: 340px; font-size: 16px; line-height: 1.25; }

.studio-aside p { margin: 0 0 34px; }

.text-link { display: inline-block; border-bottom: 1px solid var(--fg); padding-bottom: 4px; }

.services-strip { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; padding-bottom: 110px; }

.strip-label { border-top: 1px solid var(--fg); padding-top: 8px; font-size: 12px; text-transform: uppercase; }

.services-list { border-top: 1px solid var(--fg); }

.services-list div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 0; }

.services-list span { color: var(--muted); font-size: 12px; }

.services-list strong { font-size: 26px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }

/* Studio page — Neue Graphic reference layout. */
.studio-reference {
  padding-top: 96px;
  padding-bottom: 108px;
}

/* The reference uses a deliberately narrow text measure (about half the page),
   not a large hero treatment. */
.studio-reference__intro {
  width: min(730px, 100%);
}

.studio-reference__intro p {
  margin: 0 0 27px;
  font-size: 14px;
  line-height: 1.48;
}

.studio-reference__intro p:last-child {
  margin-bottom: 0;
}

.studio-reference__intro .studio-reference__muted {
  color: #8a8a8a;
}

/* Selected clients + services occupy only the left half of the 12-column grid. */
.studio-reference__lists {
  display: grid;
  grid-template-columns: minmax(0, 355px) minmax(0, 355px);
  column-gap: 20px;
  width: min(730px, 100%);
  margin-top: 69px;
}

.studio-reference__lists h2,
.studio-feedback__heading {
  margin: 0 0 27px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

.studio-reference__lists ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.48;
}

.studio-reference__service-list li {
  width: fit-content;
  line-height: 1.48;
}

.studio-reference__service-list a,
.studio-reference__service-list span {
  display: inline;
  border-bottom: 1px solid var(--fg);
}

.studio-reference__service-list a:hover {
  opacity: .55;
}

/* Feedback spans the full page in three equal columns, exactly as in the reference. */
.studio-feedback {
  margin-top: 72px;
}

.studio-feedback__heading {
  margin-bottom: 47px;
}

.studio-feedback__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 70px;
}

.studio-feedback__item {
  min-height: 184px;
  padding-top: 25px;
  border-top: 1px solid #e1e1e1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.studio-feedback__item p {
  margin: 0 0 24px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.48;
}

.studio-feedback__item footer {
  display: flex;
  flex-direction: column;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.45;
}

.studio-feedback__item footer strong {
  color: #8a8a8a;
  font-weight: 400;
}

/* On Neue Graphic the thin footer remains visible while the Studio page scrolls. */
body.studio-page .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  margin: 0;
  padding: 10px var(--pad) 18px;
  background: rgba(236,251,2,.97);
  grid-template-columns: 1fr auto;
}

body.studio-page .site-footer > span {
  display: none;
}

body.studio-page .site-footer .footer-links {
  justify-self: end;
}

.index-table { padding-bottom: 120px; }

.index-grid { display: grid; grid-template-columns: 2fr 1fr .5fr; gap: 20px; align-items: baseline; }

.index-head { border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 12px; color: var(--muted); text-transform: uppercase; }

.index-row { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; }

.index-row span:first-child { font-size: 20px; letter-spacing: -.035em; }

.index-row:hover { background: rgba(106, 0, 255, .05); }

.contact-hero { padding-top: 150px; min-height: 76vh; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 50px; }

.contact-hero h1 { max-width: 1050px; margin: 0; font-size: clamp(48px, 6vw, 100px); line-height: .92; font-weight: 500; letter-spacing: -.07em; }

.contact-email-large { width: fit-content; border-bottom: 1px solid var(--fg); padding-bottom: 4px; font-size: clamp(24px, 2.2vw, 38px); letter-spacing: -.04em; }

.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding-bottom: 120px; }

.contact-details div { border-top: 1px solid var(--fg); padding-top: 8px; display: flex; flex-direction: column; gap: 7px; }

.contact-details span { font-size: 12px; color: var(--muted); text-transform: uppercase; }

.contact-details strong, .contact-details a { font-size: 18px; font-weight: 400; }

.project-hero { padding-top: 100px; padding-bottom: 62px; }

.project-hero h1 { max-width: 760px; margin: 0; font-size: clamp(26px, 2.1vw, 34px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; }

.project-subtitle { max-width: 680px; margin: 42px 0 0; font-size: 16px; line-height: 1.25; letter-spacing: -.02em; }

.project-description { max-width: 760px; margin: 42px 0 0; font-size: 16px; line-height: 1.25; }

.project-feature { margin: 0; padding: 0 var(--pad) 105px; }

.project-feature--cover { overflow: hidden; }

.project-feature--cover img { width: 100%; max-height: 86vh; object-fit: cover; }

.project-feature--contain { background: transparent; }

.project-feature--contain img { width: 100%; height: auto; object-fit: contain; }

.project-media-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-bottom: 120px; }

.media-item { min-width: 0; margin: 0; overflow: visible; }

/*
 * PROJECT IMAGE FRAME
 * The geometry belongs to this wrapper, never to the image or to the fit mode.
 * Switching between cover and contain therefore cannot change width/height by
 * even a pixel. Contain simply creates inner letterboxing inside this frame.
 */
.media-frame {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.media-fit-cover .media-frame img { object-fit: cover; }
.media-fit-contain .media-frame img { object-fit: contain; }

.media-full { grid-column: 1 / -1; }

.media-half-left { grid-column: 1 / span 6; }

.media-half-right { grid-column: 7 / span 6; }

.media-third-left { grid-column: 1 / span 4; }

.media-third-middle { grid-column: 5 / span 4; }

.media-third-right { grid-column: 9 / span 4; }

.media-half { grid-column: span 6; }

.media-third { grid-column: span 4; }

.media-half-empty { grid-column: span 6; min-height: 1px; }

.media-third-empty { grid-column: span 4; min-height: 1px; }

.media-item figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }

.project-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10vw; padding-bottom: 130px; }

.project-copy__services,

.project-copy__content { border-top: 1px solid var(--fg); padding-top: 8px; }

.project-copy__label { font-size: 12px; margin-bottom: 28px; }

.project-copy__label--small { font-size: 12px; }

.project-copy__value { font-size: 16px; line-height: 1.25; margin-bottom: 6px; }

.project-copy__description { max-width: 760px; font-size: 16px; line-height: 1.28; }

.project-copy__block { margin-top: 52px; max-width: 760px; }

.project-copy__block h2 { margin: 0 0 22px; font-size: 26px; line-height: 1; }

.project-copy__block p { margin: 0; font-size: 16px; line-height: 1.28; }

.more-projects { padding-bottom: 120px; }

.more-projects__heading { border-top: 1px solid var(--fg); padding-top: 8px; margin-bottom: 28px; font-size: 12px; }

.more-projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px var(--gap); }

.more-project-card { display: block; min-width: 0; }

.more-project-card__media {
  width: 100%;
  aspect-ratio: 1.68 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.more-project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.65,.2,1);
}

.more-project-card:hover .more-project-card__media img { transform: scale(1.018); }

.more-project-card__title { padding-top: 9px; font-size: 14px; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; border-top: 1px solid var(--fg); margin: 0 var(--pad); padding: 10px 0 18px; font-size: 14px; background: var(--bg); }

.site-footer > a, .site-footer > button { justify-self: start; }

.site-footer > span { justify-self: center; }

.site-footer .grid-toggle { border: 0; padding: 0; background: none; cursor: pointer; }

.footer-links { justify-self: end; display: flex; gap: 26px; }

body::before { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0; background-image: linear-gradient(to right, rgba(0,0,0,.08) 1px, transparent 1px); background-size: calc((100vw - 2 * var(--pad)) / 12) 100%; background-position: var(--pad) 0; transition: opacity .2s; }

body.show-grid::before { opacity: 1; }

@media (max-width: 760px) {

  .site-header { grid-template-columns: 1fr auto; }

  .site-tools { margin-left: 0; gap: 14px; }

  .site-nav, .site-tools .grid-toggle { display: none; }

  .menu-toggle { display: block; border: 0; background: none; padding: 0; }

  .mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: flex-start; padding: 90px var(--pad) 18px; background: var(--bg); transform: translateY(-100%); transition: transform .35s ease; }

  .mobile-menu[aria-hidden="false"] { transform: translateY(0); }

  .mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }

  .mobile-menu nav a { font-size: 50px; line-height: .88; letter-spacing: -.065em; }

  .mobile-language-switch { display: flex; gap: 8px; margin-top: 34px; font-size: 20px; }

  .mobile-language-switch a { font-weight: 400; }

  .mobile-language-switch a.is-active { font-weight: 700; }

  .mobile-menu-footer { display: flex; justify-content: space-between; margin-top: auto; font-size: 12px; }

  body.menu-open { overflow: hidden; }

  .home-intro { padding-top: 88px; padding-bottom: 56px; }

  .home-intro h1 { font-size: 38px; }

  .home-work-grid { grid-template-columns: 1fr; gap: 42px; }

  .work-card-media { aspect-ratio: 1.3 / 1; }

  .work-card-meta { font-size: 13px; }

  .page-hero { padding-top: 110px; padding-bottom: 60px; }

  .page-hero h1 { font-size: 45px; }

  .studio-copy { grid-template-columns: 1fr; gap: 55px; padding-bottom: 80px; }

  .studio-main p { font-size: 40px; }

  .services-strip { grid-template-columns: 1fr; padding-bottom: 80px; }

  .studio-reference { padding-top: 92px; padding-bottom: 96px; }

  .studio-reference__intro p { font-size: 14px; line-height: 1.45; }

  .studio-reference__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: 54px;
  }

  .studio-reference__lists ul { font-size: 14px; line-height: 1.45; }

  .studio-feedback { margin-top: 64px; }

  .studio-feedback__heading { margin-bottom: 34px; }

  .studio-feedback__grid { grid-template-columns: 1fr; gap: 46px; }

  .studio-feedback__item { min-height: 0; padding-top: 18px; }

  body.studio-page .site-footer { padding-bottom: 14px; }

  .contact-hero { min-height: 76vh; padding-top: 110px; }

  .contact-hero h1 { font-size: 54px; }

  .contact-details { grid-template-columns: 1fr; padding-bottom: 80px; }

  .index-grid { grid-template-columns: 1.8fr 1fr; }

  .index-grid span:last-child { display: none; }

  .project-hero { padding-top: 88px; padding-bottom: 48px; }

  .project-hero h1 { font-size: 32px; }

  .project-subtitle { margin-top: 30px; font-size: 16px; }

  .project-feature { padding-bottom: 70px; }

  /* MOBILE PROJECT MEDIA: auf Smartphones keine Desktop-Spalten.
     Alle Bilder stehen als echte Blockelemente untereinander. */
  .project-media-grid {
    display: block;
    padding-bottom: 80px;
  }

  .project-media-grid > .media-item {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 var(--gap);
  }

  .media-half-empty,
  .media-third-empty {
    display: none;
  }

  /*
   * Mobile uses exactly the same fixed image frame for both fit modes.
   * Only object-fit changes; the outer dimensions never do.
   */
  .project-media-grid > .media-item .media-frame {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
  }

  .project-media-grid > .media-item.media-fit-cover .media-frame img {
    object-fit: cover;
  }

  .project-media-grid > .media-item.media-fit-contain .media-frame img {
    object-fit: contain;
  }

.project-copy { grid-template-columns: 1fr; gap: 42px; padding-bottom: 90px; }

  .more-projects { padding-bottom: 90px; }

  .more-projects__grid { grid-template-columns: 1fr; gap: 42px; }

  .site-footer { grid-template-columns: 1fr; gap: 7px; }

  .site-footer > a, .site-footer > span, .footer-links { justify-self: start; }

}

.more-project-card__media--contain img { object-fit: contain; }


/* --------------------------------------------------------------------------
   INDEX — Neue Graphic reference layout
   -------------------------------------------------------------------------- */

body.index-page main {
  min-height: calc(100vh - 48px);
}

.index-reference {
  padding-top: 96px;
  padding-bottom: 118px;
}

.index-reference__title {
  margin: 0 0 73px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
}

.index-reference__table {
  width: 100%;
}

.index-reference__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(110px, .85fr) minmax(70px, .55fr) minmax(0, 3fr);
  column-gap: 22px;
  align-items: start;
}

.index-reference__head {
  padding: 0 0 11px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.2;
}

.index-reference__project {
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.24;
  transition: opacity .16s ease;
}

.index-reference__project:first-of-type {
  border-top: 0;
}

.index-reference__project:hover {
  opacity: .52;
}

.index-reference__project-name {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 0;
  min-width: 0;
}

.index-reference__number {
  font-variant-numeric: tabular-nums;
}

.index-reference__type,
.index-reference__year {
  white-space: nowrap;
}

.index-reference__services {
  max-width: 620px;
}

/* The reference Index is a restrained text/table page; remove the generic
   oversized page-hero styling from this route entirely. */
body.index-page .page-hero,
body.index-page .index-table {
  display: none;
}

@media (max-width: 760px) {
  .index-reference {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .index-reference__title {
    margin-bottom: 52px;
  }

  .index-reference__row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
  }

  .index-reference__head {
    display: none;
  }

  .index-reference__project {
    grid-template-areas:
      "project year"
      "type type"
      "services services";
    row-gap: 7px;
    padding: 13px 0 14px;
  }

  .index-reference__project-name {
    grid-area: project;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .index-reference__type {
    grid-area: type;
    padding-left: 28px;
    color: var(--muted);
  }

  .index-reference__year {
    grid-area: year;
    text-align: right;
  }

  .index-reference__services {
    grid-area: services;
    padding-left: 28px;
    color: var(--muted);
    line-height: 1.35;
  }
}

/* --------------------------------------------------------------------------
   INDEX — cover preview on project hover
   -------------------------------------------------------------------------- */
.index-reference__preview {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(260px, 22vw, 340px);
  aspect-ratio: 1.58 / 1;
  z-index: 80;
  overflow: hidden;
  background: #f2f2f2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}

.index-reference__preview.is-visible {
  opacity: 1;
}

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

@media (max-width: 900px), (hover: none) {
  .index-reference__preview {
    display: none;
  }
}
