/*----------------
SECTION PADDING
----------------*/
section,
footer,
.section {
  padding-block: var(--section-padding-block);
  padding-inline: var(--gutter);
}

.section__inner {
  width: 100%;
  max-width: 1366px;
  margin-inline: auto;
}

/* HEADER FOOTER PADDING */

header {
  padding-inline: var(--gutter);
}

/*-------------------
VERTIKALES SPACING
--------------------*/
h1 {
  margin-bottom: var(--space-xl);
}

h2,
h3 {
  margin-bottom: var(--space-l);
}

p {
  margin-bottom: var(--space-s);
}

/*----------
UTILITIES
-----------*/
/* GRID */

.grid-2 {
  display: grid;
  gap: var(--space-m);
  align-items: center;

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SCREENREADER ONLY */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* BILDER */

.img-cover {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.ratio-3-4 {
  aspect-ratio: 3 / 4;
}

.ratio-2-3 {
  aspect-ratio: 2 / 3;
}

/*---------------------
HEADER
----------------------*/

/* Basic Styling & Setup */
.header {
  background-color: var(--primary-light);
  box-shadow: var(--shadow-m);
  position: sticky;
  top:0;
  width: 100%;
  z-index: 999;
  text-align: center;
  block-size: var(--header-height);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  width: 150px;
  height: auto;
  display: block;
}

.navigation {
  display: flex;
}

.navigation ul {
  display: flex;
  gap: var(--space-s);
  list-style: none;
  gap: 2rem;
}

.nav-toggle {
  display: none;
}

.navigation a {
  font-size: var(--text-nav);
  font-weight: 400;
}

@media (max-width: 40em) {
  .navigation ul {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 30%;
    z-index: 998;

    background: var(--primary);
    flex-direction: column;
    padding: min(30vh, 10rem) 2em;

    transform: translateX(100%);
  }

  .navigation a {
    color: var(--text-light);
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: url("../images/hamburger.svg");
    background-repeat: no-repeat;
    background-size: contain;

    aspect-ratio: 1;
    top: 1rem;
    right: 2rem;
    z-index: 9999;
    border: 0;
  }

  .navigation[data-visible="true"] ul {
    transform: translateX(0%);
  }
}

.nav-toggle[aria-expanded="true"] {
  background-image: url("../images/close.svg");
}

body[data-menu-open="true"] .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}


/*---------------- 
FOOTER 
------------------*/

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--black);
  color: var(--text-light);
}

.footer__inner {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-xl);
}

.footer__logo {
  width: 200px;
  height: auto;
  margin-bottom: var(--space-l);
  margin-top: var(--space-l);
}

.footer__zeile-eins,
.footer__zeile-zwei {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
}

.footer p {
  margin-bottom: 0;
}

.footer__rechtliches-wrapper {
  display: flex;
  gap: var(--space-l);
}

.footer__instagram-wrapper,
.footer__youtube-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xs);
}

.footer__instagram-icon,
.footer__youtube-icon {
  display: inline-block;
  width: var(--text-l);
  height: var(--text-l);

  background-color: var(--text-light);
  border: none;

  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.footer__instagram-icon {
  mask-image: url("../images/instagram.svg");
}

.footer__youtube-icon {
  mask-image: url("../images/youtube.svg");
}

@container (min-width: 42rem) {
  .footer__zeile-eins,
  .footer__zeile-zwei {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
  }
}
