@font-face {
  font-family: Avenir;
  src: url(../font/Avenir-Black.ttf);
  font-weight: 900;
}

@font-face {
  font-family: Avenir;
  src: url(../font/Avenir.ttc);
}

@font-face {
  font-family: MinionPro;
  src: url(../font/MinionPro-Regular.otf);
}

/* {
  outline: 1px solid red;
}*/
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
}

/* MENU ///////////////////////////////////////////////////*/

#menu {
  /*Font for Sandwich Menu*/
  font-family: Avenir, sans-serif;
  font-size: 12px;
  line-height: 28px;
  text-align: center;
}

#menuToggle {
  position: absolute;
  top: 22px;
  right: 15px;

  z-index: 1;

  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a {
  text-decoration: none;
  color: #ff898f;
}

#menuToggle a:hover {
  color: #ffa266;
}

/*Logo*/
#menu li img {
  display: block;
  margin: 0 auto 5px auto;
  max-width: 150px;
  width: 100%;
  height: auto;
}

/*Insta Icon*/
#menu li img#menuInsta {
  padding-top: 5px;
  width: 30px;
  max-width: none;
}

#menuToggle input {
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  right: -5px;

  cursor: pointer;

  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */

  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
  display: block;
  width: 33px; /*33px original*/
  height: 4px; /*4px* original*/
  margin-bottom: 5px;
  position: relative;
  background: white;

  z-index: 1;

  transform-origin: 4px 0px;

  transition:
    transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  padding-right: 0%;
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #ff898f;
}
#menu li:first-child {
  padding-top: 0%;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top right of the screen
 */
#menu {
  position: fixed;
  top: 0;
  width: 100%;
  max-height: 100vh;
  right: 0px;
  margin: 0 0px 0 0;
  padding: 50px;
  padding-top: 0px;
  box-sizing: border-box;
  overflow-y: auto;
  background: white;
  border-radius: 0px;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */

  transform-origin: 100% 0%;
  /* transform: translate(130%, 0);*/
  /* komplett außerhalb rechts */
  transform: translateX(180%);

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

#menu li {
  padding: 5px 0;
  font-size: 22px;
}

#menu li label {
  cursor: pointer;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul {
  transform: none;
}

/*HEADER//////////////////////////////////////////////////////////////////*/
h2 {
  position: absolute;
  font-size: 35px;
  margin-top: 0;
  top: 10px;
  margin-left: 10px;
  margin-bottom: 16px;
  font-family: Avenir, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
}

/* Slideshow Test*/
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.slide {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  width: 100%;
}

#headerLogo {
  width: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*SECTIONS ALLGEMEIN////////////////////////////////////////////////////////////////*/
.main {
  margin: 10px;
  padding: auto;
}
h3 {
  padding: 10px;
  /*font-size: 30px;*/
  font-size: clamp(2rem, 8vw, 4rem);
  font-family: Avenir, sans-serif;
  font-weight: 900;
  color: #ff898f;
  margin-bottom: 0; /* Abstand nach unten entfernen */
  margin-top: 5px;

  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h5 {
  font-family: Avenir, sans-serif;
  color: #ff898f;
  font-size: 20px;
  text-align: center;
  padding: 0 30px;
}

h4 {
  font-family: Avenir, sans-serif;
  color: #ff898f;
  font-weight: 100;
  font-size: 20px;
  padding: 10px;
}
p {
  margin-top: 0; /* Abstand nach oben entfernen */
  padding: 10px;
  padding-top: 0;
  font-size: 20px;
  font-family: MinionPro, serif;
  letter-spacing: 3%;
  line-height: 110%;
  color: #ffa266;
}
#lasttext {
  padding-bottom: 100px;
}
.personal {
  color: #00574a;
}
#distance {
  padding-top: 20px;
}
#icon1 {
  display: none;
}
#icon2 {
  display: none;
}
/*//////////////////////////////////ICONS CALL AND MAIL//////////////////////////////////////////////*/

#icon1 {
  display: block;
  width: 60px;
  position: fixed;
  right: 0px;
  top: 200px;
}
#icon2 {
  display: block;
  width: 60px;
  position: fixed;
  right: 0px;
  top: 280px;
}
.quadrat {
  display: block;
  width: 100%;
  max-width: 400px; /* gewünschte Maximalgröße */
  height: auto;
  margin: 0 10 0 10; /* zentriert */
}
.button-container {
  text-align: center;
}

.button {
  font-family: Avenir, sans-serif;
  background-color: #86a793;
  letter-spacing: 3%;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  color: white;
  padding: 10px 24px;
  margin-bottom: 100px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}
.button:hover {
  background-color: #00574a; /* Green */
  color: white;
}

/*HORIZONTAL IMAGE GALLERY//////////////////////////////////////////////////////////*/
div.scroll-container {
  overflow: auto;
  white-space: nowrap;
  padding: 00px 0px 0px;
}

div.scroll-container img {
  height: 300px;
  padding-top: 0px;
}

/*BLUMENABO SPEZIAL/////////////////////////////////////////////*/
.blumenabo {
  text-align: center;
}
.abo-item {
  margin-bottom: 30px;
}

#small {
  width: 150px;
  height: auto;
}

#medium {
  width: 200px;
  height: auto;
}

#large {
  width: 300px;
  height: auto;
}

/*FOOTER///////////////////////////////////////////////////////////////////////////////////////*/
footer {
  position: relative;
  padding: 100px 30px 30px;
  background-color: #ff898f;
  font-family: Avenir, sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
footer p {
  padding-top: 50px;
}
footer a {
  color: white;
  text-decoration: none;
}

#menufooter {
  font-family: Avenir, sans-serif;
  font-weight: 100;
  color: white;

  border: 1px solid white;
}
footer a,
footer li,
footer p,
footer address {
  color: white;
  font-family: Avenir, sans-serif;
  font-size: 18px;
  font-style: normal;
}

#footerInsta {
  padding-top: 5px;
  width: 20px;
  height: auto;
}
/* GRID CONTAINER */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

#footerLogo {
  width: 200px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

#orangelink {
  color: #ffa266;
}
/*Für Desktop/Tablet///////////////////////////////////////////////////////////////////////////*/
@media (min-width: 768px) {
  /*HEADER///////////////////////////////////////////////////////////////*/
  h2 {
    position: absolute;
    font-size: 100px;
    margin-top: 0;
    top: 15px;
    left: 20px;
    right: 80px;
    margin-left: 20px;
    margin-bottom: 16px;
    font-family: Avenir, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
  }
  #headerLogo {
    width: 250px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .slide {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    width: 100%;
  }

  /*MENU////////////////////////////////////////////////////////////////*/
  /* Altes Menü mit abgerundeten Ecken seitlich
  #menu {
    position: fixed;
    top: 10px;
    right: 5px;
    max-width: 400px;
    width: 300px;
    max-height: 100vh;
    right: 20px;
    margin: 0 5px 0 0;
    padding: 50px;
    padding-top: 0px;
    box-sizing: border-box;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
  /*
    transform-origin: 80% 0%;
    transform: translate(130%, 0);

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }
  /* GROSSES HAMBURGER ICON */
  #menuToggle span {
    display: block;

    width: 90px;
    height: 10px;

    margin-bottom: 10px;

    position: relative;

    background: white;
    border-radius: 2px;

    transition: opacity 0.1s ease;
  }

  /* GRÖSSERES KLICKFELD */
  #menuToggle input {
    width: 100px;
    height: 100px;
  }

  /* RESET */
  #menuToggle input:checked ~ span {
    width: 33px;
    height: 4px;

    margin-bottom: 5px;
    margin-left: 28px;

    background: #ff898f;

    transform-origin: center/2;
  }

  /* OBERER BALKEN */
  #menuToggle input:checked ~ span:first-child {
    transform: rotate(45deg) translate(-2px, -1px);
  }

  /* MITTLERER BALKEN */
  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: scale(0.2);
  }

  /* UNTERER BALKEN */
  #menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }

  #menuToggle {
    position: absolute;
    top: 50px;
    right: 35px;

    z-index: 1;

    -webkit-user-select: none;
    user-select: none;
  }
  */
  /*HORIZONTAL IMAGE GALLERY//////////////////////////////////////////////////////////*/
  div.scroll-container {
    display: flex;
    overflow: auto;
    gap: 20px;
    white-space: nowrap;
    padding: 0;
  }

  div.scroll-container img {
    flex-shrink: 0;
    height: 600px;
    padding: 10px;
  }

  /*BLUMENABO_////////////////////////////////////////////////*/
  .blumenabo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;

    align-items: flex-end;
  }

  .blumenabo .abo-item:nth-child(-n + 3) {
    flex: 0 0 30%;
  }

  .blumenabo .special {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .abo-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Bild + Text mittig */
    text-align: center;
  }

  #small,
  #medium,
  #large {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /*FOOTER/////////////////////////////////////////*/
  footer p {
    padding-top: 0px;
  }

  .footer-grid {
    display: grid;
    width: 100%;
    padding: 30px 20px 20px;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    justify-content: space-between;
  }

  /*MAIN SECTIONS/////////////////////////////////////////////*/
  .main {
    margin: 20px;
    padding: auto;
  }

  h3 {
    font-size: clamp(2rem, 8vw, 4rem);
    /*font-size: 60px;*/
    font-family: Avenir, sans-serif;
    font-weight: 900;
    color: #ff898f;
  }

  p {
    padding-top: 0;
    font-size: 30px;
    font-family: MinionPro, serif;
    color: #ffa266;
  }

  h5 {
    font-family: Avenir, sans-serif;
    color: #ff898f;
    font-size: 22px;
    text-align: center;
    padding: 10px 30px 30px;
  }

  h4 {
    font-family: Avenir, sans-serif;
    color: #ff898f;
    font-weight: 100;
    font-size: 40px;
    padding: 10px;
  }

  .button {
    font-family: Avenir, sans-serif;
    background-color: #86a793;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    color: white;
    padding: 10px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
  }

  #quadrat {
    text-align: center;
    /* padding-top: 100px;
    padding-bottom: 80px;*/
    max-width: 100%;
    height: auto;
  }
  #icon1 {
    display: none;
  }
  #icon2 {
    display: none;
  }
}

/* CSS für Desktop */

@media (min-width: 992px) {
  .slide {
    aspect-ratio: 4 / 1;
    background-size: cover;
    background-position: center;
    width: 100%;
  }

  section {
    padding: 50px 50px 0 50px;
  }
  /*BILDER FLOATEN LINKS/RECHTS/////////////////////////////////////////////////*/
  #blumenabo h3,
  #blumen h3,
  #annabell h3,
  #werkstatt h3,
  section:last-of-type h3 {
    margin-top: -28px;
  }

  /* Allgemeine Bildgröße Desktop */
  .quadrat {
    width: 40%;
    max-width: 480px;
    height: auto;
  }

  /* =========================
     BLUMENABO
     ========================= */

  #blumenabo::after {
    content: "";
    display: block;
    clear: both;
  }

  #blumenabo img {
    float: left;
    margin: 0 40px 30px 0;
  }

  /* =========================
     BLUMEN FÜR JEDEN ANLASS
     ========================= */

  #blumen::after {
    content: "";
    display: block;
    clear: both;
  }

  #blumen img {
    float: left;
    margin: 0 40px 30px 0;
  }

  /* =========================
     ANNABELL 1
     ========================= */

  #annabell::after {
    content: "";
    display: block;
    clear: both;
  }

  #annabell img {
    float: right;
    margin: 0 0 30px 40px;
  }

  /* =========================
     WERKSTATT - ERSTES BILD
     ========================= */

  #werkstatt img:first-of-type {
    float: left;
    margin: 0 40px 30px 0;
  }

  /* =========================
     ANNABELL 2
     ========================= */

  #werkstatt img:nth-of-type(2) {
    float: right;
    margin: 50px 0 30px 40px;
    clear: both;
  }

  #werkstatt::after {
    content: "";
    display: block;
    clear: both;
  }

  /* =========================
     ANNABELL 3
     ========================= */

  section:last-of-type::after {
    content: "";
    display: block;
    clear: both;
  }

  section:last-of-type img {
    float: left;
    margin: 0 40px 30px 0;
  }
  .werkstatt-text {
    margin-top: 250px; /* Wert nach Geschmack anpassen */
  }
}
