:root {
  --color-white: rgba(255, 255, 255, 0.9);
  --color-black: rgba(0, 0, 0, 0.9);
}

@font-face {
  font-family: "ABCDiatype";
  src: url(/assets/fonts/ABCDiatypeCondensed-Medium-Trial.otf);
}

html,
body {
  font-family: "ABCDiatype";
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: inherit;
  margin: 0;
  padding: 0;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: sans-serif;
}

* {
  margin: 0;
  padding: 0;
}

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

*::-webkit-scrollbar {
  display: none;
}

html {
  /* scroll-behavior: smooth; */
  scrollbar-width: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

p:not(:last-of-type) {
  padding-bottom: 1em;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  color: inherit;
  font: inherit;
  background: none;
  appearance: none;
  transition: color 0.3s;
}

nav {
  position: fixed;
  color: var(--color-white);
  bottom: 50px;
  margin-left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  ul {
    display: flex;
    gap: 25px;
    li {
      width: 100%;
    }
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: 0.3s;
}

/* Default: Desktop (ab 900px) */
.list-container {
  overflow-y: hidden;
  height: 100vh;
  position: relative;
}

.list {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow-x: scroll;
  overflow-y: hidden;
  margin: 0;
  padding: 0;
}

.list-hike {
  aspect-ratio: 2/3;
  width: 100%;
  height: 100%;
  position: relative;
}

.list-hike-info-container {
  display: none;
}

.list-hike.dimmed,
.home-article.dimmed {
  filter: brightness(0.5);
  /* transition: filter 0.3s ease; */
}

.list-hike a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  pointer-events: all;
  cursor: pointer !important;
}

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

/* zentrales Elemente für beide Varianten */
#fixedText {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100vw;
  position: fixed;
  top: calc(50% - 1rem);

  font-size: 1rem;
  line-height: 1rem;
  color: var(--color-white);
  text-align: left;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;

  li {
    top: 0;
    width: 20%;
    word-break: break-all;
  }
}

.home-articles-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  height: 20%;
  z-index: 100;

  & .home-articles-container {
    display: flex;
    flex-direction: row;
    height: 100%;

    a,
    li,
    img {
      height: 100%;
    }
  }
}

.article-buttons {
  display: none;
}

/* ✅ Mobile: max-width 900px  */
@media (max-width: 900px) {
  .list-container {
    overflow-y: auto;
    height: 100vh;
    position: relative;
  }

  .list {
    display: block;
    height: auto;
    overflow: visible;
  }

  .list-hike {
    aspect-ratio: 2/3;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .home-articles-wrapper {
    display: none;
  }

  .article-buttons {
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 10px;
    font-size: 5em;
  }
}