/*
Theme Name: Twenty Twenty-Five Adler
Template: twentytwentyfive
*/

html {
  --yellow: #ffff00;
  --orange: #fd6008;
  --purple: #d6beff;
  --transition-time: 0.3s;
  scroll-behavior: smooth;
}

/* Yellow BG at start */
/* .wp-site-blocks::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  height: 100dvh;
  width: 100dvw;
  background: yellow;
} */

/* Short Title */
#short-title {
  font-size: 3rem;
  line-height: 0.8;
  font-weight: 700;
  display: flex;
  white-space: nowrap;
  transition: color left ease-in-out;
  transition-duration: var(--transition-time);
  position: fixed;
  z-index: 1000;
  left: 50%;
  transform: translate(-50%);
  padding: 30px 0;
  top: 0px;
}
#short-title.left {
  left: 180px;
  color: var(--orange);
}
#short-title.left[data-purple="true"] {
  color: var(--purple);
}
#short-title-letters {
  transition: opacity ease-in-out;
  transition-duration: var(--transition-time);
}
#short-title.left #short-title-letters {
  opacity: 0;
}

/* OVERRIDES */
.wp-site-blocks :focus {
  outline-width: 0 !important;
}
a:hover {
  text-decoration: none !important;
}

/* MENU */

/* Wrapper */
.wp-block-navigation {
  position: absolute;
  top: 100px;
  right: 0;
  z-index: 1000;
  display: block !important;
  width: 100%;
}

/* Menu */
.wp-block-navigation .wp-block-navigation__responsive-container {
  transition: all 0.1s ease-in-out;
  position: fixed !important;
  top: 0px;
  right: 0px;
  left: auto;
  height: 100dvh;
  display: block !important;
  background-color: var(--orange) !important;
}
.wp-block-navigation .wp-block-navigation__responsive-container[data-purple="true"] {
  background-color: var(--purple) !important;
}
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
  width: 0px;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
  width: 350px !important;
}

/* hamburger button */
.wp-block-navigation .wp-block-navigation__responsive-container-open {
  display: block !important;
  position: fixed;
  top: 50px;
  right: 30px;
  background-image: url("./res/hamburger.png");
  background-size: contain;
  background-repeat: no-repeat;
  height: 20px;
  width: 20px;
}
.wp-block-navigation .wp-block-navigation__responsive-container-open svg {
  display: none;
}
/* close button */
.wp-block-navigation__responsive-container-close {
  display: none !important;
}
.is-menu-open .wp-block-navigation__responsive-container-close {
  display: block !important;
  position: absolute;
  top: 0px;
  left: -20px;
}

/* Style the menu items in the overlay */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: flex !important;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Style individual menu items */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
}

/* ARCHIV */
.archivBlock h3 {
  display: none;
}

/* ARCHIV MENU */
#modal-1 ul {
  position: fixed;
  left: 40px;
  top: 200px;
  right: initial;
  --delay: 0.08s;
  font-size: 2.2rem;
  width: auto;
}
/* base state – hidden to the left */
#modal-1 ul li {
  transform: translateX(-100%);
  opacity: 0;
  transition:
    transform 0.6s ease-in-out,
    opacity 0.6s ease-in-out;
}

#modal-1 ul li:not(:first-of-type) a {
  transition: transform 0.2s ease-in-out;
}
#modal-1 ul li.active:not(:first-of-type) a {
  transform: translateX(-20px) !important;
}

/* when the list is visible */
#modal-1 ul.in-view li {
  transform: translateX(0);
  opacity: 1;
}

/* when the list should disappear */
#modal-1 ul.out-view li {
  transform: translateX(-100%);
  opacity: 0;
}

/* make first Link bigger */
#modal-1 ul li:first-of-type {
  font-size: 1.2em;
}

/* stagger the start times */
#modal-1 ul.in-view li:nth-child(1) {
  transition-delay: calc(0 * var(--delay));
}
#modal-1 ul.in-view li:nth-child(2) {
  transition-delay: calc(1 * var(--delay));
}
#modal-1 ul.in-view li:nth-child(3) {
  transition-delay: calc(2 * var(--delay));
}
#modal-1 ul.in-view li:nth-child(4) {
  transition-delay: calc(3 * var(--delay));
}
#modal-1 ul.in-view li:nth-child(5) {
  transition-delay: calc(4 * var(--delay));
}

#modal-1 ul.out-view li:nth-child(1) {
  transition-delay: calc(0 * var(--delay));
}
#modal-1 ul.out-view li:nth-child(2) {
  transition-delay: calc(1 * var(--delay));
}
#modal-1 ul.out-view li:nth-child(3) {
  transition-delay: calc(2 * var(--delay));
}
#modal-1 ul.out-view li:nth-child(4) {
  transition-delay: calc(3 * var(--delay));
}
#modal-1 ul.out-view li:nth-child(5) {
  transition-delay: calc(4 * var(--delay));
}

/* PAGE */

header {
  height: 0px;
}
main {
  margin-top: -20px !important;
}

main .wp-block-group {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.entry-content.alignfull.wp-block-post-content.has-global-padding:has(
    ul.wp-block-latest-posts__list.wp-block-latest-posts
  ) {
  padding: 0;
}

/* HOME PAGE */
.home .wp-block-post-title {
  display: none;
}

.home .wp-block-group {
}
.home main .wp-block-columns {
  max-width: 100%;
  width: 100%;
  padding: 20px 180px;
}
.home main .wp-block-columns .wp-block-column {
  margin: 0 auto;
  max-width: 1000px;
}

.home main .wp-block-columns:nth-of-type(odd) {
  background-color: var(--yellow);
}

/* SCROLLING HERO IMAGES */
.home main .wp-block-columns.hero {
  height: calc(100dvh + 10px);
  padding-top: 0;
  padding-bottom: 0;
}

.home main .wp-block-columns.hero .wp-block-column {
  overflow: hidden;
  max-height: 50dvh;
  position: relative;
  top: calc(50% - 5px);
  transform: translateY(-50%);
}

.home main .wp-block-columns.hero .wp-block-column > * {
  position: sticky;
  top: 0px;
  width: 100%;
  max-height: 100%;
}
.home main .wp-block-columns.hero .wp-block-column > figure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.home main .wp-block-columns.hero .wp-block-column > figure > img {
  max-width: 100%; /* never wider than the figure */
  max-height: 100%; /* never taller than the figure */
  width: auto; /* let the browser decide the actual width */
  height: auto; /* let the browser decide the actual height */
}
.scroll-indicator {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  z-index: 100;
}

.scroll-indicator__bar {
  width: 60px;
  height: 4px;
  background: black;
  transform-origin: center;
  transition:
    opacity 0.4s ease-in-out,
    transform 0.4s ease-in-out;
}
/* sm */
@media (max-width: 640px) {
}
/* md */
@media (max-width: 768px) {
  #short-title {
    font-size: 1.8rem;
  }
  #short-title.left {
    left: 100px;
  }
  .home main .wp-block-columns {
    max-width: 100%;
    width: 100%;
    padding: 20px 100px;
  }
  .wp-block-navigation .wp-block-navigation__responsive-container-open {
    right: 15px;
  }
}
/* lg */
@media (max-width: 1024px) {
}
/* xl */
@media (max-width: 1280px) {
}
/* 2xl */
@media (max-width: 1536px) {
}
