@font-face {
    font-family: "Nunito";
        src: url(/assets/fonts/Nunito/Nunito-VariableFont_wght.ttf);
    }

@font-face {
    font-family: "Noteworthy";
        src: url(/assets/fonts/Noteworthy.otf);
}

@font-face {
    font-family: "Noteworthy-light";
        src: url(/assets/fonts/Noteworthy-Lt.ttf);
}

:root {
    --dark-blue: #2C3843;
    --background-hell: #ECBE92;
    --sub-heading: #d5d5d5;
    --primary-btn: #F98313;
    --font-display: 'Noteworthy', cursive;
    --font-body: 'Nunito', sans-serif;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, p {
    margin: 0;
}

h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: bold;
}

h2 {
    font-family: var(--font-display);
    font-size: 26px;
}

h3 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: bold;
}

p {
    font-size: 16px;
}

body {
    background-color: var(--dark-blue);
    font-family: var(--font-body);
    font-style: normal;
    margin: 0;
}

/* HEADER */

button {
    width: 40px;
    height: 32px;
    border-style: unset;
    background-color: unset;
}

.btn-close {
    z-index: 10;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    color: var(--dark-blue);
}

.hidden {
    display: none;
}

header>img:first-of-type {
    display: none;
}

/* mobile menu */

.primary-nav  {
    position: fixed;
    inset: 136px 0 0 30%;
    background: rgba(242,169,53);
    display: flex;
    flex-direction: column;
    gap: 2em;
    padding: 2rem 2rem;
    transition-duration: 0.4s;
}

.out {
    inset: 136px 0 0 100%;
}

/* For browsers not supporting blur */

@supports (backdrop-filter: blur(0.5em)) {
    .primary-nav {
        background: rgba(242,169,53,0.7);
        backdrop-filter: blur(0.5rem);
    }
}


  /* CONTACT SECTION */

  .contact {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 80px 50px ;
    background-color: var(--background-hell);
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 80px;
  }

  .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 250px;
    align-self: center;
  }

  .contact-content>h2 {
    /* Erbt font-family und font-size von h2 Base */
  }

  .cont {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .cont>img {
    max-width: 30px;
  }

  /* FOOTER */

  footer {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
  }

  .wrapper-footer {
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
  }

  .logo-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .logo-footer>a>img {
    height: 45px;
    width: auto;
    object-fit: contain;
  }

  .logo-footer>p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
  }

  .kontakt-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .kontakt-footer>.cont>a {
    color: #fff;
    font-size: 1rem;
    font-weight: normal;
    transition: color 0.2s ease;
  }

  .kontakt-footer>.cont>a:hover {
    color: var(--primary-btn);
  }

  .cont>svg {
    max-width: 24px;
    flex-shrink: 0;
  }

  .cont>svg path,
  .cont>svg rect {
    fill: var(--primary-btn);
  }

  .books-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: white;
    font-size: 1rem;
  }

  .books-footer>a {
    transition: color 0.2s ease;
  }

  .books-footer>a:hover {
    color: var(--primary-btn);
  }

  .books-head {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: white;
    font-weight: 400;
  }

  .books-head>img {
    max-width: 24px;
    filter: brightness(0) saturate(100%) invert(55%) sepia(89%) saturate(1500%) hue-rotate(10deg) brightness(100%) contrast(96%);
  }

  .big {
    max-width: 80px;
  }

  .legal-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: white;
  }

  .legal-head {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
  }

  .legal-head>img {
    max-width: 24px;
    filter: brightness(0) saturate(100%) invert(55%) sepia(89%) saturate(1500%) hue-rotate(10deg) brightness(100%) contrast(96%);
  }

  .legal-footer>a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    padding-left: 1.8rem;
    transition: color 0.2s ease;
  }

  .legal-footer>a:hover {
    color: var(--primary-btn);
  }

  @media (min-width: 500px) {

    /* TYPOGRAFIE */
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 22px; }

    /* HEADER */

    .primary-nav {
      inset: 110px 0 0 30%;
    }

    .out {
      inset: 110px 0 0 100%;
  }

    header>img:first-of-type {
        display: unset;
        max-width: 300px;
    }

    img:nth-of-type(2) {
        display: none;
    }

  }

  /* Mobile Footer: zentriert */
  @media (max-width: 499px) {
    .wrapper-footer {
        text-align: center;
    }

    .logo-footer,
    .kontakt-footer,
    .books-footer,
    .legal-footer {
        align-items: center;
    }

    .books-head,
    .legal-head,
    .cont {
        justify-content: center;
    }

    .legal-footer>a {
        padding-left: 0;
    }
  }

  /* Tablet Footer: 2x2 Grid */
  @media (min-width: 500px) {
    .wrapper-footer {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .logo-footer>p {
        text-align: left;
    }
  }

  @media (min-width: 1024px) {

    /* TYPOGRAFIE */
    h1 { font-size: 44px; }
    h2 { font-size: 36px; }
    h3 { font-size: 24px; }

    /* HEADER */

    button {
        display: none;
    }

    .primary-nav {
        position: unset;
        flex-direction: row;
        background-color: unset;
        align-items: center;
        transition: unset;
    }

    nav>a {
        font-size: 16px;
        text-decoration: none;
        color: white;
    }

    .btn-cont{
        padding: 10px 32px;
        background-color: var(--primary-btn);
        border-radius: 10px;
    }

    /* KONTAKT SECTION */

    .contact {
        max-width: 920px;
        margin: 0 auto;
        margin-bottom: 80px;
        border-radius: 20px;
        padding: 40px 120px;
        text-align: left;
    }

    .contact-cards {
        padding: 20px 0;
    }

    /* FOOTER - Desktop: 4 Spalten */
    .wrapper-footer {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }

  }

  @media (min-width: 1300px){

    .contact {
        max-width: 1200px;
        flex-direction: row;
        justify-content: center;
        gap: 80px;
        padding: 40px 50px;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 600px;
    }

  }