/**

This is the basic css file I'm using for the examples
in the basics series. I will extend this file whenever
a new tutorial is being added and new css rules will 
follow. 

*/

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

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

body {
  height: 100%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  margin: auto;
  max-width: 85rem;
  background-color: rgb(215, 224, 223);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header a {
  text-decoration: none;
}

.logo {
  font-weight: bold;
}

.menu ul {
  list-style: none;
  display: flex;
}



.main {
  flex: 1 0 auto;
  margin-top: 4rem;
  margin-bottom: 3rem;

}

.main h1 {
  margin-bottom: 2.5rem;

}


.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  grid-column-gap: 1.5rem;
  grid-row-gap: 3rem;
}

.projects img {
  width: 100%;
  margin-bottom: .5rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  padding-top: 3rem;
}

.pagination span {
  color: #999;
}

.filter {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter a {
  padding: .5rem 1rem;
  background: #000;
  color: #fff;
  margin-right: .5rem;
  border-radius: 3px;
  text-decoration: none;
}

.filter a[aria-current] {
  background: blue;
}

.unterwegs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  grid-column-gap: 1.5rem;
  grid-row-gap: 2.5rem
}

.unterwegs img {
  width: 100%;
  margin-bottom: .5rem;
  border-radius: 5px;
}

.tour-info {
  font-weight: bold;
}

.tour-text {
  font-weight: normal;
}

/* Header Styling */
header {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  margin-bottom: 1.5rem;
}



/* Logo and Menu Styling */
.logo {
  font-weight: 600;
  text-decoration: none;
}





.social,
.nc-icon-wrapper:hover {
  color: green;
  /* Hover effect */
}

.unterwegs {
  /* JL: selber definierte CSS variable, um spaltenzahl einfacher zu steuern */
  /* https: //developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries */
  --spalten: 1;

  display: grid;
  grid-template-columns: repeat(var(--spalten), 1fr);
  list-style: none;
  grid-gap: 1.5rem;
}

@media (min-width: 600px) {
  .unterwegs {
    --spalten: 2;
  }
}

@media (min-width: 1000px) {
  .unterwegs {
    --spalten: 3;
  }
}


/* Hamburger Menu and Mobile Styling */
@media (max-width: 1023px) {

  /* Hide Logo and Title */
  .logo {
    display: none;
  }

  h1 {
    display: none;
  }

  .menu {
    display: none;
    /* Hide the menu by default */
  }

  /* Background Image for Mobile */
  body {
    background-image: url('path/to/your/background-image.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    padding: 2rem;
  }



  /* Hamburger Menu */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 42px;
    /* Adaptive width */
    height: 28px;
    /* Adaptive height */
    cursor: default;
  }

  #hamburger-menu {
    position: fixed;
    right: 2rem;
    top: calc(4rem - 28px);
    align-items: baseline;
  }

  .bar {
    background-color: black;
    /* Keep the bar color white */
    height: 4px;
    /* Increase this value to make the bars thicker */
    width: 100%;
    border-radius: 5px;
  }

  /* Show the menu when 'active' class is added */
  .menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 5rem;
    /* Adjust based on your header height */
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Slightly transparent black */
    color: white;
    /* Change text color to white */
    width: 100%;
    z-index: 10;
    margin-left: 0;
  }

  /* Change color of individual links inside the active menu */
  /* Make sure the links are block-level elements so padding applies properly */
  .menu.active a,
  .menu.active a.logo-mobile {
    display: inline-block;
    /* Ensures padding is applied around the link */
    padding: 15px;
    /* Adjust padding if necessary */
    color: white;
    /* Default color */
    text-decoration: none;
    /* No underline on the links */
    margin-left: 0;
    text-align: center;
  }

  /* Change color of links on hover */
  .menu a:hover,
  .menu.active a:hover,
  .menu.active a.logo-mobile:hover {
    background-color: rgba(238, 11, 219, 0.956) !important;
    /* Slight background change on hover */
  }

  .menu a,
  .menu .logo-mobile {
    pointer-events: all !important;
    /* Ensure links are clickable */
  }

  .social,
  .nc-icon-wrapper {
    text-align: center;
  }

  .menu svg path,
  .menu svg circle {
    fill: white !important;
  }

}

/* Desktop Menu */
@media (min-width: 1024px) {
  .menu {
    display: flex;
  }

  .menu a {
    margin-left: 1.5rem;
  }

  .logo-mobile {
    display: none;
  }
}

h1,
h2 {
  /* By default, show on larger screens */
  display: block;
}

/* Mobile and smaller screens (below 768px) */
@media (max-width: 768px) {

  h1,
  h2 {
    display: block;
    /* Keep headings visible on mobile */
    font-size: relative;
    /* Adjust h1 size for mobile */
  }

}

/* Very small screens (below 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
    /* Smaller h1 size on very small screens */
  }

  h2 {
    font-size: 1.5rem;
    /* Smaller h2 size on very small screens */
  }

  /* Logo Link in Mobile Menu */
  .logo-mobile {
    text-decoration: none;
    color: black;
    /* Make it the same color as other links */
    padding: 1rem;
    /* Add some padding to separate it from other menu items */
    /* Optional, to match the other links' style */
    text-align: center;
    /* Center the logo */
  }

  /* Other styling for the menu on mobile */
  .menu a {
    text-decoration: none;
    color: black;
    padding: 15px;
    text-align: center;
  }

  .social,
  .nc-icon-wrapper {
    text-align: center;
  }

}

@media (max-width: 1023px) {
  .hamburger {
    position: absolute;
    /* Use absolute positioning */
    right: 0;
    /* Adjust this value to your liking */
    top: 0;
    /* Adjust the vertical position as needed */
    z-index: 10;
    /* Ensures the hamburger stays on top of other elements */
  }
}

@media (max-width:1023px) {


  .close span:nth-of-type(1) {
    -webkit-transform: translateY(12px) rotate(45deg);
    -ms-transform: translateY(12px) rotate(45deg);
    transform: translateY(12px) rotate(45deg);
  }



  .close span:nth-of-type(2) {
    opacity: 0;
  }

  .close span:nth-of-type(3) {
    -webkit-transform: translateY(-12px) rotate(-45deg);
    -ms-transform: translateY(-12px) rotate(-45deg);
    transform: translateY(-12px) rotate(-45deg);
  }

}


@media (min-width: 1024px) {

  .header-background {
    background-color: transparent;
    /* Start with solid blueviolet */
    z-index: 10000;
    width: 100%;
    left: 0;
    top: 2rem;
    position: fixed;
    height: 5rem;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    /* Add smooth transitions for both properties */
  }


  .scrolled {
    background-color: rgba(171, 198, 198, 0.8);
    /* Blue with some transparency */
    opacity: 0.9;
    /* Slightly more transparent when scrolled */

  }



  header {

    z-index: 1;
    display: flex;
    position: relative;
    width: 100%;
    max-width: 85rem;
    margin: auto;
    padding: 2rem 4rem 0 4rem;

  }
}


footer {


  flex-shrink: 0;

}