/* Grid Definition */


* {
  all: unset;
  margin: 0;
  padding: 0;
  text-align: left;
  line-height: normal;
  text-decoration: none;
  list-style: none;
  max-width: 100%;
  min-width: 0;
  font-weight: normal;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  /* outline: 3px solid red !important; */
}

body, html {
  width: 100%;
  overflow-x: hidden;
}

head {
  @media screen {
    display: none;
  }
}

body {
  @media screen {
    display: grid;
    grid-template-columns: auto auto;
  }
  /* background-color: #F5F5F0; */
  
  > * {
    /* background-color: white; */
  }

  > header, nav {
    @media screen {
      display: block;
      position: sticky;
      top: 0;
      height: calc(5 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
      background-color: #99002d;
      background: linear-gradient(#99002d, #a62d40);
      align-content: end;
      border-bottom: calc(0.06 * clamp(1.5rem, 2vw + 0.5rem, 2rem)) solid #af985d ;
      border-top: calc(0.12 * clamp(1.5rem, 2vw + 0.5rem, 2rem)) solid #af985d ;
    }
  }

  > main, footer {
    @media screen {
      grid-column: 1 / span 2;
    }
  }

  > header, main, footer {
    @media screen {
      padding-left: clamp(2rem, 2.5vw + 0.5rem, 3rem);
    }
  }

  > header, main, nav, footer {
    @media screen {
      padding-right: clamp(2rem, 2.5vw + 0.5rem, 3rem);
    }
  }

@media screen and (width >= 1200px) {
  > main {
        padding-left: 15%;
        padding-right: 15%;
        }
} 

 @media screen and (width < 950px) {
    &:has(nav input:checked) {
      overflow: hidden;
    }
  }
}

header {
  @media screen {
    padding-bottom: calc((1.5 - 1 / 3 * 1.3 * 2.25) * clamp(1.5rem, 2vw + 0.5rem, 2rem));
      * {
      /* font-size: calc(1.3 * 1.5 * clamp(1.5rem, 2vw + 0.5rem, 2rem)); */
      font-weight: 900;
      color: #af985d;
      }
  }
  a {
    display: inline;
  }
  img {
    display: inline;
    @media screen {
      height: calc(1.3 * 2.25 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
    }
  }
}

nav {
  @media print {
    display: none;
  }
  @media screen {
    text-align: right;
    padding-bottom: calc(1.5 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
    * {
      text-align: right;
      color: #F5F5F0;
      
      font-size: calc(0.7 *clamp(1.5rem, 2vw + 0.5rem, 2rem));
      font-weight: 900;
      letter-spacing: 0.2rem;
      text-transform: uppercase;
      /* font-style: italic; */
    }
    * a:hover {
      text-decoration: underline;
      text-decoration-color: #af985d;
      text-decoration-thickness: calc(0.06 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
    }

    > input, label {
        display: none;
    }

    > ul {
      /* background: blue; */
    }
    
    > ul li {
      display: inline-block;
    }

    > * li:not(:last-child) {
      margin-right: calc(0.5 *  clamp(1.5rem, 2vw + 0.5rem, 2rem));
    }

    @media (width < 950px) {
      > ul {
        display: none;
      }
      > label {
          display: block;
          text-align: right;
          font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem);
      }
      > label::before {
          content: "☰"
      }
      &:has(input:checked) {
        align-content: start;
        position: fixed;
        right: 0;
        background-color: #99002d;
        width: 100%;
        height: 100%;
        overflow: scroll;
        overflow-y: scroll;
        * {
          font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem);
          font-weight: 900;
          font-style: normal;
        }
        > ul {
          display: block;
          > li {
            display: block;
            line-height: 2.0;
            margin-right: 0;
          }
        }
        > label {
          height: calc(5 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
          align-content: end;
          padding-bottom:  calc(1.5 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
          font-size: calc(1.3 * clamp(2rem, 3vw + 0.5rem, 3.5rem));
          &::before {
          content: "⤫";
          }
        }
      }   
    }
  }
}

header ~ main {
  @media screen {
    margin-top: calc(1.75 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
  }
}

main {

  @media screen {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: clamp(2rem, 2.5vw + 0.5rem, 3rem);
  }
  
  > * h1 {
    display: block;
    /* font-size: clamp(2.5rem, 5vw + 1rem, 4rem); */
    /* font-weight: bolder; */
    /* margin-bottom: 0.5em; */
    /* text-decoration-line: underline; */ 
    /* text-decoration-color: #af985d; */
    /* text-decoration-thickness: calc(0.15 * clamp(2.5rem, 5vw + 1rem, 4rem)); */
    /* text-decoration-inset: 0 calc(3 * clamp(2.5rem, 5vw + 1rem, 4rem)); */
  }

  > * h2 {
    display: block;
    /* font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem); */
    /* font-weight: bold; */
  }

  > * h3 {
    display: block;
    /* font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); */
    /* font-weight: bold; */
  }

  * p {
    /* text-align: justify; */
  }

  * p, * li {
    display: block;
    /* font-size: clamp(1rem, 1.1vw + 0.8rem, 1.25rem); */
    /* line-height: 1.6; /* Wichtig für die Lesbarkeit */
  }

  > * ul{
    /* padding-inline: 1rem; */
      > li {
        display: list-item;
        /* list-style-image: none; */
        /* list-style-position: inside; */
        /* list-style-type: disc; */
      }
    }

  > * table {
      display: table;
    > thead {
      display: table-header-group;
    }
    > tbody {
      display: table-row-group;
    }
    > * tr {
      display: table-row;
      > td, > th {
        display: table-cell;
      }
    }
  }

  * figure, figcaption {
    display: block;
    /* text-align: center; */
    /* font-style: italic; */
    /* font-size: clamp(0.75rem, 1.2vw + 0.5rem, 1rem); */
    /* color: #666; */
   }

   > article:first-child {
     @media screen {
      grid-column: 1 / span 2;
    }
  }
   > article > h1:target {
     @media screen {
       scroll-margin-top: calc(5.93 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
     }
   }
  @media screen and (width < 1200px) {
    > article {
      grid-column: 1 / span 2;
    }
  }
}

footer {
  @media print {
    display: none;
  }
  @media screen {
    display: grid;
    grid-template-colums: 100%;
    background: linear-gradient(#99002d, #a62d40);
    align-content: center;
    height: calc(2 * clamp(1.5rem, 2vw + 0.5rem, 2rem));
    border-top: calc(0.06 * clamp(1.5rem, 2vw + 0.5rem, 2rem)) solid #af985d ;
    border-bottom: calc(0.12 * clamp(1.5rem, 2vw + 0.5rem, 2rem)) solid #af985d ;
    text-align: center;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    * {
      color: #F5F5F0;
    }
    p {
      text-align: center;
    }
    * a {
      text-decoration: underline;
      &:hover {
        color: #af985d;
      }
    }
  }
}



