#app {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

#layout {
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  background: var(--background-gradient);
}

button,
.button {
  background-color: var(--default-highlight-color);
  color: #fff;
}

header {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

#collection-logo {
  width: var(--collection-logo-width);
  max-width: 100%;
  height: auto;
  position: absolute;
  left: 30px;
}

#collection-header-texts {
  display: flex;
/*   flex-direction: column; */
  align-items: flex-end;
  gap: 10px;
}

#collection-headline {
  font-size: var(--collection-h1-font-size);
}

#collection-subheadline {
  margin: 0;
  max-width: 650px;
  padding-bottom: .1em;
  font-size: var(--collection-h2-font-size);
}

#collection-subheadline::after {
  content: 'FDP';
  font-family: var(--fieldgothic75);
}

#collection-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: scale(0);
}

header:hover > #collection-edit {
/*   transform: scale(1); */
}

header:hover > #collection-edit:hover {
  transform: scale(1.2);
}

main {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 15px;
  padding: 30px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 15px;
  padding: 15px 30px 15px 15px;
}

.footer-element {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
}

a.footer-element:hover {
  text-decoration: underline;
  color: #666;
}

.template {
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  background-color: var(--background-color);
}

.template-text {
  position: relative;
  line-height: 1.2;
}

.template-text.needs-truncation:not(.truncated) {
  padding-bottom: 1.2em;
}

.template-text.needs-truncation::after {
  content: '... weniger anzeigen';
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 60px;
  background: linear-gradient(90deg, transparent, var(--background-color) 50px);
  text-decoration: underline;
  cursor: pointer;
}

.template-text.needs-truncation.truncated::after {
  content: '... mehr anzeigen';
}

.template-text.truncated {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.template-media {
  border-radius: 15px;
  overflow: hidden;
}

.template-preview {
  background: #ddd;
  background:
    linear-gradient(135deg, transparent 75%, #fff 0%) 0 0,
    linear-gradient(-45deg, transparent 75%, #fff 0%) 15px 15px,
    linear-gradient(135deg, transparent 75%, #fff 0%) 15px 15px,
    linear-gradient(-45deg, transparent 75%, #fff 0%) 0 0,
    #ddd;
  background-size: 30px 30px;
  border-radius: 15px;
}

.template-video {
  width: 100%;
  display: block;
}

.template-image {
  width: 100%;
  display: block;
}

.template-link {
  padding: 18px;
  background: var(--background-gradient);
}

.template-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.template-domain {
  color: #999;
  font-size: 0.9rem;
}

.template-space {
  flex-grow: 1;
}

.template-networks {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.template-network {
  padding: 0 5px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-network-input {
  display: none;
}

.template-network-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: blue;
  cursor: pointer;
  transition: all 0.1s linear;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-network-label > svg {
  width: 60%;
  height: auto;
  fill: inherit;
}

.template-network-input:checked + .template-network-label {
  width: 46px;
  height: 46px;
}

.template-button {
  height: 48px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 58px;
  grid-column-gap: 1px;
  padding: 0;
}

.template-share {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s linear;
}

.template-download {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: 2px solid var(--background-color);
  transition: background 0.1s linear;
}

.template-download > svg {
  width: 50%;
  height: 50%;
  fill: inherit;
}

.template-only-download {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s linear;
}

.template-edit {
  position: absolute;
  top: -10px;
  right: -10px;
  transform: scale(0);
}

.template:hover > .template-edit {
/*   transform: scale(1); */
}

.template:hover > .template-edit:hover {
  transform: scale(1.2);
}

#overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(var(--overlay-background-color-rgb),.75);
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur( 6px);
  transition: all 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

#overlay.open {
  opacity: 1;
  visibility: visible;
}

#loading {
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: absolute;
  top: 0;
  left: 0;
}

#loading-animation {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

#loading-animation div {
  animation: loading-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
#loading-animation div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--collection-background-color);
  margin: -4px 0 0 -4px;
}
#loading-animation div:nth-child(1) {
  animation-delay: -0.036s;
}
#loading-animation div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
#loading-animation div:nth-child(2) {
  animation-delay: -0.072s;
}
#loading-animation div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
#loading-animation div:nth-child(3) {
  animation-delay: -0.108s;
}
#loading-animation div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
#loading-animation div:nth-child(4) {
  animation-delay: -0.144s;
}
#loading-animation div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
#loading-animation div:nth-child(5) {
  animation-delay: -0.18s;
}
#loading-animation div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
#loading-animation div:nth-child(6) {
  animation-delay: -0.216s;
}
#loading-animation div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
#loading-animation div:nth-child(7) {
  animation-delay: -0.252s;
}
#loading-animation div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
#loading-animation div:nth-child(8) {
  animation-delay: -0.288s;
}
#loading-animation div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes loading-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-caption {
	padding: 0 30px;
	font-size: 1.25rem;
	text-align: center;
  color: var(--background-color);
}

#modal {
  width: 850px;
  max-width: 100vw;
  min-height: 100dvh;
  display: none;
  position: absolute;
  top: 0;
  right: -850px;
  padding: 32px 36px;
  background-image: var(--background-gradient);
  opacity: 0;
/*   overflow-y: auto; */
  transition: all 0.2s ease;
}

#modal.open {
  display: block;
  right: 0;
  opacity: 1;
}

#modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2em;
  gap: 10px;
}

#modal-close > svg {
  width: 75%;
  height: 75%;
}

#modal-headline {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0;
}

#share-steps {
  display: grid;
  grid-template-rows: 1fr;
  grid-row-gap: 40px;
  padding: 30px;
}

.share-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 40px;
  position: relative;
  opacity: 0;
  transform: translateY(100px);
  transition: transform .3s;
}

#modal.open .share-step {
  opacity: 1;
  transform: translateY(0px);
}

#modal.open .share-step:nth-child(1) {
  transition: all .3s .6s;
}

#modal.open .share-step:nth-child(2) {
  transition: all .3s .9s;
}

#modal.open .share-step:nth-child(3) {
  transition: all .3s 1.2s;
}

#modal.open .share-step:nth-child(4) {
  transition: all .3s 1.5s;
}

#modal.open .share-step:nth-child(5) {
  transition: all .3s 1.8s;
}

.step-marker {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5em;
  background-color: var(--collection-background-color);
  color: var(--collection-text-color);
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 2;
}

.step-label {
  font-size: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.modal-share {
  width: fit-content;
  height: 48px;
  padding: 0 24px;
  background-color: var(--collection-background-color);
  font-family: var(--fieldgothic62);
  font-size: 1rem;
  font-weight: 600;
  color: var(--collection-text-color);
}

.step-connector {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 2px;
  height: calc(100% + 4px);
  z-index: 1;
  background-color: var(--collection-background-color);
}

.share-step.active ~ .share-step > .step-marker,
.share-step.active > .step-connector,
.share-step.active ~ .share-step > .step-connector {
  background-color: var(--color-hex);
  color: var(--background-color);
}



/* MEDIA QUERIES */

@media only screen and (min-width: 750px) {
  main {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (min-width: 1125px) {
  main {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media only screen and (min-width: 1450px) {
  main {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media only screen and (min-width: 1875px) {
  main {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 1200px) {
  header {
    justify-content: flex-end;
  }
  #collection-header-texts {
    flex-direction: column;
  }
}

@media screen and (max-width: 850px) {
  header {
    padding: 18px;
    justify-content: space-between;
    gap: 18px;
  }
  #collection-header-texts {
    flex-direction: column;
    gap: 5px;
  }
  #collection-logo {
    width: calc(var(--collection-logo-width) * .75);
    position: static;
  }
  #collection-headline {
    font-size: calc(var(--collection-h1-font-size) * .7);
  }
  #collection-subheadline {
    font-size: calc(var(--collection-h2-font-size) * .7);
  }
}

@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
  #collection-header-texts {
    justify-content: center;
  }
}

@media screen and (max-width: 450px) {
  #collection-headline {
    font-size: calc(var(--collection-h1-font-size) * .55);
  }
  #collection-subheadline {
    font-size: calc(var(--collection-h2-font-size) * .55);
  }
}





























