@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400..600;1,400..600&family=EB+Garamond:ital,wght@0,400..600;1,400..600&family=Murecho:wght@400;700&family=Source+Sans+3:ital,wght@0,400..600;1,400..600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400..700;1,8..60,400..700&family=Spectral:ital,wght@0,400;0,500;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: #ffffff;
  color: #121212;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* Navigation */
.site-title {
  position: fixed;
  top: 40px;
  left: 36px;
  z-index: 20;
  display: inline-block;
  line-height: 1;
}

.site-title img {
  height: 32px;
  width: auto;
  display: block;
}

nav {
  position: fixed;
  top: 0;
  right: 18px;
  height: 100vh;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
}

nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #666666;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #121212;
}

nav a.active {
  color: #121212;
}

/* Main content */
main {
  padding: 40px 36px;
}

.about-text {
  width: 600px;
  max-width: calc(100vw - 31.5vw - 110px);
  margin-left: 31.5vw;
  margin-right: auto;
  padding: 80px 0;
}

.contact-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.contact-main .vita li,
.contact-main p {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .site-title {
    top: 24px;
    left: 20px;
  }
  .site-title img {
    height: 26px;
  }
  nav {
    right: 8px;
    padding: 20px 16px;
  }
  nav a {
    font-size: 16px;
  }
  .impressum-link {
    bottom: 16px;
    right: 20px;
  }
  main {
    padding: 20px 16px;
  }
  .about-text {
    width: auto;
    max-width: calc(100vw - 55px - 100px);
    margin-left: 55px;
    margin-right: auto;
    padding: 70px 0 60px 0;
  }
}

.about-text h1 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  margin-bottom: 32px;
}

.about-text p {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #121212;
}

.about-text h2,
.about-text h3 {
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  line-height: 1.8;
  margin-bottom: 0;
  color: #121212;
}

/* Impressum Section Overrides */
.impressum-main,
.impressum-main * {
  font-family: 'Source Sans 3', sans-serif !important;
}

.impressum-main h2 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
  text-decoration: none;
  color: #121212;
}

.impressum-main h3 {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #121212;
}

.impressum-main p {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: normal;
  margin-bottom: 14px;
  color: #121212;
}


/* Vita Section */
.vita {
  margin-top: 75px;
}

.vita:first-child {
  margin-top: 0;
}

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

.vita li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #121212;
  margin-bottom: 8px;
}


.gallery {
  display: block;
}

.gallery-slide {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  display: block;
}

/* Impressum link */
.impressum-link {
  position: fixed;
  bottom: 24px;
  right: 36px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
  z-index: 20;
}

.impressum-link:hover {
  color: #121212;
}


/* Embla Carousel */
.embla {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  height: 100vh;
  width: 100vw;
  touch-action: pan-y;
  user-select: none;
}

.embla__container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  will-change: transform;
  touch-action: pan-y;
}

.embla__slide {
  flex: 0 0 100vh;
  width: 100%;
  height: 100vh;
  min-height: 0;
  position: relative;
}

.embla__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Background image */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('img/bg2.jpg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
