:root {
  --white: #ffffff;
  --black: #111111;
  --grey: #747474;
  --light-grey: #e4e4e4;
  --soft-grey: #a2a2a2;
  --red: #d42121;

  --header-height: 126px;
  --sidebar-width: 230px;
  --content-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--light-grey);
  z-index: 1000;
}

/* MANGART WORTMARKE */

.site-logo {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 430px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.site-logo-main {
  display: block;
  width: 100%;
  color: var(--black);
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
  text-align: center;
  text-indent: 0.13em;
}

.site-logo .site-logo-japanese {
  position: static !important;
  display: block;
  width: 100%;
  margin-top: 10px;
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: var(--red) !important;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.46em;
  text-align: center;
  text-indent: 0.46em;
  transform: translateX(-2px) !important;
  align-self: center;
}

.header-controls {
  position: absolute;
  top: 0;
  right: 36px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.language-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaaaaa;
  cursor: pointer;
}

.language-button.active {
  color: var(--black);
}

.language-divider {
  color: #bdbdbd;
  font-weight: 400;
}

/* LINKE NAVIGATION */

.sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  padding: 52px 32px 32px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--light-grey);
  z-index: 900;
}

.main-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.main-navigation a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
  width: 100%;
}

/* SIGNATUR LINKS UNTEN */

.sidebar-footer {
  margin-top: auto;
  padding-top: 72px;
  color: #999999;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.japanese-name {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* HAUPTBEREICH */

.page {
  margin-left: var(--sidebar-width);
  padding: var(--header-height) 46px 100px;
}

.content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: 70px;
}

/* HOME INTRO */

.intro {
  max-width: 820px;
  margin-bottom: 100px;
}

.intro p {
  margin-top: 0;
}

.intro-lead {
  margin-bottom: 14px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.intro-main {
  margin-bottom: 30px;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.intro-sub {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--grey);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
}

/* AUSGEWÄHLTE ARBEITEN */

.selected-works {
  width: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 30px;
  color: var(--soft-grey);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--light-grey);
}

/* WERKRASTER */

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 22px;
}

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

.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px dashed #d4d4d4;
  color: #aaaaaa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
}

/* ALLE WERKE ANSEHEN */

.all-works-link {
  display: inline-block;
  position: relative;
  margin-top: 46px;
  padding-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.all-works-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--black);
}

.all-works-link:hover {
  opacity: 0.55;
}

/* HAMBURGER */

.menu-button {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 3px 0;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
  opacity: 0;
}

.menu-button.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* TABLET */

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

/* HANDY */

@media (max-width: 760px) {
  :root {
    --header-height: 98px;
  }

  .site-logo {
    top: 50%;
    left: 20px;
    width: max-content;
    transform: translateY(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
  }

  .site-logo-main {
    display: block;
    width: auto;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-align: center;
    text-indent: 0;
  }

  .site-logo .site-logo-japanese {
    display: block;
    width: auto;
    margin-top: 7px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    color: var(--red) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.2em;
    text-align: center;
    text-indent: 0.2em;
    transform: translateX(-6px) !important;
    align-self: center;
  }

  .header-controls {
    top: 0;
    right: 16px;
    height: var(--header-height);
    gap: 14px;
  }

  .language-switch {
    height: 32px;
    display: flex;
    align-items: center;
    font-size: 13px;
  }

  .menu-button {
    display: flex;
  }

  .sidebar {
    top: var(--header-height);
    width: 100%;
    height: calc(100vh - var(--header-height));
    padding: 36px 26px 30px;
    border-right: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-navigation {
    gap: 24px;
  }

  .main-navigation a {
    font-size: 22px;
  }

  .sidebar-footer {
    display: none;
  }

  .page {
    margin-left: 0;
    padding: var(--header-height) 22px 65px;
  }

  .content {
    padding-top: 48px;
  }

  .intro {
    margin-bottom: 74px;
  }

  .intro-lead {
    font-size: 23px;
  }

  .intro-main {
    font-size: 23px;
  }

  .intro-sub {
    font-size: 17px;
  }

  .section-title {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

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