@font-face {
  font-family: "cormorant-infant";
  src: url("font/CormorantInfant-Regular.ttf");
  font-display: swap;
}

:root {
  --clr-secondary: #f2e5d4;
  --clr-accent: #79744e;
  --wrapper-padding-inline: 2rem;
  --wrapper-max-width: 50rem;
  --wrapper-padding-block: 1.5rem;
  --color-1: #ffffff;
  --color-1-text: #6f6947;
  --color-2: #f4e4d5;
  --color-2-text: #654b34;
  --color-3: #6f6947;
  --color-3-text: #f4e4d5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  font: inherit;
}
html {
  font-family: sans-serif;
  interpolate-size: allow-keywords;
}
body {
  min-height: 100vh;
}
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}
b {
	font-weight: bold;
}

main {
  background-color: var(--clr-secondary);
}

h1 {
  font-size: 2.5rem;
  padding-block: 2rem;
  font-weight: bold;
  font-family: "cormorant-infant", serif;
}

h2 {
  font-size: 2.5rem;
  padding-block: 1.5rem;
  font-family: "cormorant-infant", serif;
}

h3 {
  font-size: 2rem;
  padding-block: 1.5rem;
  font-weight: bold;
  font-family: "cormorant-infant", serif;
}

h4 {
  font-size: 1.5rem;
  padding-block: 1rem;
  font-weight: bold;
  font-family: "cormorant-infant", serif;
}

h5 {
	font-weight: bold;
	font-size: 1.25rem;
	padding-block: 0.75rem 0;
	font-family: "cormorant-infant", serif;
}
h6 {
	font-style: italic;
}

p {
  font-size: 1rem;
  line-height: 1.25em;
  padding-block: 0.5rem;
}

h5 + p {
  padding-block-start: 0;
}

a, a:visited {
  color: inherit;

  &:focus-visible {
    outline: var(--clr-accent) solid;
  }
}

.color-1 {
	background-color: var(--color-1);
	color: var(--color-1-text);
}

.color-2 {
	background-color: var(--color-2);
  color: var(--color-2-text);
}

.color-3 {
	background-color: var(--color-3);
  color: var(--color-3-text);
}

.color-4 {
	background-color: var(--color-4);
	color: var(--color-4-text);
}

.accent {
  background-color: var(--clr-accent);
  color: white !important;

  &:focus-visible {
    outline: black solid !important;
  }
}

main {
	& > * {
		padding-inline: calc(max((100% - var(--wrapper-max-width)) / 2, var(--wrapper-padding-inline)));
	}
	
	section {
		padding-block: 2.5rem;

		&:not(:first-child) h2 {
		  padding-block-start: 0;
		}

		&:nth-child(2n) {
		  box-shadow: 0 4rem 4rem -5rem black inset, 0 -4rem 4rem -5rem black inset;
		}
	}
	
	& > *:first-child {
		padding-block-start: 5rem;
	}
	
	& > *:last-child {
		padding-block-end: 3rem;
	}

	img {
	  border-radius: 4px;
	}
}

.title {
	text-align: center;
	margin-inline: auto;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding-block: 0.6rem;
  padding-inline: 1rem;
  border-radius: 5px;
  color: black;

  &:visited {
    text-decoration: none;
  }

  &:hover {
    cursor: pointer;
  }
}
@keyframes marquee {
        from {
          translate: 0 0;
        }
        to {
          translate: -100% 0;
        }
      }

.title_page {
  text-align: center;

  .title {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-block-start: 6rem;
    min-height: 100svh;

    & > *:not(video) {
      z-index: 1;
    }

    p {
      font-size: 1.25rem;
      line-height: 2em;
      padding-block: 2rem;
      font-family: "cormorant-infant", serif;
      color: #f0e5d6;
      text-shadow: black 1px 0 5px;
    }

    .highlight {
      font-weight: bold;
      font-size: 2.5rem;
    }

    video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .instagram {
	    max-width: 4rem;
	    margin-top: 2rem;
    }

    .moving_text {
      bottom: 0;
      width: 100cqi;
      background-color: rgba(0 0 0 / 30%);
      padding-inline: 0.25rem;
      padding-block: 0.25rem;
      position: absolute;
      color: #f0e5d6;
      display: flex;
      flex-flow: row nowrap;
      overflow: hidden;

      span {
        white-space: nowrap;
        max-width: none;
        animation: 20s linear 1s infinite marquee;
      }

    }
  }

  section.news {
    padding-block: 0;
    
    &:has(.news_content:empty) {
      display: none;
    }

    &:has(img)){
      padding-inline: 0;
      & > div:nth-child(1){
        padding-inline: var(--wrapper-padding-inline);
      }
    }

    & > div:nth-child(1) {
      padding-block-start: 2.5rem;
      padding-block-end: 1rem;
      max-height: min-content;

      .news_content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
        gap: 0.75rem;
      }

      .news_content > div {	    
	      padding: 0.5rem 1rem;
	      border: 3px solid currentColor;
	      border-radius: 4px;
	    }

	    h4 {
	      padding-block-end: 0;
	    }
    }

    & > div:nth-child(2) {
      height: 40rem;
      background-repeat: no-repeat;
      background-position: center bottom;
      background-size: contain;
      box-shadow: 0 -4rem 4rem -5rem black inset;
    }

    @media(width > 80ch) {
      display: grid;
      grid-template-columns: 1fr auto;

      & > div:nth-child(1) {
        padding-block-end: 2.5rem;
      }

      & > div:nth-child(2) {
        background-size: cover;
        height: inherit;
        margin-block-end: inherit;
        filter: brightness(90%);
        background-position: center;
        box-shadow: 0 4rem 4rem -5rem black inset, 0 -4rem 4rem -5rem black inset;
      }
    }
    
  }

  .description {
    font-size: 1.25rem;

    & > * {
      padding-block: 1.5rem;
    }

    p {
      font-size: inherit;
    }
  }

  .grouper {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    gap: 0;
    justify-content: center;

    li {
      border-right: 1px solid black;
      padding-inline: 0.5rem;
    }

    li:last-child {
      border-right: none;
    }
  }

  .carusel {
    a, a:visited {
      display: block;
      color: black;
      text-decoration: none;
    }
  }
}

.galerie_page {
	.galerie {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	
		@media(width > 80ch) {
			grid-template-columns: 1fr 1fr 1fr;
		}

		.swipper {
			container-type: inline-size;
			position: relative;
			filter: brightness(.9);
			transition: .3s ease-in-out;

			&:hover{
				filter: brightness(1);
			}
		}
	
		button {
			position: absolute;
			inset-block: 50%;
			z-index: 1;
			cursor: pointer;
			border: none;
			height: 50px;
			background-color: #0000;
		}

		button::after, button::before {
			display: block;
			height: 4px;
			width: 30px;
			border-radius: 2px;
			background-color: var(--color-3-text);
			content: '';
			box-shadow: var(--clr-accent) 1px 0 10px;
		}
		
		button:nth-of-type(1) {
			inset-inline: auto 0.125rem;

			&::before {
				transform: translateY(-7px) rotate(45deg);
			}

			&::after {
				transform: translateY(7px) rotate(-45deg);
			}
		}
		button:nth-of-type(2) {
			inset-inline: 0.125rem auto;

			&::before {
				transform: translateY(12px) rotate(45deg);
			}

			&::after {
				transform: translateY(-12px) rotate(-45deg);
			}
		}
	}

	.swipper_content {
		display: grid;
		grid-template-columns: repeat(3, calc(100cqi));
		gap: 1px;
		overflow-x: scroll;
		text-align: center;
		scroll-snap-type: x proximity;

		& > * {
			scroll-snap-align: start;
			max-height: calc(100svh - 4rem);
		}
		
		p {
			align-content: center;
			padding: min(2rem, 7cqi);
			color: black !important;
		}
	}
}

.carusel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20ch, 1fr));
  gap: 3rem;
  justify-content: center;
  padding-block: var(--wrapper-padding-block);
}

.carusel4 {
  grid-template-columns: repeat(auto-fit, minmax(15ch, 1fr));
  gap: 2rem;
}

@media (min-width: 600px) {
  .title_page .title {
    p {
      font-size: 2rem;
    }
    .highlight {
      font-size: 5rem;
    }
  }
  .carusel img {
    height: 15rem;
    object-fit: cover;
    margin: 0 auto;
    width: 100%;
  }
}

.produkte {
  padding-block-start: var(--wrapper-padding-block);
}

table {
  padding-block: 1.5rem;
  border-collapse: collapse;
  width: 100%;

  th, td {
    padding-block: 0.5rem;
    padding-inline-start: 0.5rem;
    vertical-align: top;
  }

  th {
    text-align: left;
    font-weight: bold;
  }
  
  td {
    border-top: 1px solid black;
  }

  details > p {
    padding-block-end: 0;
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.6s;
    transition-behaviour: allow-discrete;
  }

  details[open] p{
    block-size: auto;

    @starting-style {
      block-size: 0;
    }
  }

  summary {
    display: block;
    text-decoration: underline;
    cursor: pointer;
  }
 
  summary::-webkit-details-marker {
    display: none; /* can be deleted at some point */
  }
  summary::marker{
    content: ''; /* can be deleted at some point */
  }

  tr > *:nth-child(2) {
    width: 11rem;
  }

  tr > *:nth-child(3) {
    width: 6rem;
  }
}

#logo {
  position: absolute;
  top: 0;
  z-index: 1;
  left: 0;
  right: 0;
  
  a {
    margin: 0 auto;
  }

  img {
    max-height: 3.5rem;
    margin: 0 auto;
  }
}

#nav-button {
  position: absolute;
  inset: var(--wrapper-padding-inline) var(--wrapper-padding-block) auto auto;
  z-index: 3;

  input {
    display: none;
  }

  label {
    display: flex;
    aspect-ratio: 1 / 1;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  label div,
  label div::after,
  label div::before{
    display: block;
    background-color: #000;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1), background-color 350ms linear;
    border-radius: 2px;
  }
  
  &.white input:not(:checked) + label div,
  &.white input:not(:checked) + label div::after,
  &.white input:not(:checked) + label div::before{
    background-color: #fff;
  }

  label div::before {
    content: '';
    margin-top: -8px;
  }

  label div::after {
    content: '';
    margin-top: 8px;
  }

  input:checked + label div::before {
    margin-top: 0px;
    transform: rotate(45deg);
  }

  input:checked + label div {
    background: rgba(255, 255, 255, 0);
  }

  input:checked + label div::after {
    margin-top: 0px;
    transform: rotate(-45deg);
  }

  &:has(input:not(:checked)) + #nav {
    display: none;
  } 
}
  
nav {
  position: fixed;
  inset: 0;
  font-size: 1.2rem;
  background-color: var(--color-2);
  color: black;
  text-align: center;
  z-index: 2;
  transition: display 5s;

  img {
	  margin: 0 auto;
	  max-height: 2.5rem;
  }

  ul {
    list-style-type: none;
    padding-block-end: 1.5rem;
  }

  li {
    padding-block: 0.8rem;
  }
  
  a, a:visited {
      text-decoration: none;
      color: inherit;
      transition: .3s ease-in-out;
  }

  a:hover, a:focus-visible {
    color: var(--clr-accent);
  }

  .button {
	  margin-bottom: 2rem;	
  }

  .grouper {
    display: flex;
    max-width: fit-content;
    margin-inline: auto;
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: .3s ease-in-out;
  }
}

footer {
  color: white;
  text-shadow: var(--clr-accent) 1px 0 10px;
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-block: 2rem;
  line-height: 1.5em;
  position: relative;

  .item {
    padding-inline: 3rem;
    min-width: 30ch;
    flex-grow: 1;
  }

  a, a:visited {
    color: white !important;
  }

  video {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: blur(2px);
  }
}
