html {
  font-size: 10px;
  max-width: 100%;
  min-width: 500px;
}

body {
  /*hyphens: auto;*/
  margin: 0;
  overflow-x: hidden;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
}

.main {
  width: 100%;
  max-width: 114.66rem;      /* 860pt */
  margin: 0 auto;
}

#hero .hero-logo {
  padding: 9.33rem;      /* 70pt */
  height: 12rem;             /* 90pt */
  display: block;
}
#hero .hero-logo-ita {
  max-width: 1280px;
  padding: 0 3rem;
  width: calc(100% - 6rem);
  min-width: 450px;
  margin: 0 auto;
  display: block;
  padding-bottom: 13rem;
}

#hero-intro, #story-intro, #outro {
  max-width: 96rem; 
  margin: 0 auto;
  padding: 0 9.33rem;
  text-align: center;
}

#hero-intro p, #story-intro p, #outro p {
  font-size: 3.2rem;      /* 24pt */
  line-height: 4.5rem;    
  color: rgb(233,78,27); 
  font-family: futura-pt, sans-serif;
  /*hyphens: auto;*/
}

#story-intro h1, #outro h1 {
  font-size: 6rem;
  color: rgb(233,78,27); 
  text-transform: uppercase;
  font-family: unbounded, sans-serif; 
  line-height: 1.2;
  margin-top: 17rem;
}

.button{
  width: 33rem;
  text-align: center;
  font-family: futura-pt, sans-serif;
  font-size: 3.2rem;
  padding: 1.8rem 4rem; /* 2rem 4rem; */
  margin: 0 auto;
  cursor: pointer;
}

.cards {
  max-width: 112rem;         /* 840pt */
  padding: 0 1.33rem;        /* 10pt */
}

.card-wrapper {
  --card-overlap: clamp(10rem, 12vw, 18rem);
  position: relative;
  overflow: visible;
margin-bottom: clamp(6rem, 8vw, 12rem);
}

.card-wrapper .background {
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  height: auto;
  object-fit: cover;
}
.card-wrapper .background.l {
  transform: translateX(-50%);
}

.card-wrapper .card {
  position: relative;
  z-index: 1;
  margin: calc(-1 * var(--card-overlap)) auto 0; 
}

@media (min-width: 921px) {
  .card-wrapper .background {
    height: 100rem;
    max-height: 100rem;
    width: auto;
    left: 50%;
  }
  .card-wrapper.l .background {
    transform: translateX(calc(-50% - 30vw));
  }
  .card-wrapper.r .background {
    transform: translateX(calc(-50% + 30vw));
  }
}
@media (min-width: 2000px) {
  .card-wrapper.l  .background {
    transform: translateX(calc(-50% - 60rem));
  }
  .card-wrapper.r  .background {
    transform: translateX(calc(-50% + 60rem));
  }
}
.button, .card {
  background-color: rgb(252,231,241);
  color: rgb(233,78,27);
  text-transform: uppercase;
  border-radius: 8rem;       /* 60pt */
  margin-top: 6rem;          /* 60pt */
}
.card .button {
  background-color: white;
  margin-top: 3rem;
}
.card {
  padding: 5.33rem 8rem;     /* 40pt 60pt */
  max-width: 96rem;          /* 720pt */
  line-height: 1;
  font-size: 4rem;           /* 30pt */
  font-family: unbounded, sans-serif; 
  word-break: normal;
  overflow-wrap: normal;
}

#events .card {
    cursor: pointer;
}

#events .card:hover,
#events .card.is-open,
.button:hover {
  background-color: rgb(233,78,27);
  color: white;
}

.card h1 {
  font-size: 4rem;           /* 30pt */
  line-height: 1.3;      /* 36pt */
  margin: 0;
}

#story .card-summary h1 {
    margin-bottom: 3rem;
}

.card .card-label {
  letter-spacing: 0.1rem;
  line-height: 1;
  font-size: 3.2rem;         /* 24pt */
  font-family: futura-pt, sans-serif; 
  display: block;
  padding-top: 3rem;         /* 30pt */
}

.card-summary {

}

.card-body {
  display: none;
  font-family: futura-pt, sans-serif;
  font-size: 2.4rem;
  line-height: 1.4;
  color: inherit;
}

.card.is-open .card-body {
  display: block;
}

.card-content {
  text-transform: none;
  font-family: futura-pt, sans-serif;
  font-size: 3.2rem; 
  line-height: 4.4rem;
  margin: 0;
  /*margin: 1rem 0 0 0;*/
}
.card-content p {
  margin-top: 0;
}

.card-speaker {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.card-speaker-photo {
  width: 29rem;
  height: 29rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.card-content .image {
  line-height: 1;
  margin: 0;
  font-size: 3rem;
}

.card-content .image img {
  max-width: 100%;
  height: auto;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
  border-radius: 0.8rem;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
  max-width: 90vw;
}

.lightbox-caption {
  color: white;
  font-family: futura-pt, sans-serif;
  font-size: 3rem;
  line-height: 1.4;
}

.ita-portrait {
  max-width: 22rem;
  margin: -2rem 0;
}

#footer {
  position: relative;
  margin-top: 70vh; /*90rem*/
  background-color: rgb(11,38,138);
  height: 48rem;
  font-family: futura-pt, sans-serif; 
  font-size: 3.2rem;
  color: white;
  line-height: 1.3;
}

#footer .imprint{
  bottom: 10.66rem;
  left: 10.66rem;
  position: absolute;
}
#footer .logo {
  bottom: 10.66rem;
  right: 10.66rem;
  position: absolute;
  height: 12rem;             /* 90pt */
  filter: brightness(0) invert(1);
}

@media (max-width: 1160px) {  

  #hero .hero-logo {
    padding: 4rem;       /* 30pt */
    padding-bottom: 8.5rem;
    height: 6.66rem;         /* 50pt */
  }
  #hero .hero-logo-ita {
    padding-bottom: 8rem;
  }

  .card-speaker {
    flex-direction: column;
    align-items: flex-start;
  }

  #footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }

  #footer .imprint{
    position: relative;
    bottom: auto;
    left: auto;
    margin-bottom: 3rem;
    align-self: flex-start;
    padding-left: 10.66rem;
  }
  #footer .logo {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 37rem;
    width: 100%;
    margin: 0 auto 10.66rem;
    height: auto;             /* 90pt */
    filter: brightness(0) invert(1);
  }
}
@media (max-width: 920px) {  /* 840 */
  html {
    font-size: 11px;
  }
  .card h1 {
    hyphens: manual;
    font-size: 3.2rem;
  }
  .card .card-date {
    font-size: 3.2rem;
  }
  #story-intro h1, #outro h1 {
    font-size: 3.2rem;
    color: rgb(233,78,27); 
  }
  .card .card-label {
    padding-top: 1.6rem;
  }
  .ita-portrait {
  max-width: 22rem;
    margin-top: 0;
  }
}

#badge {
  position: fixed;
  height: 250px;
  width: 250px;
  background-color: rgb(233,78,27);
  border-radius: 100%;
  right: 80px;
  bottom: 10%;

  -webkit-box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.3); 
  box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.3);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 3.2rem;    
  line-height: 3.5rem;    
  color: white; 
  font-family: futura-pt, sans-serif;
  padding: 2.4rem;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#badge.is-hidden {
  opacity: 0;
  pointer-events: none;
}
