@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/Source_Serif_4/SourceSerif4-VariableFont_opsz,wght.ttf")
    format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/Source_Serif_4/SourceSerif4-Italic-VariableFont_opsz,wght.ttf")
    format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #f3efe3;
  --ink-soft: rgba(243, 239, 227, 0.76);
  --faint: rgba(243, 239, 227, 0.2);
  --line: rgba(243, 239, 227, 0.28);
  --accent: #e2601b;
  --deep: #062936;
  --shadow: rgba(0, 0, 0, 0.64);
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-bg,
.site-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-bg {
  z-index: 0;
  background-image: url("../images/signet.png");
  background-position: center var(--bg-y, 0%);
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
}

.site-shade {
  z-index: 1;
  background: rgba(0, 0, 0, 0.48);
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 2;
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 22px 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 28px);
  width: min(1040px, 100%);
  color: var(--ink-soft);
  font-size: clamp(11px, 1.35vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 16px var(--shadow);
}

.nav a,
.nav button {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav a:hover,
.nav button:hover {
  color: var(--ink);
}

.nav-divider {
  opacity: 0.65;
}
.nav-place {
  color: var(--ink);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  padding: 3px 7px 4px;
  border: 1px solid rgba(243, 239, 227, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font: inherit;
  cursor: pointer;
}

.lang-option {
  opacity: 0.45;
  transition:
    opacity 160ms ease,
    color 160ms ease;
}

.lang-option.is-active {
  color: var(--ink);
  opacity: 1;
}

.lang-separator {
  opacity: 0.38;
}

.section-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 112px clamp(22px, 7vw, 112px);
}

.hero {
  position: relative;
}

.hero h1 {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 8.8rem);
  line-height: 1.12;
  letter-spacing: 0.025em;
  text-shadow: 0 8px 42px rgba(0, 0, 0, 0.72);
}

.hero-mark {
  display: block;
  font-family: var(--display);
  font-size: 1em;
  line-height: 1;
  margin-bottom: 0.16em;
}

.hero-title {
  display: block;
  line-height: 1.18;
}

.scroll-cue {
  position: absolute;
  bottom: 9vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  text-decoration: none;
  font-size: 1.5rem;
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 9px);
  }
}

.understanding,
.works {
  align-content: center;
  background: rgba(0, 0, 0, 0.24);
}

h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px var(--shadow);
}

.ornament {
  width: 42px;
  height: 1px;
  margin: 28px auto 38px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(226, 96, 27, 0.8);
}

.statement {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--sans);
  font-weight: 360;
  font-size: clamp(1.12rem, 1.85vw, 1.52rem);
  line-height: 1.35;
  text-shadow: 0 4px 20px var(--shadow);
}

.statement p {
  margin: 0 0 1.35em;
}
.statement p:last-child {
  margin-bottom: 0;
}

.works {
  position: relative;
  display: block;
  min-height: 100vh;
}

.works h2 {
  margin-top: 8vh;
}

.works-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.work-item {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(275px, 0.95fr) minmax(190px, 1.25fr) minmax(170px, 0.9fr)
    42px;
  gap: clamp(16px, 3vw, 46px);
  align-items: center;
  min-height: 78px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  outline: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.work-item:hover,
.work-item:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(4px);
  border-bottom-color: rgba(243, 239, 227, 0.54);
}

.work-meta,
.work-format {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.work-meta {
  display: flex;
  gap: 1.05em;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: clamp(0.96rem, 1.32vw, 1.2rem);
}

.work-meta span:first-child {
  color: var(--accent);
}

.work-format {
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
}

.work-item h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 1;
  text-shadow: 0 4px 24px var(--shadow);
}

.work-arrow {
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1;
}

.hover-card {
  position: fixed;
  right: clamp(18px, 4vw, 68px);
  top: 50%;
  z-index: 5;
  display: flex;
  gap: 16px;
  align-items: end;
  width: min(430px, calc(100vw - 36px));
  padding: 16px;
  opacity: 0;
  transform: translate3d(18px, -50%, 0);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
  pointer-events: none;
  background: rgba(5, 7, 8, 0.42);
  border: 1px solid var(--faint);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.65);
}

.hover-card.is-visible {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.hover-card-image {
  width: 180px;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.hover-card-text {
  margin: 0;
  color: rgba(246, 239, 227, 0.82);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.work-mobile-image,
.work-mobile-description {
  display: none;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 90px 22px 44px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav-divider {
    display: none;
  }

  .section-panel {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  h2 {
    letter-spacing: 0.28em;
  }

  .work-item {
    grid-template-columns: 1fr 32px;
    gap: 10px 18px;
    text-align: left;
    padding: 24px 0;
  }

  .work-meta,
  .work-format,
  .work-item h3 {
    grid-column: 1;
  }

  .work-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .hover-card {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Mobile: use transform-based background movement instead of background-position on a fixed layer. */
@media (max-width: 820px), (hover: none), (pointer: coarse) {
  .site-bg {
    inset: -14vh 0;
    height: 128vh;
    background-position: center center;
    transform: translate3d(0, var(--bg-shift, 0px), 0) scale(1.08);
    transform-origin: center center;
    will-change: transform;
  }
}

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

/* Responsive Korrekturen ohne Änderung der Desktop-Hintergrunddarstellung */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
}

.nav a:focus-visible,
.lang-toggle:focus-visible,
.work-item:focus-visible,
.scroll-cue:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.work-item::after {
  display: none;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 112px;
  }

  .topbar {
    position: fixed;
    padding: max(12px, env(safe-area-inset-top)) clamp(12px, 3vw, 20px) 12px;
    background: linear-gradient(
      180deg,
      rgba(1, 19, 27, 0.88),
      rgba(1, 19, 27, 0.48) 72%,
      rgba(1, 19, 27, 0)
    );
    backdrop-filter: blur(10px);
  }

  .nav {
    min-height: 44px;
    gap: 8px 14px;
    font-size: clamp(0.72rem, 2.8vw, 0.84rem);
    line-height: 1.15;
  }

  .nav a,
  .lang-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .section-panel {
    min-height: auto;
    padding: 108px clamp(16px, 5vw, 28px) 72px;
    scroll-margin-top: 112px;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12.5vw, 5rem);
    line-height: 1.12;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
  }

  .hero-title {
    margin-inline: auto;
    line-height: 1.2;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1rem, 5.2vw, 1.38rem);
    letter-spacing: 0.16em;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .statement {
    max-width: 34rem;
    font-size: clamp(1.04rem, 4.5vw, 1.28rem);
    line-height: 1.45;
  }

  .statement br {
    display: none;
  }

  .works {
    padding-top: 96px;
  }

  .works h2 {
    margin-top: 0;
  }

  .work-item {
    grid-template-columns: 1fr 32px;
    gap: 8px 18px;
    align-items: center;
    min-height: 0;
    padding: 22px 0;
    cursor: pointer;
    transform: none;
  }

  .work-item:hover {
    transform: none;
  }

  .work-mobile-image {
    display: none;
    grid-column: 1 / -1;
    width: min(100%, 360px);
    object-fit: cover;
    margin-top: 10px;
    border: 1px solid var(--faint);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    filter: saturate(0.85) contrast(1.05);
  }

  .work-item.is-expanded .work-mobile-image {
    display: block;
  }

  .work-mobile-description {
    display: none;
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: rgba(246, 239, 227, 0.82);
    font-size: clamp(0.9rem, 3.7vw, 1rem);
    line-height: 1.45;
    text-align: left;
  }

  .work-item.is-expanded .work-mobile-description {
    display: block;
  }

  .work-item.is-expanded .work-arrow {
    transform: rotate(90deg);
  }

  .footer {
    padding-bottom: max(34px, env(safe-area-inset-bottom));
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 6px 10px;
  }

  .section-panel {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11.5vw, 3.6rem);
  }

  .hero-title {
    line-height: 1.22;
  }
}
