body {
  font-family: "Poppins", sans-serif;
  background-color: #052436;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.map-placeholder {
  text-align: center;
  font-size: 15px;
}

header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../img/lisbon.png);
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 30px 10px;
}

h3 {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: bold;
  font-size: 30px;
  margin: 40px 0px 20px 0px;
}

h1 {
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 5px;
  margin: 30px;
}

h2 {
  font-weight: 500;
  font-size: 40px;
  letter-spacing: 3px;
  margin: 30px;
}

h4 {
  margin-bottom: 5px;
}

h5 {
  margin-bottom: 0;
}

.cards p {
  margin: 0;
}

.card-layout {
  background-color: rgb(248, 248, 248);
  padding-top: 20px;
  padding-bottom: 50px;
}

.cafe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

.card-header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}

.img-embed {
  width: 100%;
  aspect-ratio: 1/1;
}

.embed {
  width: 100%;
  aspect-ratio: 1/1;
}

.load-map-btn {
  display: block;
  margin: 0 auto;
  color: white;
  background-color: black;
  margin-bottom: 10px;
}

.load-insta-btn {
  display: block;
  margin: 0 auto;
  color: white;
  background-color: black;
  margin-bottom: 10px;
}

.insta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px; /* grid-gap ist veraltet */
}

.insta-card {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Optional: Wrapper um den Embed */
.insta-card .insta-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Blockquote von Instagram */
.insta-card blockquote.instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* iframe direkt anpassen */
.insta-card iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  left: 0 !important;
  transform: none !important;
  display: block; /* entfernt Inline-Spacing-Probleme */
}

.insta-header h3 {
  font-size: 20px;
  line-height: 0;
  color: rgb(194, 187, 187);
  text-align: center;
}

.insta-header h2 {
  font-size: 30px;
  margin: 0;
  text-align: center;
  margin-bottom: 30px;
}

.cafe-header h3 {
  font-size: 20px;
  line-height: 0;
  color: rgb(194, 187, 187);
  text-align: center;
}

.cafe-header h2 {
  font-size: 30px;
  margin: 0;
  text-align: center;
  margin-bottom: 30px;
}

.card-body {
  margin: 10px 30px;
  flex-grow: 1; /* body is part between header and button */
}

.cards {
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  border-radius: 5px;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* distribute card components*/
}

.cards p {
  color: rgb(125, 121, 142);
}

.insta-cards p {
  color: rgb(125, 121, 142);
  text-align: center;
}

.btn {
  background-color: rgb(70, 44, 179);
  text-align: center;
  padding: 15px 0;
  margin: 20px 30px 20px 30px;
}

.btn .btn-text {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

header a {
  color: black;
  font-weight: 600;
  text-decoration: none;
  background-color: white;
  padding: 10px 20px;
  display: inline-block;
  margin: 40px 30px;
  border-radius: 3px;
  text-transform: uppercase;
}

section {
  background-color: white;
  padding: 20px 40px;
}

.buildingsection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  place-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: hidden;
}

.buildingsection img {
  max-width: 100%;
}

.buildingsection h3 {
  font-size: 20px;
  line-height: 0;
  color: rgb(194, 187, 187);
}

.buildingsection h2 {
  font-size: 30px;
  margin: 0;
}

.buildingsection p {
  color: rgb(125, 121, 142);
}

footer {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url(../img/lisbon-footer.png);
  background-size: cover;
  background-repeat: no-repeat;
  padding: 20px 40px;
  color: rgb(194, 187, 187);
}

.containerBottom {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  grid-gap: 30px;
}

footer li {
  list-style: none;
}

footer a {
  color: rgb(194, 187, 187);
}

footer ul {
  padding: 0;
}

footer h3 {
  font-size: 15px;
}

.myName {
  font-style: italic;
}

@media (max-width: 900px) {
  h3 {
    letter-spacing: 2px;

    font-size: 15px;
    margin: 40px 0px 20px 0px;
  }

  h1 {
    font-size: 48px;
    letter-spacing: 2px;
    margin: 30px;
  }

  h2 {
    font-size: 20px;
    letter-spacing: 1px;
    margin: 10px;
  }

  header a {
    color: black;
    padding: 5px 10px;
    margin: 20px 15px;
  }

  .containerBottom {
    grid-template-columns: 1fr;
    grid-gap: 0px;
    text-align: center;
  }

  .buildingsection {
    grid-template-columns: 1fr;
  }

  .cafe-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    grid-template-columns: 1fr;
  }

  .img-embed {
    display: none;
  }

  .embed {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .insta-cards {
    grid-template-columns: 1fr;
  }
}
