:root {
  font-size: 16px; /* for rem scaling */
}

body, html {
  background-color: #586787;
}
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  min-height: 140vh;
  
  background-size: 400% 400% !important;
  background-position: 50%;
  background: linear-gradient(
    164deg,
    rgba(60, 60, 60, 1),
    rgba(80, 100, 120, 1),
    rgba(100, 110, 160, 1),
    rgba(200, 100, 200, 1),
    rgba(200, 100, 200, 1)
  );
  -webkit-animation: GradientAnimation 24s ease infinite;
          animation: GradientAnimation 24s ease infinite;
}

@keyframes GradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 50%;
  }
}

div.main-header, div.masonry {
  border: 0;
  margin: 0;
  padding: 10%;
  padding-top: 33%;
  padding-left: 12%;
}
div.masonry {
  padding-top: 2rem;
}
div.content-block {
  padding: 18% 10% 0 12%;
  color: white;
}
img.main-header-logo {
  width: 60%;
  max-width: 22em;
  padding-bottom: 8em;
}
.small-header-logo {
  height: 10vw;
  max-height: 5em;
  min-height: 2em;
  padding-right: 2vw;
}
.co-logo {
  height: 12vw;
  max-height: 6.4em;
}
.mm-logo {
  height: 8vw;
  max-height: 4.8em;
}

ul.main-logos {
  max-width: 40em;
  margin: 0;
  margin-top: 8em;
  padding: 0;

  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
}

div.main-description {
}
.subheading {
  padding-top: 1.4em;
}
div.logos {
  padding-top: 4em;
  padding-bottom: 2em;
}


.color-white {
  color: white
}

.decent-link, .decent-link:visited {
  color: yellow;
  text-decoration: none;
  font-style: italic;
}
.decent-link:hover, .decent-link:active {
  color: hotpink;
}

.spacer {
  height: 2.4em;
}

.noselect {
  user-select: none;
}

h6,
h3,
p, a {
  font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
  font-size: 1em;
  padding: 0;
  margin: 0;
}
.main-header p {
  padding: 0.2em 2em 0.2em 0;
}
h6 { font-size: 1.2em; }
h3 { font-size: 3em; hanging-punctuation:1; }

#imprint {
  padding-bottom: 8em;
  opacity: 0.5;
}
#imprint p {
  font-size: 80%;
  line-height: 1.4em;
}

#fullscreen-btn {
  position: fixed; bottom: 4em; right: 4em; z-index: 9999;
  width: 48px; height: 48px; border: none; background: rgba(0,0,0,0.3);
  border-radius: 16%; cursor: pointer; backdrop-filter: blur(10px);
  opacity: 0.6; transition: all 0.3s;
}
#fullscreen-btn:hover { background: rgba(0,0,0,0.4); opacity: 1; }
#fullscreen-btn svg { display: block; }
#fullscreen-btn.fullscreen #fs-enter { display: none; }
#fullscreen-btn.fullscreen #fs-exit { display: block; }
#fullscreen-btn:not(.fullscreen) #fs-exit { display: none; }
@media all and (display-mode: fullscreen) { #fullscreen-btn { top: 20px; right: 20px; } }




.spacer {
  height: 2rem;
}


.masonry {
  column-width: 12rem;          /* target column width */
  column-gap: 2rem;
  padding: 2rem;
  align-content: start;
}

.masonry-item {
  break-inside: avoid;
  color: white;
}

.masonry-item a {
  display: block;
  background: rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  opacity: 0.85;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.masonry-item a:hover,
.masonry-item a:active {
  background-color: rgba(255,255,255,0.25);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.3);
  opacity: 1.0;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;   /* natural aspect ratio */
}

.masonry-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.75rem 1rem 0.25rem;
}

.masonry-desc {
  font-size: 1rem;
  margin: 0 1.2rem 1.2rem;
  line-height: 1.4;
}

/* Responsive column count via width instead of px count */
@media (max-width: 48rem) {
  .masonry {
    column-width: 12rem;
    column-gap: 1rem;
    padding: 1rem;
  }
}

@supports (grid-template-rows: masonry) {
  /* Optional: future-ready native masonry with CSS Grid */
  .masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    grid-template-rows: masonry;
    gap: 2rem;
  }

  .masonry-item {
    break-inside: auto;
    margin-bottom: 0;
  }
}

